@desplega.ai/agent-swarm 2.2.0 → 2.4.0
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-k0vwfyvn.js → acp-adapter-kedstxx6.js} +6 -6
- package/dist/{actions-w4pnb8vz.js → actions-vget6r1k.js} +18 -16
- package/dist/{amp-adapter-0cmxb2t5.js → amp-adapter-xeb5mktv.js} +2 -2
- package/dist/{app-zneem7g9.js → app-mqap8t8m.js} +3 -3
- package/dist/{assistant-wbzd2rnr.js → assistant-h0gv97mv.js} +20 -18
- package/dist/{boot-reembed-4kx69j3g.js → boot-reembed-qr8a894z.js} +1 -1
- package/dist/{boot-reembed-db0wwgy1.js → boot-reembed-rj85jjhw.js} +1 -1
- package/dist/{boot-scrub-sweep-tfv4d3mm.js → boot-scrub-sweep-eyfvn6v9.js} +3 -3
- package/dist/{boot-seeds-w2hmkxn5.js → boot-seeds-xs9a8dx1.js} +4 -4
- package/dist/{claude-adapter-5qrc2paq.js → claude-adapter-bm23cye7.js} +5 -5
- package/dist/{claude-managed-adapter-n7ahjyx6.js → claude-managed-adapter-1mwrsm9d.js} +2 -2
- package/dist/{claude-managed-setup-7ra32em4.js → claude-managed-setup-gkfgks4j.js} +1 -1
- package/dist/{claude-sdk-session-cd02gc76.js → claude-sdk-session-apb4ypz3.js} +5 -5
- package/dist/cli-02vhhssk.js +848 -0
- package/dist/{cli-4ync7m60.js → cli-0ebey9hg.js} +1 -1
- package/dist/{cli-665j3feb.js → cli-0xk505e8.js} +1 -1
- package/dist/{cli-8c1m9mhy.js → cli-1cevz46c.js} +5 -5
- package/dist/{cli-gzvb3d4a.js → cli-1jx0srjt.js} +3 -3
- package/dist/{cli-zj4d6afs.js → cli-1pa3rz69.js} +21 -6
- package/dist/{cli-vmbakbq0.js → cli-2rwet3r7.js} +1 -1
- package/dist/{cli-azs9bhc5.js → cli-3wjs22x3.js} +2 -2
- package/dist/{cli-tba8fxf9.js → cli-4fhyq711.js} +45 -36
- package/dist/{cli-ak4c12mh.js → cli-5ff2sjyt.js} +1 -1
- package/dist/{cli-6q7pyd3k.js → cli-5s5hx57y.js} +5 -3
- package/dist/{cli-h23mr2s6.js → cli-6ftrrwm1.js} +9 -371
- package/dist/{cli-9ac0mkg5.js → cli-8b9wvjps.js} +1 -1
- package/dist/cli-8cxkw1f5.js +382 -0
- package/dist/{cli-xhgtay7w.js → cli-8rwvksbc.js} +2 -2
- package/dist/{cli-e09hj50q.js → cli-8wkb09q5.js} +11 -11
- package/dist/{cli-ksrphveb.js → cli-a1esmmee.js} +14 -2
- package/dist/{cli-xnp2vkx7.js → cli-avmqhatn.js} +7 -7
- package/dist/{cli-xx13gqf3.js → cli-b80a1100.js} +1 -1
- package/dist/{cli-z1hh99j0.js → cli-bfc3k1x5.js} +3 -3
- package/dist/{cli-0k9rcwfy.js → cli-bhwa8rzc.js} +33 -15
- package/dist/{cli-8cvvytad.js → cli-bn26xbcs.js} +2 -2
- package/dist/{cli-k28p6xh7.js → cli-c8fwpgqb.js} +1 -1
- package/dist/{cli-rc3r0bnh.js → cli-ccn0eybf.js} +1 -1
- package/dist/{cli-9td5ss65.js → cli-dsgj3e7a.js} +2 -2
- package/dist/{cli-jrk8mj0t.js → cli-ecshf504.js} +2 -2
- package/dist/{cli-raejy0mp.js → cli-eqgfs202.js} +1 -1
- package/dist/{cli-ppapy34w.js → cli-f3nx1h8z.js} +2 -2
- package/dist/{cli-c9vrwcpb.js → cli-ffbrkh1r.js} +74 -35
- package/dist/{cli-mnry16kh.js → cli-kk2r80n5.js} +4 -4
- package/dist/{cli-c0dpzwnx.js → cli-kz116kvw.js} +3 -3
- package/dist/{cli-e5y285rg.js → cli-mvg2hf8p.js} +4 -4
- package/dist/{cli-2jm992rm.js → cli-mz1ezzzh.js} +2 -2
- package/dist/{cli-dw0njd9q.js → cli-nme7wery.js} +6 -6
- package/dist/{cli-mvsfbbgq.js → cli-nrrg0fvy.js} +18 -4
- package/dist/{cli-8jtrekpy.js → cli-p1m2b6gc.js} +7 -7
- package/dist/{cli-4c7k75rq.js → cli-rg7ntypm.js} +378 -84
- package/dist/{cli-z3dk189k.js → cli-rsd7ga7v.js} +10 -8
- package/dist/{cli-etvn5ej2.js → cli-sppc0cmw.js} +1 -1
- package/dist/{cli-8w65vwee.js → cli-tg9ksbn8.js} +1 -1
- package/dist/{cli-th8krqbf.js → cli-tgvpmnwz.js} +2 -2
- package/dist/{cli-hwc4a9xm.js → cli-tj4j2ts4.js} +6 -6
- package/dist/{cli-jhhb2v9n.js → cli-ttaz6c7m.js} +2 -2
- package/dist/{cli-w7z94e6c.js → cli-tx00c0h6.js} +4 -2
- package/dist/{cli-4g629sgr.js → cli-wrv09v7q.js} +20 -1
- package/dist/{cli-cby329ny.js → cli-wyrr38xm.js} +2 -2
- package/dist/{cli-5ks6x36q.js → cli-x1p5dhq2.js} +3 -3
- package/dist/{cli-bddxamg7.js → cli-x719j3vs.js} +220 -629
- package/dist/{cli-ztcxv5nv.js → cli-xfe63zx3.js} +1 -1
- package/dist/{cli-q6gw45wj.js → cli-ywyrffff.js} +1 -1
- package/dist/{cli-p46xdr1m.js → cli-zvze9rbm.js} +1 -1
- package/dist/cli.js +15 -15
- package/dist/{codex-adapter-m0fx3v3s.js → codex-adapter-pp2gq8gr.js} +3 -3
- package/dist/{codex-hook-x6tm6y5m.js → codex-hook-qwzccd64.js} +1 -1
- package/dist/{codex-session-runner-j9m2gfyy.js → codex-session-runner-0vzn09t8.js} +3 -3
- package/dist/{commands-ktnqwrv4.js → commands-psqhkttb.js} +2 -2
- package/dist/{controller-nex2he8v.js → controller-t20vz2k8.js} +2 -2
- package/dist/{controllers-connect-6yhwqv9v.js → controllers-connect-gkxmqw9d.js} +24 -20
- package/dist/{cursor-adapter-02s5ekva.js → cursor-adapter-3v542qe5.js} +1 -1
- package/dist/{db-jvr86v7f.js → db-2xbyenjr.js} +2 -2
- package/dist/{db-19tw9r5s.js → db-nc1rd869.js} +3 -2
- package/dist/{dispatcher-d3mnsg2y.js → dispatcher-ewceb8ts.js} +17 -15
- package/dist/{dsh-adapter-63rvej88.js → dsh-adapter-75xwh78t.js} +1 -1
- package/dist/{easter-egg-3d-6hg2r942.js → easter-egg-3d-xsc47jwf.js} +1 -1
- package/dist/{execute-bcqc69a5.js → execute-gzmw1mnw.js} +1 -1
- package/dist/{external-channel-44cwer32.js → external-channel-a5dsmxn4.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-ysp907f6.js → grok-adapter-vj88xr23.js} +7 -7
- package/dist/handlers-zbs90bny.js +39 -0
- package/dist/{heartbeat-2etacsqq.js → heartbeat-t2m9r3wa.js} +20 -18
- package/dist/{hook-mzxxs5n2.js → hook-8femx1bg.js} +4 -4
- package/dist/{hook-3kvmax6d.js → hook-xa677f8r.js} +5 -5
- package/dist/{http-fn978m0g.js → http-xpmmq028.js} +940 -269
- package/dist/{index-e4tsa1h7.js → index-8pwc1jc8.js} +17 -15
- package/dist/{index-w2wr89xd.js → index-cdzyfrsp.js} +1 -1
- package/dist/{index-1r8hw4vd.js → index-dg2tmj99.js} +17 -15
- package/dist/index-nxa6me0q.js +41 -0
- package/dist/{index-039x2sag.js → index-s7ckdajq.js} +42 -14
- package/dist/{index-wgsw9xcz.js → index-syztqdt6.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-d4nzs76x.js → keepalive-3nr4st3r.js} +3 -3
- package/dist/{lead-8h5n9k5f.js → lead-td8h2sfn.js} +33 -31
- package/dist/{maintenance-ea6jfw42.js → maintenance-verwpe2c.js} +1 -1
- package/dist/{oauth-refresh-sweep-3f25djq3.js → oauth-refresh-sweep-9q2t0y3q.js} +2 -2
- package/dist/{onboard-pvk7hdb2.js → onboard-aytqedmq.js} +2 -2
- package/dist/{opencode-adapter-eeesgfqk.js → opencode-adapter-f4hryjny.js} +4 -4
- package/dist/{otel-impl-qb7nhgdp.js → otel-impl-hckw4wt1.js} +1 -1
- package/dist/{pi-mono-adapter-zasp3ze3.js → pi-mono-adapter-hxby0ce1.js} +6 -6
- package/dist/{pricing-refresh-6ehwkcmp.js → pricing-refresh-5nvme3sm.js} +3 -3
- package/dist/{rbac-roles-km0f9cmm.js → rbac-roles-pd8c26m1.js} +5 -3
- package/dist/{rbac-roles-9648nh00.js → rbac-roles-vbpy21mg.js} +2 -2
- package/dist/{render-v2-xkze1wef.js → render-v2-7nqgvk2q.js} +3 -3
- package/dist/{resume-tq0bbvt5.js → resume-b6djcj3c.js} +6 -6
- package/dist/{runtime-ar8310ba.js → runtime-txrxc9za.js} +1 -1
- package/dist/session-access-fc3f9y12.js +25 -0
- package/dist/{setup-rnrazxvd.js → setup-n39szm6b.js} +1 -1
- package/dist/{virtual-modules-wzk6jf3a.js → virtual-modules-wyp2k6z3.js} +2 -2
- package/dist/{work-objects-e75q2rqs.js → work-objects-jem2fre0.js} +20 -18
- package/dist/{worker-4ww4hjef.js → worker-wr6xgfr2.js} +33 -31
- package/openapi.json +1011 -115
- package/package.json +2 -2
- package/src/apps/action-caller.ts +6 -0
- package/src/apps/script-types.ts +16 -3
- package/src/be/asset-key-audit.ts +4 -13
- 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 +149 -66
- package/src/be/events.ts +11 -0
- package/src/be/migrations/227_inbox_item_state_last_read_at.sql +1 -0
- package/src/be/migrations/230_session_shares.sql +23 -0
- package/src/be/rbac-roles.ts +2 -0
- package/src/be/seed-scripts/catalog/heartbeat-jev-gate.ts +22 -4
- package/src/be/session-shares.ts +244 -0
- package/src/be/swarm-config-guard.ts +23 -2
- package/src/commands/runner.ts +11 -0
- package/src/heartbeat/heartbeat.ts +25 -7
- package/src/http/active-sessions.ts +13 -2
- package/src/http/agents.ts +10 -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 +36 -11
- package/src/http/assets.ts +26 -4
- 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/fs.ts +38 -3
- package/src/http/inbox-state.ts +58 -8
- package/src/http/index.ts +3 -1
- package/src/http/memory.ts +3 -1
- package/src/http/ranking.ts +367 -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 +83 -7
- package/src/http/used-by.ts +11 -3
- package/src/kv-reserved-namespaces.ts +1 -0
- package/src/prompts/session-templates.ts +3 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/ranking/telemetry-ranking.ts +147 -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/slack/blocks.ts +18 -0
- package/src/slack/dm.ts +29 -0
- package/src/telemetry-contract/EVENTS.md +3 -0
- package/src/telemetry-contract/SOURCE.json +37 -4
- package/src/telemetry-contract/catalog.json +69 -0
- 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/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 +708 -1
- package/src/telemetry.ts +26 -2
- package/src/tests/apps-rbac.test.ts +189 -2
- package/src/tests/apps-script-types.test.ts +16 -3
- package/src/tests/asset-key-api.test.ts +128 -0
- package/src/tests/asset-key-invariants.test.ts +179 -3
- package/src/tests/asset-key-migration.test.ts +35 -0
- package/src/tests/check-pr-body.test.ts +23 -0
- package/src/tests/check-ranking-entry.test.ts +146 -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/heartbeat-checklist.test.ts +88 -0
- package/src/tests/heartbeat-jev-gate.test.ts +394 -10
- package/src/tests/inbox-state.test.ts +167 -0
- package/src/tests/kv-tool.test.ts +15 -0
- package/src/tests/org-identity.test.ts +44 -0
- package/src/tests/ranking-listing.test.ts +112 -0
- package/src/tests/ranking-route.test.ts +319 -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/script-connections.test.ts +2 -0
- 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/used-by-route.test.ts +10 -0
- 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/types.ts +37 -0
- package/src/utils/org-identity.ts +33 -0
- package/templates/skills/apps/SKILL.md +17 -0
- package/templates/skills/apps/content.md +17 -0
- package/templates/skills/code-quality/content.md +2 -2
- package/templates/skills/pages/content.md +4 -0
- package/templates/skills/swarm-scripts/SKILL.md +6 -0
- package/templates/skills/swarm-scripts/content.md +6 -0
- package/dist/handlers-t5pbabwf.js +0 -37
- package/dist/index-qyjbb7br.js +0 -39
- package/dist/{cli-n5mrsg0f.js → cli-60cgh1rv.js} +3 -3
- /package/dist/{cli-j0v75y13.js → cli-y83zk5sb.js} +0 -0
|
@@ -0,0 +1,382 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getDbClient2,
|
|
3
|
+
scheduleOrgDomainRecompute,
|
|
4
|
+
init_telemetry_identity,
|
|
5
|
+
validateRuntimeTokenTtlHours,
|
|
6
|
+
init_swarm_config_guard,
|
|
7
|
+
init_db3
|
|
8
|
+
} from "./cli-rg7ntypm.js";
|
|
9
|
+
import {
|
|
10
|
+
unregisterVolatileSecret,
|
|
11
|
+
init_secret_scrubber
|
|
12
|
+
} from "./cli-4mkvwgzr.js";
|
|
13
|
+
import {
|
|
14
|
+
__esm
|
|
15
|
+
} from "./cli-242037k3.js";
|
|
16
|
+
|
|
17
|
+
// src/utils/session-token-connections.ts
|
|
18
|
+
function registerSessionTokenConnection(tokenId, close) {
|
|
19
|
+
let callbacks = connections.get(tokenId);
|
|
20
|
+
if (!callbacks) {
|
|
21
|
+
callbacks = new Set;
|
|
22
|
+
connections.set(tokenId, callbacks);
|
|
23
|
+
}
|
|
24
|
+
callbacks.add(close);
|
|
25
|
+
return () => {
|
|
26
|
+
callbacks.delete(close);
|
|
27
|
+
if (callbacks.size === 0)
|
|
28
|
+
connections.delete(tokenId);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function closeSessionTokenConnections(tokenIds) {
|
|
32
|
+
for (const tokenId of tokenIds) {
|
|
33
|
+
for (const close of connections.get(tokenId) ?? [])
|
|
34
|
+
close();
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
var connections;
|
|
38
|
+
var init_session_token_connections = __esm(() => {
|
|
39
|
+
connections = new Map;
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
// src/be/users.ts
|
|
43
|
+
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
44
|
+
function actorString(actor) {
|
|
45
|
+
return `${actor.kind}:${actor.id}`;
|
|
46
|
+
}
|
|
47
|
+
function rowToUser(row) {
|
|
48
|
+
return {
|
|
49
|
+
id: row.id,
|
|
50
|
+
name: row.name,
|
|
51
|
+
email: row.email ?? undefined,
|
|
52
|
+
role: row.role ?? undefined,
|
|
53
|
+
notes: row.notes ?? undefined,
|
|
54
|
+
emailAliases: row.emailAliases ? JSON.parse(row.emailAliases) : [],
|
|
55
|
+
preferredChannel: row.preferredChannel ?? "slack",
|
|
56
|
+
timezone: row.timezone ?? undefined,
|
|
57
|
+
metadata: row.metadata ? JSON.parse(row.metadata) : undefined,
|
|
58
|
+
dailyBudgetUsd: row.dailyBudgetUsd ?? null,
|
|
59
|
+
status: row.status ?? "active",
|
|
60
|
+
createdAt: row.createdAt,
|
|
61
|
+
lastUpdatedAt: row.lastUpdatedAt
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
async function findUserById(id) {
|
|
65
|
+
const row = await getDbClient2().get("SELECT * FROM users WHERE id = ?", [id]);
|
|
66
|
+
return row ? rowToUser(row) : null;
|
|
67
|
+
}
|
|
68
|
+
async function findUserByExternalId(kind, externalId) {
|
|
69
|
+
const row = await getDbClient2().get(`SELECT u.* FROM users u
|
|
70
|
+
INNER JOIN user_external_ids x ON x.userId = u.id
|
|
71
|
+
WHERE x.kind = ? AND x.externalId = ?`, [kind, externalId]);
|
|
72
|
+
return row ? rowToUser(row) : null;
|
|
73
|
+
}
|
|
74
|
+
async function findUserByEmail(email) {
|
|
75
|
+
const lower = email.toLowerCase();
|
|
76
|
+
const db = getDbClient2();
|
|
77
|
+
const primary = await db.get("SELECT * FROM users WHERE LOWER(email) = LOWER(?)", [
|
|
78
|
+
email
|
|
79
|
+
]);
|
|
80
|
+
if (primary)
|
|
81
|
+
return rowToUser(primary);
|
|
82
|
+
const aliasRows = await db.query("SELECT * FROM users WHERE emailAliases IS NOT NULL AND emailAliases != '[]'");
|
|
83
|
+
for (const r of aliasRows) {
|
|
84
|
+
const aliases = r.emailAliases ? JSON.parse(r.emailAliases) : [];
|
|
85
|
+
if (aliases.some((a) => a.toLowerCase() === lower)) {
|
|
86
|
+
return rowToUser(r);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
async function findUsersByName(name) {
|
|
92
|
+
const trimmed = name.trim();
|
|
93
|
+
if (!trimmed)
|
|
94
|
+
return [];
|
|
95
|
+
const client = getDbClient2();
|
|
96
|
+
const exact = await client.query("SELECT * FROM users WHERE LOWER(name) = LOWER(?)", [
|
|
97
|
+
trimmed
|
|
98
|
+
]);
|
|
99
|
+
if (exact.length > 0)
|
|
100
|
+
return exact.map(rowToUser);
|
|
101
|
+
const firstToken = trimmed.split(/\s+/)[0] ?? trimmed;
|
|
102
|
+
const prefixed = await client.query("SELECT * FROM users WHERE LOWER(name) LIKE LOWER(?) || '%'", [firstToken]);
|
|
103
|
+
return prefixed.map(rowToUser);
|
|
104
|
+
}
|
|
105
|
+
async function getUserIdentities(userId) {
|
|
106
|
+
return getDbClient2().query("SELECT kind, externalId FROM user_external_ids WHERE userId = ? ORDER BY kind, externalId", [userId]);
|
|
107
|
+
}
|
|
108
|
+
function rowToEvent(row) {
|
|
109
|
+
return {
|
|
110
|
+
id: row.id,
|
|
111
|
+
userId: row.userId,
|
|
112
|
+
eventType: row.eventType,
|
|
113
|
+
actor: row.actor,
|
|
114
|
+
before: row.beforeJson == null ? null : JSON.parse(row.beforeJson),
|
|
115
|
+
after: row.afterJson == null ? null : JSON.parse(row.afterJson),
|
|
116
|
+
createdAt: row.createdAt
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
async function listUserEvents(userId, opts = {}) {
|
|
120
|
+
const limit = Math.max(1, Math.min(opts.limit ?? 50, 200));
|
|
121
|
+
const before = opts.before;
|
|
122
|
+
const client = getDbClient2();
|
|
123
|
+
if (before) {
|
|
124
|
+
const rows = await client.query(`SELECT id, userId, eventType, actor, beforeJson, afterJson, createdAt
|
|
125
|
+
FROM user_identity_events
|
|
126
|
+
WHERE userId = ? AND createdAt < ?
|
|
127
|
+
ORDER BY createdAt DESC, rowid DESC
|
|
128
|
+
LIMIT ?`, [userId, before, limit]);
|
|
129
|
+
return rows.map(rowToEvent);
|
|
130
|
+
}
|
|
131
|
+
const rows = await client.query(`SELECT id, userId, eventType, actor, beforeJson, afterJson, createdAt
|
|
132
|
+
FROM user_identity_events
|
|
133
|
+
WHERE userId = ?
|
|
134
|
+
ORDER BY createdAt DESC, rowid DESC
|
|
135
|
+
LIMIT ?`, [userId, limit]);
|
|
136
|
+
return rows.map(rowToEvent);
|
|
137
|
+
}
|
|
138
|
+
async function listUserTokens(userId) {
|
|
139
|
+
return getDbClient2().query(`SELECT id, userId, label, tokenPreview, createdAt, lastUsedAt, revokedAt
|
|
140
|
+
FROM user_tokens
|
|
141
|
+
WHERE userId = ?
|
|
142
|
+
ORDER BY createdAt DESC`, [userId]);
|
|
143
|
+
}
|
|
144
|
+
async function recordIdentityEvent(userId, eventType, actor, before, after) {
|
|
145
|
+
await getDbClient2().run(`INSERT INTO user_identity_events (id, userId, eventType, actor, beforeJson, afterJson, createdAt)
|
|
146
|
+
VALUES (?, ?, ?, ?, ?, ?, ?)`, [
|
|
147
|
+
randomUUID().replace(/-/g, ""),
|
|
148
|
+
userId,
|
|
149
|
+
eventType,
|
|
150
|
+
actorString(actor),
|
|
151
|
+
before == null ? null : JSON.stringify(before),
|
|
152
|
+
after == null ? null : JSON.stringify(after),
|
|
153
|
+
new Date().toISOString()
|
|
154
|
+
]);
|
|
155
|
+
}
|
|
156
|
+
async function findOrCreateUserByEmail(email, hints, actor) {
|
|
157
|
+
const existing = await findUserByEmail(email);
|
|
158
|
+
if (existing) {
|
|
159
|
+
await recordIdentityEvent(existing.id, "auto_merge", actor, null, { email, hints });
|
|
160
|
+
return { user: existing, created: false };
|
|
161
|
+
}
|
|
162
|
+
const id = randomUUID().replace(/-/g, "");
|
|
163
|
+
const now = new Date().toISOString();
|
|
164
|
+
const name = hints.name?.trim() || email.split("@")[0] || email;
|
|
165
|
+
const created = await getDbClient2().transaction(async (tx) => {
|
|
166
|
+
await tx.run(`INSERT INTO users (id, name, email, role, notes, emailAliases, preferredChannel, timezone, createdAt, lastUpdatedAt, status)
|
|
167
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, 'active')`, [
|
|
168
|
+
id,
|
|
169
|
+
name,
|
|
170
|
+
email,
|
|
171
|
+
hints.role ?? null,
|
|
172
|
+
hints.notes ?? null,
|
|
173
|
+
"[]",
|
|
174
|
+
hints.preferredChannel ?? "slack",
|
|
175
|
+
null,
|
|
176
|
+
now,
|
|
177
|
+
now
|
|
178
|
+
]);
|
|
179
|
+
const row = await tx.get("SELECT * FROM users WHERE id = ?", [id]);
|
|
180
|
+
if (!row)
|
|
181
|
+
throw new Error("Failed to create user");
|
|
182
|
+
await recordIdentityEvent(id, "identity_added", actor, null, { email, name });
|
|
183
|
+
return rowToUser(row);
|
|
184
|
+
});
|
|
185
|
+
getDbClient2().afterCommit(scheduleOrgDomainRecompute);
|
|
186
|
+
return { user: created, created: true };
|
|
187
|
+
}
|
|
188
|
+
async function linkIdentity(userId, kind, externalId, actor) {
|
|
189
|
+
await getDbClient2().transaction(async (tx) => {
|
|
190
|
+
await tx.run("INSERT INTO user_external_ids (userId, kind, externalId) VALUES (?, ?, ?)", [
|
|
191
|
+
userId,
|
|
192
|
+
kind,
|
|
193
|
+
externalId
|
|
194
|
+
]);
|
|
195
|
+
await recordIdentityEvent(userId, "identity_added", actor, null, { kind, externalId });
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
async function unlinkIdentity(userId, kind, externalId, actor) {
|
|
199
|
+
await getDbClient2().transaction(async (tx) => {
|
|
200
|
+
await tx.run("DELETE FROM user_external_ids WHERE userId = ? AND kind = ? AND externalId = ?", [
|
|
201
|
+
userId,
|
|
202
|
+
kind,
|
|
203
|
+
externalId
|
|
204
|
+
]);
|
|
205
|
+
await recordIdentityEvent(userId, "identity_removed", actor, { kind, externalId }, null);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
function base62(bytes) {
|
|
209
|
+
const alphabet = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
210
|
+
let out = "";
|
|
211
|
+
for (const b of bytes) {
|
|
212
|
+
out += alphabet[b % 62];
|
|
213
|
+
}
|
|
214
|
+
return out;
|
|
215
|
+
}
|
|
216
|
+
function sha256Hex(input) {
|
|
217
|
+
return createHash("sha256").update(input).digest("hex");
|
|
218
|
+
}
|
|
219
|
+
async function mintToken(userId, label, actor, options = {}) {
|
|
220
|
+
const plaintext = `${TOKEN_PREFIX}${base62(randomBytes(24))}`;
|
|
221
|
+
const tokenId = randomUUID().replace(/-/g, "");
|
|
222
|
+
const hash = sha256Hex(plaintext);
|
|
223
|
+
const preview = plaintext.slice(-4);
|
|
224
|
+
const now = new Date().toISOString();
|
|
225
|
+
await getDbClient2().transaction(async (tx) => {
|
|
226
|
+
await tx.run(`INSERT INTO user_tokens (id, userId, label, tokenHash, tokenPreview, createdAt)
|
|
227
|
+
VALUES (?, ?, ?, ?, ?, ?)`, [tokenId, userId, label, hash, preview, now]);
|
|
228
|
+
await recordIdentityEvent(userId, "token_minted", actor, null, {
|
|
229
|
+
tokenId,
|
|
230
|
+
label,
|
|
231
|
+
preview,
|
|
232
|
+
...options.source ? { source: options.source } : {}
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
return { tokenId, plaintext };
|
|
236
|
+
}
|
|
237
|
+
async function revokeToken(tokenId, actor) {
|
|
238
|
+
await getDbClient2().transaction(async (tx) => {
|
|
239
|
+
const row = await tx.get("SELECT userId, label, tokenPreview FROM user_tokens WHERE id = ?", [tokenId]);
|
|
240
|
+
if (!row) {
|
|
241
|
+
throw new Error(`Token not found: ${tokenId}`);
|
|
242
|
+
}
|
|
243
|
+
await tx.run("UPDATE user_tokens SET revokedAt = ? WHERE id = ?", [
|
|
244
|
+
new Date().toISOString(),
|
|
245
|
+
tokenId
|
|
246
|
+
]);
|
|
247
|
+
await recordIdentityEvent(row.userId, "token_revoked", actor, { tokenId, label: row.label, preview: row.tokenPreview }, null);
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
async function resolveUserByToken(plaintext) {
|
|
251
|
+
const hash = sha256Hex(plaintext);
|
|
252
|
+
const client = getDbClient2();
|
|
253
|
+
const row = await client.get("SELECT id, userId, revokedAt FROM user_tokens WHERE tokenHash = ?", [hash]);
|
|
254
|
+
if (!row || row.revokedAt !== null)
|
|
255
|
+
return null;
|
|
256
|
+
try {
|
|
257
|
+
await client.run("UPDATE user_tokens SET lastUsedAt = ? WHERE id = ?", [
|
|
258
|
+
new Date().toISOString(),
|
|
259
|
+
row.id
|
|
260
|
+
]);
|
|
261
|
+
} catch {}
|
|
262
|
+
return findUserById(row.userId);
|
|
263
|
+
}
|
|
264
|
+
async function mintSessionToken(agentId, taskId, ttlMs, parent) {
|
|
265
|
+
if (parent) {
|
|
266
|
+
return await getDbClient2().transaction(async (client) => {
|
|
267
|
+
const row = await client.get(`SELECT expiresAt FROM session_tokens WHERE id = ? AND agentId = ? AND runtimeId = ?
|
|
268
|
+
AND revokedAt IS NULL AND expiresAt > ?`, [parent.tokenId, agentId, parent.runtimeId, new Date().toISOString()]);
|
|
269
|
+
if (!row)
|
|
270
|
+
throw new InvalidRuntimeTokenError;
|
|
271
|
+
return await insertSessionToken(agentId, taskId, null, ttlMs, parent.runtimeId, row.expiresAt);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
return await insertSessionToken(agentId, taskId, null, ttlMs);
|
|
275
|
+
}
|
|
276
|
+
function runtimeTokenTtlMs() {
|
|
277
|
+
const hours = process.env.RUNTIME_TOKEN_TTL_HOURS ?? "168";
|
|
278
|
+
return (validateRuntimeTokenTtlHours(hours) === null ? Number(hours) : 168) * 60 * 60 * 1000;
|
|
279
|
+
}
|
|
280
|
+
async function mintRuntimeToken(agentId, runtimeId, ttlMs = runtimeTokenTtlMs()) {
|
|
281
|
+
return await insertSessionToken(agentId, null, runtimeId, ttlMs);
|
|
282
|
+
}
|
|
283
|
+
async function insertSessionToken(agentId, taskId, runtimeId, ttlMs, parentRuntimeId = null, expiresAtCeiling, controllerId = null) {
|
|
284
|
+
const plaintext = `${SESSION_TOKEN_PREFIX}${base62(randomBytes(24))}`;
|
|
285
|
+
const tokenId = randomUUID().replace(/-/g, "");
|
|
286
|
+
const hash = sha256Hex(plaintext);
|
|
287
|
+
const preview = plaintext.slice(-4);
|
|
288
|
+
const now = new Date;
|
|
289
|
+
const expiresAt = new Date(Math.min(now.getTime() + ttlMs, expiresAtCeiling ? Date.parse(expiresAtCeiling) : Infinity)).toISOString();
|
|
290
|
+
await getDbClient2().run(`INSERT INTO session_tokens
|
|
291
|
+
(id, tokenHash, tokenPreview, agentId, taskId, runtimeId, parentRuntimeId, expiresAt, createdAt, controllerId)
|
|
292
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)`, [
|
|
293
|
+
tokenId,
|
|
294
|
+
hash,
|
|
295
|
+
preview,
|
|
296
|
+
agentId,
|
|
297
|
+
taskId,
|
|
298
|
+
runtimeId,
|
|
299
|
+
parentRuntimeId,
|
|
300
|
+
expiresAt,
|
|
301
|
+
now.toISOString(),
|
|
302
|
+
controllerId
|
|
303
|
+
]);
|
|
304
|
+
return { tokenId, plaintext };
|
|
305
|
+
}
|
|
306
|
+
async function revokeSessionToken(tokenId) {
|
|
307
|
+
await getDbClient2().transaction(async (client) => {
|
|
308
|
+
const row = await client.get("SELECT runtimeId FROM session_tokens WHERE id = ?", [tokenId]);
|
|
309
|
+
if (row?.runtimeId) {
|
|
310
|
+
await revokeRuntimeTokensForRuntime(row.runtimeId);
|
|
311
|
+
} else {
|
|
312
|
+
await client.run("UPDATE session_tokens SET revokedAt = ? WHERE id = ? AND revokedAt IS NULL", [new Date().toISOString(), tokenId]);
|
|
313
|
+
getDbClient2().afterCommit(() => closeSessionTokenConnections([tokenId]));
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
async function revokeRuntimeTokensForRuntime(runtimeId) {
|
|
318
|
+
await getDbClient2().transaction(async (client) => {
|
|
319
|
+
const rows = await client.query("SELECT id FROM session_tokens WHERE runtimeId = ? OR parentRuntimeId = ?", [runtimeId, runtimeId]);
|
|
320
|
+
await client.run(`UPDATE session_tokens SET revokedAt = ?
|
|
321
|
+
WHERE (runtimeId = ? OR parentRuntimeId = ?) AND revokedAt IS NULL`, [new Date().toISOString(), runtimeId, runtimeId]);
|
|
322
|
+
getDbClient2().afterCommit(() => {
|
|
323
|
+
unregisterVolatileSecret(`runtime:${runtimeId}`);
|
|
324
|
+
closeSessionTokenConnections(rows.map((row) => row.id));
|
|
325
|
+
});
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
async function resolveSessionToken(plaintext, options = {}) {
|
|
329
|
+
if (!plaintext.startsWith(SESSION_TOKEN_PREFIX))
|
|
330
|
+
return null;
|
|
331
|
+
const hash = sha256Hex(plaintext);
|
|
332
|
+
const client = getDbClient2();
|
|
333
|
+
const row = await client.get(`SELECT s.id, s.agentId, s.taskId, s.runtimeId, s.controllerId, s.expiresAt, s.revokedAt,
|
|
334
|
+
c.placement FROM session_tokens s LEFT JOIN runtime_controllers c ON c.id = s.controllerId
|
|
335
|
+
WHERE s.tokenHash = ?`, [hash]);
|
|
336
|
+
if (!row || row.revokedAt !== null)
|
|
337
|
+
return null;
|
|
338
|
+
if (new Date(row.expiresAt) <= new Date)
|
|
339
|
+
return null;
|
|
340
|
+
if (row.controllerId !== null) {
|
|
341
|
+
return row.placement === "remote" ? {
|
|
342
|
+
kind: "controller",
|
|
343
|
+
controllerId: row.controllerId,
|
|
344
|
+
tokenId: row.id,
|
|
345
|
+
expiresAt: row.expiresAt
|
|
346
|
+
} : null;
|
|
347
|
+
}
|
|
348
|
+
if (options.touch !== false) {
|
|
349
|
+
try {
|
|
350
|
+
await client.run("UPDATE session_tokens SET lastUsedAt = ? WHERE id = ?", [
|
|
351
|
+
new Date().toISOString(),
|
|
352
|
+
row.id
|
|
353
|
+
]);
|
|
354
|
+
} catch {}
|
|
355
|
+
}
|
|
356
|
+
return {
|
|
357
|
+
kind: "agent",
|
|
358
|
+
tokenId: row.id,
|
|
359
|
+
agentId: row.agentId,
|
|
360
|
+
taskId: row.taskId,
|
|
361
|
+
runtimeId: row.runtimeId,
|
|
362
|
+
expiresAt: row.expiresAt
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
function fingerprintApiKey(rawKey) {
|
|
366
|
+
return `op:${sha256Hex(rawKey).slice(0, 16)}`;
|
|
367
|
+
}
|
|
368
|
+
var TOKEN_PREFIX = "aswt_", SESSION_TOKEN_PREFIX = "aseph_", InvalidRuntimeTokenError;
|
|
369
|
+
var init_users = __esm(() => {
|
|
370
|
+
init_telemetry_identity();
|
|
371
|
+
init_secret_scrubber();
|
|
372
|
+
init_session_token_connections();
|
|
373
|
+
init_db3();
|
|
374
|
+
init_swarm_config_guard();
|
|
375
|
+
InvalidRuntimeTokenError = class InvalidRuntimeTokenError extends Error {
|
|
376
|
+
constructor() {
|
|
377
|
+
super("Runtime token is no longer valid");
|
|
378
|
+
}
|
|
379
|
+
};
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
export { registerSessionTokenConnection, closeSessionTokenConnections, init_session_token_connections, findUserById, findUserByExternalId, findUserByEmail, findUsersByName, getUserIdentities, listUserEvents, listUserTokens, recordIdentityEvent, findOrCreateUserByEmail, linkIdentity, unlinkIdentity, mintToken, revokeToken, resolveUserByToken, InvalidRuntimeTokenError, mintSessionToken, mintRuntimeToken, insertSessionToken, revokeSessionToken, revokeRuntimeTokensForRuntime, resolveSessionToken, fingerprintApiKey, init_users };
|
|
@@ -14,13 +14,13 @@ import {
|
|
|
14
14
|
import {
|
|
15
15
|
DEFAULT_MODEL_TIER_MAP,
|
|
16
16
|
init_types
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-a1esmmee.js";
|
|
18
18
|
import {
|
|
19
19
|
resolveTemplateFromCode,
|
|
20
20
|
resolveTemplateAsync,
|
|
21
21
|
init_resolver,
|
|
22
22
|
init_session_templates
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-tx00c0h6.js";
|
|
24
24
|
import {
|
|
25
25
|
parseEnvFlag,
|
|
26
26
|
init_env_flag
|
|
@@ -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 };
|
|
@@ -1637,7 +1637,7 @@ function checkExtensionInstallSource(body, ctx) {
|
|
|
1637
1637
|
ctx.addIssue({ code: "custom", path: ["files"], message: "files is required with manifest" });
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
|
-
var AssetKeySchema, AssetEntityTypeSchema, AssetProviderRefSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, LEGACY_MODEL_TO_TIER, DEFAULT_MODEL_TIER_MAP, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, InboxMessageStatusSchema, InboxMessageSchema, AgentTaskSourceSchema, RoutingReasonSchema, RoutingSourceSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileSchema, 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, UserCommsPrefsSchema, IdentityEventTypeSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AgentSchema, AgentCredStatusLiveTestSchema, AgentLatestModelSchema, AgentBedrockStatusSchema, 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, 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, WaitModeSchema, WaitStateStatusSchema, WaitStateRowSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, 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;
|
|
1640
|
+
var AssetKeySchema, AssetEntityTypeSchema, AssetProviderRefSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, LEGACY_MODEL_TO_TIER, DEFAULT_MODEL_TIER_MAP, AgentTaskStatusSchema, TERMINAL_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, UserCommsPrefsSchema, IdentityEventTypeSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, AgentSchema, AgentCredStatusLiveTestSchema, AgentLatestModelSchema, AgentBedrockStatusSchema, 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, 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, WaitModeSchema, WaitStateStatusSchema, WaitStateRowSchema, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, 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;
|
|
1641
1641
|
var init_types = __esm(() => {
|
|
1642
1642
|
init_key();
|
|
1643
1643
|
init_bundle_path();
|
|
@@ -1855,6 +1855,17 @@ var init_types = __esm(() => {
|
|
|
1855
1855
|
createdAt: string2(),
|
|
1856
1856
|
lastUpdatedAt: string2()
|
|
1857
1857
|
});
|
|
1858
|
+
SessionShareAccessSchema = _enum2(["read", "write"]);
|
|
1859
|
+
SessionAccessSchema = _enum2(["owner", "write", "read"]);
|
|
1860
|
+
SessionOwnerSchema = object2({ id: string2(), name: string2() }).openapi("SessionOwner");
|
|
1861
|
+
SessionSharesSchema = object2({
|
|
1862
|
+
everyone: _enum2(["none", "read", "write"]),
|
|
1863
|
+
users: array2(object2({ userId: string2(), access: SessionShareAccessSchema, createdAt: string2() }))
|
|
1864
|
+
}).openapi("SessionShares");
|
|
1865
|
+
SessionSharesUpdateSchema = object2({
|
|
1866
|
+
everyone: _enum2(["none", "read", "write"]),
|
|
1867
|
+
users: array2(object2({ userId: string2().min(1), access: SessionShareAccessSchema })).max(500)
|
|
1868
|
+
});
|
|
1858
1869
|
SteerModeSchema = _enum2(["steer", "queue"]);
|
|
1859
1870
|
SteeringStatusSchema = _enum2([
|
|
1860
1871
|
"pending",
|
|
@@ -2170,6 +2181,7 @@ var init_types = __esm(() => {
|
|
|
2170
2181
|
dismissedAt: string2().optional(),
|
|
2171
2182
|
doneAt: string2().optional(),
|
|
2172
2183
|
readAt: string2().optional(),
|
|
2184
|
+
lastReadAt: string2().optional(),
|
|
2173
2185
|
createdAt: string2(),
|
|
2174
2186
|
lastUpdatedAt: string2()
|
|
2175
2187
|
}).openapi("InboxItemState");
|
|
@@ -3631,4 +3643,4 @@ var init_types = __esm(() => {
|
|
|
3631
3643
|
}).openapi("KvEntry");
|
|
3632
3644
|
});
|
|
3633
3645
|
|
|
3634
|
-
export { normalizeAssetKey, defaultAssetKey, parseAssetKey, isCanonicalAssetKey, canWriteAssetKey, init_key, isSafeBundlePath, init_bundle_path, $OpenAPIRegistry, $OpenApiGeneratorV31, init_dist, init_zod_openapi, AssetKeySchema, AssetEntityTypeSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, DEFAULT_MODEL_TIER_MAP, parseModelTier, splitLegacyModelAlias, parseWorkerModelTierOverrides, resolveTaskModelSelection, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, isTerminalTaskStatus, AgentTaskSourceSchema, RoutingReasonSchema, ProviderNameSchema, ModelProfileNameSchema, ModelProfileSchema, SteerModeSchema, SteeringSourceSchema, SteeringMessageSchema, SteerOutcomeSchema, OnUnsupportedSchema, SteerResultSchema, PROVIDER_STEER_CAPABILITIES, FollowUpConfigSchema, RoutingAffinitySchema, AgentTaskSchema, CreateTaskOptionsSchema, SERVER_GENERATED_ATTACHMENT_CAPABILITY, AttachmentInputSchema, TaskAttachmentSchema, UserSchema, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, 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, 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, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, 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_types };
|
|
3646
|
+
export { normalizeAssetKey, defaultAssetKey, parseAssetKey, isCanonicalAssetKey, canWriteAssetKey, init_key, isSafeBundlePath, init_bundle_path, $OpenAPIRegistry, $OpenApiGeneratorV31, init_dist, init_zod_openapi, AssetKeySchema, AssetEntityTypeSchema, AssetKeyMappingSchema, AssetSummarySchema, ModelTierSchema, MODEL_TIERS, ReasoningEffortSchema, DEFAULT_MODEL_TIER_MAP, parseModelTier, splitLegacyModelAlias, parseWorkerModelTierOverrides, resolveTaskModelSelection, AgentTaskStatusSchema, TERMINAL_TASK_STATUSES, isTerminalTaskStatus, 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, UserCommsPrefsSchema, InboxItemTypeSchema, InboxItemStatusSchema, InboxItemStateSchema, FavoriteItemTypeSchema, UserFavoriteSchema, TaskTemplateKindSchema, TaskTemplateSchema, AgentStatusSchema, AgentAvatarSchema, 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, 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, PromptTemplateScopeSchema, PromptTemplateStateSchema, PromptTemplateSchema, PromptTemplateHistorySchema, ScriptScopeSchema, ScriptFsModeSchema, 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_types };
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
getMostRecentTaskInThread2,
|
|
11
11
|
reactionName,
|
|
12
12
|
init_db3
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-rg7ntypm.js";
|
|
14
14
|
import {
|
|
15
15
|
TaskCreationBlockedError,
|
|
16
16
|
buildEffectiveText,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
extractTaskFromMessage,
|
|
24
24
|
extractSlackMessageText,
|
|
25
25
|
dispatchPre2
|
|
26
|
-
} from "./cli-
|
|
26
|
+
} from "./cli-x719j3vs.js";
|
|
27
27
|
import {
|
|
28
28
|
noteSlackInboundSideEffect,
|
|
29
29
|
ignoreSlackInbound,
|
|
@@ -34,14 +34,14 @@ import {
|
|
|
34
34
|
isSlackRenderV2Enabled2,
|
|
35
35
|
ensureSlackThreadTree2,
|
|
36
36
|
registerTreeMessage
|
|
37
|
-
} from "./cli-
|
|
37
|
+
} from "./cli-4fhyq711.js";
|
|
38
38
|
import {
|
|
39
39
|
isBlockExternalEnabled2,
|
|
40
40
|
invalidateChannelExternality2,
|
|
41
41
|
getChannelBlockReason2,
|
|
42
42
|
shouldBlockChannel2,
|
|
43
43
|
leaveExternalChannel2
|
|
44
|
-
} from "./cli-
|
|
44
|
+
} from "./cli-xfe63zx3.js";
|
|
45
45
|
import {
|
|
46
46
|
workflowEventBus2,
|
|
47
47
|
init_event_bus
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
enrichSlackUserEmail,
|
|
51
51
|
resolveSlackUserId,
|
|
52
52
|
rewriteSlackMentions
|
|
53
|
-
} from "./cli-
|
|
53
|
+
} from "./cli-x1p5dhq2.js";
|
|
54
54
|
import {
|
|
55
55
|
wasEventSeen,
|
|
56
56
|
requestSlackThreadSteering,
|
|
@@ -58,11 +58,11 @@ import {
|
|
|
58
58
|
bufferThreadMessage,
|
|
59
59
|
getBufferMessageCount,
|
|
60
60
|
instantFlush
|
|
61
|
-
} from "./cli-
|
|
61
|
+
} from "./cli-1cevz46c.js";
|
|
62
62
|
import {
|
|
63
63
|
resolveTemplate,
|
|
64
64
|
init_resolver
|
|
65
|
-
} from "./cli-
|
|
65
|
+
} from "./cli-tx00c0h6.js";
|
|
66
66
|
import {
|
|
67
67
|
init_zod
|
|
68
68
|
} from "./cli-4chz1hye.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
} from "./cli-vjfpshn3.js";
|
|
20
20
|
import {
|
|
21
21
|
summarizeSession
|
|
22
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-sppc0cmw.js";
|
|
23
23
|
import {
|
|
24
24
|
swarmRuntimeInstanceId
|
|
25
25
|
} from "./cli-7a91w22y.js";
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
DEFAULT_MODEL_TIER_MAP,
|
|
54
54
|
init_types
|
|
55
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-a1esmmee.js";
|
|
56
56
|
import {
|
|
57
57
|
runtimeCatalogModel,
|
|
58
58
|
init_runtime_model_catalog
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
import {
|
|
61
61
|
init_package,
|
|
62
62
|
package_default
|
|
63
|
-
} from "./cli-
|
|
63
|
+
} from "./cli-mz1ezzzh.js";
|
|
64
64
|
import {
|
|
65
65
|
isEnvFlagEnabled,
|
|
66
66
|
init_env_flag
|