|
586 | 586 | { |
587 | 587 | "pattern": "DurableAgent|use workflow|use step|from\\s+[''\"]workflow[''\"]|@workflow/", |
588 | 588 | "targetSkill": "workflow", |
589 | | - "message": "Workflow DevKit pattern detected in AI code — loading WDK guidance for durable agent execution, step isolation, and crash-safe orchestration.", |
| 589 | + "message": "Workflow SDK pattern detected in AI code — loading Workflow SDK guidance for durable agent execution, step isolation, and crash-safe orchestration.", |
590 | 590 | "skipIfFileContains": "createWorkflow|withWorkflow" |
591 | 591 | }, |
592 | 592 | { |
|
1376 | 1376 | { |
1377 | 1377 | "pattern": "setTimeout\\s*\\(|setInterval\\s*\\(|while\\s*\\(\\s*true", |
1378 | 1378 | "targetSkill": "workflow", |
1379 | | - "message": "Long-running or polling logic in chat bot — loading Workflow DevKit for durable execution that survives deploys.", |
| 1379 | + "message": "Long-running or polling logic in chat bot — loading Workflow SDK for durable execution that survives deploys.", |
1380 | 1380 | "skipIfFileContains": "use workflow|from\\s+[''\"]workflow[''\"]" |
1381 | 1381 | }, |
1382 | 1382 | { |
|
3817 | 3817 | }, |
3818 | 3818 | { |
3819 | 3819 | "pattern": "maxRetries\\s*[=:]|retryCount\\s*[=:]|retry\\s*\\(\\s*|for\\s*\\([^)]*retry|while\\s*\\([^)]*retry", |
3820 | | - "message": "Manual retry logic detected. Use Vercel Workflow DevKit for automatic retries with durable execution.", |
| 3820 | + "message": "Manual retry logic detected. Use Vercel Workflow SDK for automatic retries with durable execution.", |
3821 | 3821 | "severity": "recommended", |
3822 | 3822 | "skipIfFileContains": "use workflow|use step|@vercel/workflow|from\\s+[''\"\"](workflow)[''\"\"]", |
3823 | 3823 | "upgradeToSkill": "workflow", |
3824 | | - "upgradeWhy": "Replace manual retry loops with Workflow DevKit steps that provide automatic retries, crash safety, and observability.", |
| 3824 | + "upgradeWhy": "Replace manual retry loops with Workflow SDK steps that provide automatic retries, crash safety, and observability.", |
3825 | 3825 | "upgradeMode": "soft" |
3826 | 3826 | }, |
3827 | 3827 | { |
|
3843 | 3843 | { |
3844 | 3844 | "pattern": "setTimeout\\s*\\(|setInterval\\s*\\(|await\\s+new\\s+Promise\\s*\\([^)]*setTimeout", |
3845 | 3845 | "targetSkill": "workflow", |
3846 | | - "message": "Long-running or polling logic in serverless handler — loading Workflow DevKit for durable execution." |
| 3846 | + "message": "Long-running or polling logic in serverless handler — loading Workflow SDK for durable execution." |
3847 | 3847 | }, |
3848 | 3848 | { |
3849 | 3849 | "pattern": "writeFile(Sync)?\\(|createWriteStream\\(|from\\s+[''\\\"](multer|formidable)[''\"]|fs\\.writeFile", |
|
3863 | 3863 | { |
3864 | 3864 | "pattern": "while\\s*\\(\\s*true\\s*\\)\\s*\\{|for\\s*\\(\\s*;\\s*;\\s*\\)\\s*\\{|setInterval\\s*\\(\\s*async", |
3865 | 3865 | "targetSkill": "workflow", |
3866 | | - "message": "Polling loop in serverless function detected — loading Workflow DevKit for durable, crash-safe execution with pause/resume.", |
| 3866 | + "message": "Polling loop in serverless function detected — loading Workflow SDK for durable, crash-safe execution with pause/resume.", |
3867 | 3867 | "skipIfFileContains": "use workflow|use step|from\\\\s+['\\\"]workflow['\\\"]" |
3868 | 3868 | }, |
3869 | 3869 | { |
|
3881 | 3881 | { |
3882 | 3882 | "pattern": "maxRetries\\s*[=:]|retryCount\\s*[=:]|retry\\s*\\(\\s*|for\\s*\\([^)]*retry|while\\s*\\([^)]*retry", |
3883 | 3883 | "targetSkill": "workflow", |
3884 | | - "message": "Manual retry logic in serverless handler — loading Workflow DevKit guidance for automatic retries with durable execution.", |
| 3884 | + "message": "Manual retry logic in serverless handler — loading Workflow SDK guidance for automatic retries with durable execution.", |
3885 | 3885 | "skipIfFileContains": "use workflow|use step|@vercel/workflow|from\\s+[''\"\"](workflow)[''\"\"]" |
3886 | 3886 | } |
3887 | 3887 | ], |
|
4680 | 4680 | "summary": "", |
4681 | 4681 | "docs": [ |
4682 | 4682 | "https://vercel.com/docs/workflow", |
4683 | | - "https://useworkflow.dev" |
| 4683 | + "https://workflow-sdk.dev" |
4684 | 4684 | ], |
4685 | 4685 | "sitemap": "https://vercel.com/sitemap/docs.xml", |
4686 | 4686 | "pathPatterns": [ |
|
4767 | 4767 | }, |
4768 | 4768 | { |
4769 | 4769 | "pattern": "from\\s+['\"]@vercel/workflow['\"]", |
4770 | | - "message": "Workflow DevKit requires AI Gateway OIDC setup — ensure vercel link + vercel env pull for VERCEL_OIDC_TOKEN", |
| 4770 | + "message": "Workflow SDK requires AI Gateway OIDC setup — ensure vercel link + vercel env pull for VERCEL_OIDC_TOKEN", |
4771 | 4771 | "severity": "recommended" |
4772 | 4772 | }, |
4773 | 4773 | { |
|
4778 | 4778 | }, |
4779 | 4779 | { |
4780 | 4780 | "pattern": "context\\.run\\s*\\(", |
4781 | | - "message": "context.run() is not a WDK pattern — use \"use step\" directive for retryable, observable steps", |
| 4781 | + "message": "context.run() is not a Workflow SDK pattern — use \"use step\" directive for retryable, observable steps", |
4782 | 4782 | "severity": "error", |
4783 | 4783 | "upgradeToSkill": "workflow", |
4784 | 4784 | "upgradeWhy": "Guides migration from context.run() to the \"use step\" directive for durable, retryable workflow steps.", |
|
4848 | 4848 | { |
4849 | 4849 | "pattern": "process\\.env\\.(OPENAI_API_KEY|ANTHROPIC_API_KEY)|from\\s+[''\"]@ai-sdk/(anthropic|openai)[''\"\"]", |
4850 | 4850 | "targetSkill": "ai-gateway", |
4851 | | - "message": "Direct provider API key in workflow — loading AI Gateway guidance for OIDC auth (required for WDK AI steps).", |
| 4851 | + "message": "Direct provider API key in workflow — loading AI Gateway guidance for OIDC auth (required for Workflow SDK AI steps).", |
4852 | 4852 | "skipIfFileContains": "gateway\\(|@ai-sdk/gateway|VERCEL_OIDC" |
4853 | 4853 | }, |
4854 | 4854 | { |
|
4867 | 4867 | "promptSignals": { |
4868 | 4868 | "phrases": [ |
4869 | 4869 | "vercel workflow", |
| 4870 | + "workflow sdk", |
4870 | 4871 | "workflow devkit", |
4871 | 4872 | "durable workflow", |
4872 | 4873 | "durable execution", |
|
5464 | 5465 | "implement step function" |
5465 | 5466 | ], |
5466 | 5467 | "entities": [ |
| 5468 | + "Workflow SDK", |
5467 | 5469 | "Workflow DevKit", |
5468 | 5470 | "WDK", |
5469 | 5471 | "step", |
|
0 commit comments