patchwork-os 0.2.0-beta.9.canary.92 → 1.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.bridge.md +15 -16
- package/README.md +46 -458
- package/dist/activationMetrics.js +2 -3
- package/dist/activationMetrics.js.map +1 -1
- package/dist/activityLog.d.ts +1 -0
- package/dist/activityLog.js +8 -3
- package/dist/activityLog.js.map +1 -1
- package/dist/adapters/gemini.js +2 -2
- package/dist/adapters/gemini.js.map +1 -1
- package/dist/adapters/grok.js +6 -1
- package/dist/adapters/grok.js.map +1 -1
- package/dist/adapters/openai.js +4 -0
- package/dist/adapters/openai.js.map +1 -1
- package/dist/approvalHttp.d.ts +9 -0
- package/dist/approvalHttp.js +210 -171
- package/dist/approvalHttp.js.map +1 -1
- package/dist/approvalKpi.d.ts +102 -0
- package/dist/approvalKpi.js +282 -0
- package/dist/approvalKpi.js.map +1 -0
- package/dist/approvalQueue.d.ts +1 -1
- package/dist/approvalQueue.js.map +1 -1
- package/dist/automation.d.ts +45 -4
- package/dist/automation.js +123 -15
- package/dist/automation.js.map +1 -1
- package/dist/bridge.d.ts +10 -0
- package/dist/bridge.js +225 -46
- package/dist/bridge.js.map +1 -1
- package/dist/bridgeLockDiscovery.d.ts +16 -1
- package/dist/bridgeLockDiscovery.js +38 -4
- package/dist/bridgeLockDiscovery.js.map +1 -1
- package/dist/bridgeToolsRules.js +3 -18
- package/dist/bridgeToolsRules.js.map +1 -1
- package/dist/claudeAuthHttp.d.ts +25 -0
- package/dist/claudeAuthHttp.js +219 -0
- package/dist/claudeAuthHttp.js.map +1 -0
- package/dist/claudeDriver.js +4 -1
- package/dist/claudeDriver.js.map +1 -1
- package/dist/claudeOrchestrator.d.ts +15 -0
- package/dist/claudeOrchestrator.js +44 -0
- package/dist/claudeOrchestrator.js.map +1 -1
- package/dist/commands/connect.d.ts +47 -0
- package/dist/commands/connect.js +419 -0
- package/dist/commands/connect.js.map +1 -0
- package/dist/commands/install.js +3 -10
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/launchd.d.ts +7 -0
- package/dist/commands/launchd.js +20 -2
- package/dist/commands/launchd.js.map +1 -1
- package/dist/commands/patchworkInit.d.ts +7 -0
- package/dist/commands/patchworkInit.js +26 -0
- package/dist/commands/patchworkInit.js.map +1 -1
- package/dist/commands/recipe.d.ts +59 -4
- package/dist/commands/recipe.js +206 -5
- package/dist/commands/recipe.js.map +1 -1
- package/dist/commands/recipeInstall.d.ts +9 -0
- package/dist/commands/recipeInstall.js +56 -3
- package/dist/commands/recipeInstall.js.map +1 -1
- package/dist/commands/task.d.ts +25 -0
- package/dist/commands/task.js +61 -41
- package/dist/commands/task.js.map +1 -1
- package/dist/commands/tokenEfficiency.d.ts +4 -0
- package/dist/commands/tokenEfficiency.js +23 -26
- package/dist/commands/tokenEfficiency.js.map +1 -1
- package/dist/commands/tracesExport.d.ts +15 -1
- package/dist/commands/tracesExport.js +39 -5
- package/dist/commands/tracesExport.js.map +1 -1
- package/dist/config.js +16 -0
- package/dist/config.js.map +1 -1
- package/dist/connectorRoutes.js +613 -62
- package/dist/connectorRoutes.js.map +1 -1
- package/dist/connectors/asana.js +9 -3
- package/dist/connectors/asana.js.map +1 -1
- package/dist/connectors/baseConnector.d.ts +16 -0
- package/dist/connectors/baseConnector.js +2 -0
- package/dist/connectors/baseConnector.js.map +1 -1
- package/dist/connectors/caldiy.js +34 -0
- package/dist/connectors/caldiy.js.map +1 -1
- package/dist/connectors/confluence.js +9 -2
- package/dist/connectors/confluence.js.map +1 -1
- package/dist/connectors/connectorActivity.d.ts +24 -0
- package/dist/connectors/connectorActivity.js +32 -0
- package/dist/connectors/connectorActivity.js.map +1 -0
- package/dist/connectors/connectorRedirectUri.js +22 -2
- package/dist/connectors/connectorRedirectUri.js.map +1 -1
- package/dist/connectors/connectorRegistry.d.ts +0 -3
- package/dist/connectors/connectorRegistry.js +8 -8
- package/dist/connectors/connectorRegistry.js.map +1 -1
- package/dist/connectors/datadog.js +8 -1
- package/dist/connectors/datadog.js.map +1 -1
- package/dist/connectors/discord.js +4 -3
- package/dist/connectors/discord.js.map +1 -1
- package/dist/connectors/elasticsearch.js +22 -0
- package/dist/connectors/elasticsearch.js.map +1 -1
- package/dist/connectors/github.d.ts +38 -0
- package/dist/connectors/github.js +91 -5
- package/dist/connectors/github.js.map +1 -1
- package/dist/connectors/gitlab.js +19 -16
- package/dist/connectors/gitlab.js.map +1 -1
- package/dist/connectors/gmail.d.ts +5 -0
- package/dist/connectors/gmail.js +53 -11
- package/dist/connectors/gmail.js.map +1 -1
- package/dist/connectors/googleCalendar.js +5 -4
- package/dist/connectors/googleCalendar.js.map +1 -1
- package/dist/connectors/googleDocs.js +7 -6
- package/dist/connectors/googleDocs.js.map +1 -1
- package/dist/connectors/googleDrive.js +15 -8
- package/dist/connectors/googleDrive.js.map +1 -1
- package/dist/connectors/grafana.js +39 -3
- package/dist/connectors/grafana.js.map +1 -1
- package/dist/connectors/jira.d.ts +1 -1
- package/dist/connectors/jira.js +19 -4
- package/dist/connectors/jira.js.map +1 -1
- package/dist/connectors/linear.js +2 -2
- package/dist/connectors/linear.js.map +1 -1
- package/dist/connectors/mcpClient.d.ts +29 -1
- package/dist/connectors/mcpClient.js +114 -44
- package/dist/connectors/mcpClient.js.map +1 -1
- package/dist/connectors/mcpOAuth.d.ts +1 -0
- package/dist/connectors/mcpOAuth.js +49 -4
- package/dist/connectors/mcpOAuth.js.map +1 -1
- package/dist/connectors/monday.js +5 -4
- package/dist/connectors/monday.js.map +1 -1
- package/dist/connectors/mongodb.js +32 -5
- package/dist/connectors/mongodb.js.map +1 -1
- package/dist/connectors/notion.d.ts +1 -1
- package/dist/connectors/notion.js +22 -6
- package/dist/connectors/notion.js.map +1 -1
- package/dist/connectors/oauthError.d.ts +17 -0
- package/dist/connectors/oauthError.js +50 -0
- package/dist/connectors/oauthError.js.map +1 -0
- package/dist/connectors/postgres.d.ts +7 -0
- package/dist/connectors/postgres.js +32 -2
- package/dist/connectors/postgres.js.map +1 -1
- package/dist/connectors/posthog.js +26 -0
- package/dist/connectors/posthog.js.map +1 -1
- package/dist/connectors/redis.d.ts +1 -0
- package/dist/connectors/redis.js +47 -20
- package/dist/connectors/redis.js.map +1 -1
- package/dist/connectors/salesforce.js +66 -5
- package/dist/connectors/salesforce.js.map +1 -1
- package/dist/connectors/sentry.js +2 -2
- package/dist/connectors/sentry.js.map +1 -1
- package/dist/connectors/slack.js +37 -14
- package/dist/connectors/slack.js.map +1 -1
- package/dist/connectors/snowflake.js +24 -0
- package/dist/connectors/snowflake.js.map +1 -1
- package/dist/connectors/stripe.js +9 -2
- package/dist/connectors/stripe.js.map +1 -1
- package/dist/connectors/supabase.js +34 -0
- package/dist/connectors/supabase.js.map +1 -1
- package/dist/connectors/tokenStorage.d.ts +20 -0
- package/dist/connectors/tokenStorage.js +196 -64
- package/dist/connectors/tokenStorage.js.map +1 -1
- package/dist/connectors/woocommerce.js +34 -0
- package/dist/connectors/woocommerce.js.map +1 -1
- package/dist/copilot/parseIntent.d.ts +58 -0
- package/dist/copilot/parseIntent.js +149 -0
- package/dist/copilot/parseIntent.js.map +1 -0
- package/dist/decisionReplay.d.ts +8 -6
- package/dist/decisionReplay.js +35 -11
- package/dist/decisionReplay.js.map +1 -1
- package/dist/decisionTraceLog.d.ts +9 -0
- package/dist/decisionTraceLog.js +6 -0
- package/dist/decisionTraceLog.js.map +1 -1
- package/dist/drivers/claude/api.js +49 -7
- package/dist/drivers/claude/api.js.map +1 -1
- package/dist/drivers/claude/envSanitizer.d.ts +9 -1
- package/dist/drivers/claude/envSanitizer.js +41 -3
- package/dist/drivers/claude/envSanitizer.js.map +1 -1
- package/dist/drivers/claude/streamParser.d.ts +13 -0
- package/dist/drivers/claude/streamParser.js.map +1 -1
- package/dist/drivers/claude/subprocess.js +131 -16
- package/dist/drivers/claude/subprocess.js.map +1 -1
- package/dist/drivers/claude/subprocessSettings.d.ts +1 -1
- package/dist/drivers/claude/subprocessSettings.js +18 -4
- package/dist/drivers/claude/subprocessSettings.js.map +1 -1
- package/dist/drivers/gemini/index.d.ts +13 -0
- package/dist/drivers/gemini/index.js +211 -67
- package/dist/drivers/gemini/index.js.map +1 -1
- package/dist/drivers/local/index.d.ts +2 -17
- package/dist/drivers/local/index.js +5 -92
- package/dist/drivers/local/index.js.map +1 -1
- package/dist/drivers/openai/index.js +69 -9
- package/dist/drivers/openai/index.js.map +1 -1
- package/dist/drivers/outputCap.d.ts +27 -0
- package/dist/drivers/outputCap.js +50 -0
- package/dist/drivers/outputCap.js.map +1 -0
- package/dist/embeddings/cosine.d.ts +23 -0
- package/dist/embeddings/cosine.js +59 -0
- package/dist/embeddings/cosine.js.map +1 -0
- package/dist/embeddings/index.d.ts +19 -0
- package/dist/embeddings/index.js +35 -0
- package/dist/embeddings/index.js.map +1 -0
- package/dist/embeddings/localEmbeddings.d.ts +29 -0
- package/dist/embeddings/localEmbeddings.js +103 -0
- package/dist/embeddings/localEmbeddings.js.map +1 -0
- package/dist/embeddings/localEndpoints.d.ts +24 -0
- package/dist/embeddings/localEndpoints.js +37 -0
- package/dist/embeddings/localEndpoints.js.map +1 -0
- package/dist/embeddings/types.d.ts +32 -0
- package/dist/embeddings/types.js +12 -0
- package/dist/embeddings/types.js.map +1 -0
- package/dist/featureFlags.d.ts +18 -0
- package/dist/featureFlags.js +32 -0
- package/dist/featureFlags.js.map +1 -1
- package/dist/fp/automationInterpreter.js +118 -39
- package/dist/fp/automationInterpreter.js.map +1 -1
- package/dist/fp/automationProgram.d.ts +10 -0
- package/dist/fp/automationProgram.js.map +1 -1
- package/dist/fp/automationState.d.ts +6 -0
- package/dist/fp/automationState.js +38 -0
- package/dist/fp/automationState.js.map +1 -1
- package/dist/fp/commandDescription.d.ts +6 -0
- package/dist/fp/commandDescription.js +18 -5
- package/dist/fp/commandDescription.js.map +1 -1
- package/dist/fp/interpreterContext.d.ts +16 -5
- package/dist/fp/interpreterContext.js +59 -3
- package/dist/fp/interpreterContext.js.map +1 -1
- package/dist/fp/policyParser.js +18 -8
- package/dist/fp/policyParser.js.map +1 -1
- package/dist/haltPushDispatch.d.ts +4 -0
- package/dist/haltPushDispatch.js +7 -22
- package/dist/haltPushDispatch.js.map +1 -1
- package/dist/inboxRoutes.js +2 -2
- package/dist/inboxRoutes.js.map +1 -1
- package/dist/index.js +672 -135
- package/dist/index.js.map +1 -1
- package/dist/installGuard.js +6 -0
- package/dist/installGuard.js.map +1 -1
- package/dist/localEndpointGuard.d.ts +25 -0
- package/dist/localEndpointGuard.js +101 -0
- package/dist/localEndpointGuard.js.map +1 -0
- package/dist/mcpRoutes.js +1 -1
- package/dist/mcpRoutes.js.map +1 -1
- package/dist/oauth.d.ts +13 -0
- package/dist/oauth.js +53 -9
- package/dist/oauth.js.map +1 -1
- package/dist/orchestrator/childBridgeClient.d.ts +7 -0
- package/dist/orchestrator/childBridgeClient.js +42 -1
- package/dist/orchestrator/childBridgeClient.js.map +1 -1
- package/dist/orchestrator/orchestratorBridge.d.ts +33 -0
- package/dist/orchestrator/orchestratorBridge.js +75 -9
- package/dist/orchestrator/orchestratorBridge.js.map +1 -1
- package/dist/patchworkConfig.d.ts +4 -0
- package/dist/patchworkConfig.js +33 -4
- package/dist/patchworkConfig.js.map +1 -1
- package/dist/probe.js +39 -5
- package/dist/probe.js.map +1 -1
- package/dist/recipeOrchestration.d.ts +59 -0
- package/dist/recipeOrchestration.js +314 -60
- package/dist/recipeOrchestration.js.map +1 -1
- package/dist/recipeRoutes.d.ts +93 -0
- package/dist/recipeRoutes.js +664 -27
- package/dist/recipeRoutes.js.map +1 -1
- package/dist/recipes/RecipeOrchestrator.d.ts +14 -0
- package/dist/recipes/RecipeOrchestrator.js +42 -2
- package/dist/recipes/RecipeOrchestrator.js.map +1 -1
- package/dist/recipes/agentExecutor.d.ts +51 -2
- package/dist/recipes/agentExecutor.js +86 -13
- package/dist/recipes/agentExecutor.js.map +1 -1
- package/dist/recipes/chainedRunner.d.ts +111 -3
- package/dist/recipes/chainedRunner.js +440 -45
- package/dist/recipes/chainedRunner.js.map +1 -1
- package/dist/recipes/compiler.js +42 -29
- package/dist/recipes/compiler.js.map +1 -1
- package/dist/recipes/connectorPreflight.js +31 -0
- package/dist/recipes/connectorPreflight.js.map +1 -1
- package/dist/recipes/dependencyGraph.d.ts +16 -0
- package/dist/recipes/dependencyGraph.js +37 -2
- package/dist/recipes/dependencyGraph.js.map +1 -1
- package/dist/recipes/eventTriggerPrograms.d.ts +36 -0
- package/dist/recipes/eventTriggerPrograms.js +158 -0
- package/dist/recipes/eventTriggerPrograms.js.map +1 -0
- package/dist/recipes/githubInstallSource.d.ts +9 -2
- package/dist/recipes/githubInstallSource.js +36 -6
- package/dist/recipes/githubInstallSource.js.map +1 -1
- package/dist/recipes/haltCategory.d.ts +10 -0
- package/dist/recipes/haltCategory.js +11 -1
- package/dist/recipes/haltCategory.js.map +1 -1
- package/dist/recipes/idempotencyKey.d.ts +30 -3
- package/dist/recipes/idempotencyKey.js +89 -5
- package/dist/recipes/idempotencyKey.js.map +1 -1
- package/dist/recipes/installer.js +12 -35
- package/dist/recipes/installer.js.map +1 -1
- package/dist/recipes/judgeVerdict.d.ts +11 -1
- package/dist/recipes/judgeVerdict.js +47 -7
- package/dist/recipes/judgeVerdict.js.map +1 -1
- package/dist/recipes/names.d.ts +5 -0
- package/dist/recipes/names.js +10 -5
- package/dist/recipes/names.js.map +1 -1
- package/dist/recipes/parser.js +74 -10
- package/dist/recipes/parser.js.map +1 -1
- package/dist/recipes/pricing/costRouter.d.ts +43 -0
- package/dist/recipes/pricing/costRouter.js +44 -0
- package/dist/recipes/pricing/costRouter.js.map +1 -0
- package/dist/recipes/pricing/priceTable.d.ts +76 -0
- package/dist/recipes/pricing/priceTable.js +144 -0
- package/dist/recipes/pricing/priceTable.js.map +1 -0
- package/dist/recipes/replayRun.js +5 -2
- package/dist/recipes/replayRun.js.map +1 -1
- package/dist/recipes/resolveRecipePath.js +15 -1
- package/dist/recipes/resolveRecipePath.js.map +1 -1
- package/dist/recipes/runBudget.d.ts +93 -32
- package/dist/recipes/runBudget.js +213 -49
- package/dist/recipes/runBudget.js.map +1 -1
- package/dist/recipes/runRegistry.d.ts +32 -0
- package/dist/recipes/runRegistry.js +54 -0
- package/dist/recipes/runRegistry.js.map +1 -0
- package/dist/recipes/scheduler.js +6 -2
- package/dist/recipes/scheduler.js.map +1 -1
- package/dist/recipes/schema.d.ts +59 -6
- package/dist/recipes/schemaGenerator.d.ts +9 -0
- package/dist/recipes/schemaGenerator.js +446 -77
- package/dist/recipes/schemaGenerator.js.map +1 -1
- package/dist/recipes/simulation/aggregateRunRisk.d.ts +46 -0
- package/dist/recipes/simulation/aggregateRunRisk.js +120 -0
- package/dist/recipes/simulation/aggregateRunRisk.js.map +1 -0
- package/dist/recipes/simulation/costProjector.d.ts +32 -0
- package/dist/recipes/simulation/costProjector.js +194 -0
- package/dist/recipes/simulation/costProjector.js.map +1 -0
- package/dist/recipes/simulation/sideEffects.d.ts +32 -0
- package/dist/recipes/simulation/sideEffects.js +62 -0
- package/dist/recipes/simulation/sideEffects.js.map +1 -0
- package/dist/recipes/simulation/simulate.d.ts +36 -0
- package/dist/recipes/simulation/simulate.js +264 -0
- package/dist/recipes/simulation/simulate.js.map +1 -0
- package/dist/recipes/simulation/simulateMockedRun.d.ts +52 -0
- package/dist/recipes/simulation/simulateMockedRun.js +84 -0
- package/dist/recipes/simulation/simulateMockedRun.js.map +1 -0
- package/dist/recipes/simulation/synthesizeMockedOutputs.d.ts +31 -0
- package/dist/recipes/simulation/synthesizeMockedOutputs.js +50 -0
- package/dist/recipes/simulation/synthesizeMockedOutputs.js.map +1 -0
- package/dist/recipes/simulation/types.d.ts +198 -0
- package/dist/recipes/simulation/types.js +30 -0
- package/dist/recipes/simulation/types.js.map +1 -0
- package/dist/recipes/stepObservation.d.ts +12 -0
- package/dist/recipes/stepObservation.js +21 -1
- package/dist/recipes/stepObservation.js.map +1 -1
- package/dist/recipes/toolRegistry.js +61 -24
- package/dist/recipes/toolRegistry.js.map +1 -1
- package/dist/recipes/tools/airtable.d.ts +15 -0
- package/dist/recipes/tools/airtable.js +240 -0
- package/dist/recipes/tools/airtable.js.map +1 -0
- package/dist/recipes/tools/caldiy.d.ts +13 -0
- package/dist/recipes/tools/caldiy.js +215 -0
- package/dist/recipes/tools/caldiy.js.map +1 -0
- package/dist/recipes/tools/circleci.d.ts +10 -0
- package/dist/recipes/tools/circleci.js +204 -0
- package/dist/recipes/tools/circleci.js.map +1 -0
- package/dist/recipes/tools/cloudflare.d.ts +13 -0
- package/dist/recipes/tools/cloudflare.js +211 -0
- package/dist/recipes/tools/cloudflare.js.map +1 -0
- package/dist/recipes/tools/confluence.js +11 -10
- package/dist/recipes/tools/confluence.js.map +1 -1
- package/dist/recipes/tools/datadog.js +13 -12
- package/dist/recipes/tools/datadog.js.map +1 -1
- package/dist/recipes/tools/docs.d.ts +18 -0
- package/dist/recipes/tools/docs.js +95 -0
- package/dist/recipes/tools/docs.js.map +1 -0
- package/dist/recipes/tools/elasticsearch.d.ts +11 -0
- package/dist/recipes/tools/elasticsearch.js +157 -0
- package/dist/recipes/tools/elasticsearch.js.map +1 -0
- package/dist/recipes/tools/fanOut.js +4 -4
- package/dist/recipes/tools/fanOut.js.map +1 -1
- package/dist/recipes/tools/figma.d.ts +12 -0
- package/dist/recipes/tools/figma.js +195 -0
- package/dist/recipes/tools/figma.js.map +1 -0
- package/dist/recipes/tools/file.js +43 -22
- package/dist/recipes/tools/file.js.map +1 -1
- package/dist/recipes/tools/github.js +162 -5
- package/dist/recipes/tools/github.js.map +1 -1
- package/dist/recipes/tools/gmail.js +45 -33
- package/dist/recipes/tools/gmail.js.map +1 -1
- package/dist/recipes/tools/grafana.d.ts +11 -0
- package/dist/recipes/tools/grafana.js +216 -0
- package/dist/recipes/tools/grafana.js.map +1 -0
- package/dist/recipes/tools/http.d.ts +1 -1
- package/dist/recipes/tools/http.js +10 -28
- package/dist/recipes/tools/http.js.map +1 -1
- package/dist/recipes/tools/hubspot.js +13 -12
- package/dist/recipes/tools/hubspot.js.map +1 -1
- package/dist/recipes/tools/index.d.ts +28 -0
- package/dist/recipes/tools/index.js +28 -0
- package/dist/recipes/tools/index.js.map +1 -1
- package/dist/recipes/tools/intercom.js +11 -10
- package/dist/recipes/tools/intercom.js.map +1 -1
- package/dist/recipes/tools/jira.js +13 -0
- package/dist/recipes/tools/jira.js.map +1 -1
- package/dist/recipes/tools/meetingNotes.js +2 -2
- package/dist/recipes/tools/monday.d.ts +22 -0
- package/dist/recipes/tools/monday.js +242 -0
- package/dist/recipes/tools/monday.js.map +1 -0
- package/dist/recipes/tools/mongodb.d.ts +19 -0
- package/dist/recipes/tools/mongodb.js +194 -0
- package/dist/recipes/tools/mongodb.js.map +1 -0
- package/dist/recipes/tools/notion.js +11 -10
- package/dist/recipes/tools/notion.js.map +1 -1
- package/dist/recipes/tools/obsidian.d.ts +15 -0
- package/dist/recipes/tools/obsidian.js +173 -0
- package/dist/recipes/tools/obsidian.js.map +1 -0
- package/dist/recipes/tools/outcomes.d.ts +15 -0
- package/dist/recipes/tools/outcomes.js +111 -0
- package/dist/recipes/tools/outcomes.js.map +1 -0
- package/dist/recipes/tools/paystack.d.ts +11 -0
- package/dist/recipes/tools/paystack.js +212 -0
- package/dist/recipes/tools/paystack.js.map +1 -0
- package/dist/recipes/tools/pipedrive.d.ts +16 -0
- package/dist/recipes/tools/pipedrive.js +234 -0
- package/dist/recipes/tools/pipedrive.js.map +1 -0
- package/dist/recipes/tools/postgres.d.ts +15 -0
- package/dist/recipes/tools/postgres.js +186 -0
- package/dist/recipes/tools/postgres.js.map +1 -0
- package/dist/recipes/tools/posthog.d.ts +16 -0
- package/dist/recipes/tools/posthog.js +219 -0
- package/dist/recipes/tools/posthog.js.map +1 -0
- package/dist/recipes/tools/redis.d.ts +9 -0
- package/dist/recipes/tools/redis.js +141 -0
- package/dist/recipes/tools/redis.js.map +1 -0
- package/dist/recipes/tools/resend.d.ts +8 -0
- package/dist/recipes/tools/resend.js +153 -0
- package/dist/recipes/tools/resend.js.map +1 -0
- package/dist/recipes/tools/salesforce.d.ts +16 -0
- package/dist/recipes/tools/salesforce.js +184 -0
- package/dist/recipes/tools/salesforce.js.map +1 -0
- package/dist/recipes/tools/sendgrid.d.ts +9 -0
- package/dist/recipes/tools/sendgrid.js +175 -0
- package/dist/recipes/tools/sendgrid.js.map +1 -0
- package/dist/recipes/tools/shopify.d.ts +16 -0
- package/dist/recipes/tools/shopify.js +266 -0
- package/dist/recipes/tools/shopify.js.map +1 -0
- package/dist/recipes/tools/snowflake.d.ts +16 -0
- package/dist/recipes/tools/snowflake.js +173 -0
- package/dist/recipes/tools/snowflake.js.map +1 -0
- package/dist/recipes/tools/stripe.js +13 -12
- package/dist/recipes/tools/stripe.js.map +1 -1
- package/dist/recipes/tools/supabase.d.ts +9 -0
- package/dist/recipes/tools/supabase.js +133 -0
- package/dist/recipes/tools/supabase.js.map +1 -0
- package/dist/recipes/tools/todoist.d.ts +15 -0
- package/dist/recipes/tools/todoist.js +228 -0
- package/dist/recipes/tools/todoist.js.map +1 -0
- package/dist/recipes/tools/twilio.d.ts +11 -0
- package/dist/recipes/tools/twilio.js +180 -0
- package/dist/recipes/tools/twilio.js.map +1 -0
- package/dist/recipes/tools/vercel.d.ts +9 -0
- package/dist/recipes/tools/vercel.js +146 -0
- package/dist/recipes/tools/vercel.js.map +1 -0
- package/dist/recipes/tools/webflow.d.ts +11 -0
- package/dist/recipes/tools/webflow.js +244 -0
- package/dist/recipes/tools/webflow.js.map +1 -0
- package/dist/recipes/tools/woocommerce.d.ts +18 -0
- package/dist/recipes/tools/woocommerce.js +260 -0
- package/dist/recipes/tools/woocommerce.js.map +1 -0
- package/dist/recipes/tools/wrapConnectorExecute.d.ts +25 -0
- package/dist/recipes/tools/wrapConnectorExecute.js +37 -0
- package/dist/recipes/tools/wrapConnectorExecute.js.map +1 -0
- package/dist/recipes/tools/zendesk.js +11 -10
- package/dist/recipes/tools/zendesk.js.map +1 -1
- package/dist/recipes/triggerVars.d.ts +15 -0
- package/dist/recipes/triggerVars.js +57 -0
- package/dist/recipes/triggerVars.js.map +1 -0
- package/dist/recipes/validation.d.ts +1 -1
- package/dist/recipes/validation.js +536 -12
- package/dist/recipes/validation.js.map +1 -1
- package/dist/recipes/yamlPositions.d.ts +1 -1
- package/dist/recipes/yamlPositions.js +7 -2
- package/dist/recipes/yamlPositions.js.map +1 -1
- package/dist/recipes/yamlRunner.d.ts +216 -4
- package/dist/recipes/yamlRunner.js +1030 -96
- package/dist/recipes/yamlRunner.js.map +1 -1
- package/dist/recipesHttp.d.ts +5 -0
- package/dist/recipesHttp.js +68 -6
- package/dist/recipesHttp.js.map +1 -1
- package/dist/resources.js +14 -1
- package/dist/resources.js.map +1 -1
- package/dist/riskSignals.d.ts +42 -0
- package/dist/riskSignals.js +197 -0
- package/dist/riskSignals.js.map +1 -0
- package/dist/riskTier.d.ts +9 -0
- package/dist/riskTier.js +48 -0
- package/dist/riskTier.js.map +1 -1
- package/dist/runLog.d.ts +53 -0
- package/dist/runLog.js +75 -16
- package/dist/runLog.js.map +1 -1
- package/dist/schemas/recipe.v1.json +360 -16
- package/dist/server.d.ts +60 -0
- package/dist/server.js +192 -31
- package/dist/server.js.map +1 -1
- package/dist/sessionCheckpoint.js +4 -1
- package/dist/sessionCheckpoint.js.map +1 -1
- package/dist/sessionDetail.d.ts +43 -0
- package/dist/sessionDetail.js +59 -0
- package/dist/sessionDetail.js.map +1 -0
- package/dist/settingsEnv.d.ts +47 -0
- package/dist/settingsEnv.js +88 -0
- package/dist/settingsEnv.js.map +1 -0
- package/dist/streamableHttp.js +44 -10
- package/dist/streamableHttp.js.map +1 -1
- package/dist/ta/backtest/abnday.d.ts +53 -0
- package/dist/ta/backtest/abnday.js +123 -0
- package/dist/ta/backtest/abnday.js.map +1 -0
- package/dist/ta/backtest/directional.d.ts +48 -0
- package/dist/ta/backtest/directional.js +103 -0
- package/dist/ta/backtest/directional.js.map +1 -0
- package/dist/ta/backtest/fundx.d.ts +67 -0
- package/dist/ta/backtest/fundx.js +264 -0
- package/dist/ta/backtest/fundx.js.map +1 -0
- package/dist/ta/backtest/fvg.d.ts +62 -0
- package/dist/ta/backtest/fvg.js +236 -0
- package/dist/ta/backtest/fvg.js.map +1 -0
- package/dist/ta/backtest/ichimoku.d.ts +41 -0
- package/dist/ta/backtest/ichimoku.js +146 -0
- package/dist/ta/backtest/ichimoku.js.map +1 -0
- package/dist/ta/backtest/ingest.d.ts +20 -0
- package/dist/ta/backtest/ingest.js +104 -0
- package/dist/ta/backtest/ingest.js.map +1 -0
- package/dist/ta/backtest/msb.d.ts +49 -0
- package/dist/ta/backtest/msb.js +162 -0
- package/dist/ta/backtest/msb.js.map +1 -0
- package/dist/ta/backtest/scoring.d.ts +33 -0
- package/dist/ta/backtest/scoring.js +82 -0
- package/dist/ta/backtest/scoring.js.map +1 -0
- package/dist/ta/backtest/summary.d.ts +20 -0
- package/dist/ta/backtest/summary.js +42 -0
- package/dist/ta/backtest/summary.js.map +1 -0
- package/dist/ta/backtest/tsmom.d.ts +72 -0
- package/dist/ta/backtest/tsmom.js +202 -0
- package/dist/ta/backtest/tsmom.js.map +1 -0
- package/dist/ta/backtest/volsq.d.ts +34 -0
- package/dist/ta/backtest/volsq.js +154 -0
- package/dist/ta/backtest/volsq.js.map +1 -0
- package/dist/ta/backtest/walkForward.d.ts +45 -0
- package/dist/ta/backtest/walkForward.js +136 -0
- package/dist/ta/backtest/walkForward.js.map +1 -0
- package/dist/ta/cycles.d.ts +15 -0
- package/dist/ta/cycles.js +31 -0
- package/dist/ta/cycles.js.map +1 -0
- package/dist/ta/desk/accrualEmitter.d.ts +59 -0
- package/dist/ta/desk/accrualEmitter.js +136 -0
- package/dist/ta/desk/accrualEmitter.js.map +1 -0
- package/dist/ta/desk/cellBacktest.d.ts +179 -0
- package/dist/ta/desk/cellBacktest.js +514 -0
- package/dist/ta/desk/cellBacktest.js.map +1 -0
- package/dist/ta/desk/cells/wpMaRejection.d.ts +49 -0
- package/dist/ta/desk/cells/wpMaRejection.js +141 -0
- package/dist/ta/desk/cells/wpMaRejection.js.map +1 -0
- package/dist/ta/desk/cells/wpVolumeClimax.d.ts +57 -0
- package/dist/ta/desk/cells/wpVolumeClimax.js +193 -0
- package/dist/ta/desk/cells/wpVolumeClimax.js.map +1 -0
- package/dist/ta/desk/collectors.d.ts +18 -0
- package/dist/ta/desk/collectors.js +450 -0
- package/dist/ta/desk/collectors.js.map +1 -0
- package/dist/ta/desk/contract.d.ts +51 -0
- package/dist/ta/desk/contract.js +261 -0
- package/dist/ta/desk/contract.js.map +1 -0
- package/dist/ta/desk/deskLedger.d.ts +36 -0
- package/dist/ta/desk/deskLedger.js +239 -0
- package/dist/ta/desk/deskLedger.js.map +1 -0
- package/dist/ta/desk/liqTape.d.ts +37 -0
- package/dist/ta/desk/liqTape.js +99 -0
- package/dist/ta/desk/liqTape.js.map +1 -0
- package/dist/ta/desk/post.d.ts +20 -0
- package/dist/ta/desk/post.js +65 -0
- package/dist/ta/desk/post.js.map +1 -0
- package/dist/ta/desk/render.d.ts +25 -0
- package/dist/ta/desk/render.js +398 -0
- package/dist/ta/desk/render.js.map +1 -0
- package/dist/ta/desk/surfaces.d.ts +216 -0
- package/dist/ta/desk/surfaces.js +472 -0
- package/dist/ta/desk/surfaces.js.map +1 -0
- package/dist/ta/desk/types.d.ts +174 -0
- package/dist/ta/desk/types.js +104 -0
- package/dist/ta/desk/types.js.map +1 -0
- package/dist/ta/index.d.ts +23 -0
- package/dist/ta/index.js +54 -0
- package/dist/ta/index.js.map +1 -0
- package/dist/ta/ledger.d.ts +44 -0
- package/dist/ta/ledger.js +95 -0
- package/dist/ta/ledger.js.map +1 -0
- package/dist/ta/levels.d.ts +21 -0
- package/dist/ta/levels.js +41 -0
- package/dist/ta/levels.js.map +1 -0
- package/dist/ta/swings.d.ts +30 -0
- package/dist/ta/swings.js +83 -0
- package/dist/ta/swings.js.map +1 -0
- package/dist/ta/types.d.ts +81 -0
- package/dist/ta/types.js +20 -0
- package/dist/ta/types.js.map +1 -0
- package/dist/telemetry.js +20 -9
- package/dist/telemetry.js.map +1 -1
- package/dist/tokenUsageTracker.d.ts +2 -1
- package/dist/tokenUsageTracker.js +38 -20
- package/dist/tokenUsageTracker.js.map +1 -1
- package/dist/tools/contextBundle.js +13 -9
- package/dist/tools/contextBundle.js.map +1 -1
- package/dist/tools/ctxGetTaskContext.js +8 -3
- package/dist/tools/ctxGetTaskContext.js.map +1 -1
- package/dist/tools/ctxQueryTraces.d.ts +18 -1
- package/dist/tools/ctxQueryTraces.js +176 -27
- package/dist/tools/ctxQueryTraces.js.map +1 -1
- package/dist/tools/enrichCommit.js +5 -2
- package/dist/tools/enrichCommit.js.map +1 -1
- package/dist/tools/getDependencyTree.js +2 -2
- package/dist/tools/getDependencyTree.js.map +1 -1
- package/dist/tools/getDiagnostics.js +3 -0
- package/dist/tools/getDiagnostics.js.map +1 -1
- package/dist/tools/getDocumentSymbols.js +5 -1
- package/dist/tools/getDocumentSymbols.js.map +1 -1
- package/dist/tools/getGitHotspots.js +12 -1
- package/dist/tools/getGitHotspots.js.map +1 -1
- package/dist/tools/getGitLog.js +5 -2
- package/dist/tools/getGitLog.js.map +1 -1
- package/dist/tools/getGitStatus.js +6 -1
- package/dist/tools/getGitStatus.js.map +1 -1
- package/dist/tools/getProjectContext.js +3 -1
- package/dist/tools/getProjectContext.js.map +1 -1
- package/dist/tools/getToolCapabilities.js +39 -4
- package/dist/tools/getToolCapabilities.js.map +1 -1
- package/dist/tools/gitWrite.js +12 -3
- package/dist/tools/gitWrite.js.map +1 -1
- package/dist/tools/github/composite.d.ts +1 -1
- package/dist/tools/github/composite.js +7 -7
- package/dist/tools/github/composite.js.map +1 -1
- package/dist/tools/github/pr.d.ts +6 -6
- package/dist/tools/github/pr.js +18 -11
- package/dist/tools/github/pr.js.map +1 -1
- package/dist/tools/httpClient.js +55 -3
- package/dist/tools/httpClient.js.map +1 -1
- package/dist/tools/index.d.ts +2 -1
- package/dist/tools/index.js +19 -12
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/lsp.d.ts +6 -0
- package/dist/tools/lsp.js +81 -12
- package/dist/tools/lsp.js.map +1 -1
- package/dist/tools/previewEdit.js +16 -1
- package/dist/tools/previewEdit.js.map +1 -1
- package/dist/tools/resumeClaudeTask.js +17 -0
- package/dist/tools/resumeClaudeTask.js.map +1 -1
- package/dist/tools/searchAndReplace.js +9 -5
- package/dist/tools/searchAndReplace.js.map +1 -1
- package/dist/tools/searchTools.d.ts +26 -0
- package/dist/tools/searchTools.js +42 -2
- package/dist/tools/searchTools.js.map +1 -1
- package/dist/tools/terminal.js +23 -51
- package/dist/tools/terminal.js.map +1 -1
- package/dist/tools/transaction.d.ts +9 -1
- package/dist/tools/transaction.js +59 -4
- package/dist/tools/transaction.js.map +1 -1
- package/dist/tools/utils.d.ts +16 -0
- package/dist/tools/utils.js +77 -7
- package/dist/tools/utils.js.map +1 -1
- package/dist/transport.d.ts +31 -0
- package/dist/transport.js +117 -14
- package/dist/transport.js.map +1 -1
- package/dist/wireHaltPushDispatch.js +12 -0
- package/dist/wireHaltPushDispatch.js.map +1 -1
- package/dist/workerGateDecisionLog.d.ts +141 -0
- package/dist/workerGateDecisionLog.js +361 -0
- package/dist/workerGateDecisionLog.js.map +1 -0
- package/dist/workers/actionClass.d.ts +38 -0
- package/dist/workers/actionClass.js +155 -0
- package/dist/workers/actionClass.js.map +1 -0
- package/dist/workers/backtest.d.ts +68 -0
- package/dist/workers/backtest.js +113 -0
- package/dist/workers/backtest.js.map +1 -0
- package/dist/workers/contextRisk.d.ts +35 -0
- package/dist/workers/contextRisk.js +20 -0
- package/dist/workers/contextRisk.js.map +1 -0
- package/dist/workers/contextRiskScorer.d.ts +48 -0
- package/dist/workers/contextRiskScorer.js +94 -0
- package/dist/workers/contextRiskScorer.js.map +1 -0
- package/dist/workers/graduation.d.ts +61 -0
- package/dist/workers/graduation.js +112 -0
- package/dist/workers/graduation.js.map +1 -0
- package/dist/workers/outcomeStore.d.ts +98 -0
- package/dist/workers/outcomeStore.js +146 -0
- package/dist/workers/outcomeStore.js.map +1 -0
- package/dist/workers/outcomesCli.d.ts +34 -0
- package/dist/workers/outcomesCli.js +91 -0
- package/dist/workers/outcomesCli.js.map +1 -0
- package/dist/workers/runWorkerShadow.d.ts +90 -0
- package/dist/workers/runWorkerShadow.js +323 -0
- package/dist/workers/runWorkerShadow.js.map +1 -0
- package/dist/workers/shadowGate.d.ts +30 -0
- package/dist/workers/shadowGate.js +58 -0
- package/dist/workers/shadowGate.js.map +1 -0
- package/dist/workers/shadowObserver.d.ts +165 -0
- package/dist/workers/shadowObserver.js +203 -0
- package/dist/workers/shadowObserver.js.map +1 -0
- package/dist/workers/shadowReport.d.ts +16 -0
- package/dist/workers/shadowReport.js +61 -0
- package/dist/workers/shadowReport.js.map +1 -0
- package/dist/workers/shadowRun.d.ts +38 -0
- package/dist/workers/shadowRun.js +44 -0
- package/dist/workers/shadowRun.js.map +1 -0
- package/dist/workers/trustLevel.d.ts +82 -0
- package/dist/workers/trustLevel.js +100 -0
- package/dist/workers/trustLevel.js.map +1 -0
- package/dist/workers/worker.d.ts +49 -0
- package/dist/workers/worker.js +88 -0
- package/dist/workers/worker.js.map +1 -0
- package/dist/workers/workerGate.d.ts +101 -0
- package/dist/workers/workerGate.js +210 -0
- package/dist/workers/workerGate.js.map +1 -0
- package/dist/workers/workerLevelStore.d.ts +33 -0
- package/dist/workers/workerLevelStore.js +87 -0
- package/dist/workers/workerLevelStore.js.map +1 -0
- package/dist/workers/workerLoader.d.ts +7 -0
- package/dist/workers/workerLoader.js +31 -0
- package/dist/workers/workerLoader.js.map +1 -0
- package/dist/writeFileAtomic.js +40 -13
- package/dist/writeFileAtomic.js.map +1 -1
- package/package.json +14 -6
- package/scripts/mcp-stdio-shim.cjs +247 -87
- package/templates/CLAUDE.bridge.md +1 -1
- package/templates/recipes/dependency-bump.yaml +33 -0
- package/templates/recipes/incident-to-pr.yaml +187 -0
- package/templates/recipes/outcome-ingester.yaml +53 -0
- package/templates/recipes/release-notes.yaml +30 -0
- package/templates/recipes/triage-failing-tests-autofile.yaml +152 -0
- package/templates/recipes/triage-failing-tests.yaml +38 -0
- package/templates/workers/dependency-upkeep.worker.yaml +26 -0
- package/templates/workers/release-notes.worker.yaml +17 -0
- package/templates/workers/test-guardian.worker.yaml +24 -0
- package/deploy/README.md +0 -172
- package/deploy/bootstrap-new-vps.sh +0 -364
- package/deploy/bootstrap-vps.sh +0 -192
- package/deploy/claude-ide-bridge.service.template +0 -67
- package/deploy/claude-ide-bridge@.service +0 -31
- package/deploy/deploy-dashboard.sh +0 -198
- package/deploy/deploy-landing.sh +0 -136
- package/deploy/ecosystem.config.js.example +0 -36
- package/deploy/install-vps-service.sh +0 -240
- package/deploy/macos/README.md +0 -153
- package/deploy/macos/com.patchwork.bridge.plist.template +0 -54
- package/deploy/macos/com.patchwork.tunnel.plist.template +0 -76
- package/deploy/macos/install-mac-bridge.sh +0 -244
- package/deploy/macos/uninstall-mac-bridge.sh +0 -22
- package/deploy/nginx-claude-bridge.conf.template +0 -129
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patchworkInit.js","sourceRoot":"","sources":["../../src/commands/patchworkInit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EACL,YAAY,EACZ,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EACL,UAAU,EAEV,UAAU,GACX,MAAM,uB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ACxC,CAAC,CAAC,2BAA2B,OAAO,CAAC,QAAQ,kCAAkC;QAC/E,CAAC,CAAC,EAAE,CAAC;IAEP,GAAG,CAAC,GAAG,WAAW,GAAG,gBAAgB;;;;;wFAKiD,CAAC,CAAC;IAExF,OAAO;QACL,UAAU;QACV,UAAU;QACV,aAAa;QACb,cAAc;QACd,cAAc;QACd,iBAAiB;QACjB,eAAe;QACf,YAAY;QACZ,cAAc;KACf,CAAC;AACJ,CAAC"}
|
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import "../recipes/tools/index.js";
|
|
7
7
|
import { type HaltCategory } from "../recipes/haltCategory.js";
|
|
8
|
+
import type { RecipeSimulationReport } from "../recipes/simulation/types.js";
|
|
8
9
|
import { type LintIssue, type LintResult } from "../recipes/validation.js";
|
|
9
10
|
import { type RunnerDeps, type RunResult, type YamlRecipe } from "../recipes/yamlRunner.js";
|
|
11
|
+
import type { RecipeRunLog } from "../runLog.js";
|
|
10
12
|
export interface NewOptions {
|
|
11
13
|
name: string;
|
|
12
14
|
description: string;
|
|
@@ -224,6 +226,18 @@ export interface RecipeDryRunPlan {
|
|
|
224
226
|
};
|
|
225
227
|
}
|
|
226
228
|
export declare function runRecipeDryPlan(recipeRef: string, options?: RunRecipeOptions): Promise<RecipeDryRunPlan>;
|
|
229
|
+
/**
|
|
230
|
+
* What-If Preview — run a static counterfactual simulation of a recipe.
|
|
231
|
+
*
|
|
232
|
+
* Produces the dry-run plan first (no execution), then transforms it into a
|
|
233
|
+
* {@link RecipeSimulationReport} that projects actions, side-effect taxonomy,
|
|
234
|
+
* blast-radius-aware risk, a tier-only approval projection (honestly flagged as
|
|
235
|
+
* NOT gated on recipe steps today), a low-confidence cost estimate, and the
|
|
236
|
+
* conditional branches it refuses to resolve statically. Zero side effects.
|
|
237
|
+
*/
|
|
238
|
+
export declare function runRecipeSimulate(recipeRef: string, options?: RunRecipeOptions & {
|
|
239
|
+
runLog?: RecipeRunLog;
|
|
240
|
+
}): Promise<RecipeSimulationReport>;
|
|
227
241
|
export type PreflightIssueCode = "unresolved-tool" | "unacknowledged-write" | "missing-fixture" | "lint-error" | "lint-warning" | "into-shadows-builtin" | "into-duplicate";
|
|
228
242
|
export interface PreflightIssue {
|
|
229
243
|
level: "error" | "warning";
|
|
@@ -289,6 +303,11 @@ export interface DoctorRuntimeHalts {
|
|
|
289
303
|
runSeq: number;
|
|
290
304
|
}>;
|
|
291
305
|
}
|
|
306
|
+
/** One connection-status entry as reported by the bridge `/connections` list. */
|
|
307
|
+
export interface DoctorConnectionEntry {
|
|
308
|
+
id?: string;
|
|
309
|
+
status?: string;
|
|
310
|
+
}
|
|
292
311
|
export interface RecipeDoctorOptions extends PreflightOptions {
|
|
293
312
|
/**
|
|
294
313
|
* Fetches recent runtime halts for the recipe by name. Returns null when
|
|
@@ -296,6 +315,21 @@ export interface RecipeDoctorOptions extends PreflightOptions {
|
|
|
296
315
|
* the bridge walk lives in the CLI layer and the command stays testable.
|
|
297
316
|
*/
|
|
298
317
|
fetchHalts?: (recipeName: string) => Promise<DoctorRuntimeHalts | null>;
|
|
318
|
+
/**
|
|
319
|
+
* Fetches the current connector statuses (`/connections` payload — the
|
|
320
|
+
* same `handleConnectionsList` source the dashboard install preflight
|
|
321
|
+
* uses). Returns null when no bridge is reachable, in which case doctor
|
|
322
|
+
* reports the *required* connectors statically but skips the
|
|
323
|
+
* authorized/missing classification. Injected for the same reason as
|
|
324
|
+
* `fetchHalts`: the bridge walk stays in the CLI layer and the command
|
|
325
|
+
* stays testable.
|
|
326
|
+
*
|
|
327
|
+
* "Connector not authorized" is the #1 runtime-halt class — surfacing the
|
|
328
|
+
* unauthenticated connectors a recipe needs (with the one-command fix)
|
|
329
|
+
* turns the most common silent first-run failure into an up-front
|
|
330
|
+
* diagnosis.
|
|
331
|
+
*/
|
|
332
|
+
fetchConnections?: () => Promise<DoctorConnectionEntry[] | null>;
|
|
299
333
|
}
|
|
300
334
|
/**
|
|
301
335
|
* Static half of the doctor report. A lighter projection of
|
|
@@ -311,24 +345,45 @@ export interface DoctorStaticResult {
|
|
|
311
345
|
/** True when the recipe couldn't be planned (load threw) — lint-only. */
|
|
312
346
|
planSkipped?: boolean;
|
|
313
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
* Connector authorization diagnosis. `required` is always populated (static
|
|
350
|
+
* detection over the recipe's steps — no bridge needed). `missing` /
|
|
351
|
+
* `authorized` are only meaningful when `connectionsChecked` is true; when no
|
|
352
|
+
* bridge was reachable we still tell the user which connectors the recipe
|
|
353
|
+
* needs but can't say which are authorized.
|
|
354
|
+
*/
|
|
355
|
+
export interface DoctorConnectorsResult {
|
|
356
|
+
/** Connector ids the recipe requires (static detection). Sorted. */
|
|
357
|
+
required: string[];
|
|
358
|
+
/** Required connectors that are NOT in a "connected" state. */
|
|
359
|
+
missing: string[];
|
|
360
|
+
/** Required connectors that ARE connected. */
|
|
361
|
+
authorized: string[];
|
|
362
|
+
/** True when live connection statuses were fetched and classified. */
|
|
363
|
+
connectionsChecked: boolean;
|
|
364
|
+
/** Why the auth check was skipped (no bridge / not requested), if applicable. */
|
|
365
|
+
note?: string;
|
|
366
|
+
}
|
|
314
367
|
export interface RecipeDoctorResult {
|
|
315
368
|
recipe: string;
|
|
316
369
|
recipePath: string;
|
|
317
370
|
/** Static analysis: lint + write-policy + dry-plan (lint-only on load failure). */
|
|
318
371
|
static: DoctorStaticResult;
|
|
372
|
+
/** Required connectors + (when a bridge was reachable) their auth state. */
|
|
373
|
+
connectors: DoctorConnectorsResult;
|
|
319
374
|
/** Recent runtime halts, or null when no bridge was reachable. */
|
|
320
375
|
runtime: DoctorRuntimeHalts | null;
|
|
321
376
|
/** Why runtime is null (e.g. "no running bridge"), when applicable. */
|
|
322
377
|
runtimeNote?: string;
|
|
323
|
-
/** True when static passed AND no runtime halts were seen. */
|
|
378
|
+
/** True when static passed, no required connectors are missing, AND no runtime halts were seen. */
|
|
324
379
|
ok: boolean;
|
|
325
380
|
}
|
|
326
381
|
/**
|
|
327
382
|
* `recipe doctor` — one-screen "why is this recipe unhealthy + how do I
|
|
328
383
|
* fix it" diagnosis. Composes the static `preflight` check (lint + policy
|
|
329
|
-
* + plan) with the recipe-scoped runtime
|
|
330
|
-
* finding to an actionable hint. Fail-soft: a
|
|
331
|
-
* static-only rather than erroring.
|
|
384
|
+
* + plan) and static connector detection with the recipe-scoped runtime
|
|
385
|
+
* halt summary, mapping every finding to an actionable hint. Fail-soft: a
|
|
386
|
+
* missing bridge degrades to static-only rather than erroring.
|
|
332
387
|
*/
|
|
333
388
|
export declare function runRecipeDoctor(recipeRef: string, options?: RecipeDoctorOptions): Promise<RecipeDoctorResult>;
|
|
334
389
|
/**
|
package/dist/commands/recipe.js
CHANGED
|
@@ -11,10 +11,15 @@ import { parse as parseYaml, stringify as stringifyYaml } from "yaml";
|
|
|
11
11
|
import "../recipes/tools/index.js";
|
|
12
12
|
import { loadFixtureLibrary } from "../connectors/fixtureLibrary.js";
|
|
13
13
|
import { MockConnector } from "../connectors/mockConnector.js";
|
|
14
|
+
import { applyTriggerInputDefaults } from "../recipeOrchestration.js";
|
|
15
|
+
import { detectRequiredConnectors, findMissingConnectors, } from "../recipes/connectorPreflight.js";
|
|
14
16
|
import { HALT_CATEGORY_HINTS, HALT_CATEGORY_LABELS, } from "../recipes/haltCategory.js";
|
|
15
17
|
import { defaultDeprecationWarn, normalizeRecipeForRuntime, } from "../recipes/migrations/index.js";
|
|
16
18
|
import { tryResolveRecipePath } from "../recipes/resolveRecipePath.js";
|
|
17
19
|
import { generateSchemaSet, writeSchemas } from "../recipes/schemaGenerator.js";
|
|
20
|
+
import { projectCost } from "../recipes/simulation/costProjector.js";
|
|
21
|
+
import { simulateFromPlan, simulateMockedFromPlan, } from "../recipes/simulation/simulate.js";
|
|
22
|
+
import { simulateMockedRun } from "../recipes/simulation/simulateMockedRun.js";
|
|
18
23
|
import { getTool, isConnectorNamespace, listConnectorNamespaces, listTools, seedToolOutputPreviewContext, } from "../recipes/toolRegistry.js";
|
|
19
24
|
import { validateRecipeDefinition, } from "../recipes/validation.js";
|
|
20
25
|
import { buildChainedDeps, dispatchRecipe, loadYamlRecipe, render, runYamlRecipe, } from "../recipes/yamlRunner.js";
|
|
@@ -85,6 +90,13 @@ export function runNew(options) {
|
|
|
85
90
|
if (!options.name) {
|
|
86
91
|
throw new Error("Recipe name is required");
|
|
87
92
|
}
|
|
93
|
+
// Audit 2026-06-08 HIGH (cli-2): the non-interactive API interpolated `name`
|
|
94
|
+
// straight into the output path, so `../../../evil` escaped the recipes dir.
|
|
95
|
+
// Apply the same allowlist the interactive path uses.
|
|
96
|
+
if (!RECIPE_NAME_RE.test(options.name)) {
|
|
97
|
+
throw new Error(`Invalid recipe name "${options.name}" — use lowercase letters, digits, "-" or "_" ` +
|
|
98
|
+
"(2–64 chars, no path separators)");
|
|
99
|
+
}
|
|
88
100
|
if (!options.description) {
|
|
89
101
|
throw new Error("Recipe description is required");
|
|
90
102
|
}
|
|
@@ -780,11 +792,16 @@ export async function runRecipe(recipeRef, options = {}) {
|
|
|
780
792
|
if (options.dryRun) {
|
|
781
793
|
throw new Error("runRecipeDryPlan must be used for dry-run execution");
|
|
782
794
|
}
|
|
795
|
+
// Merge trigger.vars/inputs defaults underneath caller-provided vars, same as
|
|
796
|
+
// the HTTP orchestration path. Without this, cron recipes with var defaults
|
|
797
|
+
// (e.g. `label: "test-failure"`) get empty strings from {{label}} when run
|
|
798
|
+
// via CLI because the defaults are never seeded into the context.
|
|
799
|
+
const vars = applyTriggerInputDefaults(recipePath, options.vars) ?? {};
|
|
783
800
|
const result = await dispatchRecipe(recipeToRun, {
|
|
784
801
|
...runnerDeps,
|
|
785
802
|
chainedDeps: buildChainedDeps(runnerDeps),
|
|
786
803
|
chainedOptions: { sourcePath: recipePath },
|
|
787
|
-
},
|
|
804
|
+
}, vars);
|
|
788
805
|
return {
|
|
789
806
|
recipe,
|
|
790
807
|
recipePath,
|
|
@@ -1171,6 +1188,54 @@ export async function runRecipeDryPlan(recipeRef, options = {}) {
|
|
|
1171
1188
|
lint,
|
|
1172
1189
|
};
|
|
1173
1190
|
}
|
|
1191
|
+
/**
|
|
1192
|
+
* What-If Preview — run a static counterfactual simulation of a recipe.
|
|
1193
|
+
*
|
|
1194
|
+
* Produces the dry-run plan first (no execution), then transforms it into a
|
|
1195
|
+
* {@link RecipeSimulationReport} that projects actions, side-effect taxonomy,
|
|
1196
|
+
* blast-radius-aware risk, a tier-only approval projection (honestly flagged as
|
|
1197
|
+
* NOT gated on recipe steps today), a low-confidence cost estimate, and the
|
|
1198
|
+
* conditional branches it refuses to resolve statically. Zero side effects.
|
|
1199
|
+
*/
|
|
1200
|
+
export async function runRecipeSimulate(recipeRef, options = {}) {
|
|
1201
|
+
const plan = await runRecipeDryPlan(recipeRef, options);
|
|
1202
|
+
// P2 mocked sandbox — ONLY for chained recipes WITH run history and a
|
|
1203
|
+
// provided runLog. Flat recipes ALWAYS stay static (hard guard: the runner
|
|
1204
|
+
// is never driven for a flat recipe). Callers with no runLog (CLI) stay
|
|
1205
|
+
// static too.
|
|
1206
|
+
let report;
|
|
1207
|
+
if (plan.triggerType === "chained" && options.runLog) {
|
|
1208
|
+
try {
|
|
1209
|
+
const recipePath = resolveRecipePath(recipeRef);
|
|
1210
|
+
const recipe = loadYamlRecipe(recipePath);
|
|
1211
|
+
const recipeToPlan = options.step
|
|
1212
|
+
? { ...recipe, steps: [selectRecipeStep(recipe, options.step).step] }
|
|
1213
|
+
: recipe;
|
|
1214
|
+
const chainedRecipe = recipeToPlan;
|
|
1215
|
+
const mocked = await simulateMockedRun(chainedRecipe, options.runLog);
|
|
1216
|
+
if (mocked.sampleRuns > 0) {
|
|
1217
|
+
report = simulateMockedFromPlan(plan, mocked);
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
catch {
|
|
1221
|
+
// Fail-soft: fall through to the static report.
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
if (!report)
|
|
1225
|
+
report = simulateFromPlan(plan);
|
|
1226
|
+
// P3 cost projection — whenever a runLog is available (any fidelity/topology),
|
|
1227
|
+
// overlay a history-backed cost estimate. Degrades to the chars/4 heuristic /
|
|
1228
|
+
// "unavailable" shape when there is no usable history, so it is always safe.
|
|
1229
|
+
if (options.runLog) {
|
|
1230
|
+
try {
|
|
1231
|
+
report = { ...report, cost: projectCost(plan, options.runLog) };
|
|
1232
|
+
}
|
|
1233
|
+
catch {
|
|
1234
|
+
// Fail-soft: keep the static cost estimate already on the report.
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
return report;
|
|
1238
|
+
}
|
|
1174
1239
|
/**
|
|
1175
1240
|
* Static policy check over a recipe: lint + dry-plan + unresolved/write/fixture checks.
|
|
1176
1241
|
* No connector calls, no agent calls — safe to run in CI.
|
|
@@ -1263,12 +1328,50 @@ export function runPreflightWatch(options) {
|
|
|
1263
1328
|
};
|
|
1264
1329
|
return runWatch(watchOptions);
|
|
1265
1330
|
}
|
|
1331
|
+
/**
|
|
1332
|
+
* Map a loaded `YamlRecipe`'s steps into the schema `Step` shape that
|
|
1333
|
+
* `detectRequiredConnectors` consumes. The authoring YAML and the
|
|
1334
|
+
* connector-detection helper disagree on step shape — YAML carries
|
|
1335
|
+
* `tool?: string` plus a nested `agent?: { prompt }` object, while the
|
|
1336
|
+
* detector expects the flat schema form (`agent: false` carries `tool`,
|
|
1337
|
+
* `agent: true` carries `prompt` + optional `tools[]`). This adapter lets
|
|
1338
|
+
* the CLI reuse the exact helper the dashboard install preflight uses
|
|
1339
|
+
* (same `TOOL_NAMESPACE_TO_CONNECTOR` map, same prompt-scan) rather than
|
|
1340
|
+
* re-implementing detection. Tool steps feed the namespace path; agent
|
|
1341
|
+
* steps feed the prompt-scan path (YAML agent steps have no `tools[]`).
|
|
1342
|
+
*/
|
|
1343
|
+
function detectConnectorsForYamlRecipe(recipe) {
|
|
1344
|
+
const steps = recipe.steps.map((step, i) => {
|
|
1345
|
+
const id = typeof step.id === "string" ? step.id : `step-${i}`;
|
|
1346
|
+
if (typeof step.tool === "string") {
|
|
1347
|
+
return { id, agent: false, tool: step.tool, params: {} };
|
|
1348
|
+
}
|
|
1349
|
+
if (step.agent && typeof step.agent.prompt === "string") {
|
|
1350
|
+
return { id, agent: true, prompt: step.agent.prompt };
|
|
1351
|
+
}
|
|
1352
|
+
// Steps with neither a tool nor an agent prompt contribute nothing —
|
|
1353
|
+
// model them as an empty agent step so the detector skips them cleanly.
|
|
1354
|
+
return { id, agent: true, prompt: "" };
|
|
1355
|
+
});
|
|
1356
|
+
return detectRequiredConnectors({
|
|
1357
|
+
...recipe,
|
|
1358
|
+
steps,
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
/**
|
|
1362
|
+
* One-command fix hint for an unauthorized connector. Phrasing matches the
|
|
1363
|
+
* runtime `auth_failure` halt hint ("reconnect from /connections") so the
|
|
1364
|
+
* doctor's static and runtime advice line up.
|
|
1365
|
+
*/
|
|
1366
|
+
function connectorFixHint(connectorId) {
|
|
1367
|
+
return `authorize from /connections (or run \`patchwork recipe preflight\` after connecting "${connectorId}")`;
|
|
1368
|
+
}
|
|
1266
1369
|
/**
|
|
1267
1370
|
* `recipe doctor` — one-screen "why is this recipe unhealthy + how do I
|
|
1268
1371
|
* fix it" diagnosis. Composes the static `preflight` check (lint + policy
|
|
1269
|
-
* + plan) with the recipe-scoped runtime
|
|
1270
|
-
* finding to an actionable hint. Fail-soft: a
|
|
1271
|
-
* static-only rather than erroring.
|
|
1372
|
+
* + plan) and static connector detection with the recipe-scoped runtime
|
|
1373
|
+
* halt summary, mapping every finding to an actionable hint. Fail-soft: a
|
|
1374
|
+
* missing bridge degrades to static-only rather than erroring.
|
|
1272
1375
|
*/
|
|
1273
1376
|
export async function runRecipeDoctor(recipeRef, options = {}) {
|
|
1274
1377
|
const { fetchHalts, ...preflightOptions } = options;
|
|
@@ -1308,6 +1411,77 @@ export async function runRecipeDoctor(recipeRef, options = {}) {
|
|
|
1308
1411
|
};
|
|
1309
1412
|
}
|
|
1310
1413
|
const recipeName = staticResult.recipe;
|
|
1414
|
+
// --- Connector authorization ---------------------------------------
|
|
1415
|
+
// Static detection always runs (no bridge needed). When the recipe was
|
|
1416
|
+
// too broken to load above, fall back to an empty required-set rather
|
|
1417
|
+
// than crashing the whole diagnosis — the lint errors are the signal in
|
|
1418
|
+
// that case.
|
|
1419
|
+
let required = [];
|
|
1420
|
+
if (!staticResult.planSkipped) {
|
|
1421
|
+
try {
|
|
1422
|
+
required = detectConnectorsForYamlRecipe(loadYamlRecipe(recipePath));
|
|
1423
|
+
}
|
|
1424
|
+
catch {
|
|
1425
|
+
// A recipe that lints clean but fails to load here is unusual;
|
|
1426
|
+
// treat connector detection as best-effort and move on.
|
|
1427
|
+
required = [];
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
const { fetchConnections } = options;
|
|
1431
|
+
let connectors;
|
|
1432
|
+
if (required.length === 0) {
|
|
1433
|
+
connectors = {
|
|
1434
|
+
required,
|
|
1435
|
+
missing: [],
|
|
1436
|
+
authorized: [],
|
|
1437
|
+
connectionsChecked: false,
|
|
1438
|
+
note: staticResult.planSkipped
|
|
1439
|
+
? "connector detection skipped — recipe could not be loaded"
|
|
1440
|
+
: "recipe requires no Patchwork connectors",
|
|
1441
|
+
};
|
|
1442
|
+
}
|
|
1443
|
+
else if (fetchConnections) {
|
|
1444
|
+
try {
|
|
1445
|
+
const connections = await fetchConnections();
|
|
1446
|
+
if (connections === null) {
|
|
1447
|
+
connectors = {
|
|
1448
|
+
required,
|
|
1449
|
+
missing: [],
|
|
1450
|
+
authorized: [],
|
|
1451
|
+
connectionsChecked: false,
|
|
1452
|
+
note: "no running bridge — connector auth check skipped",
|
|
1453
|
+
};
|
|
1454
|
+
}
|
|
1455
|
+
else {
|
|
1456
|
+
const missing = findMissingConnectors(required, connections);
|
|
1457
|
+
const missingSet = new Set(missing);
|
|
1458
|
+
connectors = {
|
|
1459
|
+
required,
|
|
1460
|
+
missing,
|
|
1461
|
+
authorized: required.filter((id) => !missingSet.has(id)),
|
|
1462
|
+
connectionsChecked: true,
|
|
1463
|
+
};
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
catch (err) {
|
|
1467
|
+
connectors = {
|
|
1468
|
+
required,
|
|
1469
|
+
missing: [],
|
|
1470
|
+
authorized: [],
|
|
1471
|
+
connectionsChecked: false,
|
|
1472
|
+
note: `connector auth check failed: ${err instanceof Error ? err.message : String(err)}`,
|
|
1473
|
+
};
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
else {
|
|
1477
|
+
connectors = {
|
|
1478
|
+
required,
|
|
1479
|
+
missing: [],
|
|
1480
|
+
authorized: [],
|
|
1481
|
+
connectionsChecked: false,
|
|
1482
|
+
note: "connector auth check not requested",
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1311
1485
|
let runtime = null;
|
|
1312
1486
|
let runtimeNote;
|
|
1313
1487
|
if (fetchHalts) {
|
|
@@ -1325,11 +1499,14 @@ export async function runRecipeDoctor(recipeRef, options = {}) {
|
|
|
1325
1499
|
else {
|
|
1326
1500
|
runtimeNote = "runtime halt check not requested";
|
|
1327
1501
|
}
|
|
1328
|
-
const ok = staticResult.ok &&
|
|
1502
|
+
const ok = staticResult.ok &&
|
|
1503
|
+
connectors.missing.length === 0 &&
|
|
1504
|
+
(runtime?.total ?? 0) === 0;
|
|
1329
1505
|
return {
|
|
1330
1506
|
recipe: recipeName,
|
|
1331
1507
|
recipePath,
|
|
1332
1508
|
static: staticResult,
|
|
1509
|
+
connectors,
|
|
1333
1510
|
runtime,
|
|
1334
1511
|
runtimeNote,
|
|
1335
1512
|
ok,
|
|
@@ -1365,6 +1542,30 @@ export function formatRecipeDoctorReport(result) {
|
|
|
1365
1542
|
}
|
|
1366
1543
|
}
|
|
1367
1544
|
lines.push("");
|
|
1545
|
+
// --- Connectors: required vs authorized ---
|
|
1546
|
+
const c = result.connectors;
|
|
1547
|
+
if (c.required.length === 0) {
|
|
1548
|
+
lines.push(`Connectors: ✓ none required${c.note ? ` (${c.note})` : ""}`);
|
|
1549
|
+
}
|
|
1550
|
+
else if (!c.connectionsChecked) {
|
|
1551
|
+
// Couldn't classify auth state (no bridge / not requested) — still tell
|
|
1552
|
+
// the user which connectors the recipe needs so they can pre-authorize.
|
|
1553
|
+
lines.push(`Connectors: ${c.required.length} required — auth state unknown (${c.note ?? "unavailable"})`);
|
|
1554
|
+
lines.push(` needs: ${c.required.join(", ")}`);
|
|
1555
|
+
}
|
|
1556
|
+
else if (c.missing.length === 0) {
|
|
1557
|
+
lines.push(`Connectors: ✓ all ${c.required.length} authorized (${c.required.join(", ")})`);
|
|
1558
|
+
}
|
|
1559
|
+
else {
|
|
1560
|
+
lines.push(`Connectors: ${c.missing.length} of ${c.required.length} not authorized`);
|
|
1561
|
+
for (const id of c.missing) {
|
|
1562
|
+
lines.push(` ✗ ${id} — not authorized → ${connectorFixHint(id)}`);
|
|
1563
|
+
}
|
|
1564
|
+
if (c.authorized.length > 0) {
|
|
1565
|
+
lines.push(` ✓ authorized: ${c.authorized.join(", ")}`);
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
lines.push("");
|
|
1368
1569
|
// --- Runtime: recent halts ---
|
|
1369
1570
|
if (result.runtime === null) {
|
|
1370
1571
|
lines.push(`Runtime halts: — (${result.runtimeNote ?? "unavailable"})`);
|