@desplega.ai/agent-swarm 2.4.3 → 2.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{acp-adapter-1885dpr7.js → acp-adapter-thq04adh.js} +1 -2
- package/dist/{actions-pn76n32q.js → actions-j6ywh6x5.js} +17 -17
- package/dist/{amp-adapter-af84rx1d.js → amp-adapter-k8b5xmj8.js} +2 -2
- package/dist/{app-6sv8mhzm.js → app-rb7vc02s.js} +3 -3
- package/dist/{assistant-sc2tf825.js → assistant-ftta1zjf.js} +18 -18
- package/dist/{boot-reembed-y3m0ydzj.js → boot-reembed-srp6v6af.js} +1 -1
- package/dist/{boot-reembed-gvxjs2py.js → boot-reembed-xns7h5h9.js} +1 -1
- package/dist/{boot-scrub-sweep-1j9mk05f.js → boot-scrub-sweep-3qqrh2mz.js} +2 -2
- package/dist/{boot-seeds-37sp626b.js → boot-seeds-9ks8hce7.js} +4 -4
- package/dist/{claude-adapter-rp0jtnwr.js → claude-adapter-k5ksyres.js} +2 -2
- package/dist/{claude-managed-setup-rdt248k7.js → claude-managed-setup-n5a5eqks.js} +1 -1
- package/dist/{claude-sdk-session-53rcw5we.js → claude-sdk-session-2j3j4kwn.js} +2 -2
- package/dist/{cli-v87dr6e3.js → cli-1d70crsy.js} +1 -1
- package/dist/{cli-1ma335fz.js → cli-1ephgwnq.js} +2 -2
- package/dist/{cli-4yef8ghv.js → cli-2v045xyf.js} +3 -3
- package/dist/{cli-73ezfhha.js → cli-2y91wnbh.js} +10 -5
- package/dist/{cli-1eszr343.js → cli-2zqpkvtt.js} +1 -1
- package/dist/{cli-e4d78xsv.js → cli-37yb7307.js} +1 -1
- package/dist/{cli-8y99kfey.js → cli-3cgngyd8.js} +9 -9
- package/dist/{cli-wk28hzqn.js → cli-44159k28.js} +1 -1
- package/dist/{cli-qp2m4btv.js → cli-4dg55wsk.js} +2 -2
- package/dist/{cli-0dxxwfkt.js → cli-51y09c6p.js} +17 -14
- package/dist/{cli-aa3tb29r.js → cli-55qmbp6z.js} +1 -1
- package/dist/{cli-mzkwkbdy.js → cli-82d3nkc3.js} +1 -1
- package/dist/{cli-sds5zzs8.js → cli-9fhkkpj5.js} +78 -12
- package/dist/{cli-vq9gqarq.js → cli-amyhm3gj.js} +1 -1
- package/dist/{cli-bxrqvpg5.js → cli-b8k7epj1.js} +5 -5
- package/dist/{cli-8vverzf7.js → cli-ba8ne1es.js} +5 -0
- package/dist/{cli-58vwn100.js → cli-bnz0r3kc.js} +1 -1
- package/dist/{cli-6eyncg0y.js → cli-cynvc9fj.js} +34 -6
- package/dist/{cli-f0p0f6ja.js → cli-dqb4n629.js} +7 -7
- package/dist/{cli-pygdsgh8.js → cli-esxerzg7.js} +1 -1
- package/dist/{cli-dm8p2dpf.js → cli-gqvh8d8a.js} +6 -6
- package/dist/{cli-p0qerd2r.js → cli-hj3debgw.js} +1 -1
- package/dist/{cli-836ehxmt.js → cli-nc35pxb7.js} +2 -2
- package/dist/{cli-vcgscaan.js → cli-p20r8w42.js} +8 -6
- package/dist/{cli-1xsraagq.js → cli-pccfmtb5.js} +4 -4
- package/dist/{cli-s9rr4gr2.js → cli-q6r7t299.js} +1036 -298
- package/dist/{cli-tkf4x6ha.js → cli-qkhc5aqy.js} +11 -11
- package/dist/{cli-1n9gdg56.js → cli-t7cyef5g.js} +4 -4
- package/dist/{cli-038fga5k.js → cli-te6b5wvg.js} +148 -183
- package/dist/{cli-kgnkyabk.js → cli-v3yr2gbg.js} +109 -35
- package/dist/{cli-h0mgxann.js → cli-vdm20wej.js} +2 -2
- package/dist/{cli-zvbb4n0e.js → cli-vq97g1jq.js} +2 -2
- package/dist/{cli-gx0j2khs.js → cli-w6nadkh4.js} +3 -3
- package/dist/{cli-99jez72r.js → cli-w9etnnxk.js} +6 -1
- package/dist/{cli-npfe9t1s.js → cli-xc27fwzg.js} +2 -2
- package/dist/{cli-6aen3ezb.js → cli-xj0re5tm.js} +1 -1
- package/dist/{cli-aypbg9r2.js → cli-zrk6jxv8.js} +1 -1
- package/dist/{cli-1012xb7j.js → cli-zrwpctp4.js} +20 -20
- package/dist/cli.js +41 -16
- package/dist/{codex-adapter-2zrmab9b.js → codex-adapter-968xwfy7.js} +1 -1
- package/dist/{codex-session-runner-kbkz62vc.js → codex-session-runner-ht4z99fa.js} +1 -1
- package/dist/{commands-hd574th6.js → commands-pcymaeg9.js} +2 -2
- package/dist/{controller-pz5mcfg4.js → controller-fpjyk46r.js} +2 -2
- package/dist/{controllers-connect-5rgq2hfk.js → controllers-connect-mwzx1fh6.js} +18 -18
- package/dist/{cursor-adapter-mgaprq0j.js → cursor-adapter-cp4s2e2f.js} +1 -1
- package/dist/{db-h06dxp05.js → db-sgd12bt9.js} +3 -3
- package/dist/{db-6nf1207q.js → db-xsjg9jqq.js} +1 -1
- package/dist/{dispatcher-zthpy4m1.js → dispatcher-x0jfw2c9.js} +16 -16
- package/dist/{dsh-adapter-64dhw0j7.js → dsh-adapter-jrq7ma7h.js} +1 -1
- package/dist/{external-channel-x01t7ke6.js → external-channel-8njj4h3b.js} +2 -2
- package/dist/{grok-adapter-h21jv594.js → grok-adapter-kkr97v2f.js} +2 -3
- package/dist/handlers-0pvee9nw.js +39 -0
- package/dist/{heartbeat-zzfksckz.js → heartbeat-wd03zhn0.js} +19 -19
- package/dist/{hook-z4zhzj1f.js → hook-f0vghj42.js} +1 -1
- package/dist/{hook-3xfqhh2s.js → hook-xzj2ts2p.js} +1 -1
- package/dist/{http-q813tmya.js → http-4hwxv62p.js} +255 -117
- package/dist/{index-va3y63es.js → index-6srwvd5b.js} +1 -2
- package/dist/{index-220tk9bw.js → index-97q4xn03.js} +19 -10
- package/dist/{index-s98037v0.js → index-cbxkmfc5.js} +1 -2
- package/dist/{index-m0a4ydqj.js → index-gdh8jrdm.js} +16 -16
- package/dist/{index-wbbs14c5.js → index-hg0x2cdv.js} +16 -16
- package/dist/{index-d0g18bax.js → index-thm0y6a8.js} +19 -19
- package/dist/{index-x8xbyn1t.js → index-ww2vznkp.js} +1 -1
- package/dist/{keepalive-y5t1my7m.js → keepalive-hrh7xnr9.js} +3 -3
- package/dist/{lead-2xwtq66b.js → lead-ee8vazz2.js} +26 -27
- package/dist/{maintenance-ybfsaedv.js → maintenance-e8wnwnqx.js} +1 -1
- package/dist/{oauth-refresh-sweep-909jmn12.js → oauth-refresh-sweep-zm0yj4sj.js} +2 -2
- package/dist/{onboard-xn6fkkys.js → onboard-dtwcq603.js} +2 -2
- package/dist/{otel-impl-e6mn0z13.js → otel-impl-w3fbhpn0.js} +1 -1
- package/dist/{pricing-refresh-ygd362ep.js → pricing-refresh-j38dehfs.js} +3 -3
- package/dist/{rbac-roles-c9axvfnz.js → rbac-roles-ae8yttq4.js} +2 -2
- package/dist/{rbac-roles-mb470p4e.js → rbac-roles-ejxx9b35.js} +2 -2
- package/dist/{render-v2-g0306nh1.js → render-v2-n16n0phe.js} +3 -3
- package/dist/{resume-v315hnq6.js → resume-z0fgjc38.js} +5 -5
- package/dist/{session-access-2zg285a1.js → session-access-cv3mq6mc.js} +6 -4
- package/dist/{setup-a4mtf02k.js → setup-mafhj3yt.js} +1 -1
- package/dist/{work-objects-9fr0fgtn.js → work-objects-8b86mgjp.js} +19 -19
- package/dist/{worker-qae22jeb.js → worker-16s75hm5.js} +26 -27
- package/dist/worker-token-xf11yyds.js +136 -0
- package/openapi.json +295 -12
- package/package.json +4 -4
- package/src/apps/action-runner.ts +4 -0
- package/src/apps/catalog.generated.json +3 -0
- package/src/apps/page-validator.ts +8 -2
- package/src/be/migrations/232_agent_session_tokens.sql +41 -0
- package/src/be/seed-scripts/catalog/heartbeat-jev-gate.ts +10 -1
- package/src/be/swarm-config-guard.ts +16 -0
- package/src/be/users.ts +169 -12
- package/src/cli.tsx +24 -0
- package/src/commands/worker-token.ts +164 -0
- package/src/http/apps.ts +43 -5
- package/src/http/codex-oauth-keep-warm.ts +27 -9
- package/src/http/config.ts +5 -3
- package/src/http/core.ts +2 -0
- package/src/http/session-access.ts +51 -2
- package/src/http/sessions.ts +249 -10
- package/src/http/tasks.ts +4 -32
- package/src/providers/acp-adapter.ts +33 -13
- package/src/providers/acp-swarm-events.ts +1 -1
- package/src/providers/amp-adapter.ts +1 -1
- package/src/providers/codex-oauth/storage.ts +1 -1
- package/src/rbac/legacy-policy.ts +3 -1
- package/src/rbac/permissions.ts +4 -0
- package/src/tests/acp-adapter.test.ts +10 -23
- package/src/tests/acp-fake-agent.ts +36 -0
- package/src/tests/acp-swarm-events.test.ts +1 -1
- package/src/tests/agent-session-tokens.test.ts +452 -0
- package/src/tests/apps-action-parent-task.test.ts +295 -0
- package/src/tests/codex-oauth-keep-warm.test.ts +85 -1
- package/src/tests/config-session-auth.test.ts +14 -0
- package/src/tests/docs-index-footprint.test.js +2 -2
- package/src/tests/grok-adapter.test.ts +3 -3
- package/src/tests/heartbeat-jev-gate.test.ts +23 -0
- package/src/tests/migration-232-agent-session-tokens.test.ts +67 -0
- package/src/tests/rbac-engine.test.ts +1 -0
- package/src/tests/runtime-child-token-cleanup.test.ts +3 -3
- package/src/tests/script-connections.test.ts +2 -0
- package/src/tests/session-route-posture.test.ts +2 -0
- package/src/tests/worker-token-cli.test.ts +76 -0
- package/src/tests/workflow-executors.test.ts +4 -2
- package/src/tests/workflow-system-one-extraction.test.ts +805 -0
- package/src/types.ts +2 -1
- package/src/utils/request-auth-context.ts +2 -1
- package/src/workflows/definition.ts +7 -1
- package/src/workflows/engine.ts +18 -12
- package/src/workflows/executors/index.ts +1 -0
- package/src/workflows/executors/registry.ts +2 -0
- package/src/workflows/executors/system-one-decision.ts +56 -255
- package/src/workflows/executors/system-one-extract-wire.ts +57 -0
- package/src/workflows/executors/system-one-extraction.ts +830 -0
- package/src/workflows/executors/system-one-providers.ts +277 -110
- package/src/workflows/executors/system-one-transport.ts +264 -0
- package/templates/official/lead/HEARTBEAT.md +1 -1
- package/templates/skills/apps/SKILL.md +3 -1
- package/templates/skills/apps/content.md +3 -1
- package/templates/skills/heartbeat-runbook/content.md +3 -3
- package/dist/cli-v1sjhn52.js +0 -7
- package/dist/handlers-2qjw434w.js +0 -39
|
@@ -332,19 +332,19 @@ import {
|
|
|
332
332
|
recordInlineScriptRun2,
|
|
333
333
|
exports_db,
|
|
334
334
|
init_db3
|
|
335
|
-
} from "./cli-
|
|
335
|
+
} from "./cli-p20r8w42.js";
|
|
336
336
|
import {
|
|
337
337
|
getUserGrant2,
|
|
338
338
|
init_rbac_roles
|
|
339
|
-
} from "./cli-
|
|
339
|
+
} from "./cli-4dg55wsk.js";
|
|
340
340
|
import {
|
|
341
341
|
ensurePricingSeeded2,
|
|
342
342
|
ensureRbacSeeded2,
|
|
343
343
|
ensureModelProfilesSeeded2
|
|
344
|
-
} from "./cli-
|
|
344
|
+
} from "./cli-t7cyef5g.js";
|
|
345
345
|
import {
|
|
346
346
|
loadModelsDevCache
|
|
347
|
-
} from "./cli-
|
|
347
|
+
} from "./cli-amyhm3gj.js";
|
|
348
348
|
import {
|
|
349
349
|
buildCatalogEntries,
|
|
350
350
|
listModelCatalog,
|
|
@@ -354,12 +354,12 @@ import {
|
|
|
354
354
|
loadModelsCatalog,
|
|
355
355
|
requestModelCatalogRefresh2,
|
|
356
356
|
startPricingRefreshLoop2
|
|
357
|
-
} from "./cli-
|
|
357
|
+
} from "./cli-xc27fwzg.js";
|
|
358
358
|
import {
|
|
359
359
|
ampPinProviderError,
|
|
360
360
|
ampPinCatalogError,
|
|
361
361
|
ampModelError
|
|
362
|
-
} from "./cli-
|
|
362
|
+
} from "./cli-2zqpkvtt.js";
|
|
363
363
|
import {
|
|
364
364
|
notifyAutomationPreflightFailure,
|
|
365
365
|
isNeedsSetupFailure,
|
|
@@ -411,7 +411,7 @@ import {
|
|
|
411
411
|
buildNodeInterpolationCtx,
|
|
412
412
|
interpolateNodeConfig,
|
|
413
413
|
scriptBodyInterpolationError
|
|
414
|
-
} from "./cli-
|
|
414
|
+
} from "./cli-51y09c6p.js";
|
|
415
415
|
import {
|
|
416
416
|
require_dist2,
|
|
417
417
|
publicEndpointSsrfOptions,
|
|
@@ -471,14 +471,14 @@ import {
|
|
|
471
471
|
deleteApp,
|
|
472
472
|
typecheckScript,
|
|
473
473
|
parseSkillContent
|
|
474
|
-
} from "./cli-
|
|
474
|
+
} from "./cli-2y91wnbh.js";
|
|
475
475
|
import {
|
|
476
476
|
buildAuthorizationUrl,
|
|
477
477
|
onAuthorizationRefreshed,
|
|
478
478
|
ensureAuthorizationTokenOrThrow,
|
|
479
479
|
ensureToken,
|
|
480
480
|
ensureTokenOrThrow
|
|
481
|
-
} from "./cli-
|
|
481
|
+
} from "./cli-esxerzg7.js";
|
|
482
482
|
import {
|
|
483
483
|
detachedProcessGroup,
|
|
484
484
|
registerProcessGroup,
|
|
@@ -508,14 +508,14 @@ import {
|
|
|
508
508
|
getSlackApp2,
|
|
509
509
|
startSlackApp2,
|
|
510
510
|
stopSlackApp2
|
|
511
|
-
} from "./cli-
|
|
511
|
+
} from "./cli-qkhc5aqy.js";
|
|
512
512
|
import {
|
|
513
513
|
slackCode,
|
|
514
514
|
slackMissingScopeMessage,
|
|
515
515
|
withAutoJoin,
|
|
516
516
|
externalChannelToolError2,
|
|
517
517
|
getChannelBlockReason2
|
|
518
|
-
} from "./cli-
|
|
518
|
+
} from "./cli-1d70crsy.js";
|
|
519
519
|
import {
|
|
520
520
|
BaseExecutor,
|
|
521
521
|
postApprovalCancellationUpdates,
|
|
@@ -523,6 +523,7 @@ import {
|
|
|
523
523
|
HumanInTheLoopExecutor,
|
|
524
524
|
resolveWorkflowLlmConfig,
|
|
525
525
|
SYSTEM_ONE_PROVIDER_IDS,
|
|
526
|
+
SystemOneExtractionExecutor,
|
|
526
527
|
SYSTEM_ONE_DECISION_NODE_TYPE,
|
|
527
528
|
SystemOneDecisionConfigSchema,
|
|
528
529
|
SystemOneDecisionExecutor,
|
|
@@ -532,7 +533,7 @@ import {
|
|
|
532
533
|
definitionNodeIds,
|
|
533
534
|
validateDefinition,
|
|
534
535
|
applyDefinitionPatch
|
|
535
|
-
} from "./cli-
|
|
536
|
+
} from "./cli-q6r7t299.js";
|
|
536
537
|
import {
|
|
537
538
|
workflowEventBus2,
|
|
538
539
|
init_event_bus
|
|
@@ -554,14 +555,16 @@ import {
|
|
|
554
555
|
SESSION_READ_DENIED2,
|
|
555
556
|
canReadSession2,
|
|
556
557
|
readableByFor2,
|
|
558
|
+
denyParentAttach2,
|
|
557
559
|
pathSessionDenial2,
|
|
558
560
|
userAgentIdentityDenial2,
|
|
559
561
|
runtimeInstanceHeader,
|
|
562
|
+
bodyTask,
|
|
560
563
|
routeRegistry,
|
|
561
564
|
isPublicRoute,
|
|
562
565
|
findRoute,
|
|
563
566
|
route
|
|
564
|
-
} from "./cli-
|
|
567
|
+
} from "./cli-cynvc9fj.js";
|
|
565
568
|
import {
|
|
566
569
|
isMultiRuntimeEnabled
|
|
567
570
|
} from "./cli-e8xyjvfc.js";
|
|
@@ -573,7 +576,7 @@ import {
|
|
|
573
576
|
import {
|
|
574
577
|
getRuntimePool2,
|
|
575
578
|
init_db
|
|
576
|
-
} from "./cli-
|
|
579
|
+
} from "./cli-w6nadkh4.js";
|
|
577
580
|
import {
|
|
578
581
|
getMemoryRaterNames,
|
|
579
582
|
REFERENCES_SOURCE_MAX_LENGTH,
|
|
@@ -614,7 +617,7 @@ import {
|
|
|
614
617
|
resolveSessionToken,
|
|
615
618
|
fingerprintApiKey,
|
|
616
619
|
init_users
|
|
617
|
-
} from "./cli-
|
|
620
|
+
} from "./cli-9fhkkpj5.js";
|
|
618
621
|
import {
|
|
619
622
|
isRbacEnabled,
|
|
620
623
|
decideAdmission,
|
|
@@ -623,7 +626,7 @@ import {
|
|
|
623
626
|
init_elevated_agents,
|
|
624
627
|
can,
|
|
625
628
|
init_rbac
|
|
626
|
-
} from "./cli-
|
|
629
|
+
} from "./cli-ba8ne1es.js";
|
|
627
630
|
import {
|
|
628
631
|
normalizeAssetKey,
|
|
629
632
|
parseAssetKey,
|
|
@@ -683,7 +686,7 @@ import {
|
|
|
683
686
|
KvNamespaceSchema,
|
|
684
687
|
KvKeySchema,
|
|
685
688
|
init_types
|
|
686
|
-
} from "./cli-
|
|
689
|
+
} from "./cli-nc35pxb7.js";
|
|
687
690
|
import {
|
|
688
691
|
generateDefaultClaudeMd2,
|
|
689
692
|
generateDefaultSoulMd2,
|
|
@@ -754,7 +757,7 @@ import {
|
|
|
754
757
|
import {
|
|
755
758
|
init_package,
|
|
756
759
|
package_default
|
|
757
|
-
} from "./cli-
|
|
760
|
+
} from "./cli-pccfmtb5.js";
|
|
758
761
|
import {
|
|
759
762
|
realtimeBus,
|
|
760
763
|
init_bus
|
|
@@ -21146,7 +21149,7 @@ class NotifyExecutor extends BaseExecutor {
|
|
|
21146
21149
|
}
|
|
21147
21150
|
}
|
|
21148
21151
|
case "slack": {
|
|
21149
|
-
const { getSlackApp } = await import("./app-
|
|
21152
|
+
const { getSlackApp } = await import("./app-rb7vc02s.js");
|
|
21150
21153
|
const app = getSlackApp();
|
|
21151
21154
|
if (!app) {
|
|
21152
21155
|
return {
|
|
@@ -21272,7 +21275,7 @@ var RawLlmOutputSchema = object2({
|
|
|
21272
21275
|
async function executeRawLlm(config) {
|
|
21273
21276
|
let modelName = config.model ?? "google/gemini-3-flash-preview";
|
|
21274
21277
|
try {
|
|
21275
|
-
const { createOpenAI } = await import("./index-
|
|
21278
|
+
const { createOpenAI } = await import("./index-6srwvd5b.js");
|
|
21276
21279
|
const llmConfig = await resolveWorkflowLlmConfig(config.model);
|
|
21277
21280
|
modelName = llmConfig.model;
|
|
21278
21281
|
const provider = createOpenAI({
|
|
@@ -21282,7 +21285,7 @@ async function executeRawLlm(config) {
|
|
|
21282
21285
|
});
|
|
21283
21286
|
const model = provider(llmConfig.model);
|
|
21284
21287
|
if (config.schema) {
|
|
21285
|
-
const { generateObject, jsonSchema } = await import("./index-
|
|
21288
|
+
const { generateObject, jsonSchema } = await import("./index-cbxkmfc5.js");
|
|
21286
21289
|
const { object } = await generateObject({
|
|
21287
21290
|
model,
|
|
21288
21291
|
schema: jsonSchema(config.schema),
|
|
@@ -21296,7 +21299,7 @@ async function executeRawLlm(config) {
|
|
|
21296
21299
|
output: { result: object, model: modelName }
|
|
21297
21300
|
};
|
|
21298
21301
|
}
|
|
21299
|
-
const { generateText } = await import("./index-
|
|
21302
|
+
const { generateText } = await import("./index-cbxkmfc5.js");
|
|
21300
21303
|
const { text } = await generateText({
|
|
21301
21304
|
model,
|
|
21302
21305
|
prompt: config.prompt
|
|
@@ -21736,8 +21739,8 @@ class ValidateExecutor extends BaseExecutor {
|
|
|
21736
21739
|
const interpolatedPrompt = this.deps.interpolate(prompt, context);
|
|
21737
21740
|
const outputStr = typeof targetOutput === "string" ? targetOutput : JSON.stringify(targetOutput);
|
|
21738
21741
|
try {
|
|
21739
|
-
const { createOpenAI } = await import("./index-
|
|
21740
|
-
const { generateObject, jsonSchema } = await import("./index-
|
|
21742
|
+
const { createOpenAI } = await import("./index-6srwvd5b.js");
|
|
21743
|
+
const { generateObject, jsonSchema } = await import("./index-cbxkmfc5.js");
|
|
21741
21744
|
const llmConfig = await resolveWorkflowLlmConfig();
|
|
21742
21745
|
const provider = createOpenAI({
|
|
21743
21746
|
baseURL: llmConfig.baseURL,
|
|
@@ -21909,6 +21912,7 @@ function createExecutorRegistry(deps) {
|
|
|
21909
21912
|
registry.register(new NotifyExecutor(deps));
|
|
21910
21913
|
registry.register(new RawLlmExecutor(deps));
|
|
21911
21914
|
registry.register(new SystemOneDecisionExecutor(deps));
|
|
21915
|
+
registry.register(new SystemOneExtractionExecutor(deps));
|
|
21912
21916
|
registry.register(new ScriptExecutor(deps));
|
|
21913
21917
|
registry.register(new SwarmScriptExecutor(deps));
|
|
21914
21918
|
registry.register(new VcsExecutor(deps));
|
|
@@ -24508,7 +24512,7 @@ function setPreloadedTools(server, names) {
|
|
|
24508
24512
|
async function applyPreToolCall(name, args, requestInfo, inputSchema) {
|
|
24509
24513
|
if (requestInfo.callOrigin !== "mcp")
|
|
24510
24514
|
return { args };
|
|
24511
|
-
const dispatcher = await import("./dispatcher-
|
|
24515
|
+
const dispatcher = await import("./dispatcher-x0jfw2c9.js");
|
|
24512
24516
|
const result = await dispatcher.dispatchPre("pre.tool.call", { tool: name, args, requestInfo }, inputSchema ? {
|
|
24513
24517
|
validateModify: async (data) => {
|
|
24514
24518
|
const schema = normalizeObjectSchema(inputSchema) ?? inputSchema;
|
|
@@ -33822,7 +33826,7 @@ async function notifySlack(text) {
|
|
|
33822
33826
|
return;
|
|
33823
33827
|
}
|
|
33824
33828
|
try {
|
|
33825
|
-
const { getSlackApp } = await import("./app-
|
|
33829
|
+
const { getSlackApp } = await import("./app-rb7vc02s.js");
|
|
33826
33830
|
const app = getSlackApp();
|
|
33827
33831
|
if (!app) {
|
|
33828
33832
|
console.warn("[Jira webhook keepalive] Slack not available, cannot send notification");
|
|
@@ -33893,7 +33897,7 @@ async function deleteJiraWebhook(webhookId) {
|
|
|
33893
33897
|
console.log(`[Jira webhook keepalive] Deleted webhook id=${webhookId}`);
|
|
33894
33898
|
}
|
|
33895
33899
|
async function overwriteWebhookIds(next) {
|
|
33896
|
-
const { getDbClient } = await import("./db-
|
|
33900
|
+
const { getDbClient } = await import("./db-xsjg9jqq.js");
|
|
33897
33901
|
await getDbClient().transaction(async (tx) => {
|
|
33898
33902
|
const row = await tx.get("SELECT metadata FROM oauth_apps WHERE provider = 'jira'");
|
|
33899
33903
|
if (!row) {
|
|
@@ -107243,7 +107247,7 @@ async function reloadGlobalConfigsAndIntegrations() {
|
|
|
107243
107247
|
return runWithoutRequestAuth(() => reloadGlobalConfigsAndIntegrationsInner());
|
|
107244
107248
|
}
|
|
107245
107249
|
async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
107246
|
-
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-
|
|
107250
|
+
const { getEmbeddingProvider, resetEmbeddingProvider } = await import("./index-ww2vznkp.js");
|
|
107247
107251
|
const wasEmbeddingsConfigured = getEmbeddingProvider().isConfigured();
|
|
107248
107252
|
const updated = await loadGlobalConfigsIntoEnv(true);
|
|
107249
107253
|
await syncTelemetryEnabled("settings").catch((err) => {
|
|
@@ -107259,10 +107263,10 @@ async function reloadGlobalConfigsAndIntegrationsInner() {
|
|
|
107259
107263
|
integrations.push("embeddings");
|
|
107260
107264
|
}
|
|
107261
107265
|
if (!wasEmbeddingsConfigured && isEmbeddingsConfigured) {
|
|
107262
|
-
import("./boot-reembed-
|
|
107266
|
+
import("./boot-reembed-srp6v6af.js").then(({ runBootReembed }) => runBootReembed()).catch((err) => {
|
|
107263
107267
|
console.error("[config-reload] memory backfill failed (non-fatal):", err);
|
|
107264
107268
|
});
|
|
107265
|
-
import("./boot-reembed-
|
|
107269
|
+
import("./boot-reembed-xns7h5h9.js").then(({ runBootReembedScripts }) => runBootReembedScripts()).catch((err) => {
|
|
107266
107270
|
console.error("[config-reload] script backfill failed (non-fatal):", err);
|
|
107267
107271
|
});
|
|
107268
107272
|
}
|
|
@@ -107453,6 +107457,8 @@ async function handleCore(req, res, myAgentId, apiKey) {
|
|
|
107453
107457
|
return true;
|
|
107454
107458
|
}
|
|
107455
107459
|
req.headers["x-runtime-instance-id"] = auth.runtimeId;
|
|
107460
|
+
}
|
|
107461
|
+
if (auth.tokenKind !== "task") {
|
|
107456
107462
|
const sourceHeader = req.headers["x-source-task-id"];
|
|
107457
107463
|
const taskId = Array.isArray(sourceHeader) ? sourceHeader[0] : sourceHeader;
|
|
107458
107464
|
if (taskId !== undefined && (await getTaskById2(taskId))?.agentId !== auth.agentId) {
|
|
@@ -108788,6 +108794,7 @@ async function runAppAction({
|
|
|
108788
108794
|
app,
|
|
108789
108795
|
name,
|
|
108790
108796
|
input = {},
|
|
108797
|
+
parentTaskId,
|
|
108791
108798
|
caller,
|
|
108792
108799
|
actor
|
|
108793
108800
|
}) {
|
|
@@ -108874,7 +108881,8 @@ async function runAppAction({
|
|
|
108874
108881
|
routingReason: action.agentId ? "human_pinned" : lead ? "skill" : undefined,
|
|
108875
108882
|
routingSource: action.agentId || lead ? "engine_default" : undefined,
|
|
108876
108883
|
key: normalizeAssetKey(`shared/app:${app.id}/action:${name}/`),
|
|
108877
|
-
...actor.startsWith("user:") ? { requestedByUserId: actor.slice("user:".length) } : {}
|
|
108884
|
+
...actor.startsWith("user:") ? { requestedByUserId: actor.slice("user:".length) } : {},
|
|
108885
|
+
...parentTaskId ? { parentTaskId } : {}
|
|
108878
108886
|
}, { origin: "app" });
|
|
108879
108887
|
return {
|
|
108880
108888
|
status: 200,
|
|
@@ -110045,6 +110053,47 @@ init_rbac();
|
|
|
110045
110053
|
init_types();
|
|
110046
110054
|
init_request_auth_context();
|
|
110047
110055
|
init_secret_scrubber();
|
|
110056
|
+
|
|
110057
|
+
// src/http/request-principal.ts
|
|
110058
|
+
init_db3();
|
|
110059
|
+
init_request_auth_context();
|
|
110060
|
+
async function requestPrincipal(req, myAgentId) {
|
|
110061
|
+
const auth = getRequestAuth(req);
|
|
110062
|
+
if (auth?.kind === "controller")
|
|
110063
|
+
return { kind: "guest" };
|
|
110064
|
+
if (auth?.kind === "operator")
|
|
110065
|
+
return { kind: "operator" };
|
|
110066
|
+
if (auth?.kind === "user")
|
|
110067
|
+
return { kind: "user", userId: auth.userId };
|
|
110068
|
+
if (auth?.kind === "guest")
|
|
110069
|
+
return { kind: "guest" };
|
|
110070
|
+
if (!myAgentId)
|
|
110071
|
+
return null;
|
|
110072
|
+
const agent = await getAgentById2(myAgentId);
|
|
110073
|
+
return { kind: "agent", agentId: myAgentId, isLead: agent?.isLead ?? false };
|
|
110074
|
+
}
|
|
110075
|
+
async function agentFirstPrincipal(req, myAgentId) {
|
|
110076
|
+
const auth = getRequestAuth(req);
|
|
110077
|
+
if (auth?.kind === "controller")
|
|
110078
|
+
return { kind: "guest" };
|
|
110079
|
+
if (auth?.kind === "user")
|
|
110080
|
+
return { kind: "user", userId: auth.userId };
|
|
110081
|
+
if (auth?.kind === "guest")
|
|
110082
|
+
return { kind: "guest" };
|
|
110083
|
+
const agentId = auth?.kind === "agent" ? auth.agentId : myAgentId;
|
|
110084
|
+
if (!agentId)
|
|
110085
|
+
return { kind: "operator" };
|
|
110086
|
+
const agent = await getAgentById2(agentId);
|
|
110087
|
+
return { kind: "agent", agentId, isLead: agent?.isLead === true };
|
|
110088
|
+
}
|
|
110089
|
+
function rejectGuest(req, res) {
|
|
110090
|
+
if (getRequestAuth(req)?.kind !== "guest")
|
|
110091
|
+
return false;
|
|
110092
|
+
jsonError(res, "Forbidden", 403);
|
|
110093
|
+
return true;
|
|
110094
|
+
}
|
|
110095
|
+
|
|
110096
|
+
// src/http/apps.ts
|
|
110048
110097
|
var MAX_APP_BODY_BYTES = 5 * 1024 * 1024;
|
|
110049
110098
|
var MAX_APP_ROW_BODY_BYTES = 1 * 1024 * 1024;
|
|
110050
110099
|
var MAX_APP_BULK_ROWS_BODY_BYTES = 10 * 1024 * 1024;
|
|
@@ -110493,17 +110542,23 @@ var runActionRoute = route({
|
|
|
110493
110542
|
method: "post",
|
|
110494
110543
|
path: "/api/apps/{id}/actions/{name}",
|
|
110495
110544
|
pattern: ["api", "apps", null, "actions", null],
|
|
110545
|
+
session: bodyTask("parentTaskId"),
|
|
110496
110546
|
summary: "Run a custom app action",
|
|
110497
110547
|
description: "Runs the saved script, or creates the agent task, named by the app definition.",
|
|
110498
110548
|
tags: ["Apps"],
|
|
110499
110549
|
params: object2({ id: string2().min(1), name: AppNameSchema }),
|
|
110500
|
-
body: object2({
|
|
110550
|
+
body: object2({
|
|
110551
|
+
input: record2(string2(), unknown()).optional(),
|
|
110552
|
+
parentTaskId: string2().min(1).optional()
|
|
110553
|
+
}),
|
|
110501
110554
|
responses: {
|
|
110502
110555
|
200: { description: "Action invoked", schema: runActionResultSchema },
|
|
110503
|
-
400: {
|
|
110556
|
+
400: {
|
|
110557
|
+
description: "Invalid action input, stale script reference, or parentTaskId on a non-task action"
|
|
110558
|
+
},
|
|
110504
110559
|
403: { description: "Permission denied" },
|
|
110505
110560
|
409: { description: "App definition needs repair" },
|
|
110506
|
-
404: { description: "App or
|
|
110561
|
+
404: { description: "App, action, or parent task not found" }
|
|
110507
110562
|
},
|
|
110508
110563
|
rbac: { permission: "app.use" }
|
|
110509
110564
|
});
|
|
@@ -111072,10 +111127,29 @@ async function handleApps(req, res, pathSegments, queryParams, myAgentId) {
|
|
|
111072
111127
|
}
|
|
111073
111128
|
if (definitionNeedsRepair(res, app))
|
|
111074
111129
|
return true;
|
|
111130
|
+
if (parsed.body.parentTaskId) {
|
|
111131
|
+
const actions = app.definition.actions;
|
|
111132
|
+
const action = actions && Object.hasOwn(actions, parsed.params.name) ? actions[parsed.params.name] : undefined;
|
|
111133
|
+
if (action && action.kind !== "task") {
|
|
111134
|
+
jsonError(res, "parentTaskId is only supported for task-kind actions", 400);
|
|
111135
|
+
return true;
|
|
111136
|
+
}
|
|
111137
|
+
if (action) {
|
|
111138
|
+
const parentTask = await getTaskById2(parsed.body.parentTaskId);
|
|
111139
|
+
if (!parentTask) {
|
|
111140
|
+
jsonError(res, "parent task not found", 404);
|
|
111141
|
+
return true;
|
|
111142
|
+
}
|
|
111143
|
+
const principal = await agentFirstPrincipal(req, myAgentId);
|
|
111144
|
+
if (await denyParentAttach2(req, res, myAgentId, parentTask, principal))
|
|
111145
|
+
return true;
|
|
111146
|
+
}
|
|
111147
|
+
}
|
|
111075
111148
|
const output = await runAppAction({
|
|
111076
111149
|
app,
|
|
111077
111150
|
name: parsed.params.name,
|
|
111078
111151
|
input: parsed.body.input,
|
|
111152
|
+
parentTaskId: parsed.body.parentTaskId,
|
|
111079
111153
|
caller,
|
|
111080
111154
|
actor
|
|
111081
111155
|
});
|
|
@@ -136122,4 +136196,4 @@ async function createServer(opts = {}) {
|
|
|
136122
136196
|
return server;
|
|
136123
136197
|
}
|
|
136124
136198
|
|
|
136125
|
-
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, 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, AGENT_MAX_TASKS_CONFIG_KEY, reconcileAgentMaxTasksPolicy, resetAgentMaxTasksMirror, upsertSwarmConfigWithPolicyMirror, runtimeStaleThresholdMinutes, upsertRuntimeInstance, getRuntimeInstanceById, insertProvisioningRuntime, markRuntimeTerminated, touchRuntimeInstance, countActiveRuntimeInstancesForAgent, listRuntimeInstancesForAgent, setRuntimeCredentialReady, reconcileAgentStatusFromRuntimes, agentsWithLiveRuntime, expireStaleRuntimeInstances, listRuntimeInstancesForPool, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, getTelemetryIngestAnchor, initApiTelemetry, syncTelemetryEnabled, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, isChatSdkEnabled, getChatSdkConfig, errorMessage, resolveAdapterApiUrl, trackBackground, TelegramBotApiError, callTelegramBotApi, isTrustedTeamsServiceUrl, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, registerJiraWebhook, deleteJiraWebhook, isJiraEnabled, initJira, handleJiraWebhook, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, isLinearEnabled, initLinear, parseCookieHeader, extractAndVerifyCookie, issuePageSessionCookie, resolveHttpRequestAuth, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, userCtx, 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, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, ExplicitSelfDuplicateError, applyRating, shouldPersistAutomaticTaskMemory, REBOOT_RETRY_PIN_TAG, getPinCandidateAgent, resolveLeadOnlyRecoveryAssignment, getResumeGeneration, getNextResumeGeneration, inheritedModelSelection, createWorkerTaskFollowUp, createResumeFollowUp, createRerouteDecisionTask, createPoolStarvationDecisionTask, guardTerminalTaskResultWrite, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, reservedNamespaceError, reservedRoomKeyError, updateMcpServerChecked, updateTouchesStdioExecution, MemoryKeyError, refreshLinks, canReadMemory, getLinksForMemory, expandCandidatesWithGraph, indexMemoryContent, 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, resolveScriptsOnlyMode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer };
|
|
136199
|
+
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, 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, AGENT_MAX_TASKS_CONFIG_KEY, reconcileAgentMaxTasksPolicy, resetAgentMaxTasksMirror, upsertSwarmConfigWithPolicyMirror, runtimeStaleThresholdMinutes, upsertRuntimeInstance, getRuntimeInstanceById, insertProvisioningRuntime, markRuntimeTerminated, touchRuntimeInstance, countActiveRuntimeInstancesForAgent, listRuntimeInstancesForAgent, setRuntimeCredentialReady, reconcileAgentStatusFromRuntimes, agentsWithLiveRuntime, expireStaleRuntimeInstances, listRuntimeInstancesForPool, enqueueAuditRow, enqueueAdmissionRow, flushAuditBuffer, startAuditWriter, stopAuditWriter, startAuditGc, stopAuditGc, getTelemetryIngestAnchor, initApiTelemetry, syncTelemetryEnabled, handlePullRequest, handleIssue, handleComment, handlePullRequestReview, handleCheckRun, handleCheckSuite, handleWorkflowRun, isGitLabEnabled, initGitLab, verifyGitLabWebhook, handleMergeRequest, handleIssue2, handleNote, handlePipeline, isChatSdkEnabled, getChatSdkConfig, errorMessage, resolveAdapterApiUrl, trackBackground, TelegramBotApiError, callTelegramBotApi, isTrustedTeamsServiceUrl, isChatSdkStopping, startChatSdk, getChatInstance, isChatAdapterConfigured, getChatSdkHealth, stopChatSdk, getJiraMetadata, updateJiraMetadata, clearJiraMetadata, registerJiraWebhook, deleteJiraWebhook, isJiraEnabled, initJira, handleJiraWebhook, handleAgentSessionEvent, handleIssueUpdate, handleIssueDelete, handleAgentSessionPrompted, isLinearEnabled, initLinear, parseCookieHeader, extractAndVerifyCookie, issuePageSessionCookie, resolveHttpRequestAuth, loadGlobalConfigsIntoEnv, reloadGlobalConfigsAndIntegrations, scheduleIntegrationsReload, handleCore, userCtx, requestPrincipal, agentFirstPrincipal, 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, dedupeMemoryDocumentIds, recordMemoryAccesses, recordRetrievals, ExplicitSelfDuplicateError, applyRating, shouldPersistAutomaticTaskMemory, REBOOT_RETRY_PIN_TAG, getPinCandidateAgent, resolveLeadOnlyRecoveryAssignment, getResumeGeneration, getNextResumeGeneration, inheritedModelSelection, createWorkerTaskFollowUp, createResumeFollowUp, createRerouteDecisionTask, createPoolStarvationDecisionTask, guardTerminalTaskResultWrite, getTasksInputSchema, getTasksOutputSchema, getTasksHandler, reservedNamespaceError, reservedRoomKeyError, updateMcpServerChecked, updateTouchesStdioExecution, MemoryKeyError, refreshLinks, canReadMemory, getLinksForMemory, expandCandidatesWithGraph, indexMemoryContent, 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, resolveScriptsOnlyMode, ALL_CAPABILITIES, hasCapability, getEnabledCapabilities, createServer };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runStopHookSessionSummarySubprocess
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-55qmbp6z.js";
|
|
4
4
|
import {
|
|
5
5
|
CONTEXT_FORMULA,
|
|
6
6
|
getContextWindowSize,
|
|
@@ -1236,7 +1236,7 @@ class ClaudeAdapter2 {
|
|
|
1236
1236
|
if (transport === "sdk" && isClaudeBridgeEffective(sourceEnv)) {
|
|
1237
1237
|
throw new Error("CLAUDE_TRANSPORT=sdk cannot run with an effective Claude Bridge configuration. Select CLI transport or disable the bridge.");
|
|
1238
1238
|
}
|
|
1239
|
-
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-
|
|
1239
|
+
const claudeSdk = transport === "sdk" ? await import("./claude-sdk-session-2j3j4kwn.js") : undefined;
|
|
1240
1240
|
claudeSdk?.validateClaudeSdkAdditionalArgs([
|
|
1241
1241
|
...claudeBinaryArgv.slice(1),
|
|
1242
1242
|
...config.additionalArgs ?? []
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
import {
|
|
53
53
|
DEFAULT_MODEL_TIER_MAP,
|
|
54
54
|
init_types
|
|
55
|
-
} from "./cli-
|
|
55
|
+
} from "./cli-nc35pxb7.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-pccfmtb5.js";
|
|
64
64
|
import {
|
|
65
65
|
isEnvFlagEnabled,
|
|
66
66
|
isSessionSummarySkipped,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
init_secret_registry,
|
|
16
16
|
upsertSwarmConfig2,
|
|
17
17
|
init_db3
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-p20r8w42.js";
|
|
19
19
|
import {
|
|
20
20
|
createRuntimeProvider,
|
|
21
21
|
init_runtime_providers
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
init_session_token_connections,
|
|
26
26
|
insertSessionToken,
|
|
27
27
|
init_users
|
|
28
|
-
} from "./cli-
|
|
28
|
+
} from "./cli-9fhkkpj5.js";
|
|
29
29
|
import {
|
|
30
30
|
RuntimeControllerCreateSchema,
|
|
31
31
|
RuntimeControllerUpdateSchema,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
RuntimePoolUpdateSchema,
|
|
34
34
|
RuntimePoolCreateAgentSchema,
|
|
35
35
|
init_types
|
|
36
|
-
} from "./cli-
|
|
36
|
+
} from "./cli-nc35pxb7.js";
|
|
37
37
|
import {
|
|
38
38
|
scrubSecrets,
|
|
39
39
|
registerVolatileSecret,
|
|
@@ -3,7 +3,8 @@ import {
|
|
|
3
3
|
} from "./cli-f49w2hk5.js";
|
|
4
4
|
import {
|
|
5
5
|
toJSONSchema,
|
|
6
|
-
safeParseAsync2
|
|
6
|
+
safeParseAsync2,
|
|
7
|
+
init_external
|
|
7
8
|
} from "./cli-d9f7gzeq.js";
|
|
8
9
|
|
|
9
10
|
// node_modules/@ai-sdk/provider/dist/index.mjs
|
|
@@ -338,6 +339,10 @@ function isJSONObject(value) {
|
|
|
338
339
|
return value != null && typeof value === "object" && Object.entries(value).every(([key, val]) => typeof key === "string" && (val === undefined || isJSONValue(val)));
|
|
339
340
|
}
|
|
340
341
|
|
|
342
|
+
// node_modules/zod/v4/classic/index.js
|
|
343
|
+
init_external();
|
|
344
|
+
init_external();
|
|
345
|
+
|
|
341
346
|
// node_modules/eventsource-parser/dist/index.js
|
|
342
347
|
class ParseError extends Error {
|
|
343
348
|
constructor(message, options) {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
getActivePricingRow2,
|
|
5
5
|
insertPricingRow2,
|
|
6
6
|
init_db3
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-p20r8w42.js";
|
|
8
8
|
import {
|
|
9
9
|
loadModelsDevCache,
|
|
10
10
|
buildModelsDevSeedRows
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-amyhm3gj.js";
|
|
12
12
|
import {
|
|
13
13
|
setRuntimeModelCatalog,
|
|
14
14
|
init_runtime_model_catalog
|