@desplega.ai/agent-swarm 2.7.5 → 2.7.6
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/dist/{acp-adapter-g3ads55s.js → acp-adapter-bp91d37f.js} +4 -4
- package/dist/{actions-zwfykqqk.js → actions-yj0eeaqh.js} +18 -17
- package/dist/{amp-adapter-z3s0ssdt.js → amp-adapter-4pg9h34q.js} +1 -1
- package/dist/{app-vmp4fgep.js → app-909e97cr.js} +3 -3
- package/dist/{assistant-vwde653f.js → assistant-qdyb5fyy.js} +24 -22
- package/dist/{boot-reembed-375t7tbk.js → boot-reembed-fk0s9z18.js} +1 -1
- package/dist/{boot-reembed-gq9rcpnj.js → boot-reembed-gs1rzrnh.js} +1 -1
- package/dist/{boot-scrub-sweep-nd938kyf.js → boot-scrub-sweep-4qfd4kfx.js} +2 -2
- package/dist/{boot-seeds-aykx51v3.js → boot-seeds-yr00k13d.js} +4 -4
- package/dist/{boxd-k1j26g3h.js → boxd-vdmfssd9.js} +4 -4
- package/dist/{claude-adapter-8j4hm099.js → claude-adapter-qta1f1xn.js} +3 -3
- package/dist/{claude-managed-setup-0wyynpn1.js → claude-managed-setup-sc6j4dm0.js} +1 -1
- package/dist/{claude-sdk-session-q6wj5hmy.js → claude-sdk-session-zgrz6yvc.js} +9169 -9070
- package/dist/{cli-gjr2y2xk.js → cli-0agcv1v5.js} +4 -1
- package/dist/{cli-vqypxzh4.js → cli-0at8w34w.js} +7 -7
- package/dist/{cli-7a42nfy0.js → cli-0qatpy8q.js} +3 -3
- package/dist/{cli-p599f1qm.js → cli-0yv5z2pg.js} +1 -1
- package/dist/{cli-0gey5fzy.js → cli-386tyxxg.js} +2 -2
- package/dist/{cli-5pag6rmn.js → cli-3ypk9vk1.js} +1 -1
- package/dist/{cli-qxnf8z2z.js → cli-436532ck.js} +2 -2
- package/dist/{cli-z8eh3ex8.js → cli-4necwtsv.js} +4 -4
- package/dist/{cli-zh3fp8v2.js → cli-54t00gt8.js} +1 -1
- package/dist/{cli-hf6zt5m6.js → cli-69szn7w7.js} +17 -1
- package/dist/{cli-nn4d8dne.js → cli-89knwags.js} +2 -2
- package/dist/{cli-spknvxbq.js → cli-8bc1w0tw.js} +10 -10
- package/dist/{cli-rqkxrmgw.js → cli-8snvgs5r.js} +38 -13
- package/dist/{cli-rhw40jgb.js → cli-bjb3z51z.js} +2 -2
- package/dist/{cli-xtjhfmpc.js → cli-c60vetmm.js} +1 -1
- package/dist/{cli-0731hvbw.js → cli-decfb6v8.js} +2 -2
- package/dist/{cli-bhjt02p8.js → cli-drr5v6av.js} +1 -1
- package/dist/{cli-fqzx7gwa.js → cli-dxae2yg7.js} +2 -2
- package/dist/{cli-tqgg40ek.js → cli-e3r2neck.js} +8 -7
- package/dist/{cli-zppwg9p9.js → cli-ekwks2vs.js} +1 -1
- package/dist/{cli-nzxr556s.js → cli-es6va8jk.js} +26 -26
- package/dist/{cli-a47xy8eq.js → cli-faxe6thg.js} +1 -1
- package/dist/cli-gdhpcbhf.js +55 -0
- package/dist/{cli-82jg7fp9.js → cli-he5nxaa8.js} +1 -1
- package/dist/{cli-8veytvbh.js → cli-he9wchme.js} +1 -1
- package/dist/{cli-pywf3eh5.js → cli-hgaazk69.js} +1 -1
- package/dist/{cli-0bxqnvq9.js → cli-hr2e2fft.js} +28 -6
- package/dist/{cli-1ayk1eas.js → cli-k2gzwsj2.js} +135 -26
- package/dist/{cli-xbkdm710.js → cli-kqdg1bsb.js} +3 -3
- package/dist/cli-m2z8jagn.js +12078 -0
- package/dist/{cli-g61qxmge.js → cli-m48g6p95.js} +3 -3
- package/dist/{cli-7wspm5gm.js → cli-nhrvpaj7.js} +20 -4
- package/dist/{cli-afrrppsw.js → cli-nwj0ee2w.js} +2 -2
- package/dist/{cli-3h4nhjn8.js → cli-p5gp8pcx.js} +9 -7
- package/dist/{cli-rm6hqj3z.js → cli-pd7vagab.js} +33 -139
- package/dist/{cli-mjzynrse.js → cli-q0k1w5zd.js} +1 -1
- package/dist/{cli-8hs41zy2.js → cli-rmmmrjkd.js} +1 -1
- package/dist/{cli-kg8hchyg.js → cli-sa02jsqt.js} +1 -1
- package/dist/{cli-1338796d.js → cli-shpbx5ee.js} +142 -98
- package/dist/{cli-82ae98pz.js → cli-svj5090z.js} +2 -2
- package/dist/{cli-bnz7a7qf.js → cli-vvpx3gsx.js} +1 -1
- package/dist/{cli-mmwm7zbf.js → cli-w6dt9ged.js} +1 -1
- package/dist/{cli-wvaawacd.js → cli-waqbxg08.js} +5230 -66
- package/dist/{cli-j3jvnpe8.js → cli-wp9sp1qb.js} +1 -1
- package/dist/{cli-nmbmy64z.js → cli-xbbndvjy.js} +3 -3
- package/dist/{cli-vbyfwh92.js → cli-xds5f77d.js} +2 -2
- package/dist/{cli-7wcyk2s5.js → cli-xnqgpshy.js} +1 -1
- package/dist/{cli-rpm2sgv0.js → cli-xnrwazav.js} +19 -2
- package/dist/{cli-gf5hbmdr.js → cli-yjdgea32.js} +3 -3
- package/dist/{cli-mry0qzym.js → cli-yn4kxs06.js} +123 -10
- package/dist/{cli-hn9hxmz9.js → cli-yx4kfngt.js} +1 -1
- package/dist/{cli-y24sc29k.js → cli-yy3rhsdw.js} +30 -8
- package/dist/{cli-6s7vdcta.js → cli-zbbwez0r.js} +4 -4
- package/dist/{cli-z6jkx23q.js → cli-zm72anhg.js} +9 -9
- package/dist/cli.js +22 -21
- package/dist/{codex-adapter-q6k3gnyg.js → codex-adapter-ayd1fb6h.js} +2 -2
- package/dist/{codex-session-runner-3mwmk3d9.js → codex-session-runner-jesa32xc.js} +2 -2
- package/dist/{commands-evrenjn9.js → commands-hanewgf2.js} +9 -3
- package/dist/{controller-xjp8vswh.js → controller-dt1n3c1q.js} +8 -3
- package/dist/{controllers-connect-pp5jnxvc.js → controllers-connect-xx8x64n5.js} +20 -19
- package/dist/{cursor-adapter-yf47w4t0.js → cursor-adapter-9s4dwwdw.js} +1 -1
- package/dist/{db-zxpw6aht.js → db-3vttcbv4.js} +3 -3
- package/dist/{db-rgfsh91f.js → db-9dv0g1ab.js} +11 -3
- package/dist/{devtools-82fzqra8.js → devtools-qxfgbsqz.js} +1 -1
- package/dist/{dispatcher-smasgws7.js → dispatcher-tx9hd1sv.js} +17 -16
- package/dist/{docker-rrjhaqt9.js → docker-c1a3gqmf.js} +89 -22
- package/dist/{dsh-adapter-ftyy8dnp.js → dsh-adapter-007y4ejs.js} +1 -1
- package/dist/{e2b-qcaj675y.js → e2b-a19d28rz.js} +2 -2
- package/dist/{e2b-w1p0bnpm.js → e2b-we6hs6q5.js} +4 -4
- package/dist/{easter-egg-3d-yyts7p16.js → easter-egg-3d-rgbrqb8s.js} +1 -1
- package/dist/{embedding-space-1z0mbg95.js → embedding-space-ny1e2940.js} +6 -6
- package/dist/{embeddings-ygeg7tm7.js → embeddings-2t386t13.js} +1 -1
- package/dist/{execute-14qhqp4d.js → execute-pksh0ceh.js} +1 -1
- package/dist/{external-channel-ttgrs3sx.js → external-channel-phgmhmd7.js} +2 -2
- package/dist/{fx-adapter-gt6pncj2.js → fx-adapter-fy8rr921.js} +5 -5
- package/dist/{google-generative-ai-yvmdxyxa.js → google-generative-ai-8y3m3k4b.js} +1 -1
- package/dist/{google-vertex-jrtdh9gs.js → google-vertex-w3v98n7b.js} +1 -1
- package/dist/{grok-adapter-sm4m5k4g.js → grok-adapter-q0abvpaj.js} +5 -5
- package/dist/handlers-by3sfxyx.js +32 -0
- package/dist/{heartbeat-qahz4p62.js → heartbeat-kadyek8p.js} +20 -19
- package/dist/{hook-kj3d398m.js → hook-5zs3msf6.js} +2 -2
- package/dist/{hook-4fd5wq5w.js → hook-9k551xnj.js} +2 -2
- package/dist/{http-1ted0j1k.js → http-mhz9vw1f.js} +213 -80
- package/dist/index-4f2pvxae.js +37 -0
- package/dist/index-98gz7tmp.js +30 -0
- package/dist/{index-5rk6rfzr.js → index-fvzke5kx.js} +1 -1
- package/dist/index-k08z2cak.js +33 -0
- package/dist/{index-yqhz88yy.js → index-pxn30mse.js} +8 -8
- package/dist/{index-6rq3r5zb.js → index-q361cg2f.js} +1 -1
- package/dist/{index-7v51awbn.js → index-rvr00sg7.js} +20 -13
- package/dist/{index-q4b917zs.js → index-vdygbq10.js} +1 -1
- package/dist/{keepalive-6cf311t5.js → keepalive-w56f32cg.js} +3 -3
- package/dist/{lead-fjy418cw.js → lead-enq35nqp.js} +31 -30
- package/dist/{maintenance-a4bm1bmt.js → maintenance-7mdgxcea.js} +1 -1
- package/dist/{oauth-refresh-sweep-3h0dfw1k.js → oauth-refresh-sweep-29txy9vk.js} +2 -2
- package/dist/{onboard-myn5hraa.js → onboard-kpsrkarj.js} +4 -4
- package/dist/{opencode-adapter-p2nkb5am.js → opencode-adapter-j25vm3rr.js} +3 -3
- package/dist/{otel-impl-a1a0ef6b.js → otel-impl-6kkct7a8.js} +1 -1
- package/dist/{pi-mono-adapter-rzmpb72a.js → pi-mono-adapter-exhkzhn2.js} +4 -4
- package/dist/{pricing-refresh-83drrnxj.js → pricing-refresh-n2x7jh6k.js} +3 -3
- package/dist/{rbac-roles-s8y6ecb5.js → rbac-roles-81ypx6es.js} +1 -1
- package/dist/{rbac-roles-0fb6e7pj.js → rbac-roles-b5htkjby.js} +2 -2
- package/dist/{render-v2-twmbgrz4.js → render-v2-qn6jmpk4.js} +3 -3
- package/dist/{resume-zfqc36xj.js → resume-wd30wx23.js} +6 -6
- package/dist/{runtime-qwggdpqr.js → runtime-4hsg7h60.js} +1 -1
- package/dist/{session-access-sc9pn9da.js → session-access-5qvfevhk.js} +4 -4
- package/dist/{session-source-backfill-qh07xr8g.js → session-source-backfill-n1czavbr.js} +2 -2
- package/dist/{setup-4fr0m7a1.js → setup-dnb56qy5.js} +3 -3
- package/dist/{virtual-modules-fh4ha15b.js → virtual-modules-76xxv9fs.js} +2 -2
- package/dist/{work-objects-0wr8zxct.js → work-objects-4n21tfkm.js} +20 -19
- package/dist/{worker-follow-up-ktyyazyp.js → worker-follow-up-77hvzxww.js} +17 -16
- package/dist/{worker-0c5tyzqe.js → worker-gg1576j3.js} +31 -30
- package/openapi.json +93 -1
- package/package.json +8 -7
- package/src/be/db/script-runs.ts +23 -0
- package/src/be/db/tasks/read.ts +122 -3
- package/src/be/db-client.ts +8 -5
- package/src/be/db.ts +15 -4
- package/src/be/memory/providers/sqlite-store.ts +49 -12
- package/src/be/migrations/260_runtime_pool_cache.sql +20 -0
- package/src/be/migrations/262_session_visibility_indexes.sql +18 -0
- package/src/be/migrations/263_task_list_filter_index.sql +11 -0
- package/src/be/migrations/264_slack_thread_cover_index.sql +9 -0
- package/src/be/migrations/266_script_runs_source_task.sql +11 -0
- package/src/be/runtime-pools/cache-cleanup.ts +109 -0
- package/src/be/runtime-pools/db.ts +65 -6
- package/src/be/runtime-pools/remote-controller.ts +5 -0
- package/src/be/runtime-pools/supervisor.ts +33 -2
- package/src/be/scripts/typecheck.ts +22 -0
- package/src/be/seed-scripts/catalog/task-failure-audit.ts +5 -1
- package/src/commands/controller.ts +4 -0
- package/src/commands/entrypoint-api-readiness.ts +74 -0
- package/src/http/index.ts +1 -1
- package/src/http/list-total-cache.ts +14 -7
- package/src/http/memory.ts +38 -9
- package/src/http/script-runs.ts +174 -5
- package/src/http/status.ts +10 -2
- package/src/http/tasks.ts +4 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/fx-adapter.ts +1 -1
- package/src/runtime-providers/controller-protocol.ts +14 -1
- package/src/runtime-providers/controller.ts +5 -0
- package/src/runtime-providers/docker.ts +108 -23
- package/src/runtime-providers/types.ts +16 -0
- package/src/script-workflows/workflow-ctx.ts +8 -0
- package/src/scripts-runtime/types/stdlib.d.ts +22 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +22 -0
- package/src/server-user.ts +1 -0
- package/src/slack/commands.ts +5 -1
- package/src/slack/handlers.ts +37 -2
- package/src/slack/left-threads.ts +27 -4
- package/src/tasks/follow-up-redelegation-guard.ts +155 -0
- package/src/tests/claude-artifacts-read-script.test.ts +209 -0
- package/src/tests/db-client.test.ts +21 -0
- package/src/tests/db-task-read-contract.test.ts +8 -2
- package/src/tests/db-task-write-contract.test.ts +5 -1
- package/src/tests/entrypoint-api-readiness.test.ts +416 -210
- package/src/tests/explicit-model-validation.test.ts +14 -8
- package/src/tests/follow-up-redelivery-guard.test.ts +432 -202
- package/src/tests/list-total-cache.test.ts +27 -2
- package/src/tests/memory-fts-populate.test.ts +11 -9
- package/src/tests/memory-retrieval-purge.test.ts +80 -0
- package/src/tests/migration-260-runtime-pool-cache.test.ts +118 -0
- package/src/tests/query-audit-plans.test.ts +27 -0
- package/src/tests/runtime-cache-cleanup.test.ts +367 -0
- package/src/tests/runtime-e2b-pools.test.ts +41 -0
- package/src/tests/runtime-pools-db.test.ts +98 -0
- package/src/tests/runtime-pools-http.test.ts +29 -0
- package/src/tests/runtime-providers-docker.test.ts +253 -0
- package/src/tests/runtime-remote-controller.test.ts +66 -2
- package/src/tests/runtime-supervisor.test.ts +66 -2
- package/src/tests/script-connections.test.ts +11 -0
- package/src/tests/script-runs-http.test.ts +684 -2
- package/src/tests/seed-scripts.test.ts +26 -0
- package/src/tests/slack-leave-thread.test.ts +145 -5
- package/src/tests/slack-render-v2-query-plans.test.ts +24 -2
- package/src/tests/status.test.ts +11 -0
- package/src/tests/tasks-readable-row.test.ts +155 -0
- package/src/tools/send-task.ts +35 -47
- package/src/tools/slack-leave-thread.ts +1 -1
- package/src/tools/task-dedup.ts +45 -21
- package/src/types.ts +38 -0
- package/templates/skills/composio-google-docs/content.md +10 -0
- package/templates/skills/script-workflows/content.md +19 -1
- package/templates/skills/swarm-docs/content.md +1 -0
- package/templates/skills/swarm-scripts/SKILL.md +2 -0
- package/templates/skills/swarm-scripts/content.md +2 -0
- package/dist/cli-dznrgaep.js +0 -30
- package/dist/cli-w3hcrxht.js +0 -6985
- package/dist/handlers-vwmba1m2.js +0 -31
- package/dist/index-5r71rf98.js +0 -32
- package/dist/index-anmwxs87.js +0 -29
- package/dist/index-spp0ra5c.js +0 -36
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
getPendingWaitsByEvent2,
|
|
35
35
|
resolveWaitState2,
|
|
36
36
|
init_db4
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-k2gzwsj2.js";
|
|
38
38
|
import {
|
|
39
39
|
workflowEventBus2,
|
|
40
40
|
init_event_bus
|
|
@@ -79,12 +79,12 @@ import {
|
|
|
79
79
|
getNextTargets,
|
|
80
80
|
getSuccessors,
|
|
81
81
|
init_definition2
|
|
82
|
-
} from "./cli-
|
|
82
|
+
} from "./cli-8bc1w0tw.js";
|
|
83
83
|
import {
|
|
84
84
|
RetryPolicySchema,
|
|
85
85
|
SUPERSEDED_WORKFLOW_TASK_REASON,
|
|
86
86
|
init_types4
|
|
87
|
-
} from "./cli-
|
|
87
|
+
} from "./cli-nhrvpaj7.js";
|
|
88
88
|
import {
|
|
89
89
|
init_zod
|
|
90
90
|
} from "./cli-k5671be5.js";
|
|
@@ -1651,7 +1651,7 @@ function checkExtensionInstallSource(body, ctx) {
|
|
|
1651
1651
|
ctx.addIssue({ code: "custom", path: ["files"], message: "files is required with manifest" });
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
|
-
var AssetKeySchema, AssetEntityTypeSchema, AssetProviderRefSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, LEGACY_MODEL_TO_TIER, DEFAULT_MODEL_TIER_MAP, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, OPEN_TASK_STATUSES, InboxMessageStatusSchema, InboxMessageSchema, AgentTaskSourceSchema, RoutingReasonSchema, RoutingSourceSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileSchema, SessionShareAccessSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringStatusSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, AgentTaskSchema, CreateTaskOptionsSchema, TaskAttachmentKindSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY = "_agentSwarmGeneratedBy", attachmentCapabilitiesSchema, attachmentCommonFields, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, IdentityEventTypeSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AgentSlackIconSchema, AgentSchema, AgentCredStatusKeyResultSchema, AgentCredStatusLiveTestSchema, AgentLatestModelSchema, AgentBedrockStatusSchema, AgentOpencodeGoStatusSchema, AcpSessionConfigSelectValueSchema, AcpSessionConfigSelectGroupSchema, AcpSessionConfigOptionSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, ChangeSourceSchema, VersionableFieldSchema, ContextVersionSchema, ChannelTypeSchema, ChannelSchema, ChannelMessageSchema, ServiceStatusSchema, ServiceSchema, AgentLogEventTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostSourceSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesSchema, REPO_GUIDELINES_MAX_ENTRIES = 50, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeInstanceStatusSchema, RuntimeProviderKindSchema, DeliveryModeSchema, PoolLifecycleSchema, RuntimeResourcesSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON = "superseded_workflow_task", ExecutorMetaSchema, ValidationResultSchema, StepValidationConfigSchema, SwarmScriptNodeConfigSchema, WorkflowNodeSchema, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WebhookVerificationSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowTemplateSchema, WorkflowSnapshotSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageSnapshotSchema, PageSchema, PageVersionSchema, MetricParamSchema, MetricVariableTypeSchema, MetricFormatSchema, MetricVisualizationSchema, MetricQuerySchema, MetricVariableSchema, MetricVizConfigSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSnapshotSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunKindSchema, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepStatusSchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, WaitModeSchema, WaitStateStatusSchema, WaitStateRowSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionNameSchema, SemverSchema, ExtensionBundlePathSchema, ExtensionAssetNameSchema, ExtensionScriptAssetSchema, ExtensionScheduleAssetSchema, ExtensionWorkflowAssetSchema, ExtensionSkillAssetSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionStatusSchema, ExtensionSchema, ExtensionFileSchema, ExtensionVersionSchema, ExtensionRunSchema, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillTypeSchema, SkillScopeSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpServerTransportSchema, McpServerScopeSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KV_NAME_REGEX, KvNamespaceSchema, KvKeySchema, KvEntrySchema;
|
|
1654
|
+
var AssetKeySchema, AssetEntityTypeSchema, AssetProviderRefSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, LEGACY_MODEL_TO_TIER, DEFAULT_MODEL_TIER_MAP, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, OPEN_TASK_STATUSES, InboxMessageStatusSchema, InboxMessageSchema, AgentTaskSourceSchema, RoutingReasonSchema, RoutingSourceSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileSchema, SessionShareAccessSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringStatusSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, AgentTaskSchema, CreateTaskOptionsSchema, TaskAttachmentKindSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY = "_agentSwarmGeneratedBy", attachmentCapabilitiesSchema, attachmentCommonFields, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, IdentityEventTypeSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AgentSlackIconSchema, AgentSchema, AgentCredStatusKeyResultSchema, AgentCredStatusLiveTestSchema, AgentLatestModelSchema, AgentBedrockStatusSchema, AgentOpencodeGoStatusSchema, AcpSessionConfigSelectValueSchema, AcpSessionConfigSelectGroupSchema, AcpSessionConfigOptionSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, ChangeSourceSchema, VersionableFieldSchema, ContextVersionSchema, ChannelTypeSchema, ChannelSchema, ChannelMessageSchema, ServiceStatusSchema, ServiceSchema, AgentLogEventTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostSourceSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesSchema, REPO_GUIDELINES_MAX_ENTRIES = 50, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeInstanceStatusSchema, RuntimeProviderKindSchema, DeliveryModeSchema, PoolLifecycleSchema, RuntimeResourcesSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON = "superseded_workflow_task", ExecutorMetaSchema, ValidationResultSchema, StepValidationConfigSchema, SwarmScriptNodeConfigSchema, WorkflowNodeSchema, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, WebhookVerificationSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowTemplateSchema, WorkflowSnapshotSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageSnapshotSchema, PageSchema, PageVersionSchema, MetricParamSchema, MetricVariableTypeSchema, MetricFormatSchema, MetricVisualizationSchema, MetricQuerySchema, MetricVariableSchema, MetricVizConfigSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSnapshotSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunKindSchema, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepStatusSchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, WaitModeSchema, WaitStateStatusSchema, WaitStateRowSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionNameSchema, SemverSchema, ExtensionBundlePathSchema, ExtensionAssetNameSchema, ExtensionScriptAssetSchema, ExtensionScheduleAssetSchema, ExtensionWorkflowAssetSchema, ExtensionSkillAssetSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionStatusSchema, ExtensionSchema, ExtensionFileSchema, ExtensionVersionSchema, ExtensionRunSchema, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillTypeSchema, SkillScopeSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpServerTransportSchema, McpServerScopeSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KV_NAME_REGEX, KvNamespaceSchema, KvKeySchema, KvEntrySchema;
|
|
1655
1655
|
var init_types4 = __esm(() => {
|
|
1656
1656
|
init_key();
|
|
1657
1657
|
init_bundle_path();
|
|
@@ -2794,6 +2794,18 @@ var init_types4 = __esm(() => {
|
|
|
2794
2794
|
createdAt: string2(),
|
|
2795
2795
|
updatedAt: string2()
|
|
2796
2796
|
}).openapi("RuntimeController");
|
|
2797
|
+
RuntimePoolCacheSchema = object2({
|
|
2798
|
+
mountPath: string2().min(2).refine((path) => {
|
|
2799
|
+
const parts = path.split("/").filter(Boolean);
|
|
2800
|
+
const normalized = `/${parts.join("/")}`;
|
|
2801
|
+
const protectedPaths = [
|
|
2802
|
+
"/workspace/personal",
|
|
2803
|
+
"/workspace/shared",
|
|
2804
|
+
...["/home/worker", "/root"].flatMap((home) => [".ssh", ".codex", ".claude", ".claude.json", ".pi", ".config", ".local"].map((directory) => `${home}/${directory}`))
|
|
2805
|
+
];
|
|
2806
|
+
return path.startsWith("/") && parts.length > 0 && !path.includes("\x00") && !parts.some((part) => part === "." || part === "..") && !protectedPaths.some((protectedPath) => protectedPath === normalized || protectedPath.startsWith(`${normalized}/`) || normalized.startsWith(`${protectedPath}/`));
|
|
2807
|
+
}, "Cache mountPath must be absolute, without . or .., and must not cover worker homes, workspaces or credential directories")
|
|
2808
|
+
}).strict();
|
|
2797
2809
|
RuntimePoolCreateSchema = object2({
|
|
2798
2810
|
name: string2().min(1).max(200),
|
|
2799
2811
|
kind: RuntimeProviderKindSchema,
|
|
@@ -2807,6 +2819,7 @@ var init_types4 = __esm(() => {
|
|
|
2807
2819
|
delivery: DeliveryModeSchema.nullable().default(null),
|
|
2808
2820
|
env: record2(string2(), string2()).default({}),
|
|
2809
2821
|
resources: RuntimeResourcesSchema.nullable().default(null),
|
|
2822
|
+
cache: RuntimePoolCacheSchema.nullable().default(null),
|
|
2810
2823
|
ttlSec: number2().int().positive().nullable().default(null),
|
|
2811
2824
|
enabled: boolean().default(true)
|
|
2812
2825
|
}).strict();
|
|
@@ -2819,6 +2832,7 @@ var init_types4 = __esm(() => {
|
|
|
2819
2832
|
delivery: DeliveryModeSchema.nullable().optional(),
|
|
2820
2833
|
env: record2(string2(), string2()).optional(),
|
|
2821
2834
|
resources: RuntimeResourcesSchema.nullable().optional(),
|
|
2835
|
+
cache: RuntimePoolCacheSchema.nullable().optional(),
|
|
2822
2836
|
ttlSec: number2().int().positive().nullable().optional(),
|
|
2823
2837
|
enabled: boolean().optional()
|
|
2824
2838
|
});
|
|
@@ -3235,12 +3249,14 @@ var init_types4 = __esm(() => {
|
|
|
3235
3249
|
error: string2().optional(),
|
|
3236
3250
|
lastHeartbeatAt: string2().optional(),
|
|
3237
3251
|
idempotencyKey: string2().optional(),
|
|
3238
|
-
requestedByUserId: string2().optional()
|
|
3252
|
+
requestedByUserId: string2().optional(),
|
|
3253
|
+
sourceTaskId: string2().optional()
|
|
3239
3254
|
}).openapi("ScriptRun");
|
|
3240
3255
|
ScriptRunListItemSchema = ScriptRunSchema.omit({
|
|
3241
3256
|
source: true,
|
|
3242
3257
|
args: true,
|
|
3243
|
-
output: true
|
|
3258
|
+
output: true,
|
|
3259
|
+
sourceTaskId: true
|
|
3244
3260
|
});
|
|
3245
3261
|
ScriptRunJournalEntrySchema = object2({
|
|
3246
3262
|
id: string2().uuid(),
|
|
@@ -3719,4 +3735,4 @@ var init_types4 = __esm(() => {
|
|
|
3719
3735
|
}).openapi("KvEntry");
|
|
3720
3736
|
});
|
|
3721
3737
|
|
|
3722
|
-
export { ASSET_KEY_MAX_LENGTH, normalizeAssetKey, defaultAssetKey, keyPrefixRange, SESSION_LEAF_KINDS, sessionGroupKey, parseAssetKey, isCanonicalAssetKey, canWriteAssetKey, init_key, isSafeBundlePath, init_bundle_path, $OpenAPIRegistry, $OpenApiGeneratorV31, init_dist6, init_zod_openapi, AssetKeySchema, AssetEntityTypeSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, DEFAULT_MODEL_TIER_MAP, parseModelTier, splitLegacyModelAlias, parseWorkerModelTierOverrides, resolveTaskModelSelection, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, isTerminalTaskStatus, OPEN_TASK_STATUSES, AgentTaskSourceSchema, RoutingReasonSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, AgentTaskSchema, CreateTaskOptionsSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AgentSlackIconSchema, AgentSchema, AgentLatestModelSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, VersionableFieldSchema, ChannelTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeProviderKindSchema, DeliveryModeSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageSchema, PageVersionSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionSchema, ExtensionVersionSchema, ExtensionRunSchema, checkExtensionInstallSource, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KvNamespaceSchema, KvKeySchema, KvEntrySchema, init_types4 };
|
|
3738
|
+
export { ASSET_KEY_MAX_LENGTH, normalizeAssetKey, defaultAssetKey, keyPrefixRange, SESSION_LEAF_KINDS, sessionGroupKey, parseAssetKey, isCanonicalAssetKey, canWriteAssetKey, init_key, isSafeBundlePath, init_bundle_path, $OpenAPIRegistry, $OpenApiGeneratorV31, init_dist6, init_zod_openapi, AssetKeySchema, AssetEntityTypeSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, DEFAULT_MODEL_TIER_MAP, parseModelTier, splitLegacyModelAlias, parseWorkerModelTierOverrides, resolveTaskModelSelection, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, isTerminalTaskStatus, OPEN_TASK_STATUSES, AgentTaskSourceSchema, RoutingReasonSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileSchema, SessionAccessSchema, SessionOwnerSchema, SessionSharesSchema, SessionSharesUpdateSchema, SteerModeSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, AgentTaskSchema, CreateTaskOptionsSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, RbacRoleSchema, UserRbacRolesSchema, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AgentSlackIconSchema, AgentSchema, AgentLatestModelSchema, AgentAcpStatusSchema, AgentCredStatusSchema, AgentWithTasksSchema, VersionableFieldSchema, ChannelTypeSchema, ResumeReasonSchema, AgentLogSchema, SessionLogSchema, SessionCostModelBreakdownSchema, SessionCostSchema, EventCategorySchema, EventStatusSchema, EventSourceSchema, EventNameSchema, SwarmEventSchema, AutomationIntegrationIdSchema, ScheduledTaskTargetTypeSchema, ScheduledTaskSchema, SwarmConfigScopeSchema, SwarmConfigSchema, RepoGuidelinesInputSchema, RepoHooksSchema, SwarmRepoSchema, AgentMemoryScopeSchema, AgentMemorySourceSchema, AgentMemorySchema, ActiveSessionSchema, WorkerNudgeSchema, RuntimeProviderKindSchema, DeliveryModeSchema, RuntimeControllerCreateSchema, RuntimeControllerUpdateSchema, RuntimeControllerSchema, RuntimePoolCacheSchema, RuntimePoolCreateSchema, RuntimePoolUpdateSchema, RuntimePoolSchema, RuntimePoolCreateAgentSchema, RuntimeInstanceSchema, RetryPolicySchema, SUPERSEDED_WORKFLOW_TASK_REASON, WorkflowEdgeSchema, WorkflowDefinitionSchema, WorkflowNodePatchSchema, WorkflowPatchSchema, TriggerConfigSchema, CooldownConfigSchema, InputValueSchema, WorkflowSchema, WorkflowVersionSchema, PageContentTypeSchema, PageAuthModeSchema, PageSchema, PageVersionSchema, MetricWidgetSchema, MetricDefinitionSchema, MetricSchema, MetricVersionSchema, WorkflowRunStatusSchema, WorkflowRunSchema, WorkflowRunParentSchema, WorkflowRunSummarySchema, ScriptRunStatusSchema, TERMINAL_SCRIPT_RUN_STATUSES, ScriptRunSchema, ScriptRunListItemSchema, ScriptRunJournalEntrySchema, WorkflowRunStepSchema, WorkflowRunStepSlimSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, ScriptExecutorNameSchema, ScriptRecordSchema, ScriptVersionRecordSchema, ExtensionWorkflowFileSchema, ExtensionManifestSchema, ExtensionSchema, ExtensionVersionSchema, ExtensionRunSchema, checkExtensionInstallSource, ExtensionInstallBodySchema, ScriptApiAuthModeSchema, ScriptApiRecordSchema, SkillSchema, AgentSkillSchema, SkillWithInstallInfoSchema, SkillFileSchema, McpAuthMethodSchema, McpServerSchema, AgentMcpServerSchema, McpServerWithInstallInfoSchema, ContextSnapshotEventTypeSchema, ContextFormulaSchema, ContextSnapshotSchema, BudgetScopeSchema, BudgetSchema, PricingProviderSchema, PricingTokenClassSchema, PricingRowSchema, BudgetRefusalCauseSchema, BudgetRefusalNotificationSchema, BudgetRefusedTriggerSchema, KvValueTypeSchema, KvNamespaceSchema, KvKeySchema, KvEntrySchema, init_types4 };
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
ampBillsCacheWrites,
|
|
19
19
|
resolveAmpModel,
|
|
20
20
|
init_amp_models
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-q0k1w5zd.js";
|
|
22
22
|
import {
|
|
23
23
|
detachedProcessGroup,
|
|
24
24
|
registerProcessGroup,
|
|
@@ -48,7 +48,7 @@ init_context_window();
|
|
|
48
48
|
init_multi_runtime2();
|
|
49
49
|
init_process_group();
|
|
50
50
|
init_secret_scrubber();
|
|
51
|
-
var AMP_PACKAGE = "@ampcode/cli@0.0.
|
|
51
|
+
var AMP_PACKAGE = "@ampcode/cli@0.0.1793363705-g5c9ae5";
|
|
52
52
|
var AMP_MCP_SERVER_NAME = "agent-swarm";
|
|
53
53
|
var AMP_PLUGIN_MODE_KEY = "agent-swarm";
|
|
54
54
|
var AMP_LIVE_TEST_TIMEOUT_MS = 5000;
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
init_steering2,
|
|
12
12
|
createLogEntry2,
|
|
13
13
|
init_db4
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-k2gzwsj2.js";
|
|
15
15
|
import {
|
|
16
16
|
ackSlackMessage,
|
|
17
17
|
init_ack,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
init_watcher,
|
|
28
28
|
getSlackApp2,
|
|
29
29
|
init_app3
|
|
30
|
-
} from "./cli-
|
|
30
|
+
} from "./cli-waqbxg08.js";
|
|
31
31
|
import {
|
|
32
32
|
TaskCreationBlockedError,
|
|
33
33
|
init_errors2,
|
|
@@ -37,22 +37,24 @@ import {
|
|
|
37
37
|
createSlackTaskWithFiles,
|
|
38
38
|
notifySlackFileFailures,
|
|
39
39
|
init_inbound_files,
|
|
40
|
-
isSlackThreadLeft,
|
|
41
|
-
init_left_threads,
|
|
42
40
|
extractSlackMessageText,
|
|
43
41
|
init_message_text,
|
|
44
42
|
createAdditiveBuffer,
|
|
45
43
|
init_additive_buffer
|
|
46
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-shpbx5ee.js";
|
|
47
45
|
import {
|
|
48
46
|
resolveSlackUserId,
|
|
49
47
|
rewriteSlackMentions,
|
|
50
48
|
init_enrich
|
|
51
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-xbbndvjy.js";
|
|
50
|
+
import {
|
|
51
|
+
isSlackThreadLeft,
|
|
52
|
+
init_left_threads
|
|
53
|
+
} from "./cli-gdhpcbhf.js";
|
|
52
54
|
import {
|
|
53
55
|
findUserByExternalId,
|
|
54
56
|
init_users
|
|
55
|
-
} from "./cli-
|
|
57
|
+
} from "./cli-drr5v6av.js";
|
|
56
58
|
import {
|
|
57
59
|
isSteeringEnabled2,
|
|
58
60
|
init_steering_enabled
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
applyOpenRouterBaseUrlOverride2,
|
|
11
11
|
buildOpenAICompatibleProviderBlock2
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-ekwks2vs.js";
|
|
13
13
|
import {
|
|
14
14
|
fetchInstalledMcpServers
|
|
15
15
|
} from "./cli-bst1vp7e.js";
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
DEFAULT_MODEL_TIER_MAP,
|
|
32
32
|
init_types4
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-nhrvpaj7.js";
|
|
34
34
|
import {
|
|
35
35
|
resolveTemplateFromCode,
|
|
36
36
|
resolveTemplateAsync,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
import {
|
|
59
59
|
init_package,
|
|
60
60
|
package_default
|
|
61
|
-
} from "./cli-
|
|
61
|
+
} from "./cli-e3r2neck.js";
|
|
62
62
|
import {
|
|
63
63
|
scrubSecrets,
|
|
64
64
|
init_secret_scrubber
|
|
@@ -1592,6 +1592,8 @@ var zSubagentUpdate = object2({
|
|
|
1592
1592
|
state: defaultOnError(zStateUpdate.nullish(), () => {
|
|
1593
1593
|
return;
|
|
1594
1594
|
}),
|
|
1595
|
+
cwd: string2().nullish(),
|
|
1596
|
+
additionalDirectories: array2(string2()).nullish(),
|
|
1595
1597
|
_meta: defaultOnError(record2(string2(), unknown()).nullish(), () => {
|
|
1596
1598
|
return;
|
|
1597
1599
|
})
|
|
@@ -2204,6 +2206,17 @@ var zCancelRequestNotification = object2({
|
|
|
2204
2206
|
|
|
2205
2207
|
// node_modules/@agentclientprotocol/sdk/dist/core/jsonrpc.js
|
|
2206
2208
|
var CANCEL_REQUEST_METHOD = "$/cancel_request";
|
|
2209
|
+
function treatSessionNotFoundAsSuccess(method, response, success) {
|
|
2210
|
+
if (method !== "session/close" && method !== "session/delete") {
|
|
2211
|
+
return response;
|
|
2212
|
+
}
|
|
2213
|
+
return response.catch((error) => {
|
|
2214
|
+
if (error instanceof RequestError && error.code === -32002) {
|
|
2215
|
+
return success();
|
|
2216
|
+
}
|
|
2217
|
+
throw error;
|
|
2218
|
+
});
|
|
2219
|
+
}
|
|
2207
2220
|
function isRequestMessage(value) {
|
|
2208
2221
|
return isJsonRpcEnvelope(value) && "id" in value && typeof value["method"] === "string" && isJsonRpcId(value["id"]);
|
|
2209
2222
|
}
|
|
@@ -2236,28 +2249,6 @@ function isJsonRpcId(value) {
|
|
|
2236
2249
|
function isResponseShapedMessage(value) {
|
|
2237
2250
|
return isRecord(value) && !("method" in value) && (("id" in value) || ("result" in value) || ("error" in value));
|
|
2238
2251
|
}
|
|
2239
|
-
function isResponseBatch(batch) {
|
|
2240
|
-
let hasValidCall = false;
|
|
2241
|
-
let hasValidResponse = false;
|
|
2242
|
-
let hasCallShape = false;
|
|
2243
|
-
let hasResponseShape = false;
|
|
2244
|
-
for (const entry of batch) {
|
|
2245
|
-
hasValidCall ||= isRequestMessage(entry) || isNotificationMessage(entry);
|
|
2246
|
-
hasValidResponse ||= isResponseMessage(entry);
|
|
2247
|
-
if (!isRecord(entry)) {
|
|
2248
|
-
continue;
|
|
2249
|
-
}
|
|
2250
|
-
hasCallShape ||= "method" in entry;
|
|
2251
|
-
hasResponseShape ||= "result" in entry || "error" in entry;
|
|
2252
|
-
}
|
|
2253
|
-
if (hasValidCall) {
|
|
2254
|
-
return false;
|
|
2255
|
-
}
|
|
2256
|
-
if (hasValidResponse) {
|
|
2257
|
-
return true;
|
|
2258
|
-
}
|
|
2259
|
-
return hasResponseShape && !hasCallShape;
|
|
2260
|
-
}
|
|
2261
2252
|
function cancelRequestId(params) {
|
|
2262
2253
|
if (!isRecord(params) || !isJsonRpcId(params["requestId"])) {
|
|
2263
2254
|
return;
|
|
@@ -2371,7 +2362,6 @@ class RequestResponder {
|
|
|
2371
2362
|
});
|
|
2372
2363
|
}
|
|
2373
2364
|
}
|
|
2374
|
-
var requestBatchSizes = new WeakMap;
|
|
2375
2365
|
var nullIdResponders = new WeakSet;
|
|
2376
2366
|
class HandlerRegistration {
|
|
2377
2367
|
disposeHandler;
|
|
@@ -2405,9 +2395,6 @@ class ConnectionContext {
|
|
|
2405
2395
|
sendNotification(method, params) {
|
|
2406
2396
|
return this.connection.sendNotification(method, params);
|
|
2407
2397
|
}
|
|
2408
|
-
sendBatch(entries) {
|
|
2409
|
-
return this.connection.sendBatch(entries);
|
|
2410
|
-
}
|
|
2411
2398
|
sendCancelRequest(requestId) {
|
|
2412
2399
|
return this.connection.sendCancelRequest(requestId);
|
|
2413
2400
|
}
|
|
@@ -2436,7 +2423,6 @@ class Connection {
|
|
|
2436
2423
|
retryQueue = [];
|
|
2437
2424
|
context = new ConnectionContext(this);
|
|
2438
2425
|
receiveReader;
|
|
2439
|
-
allowBatches = true;
|
|
2440
2426
|
constructor(requestHandlerOrStream, notificationHandlerOrHandlers, streamOrOptions, options) {
|
|
2441
2427
|
if (typeof requestHandlerOrStream === "function") {
|
|
2442
2428
|
const requestHandler = requestHandlerOrStream;
|
|
@@ -2497,55 +2483,13 @@ class Connection {
|
|
|
2497
2483
|
return rejectedPromise(this.closedReason());
|
|
2498
2484
|
}
|
|
2499
2485
|
const request = this.prepareRequest(method, params, mapResponse, options);
|
|
2500
|
-
const requestSent = this.
|
|
2486
|
+
const requestSent = this.sendMessage(request.message);
|
|
2501
2487
|
requestSent.catch(() => {});
|
|
2502
2488
|
if (options.cancellationSignal?.aborted) {
|
|
2503
2489
|
request.cancel();
|
|
2504
2490
|
}
|
|
2505
2491
|
return request.response;
|
|
2506
2492
|
}
|
|
2507
|
-
sendBatch(entries) {
|
|
2508
|
-
if (this.abortController.signal.aborted) {
|
|
2509
|
-
return rejectedPromise(this.closedReason());
|
|
2510
|
-
}
|
|
2511
|
-
if (!this.allowBatches) {
|
|
2512
|
-
return rejectedPromise(new TypeError("JSON-RPC batches are not supported on this connection"));
|
|
2513
|
-
}
|
|
2514
|
-
if (entries.length === 0) {
|
|
2515
|
-
return rejectedPromise(new TypeError("JSON-RPC batch must contain at least one entry"));
|
|
2516
|
-
}
|
|
2517
|
-
const messages = [];
|
|
2518
|
-
const cancellations = [];
|
|
2519
|
-
const outputs = [];
|
|
2520
|
-
for (const entry of entries) {
|
|
2521
|
-
if (entry.kind === "notification") {
|
|
2522
|
-
messages.push({
|
|
2523
|
-
jsonrpc: "2.0",
|
|
2524
|
-
method: entry.method,
|
|
2525
|
-
params: entry.params
|
|
2526
|
-
});
|
|
2527
|
-
outputs.push(Promise.resolve(undefined));
|
|
2528
|
-
continue;
|
|
2529
|
-
}
|
|
2530
|
-
const request = this.prepareRequest(entry.method, entry.params, entry.mapResponse, entry.options);
|
|
2531
|
-
messages.push(request.message);
|
|
2532
|
-
outputs.push(request.response);
|
|
2533
|
-
cancellations.push({
|
|
2534
|
-
signal: entry.options?.cancellationSignal,
|
|
2535
|
-
cancel: request.cancel
|
|
2536
|
-
});
|
|
2537
|
-
}
|
|
2538
|
-
const batch = messages;
|
|
2539
|
-
const batchSent = this.sendWireMessage(batch);
|
|
2540
|
-
for (const cancellation of cancellations) {
|
|
2541
|
-
if (cancellation.signal?.aborted) {
|
|
2542
|
-
cancellation.cancel();
|
|
2543
|
-
}
|
|
2544
|
-
}
|
|
2545
|
-
const response = Promise.all([batchSent, ...outputs]).then(([, ...resolved]) => resolved);
|
|
2546
|
-
response.catch(() => {});
|
|
2547
|
-
return response;
|
|
2548
|
-
}
|
|
2549
2493
|
sendCancelRequest(requestId) {
|
|
2550
2494
|
return this.sendNotification(CANCEL_REQUEST_METHOD, { requestId });
|
|
2551
2495
|
}
|
|
@@ -2553,7 +2497,7 @@ class Connection {
|
|
|
2553
2497
|
if (this.abortController.signal.aborted) {
|
|
2554
2498
|
return rejectedPromise(this.closedReason());
|
|
2555
2499
|
}
|
|
2556
|
-
return this.
|
|
2500
|
+
return this.sendMessage({ jsonrpc: "2.0", method, params });
|
|
2557
2501
|
}
|
|
2558
2502
|
prepareRequest(method, params, mapResponse, options = {}) {
|
|
2559
2503
|
const id = this.nextRequestId++;
|
|
@@ -2613,7 +2557,6 @@ class Connection {
|
|
|
2613
2557
|
this.stream = stream;
|
|
2614
2558
|
this.staticHandlers = handlers;
|
|
2615
2559
|
this.fallbackHandlers = [...options?.fallbackHandlers ?? []];
|
|
2616
|
-
this.allowBatches = options?.allowBatches ?? true;
|
|
2617
2560
|
this.closedPromise = new Promise((resolve) => {
|
|
2618
2561
|
this.abortController.signal.addEventListener("abort", () => resolve());
|
|
2619
2562
|
});
|
|
@@ -2646,7 +2589,7 @@ class Connection {
|
|
|
2646
2589
|
if (done) {
|
|
2647
2590
|
break;
|
|
2648
2591
|
}
|
|
2649
|
-
this.
|
|
2592
|
+
this.receiveUnvalidatedMessage(message);
|
|
2650
2593
|
}
|
|
2651
2594
|
} finally {
|
|
2652
2595
|
if (this.receiveReader === reader) {
|
|
@@ -2660,65 +2603,18 @@ class Connection {
|
|
|
2660
2603
|
this.close(closeError);
|
|
2661
2604
|
}
|
|
2662
2605
|
}
|
|
2663
|
-
|
|
2606
|
+
receiveUnvalidatedMessage(message) {
|
|
2664
2607
|
if (Array.isArray(message)) {
|
|
2665
|
-
|
|
2666
|
-
this.close(new TypeError("JSON-RPC batches are not supported on this connection"));
|
|
2667
|
-
return;
|
|
2668
|
-
}
|
|
2669
|
-
this.receiveBatch(message);
|
|
2608
|
+
this.sendMessage(protocolErrorResponse(RequestError.invalidRequest(undefined, "JSON-RPC batches are not supported"))).catch(() => {});
|
|
2670
2609
|
return;
|
|
2671
2610
|
}
|
|
2672
2611
|
if (!isRequestMessage(message) && !isNotificationMessage(message) && !isResponseShapedMessage(message)) {
|
|
2673
|
-
this.
|
|
2612
|
+
this.sendMessage(protocolErrorResponse(RequestError.invalidRequest(message))).catch(() => {});
|
|
2674
2613
|
return;
|
|
2675
2614
|
}
|
|
2676
2615
|
this.receiveMessage(message);
|
|
2677
2616
|
}
|
|
2678
|
-
|
|
2679
|
-
if (batch.length === 0) {
|
|
2680
|
-
this.sendWireMessage(protocolErrorResponse(RequestError.invalidRequest(batch))).catch(() => {});
|
|
2681
|
-
return;
|
|
2682
|
-
}
|
|
2683
|
-
const responseBatch = isResponseBatch(batch);
|
|
2684
|
-
const responseCount = responseBatch ? 0 : batch.reduce((count, message) => count + (isNotificationMessage(message) ? 0 : 1), 0);
|
|
2685
|
-
let remaining = responseCount;
|
|
2686
|
-
let remainingNotifications = batch.reduce((count, message) => count + (isNotificationMessage(message) ? 1 : 0), 0);
|
|
2687
|
-
let responseSent = false;
|
|
2688
|
-
const responses = [];
|
|
2689
|
-
const sendResponsesIfReady = async () => {
|
|
2690
|
-
if (responseSent || remaining !== 0 || remainingNotifications !== 0 || responses.length === 0) {
|
|
2691
|
-
return;
|
|
2692
|
-
}
|
|
2693
|
-
responseSent = true;
|
|
2694
|
-
await this.sendWireMessage(responses);
|
|
2695
|
-
};
|
|
2696
|
-
const collectResponse = async (response) => {
|
|
2697
|
-
responses.push(response);
|
|
2698
|
-
remaining -= 1;
|
|
2699
|
-
await sendResponsesIfReady();
|
|
2700
|
-
};
|
|
2701
|
-
for (const message of batch) {
|
|
2702
|
-
if (responseBatch) {
|
|
2703
|
-
if (isResponseShapedMessage(message)) {
|
|
2704
|
-
this.receiveMessage(message);
|
|
2705
|
-
}
|
|
2706
|
-
continue;
|
|
2707
|
-
}
|
|
2708
|
-
if (!isRequestMessage(message) && !isNotificationMessage(message)) {
|
|
2709
|
-
collectResponse(protocolErrorResponse(RequestError.invalidRequest(message))).catch(() => {});
|
|
2710
|
-
continue;
|
|
2711
|
-
}
|
|
2712
|
-
const processing = this.receiveMessage(message, isRequestMessage(message) ? collectResponse : undefined, batch.length);
|
|
2713
|
-
if (isNotificationMessage(message)) {
|
|
2714
|
-
processing.finally(() => {
|
|
2715
|
-
remainingNotifications -= 1;
|
|
2716
|
-
sendResponsesIfReady().catch((error) => this.close(error));
|
|
2717
|
-
});
|
|
2718
|
-
}
|
|
2719
|
-
}
|
|
2720
|
-
}
|
|
2721
|
-
receiveMessage(message, sendResponse, batchSize) {
|
|
2617
|
+
receiveMessage(message) {
|
|
2722
2618
|
if (this.abortController.signal.aborted) {
|
|
2723
2619
|
return Promise.resolve();
|
|
2724
2620
|
}
|
|
@@ -2730,7 +2626,7 @@ class Connection {
|
|
|
2730
2626
|
if (!("id" in message)) {
|
|
2731
2627
|
this.handleProtocolNotification(message);
|
|
2732
2628
|
}
|
|
2733
|
-
return this.processIncomingMessage(this.toIncomingMessage(message
|
|
2629
|
+
return this.processIncomingMessage(this.toIncomingMessage(message)).catch((error) => this.close(error));
|
|
2734
2630
|
} else if ("id" in message) {
|
|
2735
2631
|
this.handleResponse(message);
|
|
2736
2632
|
} else {
|
|
@@ -2785,7 +2681,7 @@ class Connection {
|
|
|
2785
2681
|
}
|
|
2786
2682
|
}
|
|
2787
2683
|
}
|
|
2788
|
-
toIncomingMessage(message
|
|
2684
|
+
toIncomingMessage(message) {
|
|
2789
2685
|
if ("id" in message) {
|
|
2790
2686
|
const abortController = new AbortController;
|
|
2791
2687
|
this.incomingRequests.set(message.id, abortController);
|
|
@@ -2800,11 +2696,8 @@ class Connection {
|
|
|
2800
2696
|
id: nullIdResponders.has(responder) ? null : message.id,
|
|
2801
2697
|
...result
|
|
2802
2698
|
};
|
|
2803
|
-
return
|
|
2699
|
+
return this.sendMessage(response);
|
|
2804
2700
|
}, abortController.signal, finishRequest);
|
|
2805
|
-
if (batchSize !== undefined) {
|
|
2806
|
-
requestBatchSizes.set(responder, batchSize);
|
|
2807
|
-
}
|
|
2808
2701
|
return {
|
|
2809
2702
|
kind: "request",
|
|
2810
2703
|
method: message.method,
|
|
@@ -2855,7 +2748,7 @@ class Connection {
|
|
|
2855
2748
|
closedReason() {
|
|
2856
2749
|
return this.abortController.signal.reason ?? new Error("ACP connection closed");
|
|
2857
2750
|
}
|
|
2858
|
-
async
|
|
2751
|
+
async sendMessage(message) {
|
|
2859
2752
|
if (this.abortController.signal.aborted) {
|
|
2860
2753
|
return rejectedPromise(this.closedReason());
|
|
2861
2754
|
}
|
|
@@ -3185,7 +3078,9 @@ function ndJsonStream(output, input, options = {}) {
|
|
|
3185
3078
|
await writeJson(protocolErrorResponse(RequestError.parseError()));
|
|
3186
3079
|
return;
|
|
3187
3080
|
}
|
|
3188
|
-
if (
|
|
3081
|
+
if (Array.isArray(message)) {
|
|
3082
|
+
await writeJson(protocolErrorResponse(RequestError.invalidRequest(undefined, "JSON-RPC batches are not supported")));
|
|
3083
|
+
} else if (isRecord(message)) {
|
|
3189
3084
|
controller.enqueue(message);
|
|
3190
3085
|
} else {
|
|
3191
3086
|
await writeJson(protocolErrorResponse(RequestError.invalidRequest(message)));
|
|
@@ -3513,7 +3408,7 @@ class ClientContext extends AcpContext {
|
|
|
3513
3408
|
}
|
|
3514
3409
|
request(method, params, options) {
|
|
3515
3410
|
const spec = agentRequestSpecsByMethod[method];
|
|
3516
|
-
return this.sendRequest(method, params, spec?.mapResponse, options);
|
|
3411
|
+
return treatSessionNotFoundAsSuccess(method, this.sendRequest(method, params, spec?.mapResponse, options), () => spec?.mapResponse ? spec.mapResponse({}) : {});
|
|
3517
3412
|
}
|
|
3518
3413
|
notify(method, params) {
|
|
3519
3414
|
return this.sendNotification(method, params);
|
|
@@ -3896,7 +3791,6 @@ function runConnectHandlers(connection, handlers) {
|
|
|
3896
3791
|
var appBuilder = Symbol("appBuilder");
|
|
3897
3792
|
var runAgentConnectHandlers = Symbol("runAgentConnectHandlers");
|
|
3898
3793
|
var runClientConnectHandlers = Symbol("runClientConnectHandlers");
|
|
3899
|
-
var stableConnectionOptions = { allowBatches: false };
|
|
3900
3794
|
function client(options) {
|
|
3901
3795
|
return new ClientApp(options);
|
|
3902
3796
|
}
|
|
@@ -3982,7 +3876,7 @@ class ClientApp {
|
|
|
3982
3876
|
return state;
|
|
3983
3877
|
}
|
|
3984
3878
|
const [thisStream, peerStream] = memoryStreamPair();
|
|
3985
|
-
const peerRawConnection = target[appBuilder]().connect(peerStream
|
|
3879
|
+
const peerRawConnection = target[appBuilder]().connect(peerStream);
|
|
3986
3880
|
const peerConnection = agentConnection(peerRawConnection);
|
|
3987
3881
|
const state = this.openStreamConnection(thisStream);
|
|
3988
3882
|
state.rawConnection.closed.then(() => peerConnection.close());
|
|
@@ -3998,7 +3892,7 @@ class ClientApp {
|
|
|
3998
3892
|
return state;
|
|
3999
3893
|
}
|
|
4000
3894
|
openStreamConnection(stream) {
|
|
4001
|
-
const rawConnection = this.builder.connect(stream
|
|
3895
|
+
const rawConnection = this.builder.connect(stream);
|
|
4002
3896
|
return {
|
|
4003
3897
|
rawConnection,
|
|
4004
3898
|
connection: clientConnection(rawConnection, this.connectHandlers)
|