@desplega.ai/agent-swarm 2.7.2 → 2.7.3
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 +6 -0
- package/dist/{acp-adapter-624yge7a.js → acp-adapter-pdzw76ja.js} +1 -1
- package/dist/{actions-rd9xn281.js → actions-a90cfpca.js} +21 -21
- package/dist/{amp-adapter-k27hc00p.js → amp-adapter-4vtywcjk.js} +2 -2
- package/dist/{app-sjm3xc7g.js → app-8k68gygk.js} +3 -3
- package/dist/{assistant-6jbzs8wa.js → assistant-ck01q2yg.js} +32 -21
- package/dist/{boot-reembed-e2348eqc.js → boot-reembed-33spavpd.js} +1 -1
- package/dist/{boot-reembed-w53pd5xt.js → boot-reembed-xzge83a2.js} +1 -1
- package/dist/{boot-scrub-sweep-cpy4yg97.js → boot-scrub-sweep-mxvb8dr3.js} +3 -3
- package/dist/{boot-seeds-f6j4t6k6.js → boot-seeds-rpm8bb5r.js} +4 -4
- package/dist/{claude-adapter-v3ac8esd.js → claude-adapter-q12bcfj9.js} +3 -3
- package/dist/{claude-managed-setup-yyrkqvtm.js → claude-managed-setup-11vb6q89.js} +1 -1
- package/dist/{claude-sdk-session-85j69v6d.js → claude-sdk-session-gkv1107j.js} +10325 -10243
- package/dist/{cli-rs59z1qx.js → cli-07pcqwaj.js} +1 -1
- package/dist/{cli-6vq3ymqm.js → cli-0tkm519n.js} +1 -1
- package/dist/{cli-s7cm1927.js → cli-0xzbk52h.js} +4 -4
- package/dist/{cli-g0zc1b40.js → cli-0zae6bs6.js} +2 -2
- package/dist/{cli-p8yrsmfn.js → cli-10kjx0dm.js} +1 -1
- package/dist/{cli-7xsq63pe.js → cli-157ykn37.js} +10 -9
- package/dist/{cli-vjcj9k2p.js → cli-2h0rfmqk.js} +1 -1
- package/dist/{cli-9wasax9f.js → cli-35nzvqaf.js} +1 -1
- package/dist/{cli-e1p7dqe1.js → cli-4aydmmdy.js} +24 -3
- package/dist/{cli-942pp3bc.js → cli-54ax65rn.js} +3 -3
- package/dist/{cli-10cp92df.js → cli-5ke7gxwr.js} +6 -6
- package/dist/{cli-femw4q81.js → cli-6151a7dr.js} +2 -2
- package/dist/{cli-3cywb44q.js → cli-77eq8txs.js} +85 -3
- package/dist/{cli-atpfk4yd.js → cli-7cwrwb5x.js} +5 -5
- package/dist/{cli-bfbpvccx.js → cli-8a1k6mat.js} +61 -49
- package/dist/{cli-c18941tx.js → cli-8ch3b2r7.js} +3 -3
- package/dist/{cli-rs2s1t05.js → cli-9fk56y8c.js} +4 -4
- package/dist/{cli-0wx63vvw.js → cli-9km88w11.js} +1 -1
- package/dist/{cli-qy0z3mfj.js → cli-9vttw9nz.js} +56 -46
- package/dist/{cli-mzgppb7q.js → cli-a0w50zw9.js} +4 -4
- package/dist/{cli-z8a4mfz1.js → cli-aqp59jmv.js} +4 -4
- package/dist/{cli-5d8wd50e.js → cli-bs0fwb23.js} +1 -1
- package/dist/{cli-fa4kxxx3.js → cli-ct5920jb.js} +2 -2
- package/dist/{cli-0awbtmv2.js → cli-dek8hqjc.js} +10 -10
- package/dist/{cli-qp6adcmw.js → cli-e24w2mvk.js} +1 -1
- package/dist/{cli-t3npd8hm.js → cli-ghfhn1qc.js} +1 -1
- package/dist/{cli-jmcf8cnz.js → cli-ja369zab.js} +1 -1
- package/dist/{cli-wtjg6je3.js → cli-jhh7tbx6.js} +1 -1
- package/dist/{cli-e19bgatr.js → cli-jmk31131.js} +2 -2
- package/dist/{cli-2cj8fqv1.js → cli-kjcdzea8.js} +1 -1
- package/dist/{cli-1xpr5992.js → cli-kjha1q9k.js} +3 -3
- package/dist/{cli-9jfty8px.js → cli-ktcdczth.js} +538 -30
- package/dist/{cli-exd52qn4.js → cli-mcmpbpcc.js} +2 -2
- package/dist/{cli-2m2p3snc.js → cli-mmf43vcp.js} +6 -6
- package/dist/{cli-b2rhbaty.js → cli-pnm99spe.js} +10 -10
- package/dist/{cli-9jn9cj0q.js → cli-v9jk2k63.js} +1 -1
- package/dist/{cli-mt7bxjfd.js → cli-vhgcwppn.js} +1 -1
- package/dist/{cli-qa4hgda3.js → cli-vvz64zc5.js} +14 -13
- package/dist/{cli-txr0z97c.js → cli-wmhajw68.js} +171 -32
- package/dist/{cli-hzrmv8pg.js → cli-x38rmhap.js} +3 -3
- package/dist/{cli-hq9hd4hp.js → cli-xz6qjdqj.js} +1 -1
- package/dist/{cli-g9ypd5en.js → cli-z52gq55b.js} +4 -0
- package/dist/{cli-2qbmjfta.js → cli-z6219sd3.js} +4 -4
- package/dist/cli.js +19 -19
- package/dist/{codex-adapter-zm1bkdde.js → codex-adapter-46kbvvkx.js} +1 -1
- package/dist/{codex-hook-tkag7fxq.js → codex-hook-tm9ecrd5.js} +1 -1
- package/dist/{codex-session-runner-8k02mqw2.js → codex-session-runner-qy93hdrv.js} +1 -1
- package/dist/{commands-nw1dn4av.js → commands-hwdhacfx.js} +2 -2
- package/dist/{controller-3kkkmps0.js → controller-hjza5p1f.js} +3 -3
- package/dist/{controllers-connect-n2c4167r.js → controllers-connect-7m25cay2.js} +20 -20
- package/dist/{cursor-adapter-h5028emw.js → cursor-adapter-1qh7ps8w.js} +1 -1
- package/dist/{db-76y2msnf.js → db-w23k9301.js} +2 -2
- package/dist/{db-8rk0p8j1.js → db-wm8by383.js} +3 -3
- package/dist/{dispatcher-xp4wsx30.js → dispatcher-en25ebgc.js} +18 -18
- package/dist/{dsh-adapter-vyrr31bn.js → dsh-adapter-zkme32vd.js} +1 -1
- package/dist/{e2b-eesfj689.js → e2b-9z9mvt2p.js} +1 -1
- package/dist/{e2b-03nha1wz.js → e2b-yhvn70es.js} +1 -1
- package/dist/{embedding-space-ejefyep1.js → embedding-space-rgf4aypt.js} +6 -6
- package/dist/{embeddings-w297xaw0.js → embeddings-z9cmxhx1.js} +1 -1
- package/dist/{external-channel-mf9vp1fe.js → external-channel-g6vv85zv.js} +2 -2
- package/dist/{grok-adapter-mpzyyprz.js → grok-adapter-f6n1tpq3.js} +2 -2
- package/dist/handlers-ss5948rq.js +42 -0
- package/dist/{heartbeat-qnaycjzs.js → heartbeat-5xcdzz45.js} +21 -21
- package/dist/{hook-h6sqfzxr.js → hook-6423rme3.js} +2 -2
- package/dist/{hook-4zqdgea4.js → hook-8dk1csdd.js} +4 -4
- package/dist/{http-65ts210h.js → http-6mfh2ww9.js} +255 -60
- package/dist/{index-sqe7f6mj.js → index-0js6bgff.js} +1 -1
- package/dist/{index-farm1zsn.js → index-0ng1dd1t.js} +10937 -9527
- package/dist/{index-k3ewf1jg.js → index-5eyn1wc5.js} +18 -18
- package/dist/{index-vp4wa3qn.js → index-71gnebsn.js} +18 -18
- package/dist/{index-hdfad00b.js → index-q5gzpjdd.js} +12 -10
- package/dist/index-z3b1vfjx.js +44 -0
- package/dist/{keepalive-52k6skha.js → keepalive-cymckeg6.js} +3 -3
- package/dist/{lead-y9rj0gr1.js → lead-baknj2dh.js} +29 -29
- package/dist/{maintenance-f86wqfq6.js → maintenance-dfrnsx3n.js} +1 -1
- package/dist/{oauth-refresh-sweep-vddv9ky7.js → oauth-refresh-sweep-5dztk8x6.js} +2 -2
- package/dist/{onboard-8z2qk6gq.js → onboard-h36vja6y.js} +11 -6
- package/dist/{otel-impl-epet9j18.js → otel-impl-jerq8vz8.js} +1 -1
- package/dist/{pricing-refresh-6wm42a51.js → pricing-refresh-t3nx5krn.js} +3 -3
- package/dist/{rbac-roles-2kfcs1sc.js → rbac-roles-dw1awawd.js} +2 -2
- package/dist/{rbac-roles-13a0vj6d.js → rbac-roles-km0fc3e8.js} +1 -1
- package/dist/{registry-ajhexe44.js → registry-hzfh268v.js} +1 -1
- package/dist/{render-v2-cy8zsfsf.js → render-v2-65x4ayj8.js} +3 -3
- package/dist/{resume-c783qe6b.js → resume-61znk3hj.js} +6 -6
- package/dist/{session-access-s4tv0az8.js → session-access-4yc9htrg.js} +4 -4
- package/dist/{session-source-backfill-qzapz0ne.js → session-source-backfill-kr5bdjtp.js} +2 -2
- package/dist/{setup-st7htx1k.js → setup-9h61yr2p.js} +1 -1
- package/dist/{work-objects-ftj4zw70.js → work-objects-x7rb53qn.js} +27 -22
- package/dist/{worker-859fk25k.js → worker-7f3khgn0.js} +29 -29
- package/openapi.json +134 -3
- package/package.json +5 -5
- package/src/be/db/agents.ts +16 -1
- package/src/be/db/runtime.ts +25 -15
- package/src/be/db/session-summaries.ts +120 -0
- package/src/be/db/tasks/read.ts +7 -4
- package/src/be/db/tasks/search-index.ts +159 -0
- package/src/be/db/tasks/write.ts +3 -0
- package/src/be/db-queries/slack-inbound.ts +77 -0
- package/src/be/db.ts +27 -8
- package/src/be/mcp-overflow-sweep.ts +39 -0
- package/src/be/migrations/253_session_summaries.sql +300 -0
- package/src/be/migrations/254_query_audit_indexes.sql +25 -0
- package/src/be/migrations/256_agent_slack_icon.sql +2 -0
- package/src/be/migrations/257_agent_tasks_fts.sql +55 -0
- package/src/comb/config.ts +6 -2
- package/src/comb/requester.ts +69 -0
- package/src/comb/review-batch.ts +24 -2
- package/src/commands/onboard/agent-fs-version.ts +1 -1
- package/src/commands/onboard/compose-generator.ts +7 -2
- package/src/commands/onboard/env-generator.ts +8 -3
- package/src/commands/runner.ts +41 -24
- package/src/fs/agent-fs-provider.ts +9 -0
- package/src/heartbeat/heartbeat.ts +13 -6
- package/src/http/agents.ts +10 -2
- package/src/http/index.ts +15 -0
- package/src/http/integrations.ts +20 -0
- package/src/http/list-total-cache.ts +62 -0
- package/src/http/sessions.ts +9 -2
- package/src/http/slack-inbound.ts +1 -0
- package/src/http/status.ts +4 -1
- package/src/http/tasks.ts +12 -2
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/cursor-adapter.ts +1 -1
- package/src/providers/dsh-adapter.ts +1 -1
- package/src/queue-stall-alarm.ts +4 -1
- package/src/slack/actions.ts +2 -2
- package/src/slack/app-icon.ts +50 -0
- package/src/slack/app.ts +13 -1
- package/src/slack/assistant.ts +22 -1
- package/src/slack/event-dedup.test.ts +11 -0
- package/src/slack/event-dedup.ts +8 -4
- package/src/slack/inbound-dispatch.ts +58 -0
- package/src/slack/render-v2.ts +7 -8
- package/src/slack/responses.ts +21 -8
- package/src/slack/socket-ack.ts +237 -0
- package/src/slack/thread-buffer.ts +3 -5
- package/src/slack/watcher.ts +2 -2
- package/src/slack/work-objects.ts +5 -1
- package/src/tests/agent-fs-release-notes.test.ts +40 -0
- package/src/tests/agent-slack-icon.test.ts +85 -0
- package/src/tests/approval-cancellation-migration.test.ts +2 -0
- package/src/tests/asset-key-migration.test.ts +26 -0
- package/src/tests/comb-default.test.ts +159 -0
- package/src/tests/comb-review-batch.test.ts +192 -4
- package/src/tests/comb-status.test.ts +65 -2
- package/src/tests/db-agents.test.ts +13 -0
- package/src/tests/db-tasks-read.test.ts +10 -15
- package/src/tests/deploy-one-box.test.ts +161 -0
- package/src/tests/deploy-stubs.ts +68 -0
- package/src/tests/docs-index-footprint.test.js +3 -3
- package/src/tests/dsh-adapter.test.ts +1 -1
- package/src/tests/e2e-codex-auth-chain.test.ts +18 -1
- package/src/tests/fixtures/deploy-stubs/bun +3 -0
- package/src/tests/fixtures/deploy-stubs/bunx +27 -0
- package/src/tests/fixtures/deploy-stubs/curl +26 -0
- package/src/tests/fixtures/deploy-stubs/docker +122 -0
- package/src/tests/fixtures/onboard/content.compose.yml.txt +5 -5
- package/src/tests/fixtures/onboard/dev.compose.yml.txt +4 -4
- package/src/tests/fixtures/onboard/full-all.compose.yml.txt +12 -12
- package/src/tests/fixtures/onboard/full.compose.yml.txt +12 -12
- package/src/tests/fixtures/onboard/research.compose.yml.txt +4 -4
- package/src/tests/fixtures/onboard/solo.compose.yml.txt +2 -2
- package/src/tests/heartbeat-expiry.test.ts +151 -25
- package/src/tests/http-api-integration.test.ts +31 -0
- package/src/tests/human-free-reclassify.test.ts +6 -0
- package/src/tests/install-sh-bind.test.ts +242 -0
- package/src/tests/install-sh-tunnel.test.ts +89 -0
- package/src/tests/kv-storage.test.ts +28 -0
- package/src/tests/list-endpoint-slimming.test.ts +3 -0
- package/src/tests/list-total-cache.test.ts +63 -0
- package/src/tests/mcp-overflow-sweep.test.ts +84 -0
- package/src/tests/onboard-compose.test.ts +17 -3
- package/src/tests/onboard-env.test.ts +13 -0
- package/src/tests/onboarding.test.ts +1 -1
- package/src/tests/preload.ts +1 -0
- package/src/tests/query-audit-plans.test.ts +314 -0
- package/src/tests/script-connections.test.ts +6 -0
- package/src/tests/session-summaries.test.ts +384 -0
- package/src/tests/sessions-tree.test.ts +5 -1
- package/src/tests/slack-app-icon.test.ts +90 -0
- package/src/tests/slack-external-channel-egress.test.ts +1 -1
- package/src/tests/slack-inbound-receipts.test.ts +34 -0
- package/src/tests/slack-inline-output.test.ts +29 -2
- package/src/tests/slack-render-v2-query-plans.test.ts +3 -2
- package/src/tests/slack-render-v2.test.ts +35 -0
- package/src/tests/slack-socket-ack.test.ts +553 -0
- package/src/tests/task-lineage.test.ts +3 -0
- package/src/tests/task-search-filter.test.ts +4 -4
- package/src/tests/task-search-fts.test.ts +320 -0
- package/src/tests/update-profile-auth.test.ts +28 -0
- package/src/tools/get-swarm.ts +1 -0
- package/src/tools/get-tasks.ts +6 -1
- package/src/tools/join-swarm.ts +1 -0
- package/src/tools/my-agent-info.ts +1 -0
- package/src/tools/slack-post.ts +2 -2
- package/src/tools/slack-reply.ts +2 -2
- package/src/tools/slack-start-thread.ts +2 -2
- package/src/tools/slack-update.ts +1 -1
- package/src/tools/update-profile.ts +20 -4
- package/src/tools/utils.ts +3 -4
- package/src/types.ts +47 -0
- package/src/utils/constants.ts +127 -5
- package/templates/official/lead/HEARTBEAT.md +4 -2
- package/templates/official/lead/config.json +2 -2
- package/templates/skills/swarm-docs/content.md +2 -0
- package/dist/handlers-7x8sywgr.js +0 -42
- package/dist/index-mc30r1hs.js +0 -44
|
@@ -340,7 +340,6 @@ import {
|
|
|
340
340
|
setBudgetRefusalFollowUpTaskId2,
|
|
341
341
|
getSwarmMetrics2,
|
|
342
342
|
getKv2,
|
|
343
|
-
sweepExpiredKvPrefix2,
|
|
344
343
|
upsertKv2,
|
|
345
344
|
claimKv2,
|
|
346
345
|
deleteKv2,
|
|
@@ -352,19 +351,19 @@ import {
|
|
|
352
351
|
recordInlineScriptRun2,
|
|
353
352
|
exports_db,
|
|
354
353
|
init_db3
|
|
355
|
-
} from "./cli-
|
|
354
|
+
} from "./cli-wmhajw68.js";
|
|
356
355
|
import {
|
|
357
356
|
getUserGrant2,
|
|
358
357
|
init_rbac_roles
|
|
359
|
-
} from "./cli-
|
|
358
|
+
} from "./cli-ja369zab.js";
|
|
360
359
|
import {
|
|
361
360
|
ensurePricingSeeded2,
|
|
362
361
|
ensureRbacSeeded2,
|
|
363
362
|
ensureModelProfilesSeeded2
|
|
364
|
-
} from "./cli-
|
|
363
|
+
} from "./cli-a0w50zw9.js";
|
|
365
364
|
import {
|
|
366
365
|
loadModelsDevCache
|
|
367
|
-
} from "./cli-
|
|
366
|
+
} from "./cli-10kjx0dm.js";
|
|
368
367
|
import {
|
|
369
368
|
buildCatalogEntries,
|
|
370
369
|
listModelCatalog,
|
|
@@ -374,12 +373,12 @@ import {
|
|
|
374
373
|
loadModelsCatalog,
|
|
375
374
|
requestModelCatalogRefresh2,
|
|
376
375
|
startPricingRefreshLoop2
|
|
377
|
-
} from "./cli-
|
|
376
|
+
} from "./cli-jmk31131.js";
|
|
378
377
|
import {
|
|
379
378
|
ampPinProviderError,
|
|
380
379
|
ampPinCatalogError,
|
|
381
380
|
ampModelError
|
|
382
|
-
} from "./cli-
|
|
381
|
+
} from "./cli-e24w2mvk.js";
|
|
383
382
|
import {
|
|
384
383
|
workflowEventBus2,
|
|
385
384
|
init_event_bus
|
|
@@ -448,7 +447,7 @@ import {
|
|
|
448
447
|
definitionNodeIds,
|
|
449
448
|
validateDefinition,
|
|
450
449
|
applyDefinitionPatch
|
|
451
|
-
} from "./cli-
|
|
450
|
+
} from "./cli-pnm99spe.js";
|
|
452
451
|
import {
|
|
453
452
|
require_dist2,
|
|
454
453
|
ConnectionAuthInputSchema,
|
|
@@ -507,14 +506,14 @@ import {
|
|
|
507
506
|
deleteApp,
|
|
508
507
|
typecheckScript,
|
|
509
508
|
parseSkillContent
|
|
510
|
-
} from "./cli-
|
|
509
|
+
} from "./cli-5ke7gxwr.js";
|
|
511
510
|
import {
|
|
512
511
|
buildAuthorizationUrl,
|
|
513
512
|
onAuthorizationRefreshed,
|
|
514
513
|
ensureAuthorizationTokenOrThrow,
|
|
515
514
|
ensureToken,
|
|
516
515
|
ensureTokenOrThrow
|
|
517
|
-
} from "./cli-
|
|
516
|
+
} from "./cli-ghfhn1qc.js";
|
|
518
517
|
import {
|
|
519
518
|
detachedProcessGroup,
|
|
520
519
|
registerProcessGroup,
|
|
@@ -544,18 +543,18 @@ import {
|
|
|
544
543
|
hasTaskCitationCheckRefusal,
|
|
545
544
|
ensure,
|
|
546
545
|
getAgentDisplayName,
|
|
547
|
-
|
|
546
|
+
getAgentSlackIcon,
|
|
548
547
|
getSlackApp2,
|
|
549
548
|
startSlackApp2,
|
|
550
549
|
stopSlackApp2
|
|
551
|
-
} from "./cli-
|
|
550
|
+
} from "./cli-ktcdczth.js";
|
|
552
551
|
import {
|
|
553
552
|
slackCode,
|
|
554
553
|
slackMissingScopeMessage,
|
|
555
554
|
withAutoJoin,
|
|
556
555
|
externalChannelToolError2,
|
|
557
556
|
getChannelBlockReason2
|
|
558
|
-
} from "./cli-
|
|
557
|
+
} from "./cli-0tkm519n.js";
|
|
559
558
|
import {
|
|
560
559
|
shapeApprovalResolution,
|
|
561
560
|
SubWorkflowExecutor,
|
|
@@ -574,7 +573,7 @@ import {
|
|
|
574
573
|
recoverResolvedWaitState2,
|
|
575
574
|
resumeFromChildRun2,
|
|
576
575
|
initWaitBusSubscriptions2
|
|
577
|
-
} from "./cli-
|
|
576
|
+
} from "./cli-kjha1q9k.js";
|
|
578
577
|
import {
|
|
579
578
|
duplicateGuardedQueryKey,
|
|
580
579
|
parseQueryParams,
|
|
@@ -601,18 +600,18 @@ import {
|
|
|
601
600
|
isPublicRoute,
|
|
602
601
|
findRoute,
|
|
603
602
|
route
|
|
604
|
-
} from "./cli-
|
|
603
|
+
} from "./cli-0xzbk52h.js";
|
|
605
604
|
import {
|
|
606
605
|
FilesError,
|
|
607
606
|
providerPath,
|
|
608
607
|
normalizeStoredKey,
|
|
609
608
|
AgentFsProvider,
|
|
610
609
|
getFileStorageProvider2
|
|
611
|
-
} from "./cli-
|
|
610
|
+
} from "./cli-z52gq55b.js";
|
|
612
611
|
import {
|
|
613
612
|
getRuntimePool2,
|
|
614
613
|
init_db
|
|
615
|
-
} from "./cli-
|
|
614
|
+
} from "./cli-z6219sd3.js";
|
|
616
615
|
import {
|
|
617
616
|
getMemoryRaterNames,
|
|
618
617
|
REFERENCES_SOURCE_MAX_LENGTH,
|
|
@@ -641,7 +640,7 @@ import {
|
|
|
641
640
|
import {
|
|
642
641
|
canProvisionKind,
|
|
643
642
|
init_runtime_providers
|
|
644
|
-
} from "./cli-
|
|
643
|
+
} from "./cli-vhgcwppn.js";
|
|
645
644
|
import {
|
|
646
645
|
findUserById,
|
|
647
646
|
findUserByExternalId,
|
|
@@ -656,7 +655,7 @@ import {
|
|
|
656
655
|
resolveSessionToken,
|
|
657
656
|
fingerprintApiKey,
|
|
658
657
|
init_users
|
|
659
|
-
} from "./cli-
|
|
658
|
+
} from "./cli-v9jk2k63.js";
|
|
660
659
|
import {
|
|
661
660
|
isRbacEnabled,
|
|
662
661
|
decideAdmission,
|
|
@@ -669,7 +668,7 @@ import {
|
|
|
669
668
|
import {
|
|
670
669
|
publicEndpointSsrfOptions,
|
|
671
670
|
init_mcp_wrapper
|
|
672
|
-
} from "./cli-
|
|
671
|
+
} from "./cli-kjcdzea8.js";
|
|
673
672
|
import {
|
|
674
673
|
normalizeAssetKey,
|
|
675
674
|
sessionGroupKey,
|
|
@@ -701,6 +700,7 @@ import {
|
|
|
701
700
|
AttachmentInputSchema,
|
|
702
701
|
AgentStatusSchema,
|
|
703
702
|
AgentAvatarSchema,
|
|
703
|
+
AgentSlackIconSchema,
|
|
704
704
|
ChannelTypeSchema,
|
|
705
705
|
ScheduledTaskTargetTypeSchema,
|
|
706
706
|
SwarmConfigScopeSchema,
|
|
@@ -730,7 +730,7 @@ import {
|
|
|
730
730
|
KvNamespaceSchema,
|
|
731
731
|
KvKeySchema,
|
|
732
732
|
init_types2
|
|
733
|
-
} from "./cli-
|
|
733
|
+
} from "./cli-4aydmmdy.js";
|
|
734
734
|
import {
|
|
735
735
|
generateDefaultClaudeMd2,
|
|
736
736
|
generateDefaultSoulMd2,
|
|
@@ -741,7 +741,7 @@ import {
|
|
|
741
741
|
init_task_attachment_links,
|
|
742
742
|
contentSha256,
|
|
743
743
|
init_profile_sync
|
|
744
|
-
} from "./cli-
|
|
744
|
+
} from "./cli-9km88w11.js";
|
|
745
745
|
import {
|
|
746
746
|
isSteeringEnabled2,
|
|
747
747
|
init_steering_enabled
|
|
@@ -805,7 +805,7 @@ import {
|
|
|
805
805
|
import {
|
|
806
806
|
init_package,
|
|
807
807
|
package_default
|
|
808
|
-
} from "./cli-
|
|
808
|
+
} from "./cli-7cwrwb5x.js";
|
|
809
809
|
import {
|
|
810
810
|
MAX_PROFILE_FILE_LENGTH,
|
|
811
811
|
getConfiguredAppUrls,
|
|
@@ -815,10 +815,10 @@ import {
|
|
|
815
815
|
getAgentFsLiveUrl,
|
|
816
816
|
getAgentFsDefaultOrgId,
|
|
817
817
|
getAgentFsDefaultDriveId,
|
|
818
|
-
|
|
818
|
+
getCombState,
|
|
819
819
|
isAgentFsProxyEnabled,
|
|
820
820
|
init_constants2
|
|
821
|
-
} from "./cli-
|
|
821
|
+
} from "./cli-77eq8txs.js";
|
|
822
822
|
import {
|
|
823
823
|
parseEnvFlag,
|
|
824
824
|
isEnvFlagEnabled,
|
|
@@ -20552,7 +20552,7 @@ function startRetryPoller(registry, intervalMs = 5000) {
|
|
|
20552
20552
|
if (!waiting)
|
|
20553
20553
|
continue;
|
|
20554
20554
|
if (result.waitFor === "workflow.child.finished") {
|
|
20555
|
-
const { resumeFromChildRun } = await import("./resume-
|
|
20555
|
+
const { resumeFromChildRun } = await import("./resume-61znk3hj.js");
|
|
20556
20556
|
await resumeFromChildRun(step.id, registry);
|
|
20557
20557
|
}
|
|
20558
20558
|
} else {
|
|
@@ -21236,7 +21236,7 @@ class NotifyExecutor extends BaseExecutor {
|
|
|
21236
21236
|
}
|
|
21237
21237
|
}
|
|
21238
21238
|
case "slack": {
|
|
21239
|
-
const { getSlackApp } = await import("./app-
|
|
21239
|
+
const { getSlackApp } = await import("./app-8k68gygk.js");
|
|
21240
21240
|
const app = getSlackApp();
|
|
21241
21241
|
if (!app) {
|
|
21242
21242
|
return {
|
|
@@ -24554,7 +24554,6 @@ var ctxControlMiddleware = async (result, ctx) => {
|
|
|
24554
24554
|
fullValueAt = `kv://${namespace}/${key}`;
|
|
24555
24555
|
retrieval = overflowRetrieval(namespace, key, shape);
|
|
24556
24556
|
const expiresAt = Date.now() + MCP_OVERFLOW_TTL_MS;
|
|
24557
|
-
await sweepExpiredKvPrefix2(MCP_OVERFLOW_NAMESPACE);
|
|
24558
24557
|
await upsertKv2({
|
|
24559
24558
|
namespace,
|
|
24560
24559
|
key,
|
|
@@ -24625,7 +24624,7 @@ function setPreloadedTools(server, names) {
|
|
|
24625
24624
|
async function applyPreToolCall(name, args, requestInfo, inputSchema) {
|
|
24626
24625
|
if (requestInfo.callOrigin !== "mcp")
|
|
24627
24626
|
return { args };
|
|
24628
|
-
const dispatcher = await import("./dispatcher-
|
|
24627
|
+
const dispatcher = await import("./dispatcher-en25ebgc.js");
|
|
24629
24628
|
const result = await dispatcher.dispatchPre("pre.tool.call", { tool: name, args, requestInfo }, inputSchema ? {
|
|
24630
24629
|
validateModify: async (data) => {
|
|
24631
24630
|
const schema = normalizeObjectSchema(inputSchema) ?? inputSchema;
|
|
@@ -35109,7 +35108,7 @@ async function notifySlack(text) {
|
|
|
35109
35108
|
return;
|
|
35110
35109
|
}
|
|
35111
35110
|
try {
|
|
35112
|
-
const { getSlackApp } = await import("./app-
|
|
35111
|
+
const { getSlackApp } = await import("./app-8k68gygk.js");
|
|
35113
35112
|
const app = getSlackApp();
|
|
35114
35113
|
if (!app) {
|
|
35115
35114
|
console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
|
|
@@ -35180,7 +35179,7 @@ async function deleteJiraWebhook(webhookId) {
|
|
|
35180
35179
|
console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
|
|
35181
35180
|
}
|
|
35182
35181
|
async function overwriteWebhookIds(next) {
|
|
35183
|
-
const { getDbClient } = await import("./db-
|
|
35182
|
+
const { getDbClient } = await import("./db-w23k9301.js");
|
|
35184
35183
|
await getDbClient().transaction(async (tx) => {
|
|
35185
35184
|
const row = await tx.get("SELECT metadata FROM oauth_apps WHERE provider = 'jira'");
|
|
35186
35185
|
if (!row) {
|
|
@@ -108579,14 +108578,14 @@ async function reloadGlobalConfigsAndIntegrations() {
|
|
|
108579
108578
|
return runWithoutRequestAuth(() => reloadGlobalConfigsAndIntegrationsInner());
|
|
108580
108579
|
}
|
|
108581
108580
|
async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
108582
|
-
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-
|
|
108581
|
+
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-0js6bgff.js");
|
|
108583
108582
|
const wasEmbeddingsConfigured = getEmbeddingProvider().isConfigured();
|
|
108584
108583
|
const updated = await loadGlobalConfigsIntoEnv(true);
|
|
108585
108584
|
await syncTelemetryEnabled("settings").catch((err) => {
|
|
108586
108585
|
console.error("[config-reload] telemetry re-init failed (non-fatal):", err);
|
|
108587
108586
|
});
|
|
108588
108587
|
await stopSlackApp2();
|
|
108589
|
-
const { resetFileStorageProvider } = await import("./registry-
|
|
108588
|
+
const { resetFileStorageProvider } = await import("./registry-hzfh268v.js");
|
|
108590
108589
|
resetFileStorageProvider();
|
|
108591
108590
|
resetEmbeddingProvider();
|
|
108592
108591
|
const isEmbeddingsConfigured = getEmbeddingProvider().isConfigured();
|
|
@@ -108595,7 +108594,7 @@ async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
|
108595
108594
|
integrations.push("embeddings");
|
|
108596
108595
|
}
|
|
108597
108596
|
if (isEmbeddingsConfigured) {
|
|
108598
|
-
import("./embedding-space-
|
|
108597
|
+
import("./embedding-space-rgf4aypt.js").then(({ runEmbeddingMaintenance }) => runEmbeddingMaintenance({ backfill: !wasEmbeddingsConfigured })).catch((err) => {
|
|
108599
108598
|
console.error("[config-reload] embedding maintenance failed (non-fatal):", err);
|
|
108600
108599
|
});
|
|
108601
108600
|
}
|
|
@@ -118253,6 +118252,7 @@ var agentOutputShape = looseObject({
|
|
|
118253
118252
|
credentialMissing: array2(string2()).nullable().optional(),
|
|
118254
118253
|
credStatus: looseObject({}).nullable().optional(),
|
|
118255
118254
|
avatar: looseObject({}).nullable().optional(),
|
|
118255
|
+
slackIcon: looseObject({}).nullable().optional(),
|
|
118256
118256
|
createdAt: string2().optional(),
|
|
118257
118257
|
lastUpdatedAt: string2().optional()
|
|
118258
118258
|
});
|
|
@@ -118309,7 +118309,7 @@ var getTasksInputSchema = object2({
|
|
|
118309
118309
|
readyOnly: boolean().optional().describe("Only return tasks whose dependencies are met."),
|
|
118310
118310
|
taskType: string2().optional().describe("Filter by task type (e.g., 'bug', 'feature')."),
|
|
118311
118311
|
tags: array2(string2()).optional().describe("Filter by any matching tag."),
|
|
118312
|
-
search: string2().optional().describe("Search
|
|
118312
|
+
search: string2().optional().describe("Search task text and title by word or phrase, with a prefix match on the last word, or a task id by prefix. Not a substring match: '2443' does not find '12443', and '%' and '_' are not wildcards."),
|
|
118313
118313
|
scheduleId: string2().uuid().optional().describe("Filter by schedule ID to find tasks created by a specific schedule."),
|
|
118314
118314
|
workflowRunId: string2().uuid().optional().describe("Filter by workflow run ID to find the tasks of a single run."),
|
|
118315
118315
|
key: AssetKeySchema.optional().describe("Filter by exact logical namespace."),
|
|
@@ -118542,6 +118542,7 @@ var agentOutputShape2 = looseObject({
|
|
|
118542
118542
|
credentialMissing: array2(string2()).nullable().optional(),
|
|
118543
118543
|
credStatus: looseObject({}).nullable().optional(),
|
|
118544
118544
|
avatar: looseObject({}).nullable().optional(),
|
|
118545
|
+
slackIcon: looseObject({}).nullable().optional(),
|
|
118545
118546
|
createdAt: string2().optional(),
|
|
118546
118547
|
lastUpdatedAt: string2().optional()
|
|
118547
118548
|
});
|
|
@@ -120830,6 +120831,7 @@ var agentOutputShape3 = looseObject({
|
|
|
120830
120831
|
credentialMissing: array2(string2()).nullable().optional(),
|
|
120831
120832
|
credStatus: looseObject({}).nullable().optional(),
|
|
120832
120833
|
avatar: looseObject({}).nullable().optional(),
|
|
120834
|
+
slackIcon: looseObject({}).nullable().optional(),
|
|
120833
120835
|
createdAt: string2().optional(),
|
|
120834
120836
|
lastUpdatedAt: string2().optional()
|
|
120835
120837
|
});
|
|
@@ -122580,8 +122582,10 @@ function trimUrl(value) {
|
|
|
122580
122582
|
function getCombConfig() {
|
|
122581
122583
|
const internalUrl = trimUrl(process.env.AGENT_FS_API_URL);
|
|
122582
122584
|
const browserDefault = isAgentFsProxyEnabled() && internalUrl ? `${getPublicMcpBaseUrl()}/agentfs` : internalUrl;
|
|
122585
|
+
const state = getCombState();
|
|
122583
122586
|
return {
|
|
122584
|
-
enabled:
|
|
122587
|
+
enabled: state.enabled,
|
|
122588
|
+
reason: state.reason,
|
|
122585
122589
|
apiUrl: trimUrl(process.env.AGENT_FS_PUBLIC_URL) ?? browserDefault,
|
|
122586
122590
|
liveUrl: getAgentFsLiveUrl(),
|
|
122587
122591
|
orgId: getAgentFsDefaultOrgId() ?? null,
|
|
@@ -133741,7 +133745,7 @@ var registerSlackPostTool = (server) => {
|
|
|
133741
133745
|
unfurl_links: false,
|
|
133742
133746
|
unfurl_media: false,
|
|
133743
133747
|
username: getAgentDisplayName(agent),
|
|
133744
|
-
|
|
133748
|
+
...getAgentSlackIcon(agent),
|
|
133745
133749
|
...threadTs ? { thread_ts: threadTs } : {},
|
|
133746
133750
|
blocks: messageBlocks
|
|
133747
133751
|
}));
|
|
@@ -134120,7 +134124,7 @@ var registerSlackReplyTool = (server) => {
|
|
|
134120
134124
|
unfurl_links: false,
|
|
134121
134125
|
unfurl_media: false,
|
|
134122
134126
|
username: getAgentDisplayName(agent),
|
|
134123
|
-
|
|
134127
|
+
...getAgentSlackIcon(agent),
|
|
134124
134128
|
blocks: messageBlocks
|
|
134125
134129
|
}));
|
|
134126
134130
|
const messageTs = result.ts;
|
|
@@ -134210,7 +134214,7 @@ var registerSlackStartThreadTool = (server) => {
|
|
|
134210
134214
|
unfurl_links: false,
|
|
134211
134215
|
unfurl_media: false,
|
|
134212
134216
|
username: getAgentDisplayName(agent),
|
|
134213
|
-
|
|
134217
|
+
...getAgentSlackIcon(agent),
|
|
134214
134218
|
blocks: messageBlocks
|
|
134215
134219
|
}));
|
|
134216
134220
|
const ts = result.ts;
|
|
@@ -134249,7 +134253,7 @@ init_rbac();
|
|
|
134249
134253
|
var registerSlackUpdateTool = (server) => {
|
|
134250
134254
|
createToolRegistrar(server)("slack-update", {
|
|
134251
134255
|
title: "Edit a Slack message",
|
|
134252
|
-
description: "Edits (in place) the text of a Slack message that THIS bot authored — use it to post corrections to your own messages. Cannot edit messages authored by humans or other apps.
|
|
134256
|
+
description: "Edits (in place) the text of a Slack message that THIS bot authored — use it to post corrections to your own messages. Cannot edit messages authored by humans or other apps. Editing keeps the icon the message was posted with. Requires lead privileges.",
|
|
134253
134257
|
annotations: { openWorldHint: true },
|
|
134254
134258
|
inputSchema: object2({
|
|
134255
134259
|
channelId: string2().min(1).describe("The Slack channel ID the message is in."),
|
|
@@ -136469,6 +136473,7 @@ var agentOutputShape4 = looseObject({
|
|
|
136469
136473
|
credentialMissing: array2(string2()).nullable().optional(),
|
|
136470
136474
|
credStatus: looseObject({}).nullable().optional(),
|
|
136471
136475
|
avatar: looseObject({}).nullable().optional(),
|
|
136476
|
+
slackIcon: looseObject({}).nullable().optional(),
|
|
136472
136477
|
createdAt: string2().optional(),
|
|
136473
136478
|
lastUpdatedAt: string2().optional()
|
|
136474
136479
|
});
|
|
@@ -136524,7 +136529,8 @@ var registerUpdateProfileTool = (server) => {
|
|
|
136524
136529
|
setupScript: string2().max(MAX_PROFILE_FILE_LENGTH).optional().describe("Setup script content (bash). Runs at container start as the worker user after privilege drop. Persists across sessions. Also written to /workspace/start-up.sh."),
|
|
136525
136530
|
toolsMd: string2().max(MAX_PROFILE_FILE_LENGTH).optional().describe("Environment-specific operational knowledge. Synced to /workspace/TOOLS.md. Above 20,000 characters, updates may only keep or reduce the stored size; move durable overflow into memory."),
|
|
136526
136531
|
heartbeatMd: string2().max(MAX_PROFILE_FILE_LENGTH).optional().describe("Heartbeat checklist content (HEARTBEAT.md). Checked periodically — add standing orders for the lead to review. Synced to /workspace/HEARTBEAT.md."),
|
|
136527
|
-
avatar: AgentAvatarSchema.nullable().optional().describe("Custom avatar: { type: 'lucide', icon: '<kebab-case-lucide-name>', color?: '#RRGGBB' }. Pass null to reset to the default deterministic icon/color.")
|
|
136532
|
+
avatar: AgentAvatarSchema.nullable().optional().describe("Custom avatar: { type: 'lucide', icon: '<kebab-case-lucide-name>', color?: '#RRGGBB' }. Pass null to reset to the default deterministic icon/color."),
|
|
136533
|
+
slackIcon: AgentSlackIconSchema.nullable().optional().describe("Slack icon for this agent's messages: { type: 'emoji', emoji: ':owl:' } or { type: 'url', url: 'https://…' }, or { type: 'app' } for the Slack app's own icon. A link Slack cannot load falls back to the Slack app's icon. Pass null to reset to the default.")
|
|
136528
136534
|
}),
|
|
136529
136535
|
outputSchema: swarmToolOutputSchema({
|
|
136530
136536
|
yourAgentId: string2().optional(),
|
|
@@ -136542,7 +136548,8 @@ var registerUpdateProfileTool = (server) => {
|
|
|
136542
136548
|
setupScript,
|
|
136543
136549
|
toolsMd,
|
|
136544
136550
|
heartbeatMd,
|
|
136545
|
-
avatar
|
|
136551
|
+
avatar,
|
|
136552
|
+
slackIcon
|
|
136546
136553
|
}, requestInfo, _meta) => {
|
|
136547
136554
|
if (!requestInfo.agentId) {
|
|
136548
136555
|
return toolErr('Agent ID not found. Set the "X-Agent-ID" header.');
|
|
@@ -136572,8 +136579,8 @@ var registerUpdateProfileTool = (server) => {
|
|
|
136572
136579
|
});
|
|
136573
136580
|
}
|
|
136574
136581
|
}
|
|
136575
|
-
if (name === undefined && description === undefined && role === undefined && capabilities === undefined && claudeMd === undefined && soulMd === undefined && identityMd === undefined && setupScript === undefined && toolsMd === undefined && heartbeatMd === undefined && avatar === undefined) {
|
|
136576
|
-
return toolErr("At least one field (name, description, role, capabilities, claudeMd, soulMd, identityMd, setupScript, toolsMd, heartbeatMd, or
|
|
136582
|
+
if (name === undefined && description === undefined && role === undefined && capabilities === undefined && claudeMd === undefined && soulMd === undefined && identityMd === undefined && setupScript === undefined && toolsMd === undefined && heartbeatMd === undefined && avatar === undefined && slackIcon === undefined) {
|
|
136583
|
+
return toolErr("At least one field (name, description, role, capabilities, claudeMd, soulMd, identityMd, setupScript, toolsMd, heartbeatMd, avatar, or slackIcon) must be provided.", { data: { yourAgentId: requestInfo.agentId } });
|
|
136577
136584
|
}
|
|
136578
136585
|
try {
|
|
136579
136586
|
let agent = null;
|
|
@@ -136597,7 +136604,8 @@ var registerUpdateProfileTool = (server) => {
|
|
|
136597
136604
|
setupScript,
|
|
136598
136605
|
toolsMd,
|
|
136599
136606
|
heartbeatMd,
|
|
136600
|
-
...avatar !== undefined ? { avatar } : {}
|
|
136607
|
+
...avatar !== undefined ? { avatar } : {},
|
|
136608
|
+
...slackIcon !== undefined ? { slackIcon } : {}
|
|
136601
136609
|
}, {
|
|
136602
136610
|
changeSource: isUpdatingSelf ? "self_edit" : "lead_coaching",
|
|
136603
136611
|
changedByAgentId: requestInfo.agentId
|
|
@@ -136676,6 +136684,8 @@ ${setupScript}
|
|
|
136676
136684
|
updatedFields.push("heartbeatMd");
|
|
136677
136685
|
if (avatar !== undefined)
|
|
136678
136686
|
updatedFields.push("avatar");
|
|
136687
|
+
if (slackIcon !== undefined)
|
|
136688
|
+
updatedFields.push("slackIcon");
|
|
136679
136689
|
const targetLabel = isUpdatingSelf ? "own" : `agent ${targetAgentId}`;
|
|
136680
136690
|
return toolOk(`Updated ${targetLabel} profile: ${updatedFields.join(", ")}.`, {
|
|
136681
136691
|
data: { yourAgentId: requestInfo.agentId, agent }
|
|
@@ -138000,4 +138010,4 @@ async function createServer(opts = {}) {
|
|
|
138000
138010
|
return server;
|
|
138001
138011
|
}
|
|
138002
138012
|
|
|
138003
|
-
export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, McpServer, isGitHubEnabled, initGitHub, verifyWebhookSignature, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, resolveIdentity, renderIdentity, createAdditiveBuffer, taskModelPin, resumedTaskModelSelection, listHarnessModelSupport, recordHarnessModelSupport, agentRanModel, getAgentHarnessCliVersion, setAgentHarnessCliVersion, sanitizeModelTierOverrides, parseModelTierOverridesHeader, setAgentModelTierOverrides, previewModelTiers, recordClaimModelResolution, harnessModelErrorFor, poolTaskRunsOnHarness, explicitModelError, explicitModelErrorForAgent, referencedBundlePaths, skillDirs, TaskCreationBlockedError, recordUnmappedIdentity, MAX_TASK_ATTACHMENT_BYTES, recordTaskAttachmentUpload, scopeFromAttachment, backingProviderId, transcribeAudioNotes, buildEffectiveText, bufferedFileFailures, fetchSlackFiles, createSlackTaskWithFiles, notifySlackFileFailures, isRuntimePoolWakeable, isAgentReachable, hasOtherUserMention, broadcastMatches, routeMessage, extractTaskFromMessage, extractSlackMessageText, recoverIncompleteRuns, handleWebhookTrigger, verifyHmacSignature, WebhookError, snapshotAndUpdateWorkflow, RawLlmConfigSchema, RawLlmOutputSchema, executeRawLlm, getExecutorRegistry2, initWorkflows2, dispatchScheduleTarget, calculateNextRun2, startScheduler2, stopScheduler2, runScheduleNow2, ExtensionAssetConflictError, ExtensionOwnershipError, getExtensionFiles, getExtensionById, getExtensionByName, listExtensions, listExtensionVersions, updateExtensionMeta, listExtensionRuns, SDK_ALLOWLIST, mcpToolNameForSdkMethod, mcpOverflowAuthError, hasKvViewArgs, resolveKvView, toolErr, createToolRegistrar, handleMcpBridge, Redacted, SCRIPT_SDK_RESPONSE_LIMIT_BYTES, readScriptSdkJsonResponse, ExtensionConfigError, ExtensionLifecycleError, setExtensionLoopbackBaseUrl, enableExtension, disableExtension, activateVersion, ExtensionAssetsInvalidError, installExtensionWithAssets, uninstallExtension, reloadExtension, loadEnabledExtensions, stopExtensionRuntime, ExtensionAbortedError2, isRegistered2, isExtensionAgentId2, getExtensionBridgeToken2, resolveBridgeCallOrigin2, extensionIdForAgent2, runContext2, registerLoaded2, unregister2, listRegistered2, dispatchPre2, dispatchPost2, stripSiblingBlock, createTaskWithSiblingAwareness, isInboxAllowed, isSenderAllowed, handleMessageReceived, isAzureDevOpsEnabled, initAzureDevOps, verifyAzureDevOpsWebhook, repointTrackerSyncBySwarmId, isAzureDevOpsUrl, canonicalAzureDevOpsRepoUrl, parseAzureDevOpsRepoUrl, createdPullRequestOf, commentedPayloadOf, handlePullRequestCreated, handlePullRequestCommented, handleWorkItemCreated, handleWorkItemUpdated, handleWorkItemCommented, handleWorkItemDeleted, handleWorkItemRestored, initAzureDevOpsOutbound, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, getTelemetryIngestAnchor, initApiTelemetry, syncTelemetryEnabled, isBitbucketEnabled, initBitbucket, verifyBitbucketWebhook, isDuplicateDelivery, markDeliveryProcessed, pullRequestEventOf, pullRequestCommentEventOf, handlePullRequestCreated2, handlePullRequestCommentCreated, handlePullRequestClosed, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, isChatSdkEnabled, getChatSdkConfig, errorMessage, resolveAdapterApiUrl, trackBackground, TelegramBotApiError, callTelegramBotApi, isTrustedTeamsServiceUrl, getSessionLabels, rememberSessionLabel, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, registerJiraWebhook, deleteJiraWebhook, isJiraEnabled, initJira, handleJiraWebhook, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, isLinearEnabled, initLinear, isCookieSafePageId, extractPageSession, extractLegacyPageSession, extractAndVerifyCookie, pageSessionSetCookies, resolveHttpRequestAuth, getDeploymentEnvValue, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, MCP_MAX_TOOL_INPUT_ELEMENTS, MCP_MAX_REQUEST_BODY_BYTES, userCtx, requestPrincipal, agentFirstPrincipal, requireAuthKind, rejectGuest, handleApps, cancelApprovalRequest, cancelApprovalRequestAndRun, getUserCommsPrefs, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, executeReadOnlyQuery, assertSelectOnlyQuery, handleDbQuery, snapshotMetric, AssetKeyAuthorizationError, authorizeAssetKeyWrite, getPageEditCounter, snapshotPage, assertOAuthAppUrlsSafe, assertOAuthEgressUrlSafe, listOAuthPresets, listOAuthPresetIds, getOAuthPreset, hydrateOAuthAppFromPreset, scopedResourceScopeIdSchema, resolveScopedResourceId, MemoryKeyError, refreshLinks, indexMemoryContent, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, ExplicitSelfDuplicateError, applyRating, shouldPersistAutomaticTaskMemory, REBOOT_RETRY_PIN_TAG, getPinCandidateAgent, resolveLeadOnlyRecoveryAssignment, getResumeGeneration, getNextResumeGeneration, inheritedModelSelection, createWorkerTaskFollowUp, createResumeFollowUp, createRerouteDecisionTask, createPoolStarvationDecisionTask, guardTerminalTaskResultWrite, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, reservedNamespaceError, privateNamespaceError, reservedRoomKeyError, updateMcpServerChecked, updateTouchesStdioExecution, canReadMemory, getLinksForMemory, expandCandidatesWithGraph, isApiDraining, drainApi, markKapsoMessageRead, sendKapsoReaction, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, changesAllowMerge, updateSwarmRepoChecked, getCombConfig, resolveRoomNamespace, roomRequestInfo, authorizeRoomNamespace, sessionAccessTopic, sessionPresenceRoot, RoomOperationSchema, removeAwarenessStates, roomTopic, decodeRoomSnapshot, roomView, getRoom, changeRoom, applyRoomUpdate, resetRoom, sweepRooms, closeRooms, removeNamespaceRooms, MEMORY_KEYS_DEFAULT_PREFIX, MEMORY_KEYS_MAX_LIMIT, estimateTokens, posteriorMean, listMemoryKeys, checkChunkIntegrity, getMemoryChunks, getPosteriorsByIds, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, mergeScheduleTiming, validateRecurringTiming, checkOutputSchemaShape, sendTaskOutputSchema, sendTaskHandler, steerTaskUserInputSchema, steerTaskOutputSchema, steerTaskHandler, canClaim, emitBudgetRefusalSideEffects, workflowModelErrors, patchWorkflowDefinition, idempotencyKeyHeader, readIdempotencyKey, replayAcceptedOperation, resolveScriptsOnlyMode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer };
|
|
138013
|
+
export { DEFAULT_NEGOTIATED_PROTOCOL_VERSION, SUPPORTED_PROTOCOL_VERSIONS, isJSONRPCRequest, isJSONRPCResultResponse, isJSONRPCErrorResponse, JSONRPCMessageSchema, isInitializeRequest, McpServer, isGitHubEnabled, initGitHub, verifyWebhookSignature, isAgentMailEnabled, initAgentMail, verifyAgentMailWebhook, resolveIdentity, renderIdentity, createAdditiveBuffer, taskModelPin, resumedTaskModelSelection, listHarnessModelSupport, recordHarnessModelSupport, agentRanModel, getAgentHarnessCliVersion, setAgentHarnessCliVersion, sanitizeModelTierOverrides, parseModelTierOverridesHeader, setAgentModelTierOverrides, previewModelTiers, recordClaimModelResolution, harnessModelErrorFor, poolTaskRunsOnHarness, explicitModelError, explicitModelErrorForAgent, referencedBundlePaths, skillDirs, TaskCreationBlockedError, recordUnmappedIdentity, MAX_TASK_ATTACHMENT_BYTES, recordTaskAttachmentUpload, scopeFromAttachment, backingProviderId, transcribeAudioNotes, buildEffectiveText, bufferedFileFailures, fetchSlackFiles, createSlackTaskWithFiles, notifySlackFileFailures, isRuntimePoolWakeable, isAgentReachable, hasOtherUserMention, broadcastMatches, routeMessage, extractTaskFromMessage, extractSlackMessageText, recoverIncompleteRuns, handleWebhookTrigger, verifyHmacSignature, WebhookError, snapshotAndUpdateWorkflow, RawLlmConfigSchema, RawLlmOutputSchema, executeRawLlm, getExecutorRegistry2, initWorkflows2, dispatchScheduleTarget, calculateNextRun2, startScheduler2, stopScheduler2, runScheduleNow2, ExtensionAssetConflictError, ExtensionOwnershipError, getExtensionFiles, getExtensionById, getExtensionByName, listExtensions, listExtensionVersions, updateExtensionMeta, listExtensionRuns, SDK_ALLOWLIST, mcpToolNameForSdkMethod, MCP_OVERFLOW_NAMESPACE, mcpOverflowAuthError, hasKvViewArgs, resolveKvView, toolErr, createToolRegistrar, handleMcpBridge, Redacted, SCRIPT_SDK_RESPONSE_LIMIT_BYTES, readScriptSdkJsonResponse, ExtensionConfigError, ExtensionLifecycleError, setExtensionLoopbackBaseUrl, enableExtension, disableExtension, activateVersion, ExtensionAssetsInvalidError, installExtensionWithAssets, uninstallExtension, reloadExtension, loadEnabledExtensions, stopExtensionRuntime, ExtensionAbortedError2, isRegistered2, isExtensionAgentId2, getExtensionBridgeToken2, resolveBridgeCallOrigin2, extensionIdForAgent2, runContext2, registerLoaded2, unregister2, listRegistered2, dispatchPre2, dispatchPost2, stripSiblingBlock, createTaskWithSiblingAwareness, isInboxAllowed, isSenderAllowed, handleMessageReceived, isAzureDevOpsEnabled, initAzureDevOps, verifyAzureDevOpsWebhook, repointTrackerSyncBySwarmId, isAzureDevOpsUrl, canonicalAzureDevOpsRepoUrl, parseAzureDevOpsRepoUrl, createdPullRequestOf, commentedPayloadOf, handlePullRequestCreated, handlePullRequestCommented, handleWorkItemCreated, handleWorkItemUpdated, handleWorkItemCommented, handleWorkItemDeleted, handleWorkItemRestored, initAzureDevOpsOutbound, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, getTelemetryIngestAnchor, initApiTelemetry, syncTelemetryEnabled, isBitbucketEnabled, initBitbucket, verifyBitbucketWebhook, isDuplicateDelivery, markDeliveryProcessed, pullRequestEventOf, pullRequestCommentEventOf, handlePullRequestCreated2, handlePullRequestCommentCreated, handlePullRequestClosed, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, isChatSdkEnabled, getChatSdkConfig, errorMessage, resolveAdapterApiUrl, trackBackground, TelegramBotApiError, callTelegramBotApi, isTrustedTeamsServiceUrl, getSessionLabels, rememberSessionLabel, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, registerJiraWebhook, deleteJiraWebhook, isJiraEnabled, initJira, handleJiraWebhook, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, isLinearEnabled, initLinear, isCookieSafePageId, extractPageSession, extractLegacyPageSession, extractAndVerifyCookie, pageSessionSetCookies, resolveHttpRequestAuth, getDeploymentEnvValue, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, MCP_MAX_TOOL_INPUT_ELEMENTS, MCP_MAX_REQUEST_BODY_BYTES, userCtx, requestPrincipal, agentFirstPrincipal, requireAuthKind, rejectGuest, handleApps, cancelApprovalRequest, cancelApprovalRequestAndRun, getUserCommsPrefs, getTaskDetailsInputSchema, getTaskDetailsOutputSchema, getTaskDetailsHandler, cancelTaskInputSchema, cancelTaskOutputSchema, cancelTaskHandler, executeReadOnlyQuery, assertSelectOnlyQuery, handleDbQuery, snapshotMetric, AssetKeyAuthorizationError, authorizeAssetKeyWrite, getPageEditCounter, snapshotPage, assertOAuthAppUrlsSafe, assertOAuthEgressUrlSafe, listOAuthPresets, listOAuthPresetIds, getOAuthPreset, hydrateOAuthAppFromPreset, scopedResourceScopeIdSchema, resolveScopedResourceId, MemoryKeyError, refreshLinks, indexMemoryContent, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, ExplicitSelfDuplicateError, applyRating, shouldPersistAutomaticTaskMemory, REBOOT_RETRY_PIN_TAG, getPinCandidateAgent, resolveLeadOnlyRecoveryAssignment, getResumeGeneration, getNextResumeGeneration, inheritedModelSelection, createWorkerTaskFollowUp, createResumeFollowUp, createRerouteDecisionTask, createPoolStarvationDecisionTask, guardTerminalTaskResultWrite, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, reservedNamespaceError, privateNamespaceError, reservedRoomKeyError, updateMcpServerChecked, updateTouchesStdioExecution, canReadMemory, getLinksForMemory, expandCandidatesWithGraph, isApiDraining, drainApi, markKapsoMessageRead, sendKapsoReaction, getKapsoConfig, getKapsoNumberMapping, markKapsoMessageSeen, changesAllowMerge, updateSwarmRepoChecked, getCombConfig, resolveRoomNamespace, roomRequestInfo, authorizeRoomNamespace, sessionAccessTopic, sessionPresenceRoot, RoomOperationSchema, removeAwarenessStates, roomTopic, decodeRoomSnapshot, roomView, getRoom, changeRoom, applyRoomUpdate, resetRoom, sweepRooms, closeRooms, removeNamespaceRooms, MEMORY_KEYS_DEFAULT_PREFIX, MEMORY_KEYS_MAX_LIMIT, estimateTokens, posteriorMean, listMemoryKeys, checkChunkIntegrity, getMemoryChunks, getPosteriorsByIds, createEvent, createEventsBatch, getEventCountsFiltered, getEventsFiltered, mergeScheduleTiming, validateRecurringTiming, checkOutputSchemaShape, sendTaskOutputSchema, sendTaskHandler, steerTaskUserInputSchema, steerTaskOutputSchema, steerTaskHandler, canClaim, emitBudgetRefusalSideEffects, workflowModelErrors, patchWorkflowDefinition, idempotencyKeyHeader, readIdempotencyKey, replayAcceptedOperation, resolveScriptsOnlyMode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer };
|
|
@@ -7,20 +7,20 @@ import {
|
|
|
7
7
|
tierConfigKey,
|
|
8
8
|
init_model_tier_keys,
|
|
9
9
|
init_db3
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-wmhajw68.js";
|
|
11
11
|
import {
|
|
12
12
|
ensureRbacSeedsSynced2,
|
|
13
13
|
init_rbac_roles
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-ja369zab.js";
|
|
15
15
|
import {
|
|
16
16
|
seedPricingFromModelsDev
|
|
17
|
-
} from "./cli-
|
|
17
|
+
} from "./cli-10kjx0dm.js";
|
|
18
18
|
import {
|
|
19
19
|
MODEL_TIERS,
|
|
20
20
|
DEFAULT_MODEL_TIER_MAP,
|
|
21
21
|
ProviderNameSchema,
|
|
22
22
|
init_types2
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-4aydmmdy.js";
|
|
24
24
|
|
|
25
25
|
// src/be/boot-seeds.ts
|
|
26
26
|
init_db3();
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
materializeClaudeMd,
|
|
10
10
|
stopClaudeMd
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-2h0rfmqk.js";
|
|
12
12
|
import {
|
|
13
13
|
summarizeSession
|
|
14
14
|
} from "./cli-5xbma5yx.js";
|
|
@@ -35,16 +35,16 @@ import {
|
|
|
35
35
|
warnProfileFileTooLarge,
|
|
36
36
|
buildIndependentIdentityPayloads,
|
|
37
37
|
init_profile_sync
|
|
38
|
-
} from "./cli-
|
|
38
|
+
} from "./cli-9km88w11.js";
|
|
39
39
|
import {
|
|
40
40
|
init_package,
|
|
41
41
|
package_default
|
|
42
|
-
} from "./cli-
|
|
42
|
+
} from "./cli-7cwrwb5x.js";
|
|
43
43
|
import {
|
|
44
44
|
MAX_PROFILE_FILE_LENGTH,
|
|
45
45
|
getMcpBaseUrl,
|
|
46
46
|
init_constants2
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-77eq8txs.js";
|
|
48
48
|
import {
|
|
49
49
|
isSessionSummarySkipped,
|
|
50
50
|
init_env_flag
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
ampBillsCacheWrites,
|
|
7
7
|
resolveAmpModel
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-e24w2mvk.js";
|
|
9
9
|
import {
|
|
10
10
|
swarmRuntimeInstanceId
|
|
11
11
|
} from "./cli-e8xyjvfc.js";
|
|
@@ -42,7 +42,7 @@ import { tmpdir } from "node:os";
|
|
|
42
42
|
import { join } from "node:path";
|
|
43
43
|
init_context_window();
|
|
44
44
|
init_secret_scrubber();
|
|
45
|
-
var AMP_PACKAGE = "@ampcode/cli@0.0.
|
|
45
|
+
var AMP_PACKAGE = "@ampcode/cli@0.0.1793160055-gbd79f2";
|
|
46
46
|
var AMP_MCP_SERVER_NAME = "agent-swarm";
|
|
47
47
|
var AMP_PLUGIN_MODE_KEY = "agent-swarm";
|
|
48
48
|
var AMP_LIVE_TEST_TIMEOUT_MS = 5000;
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
CONTROLLER_COMMAND_TIMEOUT_MS,
|
|
5
5
|
RuntimeHandleSchema,
|
|
6
6
|
ControllerStatusResultSchema
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-bs0fwb23.js";
|
|
8
8
|
import {
|
|
9
9
|
getDbClient2,
|
|
10
10
|
isRuntimePoolsEnabled,
|
|
@@ -21,11 +21,11 @@ import {
|
|
|
21
21
|
upsertSwarmConfig2,
|
|
22
22
|
getResolvedConfig2,
|
|
23
23
|
init_db3
|
|
24
|
-
} from "./cli-
|
|
24
|
+
} from "./cli-wmhajw68.js";
|
|
25
25
|
import {
|
|
26
26
|
createWorkerTaskFollowUp,
|
|
27
27
|
canClaim
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-9vttw9nz.js";
|
|
29
29
|
import {
|
|
30
30
|
getRuntimeController2,
|
|
31
31
|
getRuntimeControllerTarget2,
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
getPoolForAgent2,
|
|
37
37
|
resolvePoolDelivery2,
|
|
38
38
|
init_db
|
|
39
|
-
} from "./cli-
|
|
39
|
+
} from "./cli-z6219sd3.js";
|
|
40
40
|
import {
|
|
41
41
|
runtimeStaleThresholdMinutes,
|
|
42
42
|
getRuntimeInstanceById,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
markRuntimeTerminated,
|
|
45
45
|
listRuntimeInstancesForAgent,
|
|
46
46
|
listRuntimeInstancesForPool
|
|
47
|
-
} from "./cli-
|
|
47
|
+
} from "./cli-pnm99spe.js";
|
|
48
48
|
import {
|
|
49
49
|
isMultiRuntimeEnabled
|
|
50
50
|
} from "./cli-e8xyjvfc.js";
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
import {
|
|
59
59
|
resolveWorkerApiUrl,
|
|
60
60
|
init_worker_api_url
|
|
61
|
-
} from "./cli-
|
|
61
|
+
} from "./cli-jhh7tbx6.js";
|
|
62
62
|
import {
|
|
63
63
|
buildImageTemplate,
|
|
64
64
|
init_dispatch
|
|
@@ -71,16 +71,16 @@ import {
|
|
|
71
71
|
canProvisionKind,
|
|
72
72
|
createRuntimeProvider,
|
|
73
73
|
init_runtime_providers
|
|
74
|
-
} from "./cli-
|
|
74
|
+
} from "./cli-vhgcwppn.js";
|
|
75
75
|
import {
|
|
76
76
|
mintRuntimeToken,
|
|
77
77
|
init_users
|
|
78
|
-
} from "./cli-
|
|
78
|
+
} from "./cli-v9jk2k63.js";
|
|
79
79
|
import {
|
|
80
80
|
TERMINAL_TASK_STATUSES,
|
|
81
81
|
isTerminalTaskStatus,
|
|
82
82
|
init_types2
|
|
83
|
-
} from "./cli-
|
|
83
|
+
} from "./cli-4aydmmdy.js";
|
|
84
84
|
import {
|
|
85
85
|
init_zod
|
|
86
86
|
} from "./cli-4chz1hye.js";
|
|
@@ -524,7 +524,7 @@ async function recoverSessions(runtimeId, reason) {
|
|
|
524
524
|
}
|
|
525
525
|
if (!sessions.length)
|
|
526
526
|
return;
|
|
527
|
-
const { remediateTaskForDeadRuntime } = await import("./heartbeat-
|
|
527
|
+
const { remediateTaskForDeadRuntime } = await import("./heartbeat-5xcdzz45.js");
|
|
528
528
|
for (const session of sessions) {
|
|
529
529
|
try {
|
|
530
530
|
const task = await getTaskById2(session.taskId);
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
getActivePricingRow2,
|
|
5
5
|
insertPricingRow2,
|
|
6
6
|
init_db3
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-wmhajw68.js";
|
|
8
8
|
import {
|
|
9
9
|
loadModelsDevCache,
|
|
10
10
|
buildModelsDevSeedRows
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-10kjx0dm.js";
|
|
12
12
|
import {
|
|
13
13
|
setRuntimeModelCatalog,
|
|
14
14
|
init_runtime_model_catalog
|