@desplega.ai/agent-swarm 1.131.0 → 1.133.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.md +2 -2
- package/dist/{actions-w53mbns9.js → actions-cskpayd7.js} +11 -9
- package/dist/{anthropic-messages-rjmd2e7n.js → anthropic-messages-tpxtbx7b.js} +28 -12
- package/dist/{app-m9gwqsqv.js → app-ang77nbb.js} +8 -6
- package/dist/{assistant-bp65m6f3.js → assistant-b4exebdw.js} +16 -13
- package/dist/{azure-openai-responses-c0yjmbfd.js → azure-openai-responses-m3921t4y.js} +8 -8
- package/dist/{boot-reembed-62p0at2k.js → boot-reembed-ps2aftpb.js} +9 -7
- package/dist/{boot-reembed-xmfp6wdh.js → boot-reembed-znyk3nxb.js} +10 -8
- package/dist/{boot-scrub-logs-rr8q2dms.js → boot-scrub-logs-2ax3xgz1.js} +7 -5
- package/dist/{claude-adapter-2y47mrkd.js → claude-adapter-3ct8kgxw.js} +13 -9
- package/dist/{claude-managed-adapter-gv19tdew.js → claude-managed-adapter-akx4ntf2.js} +2 -2
- package/dist/{cli-t1xze5qh.js → cli-13w2hwkh.js} +1 -1
- package/dist/{cli-efxfnq6q.js → cli-1532szb1.js} +8 -6
- package/dist/{cli-d2tfkcga.js → cli-23d3rseb.js} +33 -17
- package/dist/{cli-nm5gtp1x.js → cli-2a75z9c5.js} +196 -7
- package/dist/{cli-fywms69x.js → cli-2t30rj0d.js} +1 -1
- package/dist/{cli-cvgjwnh1.js → cli-3c3tdgab.js} +10 -10
- package/dist/{cli-pm6xbh84.js → cli-3zzxa9jz.js} +46 -16
- package/dist/{cli-cdeg08wx.js → cli-4k6233gc.js} +1 -1
- package/dist/{cli-t55yw3a1.js → cli-5p2tz05r.js} +2 -2
- package/dist/{cli-0rcyq6d9.js → cli-5z2yhzvd.js} +125 -47
- package/dist/{cli-3kf51j15.js → cli-6zfq31nj.js} +9 -3
- package/dist/{cli-er3a4bb0.js → cli-8m9de10a.js} +6 -1
- package/dist/{cli-gm9cbhbq.js → cli-8t14vg9w.js} +27 -8
- package/dist/{cli-72q8m8gk.js → cli-9nfc2es8.js} +6 -6
- package/dist/{cli-5ze9rv97.js → cli-9ta3pwms.js} +11 -4
- package/dist/{cli-78xwvkhj.js → cli-avr0ns7z.js} +2 -2
- package/dist/{cli-n6h8qt8n.js → cli-c897wyhw.js} +12 -7
- package/dist/{cli-2q72qz2s.js → cli-dgk20ft7.js} +15 -6
- package/dist/cli-et1bbwqf.js +13 -0
- package/dist/{cli-bqw0mt1n.js → cli-f5w27pj3.js} +3 -3
- package/dist/{cli-2wadx7p2.js → cli-f8dre4bz.js} +2 -2
- package/dist/{cli-e7ckcg4v.js → cli-ftwpv451.js} +170 -387
- package/dist/{cli-g6b8x1h8.js → cli-g854s2dw.js} +1 -1
- package/dist/{cli-5kx36evn.js → cli-ggmdxeqa.js} +13 -8
- package/dist/cli-hkwfe3qj.js +530 -0
- package/dist/{cli-5dsbcjjw.js → cli-jqwnqx9m.js} +1 -1
- package/dist/{cli-9dr5qzc0.js → cli-ny122vh4.js} +21 -10
- package/dist/{cli-5v4rw6yd.js → cli-pvzqhbs9.js} +2 -2
- package/dist/cli-pzq5rjym.js +15 -0
- package/dist/{cli-xpxde7rm.js → cli-qes8ef67.js} +48 -30
- package/dist/{cli-sajgpkqg.js → cli-qs9hhsvb.js} +1723 -325
- package/dist/cli-qys3rhhz.js +27 -0
- package/dist/{cli-rzbpmxdr.js → cli-r6tpm37h.js} +2 -2
- package/dist/{cli-qv61hp37.js → cli-rch80c76.js} +2 -2
- package/dist/{cli-0258203w.js → cli-rpp0x4zy.js} +137 -17
- package/dist/{cli-5n6e5yfn.js → cli-s1k0wxhe.js} +12 -7
- package/dist/{cli-psh3c4va.js → cli-sfd9v7sj.js} +1 -1
- package/dist/{cli-70xqj0z3.js → cli-sh3ytsyj.js} +49 -39
- package/dist/{cli-zsspvvm2.js → cli-w1mp9jy7.js} +1 -1
- package/dist/{cli-d3x3x1c9.js → cli-xdb4mpnp.js} +2 -2
- package/dist/{cli-57khth04.js → cli-xmyqv00z.js} +120 -4
- package/dist/{cli-yw8vghx2.js → cli-xv8t8p3c.js} +65 -32
- package/dist/{cli-f1am9szv.js → cli-xxv5pn4f.js} +1 -1
- package/dist/{cli-t76vw5db.js → cli-y08jvxzx.js} +601 -140
- package/dist/{cli-a4jzdpa3.js → cli-zfbf3srj.js} +650 -245
- package/dist/{cli-a40rnf71.js → cli-zmq89k34.js} +6 -6
- package/dist/{cli-qmdnhpej.js → cli-zr9q011v.js} +23 -13
- package/dist/cli.js +22 -22
- package/dist/{codex-adapter-d24q75wk.js → codex-adapter-bef93pq4.js} +9 -7
- package/dist/{codex-hook-hq54t9ft.js → codex-hook-e8dba65p.js} +3 -2
- package/dist/{codex-session-runner-g50vcsex.js → codex-session-runner-5pkxys7x.js} +9 -7
- package/dist/{commands-c3nrc5hg.js → commands-e23s1bff.js} +9 -7
- package/dist/{db-nt7fg3tw.js → db-m3nabatn.js} +17 -5
- package/dist/{google-generative-ai-hysrd8qx.js → google-generative-ai-8maw55xh.js} +11 -8
- package/dist/{google-vertex-p5arrga0.js → google-vertex-8vjqmx8g.js} +11 -8
- package/dist/{handlers-fkr6swat.js → handlers-akazedvr.js} +16 -13
- package/dist/{hook-77wpvnjc.js → hook-ze4cpf0v.js} +55 -41
- package/dist/{hook-g019yehy.js → hook-zfqyyenw.js} +10 -7
- package/dist/{http-jewj0syk.js → http-sja0n6kw.js} +730 -150
- package/dist/index-0gr8vd6k.js +39 -0
- package/dist/{index-7n2xpbd4.js → index-354vkhdv.js} +154 -74
- package/dist/{index-070v4eyb.js → index-5qthek5t.js} +2 -3
- package/dist/{index-hfvggd0z.js → index-95t3cqq5.js} +16 -14
- package/dist/{index-9znhar3x.js → index-sea66619.js} +3 -4
- package/dist/{index-6gm5he8h.js → index-vpn36mma.js} +15 -13
- package/dist/{keepalive-j0fjvqfd.js → keepalive-3sp3meqj.js} +16 -10
- package/dist/{lead-1n8x30xe.js → lead-mefeewkf.js} +39 -36
- package/dist/{maintenance-gvev11sa.js → maintenance-8tbrbjfg.js} +10 -8
- package/dist/mistral-conversations-00zrp7g4.js +717 -0
- package/dist/{oauth-refresh-sweep-s9ecsvh0.js → oauth-refresh-sweep-srjwjz6m.js} +8 -6
- package/dist/{onboard-pvm5b38w.js → onboard-mt2tgyjg.js} +7 -7
- package/dist/{openai-codex-responses-5g27pd6f.js → openai-codex-responses-map32h2s.js} +18 -18
- package/dist/{openai-completions-3vkmfz2a.js → openai-completions-w871b1cq.js} +12 -11
- package/dist/{openai-responses-dg4t7j7a.js → openai-responses-b0j7xnw8.js} +15 -12
- package/dist/{opencode-adapter-1gm38aba.js → opencode-adapter-b39jefcj.js} +5 -3
- package/dist/{openrouter-images-g3gm8931.js → openrouter-images-srfkywy0.js} +4 -4
- package/dist/{otel-impl-p6jvgd9c.js → otel-impl-z6pxt3j9.js} +224 -9
- package/dist/{pi-mono-adapter-t091s27g.js → pi-mono-adapter-btvqmj58.js} +1138 -408
- package/dist/{pricing-refresh-k49rcyed.js → pricing-refresh-kyq8cezh.js} +9 -7
- package/dist/{rbac-roles-cr80g96t.js → rbac-roles-3ryfrfna.js} +8 -6
- package/dist/{rbac-roles-30pspvy7.js → rbac-roles-6qfvbee1.js} +9 -7
- package/dist/{render-v2-xm457ng1.js → render-v2-p61ppjey.js} +8 -6
- package/dist/{seed-pricing-yhpv35fr.js → seed-pricing-j56bbj4y.js} +8 -6
- package/dist/{setup-nytnmwwr.js → setup-tpr6c1kn.js} +2 -2
- package/dist/{worker-msytr2cw.js → worker-9w1v0mbb.js} +39 -36
- package/openapi.json +542 -16
- package/package.json +6 -6
- package/src/be/budget-refusal-notify.ts +14 -7
- package/src/be/db-queries/task-artifacts.ts +182 -0
- package/src/be/db.ts +783 -169
- package/src/be/events.ts +5 -0
- package/src/be/migrations/130_scratch_script_retention_grace.sql +6 -0
- package/src/be/migrations/131_session_logs_created_at_index.sql +2 -0
- package/src/be/migrations/132_multi_runtime_instances.sql +44 -0
- package/src/be/migrations/133_workflow_run_trigger_type.sql +12 -0
- package/src/be/migrations/135_backfill_task_pull_request_attachments.sql +228 -0
- package/src/be/migrations/136_task_requester_provenance.sql +37 -0
- package/src/be/migrations/137_memory_retrieval_composite_index.sql +1 -0
- package/src/be/multi-runtime.ts +430 -0
- package/src/be/scripts/db.ts +43 -1
- package/src/be/scripts/extract-schema.ts +3 -1
- package/src/be/scripts/retention.ts +164 -0
- package/src/be/scripts/run-saved.ts +16 -1
- package/src/be/scripts/typecheck.ts +3 -2
- package/src/be/seed-skills/index.ts +7 -0
- package/src/be/steering.ts +1 -1
- package/src/be/swarm-config-guard.ts +18 -0
- package/src/commands/credential-wait.ts +54 -0
- package/src/commands/onboard/steps/core-credentials.tsx +1 -1
- package/src/commands/onboard/steps/custom-templates.tsx +1 -1
- package/src/commands/onboard/steps/harness-credentials.tsx +1 -1
- package/src/commands/onboard/steps/health-check.tsx +1 -1
- package/src/commands/onboard/steps/start.tsx +1 -1
- package/src/commands/profile-sync-audit.ts +56 -0
- package/src/commands/profile-sync.ts +287 -15
- package/src/commands/provider-credentials.ts +46 -19
- package/src/commands/runner.ts +196 -33
- package/src/commands/templates.ts +22 -0
- package/src/github/handlers.ts +55 -9
- package/src/heartbeat/heartbeat.ts +71 -12
- package/src/hooks/hook.ts +49 -33
- package/src/http/active-sessions.ts +11 -1
- package/src/http/agents.ts +261 -30
- package/src/http/all-routes.ts +1 -0
- package/src/http/config.ts +13 -2
- package/src/http/core.ts +102 -4
- package/src/http/db-query-bounded.ts +313 -0
- package/src/http/db-query-shared.ts +249 -0
- package/src/http/db-query.ts +54 -42
- package/src/http/events.ts +2 -0
- package/src/http/index.ts +27 -2
- package/src/http/mcp-bridge.ts +37 -3
- package/src/http/mcp.ts +12 -0
- package/src/http/memory.ts +13 -2
- package/src/http/openapi.ts +1 -0
- package/src/http/poll.ts +70 -27
- package/src/http/route-def.ts +43 -9
- package/src/http/schedules.ts +2 -2
- package/src/http/scripts.ts +31 -4
- package/src/http/session-data.ts +44 -0
- package/src/http/tasks.ts +2 -2
- package/src/http/users.ts +74 -52
- package/src/http/webhooks.ts +5 -2
- package/src/http/workflows.ts +1 -4
- package/src/http/x.ts +14 -0
- package/src/integrations/kapso/inbound.ts +1 -1
- package/src/jira/outbound.ts +39 -8
- package/src/jira/webhook-lifecycle.ts +13 -2
- package/src/linear/outbound.ts +43 -10
- package/src/oauth/keepalive.ts +13 -2
- package/src/prompts/base-prompt.ts +1 -1
- package/src/prompts/session-templates.ts +45 -7
- package/src/providers/claude-adapter.ts +6 -0
- package/src/providers/claude-managed-models.ts +34 -10
- package/src/providers/codex-adapter.ts +6 -0
- package/src/providers/opencode-adapter.ts +6 -0
- package/src/providers/pi-mono-adapter.ts +8 -0
- package/src/providers/pricing-sources.md +24 -0
- package/src/queue-stall-alarm.ts +216 -0
- package/src/scheduler/scheduler.ts +7 -0
- package/src/script-workflows/executor.ts +2 -1
- package/src/scripts-runtime/executors/native.ts +2 -1
- package/src/scripts-runtime/executors/types.ts +5 -0
- package/src/scripts-runtime/loader.ts +5 -0
- package/src/scripts-runtime/swarm-config.ts +8 -0
- package/src/scripts-runtime/swarm-sdk.ts +7 -0
- package/src/scripts-runtime/types/stdlib.d.ts +1 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +1 -0
- package/src/tests/budget-claim-gate.test.ts +20 -0
- package/src/tests/claude-adapter.test.ts +32 -0
- package/src/tests/claude-managed-adapter.test.ts +38 -7
- package/src/tests/codex-adapter.test.ts +30 -0
- package/src/tests/create-task-validation.test.ts +128 -0
- package/src/tests/credential-wait.test.ts +67 -1
- package/src/tests/db-query.test.ts +711 -2
- package/src/tests/http-api-integration.test.ts +81 -0
- package/src/tests/http-users.test.ts +166 -1
- package/src/tests/identity-field-budget.test.ts +176 -0
- package/src/tests/mcp-tools-user.test.ts +34 -0
- package/src/tests/mcp-user-route.test.ts +17 -0
- package/src/tests/metrics-http.test.ts +44 -0
- package/src/tests/multi-runtime-registration.test.ts +2703 -0
- package/src/tests/openapi-response-contract.test.ts +24 -0
- package/src/tests/openapi-route-headers.test.ts +83 -0
- package/src/tests/opencode-adapter.test.ts +40 -0
- package/src/tests/outbound-listener-rejection.test.ts +138 -0
- package/src/tests/pi-mono-adapter.test.ts +98 -0
- package/src/tests/profile-sync-warning.test.ts +277 -0
- package/src/tests/profile-sync.test.ts +232 -6
- package/src/tests/prompt-template-session.test.ts +32 -3
- package/src/tests/queue-stall-alarm.test.ts +226 -0
- package/src/tests/requester-comms.test.ts +32 -0
- package/src/tests/runner-requester-profile.test.ts +38 -0
- package/src/tests/sandboxed-process.test.ts +45 -0
- package/src/tests/schedule-target-type.test.ts +38 -0
- package/src/tests/script-connections.test.ts +16 -3
- package/src/tests/scripts-external-api.test.ts +8 -3
- package/src/tests/scripts-http.test.ts +12 -0
- package/src/tests/scripts-retention.test.ts +384 -0
- package/src/tests/scripts-runtime-identity.test.ts +375 -0
- package/src/tests/scripts-runtime.test.ts +4 -3
- package/src/tests/sdk-allowlist.test.ts +47 -0
- package/src/tests/send-task-requested-by.test.ts +9 -0
- package/src/tests/session-costs.test.ts +506 -1
- package/src/tests/shutdown-error-scrubbing.test.ts +92 -0
- package/src/tests/steering-core.test.ts +28 -0
- package/src/tests/task-artifacts.test.ts +386 -0
- package/src/tests/task-attachments-schema.test.ts +17 -1
- package/src/tests/task-completion-idempotency.test.ts +57 -0
- package/src/tests/task-pull-request-backfill-migration.test.ts +321 -0
- package/src/tests/update-profile-api.test.ts +67 -39
- package/src/tests/update-profile-auth.test.ts +48 -4
- package/src/tests/user-attribution-migration.test.ts +54 -0
- package/src/tests/user-identity.test.ts +72 -0
- package/src/tests/workflow-async-v2.test.ts +39 -1
- package/src/tests/workflow-http-v2.test.ts +3 -2
- package/src/tests/workflow-mcp-trigger-schema.test.ts +52 -3
- package/src/tests/workflow-retry-v2.test.ts +45 -1
- package/src/tests/workflow-swarm-script.test.ts +14 -5
- package/src/tools/db-query.ts +18 -8
- package/src/tools/get-task-details.ts +24 -3
- package/src/tools/manage-user.ts +36 -3
- package/src/tools/poll-task.ts +93 -14
- package/src/tools/script-common.ts +5 -0
- package/src/tools/send-task.ts +1 -4
- package/src/tools/store-progress.ts +13 -2
- package/src/tools/swarm-config/delete-config.ts +9 -0
- package/src/tools/swarm-config/set-config.ts +3 -2
- package/src/tools/task-action.ts +30 -0
- package/src/tools/task-tool-ctx.ts +8 -1
- package/src/tools/update-profile.ts +16 -21
- package/src/tools/utils.ts +5 -0
- package/src/tools/workflows/trigger-workflow.ts +7 -1
- package/src/types.ts +165 -1
- package/src/utils/github-pull-request.ts +76 -0
- package/src/utils/identity-field-budget.ts +73 -0
- package/src/utils/multi-runtime.ts +20 -0
- package/src/utils/requester-comms.ts +24 -0
- package/src/utils/sandboxed-process.ts +40 -14
- package/src/workflows/engine.ts +22 -2
- package/src/workflows/executors/swarm-script.ts +24 -1
- package/src/workflows/resume.ts +19 -11
- package/src/workflows/retry-poller.ts +1 -0
- package/src/workflows/triggers.ts +4 -0
- package/templates/schedules/daily-compounding-reflection/content.md +12 -3
- package/templates/skills/db-query-guidance/config.json +14 -0
- package/templates/skills/db-query-guidance/content.md +57 -0
- package/dist/cli-3te4jdkm.js +0 -225
- package/dist/cli-bmze986d.js +0 -7
- package/dist/cli-kh3ba2zf.js +0 -607
- package/dist/index-hp1kdbjj.js +0 -36
- package/dist/mistral-conversations-81fwav0j.js +0 -30578
- package/dist/otel-nqa12wf3.js +0 -3149
- package/dist/{pi-messages-tqj8q6b9.js → pi-messages-sssy32x4.js} +3 -3
package/openapi.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"openapi": "3.1.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Agent Swarm API",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.133.1",
|
|
6
6
|
"description": "Multi-agent orchestration API for Claude Code, Codex, and Gemini CLI. Enables task distribution, agent communication, and service discovery.\n\nMCP tools are documented separately in [MCP.md](./MCP.md)."
|
|
7
7
|
},
|
|
8
8
|
"servers": [
|
|
@@ -69,6 +69,12 @@
|
|
|
69
69
|
"null"
|
|
70
70
|
]
|
|
71
71
|
},
|
|
72
|
+
"runtimeInstanceId": {
|
|
73
|
+
"type": [
|
|
74
|
+
"string",
|
|
75
|
+
"null"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
72
78
|
"startedAt": {
|
|
73
79
|
"type": "string",
|
|
74
80
|
"format": "date-time"
|
|
@@ -1264,6 +1270,8 @@
|
|
|
1264
1270
|
"system.boot",
|
|
1265
1271
|
"system.migration",
|
|
1266
1272
|
"system.error",
|
|
1273
|
+
"system.profile_sync_rejected",
|
|
1274
|
+
"system.profile_sync_reconciled",
|
|
1267
1275
|
"script.global_upsert",
|
|
1268
1276
|
"schedule.deleted"
|
|
1269
1277
|
]
|
|
@@ -2329,6 +2337,20 @@
|
|
|
2329
2337
|
"changeReason"
|
|
2330
2338
|
]
|
|
2331
2339
|
},
|
|
2340
|
+
"UserCommsPrefs": {
|
|
2341
|
+
"type": "object",
|
|
2342
|
+
"properties": {
|
|
2343
|
+
"tone": {
|
|
2344
|
+
"type": "string"
|
|
2345
|
+
},
|
|
2346
|
+
"language": {
|
|
2347
|
+
"type": "string"
|
|
2348
|
+
},
|
|
2349
|
+
"verbosity": {
|
|
2350
|
+
"type": "string"
|
|
2351
|
+
}
|
|
2352
|
+
}
|
|
2353
|
+
},
|
|
2332
2354
|
"BudgetRefusedTrigger": {
|
|
2333
2355
|
"type": "object",
|
|
2334
2356
|
"properties": {
|
|
@@ -4289,6 +4311,9 @@
|
|
|
4289
4311
|
"error": {
|
|
4290
4312
|
"type": "string"
|
|
4291
4313
|
},
|
|
4314
|
+
"createdBy": {
|
|
4315
|
+
"type": "string"
|
|
4316
|
+
},
|
|
4292
4317
|
"startedAt": {
|
|
4293
4318
|
"type": "string"
|
|
4294
4319
|
},
|
|
@@ -4694,6 +4719,9 @@
|
|
|
4694
4719
|
},
|
|
4695
4720
|
"runnerSessionId": {
|
|
4696
4721
|
"type": "string"
|
|
4722
|
+
},
|
|
4723
|
+
"runtimeInstanceId": {
|
|
4724
|
+
"type": "string"
|
|
4697
4725
|
}
|
|
4698
4726
|
},
|
|
4699
4727
|
"required": [
|
|
@@ -5048,6 +5076,108 @@
|
|
|
5048
5076
|
}
|
|
5049
5077
|
}
|
|
5050
5078
|
},
|
|
5079
|
+
"/ping": {
|
|
5080
|
+
"post": {
|
|
5081
|
+
"summary": "Report agent liveness",
|
|
5082
|
+
"description": "Refreshes the calling agent's status. Workers may send `X-Runtime-Instance-ID`, the per-boot identifier of the calling process. It is ignored unless MULTI_RUNTIME_ENABLED is set. With multi-runtime mode on, the header must identify a live runtime of this agent; an absent, unknown, offline, or foreign identifier makes the call a no-op instead of an error, so workers predating the flag keep running.",
|
|
5083
|
+
"tags": [
|
|
5084
|
+
"Core"
|
|
5085
|
+
],
|
|
5086
|
+
"security": [
|
|
5087
|
+
{
|
|
5088
|
+
"bearerAuth": []
|
|
5089
|
+
}
|
|
5090
|
+
],
|
|
5091
|
+
"parameters": [
|
|
5092
|
+
{
|
|
5093
|
+
"schema": {
|
|
5094
|
+
"type": "string",
|
|
5095
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to refresh a runtime's liveness when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise."
|
|
5096
|
+
},
|
|
5097
|
+
"required": false,
|
|
5098
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to refresh a runtime's liveness when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise.",
|
|
5099
|
+
"name": "X-Runtime-Instance-ID",
|
|
5100
|
+
"in": "header"
|
|
5101
|
+
}
|
|
5102
|
+
],
|
|
5103
|
+
"responses": {
|
|
5104
|
+
"204": {
|
|
5105
|
+
"description": "Liveness recorded (or accepted as a no-op)"
|
|
5106
|
+
},
|
|
5107
|
+
"400": {
|
|
5108
|
+
"description": "Missing X-Agent-ID header",
|
|
5109
|
+
"content": {
|
|
5110
|
+
"application/json": {
|
|
5111
|
+
"schema": {
|
|
5112
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
5113
|
+
}
|
|
5114
|
+
}
|
|
5115
|
+
}
|
|
5116
|
+
},
|
|
5117
|
+
"404": {
|
|
5118
|
+
"description": "Agent not found",
|
|
5119
|
+
"content": {
|
|
5120
|
+
"application/json": {
|
|
5121
|
+
"schema": {
|
|
5122
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
5123
|
+
}
|
|
5124
|
+
}
|
|
5125
|
+
}
|
|
5126
|
+
}
|
|
5127
|
+
}
|
|
5128
|
+
}
|
|
5129
|
+
},
|
|
5130
|
+
"/close": {
|
|
5131
|
+
"post": {
|
|
5132
|
+
"summary": "Mark an agent or runtime offline on shutdown",
|
|
5133
|
+
"description": "Retires the calling process. Workers may send `X-Runtime-Instance-ID`, the per-boot identifier of the calling process. It is ignored unless MULTI_RUNTIME_ENABLED is set. With multi-runtime mode on, the header is required and only that runtime is retired; the agent goes offline once no live runtime remains. With the flag off, the agent is marked offline as before.",
|
|
5134
|
+
"tags": [
|
|
5135
|
+
"Core"
|
|
5136
|
+
],
|
|
5137
|
+
"security": [
|
|
5138
|
+
{
|
|
5139
|
+
"bearerAuth": []
|
|
5140
|
+
}
|
|
5141
|
+
],
|
|
5142
|
+
"parameters": [
|
|
5143
|
+
{
|
|
5144
|
+
"schema": {
|
|
5145
|
+
"type": "string",
|
|
5146
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to retire a runtime when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise."
|
|
5147
|
+
},
|
|
5148
|
+
"required": false,
|
|
5149
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to retire a runtime when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise.",
|
|
5150
|
+
"name": "X-Runtime-Instance-ID",
|
|
5151
|
+
"in": "header"
|
|
5152
|
+
}
|
|
5153
|
+
],
|
|
5154
|
+
"responses": {
|
|
5155
|
+
"204": {
|
|
5156
|
+
"description": "Runtime (and agent, when last) marked offline"
|
|
5157
|
+
},
|
|
5158
|
+
"400": {
|
|
5159
|
+
"description": "Missing X-Agent-ID, or missing X-Runtime-Instance-ID in multi-runtime mode",
|
|
5160
|
+
"content": {
|
|
5161
|
+
"application/json": {
|
|
5162
|
+
"schema": {
|
|
5163
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
5164
|
+
}
|
|
5165
|
+
}
|
|
5166
|
+
}
|
|
5167
|
+
},
|
|
5168
|
+
"404": {
|
|
5169
|
+
"description": "Agent not found",
|
|
5170
|
+
"content": {
|
|
5171
|
+
"application/json": {
|
|
5172
|
+
"schema": {
|
|
5173
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
5174
|
+
}
|
|
5175
|
+
}
|
|
5176
|
+
}
|
|
5177
|
+
}
|
|
5178
|
+
}
|
|
5179
|
+
}
|
|
5180
|
+
},
|
|
5051
5181
|
"/api/apps/{id}/user-config": {
|
|
5052
5182
|
"get": {
|
|
5053
5183
|
"summary": "Get app user configuration",
|
|
@@ -8386,6 +8516,26 @@
|
|
|
8386
8516
|
}
|
|
8387
8517
|
}
|
|
8388
8518
|
}
|
|
8519
|
+
},
|
|
8520
|
+
"408": {
|
|
8521
|
+
"description": "Query exceeded its wall-clock budget and was terminated",
|
|
8522
|
+
"content": {
|
|
8523
|
+
"application/json": {
|
|
8524
|
+
"schema": {
|
|
8525
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
8526
|
+
}
|
|
8527
|
+
}
|
|
8528
|
+
}
|
|
8529
|
+
},
|
|
8530
|
+
"429": {
|
|
8531
|
+
"description": "Too many concurrent bounded db-query executions; retry shortly",
|
|
8532
|
+
"content": {
|
|
8533
|
+
"application/json": {
|
|
8534
|
+
"schema": {
|
|
8535
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
8536
|
+
}
|
|
8537
|
+
}
|
|
8538
|
+
}
|
|
8389
8539
|
}
|
|
8390
8540
|
}
|
|
8391
8541
|
}
|
|
@@ -8450,6 +8600,10 @@
|
|
|
8450
8600
|
"claude-managed",
|
|
8451
8601
|
"opencode"
|
|
8452
8602
|
]
|
|
8603
|
+
},
|
|
8604
|
+
"runtimeInstanceId": {
|
|
8605
|
+
"type": "string",
|
|
8606
|
+
"minLength": 1
|
|
8453
8607
|
}
|
|
8454
8608
|
},
|
|
8455
8609
|
"required": [
|
|
@@ -9090,6 +9244,116 @@
|
|
|
9090
9244
|
}
|
|
9091
9245
|
}
|
|
9092
9246
|
},
|
|
9247
|
+
"/api/agents/{id}/runtime-instances": {
|
|
9248
|
+
"get": {
|
|
9249
|
+
"summary": "List runtime instances serving an agent",
|
|
9250
|
+
"description": "Read-only view of the worker processes currently registered for a logical agent. Rows exist only for multi-runtime registrations (MULTI_RUNTIME_ENABLED), so the list is empty in the default configuration. `isLive` combines `status` with `lastSeenAt` freshness against the server's staleness cutoff (`staleThresholdMinutes`); `reportedSlots` is each process's self-reported capacity, distinct from the agent's logical `maxTasks` policy.",
|
|
9251
|
+
"tags": [
|
|
9252
|
+
"Agents"
|
|
9253
|
+
],
|
|
9254
|
+
"security": [
|
|
9255
|
+
{
|
|
9256
|
+
"bearerAuth": []
|
|
9257
|
+
}
|
|
9258
|
+
],
|
|
9259
|
+
"parameters": [
|
|
9260
|
+
{
|
|
9261
|
+
"schema": {
|
|
9262
|
+
"type": "string"
|
|
9263
|
+
},
|
|
9264
|
+
"required": true,
|
|
9265
|
+
"name": "id",
|
|
9266
|
+
"in": "path"
|
|
9267
|
+
}
|
|
9268
|
+
],
|
|
9269
|
+
"responses": {
|
|
9270
|
+
"200": {
|
|
9271
|
+
"description": "Runtime instances for the agent (empty when none are registered)",
|
|
9272
|
+
"content": {
|
|
9273
|
+
"application/json": {
|
|
9274
|
+
"schema": {
|
|
9275
|
+
"type": "object",
|
|
9276
|
+
"properties": {
|
|
9277
|
+
"runtimeInstances": {
|
|
9278
|
+
"type": "array",
|
|
9279
|
+
"items": {
|
|
9280
|
+
"type": "object",
|
|
9281
|
+
"properties": {
|
|
9282
|
+
"id": {
|
|
9283
|
+
"type": "string"
|
|
9284
|
+
},
|
|
9285
|
+
"agentId": {
|
|
9286
|
+
"type": "string"
|
|
9287
|
+
},
|
|
9288
|
+
"status": {
|
|
9289
|
+
"type": "string",
|
|
9290
|
+
"enum": [
|
|
9291
|
+
"active",
|
|
9292
|
+
"offline"
|
|
9293
|
+
]
|
|
9294
|
+
},
|
|
9295
|
+
"reportedSlots": {
|
|
9296
|
+
"type": "integer"
|
|
9297
|
+
},
|
|
9298
|
+
"credentialReady": {
|
|
9299
|
+
"type": [
|
|
9300
|
+
"boolean",
|
|
9301
|
+
"null"
|
|
9302
|
+
]
|
|
9303
|
+
},
|
|
9304
|
+
"lastSeenAt": {
|
|
9305
|
+
"type": "string",
|
|
9306
|
+
"format": "date-time"
|
|
9307
|
+
},
|
|
9308
|
+
"createdAt": {
|
|
9309
|
+
"type": "string",
|
|
9310
|
+
"format": "date-time"
|
|
9311
|
+
},
|
|
9312
|
+
"updatedAt": {
|
|
9313
|
+
"type": "string",
|
|
9314
|
+
"format": "date-time"
|
|
9315
|
+
},
|
|
9316
|
+
"isLive": {
|
|
9317
|
+
"type": "boolean"
|
|
9318
|
+
}
|
|
9319
|
+
},
|
|
9320
|
+
"required": [
|
|
9321
|
+
"id",
|
|
9322
|
+
"agentId",
|
|
9323
|
+
"status",
|
|
9324
|
+
"reportedSlots",
|
|
9325
|
+
"lastSeenAt",
|
|
9326
|
+
"createdAt",
|
|
9327
|
+
"updatedAt",
|
|
9328
|
+
"isLive"
|
|
9329
|
+
]
|
|
9330
|
+
}
|
|
9331
|
+
},
|
|
9332
|
+
"staleThresholdMinutes": {
|
|
9333
|
+
"type": "integer"
|
|
9334
|
+
}
|
|
9335
|
+
},
|
|
9336
|
+
"required": [
|
|
9337
|
+
"runtimeInstances",
|
|
9338
|
+
"staleThresholdMinutes"
|
|
9339
|
+
]
|
|
9340
|
+
}
|
|
9341
|
+
}
|
|
9342
|
+
}
|
|
9343
|
+
},
|
|
9344
|
+
"404": {
|
|
9345
|
+
"description": "Agent not found",
|
|
9346
|
+
"content": {
|
|
9347
|
+
"application/json": {
|
|
9348
|
+
"schema": {
|
|
9349
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
9350
|
+
}
|
|
9351
|
+
}
|
|
9352
|
+
}
|
|
9353
|
+
}
|
|
9354
|
+
}
|
|
9355
|
+
}
|
|
9356
|
+
},
|
|
9093
9357
|
"/api/agents/{id}/profile": {
|
|
9094
9358
|
"put": {
|
|
9095
9359
|
"summary": "Update agent profile (role, description, capabilities, etc.)",
|
|
@@ -9131,24 +9395,20 @@
|
|
|
9131
9395
|
}
|
|
9132
9396
|
},
|
|
9133
9397
|
"claudeMd": {
|
|
9134
|
-
"type": "string"
|
|
9135
|
-
"maxLength": 262144
|
|
9398
|
+
"type": "string"
|
|
9136
9399
|
},
|
|
9137
9400
|
"soulMd": {
|
|
9138
|
-
"type": "string"
|
|
9139
|
-
"maxLength": 262144
|
|
9401
|
+
"type": "string"
|
|
9140
9402
|
},
|
|
9141
9403
|
"identityMd": {
|
|
9142
|
-
"type": "string"
|
|
9143
|
-
"maxLength": 262144
|
|
9404
|
+
"type": "string"
|
|
9144
9405
|
},
|
|
9145
9406
|
"setupScript": {
|
|
9146
9407
|
"type": "string",
|
|
9147
9408
|
"maxLength": 262144
|
|
9148
9409
|
},
|
|
9149
9410
|
"toolsMd": {
|
|
9150
|
-
"type": "string"
|
|
9151
|
-
"maxLength": 262144
|
|
9411
|
+
"type": "string"
|
|
9152
9412
|
},
|
|
9153
9413
|
"heartbeatMd": {
|
|
9154
9414
|
"type": "string",
|
|
@@ -9242,11 +9502,56 @@
|
|
|
9242
9502
|
}
|
|
9243
9503
|
},
|
|
9244
9504
|
"400": {
|
|
9245
|
-
"description": "Validation error",
|
|
9505
|
+
"description": "Validation or identity-field budget error",
|
|
9246
9506
|
"content": {
|
|
9247
9507
|
"application/json": {
|
|
9248
9508
|
"schema": {
|
|
9249
|
-
"
|
|
9509
|
+
"type": "object",
|
|
9510
|
+
"properties": {
|
|
9511
|
+
"error": {
|
|
9512
|
+
"type": "string"
|
|
9513
|
+
},
|
|
9514
|
+
"profileSyncRejection": {
|
|
9515
|
+
"type": "object",
|
|
9516
|
+
"properties": {
|
|
9517
|
+
"field": {
|
|
9518
|
+
"type": "string",
|
|
9519
|
+
"enum": [
|
|
9520
|
+
"soulMd",
|
|
9521
|
+
"identityMd",
|
|
9522
|
+
"claudeMd",
|
|
9523
|
+
"toolsMd"
|
|
9524
|
+
]
|
|
9525
|
+
},
|
|
9526
|
+
"diskSize": {
|
|
9527
|
+
"type": "integer"
|
|
9528
|
+
},
|
|
9529
|
+
"dbSize": {
|
|
9530
|
+
"type": "integer"
|
|
9531
|
+
},
|
|
9532
|
+
"budget": {
|
|
9533
|
+
"type": "integer"
|
|
9534
|
+
},
|
|
9535
|
+
"delta": {
|
|
9536
|
+
"type": "integer"
|
|
9537
|
+
},
|
|
9538
|
+
"reason": {
|
|
9539
|
+
"type": "string"
|
|
9540
|
+
}
|
|
9541
|
+
},
|
|
9542
|
+
"required": [
|
|
9543
|
+
"field",
|
|
9544
|
+
"diskSize",
|
|
9545
|
+
"dbSize",
|
|
9546
|
+
"budget",
|
|
9547
|
+
"delta",
|
|
9548
|
+
"reason"
|
|
9549
|
+
]
|
|
9550
|
+
}
|
|
9551
|
+
},
|
|
9552
|
+
"required": [
|
|
9553
|
+
"error"
|
|
9554
|
+
]
|
|
9250
9555
|
}
|
|
9251
9556
|
}
|
|
9252
9557
|
}
|
|
@@ -9405,6 +9710,16 @@
|
|
|
9405
9710
|
"required": true,
|
|
9406
9711
|
"name": "id",
|
|
9407
9712
|
"in": "path"
|
|
9713
|
+
},
|
|
9714
|
+
{
|
|
9715
|
+
"schema": {
|
|
9716
|
+
"type": "string",
|
|
9717
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to report credential readiness when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise."
|
|
9718
|
+
},
|
|
9719
|
+
"required": false,
|
|
9720
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to report credential readiness when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise.",
|
|
9721
|
+
"name": "X-Runtime-Instance-ID",
|
|
9722
|
+
"in": "header"
|
|
9408
9723
|
}
|
|
9409
9724
|
],
|
|
9410
9725
|
"requestBody": {
|
|
@@ -9485,6 +9800,16 @@
|
|
|
9485
9800
|
}
|
|
9486
9801
|
}
|
|
9487
9802
|
},
|
|
9803
|
+
"400": {
|
|
9804
|
+
"description": "Missing X-Runtime-Instance-ID in multi-runtime mode",
|
|
9805
|
+
"content": {
|
|
9806
|
+
"application/json": {
|
|
9807
|
+
"schema": {
|
|
9808
|
+
"$ref": "#/components/schemas/ErrorResponse"
|
|
9809
|
+
}
|
|
9810
|
+
}
|
|
9811
|
+
}
|
|
9812
|
+
},
|
|
9488
9813
|
"404": {
|
|
9489
9814
|
"description": "Agent not found",
|
|
9490
9815
|
"content": {
|
|
@@ -14018,6 +14343,8 @@
|
|
|
14018
14343
|
"system.boot",
|
|
14019
14344
|
"system.migration",
|
|
14020
14345
|
"system.error",
|
|
14346
|
+
"system.profile_sync_rejected",
|
|
14347
|
+
"system.profile_sync_reconciled",
|
|
14021
14348
|
"script.global_upsert",
|
|
14022
14349
|
"schedule.deleted"
|
|
14023
14350
|
]
|
|
@@ -14163,6 +14490,8 @@
|
|
|
14163
14490
|
"system.boot",
|
|
14164
14491
|
"system.migration",
|
|
14165
14492
|
"system.error",
|
|
14493
|
+
"system.profile_sync_rejected",
|
|
14494
|
+
"system.profile_sync_reconciled",
|
|
14166
14495
|
"script.global_upsert",
|
|
14167
14496
|
"schedule.deleted"
|
|
14168
14497
|
]
|
|
@@ -14224,6 +14553,14 @@
|
|
|
14224
14553
|
"name": "sessionId",
|
|
14225
14554
|
"in": "query"
|
|
14226
14555
|
},
|
|
14556
|
+
{
|
|
14557
|
+
"schema": {
|
|
14558
|
+
"type": "string"
|
|
14559
|
+
},
|
|
14560
|
+
"required": false,
|
|
14561
|
+
"name": "dataField",
|
|
14562
|
+
"in": "query"
|
|
14563
|
+
},
|
|
14227
14564
|
{
|
|
14228
14565
|
"schema": {
|
|
14229
14566
|
"type": "string"
|
|
@@ -14333,6 +14670,8 @@
|
|
|
14333
14670
|
"system.boot",
|
|
14334
14671
|
"system.migration",
|
|
14335
14672
|
"system.error",
|
|
14673
|
+
"system.profile_sync_rejected",
|
|
14674
|
+
"system.profile_sync_reconciled",
|
|
14336
14675
|
"script.global_upsert",
|
|
14337
14676
|
"schedule.deleted"
|
|
14338
14677
|
]
|
|
@@ -22344,6 +22683,18 @@
|
|
|
22344
22683
|
"bearerAuth": []
|
|
22345
22684
|
}
|
|
22346
22685
|
],
|
|
22686
|
+
"parameters": [
|
|
22687
|
+
{
|
|
22688
|
+
"schema": {
|
|
22689
|
+
"type": "string",
|
|
22690
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to poll for work when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise."
|
|
22691
|
+
},
|
|
22692
|
+
"required": false,
|
|
22693
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to poll for work when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise.",
|
|
22694
|
+
"name": "X-Runtime-Instance-ID",
|
|
22695
|
+
"in": "header"
|
|
22696
|
+
}
|
|
22697
|
+
],
|
|
22347
22698
|
"responses": {
|
|
22348
22699
|
"200": {
|
|
22349
22700
|
"description": "Trigger data or null",
|
|
@@ -22368,6 +22719,30 @@
|
|
|
22368
22719
|
},
|
|
22369
22720
|
"task": {
|
|
22370
22721
|
"$ref": "#/components/schemas/AgentTask"
|
|
22722
|
+
},
|
|
22723
|
+
"requestedBy": {
|
|
22724
|
+
"type": "object",
|
|
22725
|
+
"properties": {
|
|
22726
|
+
"name": {
|
|
22727
|
+
"type": "string",
|
|
22728
|
+
"minLength": 1
|
|
22729
|
+
},
|
|
22730
|
+
"email": {
|
|
22731
|
+
"type": "string"
|
|
22732
|
+
},
|
|
22733
|
+
"role": {
|
|
22734
|
+
"type": "string"
|
|
22735
|
+
},
|
|
22736
|
+
"notes": {
|
|
22737
|
+
"type": "string"
|
|
22738
|
+
},
|
|
22739
|
+
"comms": {
|
|
22740
|
+
"$ref": "#/components/schemas/UserCommsPrefs"
|
|
22741
|
+
}
|
|
22742
|
+
},
|
|
22743
|
+
"required": [
|
|
22744
|
+
"name"
|
|
22745
|
+
]
|
|
22371
22746
|
}
|
|
22372
22747
|
},
|
|
22373
22748
|
"required": [
|
|
@@ -22444,6 +22819,9 @@
|
|
|
22444
22819
|
},
|
|
22445
22820
|
"notes": {
|
|
22446
22821
|
"type": "string"
|
|
22822
|
+
},
|
|
22823
|
+
"comms": {
|
|
22824
|
+
"$ref": "#/components/schemas/UserCommsPrefs"
|
|
22447
22825
|
}
|
|
22448
22826
|
},
|
|
22449
22827
|
"required": [
|
|
@@ -23492,7 +23870,9 @@
|
|
|
23492
23870
|
}
|
|
23493
23871
|
},
|
|
23494
23872
|
"priority": {
|
|
23495
|
-
"type": "integer"
|
|
23873
|
+
"type": "integer",
|
|
23874
|
+
"minimum": 0,
|
|
23875
|
+
"maximum": 100
|
|
23496
23876
|
},
|
|
23497
23877
|
"targetAgentId": {
|
|
23498
23878
|
"type": "string"
|
|
@@ -24685,7 +25065,9 @@
|
|
|
24685
25065
|
}
|
|
24686
25066
|
},
|
|
24687
25067
|
"priority": {
|
|
24688
|
-
"type": "integer"
|
|
25068
|
+
"type": "integer",
|
|
25069
|
+
"minimum": 0,
|
|
25070
|
+
"maximum": 100
|
|
24689
25071
|
},
|
|
24690
25072
|
"targetAgentId": {
|
|
24691
25073
|
"type": [
|
|
@@ -25013,7 +25395,9 @@
|
|
|
25013
25395
|
}
|
|
25014
25396
|
},
|
|
25015
25397
|
"priority": {
|
|
25016
|
-
"type": "integer"
|
|
25398
|
+
"type": "integer",
|
|
25399
|
+
"minimum": 0,
|
|
25400
|
+
"maximum": 100
|
|
25017
25401
|
},
|
|
25018
25402
|
"targetAgentId": {
|
|
25019
25403
|
"type": [
|
|
@@ -31882,6 +32266,15 @@
|
|
|
31882
32266
|
},
|
|
31883
32267
|
"attributedCostUsd": {
|
|
31884
32268
|
"type": "number"
|
|
32269
|
+
},
|
|
32270
|
+
"attributableCostUsd": {
|
|
32271
|
+
"type": "number"
|
|
32272
|
+
},
|
|
32273
|
+
"excludedCostUsd": {
|
|
32274
|
+
"type": "number"
|
|
32275
|
+
},
|
|
32276
|
+
"excludedTaskCount": {
|
|
32277
|
+
"type": "integer"
|
|
31885
32278
|
}
|
|
31886
32279
|
},
|
|
31887
32280
|
"required": [
|
|
@@ -31893,7 +32286,10 @@
|
|
|
31893
32286
|
"totalDurationMs",
|
|
31894
32287
|
"totalSessions",
|
|
31895
32288
|
"avgCostPerSession",
|
|
31896
|
-
"attributedCostUsd"
|
|
32289
|
+
"attributedCostUsd",
|
|
32290
|
+
"attributableCostUsd",
|
|
32291
|
+
"excludedCostUsd",
|
|
32292
|
+
"excludedTaskCount"
|
|
31897
32293
|
]
|
|
31898
32294
|
},
|
|
31899
32295
|
"daily": {
|
|
@@ -32021,6 +32417,92 @@
|
|
|
32021
32417
|
}
|
|
32022
32418
|
}
|
|
32023
32419
|
},
|
|
32420
|
+
"/api/attribution/by-person": {
|
|
32421
|
+
"get": {
|
|
32422
|
+
"summary": "Four-metric per-person attribution (problems initiated/shipped, reach)",
|
|
32423
|
+
"tags": [
|
|
32424
|
+
"Session Data"
|
|
32425
|
+
],
|
|
32426
|
+
"security": [
|
|
32427
|
+
{
|
|
32428
|
+
"bearerAuth": []
|
|
32429
|
+
}
|
|
32430
|
+
],
|
|
32431
|
+
"parameters": [
|
|
32432
|
+
{
|
|
32433
|
+
"schema": {
|
|
32434
|
+
"type": "string"
|
|
32435
|
+
},
|
|
32436
|
+
"required": false,
|
|
32437
|
+
"name": "startDate",
|
|
32438
|
+
"in": "query"
|
|
32439
|
+
},
|
|
32440
|
+
{
|
|
32441
|
+
"schema": {
|
|
32442
|
+
"type": "string"
|
|
32443
|
+
},
|
|
32444
|
+
"required": false,
|
|
32445
|
+
"name": "endDate",
|
|
32446
|
+
"in": "query"
|
|
32447
|
+
}
|
|
32448
|
+
],
|
|
32449
|
+
"responses": {
|
|
32450
|
+
"200": {
|
|
32451
|
+
"description": "Per-person attribution rows",
|
|
32452
|
+
"content": {
|
|
32453
|
+
"application/json": {
|
|
32454
|
+
"schema": {
|
|
32455
|
+
"type": "object",
|
|
32456
|
+
"properties": {
|
|
32457
|
+
"rows": {
|
|
32458
|
+
"type": "array",
|
|
32459
|
+
"items": {
|
|
32460
|
+
"type": "object",
|
|
32461
|
+
"properties": {
|
|
32462
|
+
"userId": {
|
|
32463
|
+
"type": "string"
|
|
32464
|
+
},
|
|
32465
|
+
"problemsInitiated": {
|
|
32466
|
+
"type": "integer"
|
|
32467
|
+
},
|
|
32468
|
+
"problemsShipped": {
|
|
32469
|
+
"type": "integer"
|
|
32470
|
+
},
|
|
32471
|
+
"agentsReached": {
|
|
32472
|
+
"type": "integer"
|
|
32473
|
+
},
|
|
32474
|
+
"reposReached": {
|
|
32475
|
+
"type": "integer"
|
|
32476
|
+
},
|
|
32477
|
+
"surfacesReached": {
|
|
32478
|
+
"type": "integer"
|
|
32479
|
+
},
|
|
32480
|
+
"firstPassYield": {
|
|
32481
|
+
"type": "null"
|
|
32482
|
+
}
|
|
32483
|
+
},
|
|
32484
|
+
"required": [
|
|
32485
|
+
"userId",
|
|
32486
|
+
"problemsInitiated",
|
|
32487
|
+
"problemsShipped",
|
|
32488
|
+
"agentsReached",
|
|
32489
|
+
"reposReached",
|
|
32490
|
+
"surfacesReached",
|
|
32491
|
+
"firstPassYield"
|
|
32492
|
+
]
|
|
32493
|
+
}
|
|
32494
|
+
}
|
|
32495
|
+
},
|
|
32496
|
+
"required": [
|
|
32497
|
+
"rows"
|
|
32498
|
+
]
|
|
32499
|
+
}
|
|
32500
|
+
}
|
|
32501
|
+
}
|
|
32502
|
+
}
|
|
32503
|
+
}
|
|
32504
|
+
}
|
|
32505
|
+
},
|
|
32024
32506
|
"/api/session-costs/dashboard": {
|
|
32025
32507
|
"get": {
|
|
32026
32508
|
"summary": "Cost today and month-to-date for dashboard",
|
|
@@ -33867,6 +34349,18 @@
|
|
|
33867
34349
|
"bearerAuth": []
|
|
33868
34350
|
}
|
|
33869
34351
|
],
|
|
34352
|
+
"parameters": [
|
|
34353
|
+
{
|
|
34354
|
+
"schema": {
|
|
34355
|
+
"type": "string",
|
|
34356
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to acquire work through the script SDK when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise."
|
|
34357
|
+
},
|
|
34358
|
+
"required": false,
|
|
34359
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to acquire work through the script SDK when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise.",
|
|
34360
|
+
"name": "X-Runtime-Instance-ID",
|
|
34361
|
+
"in": "header"
|
|
34362
|
+
}
|
|
34363
|
+
],
|
|
33870
34364
|
"requestBody": {
|
|
33871
34365
|
"content": {
|
|
33872
34366
|
"application/json": {
|
|
@@ -35297,6 +35791,18 @@
|
|
|
35297
35791
|
"bearerAuth": []
|
|
35298
35792
|
}
|
|
35299
35793
|
],
|
|
35794
|
+
"parameters": [
|
|
35795
|
+
{
|
|
35796
|
+
"schema": {
|
|
35797
|
+
"type": "string",
|
|
35798
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to acquire work through bridged tools when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise."
|
|
35799
|
+
},
|
|
35800
|
+
"required": false,
|
|
35801
|
+
"description": "Identifies the concrete runtime instance (worker process) making the call, as generated at its boot. Required to acquire work through bridged tools when multi-runtime mode (MULTI_RUNTIME_ENABLED) is on; ignored otherwise.",
|
|
35802
|
+
"name": "X-Runtime-Instance-ID",
|
|
35803
|
+
"in": "header"
|
|
35804
|
+
}
|
|
35805
|
+
],
|
|
35300
35806
|
"requestBody": {
|
|
35301
35807
|
"content": {
|
|
35302
35808
|
"application/json": {
|
|
@@ -37435,7 +37941,9 @@
|
|
|
37435
37941
|
}
|
|
37436
37942
|
},
|
|
37437
37943
|
"priority": {
|
|
37438
|
-
"type": "integer"
|
|
37944
|
+
"type": "integer",
|
|
37945
|
+
"minimum": 0,
|
|
37946
|
+
"maximum": 100
|
|
37439
37947
|
},
|
|
37440
37948
|
"dependsOn": {
|
|
37441
37949
|
"type": "array",
|
|
@@ -41244,6 +41752,24 @@
|
|
|
41244
41752
|
],
|
|
41245
41753
|
"additionalProperties": {}
|
|
41246
41754
|
},
|
|
41755
|
+
"comms": {
|
|
41756
|
+
"type": [
|
|
41757
|
+
"object",
|
|
41758
|
+
"null"
|
|
41759
|
+
],
|
|
41760
|
+
"properties": {
|
|
41761
|
+
"tone": {
|
|
41762
|
+
"type": "string"
|
|
41763
|
+
},
|
|
41764
|
+
"language": {
|
|
41765
|
+
"type": "string"
|
|
41766
|
+
},
|
|
41767
|
+
"verbosity": {
|
|
41768
|
+
"type": "string"
|
|
41769
|
+
}
|
|
41770
|
+
},
|
|
41771
|
+
"description": "Merges into metadata.comms without touching sibling metadata keys; null removes only the comms key. When metadata is also provided, it is applied first and replaces the whole blob."
|
|
41772
|
+
},
|
|
41247
41773
|
"dailyBudgetUsd": {
|
|
41248
41774
|
"type": [
|
|
41249
41775
|
"number",
|