@xopcai/xopc 0.0.243 → 0.0.245
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/browser-ext/manifest.json +1 -1
- package/dist/extensions/telegram/xopc.extension.json +1 -1
- package/dist/gateway/static/root/assets/{activity-store-CAah-_8h.js → activity-store-BlxqErph.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-avatar-dicebear-DDH4HgP7.js → agent-avatar-dicebear-DRQnogaU.js} +1 -1
- package/dist/gateway/static/root/assets/{agent-defaults-settings-panel-BDCfJZhh.js → agent-defaults-settings-panel-CpOxGbMD.js} +1 -1
- package/dist/gateway/static/root/assets/{agents-B0ZWgf-U.js → agents-flnXZLaT.js} +1 -1
- package/dist/gateway/static/root/assets/{api-B2tKxbcz.js → api-BbXzyQMj.js} +1 -1
- package/dist/gateway/static/root/assets/{app-management-settings-panel-Blfwszzn.js → app-management-settings-panel-CZl6n2xi.js} +1 -1
- package/dist/gateway/static/root/assets/{appearance-settings-C3V7Na75.js → appearance-settings-Bglp-pn6.js} +1 -1
- package/dist/gateway/static/root/assets/{apps-page-BiEks0-F.js → apps-page-CmsWarVB.js} +1 -1
- package/dist/gateway/static/root/assets/{archive-plugin-BmSx7wzY.js → archive-plugin-DD2SweEH.js} +1 -1
- package/dist/gateway/static/root/assets/{attachment-load-BS-S4LJ9.js → attachment-load-G0HenUmG.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-page-C7Y3L30D.js → automations-page-B78bFjH2.js} +1 -1
- package/dist/gateway/static/root/assets/{automations-workspace-A3zPkPuo.js → automations-workspace-BMQGmn50.js} +1 -1
- package/dist/gateway/static/root/assets/{binary-plugins-BM9B5kcm.js → binary-plugins-BbSQmXqn.js} +1 -1
- package/dist/gateway/static/root/assets/{block-editor-BbnpkYP9.js → block-editor-DutTIH81.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-settings-page-Dk4FQ7fY.js → browser-settings-page-CALiFKm4.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-workflow-inputs-CRnkgZHI.js → browser-workflow-inputs-BAAc151l.js} +1 -1
- package/dist/gateway/static/root/assets/{browser-workflows-page-B9qGL-it.js → browser-workflows-page-DE5HPrHZ.js} +1 -1
- package/dist/gateway/static/root/assets/{capabilities-settings-panel--tR_El9e.js → capabilities-settings-panel-Dts7XtP3.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-settings-D347vl_J.js → channels-settings-CWEd3wzh.js} +1 -1
- package/dist/gateway/static/root/assets/{channels-status-swr-DuY4MGxe.js → channels-status-swr-CCBCtLDg.js} +1 -1
- package/dist/gateway/static/root/assets/{chat-terminal-dock-DABPvwBT.js → chat-terminal-dock-Bp1fXQm1.js} +1 -1
- package/dist/gateway/static/root/assets/{connectors-page-B-tvJkRJ.js → connectors-page-CQ6wVNLm.js} +1 -1
- package/dist/gateway/static/root/assets/{cron-expression-D3bsKbNd.js → cron-expression-B8HA5IRb.js} +1 -1
- package/dist/gateway/static/root/assets/{date-picker-BsGM6Yty.js → date-picker-DD8b7oad.js} +1 -1
- package/dist/gateway/static/root/assets/{dependency-picker-Dj3g6YXZ.js → dependency-picker-BC9zwIyH.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-C1QT0Sur.js → desktop-pet-DsrsPZTW.js} +1 -1
- package/dist/gateway/static/root/assets/{desktop-pet-settings-r6kAOnfY.js → desktop-pet-settings-D7gp_HNA.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-debug-page-DOkf7nh9.js → extension-debug-page-BoKbOX7x.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-page-Cq2IA4Ho.js → extension-page-BegL4FW8.js} +1 -1
- package/dist/gateway/static/root/assets/{extension-settings-page-DQn4qjDZ.js → extension-settings-page-CjPqq57s.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-api-DM3poL22.js → gateway-config-api-DaG57o4X.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-config-swr-BC3pgb_P.js → gateway-config-swr-826dipyU.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-settings-DPgH1hnh.js → gateway-settings-DkJGpgm6.js} +1 -1
- package/dist/gateway/static/root/assets/{gateway-startup-retry-uMcSfLru.js → gateway-startup-retry-DyvcAIMm.js} +1 -1
- package/dist/gateway/static/root/assets/{heartbeat-settings-Bk80-E3b.js → heartbeat-settings-BLZ48kSU.js} +1 -1
- package/dist/gateway/static/root/assets/{home-page-DKo5JiMR.js → home-page-Dtw7Ipt1.js} +1 -1
- package/dist/gateway/static/root/assets/{image-generation-api-D1qlQA-A.js → image-generation-api-D7cyfks6.js} +1 -1
- package/dist/gateway/static/root/assets/{index-B0WJL9N1.js → index-DG5CfYat.js} +10 -10
- package/dist/gateway/static/root/assets/{keyboard-shortcuts-settings-BEwvd8ZU.js → keyboard-shortcuts-settings-D2Has7-N.js} +1 -1
- package/dist/gateway/static/root/assets/{local-app-workbench-page--eJ5rmNj.js → local-app-workbench-page-BWidWY93.js} +1 -1
- package/dist/gateway/static/root/assets/{local-apps-page-CgkY9E-r.js → local-apps-page-Bkekjoxf.js} +1 -1
- package/dist/gateway/static/root/assets/{locale-store-CMZljTJx.js → locale-store-CBoCuIMx.js} +1 -1
- package/dist/gateway/static/root/assets/{logs-page-Z49Td0J9.js → logs-page-C5zSSgvA.js} +1 -1
- package/dist/gateway/static/root/assets/{management-settings-Dv8NSJKt.js → management-settings-B8c62vRS.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-split-Cm0RBB-t.js → markdown-split-3kxTTGO7.js} +1 -1
- package/dist/gateway/static/root/assets/{markdown-view-PPCLt7fu.js → markdown-view-BXsHghJd.js} +1 -1
- package/dist/gateway/static/root/assets/{media-plugins-Bcr5sU1f.js → media-plugins-BW8J1nCG.js} +1 -1
- package/dist/gateway/static/root/assets/messages-BbdwoxVo.js +3 -0
- package/dist/gateway/static/root/assets/{mobile-pairing-wizard-kKDiXofY.js → mobile-pairing-wizard-nwQ8iUcd.js} +1 -1
- package/dist/gateway/static/root/assets/models-hub-cache-88f4fzYS.js +1 -0
- package/dist/gateway/static/root/assets/{notes-page-CgsaRaGi.js → notes-page-DdybD0QM.js} +1 -1
- package/dist/gateway/static/root/assets/{notes-workbench-C1DEE09k.js → notes-workbench-IYfpy2Jx.js} +2 -2
- package/dist/gateway/static/root/assets/{oauth-api-4VeMbkTJ.js → oauth-api-BjSUDIgq.js} +1 -1
- package/dist/gateway/static/root/assets/{product-open-page-BU0HiZtv.js → product-open-page-CAJeUXeU.js} +1 -1
- package/dist/gateway/static/root/assets/{project-detail-page-isRapnp5.js → project-detail-page-4wjw-b7h.js} +1 -1
- package/dist/gateway/static/root/assets/{projects-page-zvsjg0mi.js → projects-page-CCMj9PeL.js} +1 -1
- package/dist/gateway/static/root/assets/{registry-api-CWOtPFrE.js → registry-api-BhGKnvLP.js} +1 -1
- package/dist/gateway/static/root/assets/{remote-access-hub-C9TGZ9Hc.js → remote-access-hub-DsBJqWIk.js} +1 -1
- package/dist/gateway/static/root/assets/{runtime-tools-settings-panel-2zm9edMA.js → runtime-tools-settings-panel-B4IDcqx0.js} +1 -1
- package/dist/gateway/static/root/assets/{schema-form-54A5gzkN.js → schema-form-DiGUUjO6.js} +1 -1
- package/dist/gateway/static/root/assets/{sessions-page-BP8RyiUn.js → sessions-page-BwGj0t-2.js} +1 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-BJCfUghk.js +1 -0
- package/dist/gateway/static/root/assets/{settings-page-DzDhoyxv.js → settings-page-CVQUsAhd.js} +1 -1
- package/dist/gateway/static/root/assets/{setup-status-panel-uDicHU1w.js → setup-status-panel-CQACRh1i.js} +1 -1
- package/dist/gateway/static/root/assets/{share-preview-page-lOmLCWFS.js → share-preview-page-DTP1dtuS.js} +1 -1
- package/dist/gateway/static/root/assets/{shares-settings-T4Yvouvv.js → shares-settings-D_YPh6Rw.js} +1 -1
- package/dist/gateway/static/root/assets/skill-reload-api-B43xlJlX.js +1 -0
- package/dist/gateway/static/root/assets/{skills-page-CnyNH3To.js → skills-page-Czpn7Y28.js} +1 -1
- package/dist/gateway/static/root/assets/{skills-page.utils-CgDtf2qs.js → skills-page.utils-d39rm3hb.js} +1 -1
- package/dist/gateway/static/root/assets/{system-settings-panel-C8yWfwtR.js → system-settings-panel-CXXySCSp.js} +1 -1
- package/dist/gateway/static/root/assets/{task-detail-page-Tzfjlbf3.js → task-detail-page-DHiOqQMx.js} +1 -1
- package/dist/gateway/static/root/assets/{theme-store-uxUwr10D.js → theme-store-hybK3oC9.js} +1 -1
- package/dist/gateway/static/root/assets/{tunnel-api-Bvg679no.js → tunnel-api-BiBGK7O2.js} +1 -1
- package/dist/gateway/static/root/assets/{use-autosave-D88VGoyG.js → use-autosave-DjpzpeIm.js} +1 -1
- package/dist/gateway/static/root/assets/{user-context-page-RijPtyfO.js → user-context-page-1XBRV5gX.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-api-key-field-CBHLsMcc.js → voice-api-key-field-CUIPNmOc.js} +1 -1
- package/dist/gateway/static/root/assets/{voice-config-api-MqyI6cgq.js → voice-config-api-CBbiF1T3.js} +1 -1
- package/dist/gateway/static/root/assets/{work-discovery-overlay-GGe2TQ98.js → work-discovery-overlay-DVNxhb1x.js} +1 -1
- package/dist/gateway/static/root/assets/{workflow-run-setup-panel-C0layUE9.js → workflow-run-setup-panel-HxxFQFY7.js} +1 -1
- package/dist/gateway/static/root/assets/{workflows-page-DQXIzBAc.js → workflows-page-BCgL7PRm.js} +1 -1
- package/dist/gateway/static/root/index.html +11 -11
- package/dist/package.js +1 -1
- package/dist/packages/gateway-contract/src/turn-outcome.js +3 -1
- package/dist/src/agent/agent-instance-gateway.d.ts +3 -1
- package/dist/src/agent/agent-manager.d.ts +2 -4
- package/dist/src/agent/agent-manager.js +24 -28
- package/dist/src/agent/background-review/coordinator.js +1 -1
- package/dist/src/agent/background-review/run-background-review.js +1 -1
- package/dist/src/agent/child-agent-factory.d.ts +10 -7
- package/dist/src/agent/child-agent-factory.js +112 -158
- package/dist/src/agent/coding/index.d.ts +1 -1
- package/dist/src/agent/coding/index.js +2 -2
- package/dist/src/agent/coding/repository-instructions.d.ts +12 -0
- package/dist/src/agent/coding/repository-instructions.js +76 -0
- package/dist/src/agent/coding/run-verification.d.ts +34 -0
- package/dist/src/agent/coding/run-verification.js +134 -0
- package/dist/src/agent/coding/verification-command.d.ts +3 -0
- package/dist/src/agent/coding/verification-command.js +50 -0
- package/dist/src/agent/coding/workspace-revision.d.ts +2 -0
- package/dist/src/agent/coding/workspace-revision.js +77 -0
- package/dist/src/agent/commands/command-isolation.d.ts +21 -0
- package/dist/src/agent/commands/command-isolation.js +71 -0
- package/dist/src/agent/commands/command-registry.d.ts +56 -0
- package/dist/src/agent/commands/command-registry.js +259 -0
- package/dist/src/agent/embedded/index.js +1 -1
- package/dist/src/agent/embedded/run-for-session.js +2 -1
- package/dist/src/agent/embedded/run-turn.js +88 -25
- package/dist/src/agent/embedded/session-tool-result-guard.js +2 -2
- package/dist/src/agent/embedded/subscribe-session.d.ts +2 -1
- package/dist/src/agent/embedded/subscribe-session.js +2 -1
- package/dist/src/agent/embedded/types.d.ts +3 -1
- package/dist/src/agent/embedded/xopc-tools-bridge.js +4 -1
- package/dist/src/agent/image/index.js +1 -1
- package/dist/src/agent/index.js +3 -3
- package/dist/src/agent/memory/user-context-coordinator.js +1 -1
- package/dist/src/agent/middleware/index.d.ts +0 -5
- package/dist/src/agent/middleware/index.js +1 -2
- package/dist/src/agent/orchestration/agent-event-handler.d.ts +0 -5
- package/dist/src/agent/orchestration/agent-event-handler.js +1 -96
- package/dist/src/agent/orchestration/agent-orchestrator.js +1 -1
- package/dist/src/agent/orchestration/agent-turn-policy.js +5 -5
- package/dist/src/agent/orchestration/index.d.ts +1 -1
- package/dist/src/agent/orchestration/index.js +2 -2
- package/dist/src/agent/orchestration/loop-guard.d.ts +4 -31
- package/dist/src/agent/orchestration/loop-guard.js +14 -99
- package/dist/src/agent/prompt/sections/tooling.js +2 -4
- package/dist/src/agent/sandbox/types.d.ts +2 -2
- package/dist/src/agent/sandbox/types.js +1 -1
- package/dist/src/agent/service/direct-turn-helpers.js +1 -1
- package/dist/src/agent/service/process-direct-streaming.js +1 -1
- package/dist/src/agent/service.d.ts +0 -2
- package/dist/src/agent/service.js +6 -23
- package/dist/src/agent/tasks/task-judge-service.d.ts +7 -0
- package/dist/src/agent/tasks/task-judge-service.js +24 -2
- package/dist/src/agent/tools/delegate-tool.d.ts +2 -1
- package/dist/src/agent/tools/delegate-tool.js +102 -124
- package/dist/src/agent/tools/exec-command.d.ts +8 -1
- package/dist/src/agent/tools/exec-command.js +77 -169
- package/dist/src/agent/tools/executor.js +9 -2
- package/dist/src/agent/tools/factory.js +50 -5
- package/dist/src/agent/tools/find.d.ts +10 -13
- package/dist/src/agent/tools/find.js +33 -80
- package/dist/src/agent/tools/grep.d.ts +14 -18
- package/dist/src/agent/tools/grep.js +56 -144
- package/dist/src/agent/tools/index.d.ts +0 -1
- package/dist/src/agent/tools/index.js +2 -3
- package/dist/src/agent/tools/language-diagnostics.d.ts +11 -0
- package/dist/src/agent/tools/language-diagnostics.js +62 -0
- package/dist/src/agent/tools/managed-job-tool.d.ts +2 -1
- package/dist/src/agent/tools/managed-job-tool.js +58 -118
- package/dist/src/agent/tools/read.js +24 -7
- package/dist/src/agent/tools/repository-search.d.ts +5 -0
- package/dist/src/agent/tools/repository-search.js +56 -0
- package/dist/src/agent/tools/review-workspace.d.ts +2 -0
- package/dist/src/agent/tools/review-workspace.js +103 -0
- package/dist/src/agent/tools/write.js +4 -4
- package/dist/src/agent/transcript/index.js +2 -2
- package/dist/src/agent/transcript/transcript-hygiene.js +2 -2
- package/dist/src/agent/workflow/subagent-runner.d.ts +0 -2
- package/dist/src/agent/workflow/subagent-runner.js +12 -31
- package/dist/src/agent-config/schema.d.ts +42 -0
- package/dist/src/agent-config/schema.js +5 -0
- package/dist/src/automations/draft/automation-draft-service.js +1 -1
- package/dist/src/cli/commands/extension-marketplace.js +1 -1
- package/dist/src/config/schema.d.ts +28 -0
- package/dist/src/execution-environments/local-worktree-manager.d.ts +3 -1
- package/dist/src/execution-environments/local-worktree-manager.js +8 -3
- package/dist/src/execution-environments/session-environment-service.js +5 -3
- package/dist/src/extensions/update.js +1 -1
- package/dist/src/gateway/hono/lib/config-payload.d.ts +7 -0
- package/dist/src/gateway/hono/routes/auth-registry-extensions.js +1 -1
- package/dist/src/gateway/hono/routes/connectors.js +23 -23
- package/dist/src/gateway/hono/routes/sessions.js +1 -1
- package/dist/src/gateway/media-access.js +1 -1
- package/dist/src/gateway/service/config-coordinator.js +1 -1
- package/dist/src/gateway/service/run-gateway-agent.js +4 -1
- package/dist/src/gateway/service.js +1 -1
- package/dist/src/gateway/session-reset-service.js +1 -1
- package/dist/src/gateway/workspace-ripgrep.d.ts +0 -6
- package/dist/src/gateway/workspace-ripgrep.js +2 -40
- package/dist/src/infra/ripgrep.d.ts +13 -0
- package/dist/src/infra/ripgrep.js +46 -0
- package/dist/src/infra/update-runner.js +1 -1
- package/dist/src/proactive/execution/agent-executor.js +1 -1
- package/dist/src/session/store.js +1 -1
- package/dist/src/session/turn-outcome-projector.js +26 -6
- package/dist/src/tasks/task-run-coordinator.d.ts +2 -2
- package/dist/src/tasks/task-run-coordinator.js +14 -12
- package/dist/src/tui/backends/embedded-backend.js +1 -1
- package/package.json +3 -3
- package/dist/gateway/static/root/assets/messages-CTSgFlE4.js +0 -3
- package/dist/gateway/static/root/assets/models-hub-cache-ZrbGRiGY.js +0 -1
- package/dist/gateway/static/root/assets/settings-advanced-gate-D4EMxWAZ.js +0 -1
- package/dist/gateway/static/root/assets/skill-reload-api-DVb7nrXz.js +0 -1
- package/dist/src/agent/coding/turn-diff-tracker.d.ts +0 -67
- package/dist/src/agent/coding/turn-diff-tracker.js +0 -231
- package/dist/src/agent/middleware/self-verify.d.ts +0 -136
- package/dist/src/agent/middleware/self-verify.js +0 -380
- package/dist/src/agent/tools/execute-code-tool.d.ts +0 -11
- package/dist/src/agent/tools/execute-code-tool.js +0 -208
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png?v=20260713-1" />
|
|
12
12
|
<link rel="manifest" href="/site.webmanifest?v=20260713-1" />
|
|
13
13
|
<title>XOPC — Keep what matters moving.</title>
|
|
14
|
-
<script type="module" crossorigin src="/assets/index-
|
|
14
|
+
<script type="module" crossorigin src="/assets/index-DG5CfYat.js"></script>
|
|
15
15
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-aKtaBQYM.js">
|
|
16
16
|
<link rel="modulepreload" crossorigin href="/assets/preload-helper-zJ_50EbN.js">
|
|
17
17
|
<link rel="modulepreload" crossorigin href="/assets/vendor-react-BOUWij0V.js">
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
<link rel="modulepreload" crossorigin href="/assets/download-Dk-ZjtO6.js">
|
|
26
26
|
<link rel="modulepreload" crossorigin href="/assets/plus-Q2yW6OE7.js">
|
|
27
27
|
<link rel="modulepreload" crossorigin href="/assets/x-B_N4OPjy.js">
|
|
28
|
-
<link rel="modulepreload" crossorigin href="/assets/messages-
|
|
29
|
-
<link rel="modulepreload" crossorigin href="/assets/locale-store-
|
|
28
|
+
<link rel="modulepreload" crossorigin href="/assets/messages-BbdwoxVo.js">
|
|
29
|
+
<link rel="modulepreload" crossorigin href="/assets/locale-store-CBoCuIMx.js">
|
|
30
30
|
<link rel="modulepreload" crossorigin href="/assets/cn-JdwAhgNB.js">
|
|
31
31
|
<link rel="modulepreload" crossorigin href="/assets/schemas-BHS7bo06.js">
|
|
32
32
|
<link rel="modulepreload" crossorigin href="/assets/product-delivery-CV4pDOtG.js">
|
|
33
33
|
<link rel="modulepreload" crossorigin href="/assets/copy-to-clipboard-HOJ79TWv.js">
|
|
34
|
-
<link rel="modulepreload" crossorigin href="/assets/markdown-view-
|
|
34
|
+
<link rel="modulepreload" crossorigin href="/assets/markdown-view-BXsHghJd.js">
|
|
35
35
|
<link rel="modulepreload" crossorigin href="/assets/dist-DLmwHyAh.js">
|
|
36
36
|
<link rel="modulepreload" crossorigin href="/assets/vendor-swr-BIWyz7Rc.js">
|
|
37
37
|
<link rel="modulepreload" crossorigin href="/assets/check-DUBLcKHA.js">
|
|
@@ -59,18 +59,18 @@
|
|
|
59
59
|
<link rel="modulepreload" crossorigin href="/assets/files-D6vf3S30.js">
|
|
60
60
|
<link rel="modulepreload" crossorigin href="/assets/tool-activity-R8V9l6nk.js">
|
|
61
61
|
<link rel="modulepreload" crossorigin href="/assets/button-CtTvuElV.js">
|
|
62
|
-
<link rel="modulepreload" crossorigin href="/assets/gateway-startup-retry-
|
|
63
|
-
<link rel="modulepreload" crossorigin href="/assets/registry-api-
|
|
62
|
+
<link rel="modulepreload" crossorigin href="/assets/gateway-startup-retry-DyvcAIMm.js">
|
|
63
|
+
<link rel="modulepreload" crossorigin href="/assets/registry-api-BhGKnvLP.js">
|
|
64
64
|
<link rel="modulepreload" crossorigin href="/assets/config-reload-event-Bjh2zoKp.js">
|
|
65
|
-
<link rel="modulepreload" crossorigin href="/assets/gateway-config-swr-
|
|
66
|
-
<link rel="modulepreload" crossorigin href="/assets/models-hub-cache-
|
|
65
|
+
<link rel="modulepreload" crossorigin href="/assets/gateway-config-swr-826dipyU.js">
|
|
66
|
+
<link rel="modulepreload" crossorigin href="/assets/models-hub-cache-88f4fzYS.js">
|
|
67
67
|
<link rel="modulepreload" crossorigin href="/assets/electron-env-DH5wF8X8.js">
|
|
68
|
-
<link rel="modulepreload" crossorigin href="/assets/oauth-api-
|
|
68
|
+
<link rel="modulepreload" crossorigin href="/assets/oauth-api-BjSUDIgq.js">
|
|
69
69
|
<link rel="modulepreload" crossorigin href="/assets/form-field-width-DJw_jULe.js">
|
|
70
70
|
<link rel="modulepreload" crossorigin href="/assets/interaction-BmQogeqz.js">
|
|
71
71
|
<link rel="modulepreload" crossorigin href="/assets/is-masked-secret-DOkL5b_X.js">
|
|
72
|
-
<link rel="modulepreload" crossorigin href="/assets/activity-store-
|
|
73
|
-
<link rel="modulepreload" crossorigin href="/assets/theme-store-
|
|
72
|
+
<link rel="modulepreload" crossorigin href="/assets/activity-store-BlxqErph.js">
|
|
73
|
+
<link rel="modulepreload" crossorigin href="/assets/theme-store-hybK3oC9.js">
|
|
74
74
|
<link rel="stylesheet" crossorigin href="/assets/markdown-view-Y68dCxuc.css">
|
|
75
75
|
<link rel="stylesheet" crossorigin href="/assets/index-Dbh5SXyV.css">
|
|
76
76
|
</head>
|
package/dist/package.js
CHANGED
|
@@ -89,7 +89,9 @@ const TurnOutcomeEvidenceSchema = z.object({
|
|
|
89
89
|
]),
|
|
90
90
|
durationMs: z.number().nonnegative().optional(),
|
|
91
91
|
command: z.string().optional(),
|
|
92
|
-
artifactId: z.string().optional()
|
|
92
|
+
artifactId: z.string().optional(),
|
|
93
|
+
revision: z.string().optional(),
|
|
94
|
+
logPath: z.string().optional()
|
|
93
95
|
});
|
|
94
96
|
const TurnOutcomeSchema = z.object({
|
|
95
97
|
version: z.literal(1),
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* dependency-cruiser rule `no-<X>-to-agent-manager` enforces that lower-level
|
|
19
19
|
* modules do NOT bypass this interface and depend on `agent-manager.ts`.
|
|
20
20
|
*/
|
|
21
|
-
import type { Agent, AgentMessage, ThinkingLevel } from '@earendil-works/pi-agent-core';
|
|
21
|
+
import type { Agent, AgentEvent, AgentMessage, ThinkingLevel } from '@earendil-works/pi-agent-core';
|
|
22
22
|
import type { AgentTurnPolicy } from './orchestration/agent-turn-policy.js';
|
|
23
23
|
export interface AgentInstanceGateway {
|
|
24
24
|
/**
|
|
@@ -39,6 +39,8 @@ export interface AgentInstanceGateway {
|
|
|
39
39
|
removeAgent(sessionKey: string): boolean;
|
|
40
40
|
/** Create isolated policy state for one user-visible agent run. */
|
|
41
41
|
createAgentTurnPolicy(sessionKey: string): AgentTurnPolicy;
|
|
42
|
+
/** Publish events from the actual embedded runtime to session observers. */
|
|
43
|
+
emitRuntimeEvent(sessionKey: string, event: AgentEvent): void;
|
|
42
44
|
/** Last assistant text from the in-memory agent (empty when no agent / no assistant yet). */
|
|
43
45
|
getLastAssistantContent(sessionKey: string): string | null;
|
|
44
46
|
/** Build the bounded, policy-filtered context used for this model turn. */
|
|
@@ -111,8 +111,6 @@ export interface AgentManagerConfig {
|
|
|
111
111
|
installSkillFromSource?: (opts: SkillInstallToolOptions) => Promise<SkillInstallToolResult>;
|
|
112
112
|
/** Install a managed skill from Store or ClawHub and refresh runtime state. */
|
|
113
113
|
installSkillFromMarketplace?: (opts: MarketplaceSkillInstallToolOptions) => Promise<MarketplaceSkillInstallToolResult>;
|
|
114
|
-
/** Dynamic workspace verification context injected into the system prompt when edits are pending. */
|
|
115
|
-
getSelfVerifyPromptContext?: (sessionKey: string, agentId?: string) => string;
|
|
116
114
|
/**
|
|
117
115
|
* Runtime trust override. Persistent "do not trust" entries still take precedence.
|
|
118
116
|
*/
|
|
@@ -130,7 +128,6 @@ export interface AgentInstance {
|
|
|
130
128
|
/** Capability packs activated by explicit skills or UI entry points in this session. */
|
|
131
129
|
activeCapabilities: Map<string, AgentCapabilitySessionState>;
|
|
132
130
|
activeProjectContext?: string;
|
|
133
|
-
activeSelfVerifyContext?: string;
|
|
134
131
|
/** Declared env var names from skill_view; exec_command reads values from process.env at spawn time. */
|
|
135
132
|
skillEnvPassthroughKeys: Set<string>;
|
|
136
133
|
}
|
|
@@ -290,7 +287,6 @@ export declare class AgentManager implements AgentInstanceGateway {
|
|
|
290
287
|
warmCredentialCache(): Promise<void>;
|
|
291
288
|
refreshCredentials(): Promise<void>;
|
|
292
289
|
private resolveApiKeyWithCache;
|
|
293
|
-
private getSelfVerifyPromptContext;
|
|
294
290
|
private composeDynamicProjectContext;
|
|
295
291
|
getCapabilityCatalogForSession(sessionKey?: string): AgentCapabilityCatalogEntry[];
|
|
296
292
|
private createAgentForProfile;
|
|
@@ -318,4 +314,6 @@ export declare class AgentManager implements AgentInstanceGateway {
|
|
|
318
314
|
* Subscribe to agent events for a session
|
|
319
315
|
*/
|
|
320
316
|
subscribeToSession(sessionKey: string, callback: (event: AgentEvent) => void): (() => void) | null;
|
|
317
|
+
private readonly runtimeListeners;
|
|
318
|
+
emitRuntimeEvent(sessionKey: string, event: AgentEvent): void;
|
|
321
319
|
}
|
|
@@ -28,12 +28,13 @@ import { isValidSkillEnvVarName } from "./skills/required-env-vars.js";
|
|
|
28
28
|
import { resolveWorkspaceSkillsDir, resolveWorkspaceSkillsLockPath } from "./skills/workspace-skills-dir.js";
|
|
29
29
|
import { loadSkillsLock } from "./skills/hub-lock.js";
|
|
30
30
|
import { isUnderManagedSkillsDir } from "./skills/managed-store.js";
|
|
31
|
+
import { evictAllEmbeddedSessionRunners, evictEmbeddedSessionRunner } from "./embedded/session-runner.js";
|
|
32
|
+
import { createAgentTurnPolicy } from "./orchestration/agent-turn-policy.js";
|
|
31
33
|
import { createAgentCapabilitySessionState, resolveAgentCapabilityCatalog } from "./capabilities/registry.js";
|
|
32
34
|
import "./capabilities/index.js";
|
|
33
35
|
import { sortToolsForPromptCache } from "./tools/cache-stability.js";
|
|
34
36
|
import { AgentToolsFactory } from "./tools/factory.js";
|
|
35
37
|
import "./mcp/bundle-mcp-tools.js";
|
|
36
|
-
import { evictAllEmbeddedSessionRunners, evictEmbeddedSessionRunner } from "./embedded/session-runner.js";
|
|
37
38
|
import { isMemorySubsystemEnabled } from "./memory/memory-config.js";
|
|
38
39
|
import { UserContextCoordinator } from "./memory/user-context-coordinator.js";
|
|
39
40
|
import { WorkspaceRuntimeRegistry } from "./workspace-runtime/registry.js";
|
|
@@ -42,7 +43,6 @@ import { BackgroundReviewCoordinator } from "./background-review/coordinator.js"
|
|
|
42
43
|
import { maybeRequestChannelExecApproval } from "../channels/exec-approval-runtime.js";
|
|
43
44
|
import { SkillFilesystemWatcher } from "./skills/filesystem-watcher.js";
|
|
44
45
|
import { ProjectTrustStore, hasTrustRequiringProjectResources } from "../project-trust/trust-store.js";
|
|
45
|
-
import { createAgentTurnPolicy } from "./orchestration/agent-turn-policy.js";
|
|
46
46
|
import { basename, resolve, sep } from "node:path";
|
|
47
47
|
import { Agent } from "@earendil-works/pi-agent-core";
|
|
48
48
|
//#region src/agent/agent-manager.ts
|
|
@@ -416,7 +416,7 @@ var AgentManager = class {
|
|
|
416
416
|
modelRef,
|
|
417
417
|
agentId: instance.effectiveProfile.agentId,
|
|
418
418
|
thinkingLevel,
|
|
419
|
-
activeProjectContext: this.composeDynamicProjectContext(instance.activeProjectContext,
|
|
419
|
+
activeProjectContext: this.composeDynamicProjectContext(instance.activeProjectContext, this.buildActiveCapabilityContext(instance, activeCapabilityNames, registeredToolNames))
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
/** Structured SKILL.md preview for the gateway console. */
|
|
@@ -613,7 +613,6 @@ var AgentManager = class {
|
|
|
613
613
|
const rt = this.workspaceRuntimes.getOrCreate(resolvedWorkspacePath, instance.effectiveProfile.agentId);
|
|
614
614
|
const contextFiles = this.resolveContextFilesForSession(instance.sessionKey, instance.effectiveProfile);
|
|
615
615
|
instance.activeProjectContext = buildExecutionScopeContextForPrompt(instance.sessionKey);
|
|
616
|
-
instance.activeSelfVerifyContext = this.getSelfVerifyPromptContext(instance.sessionKey, instance.effectiveProfile.agentId);
|
|
617
616
|
const newPrompt = rt.systemPromptBuilder.build(contextFiles, {
|
|
618
617
|
externalMemoryInstructions: rt.memoryManager.buildExternalSystemPrompt(),
|
|
619
618
|
workspaceOverride: resolvedWorkspacePath,
|
|
@@ -625,7 +624,7 @@ var AgentManager = class {
|
|
|
625
624
|
modelRef: instance.effectiveProfile.primaryModelRef?.trim() || this.defaultModel,
|
|
626
625
|
agentId: instance.effectiveProfile.agentId,
|
|
627
626
|
thinkingLevel: this.config.thinkingLevel ?? "medium",
|
|
628
|
-
activeProjectContext:
|
|
627
|
+
activeProjectContext: instance.activeProjectContext
|
|
629
628
|
});
|
|
630
629
|
instance.agent.state.systemPrompt = newPrompt;
|
|
631
630
|
}
|
|
@@ -689,7 +688,6 @@ var AgentManager = class {
|
|
|
689
688
|
const rt = this.workspaceRuntimes.getOrCreate(resolvedWorkspacePath, instance.effectiveProfile.agentId);
|
|
690
689
|
const contextFiles = this.resolveContextFilesForSession(instance.sessionKey, instance.effectiveProfile);
|
|
691
690
|
instance.activeProjectContext = buildExecutionScopeContextForPrompt(instance.sessionKey);
|
|
692
|
-
instance.activeSelfVerifyContext = this.getSelfVerifyPromptContext(instance.sessionKey, instance.effectiveProfile.agentId);
|
|
693
691
|
const newPrompt = rt.systemPromptBuilder.rebuild(contextFiles, {
|
|
694
692
|
externalMemoryInstructions: rt.memoryManager.buildExternalSystemPrompt(),
|
|
695
693
|
workspaceOverride: resolvedWorkspacePath,
|
|
@@ -701,7 +699,7 @@ var AgentManager = class {
|
|
|
701
699
|
modelRef: instance.effectiveProfile.primaryModelRef?.trim() || this.defaultModel,
|
|
702
700
|
agentId: instance.effectiveProfile.agentId,
|
|
703
701
|
thinkingLevel: this.config.thinkingLevel ?? "medium",
|
|
704
|
-
activeProjectContext:
|
|
702
|
+
activeProjectContext: instance.activeProjectContext
|
|
705
703
|
});
|
|
706
704
|
instance.agent.state.systemPrompt = newPrompt;
|
|
707
705
|
}
|
|
@@ -733,13 +731,12 @@ var AgentManager = class {
|
|
|
733
731
|
sessionKey
|
|
734
732
|
}, "memory initializeAll failed"));
|
|
735
733
|
const activeProjectContext = buildExecutionScopeContextForPrompt(sessionKey);
|
|
736
|
-
const activeSelfVerifyContext = this.getSelfVerifyPromptContext(sessionKey, profile.agentId);
|
|
737
734
|
const profileModelRef = profile.primaryModelRef?.trim() || this.defaultModel;
|
|
738
735
|
const modelManager = this.config.getModelManager?.();
|
|
739
736
|
const initialModelRef = modelManager?.resolveInitialModelForSession(sessionKey, profileModelRef, profile.fallbacks) ?? profileModelRef;
|
|
740
737
|
let created;
|
|
741
738
|
try {
|
|
742
|
-
created = this.createAgentForProfile(sessionKey, profile, initialModelRef, resolvedPath, rt, activeProjectContext
|
|
739
|
+
created = this.createAgentForProfile(sessionKey, profile, initialModelRef, resolvedPath, rt, activeProjectContext);
|
|
743
740
|
} catch (err) {
|
|
744
741
|
modelManager?.clearSessionProfileDefault(sessionKey);
|
|
745
742
|
throw err;
|
|
@@ -755,7 +752,6 @@ var AgentManager = class {
|
|
|
755
752
|
registeredToolNames,
|
|
756
753
|
activeCapabilities: /* @__PURE__ */ new Map(),
|
|
757
754
|
activeProjectContext,
|
|
758
|
-
activeSelfVerifyContext,
|
|
759
755
|
skillEnvPassthroughKeys: /* @__PURE__ */ new Set()
|
|
760
756
|
});
|
|
761
757
|
log.debug({
|
|
@@ -834,7 +830,6 @@ var AgentManager = class {
|
|
|
834
830
|
const modelRef = instance.effectiveProfile.primaryModelRef?.trim() || this.defaultModel;
|
|
835
831
|
const thinkingLevel = this.config.thinkingLevel ?? "medium";
|
|
836
832
|
const activeProjectContext = buildExecutionScopeContextForPrompt(sessionKey);
|
|
837
|
-
const activeSelfVerifyContext = this.getSelfVerifyPromptContext(sessionKey, instance.effectiveProfile.agentId);
|
|
838
833
|
instance.agent.state.systemPrompt = rt.systemPromptBuilder.build(contextFiles, {
|
|
839
834
|
externalMemoryInstructions: rt.memoryManager.buildExternalSystemPrompt(),
|
|
840
835
|
workspaceOverride: resolvedWorkspacePath,
|
|
@@ -847,10 +842,9 @@ var AgentManager = class {
|
|
|
847
842
|
agentId: instance.effectiveProfile.agentId,
|
|
848
843
|
thinkingLevel,
|
|
849
844
|
extraSystemPrompt: trimmed,
|
|
850
|
-
activeProjectContext
|
|
845
|
+
activeProjectContext
|
|
851
846
|
});
|
|
852
847
|
instance.activeProjectContext = activeProjectContext;
|
|
853
|
-
instance.activeSelfVerifyContext = activeSelfVerifyContext;
|
|
854
848
|
}
|
|
855
849
|
/**
|
|
856
850
|
* Set thinking level for a session's agent
|
|
@@ -877,6 +871,7 @@ var AgentManager = class {
|
|
|
877
871
|
this.backgroundReview.clear();
|
|
878
872
|
for (const instance of this.agents.values()) instance.agent.abort();
|
|
879
873
|
this.agents.clear();
|
|
874
|
+
this.runtimeListeners.clear();
|
|
880
875
|
this.userContext.clear();
|
|
881
876
|
this.sessionWorkspaceOverrides.clear();
|
|
882
877
|
this.workspaceRuntimes.clearAll();
|
|
@@ -909,9 +904,6 @@ var AgentManager = class {
|
|
|
909
904
|
return fromRegistryOrEnv;
|
|
910
905
|
}
|
|
911
906
|
}
|
|
912
|
-
getSelfVerifyPromptContext(sessionKey, agentId) {
|
|
913
|
-
return this.config.getSelfVerifyPromptContext?.(sessionKey, agentId).trim() ?? "";
|
|
914
|
-
}
|
|
915
907
|
composeDynamicProjectContext(...sections) {
|
|
916
908
|
return sections.map((section) => section?.trim()).filter((section) => Boolean(section)).join("\n\n") || void 0;
|
|
917
909
|
}
|
|
@@ -919,7 +911,7 @@ var AgentManager = class {
|
|
|
919
911
|
const inst = sessionKey?.trim() ? this.agents.get(sessionKey.trim()) : void 0;
|
|
920
912
|
return this.resolveCapabilityCatalogForInstance(inst);
|
|
921
913
|
}
|
|
922
|
-
createAgentForProfile(sessionKey, profile, modelRef, resolvedWorkspacePath, rt, activeProjectContext
|
|
914
|
+
createAgentForProfile(sessionKey, profile, modelRef, resolvedWorkspacePath, rt, activeProjectContext) {
|
|
923
915
|
const model = this.resolveModelStringToModel(modelRef);
|
|
924
916
|
let agent;
|
|
925
917
|
const contextFiles = this.resolveContextFilesForSession(sessionKey, profile);
|
|
@@ -948,7 +940,7 @@ var AgentManager = class {
|
|
|
948
940
|
modelRef,
|
|
949
941
|
agentId: profile.agentId,
|
|
950
942
|
thinkingLevel,
|
|
951
|
-
activeProjectContext
|
|
943
|
+
activeProjectContext
|
|
952
944
|
}),
|
|
953
945
|
model,
|
|
954
946
|
thinkingLevel,
|
|
@@ -1054,8 +1046,7 @@ var AgentManager = class {
|
|
|
1054
1046
|
}
|
|
1055
1047
|
refreshActiveProjectContextIfChanged(instance) {
|
|
1056
1048
|
const nextProjectContext = buildExecutionScopeContextForPrompt(instance.sessionKey);
|
|
1057
|
-
|
|
1058
|
-
if (nextProjectContext === instance.activeProjectContext && nextSelfVerifyContext === (instance.activeSelfVerifyContext ?? "")) return;
|
|
1049
|
+
if (nextProjectContext === instance.activeProjectContext) return;
|
|
1059
1050
|
const cfg = this.config.config;
|
|
1060
1051
|
const resolvedWorkspacePath = this.getResolvedWorkspaceForSession(instance.sessionKey);
|
|
1061
1052
|
const rt = this.workspaceRuntimes.getOrCreate(resolvedWorkspacePath, instance.effectiveProfile.agentId);
|
|
@@ -1073,10 +1064,9 @@ var AgentManager = class {
|
|
|
1073
1064
|
modelRef,
|
|
1074
1065
|
agentId: instance.effectiveProfile.agentId,
|
|
1075
1066
|
thinkingLevel,
|
|
1076
|
-
activeProjectContext:
|
|
1067
|
+
activeProjectContext: nextProjectContext
|
|
1077
1068
|
});
|
|
1078
1069
|
instance.activeProjectContext = nextProjectContext;
|
|
1079
|
-
instance.activeSelfVerifyContext = nextSelfVerifyContext;
|
|
1080
1070
|
log.debug({ sessionKey: instance.sessionKey }, "Dynamic agent context changed; system prompt refreshed");
|
|
1081
1071
|
}
|
|
1082
1072
|
/**
|
|
@@ -1101,7 +1091,6 @@ var AgentManager = class {
|
|
|
1101
1091
|
const contextFiles = this.resolveContextFilesForSession(sessionKey, instance.effectiveProfile);
|
|
1102
1092
|
const thinkingLevel = instance.agent.state.thinkingLevel ?? this.config.thinkingLevel ?? "medium";
|
|
1103
1093
|
const activeProjectContext = buildExecutionScopeContextForPrompt(sessionKey);
|
|
1104
|
-
const activeSelfVerifyContext = this.getSelfVerifyPromptContext(sessionKey, instance.effectiveProfile.agentId);
|
|
1105
1094
|
instance.agent.state.systemPrompt = rt.systemPromptBuilder.build(contextFiles, {
|
|
1106
1095
|
externalMemoryInstructions: rt.memoryManager.buildExternalSystemPrompt(),
|
|
1107
1096
|
workspaceOverride: resolvedWorkspacePath,
|
|
@@ -1113,10 +1102,9 @@ var AgentManager = class {
|
|
|
1113
1102
|
modelRef: modelId,
|
|
1114
1103
|
agentId: instance.effectiveProfile.agentId,
|
|
1115
1104
|
thinkingLevel,
|
|
1116
|
-
activeProjectContext
|
|
1105
|
+
activeProjectContext
|
|
1117
1106
|
});
|
|
1118
1107
|
instance.activeProjectContext = activeProjectContext;
|
|
1119
|
-
instance.activeSelfVerifyContext = activeSelfVerifyContext;
|
|
1120
1108
|
log.info({
|
|
1121
1109
|
sessionKey,
|
|
1122
1110
|
modelId
|
|
@@ -1169,9 +1157,17 @@ var AgentManager = class {
|
|
|
1169
1157
|
* Subscribe to agent events for a session
|
|
1170
1158
|
*/
|
|
1171
1159
|
subscribeToSession(sessionKey, callback) {
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1174
|
-
|
|
1160
|
+
const listeners = this.runtimeListeners.get(sessionKey) ?? /* @__PURE__ */ new Set();
|
|
1161
|
+
listeners.add(callback);
|
|
1162
|
+
this.runtimeListeners.set(sessionKey, listeners);
|
|
1163
|
+
return () => {
|
|
1164
|
+
listeners.delete(callback);
|
|
1165
|
+
if (listeners.size === 0) this.runtimeListeners.delete(sessionKey);
|
|
1166
|
+
};
|
|
1167
|
+
}
|
|
1168
|
+
runtimeListeners = /* @__PURE__ */ new Map();
|
|
1169
|
+
emitRuntimeEvent(sessionKey, event) {
|
|
1170
|
+
for (const listener of this.runtimeListeners.get(sessionKey) ?? []) listener(event);
|
|
1175
1171
|
}
|
|
1176
1172
|
};
|
|
1177
1173
|
//#endregion
|
|
@@ -2,8 +2,8 @@ import { createLogger } from "../../utils/logger/index.js";
|
|
|
2
2
|
import { init_logger } from "../../utils/logger.js";
|
|
3
3
|
import { summarizeUserUnderstandingQuality } from "../../storage/sqlite/user-context-quality-repository.js";
|
|
4
4
|
import "../../storage/sqlite/index.js";
|
|
5
|
-
import { resolveAdaptiveUnderstandingCadence } from "../memory/understanding/quality.js";
|
|
6
5
|
import { isAssistantTurnAborted, isAssistantTurnFailed } from "../orchestration/llm-turn-retry.js";
|
|
6
|
+
import { resolveAdaptiveUnderstandingCadence } from "../memory/understanding/quality.js";
|
|
7
7
|
import { resolveBackgroundReviewSettings } from "./settings.js";
|
|
8
8
|
import { runBackgroundReviewTurn } from "./run-background-review.js";
|
|
9
9
|
//#region src/agent/background-review/coordinator.ts
|
|
@@ -10,9 +10,9 @@ import { createExtensionAwareStreamFn } from "../../providers/extension-stream-b
|
|
|
10
10
|
import { extractProfileAgentId } from "../../config/agent-profile.js";
|
|
11
11
|
import { extractTextContent } from "../context/workspace.js";
|
|
12
12
|
import { readAgentMessageContent } from "../memory/agent-message-access.js";
|
|
13
|
+
import { isAssistantTurnAborted, isAssistantTurnFailed } from "../orchestration/llm-turn-retry.js";
|
|
13
14
|
import { resolveAgentTurnTimeoutMs, runAgentTurnWithTimeout } from "../orchestration/run-agent-turn-with-timeout.js";
|
|
14
15
|
import { claimRegisteredExtraction } from "../../user-context/extraction/registry.js";
|
|
15
|
-
import { isAssistantTurnAborted, isAssistantTurnFailed } from "../orchestration/llm-turn-retry.js";
|
|
16
16
|
import { resolveModelIntentRef } from "../../config/agent-model-intents.js";
|
|
17
17
|
import { emptyUnderstandingReview, executeUnderstandingInterpretation } from "../../user-context/extraction/executor.js";
|
|
18
18
|
import { parseSemanticUnderstanding } from "../../user-context/extraction/semantic.js";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AgentMessage, AgentTool } from '@earendil-works/pi-agent-core';
|
|
2
2
|
import type { Api, Model } from '@earendil-works/pi-ai';
|
|
3
3
|
import type { Config } from '../config/schema.js';
|
|
4
4
|
import type { MessageBus } from '../infra/bus/index.js';
|
|
5
|
-
import type
|
|
5
|
+
import { type EmbeddedTranscriptRuntime } from './embedded/transcript-runtime.js';
|
|
6
|
+
import type { RunVerification } from './coding/run-verification.js';
|
|
6
7
|
import type { ToolExecutorConfig } from './tools/executor.js';
|
|
7
8
|
export interface BuildChildToolsOptions {
|
|
8
9
|
workspace: string;
|
|
@@ -45,19 +46,21 @@ export interface DelegateChildHandleOptions {
|
|
|
45
46
|
buildChildTools: (opts: BuildChildToolsOptions) => AgentTool<any, any>[];
|
|
46
47
|
/** Optional live progress for workflow subagents. */
|
|
47
48
|
progressHooks?: DelegateChildProgressHooks;
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
transcriptRuntime?: EmbeddedTranscriptRuntime;
|
|
50
|
+
sessionKey?: string;
|
|
51
|
+
timeoutMs?: number;
|
|
52
|
+
verifyChanges?: boolean;
|
|
50
53
|
}
|
|
51
54
|
export interface DelegateChildRunResult {
|
|
52
55
|
summary: string;
|
|
53
56
|
toolIterations: number;
|
|
54
57
|
messages: AgentMessage[];
|
|
58
|
+
status: 'success' | 'failed' | 'cancelled' | 'partial';
|
|
59
|
+
verification?: Awaited<ReturnType<RunVerification['summary']>>;
|
|
55
60
|
}
|
|
56
61
|
export interface DelegateChildHandle {
|
|
57
62
|
run(): Promise<DelegateChildRunResult>;
|
|
58
63
|
abort(): void;
|
|
59
64
|
}
|
|
60
|
-
/**
|
|
61
|
-
* Build an isolated tool factory (no extensions, no session memory hooks) and a child {@link Agent}.
|
|
62
|
-
*/
|
|
65
|
+
/** Leaf workers use the same execution, transcript and verification harness as foreground turns. */
|
|
63
66
|
export declare function createDelegateChildHandle(options: DelegateChildHandleOptions): DelegateChildHandle;
|