@desplega.ai/agent-swarm 2.3.0 → 2.4.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 +1 -0
- package/dist/{acp-adapter-v85a2bqy.js → acp-adapter-zvzr538d.js} +9 -9
- package/dist/{actions-zgcxfspj.js → actions-jhtqdw69.js} +21 -19
- package/dist/{amp-adapter-jw9xfz42.js → amp-adapter-bd84rhs2.js} +4 -4
- package/dist/{app-4e1s4675.js → app-kreq1gwg.js} +3 -3
- package/dist/{assistant-v238n9dk.js → assistant-3k22sbsq.js} +23 -21
- package/dist/{boot-reembed-p666cw5n.js → boot-reembed-e53x6b9v.js} +1 -1
- package/dist/{boot-reembed-w6pm64j4.js → boot-reembed-f6z923ny.js} +1 -1
- package/dist/{boot-scrub-sweep-jcyjagn3.js → boot-scrub-sweep-0538vsb7.js} +4 -4
- package/dist/{boot-seeds-gbedmamp.js → boot-seeds-6wxqkfk2.js} +4 -4
- package/dist/{claude-adapter-q7wspzt8.js → claude-adapter-gfts5044.js} +9 -9
- package/dist/{claude-managed-adapter-n7ahjyx6.js → claude-managed-adapter-h2y889ge.js} +3 -3
- package/dist/{claude-managed-setup-wza784fb.js → claude-managed-setup-h00hsgtz.js} +2 -2
- package/dist/{claude-sdk-session-yf400ptr.js → claude-sdk-session-56besmfz.js} +13 -13
- package/dist/{cli-65q70v2v.js → cli-0bh477zn.js} +33 -6
- package/dist/{cli-4ync7m60.js → cli-0ebey9hg.js} +1 -1
- package/dist/{cli-665j3feb.js → cli-0xk505e8.js} +1 -1
- package/dist/{cli-7gh7020n.js → cli-1dmcq2eh.js} +1 -1
- package/dist/{cli-gzvb3d4a.js → cli-1jx0srjt.js} +3 -3
- package/dist/{cli-zj4d6afs.js → cli-1pa3rz69.js} +21 -6
- package/dist/{cli-7ayprxp7.js → cli-2dfbv8qr.js} +8 -0
- package/dist/{cli-30m5q8mc.js → cli-3kh4kpqy.js} +6 -6
- package/dist/{cli-qrwp40st.js → cli-3p8fqcnh.js} +2 -2
- package/dist/{cli-y3dvz6ge.js → cli-3r448dqn.js} +3 -3
- package/dist/{cli-a17tzmn0.js → cli-3tnpj2bh.js} +7 -7
- package/dist/{cli-ea7chd26.js → cli-471qk6s2.js} +93 -46
- package/dist/{cli-a49vpbf3.js → cli-5kqnemen.js} +1 -1
- package/dist/{cli-0rh20bp3.js → cli-6ncjvx55.js} +3 -3
- package/dist/{cli-fb6t92v8.js → cli-6x9ma5w5.js} +1 -1
- package/dist/{cli-k28p6xh7.js → cli-7225gwj7.js} +2 -2
- package/dist/{cli-8cvvytad.js → cli-8nyhf7za.js} +3 -3
- package/dist/{cli-e09hj50q.js → cli-8wkb09q5.js} +11 -11
- package/dist/{cli-j0v75y13.js → cli-a0kcty51.js} +4 -4
- package/dist/{cli-zes4tsbb.js → cli-a4gvwttf.js} +4 -4
- package/dist/{cli-jhp7w1fy.js → cli-a5ebc95n.js} +2 -2
- package/dist/{cli-5d1m1qca.js → cli-ash6xxk7.js} +2 -2
- package/dist/{cli-fp4xbw07.js → cli-axh29tyr.js} +14 -12
- package/dist/{cli-p22zdvnt.js → cli-bn0rewsy.js} +3 -3
- package/dist/{cli-hz64bcnj.js → cli-bn5kevnf.js} +11 -373
- package/dist/{cli-8jtrekpy.js → cli-d2mb5s8a.js} +7 -7
- package/dist/{cli-c5sbmw1v.js → cli-d82btycs.js} +94 -15
- package/dist/{cli-vjfpshn3.js → cli-ejs3m1sx.js} +1 -1
- package/dist/{cli-yv0vgscc.js → cli-fpmsqq59.js} +18 -2
- package/dist/cli-fz9kewbh.js +382 -0
- package/dist/{cli-4s1kqrqg.js → cli-g0hgtz4p.js} +6 -6
- package/dist/{cli-hn3pftj2.js → cli-gf0kfg81.js} +7 -7
- package/dist/{cli-d43xqzbe.js → cli-hqhzg1qq.js} +2 -2
- package/dist/{cli-azs9bhc5.js → cli-j4rqdf2n.js} +2 -2
- package/dist/{cli-wtg6edvd.js → cli-jh0qcrga.js} +1 -1
- package/dist/{cli-kqypty34.js → cli-k9z4zd4p.js} +6 -5
- package/dist/{cli-jhmjwqcg.js → cli-kmqgmcnb.js} +47 -14
- package/dist/{cli-8qsx817b.js → cli-kr2pmfqx.js} +583 -769
- package/dist/{cli-4g629sgr.js → cli-m2qgh5sv.js} +20 -1
- package/dist/{cli-9e9kjqsj.js → cli-mfe7f7b5.js} +2 -2
- package/dist/{cli-x3en6ct3.js → cli-nwyw3zhg.js} +1 -1
- package/dist/{cli-6vcyw6v7.js → cli-nx462e4v.js} +5 -3
- package/dist/{cli-tr24eeny.js → cli-p0rakbrk.js} +9 -9
- package/dist/{cli-4hmaheb6.js → cli-p6argxh9.js} +9 -9
- package/dist/{cli-3avfh5az.js → cli-pemywhfq.js} +2 -2
- package/dist/{cli-etvn5ej2.js → cli-pnp2j5zg.js} +2 -2
- package/dist/{cli-wk8ccrz6.js → cli-pw7v69vp.js} +2 -2
- package/dist/{cli-ka01m5rb.js → cli-rdq7tzwm.js} +17 -14
- package/dist/{cli-re4wkbzx.js → cli-rqqsfz30.js} +677 -104
- package/dist/{cli-xgn4rwyv.js → cli-s48yvzb8.js} +4 -4
- package/dist/{cli-zv4vy2b0.js → cli-s95dknxh.js} +1 -1
- package/dist/{cli-g6p7c2my.js → cli-sjyetj21.js} +2 -2
- package/dist/{cli-rdr166ht.js → cli-smvcw9z5.js} +1 -1
- package/dist/{cli-fhvqt2fp.js → cli-sv5gb0yb.js} +1 -1
- package/dist/{cli-yv3n83x8.js → cli-syhq378v.js} +2 -2
- package/dist/{cli-q1812jbw.js → cli-tbhwrxpt.js} +9 -9
- package/dist/{cli-w7z94e6c.js → cli-tx00c0h6.js} +4 -2
- package/dist/{cli-dxwh4j32.js → cli-vy0fay6k.js} +46 -37
- package/dist/{cli-ptkpaqfy.js → cli-wt645v7q.js} +1 -1
- package/dist/{cli-ppapy34w.js → cli-wxbn3yfx.js} +2 -2
- package/dist/{cli-cby329ny.js → cli-x5mq1fyq.js} +3 -3
- package/dist/{cli-rc3r0bnh.js → cli-xbzvet96.js} +6 -6
- package/dist/{cli-4mkvwgzr.js → cli-xf234ws8.js} +1 -1
- package/dist/{cli-6p7ddg72.js → cli-xftrvxag.js} +5 -5
- package/dist/cli-z071fb95.js +848 -0
- package/dist/{cli-1v8w782f.js → cli-z1ew8vbq.js} +14 -7
- package/dist/{cli-9td5ss65.js → cli-zfg9enh9.js} +3 -3
- package/dist/{cli-yxqag76b.js → cli-zw88zjba.js} +1 -1
- package/dist/cli.js +19 -19
- package/dist/{codex-adapter-nhjj2veb.js → codex-adapter-p6rmm7vv.js} +6 -6
- package/dist/{codex-hook-x6tm6y5m.js → codex-hook-x7nejyrr.js} +8 -5
- package/dist/{codex-login-35p4sk85.js → codex-login-m819c41r.js} +1 -1
- package/dist/{codex-session-runner-6hggrjbx.js → codex-session-runner-8vd5t9t0.js} +7 -7
- package/dist/{commands-mrw1ph2w.js → commands-7ems2p13.js} +2 -2
- package/dist/{controller-pt1zam5w.js → controller-m263fg43.js} +4 -4
- package/dist/{controllers-connect-ymw5541d.js → controllers-connect-bg33ae53.js} +28 -24
- package/dist/{cursor-adapter-cf4zh5x0.js → cursor-adapter-cz6nm6mj.js} +3 -3
- package/dist/{db-hy80219q.js → db-w505dwa8.js} +2 -2
- package/dist/{db-hhpy6m4x.js → db-ys2rbdft.js} +3 -2
- package/dist/{devin-adapter-7egzmt0k.js → devin-adapter-zgqadvnm.js} +1 -1
- package/dist/{dispatcher-6pdjtkr1.js → dispatcher-0s0mckqr.js} +20 -18
- package/dist/{docker-njavd3fb.js → docker-fkgtr75t.js} +2 -2
- package/dist/{dsh-adapter-fbx06re2.js → dsh-adapter-3n3net33.js} +3 -3
- package/dist/{e2b-5r6a5jeb.js → e2b-7am6tmq6.js} +2 -2
- package/dist/{e2b-pw1nvtmh.js → e2b-thdcxtjd.js} +2 -2
- package/dist/{easter-egg-3d-6hg2r942.js → easter-egg-3d-5cgynaja.js} +1 -1
- package/dist/{event-bus-101fenkh.js → event-bus-9vpk8gmq.js} +1 -1
- package/dist/{execute-bcqc69a5.js → execute-t4e6m3rw.js} +1 -1
- package/dist/{external-channel-j6vb6ya1.js → external-channel-5b23fv8z.js} +2 -2
- package/dist/{google-generative-ai-phpmwxvg.js → google-generative-ai-bmq8gkf3.js} +1 -1
- package/dist/{google-vertex-es9ybgdy.js → google-vertex-b1rvp52s.js} +1 -1
- package/dist/{grok-adapter-1193sprp.js → grok-adapter-q9fghe5q.js} +10 -10
- package/dist/handlers-mqrym347.js +39 -0
- package/dist/{heartbeat-h1w1ktce.js → heartbeat-tww6yx1w.js} +23 -21
- package/dist/{hook-ejja4bpe.js → hook-dx0pkvar.js} +16 -9
- package/dist/{hook-skrbja18.js → hook-pvmh9b6m.js} +6 -6
- package/dist/{http-mzh41mfj.js → http-k2ejbt05.js} +975 -292
- package/dist/{index-6rmnn89d.js → index-2z710v4x.js} +10 -10
- package/dist/{index-xmmkyx82.js → index-dgz61nff.js} +20 -18
- package/dist/{index-wgsw9xcz.js → index-g6tbb6ve.js} +1 -1
- package/dist/index-h2ek08d6.js +40 -0
- package/dist/index-pqfwh9nn.js +41 -0
- package/dist/{index-epr2gnbw.js → index-x5aktmp8.js} +1 -1
- package/dist/{index-x0q2a4f9.js → index-ysd45kgc.js} +1 -1
- package/dist/{index-g909y089.js → index-zgvqzjsw.js} +8 -8
- package/dist/{keepalive-4djvbm2j.js → keepalive-nhvpw10z.js} +4 -4
- package/dist/lead-jb6sf69z.js +78 -0
- package/dist/{maintenance-f3xhnjsm.js → maintenance-agakc519.js} +1 -1
- package/dist/{oauth-refresh-sweep-fpd6x6rw.js → oauth-refresh-sweep-4dcbhtn0.js} +3 -3
- package/dist/{onboard-196tjgyn.js → onboard-4n2kwa4v.js} +3 -3
- package/dist/{opencode-adapter-eeesgfqk.js → opencode-adapter-3s7ax02e.js} +7 -7
- package/dist/{otel-impl-g8fh4c21.js → otel-impl-tfa12080.js} +2 -2
- package/dist/{pi-mono-adapter-zasp3ze3.js → pi-mono-adapter-ytp7gz8b.js} +24 -13
- package/dist/{pricing-refresh-sdcf5yaz.js → pricing-refresh-3cqx3f3x.js} +3 -3
- package/dist/{rbac-roles-bsp5657v.js → rbac-roles-9fae5rnv.js} +5 -3
- package/dist/{rbac-roles-2x4g1wb5.js → rbac-roles-y6zbfzve.js} +2 -2
- package/dist/{render-v2-0pyb39bb.js → render-v2-emawjvc4.js} +3 -3
- package/dist/{resume-a86tkj6r.js → resume-zhgts7h7.js} +10 -8
- package/dist/{runtime-ar8310ba.js → runtime-xe3aqy4x.js} +1 -1
- package/dist/session-access-cm823e06.js +25 -0
- package/dist/{setup-ypbzcapd.js → setup-tkp99w1e.js} +1 -1
- package/dist/{virtual-modules-wzk6jf3a.js → virtual-modules-4r3zkc20.js} +2 -2
- package/dist/{work-objects-yjp8de12.js → work-objects-f722h263.js} +23 -21
- package/dist/worker-p7f336rq.js +78 -0
- package/dist/{x-8ewt8gxn.js → x-y45mthwn.js} +2 -2
- package/openapi.json +1086 -305
- package/package.json +2 -2
- package/src/apps/action-caller.ts +6 -0
- package/src/apps/action-runner.ts +146 -0
- package/src/apps/row-store.ts +4 -2
- package/src/apps/script-types.ts +17 -4
- package/src/be/db/active-sessions.ts +5 -0
- package/src/be/db/session-visibility.ts +29 -0
- package/src/be/db/tasks/read.ts +61 -3
- package/src/be/db/tasks/write.ts +15 -6
- package/src/be/db.ts +106 -37
- package/src/be/events.ts +11 -0
- package/src/be/fleet-benchmark-stats.ts +10 -5
- package/src/be/migrations/230_session_shares.sql +23 -0
- package/src/be/models-catalog.ts +4 -0
- package/src/be/onboarding.ts +6 -0
- package/src/be/rbac-roles.ts +2 -0
- package/src/be/scripts/typecheck.ts +13 -0
- package/src/be/session-shares.ts +244 -0
- package/src/be/swarm-config-guard.ts +33 -3
- package/src/be/telemetry-enable.ts +1 -1
- package/src/commands/provider-credentials.ts +12 -2
- package/src/commands/runner.ts +14 -0
- package/src/heartbeat/heartbeat.ts +2 -2
- package/src/hooks/codex-hook.ts +6 -2
- package/src/hooks/hook.ts +7 -0
- package/src/hooks/pr-body-guard.ts +38 -11
- package/src/hooks/pr-room-guard.ts +88 -0
- package/src/http/active-sessions.ts +13 -2
- package/src/http/agents.ts +11 -3
- package/src/http/all-routes.ts +1 -0
- package/src/http/api-keys.ts +3 -1
- package/src/http/approval-requests.ts +2 -1
- package/src/http/apps.ts +118 -190
- package/src/http/config.ts +3 -0
- package/src/http/context.ts +2 -0
- package/src/http/core.ts +39 -2
- package/src/http/events.ts +6 -2
- package/src/http/favorite-owner.ts +1 -1
- package/src/http/fleet-benchmark.ts +79 -30
- package/src/http/fs.ts +38 -3
- package/src/http/global-config.ts +7 -0
- package/src/http/index.ts +3 -1
- package/src/http/memory.ts +3 -1
- package/src/http/ranking.ts +351 -0
- package/src/http/realtime.ts +26 -21
- package/src/http/route-def.ts +77 -11
- package/src/http/script-runs.ts +2 -1
- package/src/http/scripts.ts +8 -0
- package/src/http/session-access.ts +179 -0
- package/src/http/session-data.ts +10 -2
- package/src/http/sessions.ts +212 -12
- package/src/http/stats.ts +7 -3
- package/src/http/tasks.ts +85 -8
- package/src/http/telemetry-ui.ts +1 -1
- package/src/http/used-by.ts +64 -20
- package/src/http/users.ts +2 -2
- package/src/prompts/session-templates.ts +3 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/pi-mono-adapter.ts +15 -0
- package/src/providers/reasoning-effort.ts +2 -1
- package/src/providers/types.ts +2 -0
- package/src/ranking/telemetry-ranking.ts +119 -0
- package/src/ranking/usage.ts +57 -0
- package/src/rbac/admission.ts +22 -7
- package/src/rbac/legacy-policy.ts +2 -0
- package/src/rbac/permissions.ts +9 -0
- package/src/realtime/auth.ts +69 -0
- package/src/realtime/tickets.ts +4 -1
- package/src/realtime/transport.ts +77 -9
- package/src/scripts-runtime/sdk-allowlist.ts +7 -0
- package/src/scripts-runtime/types/stdlib.d.ts +31 -0
- package/src/scripts-runtime/types/swarm-sdk.d.ts +31 -0
- package/src/server.ts +4 -0
- package/src/slack/blocks.ts +18 -0
- package/src/slack/dm.ts +29 -0
- package/src/telemetry-context.ts +19 -1
- package/src/telemetry-contract/EVENTS.md +45 -8
- package/src/telemetry-contract/SOURCE.json +38 -4
- package/src/telemetry-contract/catalog.json +294 -5
- package/src/telemetry-contract/ranking/fixtures/expected.json +30 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/bad-category.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/bad-claim.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/blank-description.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/blank-name.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/description-too-long.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/domain-uppercase.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/domain-with-scheme.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/domain-with-www.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/http-source-url.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/missing-description.json +10 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/missing-version.json +10 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/name-not-string.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/name-too-long.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/not-object.json +1 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/null.json +1 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/other-with-subcategory.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/oversize.json +1 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/short-claim.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/subcategory-other-category.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/trailing-data.json +1 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/unknown-field.json +12 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/unsupported-version.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/updated-at-not-date.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/updated-at-offset.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/invalid/wrong-case-field.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/valid/category-without-subcategory.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/valid/full.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/valid/minimal.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/valid/no-claim.json +10 -0
- package/src/telemetry-contract/ranking/fixtures/valid/padded-text.json +11 -0
- package/src/telemetry-contract/ranking/fixtures/valid/unicode-name.json +11 -0
- package/src/telemetry-contract/ranking/listing.v1.schema.json +61 -0
- package/src/telemetry-contract/ranking/taxonomy.json +8 -0
- package/src/telemetry-contract/ranking-taxonomy.gen.ts +11 -0
- package/src/telemetry-contract/types.gen.ts +963 -58
- package/src/telemetry-identity.ts +47 -9
- package/src/telemetry-snapshot.ts +9 -1
- package/src/telemetry-ui-events.ts +9 -2
- package/src/telemetry.ts +40 -5
- package/src/tests/app-action-run-tool.test.ts +178 -0
- package/src/tests/app-row-tools.test.ts +360 -0
- package/src/tests/apps-rbac.test.ts +189 -2
- package/src/tests/apps-script-types.test.ts +16 -3
- package/src/tests/credential-check.test.ts +38 -0
- package/src/tests/db-extraction-contract.test.ts +1 -0
- package/src/tests/db-task-read-contract.test.ts +1 -0
- package/src/tests/docs-index-footprint.test.js +2 -2
- package/src/tests/fleet-benchmark.test.ts +122 -2
- package/src/tests/http-users.test.ts +62 -1
- package/src/tests/model-catalog-table.test.ts +63 -0
- package/src/tests/model-profiles-api.test.ts +19 -7
- package/src/tests/models-catalog.test.ts +50 -0
- package/src/tests/onboarding.test.ts +21 -0
- package/src/tests/org-identity.test.ts +44 -0
- package/src/tests/org-website.test.ts +62 -0
- package/src/tests/pi-mono-adapter.test.ts +23 -0
- package/src/tests/pr-body-leaks.test.ts +4 -0
- package/src/tests/pr-room-guard.test.ts +242 -0
- package/src/tests/ranking-listing.test.ts +97 -0
- package/src/tests/ranking-route.test.ts +321 -0
- package/src/tests/ranking-usage.test.ts +50 -0
- package/src/tests/rbac-admission-e2e.test.ts +8 -0
- package/src/tests/rbac-admission.test.ts +38 -0
- package/src/tests/rbac-charact-http.test.ts +4 -3
- package/src/tests/rbac-engine.test.ts +2 -0
- package/src/tests/rbac-roles.test.ts +2 -0
- package/src/tests/realtime-room-surfaces.test.ts +3 -1
- package/src/tests/realtime-session-join-race.test.ts +142 -0
- package/src/tests/realtime-tickets.test.ts +24 -17
- package/src/tests/realtime-transport.test.ts +91 -0
- package/src/tests/reasoning-effort.test.ts +39 -3
- package/src/tests/runner-harness-telemetry-env.test.ts +56 -1
- package/src/tests/session-route-posture.test.ts +639 -0
- package/src/tests/session-sharing-routes.test.ts +282 -0
- package/src/tests/session-sharing.test.ts +526 -0
- package/src/tests/sessions-detail-batch.test.ts +7 -1
- package/src/tests/slack-tool-blocks.test.ts +101 -0
- package/src/tests/slack-update.test.ts +55 -0
- package/src/tests/slack-user-dm.test.ts +177 -0
- package/src/tests/swarm-tool-result-gate.test.ts +2 -4
- package/src/tests/telemetry-context.test.ts +128 -2
- package/src/tests/telemetry-ui-route.test.ts +123 -0
- package/src/tests/tool-annotations.test.ts +3 -2
- package/src/tests/used-by-route.test.ts +153 -9
- package/src/tests/workflow-agent-task-retry.test.ts +130 -4
- package/src/tests/workflow-wait-recovery.test.ts +116 -4
- package/src/tools/app-action-run.ts +63 -0
- package/src/tools/app-rows.ts +234 -0
- package/src/tools/model-catalog/index.ts +1 -1
- package/src/tools/slack-post.ts +18 -12
- package/src/tools/slack-read.ts +13 -1
- package/src/tools/slack-reply.ts +7 -10
- package/src/tools/slack-start-thread.ts +18 -11
- package/src/tools/slack-update.ts +2 -9
- package/src/tools/tool-config.ts +8 -0
- package/src/tools/utils.ts +1 -1
- package/src/tools/workflows/retry-workflow-run.ts +1 -1
- package/src/types.ts +52 -0
- package/src/utils/company-profile.ts +24 -0
- package/src/utils/org-identity.ts +33 -0
- package/src/utils/org-website.ts +58 -21
- package/src/workflows/recovery.ts +10 -22
- package/src/workflows/resume.ts +16 -0
- package/src/workflows/task-step-routing.ts +47 -7
- package/templates/skills/apps/SKILL.md +58 -2
- package/templates/skills/apps/content.md +58 -2
- package/dist/handlers-tb3xgjnm.js +0 -37
- package/dist/index-nyfcdpky.js +0 -39
- package/dist/index-vjn3wbzf.js +0 -38
- package/dist/lead-61kqp604.js +0 -76
- package/dist/worker-4ptnn1ge.js +0 -76
- package/dist/{cli-n5mrsg0f.js → cli-60cgh1rv.js} +3 -3
|
@@ -132,6 +132,14 @@ var init_tool_config = __esm(() => {
|
|
|
132
132
|
"app-list",
|
|
133
133
|
"app-patch",
|
|
134
134
|
"app-query",
|
|
135
|
+
"app-rows-list",
|
|
136
|
+
"app-row-get",
|
|
137
|
+
"app-row-create",
|
|
138
|
+
"app-rows-create",
|
|
139
|
+
"app-row-patch",
|
|
140
|
+
"app-row-delete",
|
|
141
|
+
"app-rows-delete",
|
|
142
|
+
"app-action-run",
|
|
135
143
|
"app-sync",
|
|
136
144
|
"app-upsert",
|
|
137
145
|
"app-history",
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
init_steering,
|
|
11
11
|
createLogEntry2,
|
|
12
12
|
init_db3
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-rqqsfz30.js";
|
|
14
14
|
import {
|
|
15
15
|
ackSlackMessage,
|
|
16
16
|
buildBufferFlushBlocks,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ensureSlackThreadTree2,
|
|
21
21
|
registerTreeMessage,
|
|
22
22
|
getSlackApp2
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-vy0fay6k.js";
|
|
24
24
|
import {
|
|
25
25
|
createAdditiveBuffer,
|
|
26
26
|
TaskCreationBlockedError,
|
|
@@ -30,15 +30,15 @@ import {
|
|
|
30
30
|
createSlackTaskWithFiles,
|
|
31
31
|
notifySlackFileFailures,
|
|
32
32
|
extractSlackMessageText
|
|
33
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-kr2pmfqx.js";
|
|
34
34
|
import {
|
|
35
35
|
resolveSlackUserId,
|
|
36
36
|
rewriteSlackMentions
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-3r448dqn.js";
|
|
38
38
|
import {
|
|
39
39
|
findUserByExternalId,
|
|
40
40
|
init_users
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-fz9kewbh.js";
|
|
42
42
|
import {
|
|
43
43
|
isSteeringEnabled2,
|
|
44
44
|
init_steering_enabled
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
import {
|
|
47
47
|
scrubSecrets,
|
|
48
48
|
init_secret_scrubber
|
|
49
|
-
} from "./cli-
|
|
49
|
+
} from "./cli-xf234ws8.js";
|
|
50
50
|
import {
|
|
51
51
|
__using,
|
|
52
52
|
__callDispose
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDb2,
|
|
3
3
|
init_db3
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-rqqsfz30.js";
|
|
5
5
|
import {
|
|
6
6
|
openAICompatibleProviderIds,
|
|
7
7
|
withRegistryCatalogSections,
|
|
8
8
|
init_src2
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-nwyw3zhg.js";
|
|
10
10
|
|
|
11
11
|
// src/be/seed-pricing.ts
|
|
12
12
|
init_src2();
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
getKv2,
|
|
3
3
|
upsertKv2,
|
|
4
4
|
init_db3
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-rqqsfz30.js";
|
|
6
6
|
import {
|
|
7
7
|
resolveIdentity,
|
|
8
8
|
recordUnmappedIdentity
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-kr2pmfqx.js";
|
|
10
10
|
import {
|
|
11
11
|
findUserByExternalId,
|
|
12
12
|
findOrCreateUserByEmail,
|
|
13
13
|
linkIdentity,
|
|
14
14
|
init_users
|
|
15
|
-
} from "./cli-
|
|
15
|
+
} from "./cli-fz9kewbh.js";
|
|
16
16
|
|
|
17
17
|
// src/slack/enrich.ts
|
|
18
18
|
init_db3();
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
getContextWindowSize,
|
|
8
8
|
clampContextPercent
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-a5ebc95n.js";
|
|
10
10
|
import {
|
|
11
11
|
ACP_TARGET_IDS,
|
|
12
12
|
isAcpTarget,
|
|
13
13
|
getAcpTargetCatalogEntry
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-5kqnemen.js";
|
|
15
15
|
import {
|
|
16
16
|
applyReasoningEffort
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-bn0rewsy.js";
|
|
18
18
|
import {
|
|
19
19
|
applyOpenRouterBaseUrlOverride2,
|
|
20
20
|
buildOpenAICompatibleProviderBlock2
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-xbzvet96.js";
|
|
22
22
|
import {
|
|
23
23
|
fetchInstalledMcpServers
|
|
24
24
|
} from "./cli-bst1vp7e.js";
|
|
@@ -43,18 +43,18 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
init_package,
|
|
45
45
|
package_default
|
|
46
|
-
} from "./cli-
|
|
46
|
+
} from "./cli-ash6xxk7.js";
|
|
47
47
|
import {
|
|
48
48
|
scrubSecrets,
|
|
49
49
|
init_secret_scrubber
|
|
50
|
-
} from "./cli-
|
|
50
|
+
} from "./cli-xf234ws8.js";
|
|
51
51
|
import {
|
|
52
52
|
normalizeGrokModel,
|
|
53
53
|
baseUrlOverride,
|
|
54
54
|
providerBaseUrl,
|
|
55
55
|
providerForModel,
|
|
56
56
|
init_src2
|
|
57
|
-
} from "./cli-
|
|
57
|
+
} from "./cli-nwyw3zhg.js";
|
|
58
58
|
|
|
59
59
|
// node_modules/@agentclientprotocol/sdk/dist/schema/index.js
|
|
60
60
|
var AGENT_METHODS = {
|
|
@@ -1,19 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
renderSteeringDelivery
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-0xk505e8.js";
|
|
4
4
|
import {
|
|
5
5
|
authJsonToCredentialSelection,
|
|
6
6
|
credentialsToAuthJson,
|
|
7
7
|
loadAllCodexOAuthSlots
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-ejs3m1sx.js";
|
|
9
9
|
import {
|
|
10
10
|
effectiveReasoningEffort
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-bn0rewsy.js";
|
|
12
12
|
import {
|
|
13
13
|
isSkillLoaderCall,
|
|
14
14
|
skillFromToolArgs,
|
|
15
15
|
createSkillInvokeTracker
|
|
16
16
|
} from "./cli-77cd6gy8.js";
|
|
17
|
+
import {
|
|
18
|
+
isLeadChannelMonitoringEnabled,
|
|
19
|
+
orgIdentityStatus,
|
|
20
|
+
renderMemoriesPrompt,
|
|
21
|
+
isUnknownModelError,
|
|
22
|
+
writeSkillsToFilesystem
|
|
23
|
+
} from "./cli-m2qgh5sv.js";
|
|
17
24
|
import {
|
|
18
25
|
isPollTracingEnabled,
|
|
19
26
|
initOtel,
|
|
@@ -23,10 +30,10 @@ import {
|
|
|
23
30
|
injectTraceContext2,
|
|
24
31
|
initialize,
|
|
25
32
|
ensure
|
|
26
|
-
} from "./cli-
|
|
33
|
+
} from "./cli-vy0fay6k.js";
|
|
27
34
|
import {
|
|
28
35
|
getContextWindowSize
|
|
29
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-a5ebc95n.js";
|
|
30
37
|
import {
|
|
31
38
|
MAX_RATE_LIMIT_RESET_MS,
|
|
32
39
|
isRateLimitMessage,
|
|
@@ -44,46 +51,40 @@ import {
|
|
|
44
51
|
canonicalAzureDevOpsRepoUrl,
|
|
45
52
|
parseAzureDevOpsRepoUrl,
|
|
46
53
|
resolveScriptsOnlyMode
|
|
47
|
-
} from "./cli-
|
|
54
|
+
} from "./cli-kr2pmfqx.js";
|
|
48
55
|
import {
|
|
49
56
|
ACP_TARGET_IDS,
|
|
50
57
|
isAcpTarget
|
|
51
|
-
} from "./cli-
|
|
58
|
+
} from "./cli-5kqnemen.js";
|
|
52
59
|
import {
|
|
53
60
|
checkAmpCredentials2,
|
|
54
61
|
liveTestAmpCredentials2
|
|
55
|
-
} from "./cli-
|
|
62
|
+
} from "./cli-xftrvxag.js";
|
|
56
63
|
import {
|
|
57
64
|
checkClaudeCredentials2
|
|
58
|
-
} from "./cli-
|
|
65
|
+
} from "./cli-gf0kfg81.js";
|
|
59
66
|
import {
|
|
60
67
|
checkClaudeManagedCredentials2
|
|
61
|
-
} from "./cli-
|
|
68
|
+
} from "./cli-a0kcty51.js";
|
|
62
69
|
import {
|
|
63
70
|
codexUserHome,
|
|
64
71
|
checkCodexCredentials2
|
|
65
|
-
} from "./cli-
|
|
72
|
+
} from "./cli-p0rakbrk.js";
|
|
66
73
|
import {
|
|
67
74
|
checkCursorCredentials2
|
|
68
|
-
} from "./cli-
|
|
75
|
+
} from "./cli-g0hgtz4p.js";
|
|
69
76
|
import {
|
|
70
77
|
checkDevinCredentials2
|
|
71
|
-
} from "./cli-
|
|
78
|
+
} from "./cli-s95dknxh.js";
|
|
72
79
|
import {
|
|
73
80
|
checkDshCredentials2
|
|
74
|
-
} from "./cli-
|
|
81
|
+
} from "./cli-a4gvwttf.js";
|
|
75
82
|
import {
|
|
76
83
|
checkOpencodeCredentials2
|
|
77
|
-
} from "./cli-
|
|
84
|
+
} from "./cli-xbzvet96.js";
|
|
78
85
|
import {
|
|
79
86
|
checkGrokCredentials2
|
|
80
|
-
} from "./cli-
|
|
81
|
-
import {
|
|
82
|
-
isLeadChannelMonitoringEnabled,
|
|
83
|
-
renderMemoriesPrompt,
|
|
84
|
-
isUnknownModelError,
|
|
85
|
-
writeSkillsToFilesystem
|
|
86
|
-
} from "./cli-4g629sgr.js";
|
|
87
|
+
} from "./cli-6ncjvx55.js";
|
|
87
88
|
import {
|
|
88
89
|
CODEX_OAUTH_POOL_SLOTS_ENV,
|
|
89
90
|
isCodexOAuthConfigKey,
|
|
@@ -92,7 +93,7 @@ import {
|
|
|
92
93
|
} from "./cli-j4bwnpkm.js";
|
|
93
94
|
import {
|
|
94
95
|
validateJsonSchema
|
|
95
|
-
} from "./cli-
|
|
96
|
+
} from "./cli-kmqgmcnb.js";
|
|
96
97
|
import {
|
|
97
98
|
mapTriggerSurface,
|
|
98
99
|
init_telemetry_context,
|
|
@@ -110,7 +111,7 @@ import {
|
|
|
110
111
|
init_vcs_repo_match,
|
|
111
112
|
isApiDrainingResponse,
|
|
112
113
|
init_api_drain
|
|
113
|
-
} from "./cli-
|
|
114
|
+
} from "./cli-rqqsfz30.js";
|
|
114
115
|
import {
|
|
115
116
|
parseWorkerModelTierOverrides,
|
|
116
117
|
resolveTaskModelSelection,
|
|
@@ -118,7 +119,7 @@ import {
|
|
|
118
119
|
ProviderNameSchema,
|
|
119
120
|
WorkerNudgeSchema,
|
|
120
121
|
init_types
|
|
121
|
-
} from "./cli-
|
|
122
|
+
} from "./cli-fpmsqq59.js";
|
|
122
123
|
import {
|
|
123
124
|
generateDefaultClaudeMd2,
|
|
124
125
|
generateDefaultSoulMd2,
|
|
@@ -142,7 +143,7 @@ import {
|
|
|
142
143
|
resolveClaudeMdPath,
|
|
143
144
|
syncProfileFilesToServer,
|
|
144
145
|
init_profile_sync
|
|
145
|
-
} from "./cli-
|
|
146
|
+
} from "./cli-x5mq1fyq.js";
|
|
146
147
|
import {
|
|
147
148
|
isSteeringEnabled2,
|
|
148
149
|
init_steering_enabled
|
|
@@ -153,17 +154,17 @@ import {
|
|
|
153
154
|
CLAUDE_CREDENTIALS_HINT,
|
|
154
155
|
resolveCredentialPools,
|
|
155
156
|
init_credentials
|
|
156
|
-
} from "./cli-
|
|
157
|
+
} from "./cli-zw88zjba.js";
|
|
157
158
|
import {
|
|
158
159
|
init_templates3
|
|
159
|
-
} from "./cli-
|
|
160
|
+
} from "./cli-0ebey9hg.js";
|
|
160
161
|
import {
|
|
161
162
|
interpolate,
|
|
162
163
|
init_template,
|
|
163
164
|
configureHttpResolver,
|
|
164
165
|
resolveTemplateAsync,
|
|
165
166
|
init_resolver
|
|
166
|
-
} from "./cli-
|
|
167
|
+
} from "./cli-tx00c0h6.js";
|
|
167
168
|
import {
|
|
168
169
|
modelFamilyOf,
|
|
169
170
|
windowForModelFamily,
|
|
@@ -185,11 +186,15 @@ import {
|
|
|
185
186
|
runtimeHarnessSections,
|
|
186
187
|
refreshRuntimeModelCatalog,
|
|
187
188
|
init_runtime_model_catalog
|
|
188
|
-
} from "./cli-
|
|
189
|
+
} from "./cli-6x9ma5w5.js";
|
|
189
190
|
import {
|
|
190
191
|
getMcpBaseUrl,
|
|
191
192
|
init_constants2
|
|
192
193
|
} from "./cli-w9g4sz81.js";
|
|
194
|
+
import {
|
|
195
|
+
isEnvFlagEnabled,
|
|
196
|
+
init_env_flag
|
|
197
|
+
} from "./cli-0hyhdkdk.js";
|
|
193
198
|
import {
|
|
194
199
|
getApiKey,
|
|
195
200
|
init_api_key
|
|
@@ -199,7 +204,7 @@ import {
|
|
|
199
204
|
registerEnvSecrets,
|
|
200
205
|
registerSensitiveKeyName,
|
|
201
206
|
init_secret_scrubber
|
|
202
|
-
} from "./cli-
|
|
207
|
+
} from "./cli-xf234ws8.js";
|
|
203
208
|
import {
|
|
204
209
|
harnessModelMismatch,
|
|
205
210
|
openAICompatibleProviders,
|
|
@@ -207,7 +212,7 @@ import {
|
|
|
207
212
|
providerBaseUrl,
|
|
208
213
|
providerKeyFromEnv,
|
|
209
214
|
init_src2
|
|
210
|
-
} from "./cli-
|
|
215
|
+
} from "./cli-nwyw3zhg.js";
|
|
211
216
|
|
|
212
217
|
// src/commands/runner.ts
|
|
213
218
|
import { existsSync, statSync } from "node:fs";
|
|
@@ -241,47 +246,47 @@ async function materializeCodexAuthJson(_slot, creds, deps = {}) {
|
|
|
241
246
|
async function createProviderAdapter(provider) {
|
|
242
247
|
switch (provider) {
|
|
243
248
|
case "claude": {
|
|
244
|
-
const { ClaudeAdapter } = await import("./claude-adapter-
|
|
249
|
+
const { ClaudeAdapter } = await import("./claude-adapter-gfts5044.js");
|
|
245
250
|
return new ClaudeAdapter;
|
|
246
251
|
}
|
|
247
252
|
case "pi": {
|
|
248
|
-
const { PiMonoAdapter } = await import("./pi-mono-adapter-
|
|
253
|
+
const { PiMonoAdapter } = await import("./pi-mono-adapter-ytp7gz8b.js");
|
|
249
254
|
return new PiMonoAdapter;
|
|
250
255
|
}
|
|
251
256
|
case "codex": {
|
|
252
|
-
const { CodexAdapter } = await import("./codex-adapter-
|
|
257
|
+
const { CodexAdapter } = await import("./codex-adapter-p6rmm7vv.js");
|
|
253
258
|
return new CodexAdapter;
|
|
254
259
|
}
|
|
255
260
|
case "claude-managed": {
|
|
256
|
-
const { ClaudeManagedAdapter } = await import("./claude-managed-adapter-
|
|
261
|
+
const { ClaudeManagedAdapter } = await import("./claude-managed-adapter-h2y889ge.js");
|
|
257
262
|
return new ClaudeManagedAdapter;
|
|
258
263
|
}
|
|
259
264
|
case "devin": {
|
|
260
|
-
const { DevinAdapter } = await import("./devin-adapter-
|
|
265
|
+
const { DevinAdapter } = await import("./devin-adapter-zgqadvnm.js");
|
|
261
266
|
return new DevinAdapter;
|
|
262
267
|
}
|
|
263
268
|
case "opencode": {
|
|
264
|
-
const { OpencodeAdapter } = await import("./opencode-adapter-
|
|
269
|
+
const { OpencodeAdapter } = await import("./opencode-adapter-3s7ax02e.js");
|
|
265
270
|
return new OpencodeAdapter;
|
|
266
271
|
}
|
|
267
272
|
case "dsh": {
|
|
268
|
-
const { DshAdapter } = await import("./dsh-adapter-
|
|
273
|
+
const { DshAdapter } = await import("./dsh-adapter-3n3net33.js");
|
|
269
274
|
return new DshAdapter;
|
|
270
275
|
}
|
|
271
276
|
case "amp": {
|
|
272
|
-
const { AmpAdapter } = await import("./amp-adapter-
|
|
277
|
+
const { AmpAdapter } = await import("./amp-adapter-bd84rhs2.js");
|
|
273
278
|
return new AmpAdapter;
|
|
274
279
|
}
|
|
275
280
|
case "cursor": {
|
|
276
|
-
const { CursorAdapter } = await import("./cursor-adapter-
|
|
281
|
+
const { CursorAdapter } = await import("./cursor-adapter-cz6nm6mj.js");
|
|
277
282
|
return new CursorAdapter;
|
|
278
283
|
}
|
|
279
284
|
case "grok": {
|
|
280
|
-
const { GrokAdapter } = await import("./grok-adapter-
|
|
285
|
+
const { GrokAdapter } = await import("./grok-adapter-q9fghe5q.js");
|
|
281
286
|
return new GrokAdapter;
|
|
282
287
|
}
|
|
283
288
|
case "acp": {
|
|
284
|
-
const { ACPAdapter } = await import("./acp-adapter-
|
|
289
|
+
const { ACPAdapter } = await import("./acp-adapter-zvzr538d.js");
|
|
285
290
|
return new ACPAdapter;
|
|
286
291
|
}
|
|
287
292
|
default:
|
|
@@ -289,6 +294,32 @@ async function createProviderAdapter(provider) {
|
|
|
289
294
|
}
|
|
290
295
|
}
|
|
291
296
|
|
|
297
|
+
// src/ranking/usage.ts
|
|
298
|
+
init_env_flag();
|
|
299
|
+
var tokens = (value) => typeof value === "number" && Number.isFinite(value) && value > 0 ? Math.floor(value) : 0;
|
|
300
|
+
function rankingUsageProps(cost, session, env = process.env) {
|
|
301
|
+
if (!isEnvFlagEnabled("ANONYMIZED_TELEMETRY", true, env))
|
|
302
|
+
return null;
|
|
303
|
+
if (!isEnvFlagEnabled("PUBLIC_RANKING_ENABLED", false, env))
|
|
304
|
+
return null;
|
|
305
|
+
const identity = { SWARM_ORG_NAME: env.SWARM_ORG_NAME, SWARM_ORG_WEBSITE: env.SWARM_ORG_WEBSITE };
|
|
306
|
+
if (!orgIdentityStatus(identity).ok)
|
|
307
|
+
return null;
|
|
308
|
+
const input = tokens(cost.inputTokens);
|
|
309
|
+
const output = tokens(cost.outputTokens);
|
|
310
|
+
const cacheRead = tokens(cost.cacheReadTokens);
|
|
311
|
+
const cacheWrite = tokens(cost.cacheWriteTokens);
|
|
312
|
+
return {
|
|
313
|
+
model: session.model,
|
|
314
|
+
provider: session.provider,
|
|
315
|
+
totalTokens: input + cacheRead + cacheWrite + output,
|
|
316
|
+
inputTokens: input,
|
|
317
|
+
outputTokens: output,
|
|
318
|
+
...cost.cacheReadTokens != null ? { cacheReadTokens: cacheRead } : {},
|
|
319
|
+
...cost.cacheWriteTokens != null ? { cacheWriteTokens: cacheWrite } : {}
|
|
320
|
+
};
|
|
321
|
+
}
|
|
322
|
+
|
|
292
323
|
// src/realtime/worker-client.ts
|
|
293
324
|
init_types();
|
|
294
325
|
init_api_key();
|
|
@@ -1174,8 +1205,11 @@ var CREDENTIAL_PROVIDER_CHECKERS = {
|
|
|
1174
1205
|
devin: (env) => checkDevinCredentials2(env),
|
|
1175
1206
|
opencode: (env, opts) => checkOpencodeCredentials2(env, opts),
|
|
1176
1207
|
pi: async (env, opts) => {
|
|
1177
|
-
const { checkPiMonoCredentials } = await import("./pi-mono-adapter-
|
|
1178
|
-
return
|
|
1208
|
+
const { checkPiMonoCredentials, listPiOpencodeGoModelIds } = await import("./pi-mono-adapter-ytp7gz8b.js");
|
|
1209
|
+
return {
|
|
1210
|
+
...await checkPiMonoCredentials(env, opts),
|
|
1211
|
+
opencodeGoModels: listPiOpencodeGoModelIds()
|
|
1212
|
+
};
|
|
1179
1213
|
},
|
|
1180
1214
|
acp: (env) => {
|
|
1181
1215
|
const target = env.ACP_TARGET ?? "custom";
|
|
@@ -1443,7 +1477,7 @@ async function validateProviderCredentials(provider, env = process.env, presence
|
|
|
1443
1477
|
latency_ms: Date.now() - startedAt
|
|
1444
1478
|
};
|
|
1445
1479
|
}
|
|
1446
|
-
const { liveTestCursorKey } = await import("./cursor-adapter-
|
|
1480
|
+
const { liveTestCursorKey } = await import("./cursor-adapter-cz6nm6mj.js");
|
|
1447
1481
|
const result = await liveTestCursorKey(apiKey);
|
|
1448
1482
|
return result.ok ? { ok: true, latency_ms: Date.now() - startedAt } : { ok: false, error: result.error, latency_ms: Date.now() - startedAt };
|
|
1449
1483
|
}
|
|
@@ -1495,6 +1529,7 @@ async function buildCredStatusReport(provider, env, opts = {}, kind) {
|
|
|
1495
1529
|
models: presence.bedrockModels ?? [],
|
|
1496
1530
|
error: presence.ready ? undefined : presence.hint ?? undefined
|
|
1497
1531
|
} : null;
|
|
1532
|
+
const opencodeGo = presence.opencodeGoModels !== undefined ? { probedAt: Date.now(), models: presence.opencodeGoModels } : null;
|
|
1498
1533
|
return {
|
|
1499
1534
|
ready: presence.ready,
|
|
1500
1535
|
missing: presence.missing ?? [],
|
|
@@ -1505,6 +1540,7 @@ async function buildCredStatusReport(provider, env, opts = {}, kind) {
|
|
|
1505
1540
|
reportedAt: Date.now(),
|
|
1506
1541
|
reportKind: kind,
|
|
1507
1542
|
bedrock,
|
|
1543
|
+
opencodeGo,
|
|
1508
1544
|
acp: null
|
|
1509
1545
|
};
|
|
1510
1546
|
}
|
|
@@ -2466,6 +2502,11 @@ var RELOADABLE_ENV_KEYS = new Set([
|
|
|
2466
2502
|
"TEMPLATE_REGISTRY_URL",
|
|
2467
2503
|
"SLACK_DISABLE",
|
|
2468
2504
|
"SWARM_ORG_NAME",
|
|
2505
|
+
"SWARM_ORG_WEBSITE",
|
|
2506
|
+
"PUBLIC_RANKING_ENABLED",
|
|
2507
|
+
"SWARM_ORG_TEAM_SIZE",
|
|
2508
|
+
"SWARM_ORG_USE_CASE",
|
|
2509
|
+
"SWARM_ORG_ACQUISITION_SOURCE",
|
|
2469
2510
|
"PI_TOOL_DEFERRAL",
|
|
2470
2511
|
"PI_CODEMODE",
|
|
2471
2512
|
"PI_CODEMODE_MODELS",
|
|
@@ -4642,6 +4683,12 @@ async function spawnProviderProcess(adapter, opts, logDir, isYolo) {
|
|
|
4642
4683
|
numTurns: result.cost.numTurns,
|
|
4643
4684
|
isError: result.cost.isError
|
|
4644
4685
|
}, { userId: opts.requestedByUserId ?? null });
|
|
4686
|
+
const rankingUsage = rankingUsageProps(result.cost, {
|
|
4687
|
+
model: result.cost.model,
|
|
4688
|
+
provider: result.cost.provider ?? opts.harnessProvider
|
|
4689
|
+
});
|
|
4690
|
+
if (rankingUsage)
|
|
4691
|
+
telemetry.ranking("usage", rankingUsage);
|
|
4645
4692
|
}
|
|
4646
4693
|
if (result.cost && realTaskId) {
|
|
4647
4694
|
fetch(`${opts.apiUrl}/api/tasks/${realTaskId}/context`, {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
isGrokOpenRouterModel,
|
|
3
3
|
grokTargetProfile,
|
|
4
4
|
ACPAdapter2
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-3tnpj2bh.js";
|
|
6
6
|
import {
|
|
7
7
|
getOpenRouterBaseUrl,
|
|
8
8
|
getOpenRouterAttributionHeaders,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
registerVolatileSecret,
|
|
13
13
|
init_secret_scrubber
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-xf234ws8.js";
|
|
15
15
|
import {
|
|
16
16
|
normalizeGrokModel,
|
|
17
17
|
init_src2
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-nwyw3zhg.js";
|
|
19
19
|
|
|
20
20
|
// src/providers/grok-adapter.ts
|
|
21
21
|
init_src2();
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
claudeMdLineageOf,
|
|
14
14
|
planClaudeMdSync,
|
|
15
15
|
init_profile_sync
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-x5mq1fyq.js";
|
|
17
17
|
import {
|
|
18
18
|
scrubSecrets,
|
|
19
19
|
init_secret_scrubber
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-xf234ws8.js";
|
|
21
21
|
|
|
22
22
|
// src/commands/claude-md-session.ts
|
|
23
23
|
init_file_lock();
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
persistCodexOAuth,
|
|
12
12
|
getValidCodexOAuth
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-ejs3m1sx.js";
|
|
14
14
|
import {
|
|
15
15
|
registerSessionResourceCleanup,
|
|
16
16
|
cleanupSessionResources,
|
|
@@ -13206,9 +13206,9 @@ var anthropicMessagesApi = () => lazyApi(() => import("./anthropic-messages-g6pq
|
|
|
13206
13206
|
// node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.lazy.js
|
|
13207
13207
|
var azureOpenAIResponsesApi = () => lazyApi(() => import("./azure-openai-responses-9dbmj346.js"));
|
|
13208
13208
|
// node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.lazy.js
|
|
13209
|
-
var googleGenerativeAIApi = () => lazyApi(() => import("./google-generative-ai-
|
|
13209
|
+
var googleGenerativeAIApi = () => lazyApi(() => import("./google-generative-ai-bmq8gkf3.js"));
|
|
13210
13210
|
// node_modules/@earendil-works/pi-ai/dist/api/google-vertex.lazy.js
|
|
13211
|
-
var googleVertexApi = () => lazyApi(() => import("./google-vertex-
|
|
13211
|
+
var googleVertexApi = () => lazyApi(() => import("./google-vertex-b1rvp52s.js"));
|
|
13212
13212
|
// node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.lazy.js
|
|
13213
13213
|
var mistralConversationsApi = () => lazyApi(() => import("./mistral-conversations-1medfwv7.js"));
|
|
13214
13214
|
// node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.lazy.js
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from "./cli-242037k3.js";
|
|
22
22
|
|
|
23
23
|
// node_modules/@slack/logger/dist/index.js
|
|
24
|
-
var
|
|
24
|
+
var require_dist5 = __commonJS(function(exports) {
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ConsoleLogger = exports.LogLevel = undefined;
|
|
27
27
|
var LogLevel;
|
|
@@ -305,8 +305,8 @@ var require_logger = __commonJS(function(exports) {
|
|
|
305
305
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
306
306
|
exports.LogLevel = undefined;
|
|
307
307
|
exports.getLogger = getLogger;
|
|
308
|
-
var logger_1 =
|
|
309
|
-
var logger_2 =
|
|
308
|
+
var logger_1 = require_dist5();
|
|
309
|
+
var logger_2 = require_dist5();
|
|
310
310
|
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function() {
|
|
311
311
|
return logger_2.LogLevel;
|
|
312
312
|
} });
|
|
@@ -3887,7 +3887,7 @@ var require_priority_queue = __commonJS(function(exports) {
|
|
|
3887
3887
|
});
|
|
3888
3888
|
|
|
3889
3889
|
// node_modules/p-queue/dist/index.js
|
|
3890
|
-
var
|
|
3890
|
+
var require_dist6 = __commonJS(function(exports) {
|
|
3891
3891
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3892
3892
|
var EventEmitter = require_eventemitter32();
|
|
3893
3893
|
var p_timeout_1 = require_p_timeout();
|
|
@@ -4956,7 +4956,7 @@ var require_views = __commonJS(function(exports) {
|
|
|
4956
4956
|
});
|
|
4957
4957
|
|
|
4958
4958
|
// node_modules/@slack/types/dist/index.js
|
|
4959
|
-
var
|
|
4959
|
+
var require_dist7 = __commonJS(function(exports) {
|
|
4960
4960
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
4961
4961
|
if (k2 === undefined)
|
|
4962
4962
|
k2 = k;
|
|
@@ -5496,7 +5496,7 @@ var require_methods = __commonJS(function(exports) {
|
|
|
5496
5496
|
}
|
|
5497
5497
|
}
|
|
5498
5498
|
exports.Methods = Methods;
|
|
5499
|
-
__exportStar(
|
|
5499
|
+
__exportStar(require_dist7(), exports);
|
|
5500
5500
|
});
|
|
5501
5501
|
|
|
5502
5502
|
// node_modules/@slack/web-api/dist/WebClient.js
|
|
@@ -5665,7 +5665,7 @@ var require_WebClient = __commonJS(function(exports) {
|
|
|
5665
5665
|
var form_data_1 = __importDefault(require_form_data());
|
|
5666
5666
|
var is_electron_1 = __importDefault(require_is_electron());
|
|
5667
5667
|
var is_stream_1 = __importDefault(require_is_stream());
|
|
5668
|
-
var p_queue_1 = __importDefault(
|
|
5668
|
+
var p_queue_1 = __importDefault(require_dist6());
|
|
5669
5669
|
var p_retry_1 = __importStar(require_p_retry());
|
|
5670
5670
|
var chat_stream_1 = require_chat_stream();
|
|
5671
5671
|
var errors_1 = require_errors();
|
|
@@ -6193,7 +6193,7 @@ var require_WebClient = __commonJS(function(exports) {
|
|
|
6193
6193
|
});
|
|
6194
6194
|
|
|
6195
6195
|
// node_modules/@slack/web-api/dist/index.js
|
|
6196
|
-
var
|
|
6196
|
+
var require_dist8 = __commonJS(function(exports) {
|
|
6197
6197
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
6198
6198
|
if (k2 === undefined)
|
|
6199
6199
|
k2 = k;
|
|
@@ -6295,7 +6295,7 @@ var require_errors2 = __commonJS(function(exports) {
|
|
|
6295
6295
|
var require_logger2 = __commonJS(function(exports) {
|
|
6296
6296
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6297
6297
|
exports.LogLevel = undefined;
|
|
6298
|
-
var logger_1 =
|
|
6298
|
+
var logger_1 = require_dist5();
|
|
6299
6299
|
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function() {
|
|
6300
6300
|
return logger_1.LogLevel;
|
|
6301
6301
|
} });
|
|
@@ -6714,7 +6714,7 @@ var require_SocketModeClient = __commonJS(function(exports) {
|
|
|
6714
6714
|
};
|
|
6715
6715
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6716
6716
|
exports.SocketModeClient = undefined;
|
|
6717
|
-
var web_api_1 =
|
|
6717
|
+
var web_api_1 = require_dist8();
|
|
6718
6718
|
var eventemitter3_1 = require_eventemitter3();
|
|
6719
6719
|
var package_json_1 = __importDefault(require_package2());
|
|
6720
6720
|
var errors_1 = require_errors2();
|
|
@@ -6982,4 +6982,4 @@ var require_src2 = __commonJS(function(exports) {
|
|
|
6982
6982
|
} });
|
|
6983
6983
|
});
|
|
6984
6984
|
|
|
6985
|
-
export {
|
|
6985
|
+
export { require_dist5, require_axios, require_is_electron, require_is_stream, require_dist6, require_eventemitter3, require_dist7, require_dist8, require_src2 };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getContextWindowSize,
|
|
10
10
|
computeContextUsedUnified,
|
|
11
11
|
clampContextPercent
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-a5ebc95n.js";
|
|
13
13
|
import {
|
|
14
14
|
readPkgVersion
|
|
15
15
|
} from "./cli-kr5tjjtz.js";
|
|
@@ -19,14 +19,14 @@ import {
|
|
|
19
19
|
import {
|
|
20
20
|
runtimeCatalogModel,
|
|
21
21
|
init_runtime_model_catalog
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-6x9ma5w5.js";
|
|
23
23
|
import {
|
|
24
24
|
scrubSecrets,
|
|
25
25
|
init_secret_scrubber
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-xf234ws8.js";
|
|
27
27
|
import {
|
|
28
28
|
init_src2
|
|
29
|
-
} from "./cli-
|
|
29
|
+
} from "./cli-nwyw3zhg.js";
|
|
30
30
|
|
|
31
31
|
// src/providers/claude-managed-adapter.ts
|
|
32
32
|
init_secret_scrubber();
|