@cortex-agent/server 2026.10.25 → 2026.10.28
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/LICENSE +21 -0
- package/README.md +23 -5
- package/THIRD_PARTY_NOTICES.txt +16546 -0
- package/defaults/prompts/clean-workspace.md +21 -0
- package/dist/agent-adapter/claude/remote-mcp-proxy.js +4 -66
- package/dist/chunks/anthropic-SUZWKBRW.js +4 -0
- package/dist/chunks/anthropic-messages-M3SMXACA.js +8 -0
- package/dist/chunks/api-GM53PHIL-GFHEXXE6.js +4 -0
- package/dist/chunks/azure-openai-responses-76YWXHSB.js +4 -0
- package/dist/chunks/bedrock-converse-stream-5UPX4NTQ.js +58 -0
- package/dist/chunks/child-runner-3GHOWGZP.js +4 -0
- package/dist/chunks/chunk-23PRJECN.js +4 -0
- package/dist/chunks/chunk-2ZNLUY2U.js +128 -0
- package/dist/chunks/chunk-3F6WW7HR.js +13 -0
- package/dist/chunks/chunk-3OKHUVEM.js +7 -0
- package/dist/chunks/chunk-3TGQSGG4.js +8 -0
- package/dist/chunks/chunk-3THJYAEF.js +4 -0
- package/dist/chunks/chunk-3YHOCPQU.js +10 -0
- package/dist/chunks/chunk-4EX2JJWB.js +4 -0
- package/dist/chunks/chunk-4LLH5OWM.js +10 -0
- package/dist/chunks/chunk-4U7XXM4W.js +4 -0
- package/dist/chunks/chunk-52T37Y47.js +8 -0
- package/dist/chunks/chunk-5M4PFLRW.js +4 -0
- package/dist/chunks/chunk-5NRGVROY.js +4 -0
- package/dist/chunks/chunk-5T7IX5KN.js +4 -0
- package/dist/chunks/chunk-6AKUD3CF.js +4 -0
- package/dist/chunks/chunk-6LZK4DDH.js +4 -0
- package/dist/chunks/chunk-6R73ICDB.js +4 -0
- package/dist/chunks/chunk-7MU2AKNM.js +4 -0
- package/dist/chunks/chunk-A34TDMIC.js +7 -0
- package/dist/chunks/chunk-AAA3UBIS.js +4 -0
- package/dist/chunks/chunk-ASYQHJVQ.js +9 -0
- package/dist/chunks/chunk-AWFUHWQK.js +4 -0
- package/dist/chunks/chunk-B3XBQEFM.js +4 -0
- package/dist/chunks/chunk-BGVHA2D4.js +4 -0
- package/dist/chunks/chunk-BGYR4ID3.js +4 -0
- package/dist/chunks/chunk-BKHDWCRT.js +79 -0
- package/dist/chunks/chunk-BR7A5SWM.js +23 -0
- package/dist/chunks/chunk-CQLH4UVX.js +4 -0
- package/dist/chunks/chunk-CVC66CFV.js +33 -0
- package/dist/chunks/chunk-CXT5IR5T.js +4 -0
- package/dist/chunks/chunk-D3NXKK2L.js +4 -0
- package/dist/chunks/chunk-D6UA4BZC.js +19 -0
- package/dist/chunks/chunk-D6VMBA4C.js +4 -0
- package/dist/chunks/chunk-DGMNI4AO.js +4 -0
- package/dist/chunks/chunk-DHSA5ACV.js +125 -0
- package/dist/chunks/chunk-DPQPXBTP.js +68 -0
- package/dist/chunks/chunk-DQJ6LLAS.js +4 -0
- package/dist/chunks/chunk-DXBSQXJL.js +18 -0
- package/dist/chunks/chunk-E6BYRULL.js +4 -0
- package/dist/chunks/chunk-E7ZMYIY6.js +30 -0
- package/dist/chunks/chunk-EQIMHXC4.js +5 -0
- package/dist/chunks/chunk-EQITBTJC.js +10 -0
- package/dist/chunks/chunk-EXJA5RIX.js +357 -0
- package/dist/chunks/chunk-FF7UELTU.js +4 -0
- package/dist/chunks/chunk-FH74NME3.js +115 -0
- package/dist/chunks/chunk-FOJQXLL2.js +6 -0
- package/dist/chunks/chunk-FOQ7VLIL.js +17 -0
- package/dist/chunks/chunk-FX6MOGLR.js +11 -0
- package/dist/chunks/chunk-FXDIR3SQ.js +4 -0
- package/dist/chunks/chunk-G2V65UBA.js +4 -0
- package/dist/chunks/chunk-H2FP6DG4.js +5 -0
- package/dist/chunks/chunk-HALUQ7ZF.js +4 -0
- package/dist/chunks/chunk-HGPBHTVD.js +6 -0
- package/dist/chunks/chunk-HU6UIDEJ.js +6 -0
- package/dist/chunks/chunk-I6OPDRVF.js +4 -0
- package/dist/chunks/chunk-ILEML5IP.js +4 -0
- package/dist/chunks/chunk-IRWZ7UPF.js +77 -0
- package/dist/chunks/chunk-J5DVLUKY.js +6 -0
- package/dist/chunks/chunk-JERCOLY3.js +142 -0
- package/dist/chunks/chunk-JW2HFMTF.js +4 -0
- package/dist/chunks/chunk-JXFG66UN.js +4 -0
- package/dist/chunks/chunk-K4NTZEDJ.js +4 -0
- package/dist/chunks/chunk-KDYEGGMW.js +4 -0
- package/dist/chunks/chunk-KENCMLRE.js +4 -0
- package/dist/chunks/chunk-KGJZAYQD.js +4 -0
- package/dist/chunks/chunk-KIGMAATV.js +23 -0
- package/dist/chunks/chunk-KIU5FAPY.js +5 -0
- package/dist/chunks/chunk-KIWMQPH7.js +739 -0
- package/dist/chunks/chunk-KRXTI4JO.js +3 -0
- package/dist/chunks/chunk-L6VCIGWS.js +11 -0
- package/dist/chunks/chunk-LACGULCN.js +10 -0
- package/dist/chunks/chunk-LCKVYFMD.js +4 -0
- package/dist/chunks/chunk-LEUENXI2.js +6 -0
- package/dist/chunks/chunk-LMDWRRX4.js +4 -0
- package/dist/chunks/chunk-LMSQZ6TQ.js +4 -0
- package/dist/chunks/chunk-MEPASGPP.js +6 -0
- package/dist/chunks/chunk-MFAEUHMV.js +28 -0
- package/dist/chunks/chunk-N6BTQN7R.js +8 -0
- package/dist/chunks/chunk-NAA7GF6Q.js +5 -0
- package/dist/chunks/chunk-NHD2ESHA.js +4 -0
- package/dist/chunks/chunk-NKDMKRSB.js +68 -0
- package/dist/chunks/chunk-NKXV32S6.js +4 -0
- package/dist/chunks/chunk-NR6U3WIZ.js +4 -0
- package/dist/chunks/chunk-NT32UURL.js +4 -0
- package/dist/chunks/chunk-NVX5IPRN.js +4 -0
- package/dist/chunks/chunk-O3JW2F7D.js +8 -0
- package/dist/chunks/chunk-OE4KH3NJ.js +4 -0
- package/dist/chunks/chunk-OISO5JXB.js +4 -0
- package/dist/chunks/chunk-OKRK6JPY.js +4 -0
- package/dist/chunks/chunk-OPYXNSMY.js +4 -0
- package/dist/chunks/chunk-OSEIQ7SS.js +4 -0
- package/dist/chunks/chunk-OZGBWAT2.js +4 -0
- package/dist/chunks/chunk-P52RMIYX.js +6 -0
- package/dist/chunks/chunk-PBJ5MPPX.js +60 -0
- package/dist/chunks/chunk-PFMEUFJ7.js +4 -0
- package/dist/chunks/chunk-PMG4YGDU.js +7 -0
- package/dist/chunks/chunk-PXS5SHOV.js +4 -0
- package/dist/chunks/chunk-PZMGBKUR.js +13 -0
- package/dist/chunks/chunk-PZMXHA6X.js +9 -0
- package/dist/chunks/chunk-Q4UGYGU5.js +4 -0
- package/dist/chunks/chunk-Q7CE3UIE.js +133 -0
- package/dist/chunks/chunk-QBKCAIJG.js +4 -0
- package/dist/chunks/chunk-QEOFEETJ.js +4 -0
- package/dist/chunks/chunk-QN44UXQR.js +11 -0
- package/dist/chunks/chunk-QUUEQRIT.js +4 -0
- package/dist/chunks/chunk-QWAQHHRS.js +4 -0
- package/dist/chunks/chunk-RA6HKFBV.js +4 -0
- package/dist/chunks/chunk-REBNWCKI.js +4 -0
- package/dist/chunks/chunk-REPYBMQS.js +4 -0
- package/dist/chunks/chunk-RO4C2MJP.js +4 -0
- package/dist/chunks/chunk-SKHLZ6XY.js +9 -0
- package/dist/chunks/chunk-STUHNKQS.js +4 -0
- package/dist/chunks/chunk-SUFW24P4.js +7 -0
- package/dist/chunks/chunk-TAWLERZA.js +4 -0
- package/dist/chunks/chunk-TCAEECDI.js +4 -0
- package/dist/chunks/chunk-TJ4GQRT6.js +8 -0
- package/dist/chunks/chunk-TURBFBYN.js +4 -0
- package/dist/chunks/chunk-TWAEABGG.js +52 -0
- package/dist/chunks/chunk-TZFLHVOQ.js +7 -0
- package/dist/chunks/chunk-TZGNSHOL.js +4 -0
- package/dist/chunks/chunk-UD3NMUHR.js +12 -0
- package/dist/chunks/chunk-UNVEZI57.js +4 -0
- package/dist/chunks/chunk-USBJFDJ6.js +4 -0
- package/dist/chunks/chunk-V3AQJSWR.js +4 -0
- package/dist/chunks/chunk-VQUPKMDR.js +4 -0
- package/dist/chunks/chunk-W25TB3PU.js +4 -0
- package/dist/chunks/chunk-W5LGYSPZ.js +4 -0
- package/dist/chunks/chunk-WEZWKMYU.js +4 -0
- package/dist/chunks/chunk-WHC7AYZD.js +4 -0
- package/dist/chunks/chunk-X2GYYRVM.js +22 -0
- package/dist/chunks/chunk-XAJLZR7C.js +28 -0
- package/dist/chunks/chunk-XAXWLYH5.js +4 -0
- package/dist/chunks/chunk-XBJOYU5Y.js +4 -0
- package/dist/chunks/chunk-XH6FMP3N.js +71 -0
- package/dist/chunks/chunk-XIECJESP.js +4 -0
- package/dist/chunks/chunk-XNSSUVT6.js +4 -0
- package/dist/chunks/chunk-XSRZHN63.js +4 -0
- package/dist/chunks/chunk-Y3GFB5XM.js +8 -0
- package/dist/chunks/chunk-Y6ZEVVL5.js +4 -0
- package/dist/chunks/chunk-YAEVYJAR.js +4 -0
- package/dist/chunks/chunk-YG7OEPR2.js +6 -0
- package/dist/chunks/chunk-YHIWOGVL.js +4 -0
- package/dist/chunks/chunk-YKKEI5GI.js +4 -0
- package/dist/chunks/chunk-YPK2CAIZ.js +8 -0
- package/dist/chunks/chunk-YZSHTWNM.js +92 -0
- package/dist/chunks/chunk-Z2Q2NR46.js +34 -0
- package/dist/chunks/chunk-Z4H3VDHI.js +4 -0
- package/dist/chunks/chunk-ZFPMIQA3.js +6 -0
- package/dist/chunks/chunk-ZNZFWSPH.js +4 -0
- package/dist/chunks/chunk-ZQ7LGTSN.js +8 -0
- package/dist/chunks/chunk-ZSV6TO7Q.js +4 -0
- package/dist/chunks/cli-5DBTRMHU.js +53 -0
- package/dist/chunks/client-XOGYH5UR.js +4 -0
- package/dist/chunks/cloudflare-workers-ai-system-one-32JCFHI3.js +4 -0
- package/dist/chunks/config-DJSQI77S-335IXHSM.js +4 -0
- package/dist/chunks/context-VCQH5OB6.js +4 -0
- package/dist/chunks/cost-PGGFI7QJ.js +5 -0
- package/dist/chunks/dist-7RWW7YH4.js +11 -0
- package/dist/chunks/dist-PUKMZ7GW.js +4 -0
- package/dist/chunks/easter-egg-3d-MO4MOEVF.js +4 -0
- package/dist/chunks/es5-VNTQPCKX.js +4 -0
- package/dist/chunks/event-streams-3JSFPOTZ.js +4 -0
- package/dist/chunks/execution-repo-ZLJTBWFC.js +4 -0
- package/dist/chunks/executions-6ARGR3IO.js +9 -0
- package/dist/chunks/file-7BN7RCAY.js +4 -0
- package/dist/chunks/gateway-UCRPMR75.js +36 -0
- package/dist/chunks/github-copilot-HAI2DA62.js +4 -0
- package/dist/chunks/google-generative-ai-2VXWLHWI.js +4 -0
- package/dist/chunks/google-vertex-UA36QP2U.js +4 -0
- package/dist/chunks/init-HA7FAQ73.js +4 -0
- package/dist/chunks/install-cli-4IZCSDFZ.js +16 -0
- package/dist/chunks/interaction-ask-G5T3H3CG.js +9 -0
- package/dist/chunks/interaction-plan-E5V42MUP.js +11 -0
- package/dist/chunks/jiti-loader-WANUXUDO.js +4 -0
- package/dist/chunks/jiti-static-loader-W3QZ4GDS.js +476 -0
- package/dist/chunks/kimi-coding-HMJRKCPA.js +4 -0
- package/dist/chunks/lib-RSOU34HQ.js +11 -0
- package/dist/chunks/llama-cpp-classify-OTXZWCMW.js +24 -0
- package/dist/chunks/local-client-stop-SQRU7ZZM.js +4 -0
- package/dist/chunks/memory-cli-PYOILNN5.js +11 -0
- package/dist/chunks/meta-KY3LNFV2.js +4 -0
- package/dist/chunks/mistral-conversations-34F66L3O.js +7 -0
- package/dist/chunks/model-resolver-N3DTAQ2S.js +4 -0
- package/dist/chunks/models-L5VF4I5O-XXNJYQMQ.js +4 -0
- package/dist/chunks/multipart-parser-GEHG6YAR.js +5 -0
- package/dist/chunks/node-PTK2HCDV.js +18 -0
- package/dist/chunks/node-VLVSZ76W.js +4 -0
- package/dist/chunks/openai-chatgpt-PETGIJOZ.js +4 -0
- package/dist/chunks/openai-codex-2REL6UQU.js +4 -0
- package/dist/chunks/openai-codex-responses-ZBVHREB3.js +12 -0
- package/dist/chunks/openai-completions-VVIB26SH.js +9 -0
- package/dist/chunks/openai-decisions-2N6ZRPZC.js +7 -0
- package/dist/chunks/openai-responses-735XA2ZX.js +6 -0
- package/dist/chunks/openrouter-GDY3BLT2.js +4 -0
- package/dist/chunks/openrouter-images-3IKETHAC.js +4 -0
- package/dist/chunks/pi-messages-I3E4ZFHA.js +10 -0
- package/dist/chunks/radius-HXRZVBDB.js +4 -0
- package/dist/chunks/remote-ops-BALZYKH6.js +14 -0
- package/dist/chunks/runner-PLVZDGHB.js +4 -0
- package/dist/chunks/runtime-6YLTA2ZD.js +4 -0
- package/dist/chunks/schedule-cli-OLASBBYJ.js +4 -0
- package/dist/chunks/slack-WAGSPZUX.js +4 -0
- package/dist/chunks/src-CCI7P7AI.js +6 -0
- package/dist/chunks/start-ui-http-QALT7C3P.js +43 -0
- package/dist/chunks/subagent-E3UC7ZHC.js +4 -0
- package/dist/chunks/time-KEHDQT6K.js +4 -0
- package/dist/chunks/tool-shims-Q6P6UXVC.js +4 -0
- package/dist/chunks/typesafe-system-one-6ULACYD4.js +4 -0
- package/dist/chunks/ui-board-4GYW6KKW.js +5 -0
- package/dist/chunks/ui-decision-U2FXSEC2.js +4 -0
- package/dist/chunks/ui-file-GVH53O3X.js +5 -0
- package/dist/chunks/ui-view-O7PLANT7.js +4 -0
- package/dist/chunks/virtual-modules-IDC5YKZJ.js +4 -0
- package/dist/chunks/waitpoint-2FGQBIAC.js +5 -0
- package/dist/chunks/workers-XN4PSTH6.js +4 -0
- package/dist/chunks/xai-KEVUJTFV.js +4 -0
- package/dist/client-bundle/manifest.json +1 -1
- package/dist/core/pi-sdk.js +4 -73
- package/dist/domain/auth/cc-auth-cli.js +4 -248
- package/dist/domain/mcp/bundled-server.js +4 -146
- package/dist/entry/app.js +601 -611
- package/dist/entry/browser-cli.js +14 -316
- package/dist/entry/cli.js +4 -587
- package/dist/entry/cortex-cli.js +4 -2
- package/dist/entry/daemon.js +7 -909
- package/dist/entry/hook-cli.js +6 -401
- package/dist/entry/production-app-bootstrap.js +5 -42
- package/dist/entry/production-evidence-export-cli.js +12 -99
- package/dist/entry/signal-cli.js +6 -198
- package/dist/tui/index.js +114 -306
- package/package.json +11 -50
- package/scripts/bundle-prune-browser.mjs +52 -0
- package/scripts/postinstall-restart-trigger.mjs +8 -0
- package/vendor/aistatus/gateway-cli.js +21 -0
- package/vendor/pi/CHANGELOG.md +6365 -0
- package/vendor/pi/README.md +95 -0
- package/vendor/pi/dist/codemode-worker.js +478 -0
- package/vendor/pi/dist/core/export-html/ansi-to-html.js +249 -0
- package/vendor/pi/dist/core/export-html/index.js +228 -0
- package/vendor/pi/dist/core/export-html/template.css +1076 -0
- package/vendor/pi/dist/core/export-html/template.html +56 -0
- package/vendor/pi/dist/core/export-html/template.js +1924 -0
- package/vendor/pi/dist/core/export-html/tool-renderer.js +110 -0
- package/vendor/pi/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/vendor/pi/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
- package/vendor/pi/dist/core/export-html/vendor/marked.min.js +79 -0
- package/vendor/pi/dist/core/extensions/loader.js +4 -0
- package/vendor/pi/dist/extensions/codemode/execute.js +507 -0
- package/vendor/pi/dist/modes/interactive/assets/clankolas.png +0 -0
- package/vendor/pi/dist/modes/interactive/theme/dark.json +78 -0
- package/vendor/pi/dist/modes/interactive/theme/light.json +78 -0
- package/vendor/pi/dist/modes/interactive/theme/system-theme.js +546 -0
- package/vendor/pi/dist/modes/interactive/theme/theme-controller.js +210 -0
- package/vendor/pi/dist/modes/interactive/theme/theme-schema.js +105 -0
- package/vendor/pi/dist/modes/interactive/theme/theme-tokens.js +94 -0
- package/vendor/pi/dist/modes/interactive/theme/theme.js +905 -0
- package/vendor/pi/dist/utils/image-resize-worker.js +4 -0
- package/vendor/pi/dist/utils/image-resize.js +4 -0
- package/vendor/pi/docs/cli-integration.md +106 -0
- package/vendor/pi/docs/cli.md +333 -0
- package/vendor/pi/docs/codemode.md +230 -0
- package/vendor/pi/docs/compaction.md +463 -0
- package/vendor/pi/docs/configuration.md +47 -0
- package/vendor/pi/docs/containerization.md +183 -0
- package/vendor/pi/docs/custom-provider.md +225 -0
- package/vendor/pi/docs/docs.json +220 -0
- package/vendor/pi/docs/environment-variables.md +101 -0
- package/vendor/pi/docs/extensions.md +400 -0
- package/vendor/pi/docs/how-pi-works.md +49 -0
- package/vendor/pi/docs/images/doom-extension.png +0 -0
- package/vendor/pi/docs/images/exy.png +0 -0
- package/vendor/pi/docs/images/interactive-mode.png +0 -0
- package/vendor/pi/docs/images/tree-view.png +0 -0
- package/vendor/pi/docs/index.md +39 -0
- package/vendor/pi/docs/json.md +226 -0
- package/vendor/pi/docs/keybindings.md +195 -0
- package/vendor/pi/docs/llama-cpp.md +121 -0
- package/vendor/pi/docs/mcp.md +272 -0
- package/vendor/pi/docs/message-types.md +279 -0
- package/vendor/pi/docs/models-configuration.md +196 -0
- package/vendor/pi/docs/models.md +225 -0
- package/vendor/pi/docs/nvidia-rtx-llama-cpp.md +96 -0
- package/vendor/pi/docs/packages.md +129 -0
- package/vendor/pi/docs/prompt-templates.md +59 -0
- package/vendor/pi/docs/providers.md +247 -0
- package/vendor/pi/docs/quickstart.md +136 -0
- package/vendor/pi/docs/rpc-commands.md +860 -0
- package/vendor/pi/docs/rpc-extension-ui.md +200 -0
- package/vendor/pi/docs/rpc.md +193 -0
- package/vendor/pi/docs/sdk.md +147 -0
- package/vendor/pi/docs/security.md +99 -0
- package/vendor/pi/docs/session-format.md +293 -0
- package/vendor/pi/docs/sessions.md +66 -0
- package/vendor/pi/docs/settings.md +172 -0
- package/vendor/pi/docs/shell-aliases.md +93 -0
- package/vendor/pi/docs/skills.md +93 -0
- package/vendor/pi/docs/slash-commands.md +60 -0
- package/vendor/pi/docs/terminal-setup.md +233 -0
- package/vendor/pi/docs/termux.md +117 -0
- package/vendor/pi/docs/themes.md +138 -0
- package/vendor/pi/docs/tmux.md +55 -0
- package/vendor/pi/docs/tui.md +195 -0
- package/vendor/pi/docs/usage.md +94 -0
- package/vendor/pi/docs/virtual-models.md +114 -0
- package/vendor/pi/docs/windows.md +81 -0
- package/vendor/pi/examples/README.md +36 -0
- package/vendor/pi/examples/extensions/README.md +214 -0
- package/vendor/pi/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/vendor/pi/examples/extensions/bash-spawn-hook.ts +30 -0
- package/vendor/pi/examples/extensions/bookmark.ts +50 -0
- package/vendor/pi/examples/extensions/border-status-editor.ts +150 -0
- package/vendor/pi/examples/extensions/built-in-tool-renderer.ts +225 -0
- package/vendor/pi/examples/extensions/claude-rules.ts +86 -0
- package/vendor/pi/examples/extensions/commands.ts +72 -0
- package/vendor/pi/examples/extensions/confirm-destructive.ts +59 -0
- package/vendor/pi/examples/extensions/custom-compaction.ts +117 -0
- package/vendor/pi/examples/extensions/custom-footer.ts +64 -0
- package/vendor/pi/examples/extensions/custom-header.ts +73 -0
- package/vendor/pi/examples/extensions/custom-provider-anthropic/index.ts +617 -0
- package/vendor/pi/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/vendor/pi/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/vendor/pi/examples/extensions/custom-provider-gitlab-duo/index.ts +405 -0
- package/vendor/pi/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/vendor/pi/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/vendor/pi/examples/extensions/debug-provider.ts +90 -0
- package/vendor/pi/examples/extensions/dirty-repo-guard.ts +56 -0
- package/vendor/pi/examples/extensions/doom-overlay/README.md +46 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom-component.ts +132 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom-engine.ts +173 -0
- package/vendor/pi/examples/extensions/doom-overlay/doom-keys.ts +104 -0
- package/vendor/pi/examples/extensions/doom-overlay/index.ts +74 -0
- package/vendor/pi/examples/extensions/doom-overlay/wad-finder.ts +55 -0
- package/vendor/pi/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/vendor/pi/examples/extensions/dynamic-resources/dynamic.json +81 -0
- package/vendor/pi/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/vendor/pi/examples/extensions/dynamic-resources/index.ts +15 -0
- package/vendor/pi/examples/extensions/dynamic-tools.ts +74 -0
- package/vendor/pi/examples/extensions/entry-renderer.ts +41 -0
- package/vendor/pi/examples/extensions/event-bus.ts +43 -0
- package/vendor/pi/examples/extensions/file-trigger.ts +41 -0
- package/vendor/pi/examples/extensions/git-checkpoint.ts +53 -0
- package/vendor/pi/examples/extensions/git-merge-and-resolve.ts +115 -0
- package/vendor/pi/examples/extensions/github-issue-autocomplete.ts +185 -0
- package/vendor/pi/examples/extensions/gondolin/index.ts +531 -0
- package/vendor/pi/examples/extensions/gondolin/package-lock.json +185 -0
- package/vendor/pi/examples/extensions/gondolin/package.json +19 -0
- package/vendor/pi/examples/extensions/handoff.ts +190 -0
- package/vendor/pi/examples/extensions/hello.ts +26 -0
- package/vendor/pi/examples/extensions/hidden-thinking-label.ts +53 -0
- package/vendor/pi/examples/extensions/inline-bash.ts +94 -0
- package/vendor/pi/examples/extensions/input-transform-streaming.ts +39 -0
- package/vendor/pi/examples/extensions/input-transform.ts +43 -0
- package/vendor/pi/examples/extensions/interactive-shell.ts +196 -0
- package/vendor/pi/examples/extensions/jev-router.ts +113 -0
- package/vendor/pi/examples/extensions/mac-system-theme.ts +47 -0
- package/vendor/pi/examples/extensions/message-renderer.ts +59 -0
- package/vendor/pi/examples/extensions/minimal-mode.ts +353 -0
- package/vendor/pi/examples/extensions/modal-editor.ts +85 -0
- package/vendor/pi/examples/extensions/model-status.ts +31 -0
- package/vendor/pi/examples/extensions/notify.ts +57 -0
- package/vendor/pi/examples/extensions/overlay-qa-tests.ts +1450 -0
- package/vendor/pi/examples/extensions/overlay-test.ts +153 -0
- package/vendor/pi/examples/extensions/permission-gate.ts +34 -0
- package/vendor/pi/examples/extensions/pirate.ts +47 -0
- package/vendor/pi/examples/extensions/plan-mode/README.md +66 -0
- package/vendor/pi/examples/extensions/plan-mode/index.ts +394 -0
- package/vendor/pi/examples/extensions/plan-mode/utils.ts +168 -0
- package/vendor/pi/examples/extensions/preset.ts +436 -0
- package/vendor/pi/examples/extensions/project-trust.ts +64 -0
- package/vendor/pi/examples/extensions/prompt-customizer.ts +49 -0
- package/vendor/pi/examples/extensions/protected-paths.ts +30 -0
- package/vendor/pi/examples/extensions/provider-payload.ts +18 -0
- package/vendor/pi/examples/extensions/qna.ts +118 -0
- package/vendor/pi/examples/extensions/question.ts +286 -0
- package/vendor/pi/examples/extensions/questionnaire.ts +448 -0
- package/vendor/pi/examples/extensions/rainbow-editor.ts +88 -0
- package/vendor/pi/examples/extensions/reload-runtime.ts +37 -0
- package/vendor/pi/examples/extensions/rpc-demo.ts +118 -0
- package/vendor/pi/examples/extensions/sandbox/index.ts +321 -0
- package/vendor/pi/examples/extensions/sandbox/package-lock.json +92 -0
- package/vendor/pi/examples/extensions/sandbox/package.json +19 -0
- package/vendor/pi/examples/extensions/send-user-message.ts +97 -0
- package/vendor/pi/examples/extensions/session-name.ts +27 -0
- package/vendor/pi/examples/extensions/shutdown-command.ts +63 -0
- package/vendor/pi/examples/extensions/snake.ts +343 -0
- package/vendor/pi/examples/extensions/space-invaders.ts +560 -0
- package/vendor/pi/examples/extensions/ssh.ts +220 -0
- package/vendor/pi/examples/extensions/status-line.ts +32 -0
- package/vendor/pi/examples/extensions/structured-output.ts +65 -0
- package/vendor/pi/examples/extensions/subagent/README.md +177 -0
- package/vendor/pi/examples/extensions/subagent/agents/planner.md +37 -0
- package/vendor/pi/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/vendor/pi/examples/extensions/subagent/agents/scout.md +50 -0
- package/vendor/pi/examples/extensions/subagent/agents/worker.md +24 -0
- package/vendor/pi/examples/extensions/subagent/agents.ts +157 -0
- package/vendor/pi/examples/extensions/subagent/index.ts +1036 -0
- package/vendor/pi/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/vendor/pi/examples/extensions/subagent/prompts/implement.md +10 -0
- package/vendor/pi/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/vendor/pi/examples/extensions/summarize.ts +199 -0
- package/vendor/pi/examples/extensions/system-prompt-header.ts +17 -0
- package/vendor/pi/examples/extensions/tic-tac-toe.ts +1008 -0
- package/vendor/pi/examples/extensions/timed-confirm.ts +70 -0
- package/vendor/pi/examples/extensions/titlebar-spinner.ts +58 -0
- package/vendor/pi/examples/extensions/todo.ts +297 -0
- package/vendor/pi/examples/extensions/tool-override.ts +144 -0
- package/vendor/pi/examples/extensions/tools.ts +146 -0
- package/vendor/pi/examples/extensions/trigger-compact.ts +50 -0
- package/vendor/pi/examples/extensions/truncated-tool.ts +195 -0
- package/vendor/pi/examples/extensions/widget-placement.ts +9 -0
- package/vendor/pi/examples/extensions/with-deps/index.ts +32 -0
- package/vendor/pi/examples/extensions/with-deps/package-lock.json +31 -0
- package/vendor/pi/examples/extensions/with-deps/package.json +22 -0
- package/vendor/pi/examples/extensions/working-indicator.ts +123 -0
- package/vendor/pi/examples/extensions/working-message-test.ts +25 -0
- package/vendor/pi/examples/rpc-client.ts +35 -0
- package/vendor/pi/examples/rpc-extension-ui.ts +661 -0
- package/vendor/pi/examples/sdk/01-minimal.ts +26 -0
- package/vendor/pi/examples/sdk/02-custom-model.ts +49 -0
- package/vendor/pi/examples/sdk/03-custom-prompt.ts +75 -0
- package/vendor/pi/examples/sdk/04-skills.ts +55 -0
- package/vendor/pi/examples/sdk/05-tools.ts +48 -0
- package/vendor/pi/examples/sdk/06-extensions.ts +99 -0
- package/vendor/pi/examples/sdk/07-context-files.ts +47 -0
- package/vendor/pi/examples/sdk/08-prompt-templates.ts +51 -0
- package/vendor/pi/examples/sdk/09-api-keys-and-oauth.ts +34 -0
- package/vendor/pi/examples/sdk/10-settings.ts +53 -0
- package/vendor/pi/examples/sdk/11-sessions.ts +52 -0
- package/vendor/pi/examples/sdk/12-full-control.ts +74 -0
- package/vendor/pi/examples/sdk/13-session-runtime.ts +67 -0
- package/vendor/pi/examples/sdk/14-codemode-mcp.ts +61 -0
- package/vendor/pi/examples/sdk/README.md +141 -0
- package/vendor/pi/package.json +98 -0
- package/vendor/pi/schemas/keybindings.schema.json +393 -0
- package/vendor/pi/schemas/models.schema.json +1211 -0
- package/vendor/pi/schemas/settings.schema.json +783 -0
- package/vendor/pi/schemas/theme.schema.json +365 -0
- package/vendor/pi-ai/bedrock.js +4 -0
- package/vendor/pi-ai/oauth-load.js +4 -0
- package/vendor/quickjs.wasm +0 -0
- package/web/dist/assets/board-math-css-BPXakv_3.js +2 -0
- package/web/dist/assets/index-BHZpFXhc.js +525 -0
- package/web/dist/assets/index-DqWMdMkh.css +1 -0
- package/web/dist/assets/index-WCm6wwmM.js +1 -0
- package/web/dist/index.html +2 -2
- package/dist/agent-adapter/bg-wait.d.ts +0 -11
- package/dist/agent-adapter/bg-wait.js +0 -32
- package/dist/agent-adapter/capabilities.d.ts +0 -18
- package/dist/agent-adapter/capabilities.js +0 -39
- package/dist/agent-adapter/claude/active-capture-registry.d.ts +0 -7
- package/dist/agent-adapter/claude/active-capture-registry.js +0 -42
- package/dist/agent-adapter/claude/adapter.d.ts +0 -170
- package/dist/agent-adapter/claude/adapter.js +0 -459
- package/dist/agent-adapter/claude/assistant-blocks.d.ts +0 -5
- package/dist/agent-adapter/claude/assistant-blocks.js +0 -61
- package/dist/agent-adapter/claude/bg-task-tracker.d.ts +0 -105
- package/dist/agent-adapter/claude/bg-task-tracker.js +0 -168
- package/dist/agent-adapter/claude/cache-refresh.d.ts +0 -58
- package/dist/agent-adapter/claude/cache-refresh.js +0 -145
- package/dist/agent-adapter/claude/cache-touch.d.ts +0 -12
- package/dist/agent-adapter/claude/cache-touch.js +0 -75
- package/dist/agent-adapter/claude/compact-window.d.ts +0 -18
- package/dist/agent-adapter/claude/compact-window.js +0 -49
- package/dist/agent-adapter/claude/context-usage.d.ts +0 -28
- package/dist/agent-adapter/claude/context-usage.js +0 -173
- package/dist/agent-adapter/claude/defaults.d.ts +0 -42
- package/dist/agent-adapter/claude/defaults.js +0 -59
- package/dist/agent-adapter/claude/engine.d.ts +0 -75
- package/dist/agent-adapter/claude/engine.js +0 -139
- package/dist/agent-adapter/claude/event-parser.d.ts +0 -60
- package/dist/agent-adapter/claude/event-parser.js +0 -259
- package/dist/agent-adapter/claude/event-translator.d.ts +0 -45
- package/dist/agent-adapter/claude/event-translator.js +0 -98
- package/dist/agent-adapter/claude/hooks-builder.d.ts +0 -19
- package/dist/agent-adapter/claude/hooks-builder.js +0 -57
- package/dist/agent-adapter/claude/mcp-config.d.ts +0 -11
- package/dist/agent-adapter/claude/mcp-config.js +0 -142
- package/dist/agent-adapter/claude/remote-mcp-proxy.d.ts +0 -1
- package/dist/agent-adapter/claude/session-options.d.ts +0 -70
- package/dist/agent-adapter/claude/session-options.js +0 -148
- package/dist/agent-adapter/claude/spawn-args.d.ts +0 -70
- package/dist/agent-adapter/claude/spawn-args.js +0 -367
- package/dist/agent-adapter/claude/tool-summarizers.d.ts +0 -2
- package/dist/agent-adapter/claude/tool-summarizers.js +0 -20
- package/dist/agent-adapter/claude/transcript-clear.d.ts +0 -42
- package/dist/agent-adapter/claude/transcript-clear.js +0 -217
- package/dist/agent-adapter/claude/transcript-path.d.ts +0 -39
- package/dist/agent-adapter/claude/transcript-path.js +0 -114
- package/dist/agent-adapter/claude/turn-machine.d.ts +0 -220
- package/dist/agent-adapter/claude/turn-machine.js +0 -731
- package/dist/agent-adapter/claude/window-warmup.d.ts +0 -13
- package/dist/agent-adapter/claude/window-warmup.js +0 -38
- package/dist/agent-adapter/continuation-phase.d.ts +0 -131
- package/dist/agent-adapter/continuation-phase.js +0 -345
- package/dist/agent-adapter/engine-injections.d.ts +0 -47
- package/dist/agent-adapter/engine-injections.js +0 -80
- package/dist/agent-adapter/mcp-remote-fetch.d.ts +0 -1
- package/dist/agent-adapter/mcp-remote-fetch.js +0 -32
- package/dist/agent-adapter/normalize/event-types.d.ts +0 -125
- package/dist/agent-adapter/normalize/event-types.js +0 -1
- package/dist/agent-adapter/normalize/prompt-builder.d.ts +0 -22
- package/dist/agent-adapter/normalize/prompt-builder.js +0 -41
- package/dist/agent-adapter/normalize/tool-result-images.d.ts +0 -11
- package/dist/agent-adapter/normalize/tool-result-images.js +0 -32
- package/dist/agent-adapter/pi/adapter.d.ts +0 -125
- package/dist/agent-adapter/pi/adapter.js +0 -275
- package/dist/agent-adapter/pi/agent-dir.d.ts +0 -57
- package/dist/agent-adapter/pi/agent-dir.js +0 -154
- package/dist/agent-adapter/pi/background-subagent.d.ts +0 -26
- package/dist/agent-adapter/pi/background-subagent.js +0 -1
- package/dist/agent-adapter/pi/child-events.d.ts +0 -13
- package/dist/agent-adapter/pi/child-events.js +0 -96
- package/dist/agent-adapter/pi/child-runner.d.ts +0 -31
- package/dist/agent-adapter/pi/child-runner.js +0 -133
- package/dist/agent-adapter/pi/child-session.d.ts +0 -28
- package/dist/agent-adapter/pi/child-session.js +0 -70
- package/dist/agent-adapter/pi/custom-catalog.d.ts +0 -10
- package/dist/agent-adapter/pi/custom-catalog.js +0 -38
- package/dist/agent-adapter/pi/defaults.d.ts +0 -7
- package/dist/agent-adapter/pi/defaults.js +0 -11
- package/dist/agent-adapter/pi/discovery.d.ts +0 -37
- package/dist/agent-adapter/pi/discovery.js +0 -33
- package/dist/agent-adapter/pi/engine.d.ts +0 -66
- package/dist/agent-adapter/pi/engine.js +0 -180
- package/dist/agent-adapter/pi/event-parser.d.ts +0 -43
- package/dist/agent-adapter/pi/event-parser.js +0 -446
- package/dist/agent-adapter/pi/extensions.d.ts +0 -33
- package/dist/agent-adapter/pi/extensions.js +0 -58
- package/dist/agent-adapter/pi/hook-bridge.d.ts +0 -54
- package/dist/agent-adapter/pi/hook-bridge.js +0 -394
- package/dist/agent-adapter/pi/image-first.d.ts +0 -3
- package/dist/agent-adapter/pi/image-first.js +0 -31
- package/dist/agent-adapter/pi/mcp-bridge-logic.d.ts +0 -32
- package/dist/agent-adapter/pi/mcp-bridge-logic.js +0 -63
- package/dist/agent-adapter/pi/mcp-bridge.d.ts +0 -65
- package/dist/agent-adapter/pi/mcp-bridge.js +0 -389
- package/dist/agent-adapter/pi/native-tool-policy.d.ts +0 -3
- package/dist/agent-adapter/pi/native-tool-policy.js +0 -11
- package/dist/agent-adapter/pi/pi-session.d.ts +0 -185
- package/dist/agent-adapter/pi/pi-session.js +0 -656
- package/dist/agent-adapter/pi/providers-config.d.ts +0 -60
- package/dist/agent-adapter/pi/providers-config.js +0 -96
- package/dist/agent-adapter/pi/quota-probe.d.ts +0 -12
- package/dist/agent-adapter/pi/quota-probe.js +0 -33
- package/dist/agent-adapter/pi/quota-sink.d.ts +0 -33
- package/dist/agent-adapter/pi/quota-sink.js +0 -57
- package/dist/agent-adapter/pi/runtime-settings.d.ts +0 -9
- package/dist/agent-adapter/pi/runtime-settings.js +0 -53
- package/dist/agent-adapter/pi/runtime.d.ts +0 -48
- package/dist/agent-adapter/pi/runtime.js +0 -163
- package/dist/agent-adapter/pi/session-files.d.ts +0 -2
- package/dist/agent-adapter/pi/session-files.js +0 -15
- package/dist/agent-adapter/pi/session-options.d.ts +0 -86
- package/dist/agent-adapter/pi/session-options.js +0 -162
- package/dist/agent-adapter/pi/session-support.d.ts +0 -54
- package/dist/agent-adapter/pi/session-support.js +0 -101
- package/dist/agent-adapter/pi/subagent-bridge.d.ts +0 -17
- package/dist/agent-adapter/pi/subagent-bridge.js +0 -1
- package/dist/agent-adapter/pi/subagent.d.ts +0 -100
- package/dist/agent-adapter/pi/subagent.js +0 -199
- package/dist/agent-adapter/pi/tool-shims.d.ts +0 -32
- package/dist/agent-adapter/pi/tool-shims.js +0 -148
- package/dist/agent-adapter/pi/ui-context.d.ts +0 -20
- package/dist/agent-adapter/pi/ui-context.js +0 -92
- package/dist/agent-adapter/pi/web-fetch.d.ts +0 -13
- package/dist/agent-adapter/pi/web-fetch.js +0 -196
- package/dist/agent-adapter/pi/web-search.d.ts +0 -9
- package/dist/agent-adapter/pi/web-search.js +0 -517
- package/dist/agent-adapter/run-events.d.ts +0 -169
- package/dist/agent-adapter/run-events.js +0 -119
- package/dist/agent-adapter/types.d.ts +0 -330
- package/dist/agent-adapter/types.js +0 -3
- package/dist/core/agents/roles.d.ts +0 -50
- package/dist/core/agents/roles.js +0 -176
- package/dist/core/agents/subagent/attribution.d.ts +0 -15
- package/dist/core/agents/subagent/attribution.js +0 -60
- package/dist/core/agents/subagent/catalog.d.ts +0 -65
- package/dist/core/agents/subagent/catalog.js +0 -200
- package/dist/core/agents/subagent/model-spec.d.ts +0 -28
- package/dist/core/agents/subagent/model-spec.js +0 -39
- package/dist/core/agents/subagent/orchestrate.d.ts +0 -25
- package/dist/core/agents/subagent/orchestrate.js +0 -92
- package/dist/core/agents/subagent/schema.d.ts +0 -12
- package/dist/core/agents/subagent/schema.js +0 -51
- package/dist/core/agents/subagent/types.d.ts +0 -84
- package/dist/core/agents/subagent/types.js +0 -1
- package/dist/core/agents/subagent/usage.d.ts +0 -8
- package/dist/core/agents/subagent/usage.js +0 -32
- package/dist/core/anthropic-model-discovery.d.ts +0 -54
- package/dist/core/anthropic-model-discovery.js +0 -156
- package/dist/core/anthropic-models.d.ts +0 -1
- package/dist/core/anthropic-models.js +0 -13
- package/dist/core/async-mutex.d.ts +0 -6
- package/dist/core/async-mutex.js +0 -32
- package/dist/core/atomic-write.d.ts +0 -9
- package/dist/core/atomic-write.js +0 -104
- package/dist/core/auth.d.ts +0 -40
- package/dist/core/auth.js +0 -94
- package/dist/core/board-action.d.ts +0 -19
- package/dist/core/board-action.js +0 -24
- package/dist/core/builtin-layer.d.ts +0 -22
- package/dist/core/builtin-layer.js +0 -45
- package/dist/core/cached-scan.d.ts +0 -42
- package/dist/core/cached-scan.js +0 -95
- package/dist/core/calver.d.ts +0 -1
- package/dist/core/calver.js +0 -25
- package/dist/core/claude-credentials.d.ts +0 -91
- package/dist/core/claude-credentials.js +0 -242
- package/dist/core/cli-utils.d.ts +0 -56
- package/dist/core/cli-utils.js +0 -70
- package/dist/core/codex-quota.d.ts +0 -27
- package/dist/core/codex-quota.js +0 -55
- package/dist/core/codex-token.d.ts +0 -4
- package/dist/core/codex-token.js +0 -26
- package/dist/core/config-generator.d.ts +0 -17
- package/dist/core/config-generator.js +0 -181
- package/dist/core/debug-mode.d.ts +0 -15
- package/dist/core/debug-mode.js +0 -22
- package/dist/core/exec-async.d.ts +0 -28
- package/dist/core/exec-async.js +0 -48
- package/dist/core/file-lock.d.ts +0 -15
- package/dist/core/file-lock.js +0 -164
- package/dist/core/format-duration.d.ts +0 -7
- package/dist/core/format-duration.js +0 -23
- package/dist/core/gateway-generator.d.ts +0 -152
- package/dist/core/gateway-generator.js +0 -559
- package/dist/core/git-availability.d.ts +0 -2
- package/dist/core/git-availability.js +0 -43
- package/dist/core/hook-bus.d.ts +0 -25
- package/dist/core/hook-bus.js +0 -99
- package/dist/core/hook-exec.d.ts +0 -15
- package/dist/core/hook-exec.js +0 -86
- package/dist/core/hook-scripts.d.ts +0 -19
- package/dist/core/hook-scripts.js +0 -30
- package/dist/core/i18n.d.ts +0 -19
- package/dist/core/i18n.js +0 -42
- package/dist/core/icons.d.ts +0 -72
- package/dist/core/icons.js +0 -71
- package/dist/core/json-repository.d.ts +0 -78
- package/dist/core/json-repository.js +0 -154
- package/dist/core/locales/en.d.ts +0 -911
- package/dist/core/locales/en.js +0 -32
- package/dist/core/locales/slices/commands.d.ts +0 -301
- package/dist/core/locales/slices/commands.js +0 -634
- package/dist/core/locales/slices/init.d.ts +0 -153
- package/dist/core/locales/slices/init.js +0 -431
- package/dist/core/locales/slices/interactions.d.ts +0 -47
- package/dist/core/locales/slices/interactions.js +0 -99
- package/dist/core/locales/slices/lang.d.ts +0 -8
- package/dist/core/locales/slices/lang.js +0 -15
- package/dist/core/locales/slices/notices.d.ts +0 -78
- package/dist/core/locales/slices/notices.js +0 -156
- package/dist/core/locales/slices/providers.d.ts +0 -43
- package/dist/core/locales/slices/providers.js +0 -87
- package/dist/core/locales/slices/scheduling.d.ts +0 -33
- package/dist/core/locales/slices/scheduling.js +0 -65
- package/dist/core/locales/slices/startup.d.ts +0 -10
- package/dist/core/locales/slices/startup.js +0 -19
- package/dist/core/locales/slices/status.d.ts +0 -48
- package/dist/core/locales/slices/status.js +0 -109
- package/dist/core/locales/slices/tui.d.ts +0 -93
- package/dist/core/locales/slices/tui.js +0 -192
- package/dist/core/locales/slices/uiextra.d.ts +0 -49
- package/dist/core/locales/slices/uiextra.js +0 -102
- package/dist/core/locales/slices/uimsg.d.ts +0 -74
- package/dist/core/locales/slices/uimsg.js +0 -158
- package/dist/core/locales/zh.d.ts +0 -5
- package/dist/core/locales/zh.js +0 -30
- package/dist/core/log.d.ts +0 -16
- package/dist/core/log.js +0 -174
- package/dist/core/loopback-http.d.ts +0 -6
- package/dist/core/loopback-http.js +0 -43
- package/dist/core/mcp-bundles.d.ts +0 -8
- package/dist/core/mcp-bundles.js +0 -47
- package/dist/core/mcp-timeout.d.ts +0 -1
- package/dist/core/mcp-timeout.js +0 -1
- package/dist/core/mcp-tool-gate.d.ts +0 -25
- package/dist/core/mcp-tool-gate.js +0 -97
- package/dist/core/media-types.d.ts +0 -20
- package/dist/core/media-types.js +0 -63
- package/dist/core/models-generator.d.ts +0 -29
- package/dist/core/models-generator.js +0 -82
- package/dist/core/native-name.d.ts +0 -4
- package/dist/core/native-name.js +0 -57
- package/dist/core/paths.d.ts +0 -63
- package/dist/core/paths.js +0 -105
- package/dist/core/pi-sdk.d.ts +0 -38
- package/dist/core/pi-session-filename.d.ts +0 -10
- package/dist/core/pi-session-filename.js +0 -49
- package/dist/core/platform-settings-spec.d.ts +0 -47
- package/dist/core/platform-settings-spec.js +0 -28
- package/dist/core/private-dir.d.ts +0 -13
- package/dist/core/private-dir.js +0 -48
- package/dist/core/process-command-line.d.ts +0 -6
- package/dist/core/process-command-line.js +0 -39
- package/dist/core/prompt-template.d.ts +0 -14
- package/dist/core/prompt-template.js +0 -29
- package/dist/core/rebuild-progress.d.ts +0 -59
- package/dist/core/rebuild-progress.js +0 -106
- package/dist/core/resilient-watch.d.ts +0 -28
- package/dist/core/resilient-watch.js +0 -108
- package/dist/core/resume-reminder.d.ts +0 -5
- package/dist/core/resume-reminder.js +0 -12
- package/dist/core/run-registry.d.ts +0 -134
- package/dist/core/run-registry.js +0 -256
- package/dist/core/runtime-env.d.ts +0 -1
- package/dist/core/runtime-env.js +0 -11
- package/dist/core/session-holds.d.ts +0 -88
- package/dist/core/session-holds.js +0 -168
- package/dist/core/session-state.d.ts +0 -32
- package/dist/core/session-state.js +0 -39
- package/dist/core/session-todos.d.ts +0 -12
- package/dist/core/session-todos.js +0 -44
- package/dist/core/settings-migration.d.ts +0 -5
- package/dist/core/settings-migration.js +0 -128
- package/dist/core/settings-spec.d.ts +0 -301
- package/dist/core/settings-spec.js +0 -309
- package/dist/core/settings.d.ts +0 -19
- package/dist/core/settings.js +0 -492
- package/dist/core/short-session-id.d.ts +0 -2
- package/dist/core/short-session-id.js +0 -4
- package/dist/core/singleton-lock.d.ts +0 -39
- package/dist/core/singleton-lock.js +0 -127
- package/dist/core/status-format.d.ts +0 -70
- package/dist/core/status-format.js +0 -59
- package/dist/core/subagent-spawn.d.ts +0 -40
- package/dist/core/subagent-spawn.js +0 -47
- package/dist/core/team-action.d.ts +0 -28
- package/dist/core/team-action.js +0 -65
- package/dist/core/todo.d.ts +0 -18
- package/dist/core/todo.js +0 -79
- package/dist/core/tool-names.d.ts +0 -12
- package/dist/core/tool-names.js +0 -65
- package/dist/core/types/agent-types.d.ts +0 -173
- package/dist/core/types/agent-types.js +0 -1
- package/dist/core/types/environment-types.d.ts +0 -45
- package/dist/core/types/environment-types.js +0 -1
- package/dist/core/utils.d.ts +0 -72
- package/dist/core/utils.js +0 -176
- package/dist/core/version.d.ts +0 -6
- package/dist/core/version.js +0 -11
- package/dist/core/workspace-filenames.d.ts +0 -9
- package/dist/core/workspace-filenames.js +0 -61
- package/dist/domain/agents/agent-state.d.ts +0 -19
- package/dist/domain/agents/agent-state.js +0 -73
- package/dist/domain/agents/agent-switch.d.ts +0 -16
- package/dist/domain/agents/agent-switch.js +0 -30
- package/dist/domain/agents/config.d.ts +0 -20
- package/dist/domain/agents/config.js +0 -89
- package/dist/domain/agents/engine-selection.d.ts +0 -21
- package/dist/domain/agents/engine-selection.js +0 -37
- package/dist/domain/agents/environments/entities.d.ts +0 -50
- package/dist/domain/agents/environments/entities.js +0 -94
- package/dist/domain/agents/environments/file-refs.d.ts +0 -20
- package/dist/domain/agents/environments/file-refs.js +0 -51
- package/dist/domain/agents/environments/index.d.ts +0 -7
- package/dist/domain/agents/environments/index.js +0 -9
- package/dist/domain/agents/environments/paths.d.ts +0 -7
- package/dist/domain/agents/environments/paths.js +0 -9
- package/dist/domain/agents/environments/prompt-includes.d.ts +0 -1
- package/dist/domain/agents/environments/prompt-includes.js +0 -91
- package/dist/domain/agents/environments/registry.d.ts +0 -17
- package/dist/domain/agents/environments/registry.js +0 -163
- package/dist/domain/agents/environments/resolve.d.ts +0 -11
- package/dist/domain/agents/environments/resolve.js +0 -36
- package/dist/domain/agents/environments/schema.d.ts +0 -69
- package/dist/domain/agents/environments/schema.js +0 -115
- package/dist/domain/agents/environments/schema.parity.d.ts +0 -1
- package/dist/domain/agents/environments/schema.parity.js +0 -7
- package/dist/domain/agents/environments/system-prompt.d.ts +0 -37
- package/dist/domain/agents/environments/system-prompt.js +0 -110
- package/dist/domain/agents/index.d.ts +0 -6
- package/dist/domain/agents/index.js +0 -7
- package/dist/domain/agents/model-selection.d.ts +0 -30
- package/dist/domain/agents/model-selection.js +0 -111
- package/dist/domain/agents/models.d.ts +0 -12
- package/dist/domain/agents/models.js +0 -94
- package/dist/domain/agents/provider-run-lifecycle.d.ts +0 -11
- package/dist/domain/agents/provider-run-lifecycle.js +0 -17
- package/dist/domain/agents/subagent/background-spend.d.ts +0 -17
- package/dist/domain/agents/subagent/background-spend.js +0 -42
- package/dist/domain/agents/subagent/foreign.d.ts +0 -13
- package/dist/domain/agents/subagent/foreign.js +0 -30
- package/dist/domain/agents/subagent/registry.d.ts +0 -106
- package/dist/domain/agents/subagent/registry.js +0 -272
- package/dist/domain/agents/subagent/runner.d.ts +0 -61
- package/dist/domain/agents/subagent/runner.js +0 -301
- package/dist/domain/agents/subagent/service.d.ts +0 -26
- package/dist/domain/agents/subagent/service.js +0 -68
- package/dist/domain/auth/anthropic-env.d.ts +0 -20
- package/dist/domain/auth/anthropic-env.js +0 -132
- package/dist/domain/auth/auth-events.d.ts +0 -18
- package/dist/domain/auth/auth-events.js +0 -34
- package/dist/domain/auth/auth-format.d.ts +0 -2
- package/dist/domain/auth/auth-format.js +0 -53
- package/dist/domain/auth/auth-status.d.ts +0 -63
- package/dist/domain/auth/auth-status.js +0 -286
- package/dist/domain/auth/auth-watch.d.ts +0 -16
- package/dist/domain/auth/auth-watch.js +0 -166
- package/dist/domain/auth/cc-auth-cli.d.ts +0 -30
- package/dist/domain/auth/cc-login.d.ts +0 -7
- package/dist/domain/auth/cc-login.js +0 -20
- package/dist/domain/auth/cc-subscription.d.ts +0 -18
- package/dist/domain/auth/cc-subscription.js +0 -54
- package/dist/domain/auth/claude-account-credentials.d.ts +0 -13
- package/dist/domain/auth/claude-account-credentials.js +0 -22
- package/dist/domain/auth/claude-user-settings.d.ts +0 -22
- package/dist/domain/auth/claude-user-settings.js +0 -104
- package/dist/domain/auth/codex-credentials.d.ts +0 -13
- package/dist/domain/auth/codex-credentials.js +0 -25
- package/dist/domain/auth/gateway-sync.d.ts +0 -19
- package/dist/domain/auth/gateway-sync.js +0 -46
- package/dist/domain/auth/index.d.ts +0 -14
- package/dist/domain/auth/index.js +0 -14
- package/dist/domain/auth/login-flow.d.ts +0 -141
- package/dist/domain/auth/login-flow.js +0 -339
- package/dist/domain/auth/login-service.d.ts +0 -33
- package/dist/domain/auth/login-service.js +0 -65
- package/dist/domain/auth/logout.d.ts +0 -32
- package/dist/domain/auth/logout.js +0 -156
- package/dist/domain/auth/pi-login.d.ts +0 -26
- package/dist/domain/auth/pi-login.js +0 -70
- package/dist/domain/auth/pi-oauth.d.ts +0 -26
- package/dist/domain/auth/pi-oauth.js +0 -85
- package/dist/domain/auth/pi-runtime.d.ts +0 -82
- package/dist/domain/auth/pi-runtime.js +0 -40
- package/dist/domain/benchmark/accounting-reconciliation.d.ts +0 -117
- package/dist/domain/benchmark/accounting-reconciliation.js +0 -174
- package/dist/domain/benchmark/atif.d.ts +0 -42
- package/dist/domain/benchmark/atif.js +0 -263
- package/dist/domain/benchmark/attempt-record.d.ts +0 -167
- package/dist/domain/benchmark/attempt-record.js +0 -113
- package/dist/domain/benchmark/benchmark-types.d.ts +0 -17
- package/dist/domain/benchmark/benchmark-types.js +0 -1
- package/dist/domain/benchmark/composite-manifest.d.ts +0 -117
- package/dist/domain/benchmark/composite-manifest.js +0 -477
- package/dist/domain/benchmark/decimal-text.d.ts +0 -22
- package/dist/domain/benchmark/decimal-text.js +0 -42
- package/dist/domain/benchmark/identity.d.ts +0 -39
- package/dist/domain/benchmark/identity.js +0 -70
- package/dist/domain/benchmark/journal.d.ts +0 -47
- package/dist/domain/benchmark/journal.js +0 -254
- package/dist/domain/benchmark/manifest-contract.d.ts +0 -30
- package/dist/domain/benchmark/manifest-contract.js +0 -118
- package/dist/domain/benchmark/production-attempt-identity.d.ts +0 -73
- package/dist/domain/benchmark/production-attempt-identity.js +0 -372
- package/dist/domain/benchmark/production-attempt-journal.d.ts +0 -38
- package/dist/domain/benchmark/production-attempt-journal.js +0 -267
- package/dist/domain/benchmark/production-benchmark-evidence.d.ts +0 -2
- package/dist/domain/benchmark/production-benchmark-evidence.js +0 -67
- package/dist/domain/benchmark/production-evidence-export.d.ts +0 -14
- package/dist/domain/benchmark/production-evidence-export.js +0 -134
- package/dist/domain/benchmark/production-evidence-journal.d.ts +0 -11
- package/dist/domain/benchmark/production-evidence-journal.js +0 -81
- package/dist/domain/benchmark/production-evidence-projection.d.ts +0 -39
- package/dist/domain/benchmark/production-evidence-projection.js +0 -392
- package/dist/domain/benchmark/role-surface.d.ts +0 -4
- package/dist/domain/benchmark/role-surface.js +0 -117
- package/dist/domain/benchmark/session-evidence.d.ts +0 -7
- package/dist/domain/benchmark/session-evidence.js +0 -34
- package/dist/domain/boards/board-context.d.ts +0 -17
- package/dist/domain/boards/board-context.js +0 -11
- package/dist/domain/boards/board-paths.d.ts +0 -18
- package/dist/domain/boards/board-paths.js +0 -32
- package/dist/domain/boards/board-service.d.ts +0 -50
- package/dist/domain/boards/board-service.js +0 -146
- package/dist/domain/boards/board-watcher.d.ts +0 -36
- package/dist/domain/boards/board-watcher.js +0 -284
- package/dist/domain/boards/decision-projection.d.ts +0 -46
- package/dist/domain/boards/decision-projection.js +0 -44
- package/dist/domain/browser/broker.d.ts +0 -99
- package/dist/domain/browser/broker.js +0 -487
- package/dist/domain/costs/account-reset.d.ts +0 -30
- package/dist/domain/costs/account-reset.js +0 -98
- package/dist/domain/costs/aistatus-config.d.ts +0 -27
- package/dist/domain/costs/aistatus-config.js +0 -56
- package/dist/domain/costs/claude-account.d.ts +0 -34
- package/dist/domain/costs/claude-account.js +0 -170
- package/dist/domain/costs/codex-account.d.ts +0 -55
- package/dist/domain/costs/codex-account.js +0 -155
- package/dist/domain/costs/cost-tracker.d.ts +0 -181
- package/dist/domain/costs/cost-tracker.js +0 -350
- package/dist/domain/costs/gateway-manager.d.ts +0 -6
- package/dist/domain/costs/gateway-manager.js +0 -225
- package/dist/domain/costs/rate-limit-throttle.d.ts +0 -78
- package/dist/domain/costs/rate-limit-throttle.js +0 -502
- package/dist/domain/costs/reset-account.d.ts +0 -36
- package/dist/domain/costs/reset-account.js +0 -5
- package/dist/domain/costs/resume-registry.d.ts +0 -30
- package/dist/domain/costs/resume-registry.js +0 -108
- package/dist/domain/costs/usage-service.d.ts +0 -80
- package/dist/domain/costs/usage-service.js +0 -618
- package/dist/domain/costs/usage-store.d.ts +0 -83
- package/dist/domain/costs/usage-store.js +0 -104
- package/dist/domain/executions/registry.d.ts +0 -47
- package/dist/domain/executions/registry.js +0 -100
- package/dist/domain/hooks/hook-view.d.ts +0 -22
- package/dist/domain/hooks/hook-view.js +0 -34
- package/dist/domain/mcp/bundled-server.d.ts +0 -19
- package/dist/domain/mcp/feishu/client.d.ts +0 -46
- package/dist/domain/mcp/feishu/client.js +0 -91
- package/dist/domain/mcp/feishu/file.d.ts +0 -14
- package/dist/domain/mcp/feishu/file.js +0 -88
- package/dist/domain/mcp/feishu/types.d.ts +0 -31
- package/dist/domain/mcp/feishu/types.js +0 -34
- package/dist/domain/mcp/feishu/user-auth.d.ts +0 -140
- package/dist/domain/mcp/feishu/user-auth.js +0 -278
- package/dist/domain/mcp/tools/agents-md.d.ts +0 -16
- package/dist/domain/mcp/tools/agents-md.js +0 -34
- package/dist/domain/mcp/tools/catalog-owner.d.ts +0 -3
- package/dist/domain/mcp/tools/catalog-owner.js +0 -23
- package/dist/domain/mcp/tools/context.d.ts +0 -69
- package/dist/domain/mcp/tools/context.js +0 -106
- package/dist/domain/mcp/tools/cost.d.ts +0 -2
- package/dist/domain/mcp/tools/cost.js +0 -56
- package/dist/domain/mcp/tools/executions.d.ts +0 -2
- package/dist/domain/mcp/tools/executions.js +0 -71
- package/dist/domain/mcp/tools/interaction-ask.d.ts +0 -37
- package/dist/domain/mcp/tools/interaction-ask.js +0 -131
- package/dist/domain/mcp/tools/interaction-plan.d.ts +0 -34
- package/dist/domain/mcp/tools/interaction-plan.js +0 -116
- package/dist/domain/mcp/tools/remote-devices.d.ts +0 -9
- package/dist/domain/mcp/tools/remote-devices.js +0 -28
- package/dist/domain/mcp/tools/remote-file.d.ts +0 -24
- package/dist/domain/mcp/tools/remote-file.js +0 -52
- package/dist/domain/mcp/tools/remote-ops.d.ts +0 -3
- package/dist/domain/mcp/tools/remote-ops.js +0 -359
- package/dist/domain/mcp/tools/slack.d.ts +0 -23
- package/dist/domain/mcp/tools/slack.js +0 -106
- package/dist/domain/mcp/tools/subagent.d.ts +0 -23
- package/dist/domain/mcp/tools/subagent.js +0 -179
- package/dist/domain/mcp/tools/time.d.ts +0 -2
- package/dist/domain/mcp/tools/time.js +0 -62
- package/dist/domain/mcp/tools/ui-board.d.ts +0 -12
- package/dist/domain/mcp/tools/ui-board.js +0 -48
- package/dist/domain/mcp/tools/ui-decision.d.ts +0 -3
- package/dist/domain/mcp/tools/ui-decision.js +0 -37
- package/dist/domain/mcp/tools/ui-file.d.ts +0 -3
- package/dist/domain/mcp/tools/ui-file.js +0 -70
- package/dist/domain/mcp/tools/ui-view.d.ts +0 -3
- package/dist/domain/mcp/tools/ui-view.js +0 -44
- package/dist/domain/mcp/tools/waitpoint.d.ts +0 -28
- package/dist/domain/mcp/tools/waitpoint.js +0 -109
- package/dist/domain/mcp/tools/workers.d.ts +0 -5
- package/dist/domain/mcp/tools/workers.js +0 -77
- package/dist/domain/memory/agents-md-injector.d.ts +0 -25
- package/dist/domain/memory/agents-md-injector.js +0 -58
- package/dist/domain/memory/consolidate.d.ts +0 -56
- package/dist/domain/memory/consolidate.js +0 -419
- package/dist/domain/memory/index-regen.d.ts +0 -30
- package/dist/domain/memory/index-regen.js +0 -334
- package/dist/domain/memory/rules-loader.d.ts +0 -6
- package/dist/domain/memory/rules-loader.js +0 -13
- package/dist/domain/memory/user-context.d.ts +0 -5
- package/dist/domain/memory/user-context.js +0 -32
- package/dist/domain/memory/watcher.d.ts +0 -8
- package/dist/domain/memory/watcher.js +0 -135
- package/dist/domain/monitor/disk-monitor.d.ts +0 -17
- package/dist/domain/monitor/disk-monitor.js +0 -117
- package/dist/domain/monitor/event-loop-monitor.d.ts +0 -35
- package/dist/domain/monitor/event-loop-monitor.js +0 -64
- package/dist/domain/monitor/gpu-monitor.d.ts +0 -26
- package/dist/domain/monitor/gpu-monitor.js +0 -132
- package/dist/domain/pi-providers/custom-provider-model.d.ts +0 -49
- package/dist/domain/pi-providers/custom-provider-model.js +0 -116
- package/dist/domain/pi-providers/custom-provider-service.d.ts +0 -57
- package/dist/domain/pi-providers/custom-provider-service.js +0 -153
- package/dist/domain/pi-providers/gateway-route-store.d.ts +0 -23
- package/dist/domain/pi-providers/gateway-route-store.js +0 -74
- package/dist/domain/pi-providers/index.d.ts +0 -3
- package/dist/domain/pi-providers/index.js +0 -3
- package/dist/domain/pi-providers/models-json-store.d.ts +0 -6
- package/dist/domain/pi-providers/models-json-store.js +0 -73
- package/dist/domain/plugins/agent-plugins-v1.d.ts +0 -58
- package/dist/domain/plugins/agent-plugins-v1.js +0 -84
- package/dist/domain/plugins/authoring.d.ts +0 -46
- package/dist/domain/plugins/authoring.js +0 -335
- package/dist/domain/plugins/builtin.d.ts +0 -25
- package/dist/domain/plugins/builtin.js +0 -44
- package/dist/domain/plugins/catalog-types.d.ts +0 -89
- package/dist/domain/plugins/catalog-types.js +0 -39
- package/dist/domain/plugins/catalog.d.ts +0 -39
- package/dist/domain/plugins/catalog.js +0 -482
- package/dist/domain/plugins/conversation-skills.d.ts +0 -10
- package/dist/domain/plugins/conversation-skills.js +0 -22
- package/dist/domain/plugins/fs-helpers.d.ts +0 -9
- package/dist/domain/plugins/fs-helpers.js +0 -107
- package/dist/domain/plugins/mcp.d.ts +0 -6
- package/dist/domain/plugins/mcp.js +0 -223
- package/dist/domain/plugins/runtime-gc.d.ts +0 -17
- package/dist/domain/plugins/runtime-gc.js +0 -101
- package/dist/domain/plugins/runtime.d.ts +0 -21
- package/dist/domain/plugins/runtime.js +0 -555
- package/dist/domain/plugins/skill-projection.d.ts +0 -19
- package/dist/domain/plugins/skill-projection.js +0 -193
- package/dist/domain/plugins/skill.d.ts +0 -14
- package/dist/domain/plugins/skill.js +0 -145
- package/dist/domain/projects/index.d.ts +0 -3
- package/dist/domain/projects/index.js +0 -3
- package/dist/domain/projects/project-store.d.ts +0 -72
- package/dist/domain/projects/project-store.js +0 -240
- package/dist/domain/projects/project-types.d.ts +0 -11
- package/dist/domain/projects/project-types.js +0 -1
- package/dist/domain/remote/client-bootstrap.d.ts +0 -1
- package/dist/domain/remote/client-bootstrap.js +0 -126
- package/dist/domain/remote/client-hot-reload.d.ts +0 -40
- package/dist/domain/remote/client-hot-reload.js +0 -269
- package/dist/domain/remote/client-lifecycle.d.ts +0 -32
- package/dist/domain/remote/client-lifecycle.js +0 -382
- package/dist/domain/remote/client-manager.d.ts +0 -54
- package/dist/domain/remote/client-manager.js +0 -325
- package/dist/domain/remote/client-pids.d.ts +0 -13
- package/dist/domain/remote/client-pids.js +0 -43
- package/dist/domain/remote/client-protocol.d.ts +0 -1
- package/dist/domain/remote/client-protocol.js +0 -1
- package/dist/domain/remote/client-remove.d.ts +0 -61
- package/dist/domain/remote/client-remove.js +0 -129
- package/dist/domain/remote/client-ssh-tunnel.d.ts +0 -79
- package/dist/domain/remote/client-ssh-tunnel.js +0 -352
- package/dist/domain/remote/device-browser.d.ts +0 -38
- package/dist/domain/remote/device-browser.js +0 -158
- package/dist/domain/remote/device-chrome-commands.d.ts +0 -18
- package/dist/domain/remote/device-chrome-commands.js +0 -125
- package/dist/domain/remote/device-file.d.ts +0 -51
- package/dist/domain/remote/device-file.js +0 -193
- package/dist/domain/remote/device-port.d.ts +0 -23
- package/dist/domain/remote/device-port.js +0 -192
- package/dist/domain/remote/local-client-install.d.ts +0 -32
- package/dist/domain/remote/local-client-install.js +0 -168
- package/dist/domain/remote/local-client-stop.d.ts +0 -37
- package/dist/domain/remote/local-client-stop.js +0 -101
- package/dist/domain/remote/machine-registry.d.ts +0 -54
- package/dist/domain/remote/machine-registry.js +0 -184
- package/dist/domain/remote/owned-local-launch.d.ts +0 -22
- package/dist/domain/remote/owned-local-launch.js +0 -75
- package/dist/domain/remote/package-client-bundle.d.ts +0 -14
- package/dist/domain/remote/package-client-bundle.js +0 -37
- package/dist/domain/remote/reverse-stream.d.ts +0 -42
- package/dist/domain/remote/reverse-stream.js +0 -95
- package/dist/domain/remote/ssh-exec.d.ts +0 -10
- package/dist/domain/remote/ssh-exec.js +0 -25
- package/dist/domain/runs/adapters.d.ts +0 -15
- package/dist/domain/runs/adapters.js +0 -59
- package/dist/domain/runs/attempt.d.ts +0 -37
- package/dist/domain/runs/attempt.js +0 -232
- package/dist/domain/runs/builders.d.ts +0 -27
- package/dist/domain/runs/builders.js +0 -47
- package/dist/domain/runs/compact.d.ts +0 -30
- package/dist/domain/runs/compact.js +0 -43
- package/dist/domain/runs/config-resolver.d.ts +0 -26
- package/dist/domain/runs/config-resolver.js +0 -38
- package/dist/domain/runs/engine-spec.d.ts +0 -40
- package/dist/domain/runs/engine-spec.js +0 -215
- package/dist/domain/runs/engines.d.ts +0 -71
- package/dist/domain/runs/engines.js +0 -181
- package/dist/domain/runs/events.d.ts +0 -2
- package/dist/domain/runs/events.js +0 -1
- package/dist/domain/runs/fallback.d.ts +0 -11
- package/dist/domain/runs/fallback.js +0 -18
- package/dist/domain/runs/mode-env.d.ts +0 -16
- package/dist/domain/runs/mode-env.js +0 -48
- package/dist/domain/runs/notices.d.ts +0 -44
- package/dist/domain/runs/notices.js +0 -109
- package/dist/domain/runs/observers/resume-recorder.d.ts +0 -26
- package/dist/domain/runs/observers/resume-recorder.js +0 -27
- package/dist/domain/runs/prompt.d.ts +0 -78
- package/dist/domain/runs/prompt.js +0 -98
- package/dist/domain/runs/request.d.ts +0 -99
- package/dist/domain/runs/request.js +0 -1
- package/dist/domain/runs/retryable-errors.d.ts +0 -5
- package/dist/domain/runs/retryable-errors.js +0 -24
- package/dist/domain/runs/run.d.ts +0 -238
- package/dist/domain/runs/run.js +0 -574
- package/dist/domain/runs/service.d.ts +0 -3
- package/dist/domain/runs/service.js +0 -63
- package/dist/domain/runs/spec-loader.d.ts +0 -75
- package/dist/domain/runs/spec-loader.js +0 -58
- package/dist/domain/runs/spend.d.ts +0 -16
- package/dist/domain/runs/spend.js +0 -31
- package/dist/domain/scheduling/builtin-job-controller.d.ts +0 -21
- package/dist/domain/scheduling/builtin-job-controller.js +0 -106
- package/dist/domain/scheduling/builtin-job-migration.d.ts +0 -23
- package/dist/domain/scheduling/builtin-job-migration.js +0 -64
- package/dist/domain/scheduling/builtin-jobs.d.ts +0 -2
- package/dist/domain/scheduling/builtin-jobs.js +0 -44
- package/dist/domain/scheduling/job-registry.d.ts +0 -22
- package/dist/domain/scheduling/job-registry.js +0 -16
- package/dist/domain/scheduling/jobs/auth-expiry-scan.d.ts +0 -15
- package/dist/domain/scheduling/jobs/auth-expiry-scan.js +0 -75
- package/dist/domain/scheduling/jobs/scheduled-task.d.ts +0 -24
- package/dist/domain/scheduling/jobs/scheduled-task.js +0 -112
- package/dist/domain/scheduling/jobs/sync-public.d.ts +0 -4
- package/dist/domain/scheduling/jobs/sync-public.js +0 -40
- package/dist/domain/scheduling/run-guards.d.ts +0 -6
- package/dist/domain/scheduling/run-guards.js +0 -18
- package/dist/domain/scheduling/runner.d.ts +0 -17
- package/dist/domain/scheduling/runner.js +0 -22
- package/dist/domain/scheduling/schedule-ops.d.ts +0 -15
- package/dist/domain/scheduling/schedule-ops.js +0 -43
- package/dist/domain/scheduling/schedule-selection.d.ts +0 -3
- package/dist/domain/scheduling/schedule-selection.js +0 -16
- package/dist/domain/scheduling/schedule-spec.d.ts +0 -79
- package/dist/domain/scheduling/schedule-spec.js +0 -169
- package/dist/domain/scheduling/scheduler.d.ts +0 -75
- package/dist/domain/scheduling/scheduler.js +0 -312
- package/dist/domain/sessions/session-backup.d.ts +0 -44
- package/dist/domain/sessions/session-backup.js +0 -138
- package/dist/domain/sessions/session-hooks.d.ts +0 -130
- package/dist/domain/sessions/session-hooks.js +0 -347
- package/dist/domain/sessions/session-lifecycle.d.ts +0 -91
- package/dist/domain/sessions/session-lifecycle.js +0 -82
- package/dist/domain/sessions/session-retention.d.ts +0 -50
- package/dist/domain/sessions/session-retention.js +0 -466
- package/dist/domain/sessions/session-use.d.ts +0 -28
- package/dist/domain/sessions/session-use.js +0 -45
- package/dist/domain/sessions/session.d.ts +0 -3
- package/dist/domain/sessions/session.js +0 -13
- package/dist/domain/sessions/team.d.ts +0 -26
- package/dist/domain/sessions/team.js +0 -30
- package/dist/domain/system/doctor.d.ts +0 -82
- package/dist/domain/system/doctor.js +0 -484
- package/dist/domain/system/github-release.d.ts +0 -16
- package/dist/domain/system/github-release.js +0 -101
- package/dist/domain/system/install-cli.d.ts +0 -7
- package/dist/domain/system/install-cli.js +0 -107
- package/dist/domain/system/notice-history.d.ts +0 -18
- package/dist/domain/system/notice-history.js +0 -23
- package/dist/domain/system/own-bin-path.d.ts +0 -13
- package/dist/domain/system/own-bin-path.js +0 -36
- package/dist/domain/system/preferences.d.ts +0 -30
- package/dist/domain/system/preferences.js +0 -59
- package/dist/domain/system/rebuild-hold.d.ts +0 -36
- package/dist/domain/system/rebuild-hold.js +0 -83
- package/dist/domain/system/server-update-check.d.ts +0 -24
- package/dist/domain/system/server-update-check.js +0 -89
- package/dist/domain/system/server-update-coordinator.d.ts +0 -46
- package/dist/domain/system/server-update-coordinator.js +0 -155
- package/dist/domain/system/server-update-install.d.ts +0 -16
- package/dist/domain/system/server-update-install.js +0 -65
- package/dist/domain/system/system-notice.d.ts +0 -24
- package/dist/domain/system/system-notice.js +0 -31
- package/dist/domain/system/terminal-cli/index.d.ts +0 -58
- package/dist/domain/system/terminal-cli/index.js +0 -100
- package/dist/domain/system/terminal-cli/posix-profiles.d.ts +0 -23
- package/dist/domain/system/terminal-cli/posix-profiles.js +0 -74
- package/dist/domain/system/terminal-cli/registrar.d.ts +0 -12
- package/dist/domain/system/terminal-cli/registrar.js +0 -1
- package/dist/domain/system/terminal-cli/shims.d.ts +0 -27
- package/dist/domain/system/terminal-cli/shims.js +0 -108
- package/dist/domain/system/terminal-cli/state.d.ts +0 -7
- package/dist/domain/system/terminal-cli/state.js +0 -36
- package/dist/domain/system/terminal-cli/windows-user-path.d.ts +0 -13
- package/dist/domain/system/terminal-cli/windows-user-path.js +0 -67
- package/dist/domain/system/update-prompt.d.ts +0 -8
- package/dist/domain/system/update-prompt.js +0 -1
- package/dist/domain/system/update-state.d.ts +0 -9
- package/dist/domain/system/update-state.js +0 -22
- package/dist/domain/system/update-ui-state.d.ts +0 -39
- package/dist/domain/system/update-ui-state.js +0 -70
- package/dist/domain/telemetry/bus-collector.d.ts +0 -3
- package/dist/domain/telemetry/bus-collector.js +0 -22
- package/dist/domain/telemetry/child-exit.d.ts +0 -11
- package/dist/domain/telemetry/child-exit.js +0 -36
- package/dist/domain/telemetry/client-kind.d.ts +0 -4
- package/dist/domain/telemetry/client-kind.js +0 -7
- package/dist/domain/telemetry/crash-limits.d.ts +0 -15
- package/dist/domain/telemetry/crash-limits.js +0 -50
- package/dist/domain/telemetry/crash.d.ts +0 -25
- package/dist/domain/telemetry/crash.js +0 -70
- package/dist/domain/telemetry/daily-upload.d.ts +0 -5
- package/dist/domain/telemetry/daily-upload.js +0 -20
- package/dist/domain/telemetry/daily.d.ts +0 -5
- package/dist/domain/telemetry/daily.js +0 -104
- package/dist/domain/telemetry/endpoint.d.ts +0 -7
- package/dist/domain/telemetry/endpoint.js +0 -40
- package/dist/domain/telemetry/envelope.d.ts +0 -6
- package/dist/domain/telemetry/envelope.js +0 -35
- package/dist/domain/telemetry/error-digest.d.ts +0 -7
- package/dist/domain/telemetry/error-digest.js +0 -43
- package/dist/domain/telemetry/funnel.d.ts +0 -6
- package/dist/domain/telemetry/funnel.js +0 -22
- package/dist/domain/telemetry/gate.d.ts +0 -19
- package/dist/domain/telemetry/gate.js +0 -67
- package/dist/domain/telemetry/heartbeat.d.ts +0 -17
- package/dist/domain/telemetry/heartbeat.js +0 -49
- package/dist/domain/telemetry/info.d.ts +0 -9
- package/dist/domain/telemetry/info.js +0 -12
- package/dist/domain/telemetry/init-answer.d.ts +0 -12
- package/dist/domain/telemetry/init-answer.js +0 -42
- package/dist/domain/telemetry/install-id.d.ts +0 -5
- package/dist/domain/telemetry/install-id.js +0 -42
- package/dist/domain/telemetry/normalize.d.ts +0 -33
- package/dist/domain/telemetry/normalize.js +0 -88
- package/dist/domain/telemetry/outbox.d.ts +0 -18
- package/dist/domain/telemetry/outbox.js +0 -93
- package/dist/domain/telemetry/panic-group.d.ts +0 -4
- package/dist/domain/telemetry/panic-group.js +0 -51
- package/dist/domain/telemetry/paths.d.ts +0 -7
- package/dist/domain/telemetry/paths.js +0 -11
- package/dist/domain/telemetry/redact.d.ts +0 -18
- package/dist/domain/telemetry/redact.js +0 -109
- package/dist/domain/telemetry/rollup-types.d.ts +0 -81
- package/dist/domain/telemetry/rollup-types.js +0 -31
- package/dist/domain/telemetry/rollup.d.ts +0 -16
- package/dist/domain/telemetry/rollup.js +0 -102
- package/dist/domain/telemetry/schema.d.ts +0 -931
- package/dist/domain/telemetry/schema.js +0 -275
- package/dist/domain/telemetry/service.d.ts +0 -34
- package/dist/domain/telemetry/service.js +0 -146
- package/dist/domain/telemetry/state.d.ts +0 -17
- package/dist/domain/telemetry/state.js +0 -29
- package/dist/domain/telemetry/turns.d.ts +0 -17
- package/dist/domain/telemetry/turns.js +0 -176
- package/dist/domain/telemetry/upgrade.d.ts +0 -14
- package/dist/domain/telemetry/upgrade.js +0 -87
- package/dist/domain/telemetry/uploader.d.ts +0 -21
- package/dist/domain/telemetry/uploader.js +0 -82
- package/dist/domain/telemetry/usage.d.ts +0 -25
- package/dist/domain/telemetry/usage.js +0 -153
- package/dist/domain/telemetry/web-report.d.ts +0 -8
- package/dist/domain/telemetry/web-report.js +0 -15
- package/dist/domain/tui-session/index.d.ts +0 -2
- package/dist/domain/tui-session/index.js +0 -1
- package/dist/domain/tui-session/tui-session-service.d.ts +0 -2
- package/dist/domain/tui-session/tui-session-service.js +0 -85
- package/dist/domain/tui-session/types.d.ts +0 -40
- package/dist/domain/tui-session/types.js +0 -1
- package/dist/domain/ui-service/app-router.d.ts +0 -1180
- package/dist/domain/ui-service/app-router.js +0 -312
- package/dist/domain/ui-service/assistant-snapshots.d.ts +0 -10
- package/dist/domain/ui-service/assistant-snapshots.js +0 -45
- package/dist/domain/ui-service/contract.parity.d.ts +0 -19
- package/dist/domain/ui-service/contract.parity.js +0 -1
- package/dist/domain/ui-service/index.d.ts +0 -4
- package/dist/domain/ui-service/index.js +0 -1
- package/dist/domain/ui-service/inline-media-types.d.ts +0 -18
- package/dist/domain/ui-service/inline-media-types.js +0 -1
- package/dist/domain/ui-service/input-schemas.d.ts +0 -1132
- package/dist/domain/ui-service/input-schemas.js +0 -710
- package/dist/domain/ui-service/mutate/approvals.d.ts +0 -33
- package/dist/domain/ui-service/mutate/approvals.js +0 -134
- package/dist/domain/ui-service/mutate/auth.d.ts +0 -15
- package/dist/domain/ui-service/mutate/auth.js +0 -103
- package/dist/domain/ui-service/mutate/config.d.ts +0 -18
- package/dist/domain/ui-service/mutate/config.js +0 -108
- package/dist/domain/ui-service/mutate/custom-providers.d.ts +0 -8
- package/dist/domain/ui-service/mutate/custom-providers.js +0 -33
- package/dist/domain/ui-service/mutate/environments.d.ts +0 -27
- package/dist/domain/ui-service/mutate/environments.js +0 -66
- package/dist/domain/ui-service/mutate/errors.d.ts +0 -7
- package/dist/domain/ui-service/mutate/errors.js +0 -14
- package/dist/domain/ui-service/mutate/executions.d.ts +0 -4
- package/dist/domain/ui-service/mutate/executions.js +0 -15
- package/dist/domain/ui-service/mutate/hooks.d.ts +0 -12
- package/dist/domain/ui-service/mutate/hooks.js +0 -110
- package/dist/domain/ui-service/mutate/issues.d.ts +0 -18
- package/dist/domain/ui-service/mutate/issues.js +0 -100
- package/dist/domain/ui-service/mutate/models.d.ts +0 -13
- package/dist/domain/ui-service/mutate/models.js +0 -137
- package/dist/domain/ui-service/mutate/notes.d.ts +0 -6
- package/dist/domain/ui-service/mutate/notes.js +0 -32
- package/dist/domain/ui-service/mutate/platform-settings.d.ts +0 -6
- package/dist/domain/ui-service/mutate/platform-settings.js +0 -17
- package/dist/domain/ui-service/mutate/plugin-packages.d.ts +0 -10
- package/dist/domain/ui-service/mutate/plugin-packages.js +0 -152
- package/dist/domain/ui-service/mutate/plugins.d.ts +0 -2
- package/dist/domain/ui-service/mutate/plugins.js +0 -38
- package/dist/domain/ui-service/mutate/projects.d.ts +0 -4
- package/dist/domain/ui-service/mutate/projects.js +0 -7
- package/dist/domain/ui-service/mutate/resolve-media.d.ts +0 -4
- package/dist/domain/ui-service/mutate/resolve-media.js +0 -17
- package/dist/domain/ui-service/mutate/schedules.d.ts +0 -12
- package/dist/domain/ui-service/mutate/schedules.js +0 -75
- package/dist/domain/ui-service/mutate/session-metadata.d.ts +0 -3
- package/dist/domain/ui-service/mutate/session-metadata.js +0 -22
- package/dist/domain/ui-service/mutate/sessions.d.ts +0 -19
- package/dist/domain/ui-service/mutate/sessions.js +0 -307
- package/dist/domain/ui-service/mutate/system.d.ts +0 -10
- package/dist/domain/ui-service/mutate/system.js +0 -120
- package/dist/domain/ui-service/mutate/telemetry.d.ts +0 -5
- package/dist/domain/ui-service/mutate/telemetry.js +0 -6
- package/dist/domain/ui-service/mutate/usage-sharing.d.ts +0 -8
- package/dist/domain/ui-service/mutate/usage-sharing.js +0 -16
- package/dist/domain/ui-service/mutate/waitpoints.d.ts +0 -2
- package/dist/domain/ui-service/mutate/waitpoints.js +0 -13
- package/dist/domain/ui-service/platform-settings.d.ts +0 -5
- package/dist/domain/ui-service/platform-settings.js +0 -72
- package/dist/domain/ui-service/plugins-shared.d.ts +0 -29
- package/dist/domain/ui-service/plugins-shared.js +0 -176
- package/dist/domain/ui-service/query/approvals.d.ts +0 -10
- package/dist/domain/ui-service/query/approvals.js +0 -119
- package/dist/domain/ui-service/query/auth.d.ts +0 -6
- package/dist/domain/ui-service/query/auth.js +0 -8
- package/dist/domain/ui-service/query/boards.d.ts +0 -14
- package/dist/domain/ui-service/query/boards.js +0 -111
- package/dist/domain/ui-service/query/config.d.ts +0 -9
- package/dist/domain/ui-service/query/config.js +0 -167
- package/dist/domain/ui-service/query/cost.d.ts +0 -3
- package/dist/domain/ui-service/query/cost.js +0 -3
- package/dist/domain/ui-service/query/custom-providers.d.ts +0 -8
- package/dist/domain/ui-service/query/custom-providers.js +0 -9
- package/dist/domain/ui-service/query/environments.d.ts +0 -12
- package/dist/domain/ui-service/query/environments.js +0 -73
- package/dist/domain/ui-service/query/executions.d.ts +0 -3
- package/dist/domain/ui-service/query/executions.js +0 -61
- package/dist/domain/ui-service/query/hooks.d.ts +0 -9
- package/dist/domain/ui-service/query/hooks.js +0 -92
- package/dist/domain/ui-service/query/issues.d.ts +0 -14
- package/dist/domain/ui-service/query/issues.js +0 -78
- package/dist/domain/ui-service/query/machine-detail.d.ts +0 -2
- package/dist/domain/ui-service/query/machine-detail.js +0 -30
- package/dist/domain/ui-service/query/machine-probe.d.ts +0 -18
- package/dist/domain/ui-service/query/machine-probe.js +0 -133
- package/dist/domain/ui-service/query/machines.d.ts +0 -2
- package/dist/domain/ui-service/query/machines.js +0 -21
- package/dist/domain/ui-service/query/memory.d.ts +0 -7
- package/dist/domain/ui-service/query/memory.js +0 -191
- package/dist/domain/ui-service/query/models.d.ts +0 -27
- package/dist/domain/ui-service/query/models.js +0 -125
- package/dist/domain/ui-service/query/notes.d.ts +0 -3
- package/dist/domain/ui-service/query/notes.js +0 -15
- package/dist/domain/ui-service/query/plugin-source.d.ts +0 -4
- package/dist/domain/ui-service/query/plugin-source.js +0 -58
- package/dist/domain/ui-service/query/plugins.d.ts +0 -2
- package/dist/domain/ui-service/query/plugins.js +0 -28
- package/dist/domain/ui-service/query/projects.d.ts +0 -2
- package/dist/domain/ui-service/query/projects.js +0 -27
- package/dist/domain/ui-service/query/schedules.d.ts +0 -5
- package/dist/domain/ui-service/query/schedules.js +0 -28
- package/dist/domain/ui-service/query/sessions.d.ts +0 -6
- package/dist/domain/ui-service/query/sessions.js +0 -430
- package/dist/domain/ui-service/query/skills.d.ts +0 -5
- package/dist/domain/ui-service/query/skills.js +0 -16
- package/dist/domain/ui-service/query/system.d.ts +0 -6
- package/dist/domain/ui-service/query/system.js +0 -120
- package/dist/domain/ui-service/query/telemetry.d.ts +0 -3
- package/dist/domain/ui-service/query/telemetry.js +0 -4
- package/dist/domain/ui-service/query/usage-sharing.d.ts +0 -4
- package/dist/domain/ui-service/query/usage-sharing.js +0 -5
- package/dist/domain/ui-service/query/waitpoints.d.ts +0 -10
- package/dist/domain/ui-service/query/waitpoints.js +0 -37
- package/dist/domain/ui-service/query-input-schemas.d.ts +0 -73
- package/dist/domain/ui-service/query-input-schemas.js +0 -70
- package/dist/domain/ui-service/session-metadata-schemas.d.ts +0 -13
- package/dist/domain/ui-service/session-metadata-schemas.js +0 -9
- package/dist/domain/ui-service/subscribe.d.ts +0 -6
- package/dist/domain/ui-service/subscribe.js +0 -125
- package/dist/domain/ui-service/trpc.d.ts +0 -52
- package/dist/domain/ui-service/trpc.js +0 -43
- package/dist/domain/ui-service/types.d.ts +0 -1808
- package/dist/domain/ui-service/types.js +0 -1
- package/dist/domain/ui-service/ui-service.d.ts +0 -541
- package/dist/domain/ui-service/ui-service.js +0 -235
- package/dist/domain/waitpoints/notices.d.ts +0 -25
- package/dist/domain/waitpoints/notices.js +0 -125
- package/dist/domain/waitpoints/service.d.ts +0 -107
- package/dist/domain/waitpoints/service.js +0 -276
- package/dist/domain/waitpoints/view.d.ts +0 -29
- package/dist/domain/waitpoints/view.js +0 -97
- package/dist/entry/admin-channel-hot-reload.d.ts +0 -4
- package/dist/entry/admin-channel-hot-reload.js +0 -17
- package/dist/entry/app.d.ts +0 -1
- package/dist/entry/auth-cli.d.ts +0 -9
- package/dist/entry/auth-cli.js +0 -55
- package/dist/entry/auth-login-cli.d.ts +0 -20
- package/dist/entry/auth-login-cli.js +0 -153
- package/dist/entry/auth-login-terminal.d.ts +0 -16
- package/dist/entry/auth-login-terminal.js +0 -59
- package/dist/entry/boot-jobs.d.ts +0 -7
- package/dist/entry/boot-jobs.js +0 -16
- package/dist/entry/browser-cli.d.ts +0 -39
- package/dist/entry/cli-help.d.ts +0 -10
- package/dist/entry/cli-help.js +0 -290
- package/dist/entry/cli.d.ts +0 -19
- package/dist/entry/client-cli.d.ts +0 -4
- package/dist/entry/client-cli.js +0 -62
- package/dist/entry/cortex-cli.d.ts +0 -1
- package/dist/entry/daemon-notice.d.ts +0 -26
- package/dist/entry/daemon-notice.js +0 -38
- package/dist/entry/daemon.d.ts +0 -120
- package/dist/entry/doctor-cli.d.ts +0 -8
- package/dist/entry/doctor-cli.js +0 -70
- package/dist/entry/draft-attachments.d.ts +0 -8
- package/dist/entry/draft-attachments.js +0 -79
- package/dist/entry/fast-install.d.ts +0 -49
- package/dist/entry/fast-install.js +0 -192
- package/dist/entry/feishu-login.d.ts +0 -21
- package/dist/entry/feishu-login.js +0 -209
- package/dist/entry/hook-cli.d.ts +0 -14
- package/dist/entry/init-auth.d.ts +0 -4
- package/dist/entry/init-auth.js +0 -42
- package/dist/entry/init-git.d.ts +0 -6
- package/dist/entry/init-git.js +0 -36
- package/dist/entry/init-local-client.d.ts +0 -11
- package/dist/entry/init-local-client.js +0 -34
- package/dist/entry/init.d.ts +0 -151
- package/dist/entry/init.js +0 -1292
- package/dist/entry/local-ui.d.ts +0 -38
- package/dist/entry/local-ui.js +0 -107
- package/dist/entry/memory-cli.d.ts +0 -3
- package/dist/entry/memory-cli.js +0 -79
- package/dist/entry/path-cli.d.ts +0 -4
- package/dist/entry/path-cli.js +0 -65
- package/dist/entry/platform-connect.d.ts +0 -23
- package/dist/entry/platform-connect.js +0 -94
- package/dist/entry/production-app-bootstrap.d.ts +0 -1
- package/dist/entry/production-evidence-export-cli.d.ts +0 -13
- package/dist/entry/provider-cli.d.ts +0 -12
- package/dist/entry/provider-cli.js +0 -199
- package/dist/entry/schedule-cli.d.ts +0 -10
- package/dist/entry/schedule-cli.js +0 -166
- package/dist/entry/shutdown.d.ts +0 -32
- package/dist/entry/shutdown.js +0 -84
- package/dist/entry/signal-cli.d.ts +0 -25
- package/dist/entry/start-ui-http.d.ts +0 -24
- package/dist/entry/start-ui-http.js +0 -188
- package/dist/entry/startup-helpers.d.ts +0 -2
- package/dist/entry/startup-helpers.js +0 -15
- package/dist/entry/startup-notify.d.ts +0 -6
- package/dist/entry/startup-notify.js +0 -18
- package/dist/entry/telemetry-wiring.d.ts +0 -12
- package/dist/entry/telemetry-wiring.js +0 -56
- package/dist/entry/ui-cli.d.ts +0 -2
- package/dist/entry/ui-cli.js +0 -87
- package/dist/entry/ui-http-gate.d.ts +0 -17
- package/dist/entry/ui-http-gate.js +0 -17
- package/dist/entry/ui-service-wiring.d.ts +0 -12
- package/dist/entry/ui-service-wiring.js +0 -144
- package/dist/events/event-bus.d.ts +0 -47
- package/dist/events/event-bus.js +0 -83
- package/dist/events/event-logger.d.ts +0 -12
- package/dist/events/event-logger.js +0 -144
- package/dist/events/event-types.d.ts +0 -259
- package/dist/events/event-types.js +0 -1
- package/dist/events/index.d.ts +0 -5
- package/dist/events/index.js +0 -2
- package/dist/orchestration/agent-decision-send.d.ts +0 -42
- package/dist/orchestration/agent-decision-send.js +0 -62
- package/dist/orchestration/agent-file-send.d.ts +0 -58
- package/dist/orchestration/agent-file-send.js +0 -69
- package/dist/orchestration/agent-runner.d.ts +0 -52
- package/dist/orchestration/agent-runner.js +0 -230
- package/dist/orchestration/agent-view-send.d.ts +0 -66
- package/dist/orchestration/agent-view-send.js +0 -103
- package/dist/orchestration/attachments-store.d.ts +0 -31
- package/dist/orchestration/attachments-store.js +0 -156
- package/dist/orchestration/benchmark-session-webhook.d.ts +0 -19
- package/dist/orchestration/benchmark-session-webhook.js +0 -142
- package/dist/orchestration/board-webhook.d.ts +0 -7
- package/dist/orchestration/board-webhook.js +0 -38
- package/dist/orchestration/browser-webhook.d.ts +0 -11
- package/dist/orchestration/browser-webhook.js +0 -28
- package/dist/orchestration/busy-tracker.d.ts +0 -15
- package/dist/orchestration/busy-tracker.js +0 -38
- package/dist/orchestration/cache-keep-warm.d.ts +0 -77
- package/dist/orchestration/cache-keep-warm.js +0 -213
- package/dist/orchestration/claude-window-warmup.d.ts +0 -40
- package/dist/orchestration/claude-window-warmup.js +0 -126
- package/dist/orchestration/conduit-queue.d.ts +0 -14
- package/dist/orchestration/conduit-queue.js +0 -53
- package/dist/orchestration/conversation-request.d.ts +0 -163
- package/dist/orchestration/conversation-request.js +0 -276
- package/dist/orchestration/delta-coalescer.d.ts +0 -69
- package/dist/orchestration/delta-coalescer.js +0 -120
- package/dist/orchestration/durable-helpers.d.ts +0 -3
- package/dist/orchestration/durable-helpers.js +0 -38
- package/dist/orchestration/edit-retry.d.ts +0 -35
- package/dist/orchestration/edit-retry.js +0 -127
- package/dist/orchestration/injection-ledger.d.ts +0 -56
- package/dist/orchestration/injection-ledger.js +0 -270
- package/dist/orchestration/inline-media-eager.d.ts +0 -13
- package/dist/orchestration/inline-media-eager.js +0 -58
- package/dist/orchestration/inline-media.d.ts +0 -22
- package/dist/orchestration/inline-media.js +0 -151
- package/dist/orchestration/interactions/answer-question.d.ts +0 -16
- package/dist/orchestration/interactions/answer-question.js +0 -38
- package/dist/orchestration/interactions/ask-user-question.d.ts +0 -34
- package/dist/orchestration/interactions/ask-user-question.js +0 -179
- package/dist/orchestration/interactions/ask-user-resume.d.ts +0 -11
- package/dist/orchestration/interactions/ask-user-resume.js +0 -57
- package/dist/orchestration/interactions/command-action-router.d.ts +0 -31
- package/dist/orchestration/interactions/command-action-router.js +0 -48
- package/dist/orchestration/interactions/interaction-handlers.d.ts +0 -5
- package/dist/orchestration/interactions/interaction-handlers.js +0 -288
- package/dist/orchestration/interactions/interaction-records.d.ts +0 -57
- package/dist/orchestration/interactions/interaction-records.js +0 -142
- package/dist/orchestration/interactions/plan-approvals.d.ts +0 -38
- package/dist/orchestration/interactions/plan-approvals.js +0 -73
- package/dist/orchestration/interactions/plan-handler.d.ts +0 -3
- package/dist/orchestration/interactions/plan-handler.js +0 -13
- package/dist/orchestration/interactions/plan-response.d.ts +0 -9
- package/dist/orchestration/interactions/plan-response.js +0 -23
- package/dist/orchestration/interactions/ui-update-prompt.d.ts +0 -8
- package/dist/orchestration/interactions/ui-update-prompt.js +0 -39
- package/dist/orchestration/interactions/update-prompt.d.ts +0 -6
- package/dist/orchestration/interactions/update-prompt.js +0 -150
- package/dist/orchestration/mid-turn-inject.d.ts +0 -64
- package/dist/orchestration/mid-turn-inject.js +0 -103
- package/dist/orchestration/orchestrator.d.ts +0 -23
- package/dist/orchestration/orchestrator.js +0 -12
- package/dist/orchestration/outputs-store.d.ts +0 -40
- package/dist/orchestration/outputs-store.js +0 -83
- package/dist/orchestration/pending-injection-recovery.d.ts +0 -36
- package/dist/orchestration/pending-injection-recovery.js +0 -88
- package/dist/orchestration/pi-background-subagent.d.ts +0 -15
- package/dist/orchestration/pi-background-subagent.js +0 -34
- package/dist/orchestration/resume-dispatcher.d.ts +0 -20
- package/dist/orchestration/resume-dispatcher.js +0 -97
- package/dist/orchestration/resume-target-sink.d.ts +0 -37
- package/dist/orchestration/resume-target-sink.js +0 -68
- package/dist/orchestration/routing/commands/cancel.d.ts +0 -58
- package/dist/orchestration/routing/commands/cancel.js +0 -212
- package/dist/orchestration/routing/commands/channel.d.ts +0 -7
- package/dist/orchestration/routing/commands/channel.js +0 -229
- package/dist/orchestration/routing/commands/command-context.d.ts +0 -14
- package/dist/orchestration/routing/commands/command-context.js +0 -1
- package/dist/orchestration/routing/commands/compact.d.ts +0 -6
- package/dist/orchestration/routing/commands/compact.js +0 -22
- package/dist/orchestration/routing/commands/cost.d.ts +0 -11
- package/dist/orchestration/routing/commands/cost.js +0 -101
- package/dist/orchestration/routing/commands/device.d.ts +0 -4
- package/dist/orchestration/routing/commands/device.js +0 -70
- package/dist/orchestration/routing/commands/index.d.ts +0 -22
- package/dist/orchestration/routing/commands/index.js +0 -160
- package/dist/orchestration/routing/commands/lang.d.ts +0 -9
- package/dist/orchestration/routing/commands/lang.js +0 -34
- package/dist/orchestration/routing/commands/login-custom.d.ts +0 -26
- package/dist/orchestration/routing/commands/login-custom.js +0 -85
- package/dist/orchestration/routing/commands/login-notice.d.ts +0 -23
- package/dist/orchestration/routing/commands/login-notice.js +0 -84
- package/dist/orchestration/routing/commands/login.d.ts +0 -12
- package/dist/orchestration/routing/commands/login.js +0 -560
- package/dist/orchestration/routing/commands/mode.d.ts +0 -10
- package/dist/orchestration/routing/commands/mode.js +0 -302
- package/dist/orchestration/routing/commands/nvtop.d.ts +0 -3
- package/dist/orchestration/routing/commands/nvtop.js +0 -107
- package/dist/orchestration/routing/commands/orient.d.ts +0 -2
- package/dist/orchestration/routing/commands/orient.js +0 -5
- package/dist/orchestration/routing/commands/restart.d.ts +0 -18
- package/dist/orchestration/routing/commands/restart.js +0 -31
- package/dist/orchestration/routing/commands/schedule.d.ts +0 -6
- package/dist/orchestration/routing/commands/schedule.js +0 -206
- package/dist/orchestration/routing/commands/sendfile.d.ts +0 -2
- package/dist/orchestration/routing/commands/sendfile.js +0 -97
- package/dist/orchestration/routing/commands/session.d.ts +0 -18
- package/dist/orchestration/routing/commands/session.js +0 -131
- package/dist/orchestration/routing/commands/status.d.ts +0 -5
- package/dist/orchestration/routing/commands/status.js +0 -165
- package/dist/orchestration/routing/commands/tail.d.ts +0 -2
- package/dist/orchestration/routing/commands/tail.js +0 -79
- package/dist/orchestration/routing/commands/time-ago.d.ts +0 -2
- package/dist/orchestration/routing/commands/time-ago.js +0 -14
- package/dist/orchestration/routing/commands/usage-format.d.ts +0 -5
- package/dist/orchestration/routing/commands/usage-format.js +0 -107
- package/dist/orchestration/routing/commands/usage-reset.d.ts +0 -20
- package/dist/orchestration/routing/commands/usage-reset.js +0 -123
- package/dist/orchestration/routing/commands/usage.d.ts +0 -10
- package/dist/orchestration/routing/commands/usage.js +0 -54
- package/dist/orchestration/routing/edit-handler.d.ts +0 -27
- package/dist/orchestration/routing/edit-handler.js +0 -205
- package/dist/orchestration/routing/file-handler.d.ts +0 -15
- package/dist/orchestration/routing/file-handler.js +0 -39
- package/dist/orchestration/routing/hook-bridge-subscribers.d.ts +0 -14
- package/dist/orchestration/routing/hook-bridge-subscribers.js +0 -174
- package/dist/orchestration/routing/hook-bridge.d.ts +0 -28
- package/dist/orchestration/routing/hook-bridge.js +0 -104
- package/dist/orchestration/routing/message-router.d.ts +0 -6
- package/dist/orchestration/routing/message-router.js +0 -62
- package/dist/orchestration/routing/webhook.d.ts +0 -10
- package/dist/orchestration/routing/webhook.js +0 -434
- package/dist/orchestration/runtime.d.ts +0 -30
- package/dist/orchestration/runtime.js +0 -37
- package/dist/orchestration/session-compact.d.ts +0 -50
- package/dist/orchestration/session-compact.js +0 -84
- package/dist/orchestration/session-events.d.ts +0 -173
- package/dist/orchestration/session-events.js +0 -140
- package/dist/orchestration/session-gateway.d.ts +0 -52
- package/dist/orchestration/session-gateway.js +0 -87
- package/dist/orchestration/session-retention-controller.d.ts +0 -14
- package/dist/orchestration/session-retention-controller.js +0 -88
- package/dist/orchestration/session-retention-liveness.d.ts +0 -13
- package/dist/orchestration/session-retention-liveness.js +0 -31
- package/dist/orchestration/session-rewind.d.ts +0 -79
- package/dist/orchestration/session-rewind.js +0 -147
- package/dist/orchestration/status-helpers.d.ts +0 -40
- package/dist/orchestration/status-helpers.js +0 -177
- package/dist/orchestration/subagent-adopt.d.ts +0 -20
- package/dist/orchestration/subagent-adopt.js +0 -43
- package/dist/orchestration/subagent-attribution.d.ts +0 -42
- package/dist/orchestration/subagent-attribution.js +0 -130
- package/dist/orchestration/subagent-delivery.d.ts +0 -43
- package/dist/orchestration/subagent-delivery.js +0 -112
- package/dist/orchestration/subagent-rows.d.ts +0 -11
- package/dist/orchestration/subagent-rows.js +0 -16
- package/dist/orchestration/subagent-webhook.d.ts +0 -6
- package/dist/orchestration/subagent-webhook.js +0 -89
- package/dist/orchestration/team-delivery.d.ts +0 -81
- package/dist/orchestration/team-delivery.js +0 -284
- package/dist/orchestration/team-inbox.d.ts +0 -18
- package/dist/orchestration/team-inbox.js +0 -49
- package/dist/orchestration/team-state.d.ts +0 -74
- package/dist/orchestration/team-state.js +0 -219
- package/dist/orchestration/team-webhook.d.ts +0 -57
- package/dist/orchestration/team-webhook.js +0 -293
- package/dist/orchestration/transcript-sink.d.ts +0 -83
- package/dist/orchestration/transcript-sink.js +0 -267
- package/dist/orchestration/turn/active-turns.d.ts +0 -49
- package/dist/orchestration/turn/active-turns.js +0 -76
- package/dist/orchestration/turn/background-hold.d.ts +0 -158
- package/dist/orchestration/turn/background-hold.js +0 -240
- package/dist/orchestration/turn/hold-render-platform.d.ts +0 -35
- package/dist/orchestration/turn/hold-render-platform.js +0 -105
- package/dist/orchestration/turn/hold-render-web.d.ts +0 -17
- package/dist/orchestration/turn/hold-render-web.js +0 -51
- package/dist/orchestration/turn/terminal.d.ts +0 -105
- package/dist/orchestration/turn/terminal.js +0 -194
- package/dist/orchestration/turn/turn-prep.d.ts +0 -33
- package/dist/orchestration/turn/turn-prep.js +0 -44
- package/dist/orchestration/turn/turn-tracking.d.ts +0 -22
- package/dist/orchestration/turn/turn-tracking.js +0 -89
- package/dist/orchestration/turn/turn.d.ts +0 -199
- package/dist/orchestration/turn/turn.js +0 -586
- package/dist/orchestration/turn-mutation-lock.d.ts +0 -3
- package/dist/orchestration/turn-mutation-lock.js +0 -32
- package/dist/orchestration/turn-notify.d.ts +0 -22
- package/dist/orchestration/turn-notify.js +0 -50
- package/dist/orchestration/waitpoint-ingress.d.ts +0 -36
- package/dist/orchestration/waitpoint-ingress.js +0 -183
- package/dist/orchestration/waitpoint-notifier.d.ts +0 -32
- package/dist/orchestration/waitpoint-notifier.js +0 -140
- package/dist/orchestration/waitpoint-remote-drain.d.ts +0 -22
- package/dist/orchestration/waitpoint-remote-drain.js +0 -134
- package/dist/orchestration/waitpoint-sweep.d.ts +0 -43
- package/dist/orchestration/waitpoint-sweep.js +0 -84
- package/dist/platform/adapter.d.ts +0 -48
- package/dist/platform/adapter.js +0 -1
- package/dist/platform/adapters/chunked-output-stream.d.ts +0 -71
- package/dist/platform/adapters/chunked-output-stream.js +0 -382
- package/dist/platform/adapters/composite-adapter.d.ts +0 -99
- package/dist/platform/adapters/composite-adapter.js +0 -369
- package/dist/platform/adapters/feishu-http.d.ts +0 -46
- package/dist/platform/adapters/feishu-http.js +0 -108
- package/dist/platform/adapters/feishu-image.d.ts +0 -19
- package/dist/platform/adapters/feishu-image.js +0 -64
- package/dist/platform/adapters/feishu-output-stream.d.ts +0 -11
- package/dist/platform/adapters/feishu-output-stream.js +0 -29
- package/dist/platform/adapters/feishu.d.ts +0 -167
- package/dist/platform/adapters/feishu.js +0 -1059
- package/dist/platform/adapters/index.d.ts +0 -19
- package/dist/platform/adapters/index.js +0 -108
- package/dist/platform/adapters/project-conduits.d.ts +0 -9
- package/dist/platform/adapters/project-conduits.js +0 -36
- package/dist/platform/adapters/slack-output-stream.d.ts +0 -15
- package/dist/platform/adapters/slack-output-stream.js +0 -33
- package/dist/platform/adapters/slack.d.ts +0 -106
- package/dist/platform/adapters/slack.js +0 -733
- package/dist/platform/adapters/tui/index.d.ts +0 -2
- package/dist/platform/adapters/tui/index.js +0 -2
- package/dist/platform/adapters/tui/ports.d.ts +0 -46
- package/dist/platform/adapters/tui/ports.js +0 -1
- package/dist/platform/adapters/tui/tui-connection.d.ts +0 -20
- package/dist/platform/adapters/tui/tui-connection.js +0 -44
- package/dist/platform/adapters/tui/tui-gateway.d.ts +0 -90
- package/dist/platform/adapters/tui/tui-gateway.js +0 -884
- package/dist/platform/adapters/tui/tui-output-stream.d.ts +0 -35
- package/dist/platform/adapters/tui/tui-output-stream.js +0 -94
- package/dist/platform/adapters/tui/tui-transcript.d.ts +0 -8
- package/dist/platform/adapters/tui/tui-transcript.js +0 -42
- package/dist/platform/browser/agent-browser.d.ts +0 -50
- package/dist/platform/browser/agent-browser.js +0 -165
- package/dist/platform/browser/display.d.ts +0 -48
- package/dist/platform/browser/display.js +0 -188
- package/dist/platform/browser/managed-browser.d.ts +0 -23
- package/dist/platform/browser/managed-browser.js +0 -357
- package/dist/platform/index.d.ts +0 -10
- package/dist/platform/index.js +0 -6
- package/dist/platform/interactive-builder.d.ts +0 -34
- package/dist/platform/interactive-builder.js +0 -138
- package/dist/platform/output-stream-chunk.d.ts +0 -6
- package/dist/platform/output-stream-chunk.js +0 -42
- package/dist/platform/output-stream-helpers.d.ts +0 -8
- package/dist/platform/output-stream-helpers.js +0 -19
- package/dist/platform/output-stream.d.ts +0 -35
- package/dist/platform/output-stream.js +0 -1
- package/dist/platform/testing.d.ts +0 -136
- package/dist/platform/testing.js +0 -286
- package/dist/platform/tool-trace.d.ts +0 -35
- package/dist/platform/tool-trace.js +0 -287
- package/dist/platform/tui/protocol.d.ts +0 -352
- package/dist/platform/tui/protocol.js +0 -146
- package/dist/platform/types.d.ts +0 -223
- package/dist/platform/types.js +0 -22
- package/dist/platform/ui-http/access-jwt.d.ts +0 -28
- package/dist/platform/ui-http/access-jwt.js +0 -53
- package/dist/platform/ui-http/app-update.d.ts +0 -69
- package/dist/platform/ui-http/app-update.js +0 -143
- package/dist/platform/ui-http/browser-stream.d.ts +0 -110
- package/dist/platform/ui-http/browser-stream.js +0 -447
- package/dist/platform/ui-http/device-ports.d.ts +0 -34
- package/dist/platform/ui-http/device-ports.js +0 -102
- package/dist/platform/ui-http/file-routes.d.ts +0 -23
- package/dist/platform/ui-http/file-routes.js +0 -224
- package/dist/platform/ui-http/http-json.d.ts +0 -24
- package/dist/platform/ui-http/http-json.js +0 -109
- package/dist/platform/ui-http/listening-ports.d.ts +0 -98
- package/dist/platform/ui-http/listening-ports.js +0 -239
- package/dist/platform/ui-http/port-forward.d.ts +0 -40
- package/dist/platform/ui-http/port-forward.js +0 -130
- package/dist/platform/ui-http/ui-auth-routes.d.ts +0 -51
- package/dist/platform/ui-http/ui-auth-routes.js +0 -120
- package/dist/platform/ui-http/ui-device-routes.d.ts +0 -13
- package/dist/platform/ui-http/ui-device-routes.js +0 -81
- package/dist/platform/ui-http/ui-devices.d.ts +0 -24
- package/dist/platform/ui-http/ui-devices.js +0 -107
- package/dist/platform/ui-http/ui-http-server.d.ts +0 -100
- package/dist/platform/ui-http/ui-http-server.js +0 -310
- package/dist/platform/ui-http/ui-ota.d.ts +0 -22
- package/dist/platform/ui-http/ui-ota.js +0 -151
- package/dist/platform/ui-http/ui-pairing.d.ts +0 -25
- package/dist/platform/ui-http/ui-pairing.js +0 -98
- package/dist/platform/ui-http/ui-session.d.ts +0 -33
- package/dist/platform/ui-http/ui-session.js +0 -124
- package/dist/platform/ui-http/zip-writer.d.ts +0 -13
- package/dist/platform/ui-http/zip-writer.js +0 -93
- package/dist/platform/utils/rate-limiter.d.ts +0 -90
- package/dist/platform/utils/rate-limiter.js +0 -203
- package/dist/platform/utils/reaction-diagnostics.d.ts +0 -9
- package/dist/platform/utils/reaction-diagnostics.js +0 -19
- package/dist/platform/utils/readable-file.d.ts +0 -9
- package/dist/platform/utils/readable-file.js +0 -18
- package/dist/store/board-migration.d.ts +0 -21
- package/dist/store/board-migration.js +0 -217
- package/dist/store/board-repo.d.ts +0 -35
- package/dist/store/board-repo.js +0 -62
- package/dist/store/builtin-overlay-migration.d.ts +0 -11
- package/dist/store/builtin-overlay-migration.js +0 -308
- package/dist/store/claude-transcript-migration.d.ts +0 -32
- package/dist/store/claude-transcript-migration.js +0 -119
- package/dist/store/conversation-display-projection.d.ts +0 -36
- package/dist/store/conversation-display-projection.js +0 -180
- package/dist/store/conversation-history-reader.d.ts +0 -30
- package/dist/store/conversation-history-reader.js +0 -440
- package/dist/store/conversation-history-repo.d.ts +0 -449
- package/dist/store/conversation-history-repo.js +0 -632
- package/dist/store/conversation-ledger-repo.d.ts +0 -76
- package/dist/store/conversation-ledger-repo.js +0 -219
- package/dist/store/cost-repo.d.ts +0 -88
- package/dist/store/cost-repo.js +0 -233
- package/dist/store/execution-repo.d.ts +0 -169
- package/dist/store/execution-repo.js +0 -329
- package/dist/store/gitignore-migration.d.ts +0 -2
- package/dist/store/gitignore-migration.js +0 -16
- package/dist/store/hook-registry.d.ts +0 -101
- package/dist/store/hook-registry.js +0 -319
- package/dist/store/hook-writer.d.ts +0 -43
- package/dist/store/hook-writer.js +0 -133
- package/dist/store/models-repo.d.ts +0 -18
- package/dist/store/models-repo.js +0 -74
- package/dist/store/outbound-queue.d.ts +0 -67
- package/dist/store/outbound-queue.js +0 -284
- package/dist/store/pending-injection-repo.d.ts +0 -29
- package/dist/store/pending-injection-repo.js +0 -52
- package/dist/store/project-dir-repo.d.ts +0 -17
- package/dist/store/project-dir-repo.js +0 -44
- package/dist/store/project-notes-repo.d.ts +0 -27
- package/dist/store/project-notes-repo.js +0 -219
- package/dist/store/prompt-migration-replacements.d.ts +0 -3
- package/dist/store/prompt-migration-replacements.js +0 -96
- package/dist/store/provider-state-repo.d.ts +0 -22
- package/dist/store/provider-state-repo.js +0 -115
- package/dist/store/retention-candidate-repo.d.ts +0 -12
- package/dist/store/retention-candidate-repo.js +0 -47
- package/dist/store/retire-profiles-migration.d.ts +0 -28
- package/dist/store/retire-profiles-migration.js +0 -335
- package/dist/store/schedule-repo.d.ts +0 -53
- package/dist/store/schedule-repo.js +0 -121
- package/dist/store/session-registry-import.d.ts +0 -34
- package/dist/store/session-registry-import.js +0 -173
- package/dist/store/session-registry-journal.d.ts +0 -195
- package/dist/store/session-registry-journal.js +0 -871
- package/dist/store/session-registry-repo.d.ts +0 -169
- package/dist/store/session-registry-repo.js +0 -530
- package/dist/store/session-totals-repo.d.ts +0 -45
- package/dist/store/session-totals-repo.js +0 -104
- package/dist/store/session-totals.d.ts +0 -69
- package/dist/store/session-totals.js +0 -93
- package/dist/store/team-inbox-repo.d.ts +0 -34
- package/dist/store/team-inbox-repo.js +0 -72
- package/dist/store/team-outbox-repo.d.ts +0 -20
- package/dist/store/team-outbox-repo.js +0 -39
- package/dist/store/tool-image-files.d.ts +0 -12
- package/dist/store/tool-image-files.js +0 -40
- package/dist/store/version-migrations.d.ts +0 -120
- package/dist/store/version-migrations.js +0 -1408
- package/dist/store/waitpoint-repo.d.ts +0 -111
- package/dist/store/waitpoint-repo.js +0 -83
- package/dist/tui/App.d.ts +0 -27
- package/dist/tui/App.js +0 -406
- package/dist/tui/components/AskUserModal.d.ts +0 -10
- package/dist/tui/components/AskUserModal.js +0 -362
- package/dist/tui/components/ConfirmModal.d.ts +0 -12
- package/dist/tui/components/ConfirmModal.js +0 -29
- package/dist/tui/components/Dashboard.d.ts +0 -24
- package/dist/tui/components/Dashboard.js +0 -89
- package/dist/tui/components/DashboardCostTab.d.ts +0 -7
- package/dist/tui/components/DashboardCostTab.js +0 -32
- package/dist/tui/components/DashboardExecutionsTab.d.ts +0 -11
- package/dist/tui/components/DashboardExecutionsTab.js +0 -112
- package/dist/tui/components/DashboardSchedulesTab.d.ts +0 -11
- package/dist/tui/components/DashboardSchedulesTab.js +0 -132
- package/dist/tui/components/InputBox.d.ts +0 -26
- package/dist/tui/components/InputBox.js +0 -266
- package/dist/tui/components/Notifications.d.ts +0 -12
- package/dist/tui/components/Notifications.js +0 -59
- package/dist/tui/components/ProjectSwitcher.d.ts +0 -17
- package/dist/tui/components/ProjectSwitcher.js +0 -40
- package/dist/tui/components/SessionPicker.d.ts +0 -13
- package/dist/tui/components/SessionPicker.js +0 -42
- package/dist/tui/components/SidePanel.d.ts +0 -19
- package/dist/tui/components/SidePanel.js +0 -8
- package/dist/tui/components/SlashMenu.d.ts +0 -8
- package/dist/tui/components/SlashMenu.js +0 -15
- package/dist/tui/components/StatusLine.d.ts +0 -19
- package/dist/tui/components/StatusLine.js +0 -39
- package/dist/tui/components/Transcript.d.ts +0 -21
- package/dist/tui/components/Transcript.js +0 -150
- package/dist/tui/components/dashboard-constants.d.ts +0 -1
- package/dist/tui/components/dashboard-constants.js +0 -1
- package/dist/tui/hooks/useDashboardData.d.ts +0 -24
- package/dist/tui/hooks/useDashboardData.js +0 -75
- package/dist/tui/hooks/useKeybindings.d.ts +0 -19
- package/dist/tui/hooks/useKeybindings.js +0 -75
- package/dist/tui/hooks/useMouseHandler.d.ts +0 -15
- package/dist/tui/hooks/useMouseHandler.js +0 -90
- package/dist/tui/hooks/useMutate.d.ts +0 -22
- package/dist/tui/hooks/useMutate.js +0 -54
- package/dist/tui/hooks/useNotifications.d.ts +0 -26
- package/dist/tui/hooks/useNotifications.js +0 -60
- package/dist/tui/hooks/useTranscript.d.ts +0 -42
- package/dist/tui/hooks/useTranscript.js +0 -277
- package/dist/tui/index.d.ts +0 -2
- package/dist/tui/logic.d.ts +0 -144
- package/dist/tui/logic.js +0 -388
- package/dist/tui/raf-batch.d.ts +0 -31
- package/dist/tui/raf-batch.js +0 -89
- package/dist/tui/render/inline-markdown.d.ts +0 -22
- package/dist/tui/render/inline-markdown.js +0 -99
- package/dist/tui/render/markdown.d.ts +0 -10
- package/dist/tui/render/markdown.js +0 -35
- package/dist/tui/render-output.d.ts +0 -42
- package/dist/tui/render-output.js +0 -81
- package/dist/tui/slash-commands.d.ts +0 -21
- package/dist/tui/slash-commands.js +0 -71
- package/dist/tui/turn-status.d.ts +0 -10
- package/dist/tui/turn-status.js +0 -48
- package/dist/tui/ws-client.d.ts +0 -39
- package/dist/tui/ws-client.js +0 -139
- package/scripts/install-bundled-dependencies.mjs +0 -54
- package/web/dist/assets/board-math-css-spk7yR6n.js +0 -2
- package/web/dist/assets/index-BQ69u-92.css +0 -1
- package/web/dist/assets/index-CKNLatCd.js +0 -1
- package/web/dist/assets/index-CkzWfC98.js +0 -525
|
@@ -1,1808 +0,0 @@
|
|
|
1
|
-
import type { PlatformSettingsSnapshot } from '../../core/platform-settings-spec.js';
|
|
2
|
-
export type { PlatformSettingsPatch, PlatformSettingsSnapshot, PlatformFieldSnapshot, PlatformFieldKey } from '../../core/platform-settings-spec.js';
|
|
3
|
-
import type { ResolveMediaInput, ResolveMediaResult } from './inline-media-types.js';
|
|
4
|
-
export type { InlineMediaErrorCode, ResolveMediaInput, ResolveMediaResult } from './inline-media-types.js';
|
|
5
|
-
import type { SessionsSetStarredReturn, SessionsRenameReturn } from './session-metadata-schemas.js';
|
|
6
|
-
export type { SessionsSetStarredArgs, SessionsSetStarredReturn, SessionsRenameArgs, SessionsRenameReturn, } from './session-metadata-schemas.js';
|
|
7
|
-
import type { z } from 'zod';
|
|
8
|
-
import type { EngineSelection, ModelRef } from '../agents/engine-selection.js';
|
|
9
|
-
export type { EngineSelection, ModelRef } from '../agents/engine-selection.js';
|
|
10
|
-
import type { queryInputSchemas, mutateInputSchemas } from './input-schemas.js';
|
|
11
|
-
import type { Project, CreateProjectResult } from '../projects/index.js';
|
|
12
|
-
import type { CostSummary } from '../costs/cost-tracker.js';
|
|
13
|
-
import type { ProviderUsage } from '../costs/usage-store.js';
|
|
14
|
-
export type { ProviderUsage, UsageBilling, UsageFreshness, UsageResetCredit, UsageResetCredits, UsageWindow, } from '../costs/usage-store.js';
|
|
15
|
-
import type { UsageResetResult } from '../costs/account-reset.js';
|
|
16
|
-
export type { UsageResetResult } from '../costs/account-reset.js';
|
|
17
|
-
export type { ResetProvider, ResetStatus } from '../costs/reset-account.js';
|
|
18
|
-
import type { ServerUpdateStatus } from '../system/update-ui-state.js';
|
|
19
|
-
import type { SystemUpdateCheckResult } from '../system/server-update-coordinator.js';
|
|
20
|
-
export type { SystemUpdateCheckResult } from '../system/server-update-coordinator.js';
|
|
21
|
-
export type { ServerUpdateState, ServerUpdateStatus } from '../system/update-ui-state.js';
|
|
22
|
-
import type { EventBus } from '../../events/index.js';
|
|
23
|
-
import type { SessionStateReader } from '../../core/session-state.js';
|
|
24
|
-
import type { SettingSnapshotEntry } from '../../core/settings-spec.js';
|
|
25
|
-
import type { EnvironmentSystemPrompt } from '../agents/environments/system-prompt.js';
|
|
26
|
-
export type { EnvironmentSystemPrompt, SystemPromptKind } from '../agents/environments/system-prompt.js';
|
|
27
|
-
import type { AttachmentMeta, AuthNoticeAction, ChatNoticeLevel, NoticeAction, SessionContextUsage, SystemTurnOrigin, TodoSnapshot } from '../../core/types/agent-types.js';
|
|
28
|
-
export type { AuthNoticeAction, ChatNoticeLevel, NoticeAction, SessionContextUsage, SystemTurnOrigin, TodoItem, TodoSnapshot, TodoStatus, } from '../../core/types/agent-types.js';
|
|
29
|
-
import type { PlatformAdapter } from '../../platform/adapter.js';
|
|
30
|
-
import type { SubagentSpawnRef } from '../../core/subagent-spawn.js';
|
|
31
|
-
import type { TeamActionRef, TeamWorkerRef } from '../../core/team-action.js';
|
|
32
|
-
export type { TeamActionRef, TeamWorkerRef } from '../../core/team-action.js';
|
|
33
|
-
import type { BoardActionRef } from '../../core/board-action.js';
|
|
34
|
-
export type { BoardActionRef } from '../../core/board-action.js';
|
|
35
|
-
import type { HookBackend, HookEvent, HookFilterValue, HookResultMode, HookSource } from '../../store/hook-registry.js';
|
|
36
|
-
import type { HookApplyTime, HookMountTarget } from '../hooks/hook-view.js';
|
|
37
|
-
import type { LayerOrigin } from '../../core/builtin-layer.js';
|
|
38
|
-
export type { HookApplyTime, HookMountTarget } from '../hooks/hook-view.js';
|
|
39
|
-
import type { Session } from '../../store/session-registry-repo.js';
|
|
40
|
-
import type { ExecutionRecord } from '../../store/execution-repo.js';
|
|
41
|
-
import type { Waitpoint } from '../../store/waitpoint-repo.js';
|
|
42
|
-
import type { SessionTotals } from '../../store/session-totals.js';
|
|
43
|
-
export type { SessionTotals } from '../../store/session-totals.js';
|
|
44
|
-
import type { ScheduleTask } from '../../store/schedule-repo.js';
|
|
45
|
-
import type { ScheduleSpec, SchedulePatch } from '../scheduling/schedule-spec.js';
|
|
46
|
-
import type { BoardRecord } from '../../store/board-repo.js';
|
|
47
|
-
import type { SessionHistory } from '../../store/conversation-history-repo.js';
|
|
48
|
-
import type { Backend } from '../../agent-adapter/types.js';
|
|
49
|
-
import type { ProjectNote } from '../../store/project-notes-repo.js';
|
|
50
|
-
import type { AuthLoginService, AuthLogoutResult, AuthLogoutSuccess, AuthStatusSnapshot, LoginFlowState, LogoutAccountInput } from '../auth/index.js';
|
|
51
|
-
export type { AuthAccountState, AuthAccountStatus, AuthCredentialStatus, AuthStatusSnapshot, AuthType, LoginFlowNotice, LoginFlowState, LoginFlowStep, LoginOutcome, LoginPendingPrompt, LoginPromptOption, } from '../auth/index.js';
|
|
52
|
-
import type { CustomProviderStores, CustomProviderView } from '../pi-providers/index.js';
|
|
53
|
-
export type { CustomProviderApi, CustomProviderModelSpec, CustomProviderView, } from '../pi-providers/index.js';
|
|
54
|
-
import type { UsageSharingSettings } from '../costs/aistatus-config.js';
|
|
55
|
-
export type { UsageSharingSettings } from '../costs/aistatus-config.js';
|
|
56
|
-
import type { TelemetryInfo } from '../telemetry/info.js';
|
|
57
|
-
export type { TelemetryInfo } from '../telemetry/info.js';
|
|
58
|
-
import type { ClientKind } from '../telemetry/client-kind.js';
|
|
59
|
-
export type { ClientKind } from '../telemetry/client-kind.js';
|
|
60
|
-
export type { ProviderRateLimitPolicyOverride, ProviderRateLimitWindowPolicyOverride, ProviderRateLimits, } from '../../core/settings-spec.js';
|
|
61
|
-
export type Ok<T> = {
|
|
62
|
-
ok: true;
|
|
63
|
-
data: T;
|
|
64
|
-
};
|
|
65
|
-
export type Err = {
|
|
66
|
-
ok: false;
|
|
67
|
-
code: string;
|
|
68
|
-
message: string;
|
|
69
|
-
};
|
|
70
|
-
export type Result<T> = Ok<T> | Err;
|
|
71
|
-
type QueryInputSchemas = typeof queryInputSchemas;
|
|
72
|
-
type MutateInputSchemas = typeof mutateInputSchemas;
|
|
73
|
-
/** Every query scope — the keys of `queryInputSchemas` (mirrored by `QueryReturnMap`). */
|
|
74
|
-
export type QueryScope = keyof QueryInputSchemas;
|
|
75
|
-
/** Every mutate op — the keys of `mutateInputSchemas` (mirrored by `MutateReturnMap`). */
|
|
76
|
-
export type MutateOp = keyof MutateInputSchemas;
|
|
77
|
-
export interface SubscribeFilter {
|
|
78
|
-
events: string[];
|
|
79
|
-
projectId?: string | null;
|
|
80
|
-
/** Scope `session.message` events to a single session (S4 chat live stream). REQUIRED for
|
|
81
|
-
* `session.message.delta`: token-level previews are delivered to session-scoped subscriptions
|
|
82
|
-
* only, so an app-wide stream is never flooded with another session's deltas. */
|
|
83
|
-
sessionId?: string | null;
|
|
84
|
-
}
|
|
85
|
-
export interface UiEvent {
|
|
86
|
-
type: string;
|
|
87
|
-
ts: string;
|
|
88
|
-
payload: unknown;
|
|
89
|
-
}
|
|
90
|
-
export interface SessionsPendingInteraction {
|
|
91
|
-
askUser: {
|
|
92
|
-
requestId: string;
|
|
93
|
-
questions: {
|
|
94
|
-
question: string;
|
|
95
|
-
header: string;
|
|
96
|
-
options: {
|
|
97
|
-
label: string;
|
|
98
|
-
description?: string;
|
|
99
|
-
}[];
|
|
100
|
-
multiSelect: boolean;
|
|
101
|
-
}[];
|
|
102
|
-
blocking: boolean;
|
|
103
|
-
} | null;
|
|
104
|
-
plan: {
|
|
105
|
-
requestId: string;
|
|
106
|
-
planContent: string;
|
|
107
|
-
planFilePath: string | null;
|
|
108
|
-
} | null;
|
|
109
|
-
}
|
|
110
|
-
export type AuthLogoutReturn = AuthLogoutSuccess;
|
|
111
|
-
export interface AuthSyncGatewayReturn {
|
|
112
|
-
/** False when nothing was written (see `reason`); not an error. */
|
|
113
|
-
configured: boolean;
|
|
114
|
-
endpoints: number;
|
|
115
|
-
defaultSet: boolean;
|
|
116
|
-
favorites: ModelRef[];
|
|
117
|
-
reason?: string;
|
|
118
|
-
}
|
|
119
|
-
export interface AuthRemoveCustomProviderReturn {
|
|
120
|
-
removed: boolean;
|
|
121
|
-
}
|
|
122
|
-
export type { AttachmentMeta } from '../../core/types/agent-types.js';
|
|
123
|
-
export interface SessionsMarkManyReadReturn {
|
|
124
|
-
/** How many of the requested sessions were stamped — ids that no longer resolve (purged runs)
|
|
125
|
-
* are skipped rather than failing the batch. */
|
|
126
|
-
marked: number;
|
|
127
|
-
}
|
|
128
|
-
/** Return of sessions.answerQuestion / sessions.respondPlan. 'already-resolved' means another
|
|
129
|
-
* client (or Slack / timeout) resolved the interaction first — not an error; the caller
|
|
130
|
-
* refetches the transcript to show the final state. */
|
|
131
|
-
export interface SessionsInteractionMutateReturn {
|
|
132
|
-
outcome: 'resolved' | 'already-resolved';
|
|
133
|
-
}
|
|
134
|
-
/** `already-approved` = a repeated approve (another device or a double-click) — idempotent,
|
|
135
|
-
* not an error; the card simply shows the recorded state. */
|
|
136
|
-
export interface SessionsRespondDecisionReturn {
|
|
137
|
-
outcome: 'recorded' | 'already-approved';
|
|
138
|
-
}
|
|
139
|
-
/** `cancelled: false` means nothing was queued any more — the window reset and the turn
|
|
140
|
-
* already resumed. A late click is a no-op, not an error. */
|
|
141
|
-
export interface SessionsCancelResumeReturn {
|
|
142
|
-
cancelled: boolean;
|
|
143
|
-
}
|
|
144
|
-
/** Fire-and-forget like sessions.send — the regenerated reply streams over `session.message`. */
|
|
145
|
-
export interface SessionsRewindReturn {
|
|
146
|
-
accepted: true;
|
|
147
|
-
}
|
|
148
|
-
export interface BudgetValue {
|
|
149
|
-
daily_usd: number;
|
|
150
|
-
monthly_usd: number;
|
|
151
|
-
}
|
|
152
|
-
export interface ProviderRateLimitPolicy {
|
|
153
|
-
provider: string;
|
|
154
|
-
windowType?: string;
|
|
155
|
-
windowLabel?: string;
|
|
156
|
-
enabled: boolean;
|
|
157
|
-
threshold: number | null;
|
|
158
|
-
}
|
|
159
|
-
export interface ModelsMutationReturn {
|
|
160
|
-
changed: boolean;
|
|
161
|
-
}
|
|
162
|
-
export interface ProjectConduitInfo {
|
|
163
|
-
id: string;
|
|
164
|
-
kind: 'research' | 'general';
|
|
165
|
-
contextDir: string;
|
|
166
|
-
hasMission: boolean;
|
|
167
|
-
conduits: Record<string, string>;
|
|
168
|
-
}
|
|
169
|
-
export interface SessionInfo {
|
|
170
|
-
/** The stable TRACK id (Cortex UI identity): registry key, `session.*` events, transcript, and every
|
|
171
|
-
* ui-service op key. Since the track/backend session-id decoupling this is NO LONGER the backend CLI
|
|
172
|
-
* resume target — use `backendSessionId` for that. */
|
|
173
|
-
sessionId: string;
|
|
174
|
-
/** The backend CLI resume target (`--resume`/`--session-id`) and session-backup file name — the id
|
|
175
|
-
* the "Session ID" surface shows as the backend UUID. Null on a fresh session before its first turn
|
|
176
|
-
* completes (no backend id assigned yet — never fabricated). Legacy records that predate the
|
|
177
|
-
* decoupling fall back to `sessionId` (where the conflated id WAS the backend id). */
|
|
178
|
-
backendSessionId: string | null;
|
|
179
|
-
projectId: string;
|
|
180
|
-
backend: string;
|
|
181
|
-
kind: 'local' | 'scheduled';
|
|
182
|
-
/** How the session was initiated: 'direct' (user chat), 'thread' (pipeline/dispatch
|
|
183
|
-
* step), or 'scheduled' (scheduled job). The workbench session list shows only 'direct'. */
|
|
184
|
-
origin: 'direct' | 'thread' | 'scheduled';
|
|
185
|
-
/** The schedule (ScheduleInfo.id) whose fire produced this session — drives the left rail's
|
|
186
|
-
* per-schedule run grouping and the chat trigger card. Survives a reply converting the run to
|
|
187
|
-
* a direct session (provenance). Null for sessions with no schedule origin / legacy records. */
|
|
188
|
-
scheduleId: string | null;
|
|
189
|
-
/** The board (BoardInfo.id) this session is bound to, or null. At most one per session. */
|
|
190
|
-
boardId: string | null;
|
|
191
|
-
/** Team mode: the lead session that owns this worker; non-null means this session is a worker. */
|
|
192
|
-
teamLeadId: string | null;
|
|
193
|
-
/** The worker's short name within its team; null outside team mode. */
|
|
194
|
-
workerName: string | null;
|
|
195
|
-
/** Team mode: what the lead spawned this worker to do (first line of its spawn prompt, capped).
|
|
196
|
-
* Null for ordinary sessions and for workers spawned before the record carried it. */
|
|
197
|
-
workerBrief?: string | null;
|
|
198
|
-
createdAt: string;
|
|
199
|
-
lastUsedAt: string;
|
|
200
|
-
resumable: boolean;
|
|
201
|
-
label: string | null;
|
|
202
|
-
/** Optional for older fixtures/clients; sessions.list always supplies a boolean. */
|
|
203
|
-
starred?: boolean;
|
|
204
|
-
/** Explicitly renamed labels take precedence over generated scheduled-run titles. */
|
|
205
|
-
labelRenamed?: boolean;
|
|
206
|
-
/** Complete engine choice persisted with the session. */
|
|
207
|
-
selection: EngineSelection | null;
|
|
208
|
-
/** The agent template the session runs as — its environment (prompt, tools, skills, rules), the
|
|
209
|
-
* other half of "what will the next turn be". Null when the session follows its channel's
|
|
210
|
-
* selection and, beneath that, the global default. Kept in sync by the agent-switch rule. */
|
|
211
|
-
agentName?: string | null;
|
|
212
|
-
/** Latest backend context occupancy, or null until a supported backend reports one. Optional only
|
|
213
|
-
* for rolling compatibility with older servers/fixtures; current sessions.list always supplies it. */
|
|
214
|
-
contextUsage?: SessionContextUsage | null;
|
|
215
|
-
/** Whether this backend supports manual context compaction. */
|
|
216
|
-
contextCompactionSupported?: boolean;
|
|
217
|
-
/** The agent's latest task list, or null when it has not written one. Queryable snapshot half of
|
|
218
|
-
* snapshot+delta — `session.todos` is the delta. Live state, not persisted: a server restart
|
|
219
|
-
* ends the run that owned the list, so an absent list after boot is the truth. */
|
|
220
|
-
todos?: TodoSnapshot | null;
|
|
221
|
-
/** Live running snapshot: true while an interactive turn (a non-thread execution) is live on the
|
|
222
|
-
* session's channel. Authoritative at query time — the client uses this as the snapshot and the
|
|
223
|
-
* `session.status` event stream as the delta (snapshot + delta), so running state survives
|
|
224
|
-
* session switches, page reloads, and SSE reconnects. */
|
|
225
|
-
running: boolean;
|
|
226
|
-
/** Background-hold snapshot (web bg-hold): true while the session's foreground turn has ended but
|
|
227
|
-
* a background task (run_in_background Bash / background subagent) still holds it — `running`
|
|
228
|
-
* stays true throughout. Mirrors the `session.status` `backgroundRunning` delta via the in-memory
|
|
229
|
-
* bg-held registry (snapshot + delta, same pattern as `running`), so the state survives session
|
|
230
|
-
* switches, page reloads, and app restarts. False while a live foreground turn is on the channel. */
|
|
231
|
-
backgroundRunning: boolean;
|
|
232
|
-
/** Awaiting-user-action snapshot: true while the session is blocked on a pending interaction that
|
|
233
|
-
* needs the user to act — an ask-user question or a plan approval — resolved from the in-memory
|
|
234
|
-
* pending maps keyed by the session's channel (`getPendingAskUser`/`getPendingPlan`). This is the
|
|
235
|
-
* ONLY state that drives the rail's amber「需要你」dot; plain running and web bg-hold both render
|
|
236
|
-
* blue. False when nothing is pending, and false when the pending-interaction deps are absent
|
|
237
|
-
* (fixtures / TUI). Snapshot-only, mirrored live via the `session.interaction` event stream. */
|
|
238
|
-
awaitingInput: boolean;
|
|
239
|
-
/** How many waitpoints this session is still waiting on — external "wake me when X finishes"
|
|
240
|
-
* objects that are still `armed` (docs/waitpoints.md). Distinct from `awaitingInput`: that one
|
|
241
|
-
* means "blocked on YOU", this one means "blocked on a machine, nothing for you to do", which is
|
|
242
|
-
* why it must never drive the amber dot. Counted with the ownership union documented on
|
|
243
|
-
* WaitpointInfo (own sessionId OR own channel), deduped per waitpoint. 0 when nothing is pending
|
|
244
|
-
* and 0 when the waitpoint dep is absent (fixtures / TUI). Optional for rolling compatibility
|
|
245
|
-
* with older servers, like `totals` below — consumers read it as `?? 0`. */
|
|
246
|
-
waitingOn?: number;
|
|
247
|
-
/** Team mode: a worker's blocking questions and plans that were routed to its lead (counted here,
|
|
248
|
-
* not in `awaitingInput`, because the lead answers them). 0 for every other session. */
|
|
249
|
-
waitingOnLead?: number;
|
|
250
|
-
/** Real agent-turn count for the composer (NOT the number of user-message rounds). While running,
|
|
251
|
-
* the live count of the in-flight turn (from the running execution); while idle, the last run's
|
|
252
|
-
* final turn count (from the most recent non-thread execution on the session's channel). Null when
|
|
253
|
-
* unknown (a running turn before its first progress event, or a session that never ran). The client
|
|
254
|
-
* uses this as the snapshot and the `session.turn` event stream as the delta (snapshot + delta). */
|
|
255
|
-
numTurns: number | null;
|
|
256
|
-
/** Last run's total cost in USD for the composer status line. Sourced from the most recent
|
|
257
|
-
* non-thread execution on the session's channel (`metrics.costUsd`), the same run whose turn count
|
|
258
|
-
* drives `numTurns`. Null while running (cost is only finalized at turn end — there is no live
|
|
259
|
-
* in-memory cost source, so a running turn never falls back to the previous run's cost) and null
|
|
260
|
-
* when the session never ran. Snapshot-only (no live delta event); refreshed when sessions.list
|
|
261
|
-
* refetches on a turn-end status edge. */
|
|
262
|
-
costUsd: number | null;
|
|
263
|
-
/** WHOLE-SESSION cumulative stats — the counterpart of `numTurns`/`costUsd` above, which describe
|
|
264
|
-
* only the last run. Null when the session has never finished a run. Carries its own semantics
|
|
265
|
-
* (see SessionTotals): time and turns count the session's own runs, cost also includes the
|
|
266
|
-
* Agent-tool children those runs spawned. Optional for rolling compatibility with older servers.
|
|
267
|
-
* Snapshot-only, like `costUsd`: refreshed when sessions.list refetches on a turn-end edge. */
|
|
268
|
-
totals?: SessionTotals | null;
|
|
269
|
-
/** Unread: the session had activity (lastUsedAt, bumped at turn end) AFTER the user last viewed
|
|
270
|
-
* it (`sessions.markRead` → registry lastReadAt). Legacy records with no lastReadAt are treated
|
|
271
|
-
* as read (no unread flood on first deploy). */
|
|
272
|
-
unread: boolean;
|
|
273
|
-
/** When the user last viewed the session (`sessions.markRead`); null when never. The chat finds
|
|
274
|
-
* the first reply that landed after it. Optional for rolling compatibility with older servers. */
|
|
275
|
-
lastReadAt?: string | null;
|
|
276
|
-
}
|
|
277
|
-
export type InteractionKind = 'ask-user' | 'plan-approval';
|
|
278
|
-
export type InteractionStatus = 'pending' | 'answered' | 'approved' | 'rejected' | 'expired' | 'cancelled';
|
|
279
|
-
export interface InteractionQuestion {
|
|
280
|
-
question: string;
|
|
281
|
-
header: string;
|
|
282
|
-
options: {
|
|
283
|
-
label: string;
|
|
284
|
-
description?: string;
|
|
285
|
-
}[];
|
|
286
|
-
multiSelect: boolean;
|
|
287
|
-
}
|
|
288
|
-
export type DecisionActionKind = 'approve' | 'explain' | 'revise';
|
|
289
|
-
export interface DecisionAction {
|
|
290
|
-
action: DecisionActionKind;
|
|
291
|
-
/** The chat message sent for explain/revise; absent for approve (nothing goes to the agent). */
|
|
292
|
-
message?: string;
|
|
293
|
-
ts: string;
|
|
294
|
-
}
|
|
295
|
-
export interface DecisionItem {
|
|
296
|
-
id: string;
|
|
297
|
-
title: string;
|
|
298
|
-
decision: string;
|
|
299
|
-
context: string;
|
|
300
|
-
reasoning: string;
|
|
301
|
-
actions: DecisionAction[];
|
|
302
|
-
}
|
|
303
|
-
export interface TranscriptInteractionDetail {
|
|
304
|
-
id: string;
|
|
305
|
-
kind: InteractionKind;
|
|
306
|
-
status: InteractionStatus;
|
|
307
|
-
payload: {
|
|
308
|
-
questions?: InteractionQuestion[];
|
|
309
|
-
/** Severity of an ask-user card ('info'|'warning'|'error') — absent = neutral look. */
|
|
310
|
-
level?: ChatNoticeLevel;
|
|
311
|
-
/** False only on a non-blocking ask-user card (the agent did not wait for it). */
|
|
312
|
-
blocking?: boolean;
|
|
313
|
-
planContent?: string;
|
|
314
|
-
planFilePath?: string | null;
|
|
315
|
-
};
|
|
316
|
-
result?: {
|
|
317
|
-
answers?: Record<string, string>;
|
|
318
|
-
feedback?: string;
|
|
319
|
-
};
|
|
320
|
-
resolvedVia?: string;
|
|
321
|
-
}
|
|
322
|
-
export interface TranscriptDebugDetails {
|
|
323
|
-
/** Exact message sent to the agent for a user turn. */
|
|
324
|
-
agentMessage?: string;
|
|
325
|
-
/** Opaque reference for fetching one tool's full DEBUG payload. */
|
|
326
|
-
toolRef?: string;
|
|
327
|
-
/** Unabridged structured tool-call input. */
|
|
328
|
-
toolInput?: unknown;
|
|
329
|
-
/** Full correlated normalized tool result. */
|
|
330
|
-
toolResult?: {
|
|
331
|
-
content: string;
|
|
332
|
-
isError: boolean;
|
|
333
|
-
};
|
|
334
|
-
/** Derived at query time from the agent-server warning threshold; never persisted. */
|
|
335
|
-
overCharacterThreshold?: true;
|
|
336
|
-
}
|
|
337
|
-
export interface TranscriptMessage {
|
|
338
|
-
/** `worker-progress`: a team worker's final reply for a turn that ended while it still had work
|
|
339
|
-
* pending (queued message, background task, open waitpoint or interaction). Recorded in the
|
|
340
|
-
* LEAD's history for display only: it never reaches the lead model and is not a user turn. */
|
|
341
|
-
type: 'user' | 'assistant' | 'thinking' | 'tool' | 'interaction' | 'worker-progress';
|
|
342
|
-
blockId?: string;
|
|
343
|
-
/** user / assistant / interaction / worker-progress text; null for tool events. */
|
|
344
|
-
text: string | null;
|
|
345
|
-
/** tool name (tool events only). */
|
|
346
|
-
toolName: string | null;
|
|
347
|
-
/** compact tool input summary (tool events only). */
|
|
348
|
-
toolInput: string | null;
|
|
349
|
-
/** Remote execution target (remote tool events only). */
|
|
350
|
-
toolDevice?: string;
|
|
351
|
-
/** What a lead's worker tool call did (worker_spawn/send/answer/stop tool rows only). */
|
|
352
|
-
teamAction?: TeamActionRef;
|
|
353
|
-
/** What a successful `board_open` call did (its tool row only; absent on failed calls and on
|
|
354
|
-
* rows written before this field existed). */
|
|
355
|
-
boardAction?: BoardActionRef;
|
|
356
|
-
/** The worker a `worker-progress` row came from (worker-progress rows only). */
|
|
357
|
-
worker?: TeamWorkerRef;
|
|
358
|
-
/** User rows only: Cortex authored this turn — a resume signal, a task/thread callback, a
|
|
359
|
-
* subtask's question, a backgrounded agent's result — rather than a human typing it. Chat
|
|
360
|
-
* surfaces render it as a one-line hint instead of a user bubble. Absent = human. */
|
|
361
|
-
systemOrigin?: SystemTurnOrigin;
|
|
362
|
-
/** Sensitive lossless data. Present only in responses produced while server DEBUG is enabled. */
|
|
363
|
-
debug?: TranscriptDebugDetails;
|
|
364
|
-
/** Semantic chat-notice styling for system-authored assistant messages. */
|
|
365
|
-
noticeLevel?: ChatNoticeLevel;
|
|
366
|
-
/** Control the notice offers (e.g. declining a promised auto-resume). */
|
|
367
|
-
noticeAction?: NoticeAction;
|
|
368
|
-
/** Secret-free one-click target carried only by authentication notices. */
|
|
369
|
-
authAction?: AuthNoticeAction;
|
|
370
|
-
/** interaction subtype: 'ask-user-answered' | 'plan-approved' | 'plan-rejected' (legacy rows)
|
|
371
|
-
* or derived from kind+status for entity rows (display compat). */
|
|
372
|
-
subtype?: string;
|
|
373
|
-
/** Structured interaction entity (interaction rows with an id). Absent on legacy rows. */
|
|
374
|
-
interaction?: TranscriptInteractionDetail;
|
|
375
|
-
/** File attachments: user uploads via the web composer (15a, user messages), agent-sent
|
|
376
|
-
* files via the `send_file` MCP tool (20a, assistant messages), or the images a tool call
|
|
377
|
-
* returned to the model (tool messages). */
|
|
378
|
-
attachments?: AttachmentMeta[];
|
|
379
|
-
/** Agent-announced decisions via the `send_decision` MCP tool (assistant messages). */
|
|
380
|
-
decisions?: DecisionItem[];
|
|
381
|
-
/** Present on a user message that replaced an earlier one via edit+rewind (sessions.rewind):
|
|
382
|
-
* the original text/ts backing the「已编辑」badge + hover/tap original-message card. */
|
|
383
|
-
edited?: {
|
|
384
|
-
originalText: string;
|
|
385
|
-
originalTs: string;
|
|
386
|
-
};
|
|
387
|
-
/** Native-subagent grouping key on rows produced by one child. Absent = main agent. */
|
|
388
|
-
subagentId?: string;
|
|
389
|
-
/** Complete prompts for every child spawned by this main-agent tool row. */
|
|
390
|
-
subagentSpawns?: SubagentSpawnRef[];
|
|
391
|
-
/** Declared subagent type, e.g. `explore`. Reported on the subagent's rows, not the anchor. */
|
|
392
|
-
subagentType?: string;
|
|
393
|
-
/** The spawning call's task description as the backend reports it. */
|
|
394
|
-
subagentDescription?: string;
|
|
395
|
-
/** The model that produced this row, as the subagent's own messages report it. Absent on the
|
|
396
|
-
* anchor and on history written before the field existed — absent means unknown. */
|
|
397
|
-
subagentModel?: string;
|
|
398
|
-
/** Terminal state the backend reported for the subagent named by `subagentId`. Live-only: it
|
|
399
|
-
* corrects that block's status while the session is held open and is never persisted, because
|
|
400
|
-
* a session that is no longer live re-derives every block as done anyway. */
|
|
401
|
-
subagentEnded?: 'completed' | 'failed' | 'killed';
|
|
402
|
-
ts: string;
|
|
403
|
-
/**
|
|
404
|
-
* Real elapsed since the previous message in the session's chronological stream, in ms
|
|
405
|
-
* (derived from `ts` deltas). Null for the first message and when either ts is unparseable.
|
|
406
|
-
* Per-message cost has no real attribution source (conversation-history carries no cost; the
|
|
407
|
-
* cost store is keyed by project/trigger, not session/turn/message) — deliberately absent, not
|
|
408
|
-
* a fabricated null field.
|
|
409
|
-
*/
|
|
410
|
-
elapsedMs: number | null;
|
|
411
|
-
}
|
|
412
|
-
export interface TranscriptTurn {
|
|
413
|
-
turnIndex: number;
|
|
414
|
-
messages: TranscriptMessage[];
|
|
415
|
-
}
|
|
416
|
-
export interface PendingTranscriptUserMessage {
|
|
417
|
-
id: string;
|
|
418
|
-
text: string;
|
|
419
|
-
ts: string;
|
|
420
|
-
attachments?: AttachmentMeta[];
|
|
421
|
-
/** Same signal as `TranscriptMessage.systemOrigin`, on a row that is not committed yet. */
|
|
422
|
-
systemOrigin?: SystemTurnOrigin;
|
|
423
|
-
}
|
|
424
|
-
export interface TranscriptSubagentSummary {
|
|
425
|
-
id: string;
|
|
426
|
-
type?: string;
|
|
427
|
-
description?: string;
|
|
428
|
-
model?: string;
|
|
429
|
-
toolCount: number;
|
|
430
|
-
hasDetails: boolean;
|
|
431
|
-
structurallyOpen: boolean;
|
|
432
|
-
/** Explicit per-child lifecycle authority; absent for legacy structural inference. */
|
|
433
|
-
status?: 'running' | 'completed' | 'failed' | 'killed';
|
|
434
|
-
}
|
|
435
|
-
/** Rows that changed since a client's cursor, addressed by flat position across the transcript. */
|
|
436
|
-
export interface TranscriptDeltaRow {
|
|
437
|
-
/** Position in the flattened row stream (turns concatenated in order). */
|
|
438
|
-
index: number;
|
|
439
|
-
turnIndex: number;
|
|
440
|
-
message: TranscriptMessage;
|
|
441
|
-
}
|
|
442
|
-
export interface TranscriptDelta {
|
|
443
|
-
changed: TranscriptDeltaRow[];
|
|
444
|
-
/** Row count now. A client drops anything at or past it, which is how a rewind shortens. */
|
|
445
|
-
total: number;
|
|
446
|
-
}
|
|
447
|
-
export interface SessionTranscript {
|
|
448
|
-
sessionId: string;
|
|
449
|
-
turns: TranscriptTurn[];
|
|
450
|
-
/** Durable messages accepted into a live backend turn but not consumed by the model yet.
|
|
451
|
-
* Optional for rolling compatibility with older servers; current servers always return it. */
|
|
452
|
-
pendingUserMessages?: PendingTranscriptUserMessage[];
|
|
453
|
-
/** Compact opt-in only. Present even when empty; absent on full transcript responses. */
|
|
454
|
-
subagentSummaries?: TranscriptSubagentSummary[];
|
|
455
|
-
/** Compact opt-in only. Pass back as `since` to get the next response as a delta. Absent when
|
|
456
|
-
* the server cannot serve deltas for this read. */
|
|
457
|
-
cursor?: string;
|
|
458
|
-
/** Present INSTEAD of a populated `turns` when the response answers a `since` cursor. A client
|
|
459
|
-
* that does not understand it must not send `since`. */
|
|
460
|
-
delta?: TranscriptDelta;
|
|
461
|
-
}
|
|
462
|
-
export interface SessionSubagentTranscript {
|
|
463
|
-
sessionId: string;
|
|
464
|
-
subagentId: string;
|
|
465
|
-
messages: TranscriptMessage[];
|
|
466
|
-
}
|
|
467
|
-
export interface ScheduleInfo {
|
|
468
|
-
id: string;
|
|
469
|
-
type: 'interval' | 'daily' | 'weekly' | 'once';
|
|
470
|
-
message: string;
|
|
471
|
-
projectId: string;
|
|
472
|
-
/** Complete engine choice materialized when the schedule is created. */
|
|
473
|
-
selection: EngineSelection | null;
|
|
474
|
-
nextRun: string | null;
|
|
475
|
-
lastRun: string | null;
|
|
476
|
-
paused: boolean;
|
|
477
|
-
pausedBy: string | null;
|
|
478
|
-
/** Timing spec — only the field(s) matching `type` are set; the rest are null.
|
|
479
|
-
* Drives cadence labels ("daily 07:30") and edit-form prefill. */
|
|
480
|
-
intervalMs: number | null;
|
|
481
|
-
time: string | null;
|
|
482
|
-
dayOfWeek: number | null;
|
|
483
|
-
}
|
|
484
|
-
export interface BoardInfo {
|
|
485
|
-
id: string;
|
|
486
|
-
projectId: string;
|
|
487
|
-
/** Directory name under `<project context>/boards/`. */
|
|
488
|
-
slug: string;
|
|
489
|
-
title: string;
|
|
490
|
-
createdAt: string;
|
|
491
|
-
updatedAt: string;
|
|
492
|
-
}
|
|
493
|
-
/** One decision card in a board's stream: a projected send_decision item with its user responses
|
|
494
|
-
* merged in (same DecisionItem shape the transcript renders), plus provenance. */
|
|
495
|
-
export interface BoardDecisionEntry {
|
|
496
|
-
/** ISO ts of the send_decision call — the stream's ordering key. */
|
|
497
|
-
ts: string;
|
|
498
|
-
/** The session that announced the decision (source row on the board card). */
|
|
499
|
-
sessionId: string;
|
|
500
|
-
item: DecisionItem;
|
|
501
|
-
}
|
|
502
|
-
/** `boards.style`: the preset stylesheet shipped with the server plus the user's optional
|
|
503
|
-
* override (`<cortex home>/config/board.css`, null when absent). Clients stack them as
|
|
504
|
-
* theme variables → defaultCss → userCss → board body. */
|
|
505
|
-
export interface BoardStyle {
|
|
506
|
-
defaultCss: string;
|
|
507
|
-
userCss: string | null;
|
|
508
|
-
}
|
|
509
|
-
/** One signal that has landed on a waitpoint. `message`/`member`/`source` are written by the
|
|
510
|
-
* external process — plain text only, never interpreted. */
|
|
511
|
-
export interface WaitpointSignalInfo {
|
|
512
|
-
at: number;
|
|
513
|
-
status: 'ok' | 'fail' | 'progress';
|
|
514
|
-
member: string | null;
|
|
515
|
-
message: string | null;
|
|
516
|
-
source: string;
|
|
517
|
-
}
|
|
518
|
-
/** One waitpoint a session is still waiting on (docs/waitpoints.md). Only `armed` ones are returned:
|
|
519
|
-
* a fired or expired waitpoint has already posted its own notice into the transcript, so repeating
|
|
520
|
-
* it in a panel would tell the same story twice.
|
|
521
|
-
*
|
|
522
|
-
* OWNERSHIP — a waitpoint belongs to a session when EITHER holds:
|
|
523
|
-
* `owner.sessionId === session.sessionId` the session armed it, or
|
|
524
|
-
* `owner.channel === session's channel` the wake will be delivered HERE.
|
|
525
|
-
* Both clauses are needed. The first survives a channel rebind (`bindChannel` does not rewrite
|
|
526
|
-
* `record.channel`); the second survives the session being recreated (`!new`, a scheduled re-run),
|
|
527
|
-
* because delivery is channel-addressed and find-or-creates a session. A consequence worth knowing:
|
|
528
|
-
* the second clause can legitimately surface a waitpoint armed by an EARLIER session on the same
|
|
529
|
-
* channel — that is honest, since its wake really will land on the current one.
|
|
530
|
-
*
|
|
531
|
-
* SECURITY: built field-by-field from the stored record, never by spreading it, so the capability
|
|
532
|
-
* secret hash cannot leak by omission. `signals[].data` is deliberately absent — externally written
|
|
533
|
-
* and capped at 16 KB per signal, it would bloat every list response. */
|
|
534
|
-
export interface WaitpointInfo {
|
|
535
|
-
/** `wp_<12 hex>` — public, appears in notices and in the signal command line. */
|
|
536
|
-
id: string;
|
|
537
|
-
/** Agent-written short name. */
|
|
538
|
-
label: string;
|
|
539
|
-
/** What the agent said it was waiting for, in its own words. */
|
|
540
|
-
intent: string;
|
|
541
|
-
/** Always `armed` today; the wider union is carried so the shape survives if settled waitpoints
|
|
542
|
-
* are ever surfaced. */
|
|
543
|
-
state: 'armed' | 'fired' | 'expired' | 'cancelled';
|
|
544
|
-
/** Where the signal is expected from. `device` names the machine whose spool dir the sweep drains. */
|
|
545
|
-
emitFrom: {
|
|
546
|
-
kind: 'local';
|
|
547
|
-
} | {
|
|
548
|
-
kind: 'device';
|
|
549
|
-
device: string;
|
|
550
|
-
};
|
|
551
|
-
/** Quorum progress. `got` counts distinct REPORTER KEYS, not signals: named members are deduped,
|
|
552
|
-
* anonymous signals take synthetic slots. So `got` can exceed `members.length`, and a per-member
|
|
553
|
-
* checklist must never be rendered from `members` alone. */
|
|
554
|
-
quorum: {
|
|
555
|
-
need: number;
|
|
556
|
-
got: number;
|
|
557
|
-
members: string[];
|
|
558
|
-
};
|
|
559
|
-
/** A single `fail` resolves it with the quorum unmet — which is why a resolved waitpoint can
|
|
560
|
-
* legitimately read "1 of 3". */
|
|
561
|
-
failFast: boolean;
|
|
562
|
-
/** Mailbox mode. After each fire below `maxSignals` the quorum counter resets, so progress
|
|
563
|
-
* appearing to go backwards is not a bug — `fires`/`maxSignals` is what disambiguates it. */
|
|
564
|
-
fires: number;
|
|
565
|
-
maxSignals: number;
|
|
566
|
-
createdAt: number;
|
|
567
|
-
expiresAt: number;
|
|
568
|
-
/** Signals received so far, oldest first. Includes `progress` reports, which never resolve. */
|
|
569
|
-
signals: WaitpointSignalInfo[];
|
|
570
|
-
/** Delivery write-ahead bit. `pending && attempts > 1 && lastError` is the silent failure
|
|
571
|
-
* "the signal landed but the wake did not, and it is being retried" — invisible everywhere else.
|
|
572
|
-
* `lastError` is a locally generated message, not attacker input. */
|
|
573
|
-
delivery: {
|
|
574
|
-
pending: boolean;
|
|
575
|
-
attempts: number;
|
|
576
|
-
lastError: string | null;
|
|
577
|
-
lastAt: number | null;
|
|
578
|
-
};
|
|
579
|
-
/** Wakes spent in the trailing hour, and the cap they are counted against. */
|
|
580
|
-
wakesLastHour: number;
|
|
581
|
-
wakeLimit: number;
|
|
582
|
-
/** True while the hourly cap is holding a wake back: the signals are recorded and the wake is
|
|
583
|
-
* delivered once the trailing hour has room again. */
|
|
584
|
-
rateLimited: boolean;
|
|
585
|
-
}
|
|
586
|
-
export interface ExecutionInfo {
|
|
587
|
-
id: string;
|
|
588
|
-
status: 'running' | 'completed' | 'failed' | 'cancelled' | 'stale';
|
|
589
|
-
sessionId: string | null;
|
|
590
|
-
projectId: string | null;
|
|
591
|
-
startedAt: string;
|
|
592
|
-
finishedAt: string | null;
|
|
593
|
-
durationMs: number | null;
|
|
594
|
-
cost: number | null;
|
|
595
|
-
}
|
|
596
|
-
export interface ExecutionDetailInfo {
|
|
597
|
-
id: string;
|
|
598
|
-
/** Android shells up to 2026.10.6 require this field (and `threadId`) when parsing the detail;
|
|
599
|
-
* newer shells read only status, sessionId and projectId. */
|
|
600
|
-
kind: string;
|
|
601
|
-
status: 'running' | 'completed' | 'failed' | 'cancelled' | 'stale';
|
|
602
|
-
projectId: string | null;
|
|
603
|
-
sessionId: string | null;
|
|
604
|
-
/** Always null. Kept for the released Android shells noted on `kind`. */
|
|
605
|
-
threadId: null;
|
|
606
|
-
runtime: {
|
|
607
|
-
startedAt: string;
|
|
608
|
-
updatedAt: string;
|
|
609
|
-
endedAt: string | null;
|
|
610
|
-
};
|
|
611
|
-
metrics: {
|
|
612
|
-
costUsd: number | null;
|
|
613
|
-
numTurns: number | null;
|
|
614
|
-
durationS: number | null;
|
|
615
|
-
};
|
|
616
|
-
text: {
|
|
617
|
-
label: string | null;
|
|
618
|
-
finalOutput: string | null;
|
|
619
|
-
error: string | null;
|
|
620
|
-
};
|
|
621
|
-
}
|
|
622
|
-
export interface ConfigBudget {
|
|
623
|
-
daily_usd: number | null;
|
|
624
|
-
monthly_usd: number | null;
|
|
625
|
-
/** Per-project overrides keyed by project id. Empty when every project inherits the globals.
|
|
626
|
-
* Entries are pair-only by construction — a malformed half-pair on disk is dropped, not
|
|
627
|
-
* surfaced as a partially-null override. */
|
|
628
|
-
projects: Record<string, BudgetValue>;
|
|
629
|
-
}
|
|
630
|
-
export interface ConfigModels {
|
|
631
|
-
default: EngineSelection | null;
|
|
632
|
-
favorites: ModelRef[];
|
|
633
|
-
memory: Record<string, {
|
|
634
|
-
thinking: string | null;
|
|
635
|
-
mode: string;
|
|
636
|
-
}>;
|
|
637
|
-
}
|
|
638
|
-
export interface ModelCatalogRoute {
|
|
639
|
-
/** Gateway endpoint group: 'anthropic' for claude, the PI provider name otherwise. */
|
|
640
|
-
endpoint: string;
|
|
641
|
-
backend: Backend;
|
|
642
|
-
/** PI `--provider`; null for claude. */
|
|
643
|
-
provider: string | null;
|
|
644
|
-
/** Mode names gateway.yaml actually declares for this endpoint, in file order. Never empty: an
|
|
645
|
-
* endpoint with no gateway section falls back to the name `discoverEndpoints` would generate. */
|
|
646
|
-
modes: string[];
|
|
647
|
-
/** Selectable model ids. Empty means "known route, unknown models" — free text, not an error. */
|
|
648
|
-
models: string[];
|
|
649
|
-
/** Where the route was first seen: the built-in Anthropic table, PI's scan of logged-in
|
|
650
|
-
* providers, a user-defined provider, or gateway.yaml alone (⇒ likely not logged in). */
|
|
651
|
-
source: 'builtin' | 'pi' | 'custom' | 'gateway';
|
|
652
|
-
/** Thinking levels keyed by model id, for the models whose source could tell — PI reports each
|
|
653
|
-
* model's own ladder. A model absent from this map accepts `thinkingLevels` below: the catalog
|
|
654
|
-
* never narrows what it cannot vouch for. Optional while clients and servers roll
|
|
655
|
-
* independently; an older server omits it and every model gets the backend's whole ladder. */
|
|
656
|
-
modelThinking?: Record<string, string[]>;
|
|
657
|
-
}
|
|
658
|
-
export interface ModelCatalogSnapshot {
|
|
659
|
-
routes: ModelCatalogRoute[];
|
|
660
|
-
/** True while PI's first model scan is still in flight — the client may refetch shortly. */
|
|
661
|
-
piPending: boolean;
|
|
662
|
-
/** The backend-wide thinking ladders, served so a picker does not keep a second copy of the
|
|
663
|
-
* table the selection validator already enforces. Optional for the same roll-skew reason as
|
|
664
|
-
* `modelThinking`. */
|
|
665
|
-
thinkingLevels?: Record<Backend, string[]>;
|
|
666
|
-
}
|
|
667
|
-
export interface ConfigMachine {
|
|
668
|
-
name: string;
|
|
669
|
-
cortexPath: string | null;
|
|
670
|
-
gpuCount: number | null;
|
|
671
|
-
ssh: boolean;
|
|
672
|
-
win: boolean;
|
|
673
|
-
}
|
|
674
|
-
export interface ConfigMcp {
|
|
675
|
-
servers: string[];
|
|
676
|
-
}
|
|
677
|
-
/** One execution environment (`config/environments/`) offered by the picker. */
|
|
678
|
-
export interface ConfigAgentEntry {
|
|
679
|
-
name: string;
|
|
680
|
-
description?: string;
|
|
681
|
-
}
|
|
682
|
-
export interface ConfigEnvEntry {
|
|
683
|
-
key: string;
|
|
684
|
-
enabled?: boolean;
|
|
685
|
-
present: boolean;
|
|
686
|
-
masked: string;
|
|
687
|
-
}
|
|
688
|
-
export type ConfigSettingEntry = SettingSnapshotEntry;
|
|
689
|
-
export interface ConfigHook {
|
|
690
|
-
id: string;
|
|
691
|
-
event: HookEvent;
|
|
692
|
-
enabled: boolean;
|
|
693
|
-
source: HookSource;
|
|
694
|
-
/** A built-in entry the user has switched away from its shipped state. */
|
|
695
|
-
overridden: boolean;
|
|
696
|
-
}
|
|
697
|
-
/** `run` flattened for the editor: exactly one of script/command is non-null. */
|
|
698
|
-
export interface HookRunInfo {
|
|
699
|
-
script: string | null;
|
|
700
|
-
command: string | null;
|
|
701
|
-
/** Registry timeout in SECONDS. */
|
|
702
|
-
timeoutSec: number | null;
|
|
703
|
-
}
|
|
704
|
-
export interface HookScopeInfo {
|
|
705
|
-
backends: HookBackend[] | null;
|
|
706
|
-
requiresTool: string | null;
|
|
707
|
-
}
|
|
708
|
-
export interface HookDetail {
|
|
709
|
-
id: string;
|
|
710
|
-
event: HookEvent;
|
|
711
|
-
/** Regex matcher for agent:/cc:/pi: events; null when the event uses filters or has no matcher. */
|
|
712
|
-
matcher: string | null;
|
|
713
|
-
/** Equality filters for cortex:* events; null otherwise. */
|
|
714
|
-
matcherFilters: Record<string, HookFilterValue> | null;
|
|
715
|
-
run: HookRunInfo;
|
|
716
|
-
scope: HookScopeInfo | null;
|
|
717
|
-
blocking: {
|
|
718
|
-
mode: 'webhook';
|
|
719
|
-
ttlMin: number;
|
|
720
|
-
} | null;
|
|
721
|
-
result: HookResultMode | null;
|
|
722
|
-
enabled: boolean;
|
|
723
|
-
source: HookSource;
|
|
724
|
-
/** A built-in entry the user has switched away from its shipped state. */
|
|
725
|
-
overridden: boolean;
|
|
726
|
-
/** The declaration's own `version` field, if it carries one; null otherwise. */
|
|
727
|
-
version: string | null;
|
|
728
|
-
/** Declaration filename. Typed nullable for clients built against the older shape. */
|
|
729
|
-
fileName: string | null;
|
|
730
|
-
/** Position in load order — which is also execution order within one event. */
|
|
731
|
-
order: number;
|
|
732
|
-
/** Where the declaration actually installs once compiled. */
|
|
733
|
-
mountsOn: HookMountTarget[];
|
|
734
|
-
/** Result modes the loader accepts for this event, for a constrained editor choice. */
|
|
735
|
-
legalResults: HookResultMode[];
|
|
736
|
-
appliesAt: HookApplyTime;
|
|
737
|
-
/** Whether run.script resolves on disk; null when the hook is command-based. */
|
|
738
|
-
scriptExists: boolean | null;
|
|
739
|
-
/** True only for user entries; a built-in is changed only through its switch. */
|
|
740
|
-
editable: boolean;
|
|
741
|
-
/** Always null. Kept so released mobile clients that still read them keep parsing the detail. */
|
|
742
|
-
template: null;
|
|
743
|
-
phase: null;
|
|
744
|
-
}
|
|
745
|
-
export interface HookScriptInfo {
|
|
746
|
-
name: string;
|
|
747
|
-
usedBy: string[];
|
|
748
|
-
/** Shipped, shipped but replaced by the user's copy, or the user's own. */
|
|
749
|
-
origin: LayerOrigin;
|
|
750
|
-
}
|
|
751
|
-
export interface HooksOverview {
|
|
752
|
-
hooks: HookDetail[];
|
|
753
|
-
scripts: HookScriptInfo[];
|
|
754
|
-
hooksDir: string;
|
|
755
|
-
}
|
|
756
|
-
/** The editable surface of a declaration, flattened so the form binds one field per control. */
|
|
757
|
-
export interface HookDraftInput {
|
|
758
|
-
event: string;
|
|
759
|
-
matcher?: string;
|
|
760
|
-
matcherFilters?: Record<string, HookFilterValue>;
|
|
761
|
-
script?: string;
|
|
762
|
-
command?: string;
|
|
763
|
-
timeoutSec?: number;
|
|
764
|
-
backends?: HookBackend[];
|
|
765
|
-
requiresTool?: string;
|
|
766
|
-
result?: HookResultMode;
|
|
767
|
-
enabled?: boolean;
|
|
768
|
-
}
|
|
769
|
-
export interface HooksCreateReturn {
|
|
770
|
-
id: string;
|
|
771
|
-
fileName: string;
|
|
772
|
-
}
|
|
773
|
-
export interface HooksUpdateReturn {
|
|
774
|
-
changed: boolean;
|
|
775
|
-
}
|
|
776
|
-
export interface HooksSetEnabledReturn {
|
|
777
|
-
changed: boolean;
|
|
778
|
-
/** Always null. Kept so released clients that still read it keep parsing the result. */
|
|
779
|
-
warning: string | null;
|
|
780
|
-
}
|
|
781
|
-
export interface HooksRemoveReturn {
|
|
782
|
-
removed: boolean;
|
|
783
|
-
}
|
|
784
|
-
export interface HooksTestReturn {
|
|
785
|
-
ok: boolean;
|
|
786
|
-
exitCode: number | null;
|
|
787
|
-
stdout: string;
|
|
788
|
-
stderr: string;
|
|
789
|
-
error: string | null;
|
|
790
|
-
}
|
|
791
|
-
/** Last composer choice; absent state falls back to models.default. */
|
|
792
|
-
export interface ConfigSelectionDefault extends EngineSelection {
|
|
793
|
-
agentName?: string;
|
|
794
|
-
}
|
|
795
|
-
export interface ConfigSnapshot {
|
|
796
|
-
platforms?: PlatformSettingsSnapshot[];
|
|
797
|
-
budget: ConfigBudget | null;
|
|
798
|
-
models: ConfigModels;
|
|
799
|
-
machines: ConfigMachine[];
|
|
800
|
-
mcp: ConfigMcp | null;
|
|
801
|
-
/** The execution environments a composer may pick from, with what each one is and pins. Always
|
|
802
|
-
* emitted by current servers; optional while clients and servers roll independently. */
|
|
803
|
-
agents?: ConfigAgentEntry[];
|
|
804
|
-
hooks: ConfigHook[];
|
|
805
|
-
env: ConfigEnvEntry[];
|
|
806
|
-
/** Always emitted by current servers; optional while clients and servers roll independently. */
|
|
807
|
-
settings?: ConfigSettingEntry[];
|
|
808
|
-
/**
|
|
809
|
-
* The ONE language knob: it is what every server-side t() string renders in AND what the Web UI
|
|
810
|
-
* picks its vocabulary from. `value` is the live process locale (what Cortex is speaking right
|
|
811
|
-
* now), not merely what is on disk — a !lang switch is reflected before any restart.
|
|
812
|
-
* Optional while clients and servers roll independently: an older server omits it and the SPA
|
|
813
|
-
* falls back to its local cache.
|
|
814
|
-
*/
|
|
815
|
-
lang?: ConfigLang;
|
|
816
|
-
/** Seed for a draft composer — see {@link ConfigSelectionDefault}. */
|
|
817
|
-
selectionDefault: ConfigSelectionDefault | null;
|
|
818
|
-
}
|
|
819
|
-
export interface ConfigLang {
|
|
820
|
-
value: 'en' | 'zh';
|
|
821
|
-
/** Where that value came from — 'env' means CORTEX_LANG re-wins on the next restart. */
|
|
822
|
-
source: 'env' | 'file' | 'default';
|
|
823
|
-
}
|
|
824
|
-
export interface MachineInfo {
|
|
825
|
-
/** Machine name (key from machines.json). */
|
|
826
|
-
name: string;
|
|
827
|
-
/** Absolute path to the cortex data directory on the machine; null when unset. */
|
|
828
|
-
cortexPath: string | null;
|
|
829
|
-
/** Number of GPUs on the machine; null when unset. */
|
|
830
|
-
gpuCount: number | null;
|
|
831
|
-
/** True when an SSH string is configured (presence flag — raw value never exposed). */
|
|
832
|
-
sshConfigured: boolean;
|
|
833
|
-
/** Platform family derived from the `win` flag in machines.json. */
|
|
834
|
-
os: 'windows' | 'unix';
|
|
835
|
-
/** True when the machine's cortex-client is connected via WebSocket right now. */
|
|
836
|
-
online: boolean;
|
|
837
|
-
/** ISO timestamp of the WebSocket connection; null when offline. */
|
|
838
|
-
connectedAt: string | null;
|
|
839
|
-
/** ISO timestamp of the last heartbeat received; null when offline. */
|
|
840
|
-
lastHeartbeat: string | null;
|
|
841
|
-
/** Capabilities advertised by the cortex-client on connect; [] when offline. */
|
|
842
|
-
capabilities: string[];
|
|
843
|
-
}
|
|
844
|
-
/** A compute process holding memory on a GPU (from `nvidia-smi --query-compute-apps`). */
|
|
845
|
-
export interface MachineGpuProcess {
|
|
846
|
-
pid: string;
|
|
847
|
-
/** Process name as reported by nvidia-smi (may be a bare name or a full path). */
|
|
848
|
-
name: string;
|
|
849
|
-
memoryMb: number;
|
|
850
|
-
}
|
|
851
|
-
export interface MachineGpu {
|
|
852
|
-
/** CUDA device ordinal. */
|
|
853
|
-
index: number;
|
|
854
|
-
name: string;
|
|
855
|
-
utilPercent: number;
|
|
856
|
-
memUsedMb: number;
|
|
857
|
-
memTotalMb: number;
|
|
858
|
-
tempC: number;
|
|
859
|
-
powerW: number;
|
|
860
|
-
processes: MachineGpuProcess[];
|
|
861
|
-
}
|
|
862
|
-
/** Host vitals in absolute units; every field is null when the host did not report it. */
|
|
863
|
-
export interface MachineVitals {
|
|
864
|
-
cpuCores: number | null;
|
|
865
|
-
loadAvg1: number | null;
|
|
866
|
-
memUsedMb: number | null;
|
|
867
|
-
memTotalMb: number | null;
|
|
868
|
-
/** Free/total space on the filesystem holding the machine's cortexPath. */
|
|
869
|
-
diskFreeGb: number | null;
|
|
870
|
-
diskTotalGb: number | null;
|
|
871
|
-
uptimeSec: number | null;
|
|
872
|
-
}
|
|
873
|
-
export interface MachineDetail {
|
|
874
|
-
name: string;
|
|
875
|
-
online: boolean;
|
|
876
|
-
/** null when the machine is offline or the probe failed. */
|
|
877
|
-
vitals: MachineVitals | null;
|
|
878
|
-
/** Empty when the machine is offline, has no nvidia-smi, or the probe failed. */
|
|
879
|
-
gpus: MachineGpu[];
|
|
880
|
-
/** Always empty. Kept so SPAs still awaiting their OTA update, which map it, keep rendering. */
|
|
881
|
-
liveRuns: never[];
|
|
882
|
-
/** ISO timestamp of the successful probe; null when no probe ran or it failed. */
|
|
883
|
-
probedAt: string | null;
|
|
884
|
-
/** Human-readable probe failure reason; null when the probe succeeded or was skipped. */
|
|
885
|
-
probeError: string | null;
|
|
886
|
-
}
|
|
887
|
-
/** 'stock' = byte-identical to the shipped default, 'modified' = a shipped name that differs,
|
|
888
|
-
* 'custom' = no shipped default of that name. */
|
|
889
|
-
export type EnvironmentOrigin = 'stock' | 'modified' | 'custom';
|
|
890
|
-
export interface EnvironmentEntry {
|
|
891
|
-
/** Basename without .json extension. */
|
|
892
|
-
name: string;
|
|
893
|
-
/** Top-level `description` field from the file; null if absent. */
|
|
894
|
-
description: string | null;
|
|
895
|
-
/** Full parsed JSON body; null when the file cannot be parsed. */
|
|
896
|
-
body: Record<string, unknown> | null;
|
|
897
|
-
/** False when the validator reports blocking errors — the row is flagged in the list. */
|
|
898
|
-
valid: boolean;
|
|
899
|
-
/** Count of blocking errors; 0 when valid. */
|
|
900
|
-
errorCount: number;
|
|
901
|
-
/** Relationship to the shipped defaults. Defaults are copy-if-missing and never overwrite, so
|
|
902
|
-
* editing a `stock` environment forks it from upstream permanently. */
|
|
903
|
-
origin: EnvironmentOrigin;
|
|
904
|
-
}
|
|
905
|
-
export interface EnvironmentIssue {
|
|
906
|
-
/** Field anchor, e.g. `pluginDirs[0]`. */
|
|
907
|
-
path: string;
|
|
908
|
-
message: string;
|
|
909
|
-
}
|
|
910
|
-
export interface EnvironmentDetail {
|
|
911
|
-
name: string;
|
|
912
|
-
description: string | null;
|
|
913
|
-
body: Record<string, unknown> | null;
|
|
914
|
-
/** Absolute path of the backing file. */
|
|
915
|
-
filePath: string;
|
|
916
|
-
origin: EnvironmentOrigin;
|
|
917
|
-
/** Hash of the bytes on disk — pass back as `baseHash` on save to detect a concurrent edit. */
|
|
918
|
-
sha256: string;
|
|
919
|
-
errors: EnvironmentIssue[];
|
|
920
|
-
warnings: EnvironmentIssue[];
|
|
921
|
-
/** The `systemPrompt` field as its editor shows it. */
|
|
922
|
-
systemPrompt: EnvironmentSystemPrompt;
|
|
923
|
-
}
|
|
924
|
-
export interface EnvironmentsValidateReturn {
|
|
925
|
-
ok: boolean;
|
|
926
|
-
errors: EnvironmentIssue[];
|
|
927
|
-
warnings: EnvironmentIssue[];
|
|
928
|
-
}
|
|
929
|
-
export interface EnvironmentsSaveReturn {
|
|
930
|
-
changed: boolean;
|
|
931
|
-
sha256: string;
|
|
932
|
-
warnings: EnvironmentIssue[];
|
|
933
|
-
}
|
|
934
|
-
export interface EnvironmentsDeleteReturn {
|
|
935
|
-
removed: boolean;
|
|
936
|
-
}
|
|
937
|
-
export interface EnvironmentsSavePromptReturn {
|
|
938
|
-
changed: boolean;
|
|
939
|
-
/** The prompt file now backing the environment; null when it uses the backend default. */
|
|
940
|
-
file: string | null;
|
|
941
|
-
}
|
|
942
|
-
export interface SkillGroup {
|
|
943
|
-
/** Plugin id (e.g. 'cortex-common'). */
|
|
944
|
-
plugin: string;
|
|
945
|
-
/** Sorted list of skill names in this group */
|
|
946
|
-
skills: string[];
|
|
947
|
-
}
|
|
948
|
-
/** One skill a conversation loads (skills.session), in plugin selection order. */
|
|
949
|
-
export interface SessionSkill {
|
|
950
|
-
plugin: string;
|
|
951
|
-
/** Claude invokes it as `/<namespace>:<name>`; PI as `/skill:<name>`. */
|
|
952
|
-
namespace: string;
|
|
953
|
-
name: string;
|
|
954
|
-
description: string;
|
|
955
|
-
}
|
|
956
|
-
export interface UiPluginCatalogIssue {
|
|
957
|
-
code: string;
|
|
958
|
-
scope: 'plugin' | 'manifest' | 'skill' | 'mcp' | 'server';
|
|
959
|
-
path: string | null;
|
|
960
|
-
message: string;
|
|
961
|
-
}
|
|
962
|
-
export interface UiPluginManifest {
|
|
963
|
-
source: 'root' | 'legacy' | 'none';
|
|
964
|
-
name?: string;
|
|
965
|
-
schema?: string;
|
|
966
|
-
version?: string;
|
|
967
|
-
description?: string;
|
|
968
|
-
}
|
|
969
|
-
export interface UiPluginSkill {
|
|
970
|
-
name: string;
|
|
971
|
-
/** Frontmatter description, '' when a legacy skill has none. */
|
|
972
|
-
description: string;
|
|
973
|
-
/** `builtin` as Cortex ships it, `overridden` by the user's edited copy (revertible), `local` the
|
|
974
|
-
* user's own. Built-in skills can be edited but not moved or deleted. */
|
|
975
|
-
origin: LayerOrigin;
|
|
976
|
-
}
|
|
977
|
-
export interface UiPluginMcpStdioSummary {
|
|
978
|
-
command: string;
|
|
979
|
-
argsCount: number;
|
|
980
|
-
envKeys: string[];
|
|
981
|
-
}
|
|
982
|
-
export interface UiPluginMcpRemoteSummary {
|
|
983
|
-
origin: string;
|
|
984
|
-
headerKeys: string[];
|
|
985
|
-
}
|
|
986
|
-
export type UiPluginMcpServer = {
|
|
987
|
-
name: string;
|
|
988
|
-
type: 'stdio';
|
|
989
|
-
summary: UiPluginMcpStdioSummary;
|
|
990
|
-
} | {
|
|
991
|
-
name: string;
|
|
992
|
-
type: 'streamable-http' | 'sse';
|
|
993
|
-
summary: UiPluginMcpRemoteSummary;
|
|
994
|
-
};
|
|
995
|
-
export interface UiPluginCatalogEntry {
|
|
996
|
-
id: string;
|
|
997
|
-
kind: 'portable' | 'legacy' | 'unknown';
|
|
998
|
-
/** Whether spawn-time filtering restricts this plugin to some sessions. 'always' means assignment
|
|
999
|
-
* is the only gate; 'channel' mirrors filterScopedPlugins. */
|
|
1000
|
-
scope: 'always' | 'channel';
|
|
1001
|
-
/** Channel prefix a 'channel'-scoped plugin requires, e.g. 'feishu:'. */
|
|
1002
|
-
scopePrefix?: string;
|
|
1003
|
-
/** 'builtin' when Cortex ships this plugin (on by default in every environment that loads skills,
|
|
1004
|
-
* and not removable); 'local' when it is the user's own. */
|
|
1005
|
-
origin: 'builtin' | 'local';
|
|
1006
|
-
rootDir: string;
|
|
1007
|
-
valid: boolean;
|
|
1008
|
-
assignable: boolean;
|
|
1009
|
-
manifest: UiPluginManifest;
|
|
1010
|
-
skills: UiPluginSkill[];
|
|
1011
|
-
mcp: {
|
|
1012
|
-
status: 'missing' | 'valid' | 'invalid';
|
|
1013
|
-
servers: UiPluginMcpServer[];
|
|
1014
|
-
};
|
|
1015
|
-
issues: UiPluginCatalogIssue[];
|
|
1016
|
-
}
|
|
1017
|
-
export interface PluginAgentTarget {
|
|
1018
|
-
kind: 'agent';
|
|
1019
|
-
name: string;
|
|
1020
|
-
editable: true;
|
|
1021
|
-
baseHash: string;
|
|
1022
|
-
managedPluginIds: string[];
|
|
1023
|
-
unmanagedPluginCount: number;
|
|
1024
|
-
}
|
|
1025
|
-
export type PluginAssignmentTarget = PluginAgentTarget;
|
|
1026
|
-
export interface PluginsListReturn {
|
|
1027
|
-
plugins: UiPluginCatalogEntry[];
|
|
1028
|
-
targets: PluginAssignmentTarget[];
|
|
1029
|
-
}
|
|
1030
|
-
export interface PluginsAssignReturn {
|
|
1031
|
-
changed: boolean;
|
|
1032
|
-
baseHash: string;
|
|
1033
|
-
}
|
|
1034
|
-
export interface PluginsSkillFile {
|
|
1035
|
-
pluginId: string;
|
|
1036
|
-
skill: string;
|
|
1037
|
-
/** Plugins-root-relative path, for display only. */
|
|
1038
|
-
path: string;
|
|
1039
|
-
content: string;
|
|
1040
|
-
/** Where the text comes from; saving a `builtin` skill makes it `overridden`. */
|
|
1041
|
-
origin: LayerOrigin;
|
|
1042
|
-
baseHash: string;
|
|
1043
|
-
}
|
|
1044
|
-
/** One MCP server as the editor needs it. Unlike the catalog summary this carries the real command,
|
|
1045
|
-
* args, cwd and url — a form cannot round-trip a value it never received. Secrets stay behind:
|
|
1046
|
-
* env and header VALUES are never sent, only their key names. */
|
|
1047
|
-
export type UiPluginMcpDraft = {
|
|
1048
|
-
name: string;
|
|
1049
|
-
type: 'stdio';
|
|
1050
|
-
command: string;
|
|
1051
|
-
args: string[];
|
|
1052
|
-
cwd?: string;
|
|
1053
|
-
envKeys: string[];
|
|
1054
|
-
} | {
|
|
1055
|
-
name: string;
|
|
1056
|
-
type: 'streamable-http' | 'sse';
|
|
1057
|
-
url: string;
|
|
1058
|
-
headerKeys: string[];
|
|
1059
|
-
};
|
|
1060
|
-
export interface PluginsMcpRead {
|
|
1061
|
-
pluginId: string;
|
|
1062
|
-
/** False when the plugin is legacy, where mcp.json is never loaded however it is written. */
|
|
1063
|
-
supported: boolean;
|
|
1064
|
-
servers: UiPluginMcpDraft[];
|
|
1065
|
-
/** Send back on save: a write from a stale read is refused as a conflict. */
|
|
1066
|
-
baseHash: string;
|
|
1067
|
-
}
|
|
1068
|
-
/** Secret maps are patches, not replacements: `null` keeps whatever is on disk under that key, a
|
|
1069
|
-
* string sets a new value, and an omitted key is dropped. That is what lets the browser edit a
|
|
1070
|
-
* server without ever having been told its current token. */
|
|
1071
|
-
export interface PluginsMcpServerInput {
|
|
1072
|
-
name: string;
|
|
1073
|
-
type: 'stdio' | 'streamable-http' | 'sse';
|
|
1074
|
-
command?: string;
|
|
1075
|
-
args?: string[];
|
|
1076
|
-
cwd?: string;
|
|
1077
|
-
url?: string;
|
|
1078
|
-
env?: Record<string, string | null>;
|
|
1079
|
-
headers?: Record<string, string | null>;
|
|
1080
|
-
}
|
|
1081
|
-
export interface PluginsSkillWriteReturn {
|
|
1082
|
-
baseHash: string;
|
|
1083
|
-
}
|
|
1084
|
-
export interface PluginsSkillReturn {
|
|
1085
|
-
pluginId: string;
|
|
1086
|
-
skill: string;
|
|
1087
|
-
}
|
|
1088
|
-
export interface PluginsPackageReturn {
|
|
1089
|
-
id: string;
|
|
1090
|
-
}
|
|
1091
|
-
export interface MemoryFileEntry {
|
|
1092
|
-
name: string;
|
|
1093
|
-
sizeBytes: number;
|
|
1094
|
-
modifiedAt: string;
|
|
1095
|
-
}
|
|
1096
|
-
export interface MemoryDirEntry {
|
|
1097
|
-
name: string;
|
|
1098
|
-
/** Number of `*.md` entry files, excluding the auto-generated `index.md` and `AGENTS.md`. */
|
|
1099
|
-
entryCount: number;
|
|
1100
|
-
/**
|
|
1101
|
-
* The dir's `*.md` entry files (same filter as `entryCount` — excludes `index.md` / `AGENTS.md`),
|
|
1102
|
-
* sorted by name. Lets a client enumerate + open the files under each memory dir (mobile 1j
|
|
1103
|
-
* accordion) without a second round-trip. `entryCount === entries.length`.
|
|
1104
|
-
*/
|
|
1105
|
-
entries: MemoryFileEntry[];
|
|
1106
|
-
}
|
|
1107
|
-
export interface MemoryTree {
|
|
1108
|
-
projectId: string;
|
|
1109
|
-
files: MemoryFileEntry[];
|
|
1110
|
-
dirs: MemoryDirEntry[];
|
|
1111
|
-
}
|
|
1112
|
-
/** Real per-file line-level diff counts vs HEAD (`git diff --numstat`). */
|
|
1113
|
-
export interface MemoryLineDiff {
|
|
1114
|
-
added: number;
|
|
1115
|
-
removed: number;
|
|
1116
|
-
}
|
|
1117
|
-
/** Real per-line `git blame` attribution for one line of a memory file. */
|
|
1118
|
-
export interface MemoryBlameLine {
|
|
1119
|
-
/** 1-based line number, aligned 1:1 with the file's content lines. */
|
|
1120
|
-
line: number;
|
|
1121
|
-
/** Short commit hash (8 hex) that last touched this line, from `git blame`. */
|
|
1122
|
-
commit: string;
|
|
1123
|
-
/**
|
|
1124
|
-
* Task reference parsed from that commit's subject (a 4-hex id after a `task`/`manager`/`gate`
|
|
1125
|
-
* keyword). `null` (honest placeholder, never fabricated) when the subject carries no such tag.
|
|
1126
|
-
*/
|
|
1127
|
-
taskRef: string | null;
|
|
1128
|
-
}
|
|
1129
|
-
export interface MemoryFile {
|
|
1130
|
-
projectId: string;
|
|
1131
|
-
/** Project-root-relative path echoed back. */
|
|
1132
|
-
path: string;
|
|
1133
|
-
content: string;
|
|
1134
|
-
sizeBytes: number;
|
|
1135
|
-
modifiedAt: string;
|
|
1136
|
-
/**
|
|
1137
|
-
* Working-tree-vs-HEAD line counts from `git diff --numstat`. `null` (honest placeholder, never
|
|
1138
|
-
* fabricated) when the project dir is not in a git work tree, git is unavailable, or the diff is
|
|
1139
|
-
* binary/unresolvable.
|
|
1140
|
-
*/
|
|
1141
|
-
lineDiff: MemoryLineDiff | null;
|
|
1142
|
-
/**
|
|
1143
|
-
* Per-line `git blame` attribution (real commit hash + parsed task ref), aligned 1:1 with the
|
|
1144
|
-
* content lines. `null` (honest placeholder, never fabricated) when the project dir is not a git
|
|
1145
|
-
* work tree, git is unavailable, or the file is binary/unblameable.
|
|
1146
|
-
*/
|
|
1147
|
-
blame: MemoryBlameLine[] | null;
|
|
1148
|
-
}
|
|
1149
|
-
export type ApprovalStatus = 'pending' | 'approved' | 'rejected' | 'failed';
|
|
1150
|
-
export interface ApprovalInfo {
|
|
1151
|
-
/** Stable id derived from the heading line (no explicit id exists in the markdown). */
|
|
1152
|
-
id: string;
|
|
1153
|
-
title: string;
|
|
1154
|
-
/**
|
|
1155
|
-
* Owning project from the optional `- **Project**:` bullet on hand-written entries. `null` (honest
|
|
1156
|
-
* placeholder, never fabricated) for legacy entries and system-level operations — the UI renders
|
|
1157
|
-
* those as "global".
|
|
1158
|
-
*/
|
|
1159
|
-
projectId: string | null;
|
|
1160
|
-
operation: string | null;
|
|
1161
|
-
reason: string | null;
|
|
1162
|
-
impact: string | null;
|
|
1163
|
-
/** From the `Command/Action` bullet. */
|
|
1164
|
-
command: string | null;
|
|
1165
|
-
status: ApprovalStatus;
|
|
1166
|
-
/** Date from the `## <YYYY-MM-DD> <title>` heading, null if unparseable. */
|
|
1167
|
-
queuedAt: string | null;
|
|
1168
|
-
/** Timestamp parsed from an approved/rejected Status line, null otherwise. */
|
|
1169
|
-
decidedAt: string | null;
|
|
1170
|
-
/** Parenthetical feedback captured from a rejected Status line, null otherwise. */
|
|
1171
|
-
feedback: string | null;
|
|
1172
|
-
/**
|
|
1173
|
-
* Verbatim `Provenance` bullet — the only real "who raised this / origin" carrier in the queue
|
|
1174
|
-
* (§12 C item 13). Project attribution now has its own structured `Project` bullet (projectId),
|
|
1175
|
-
* but origin/from remains this freeform bullet only a subset of entries add. `null` (honest
|
|
1176
|
-
* placeholder, never fabricated) when absent. Backs the approval-center origin/from slots.
|
|
1177
|
-
*/
|
|
1178
|
-
provenance: string | null;
|
|
1179
|
-
/**
|
|
1180
|
-
* 4-hex task/manager/gate ref parsed from `provenance` (parseTaskRef semantics, shared with
|
|
1181
|
-
* memory blame). `null` (honest placeholder, never fabricated) when the provenance bullet is
|
|
1182
|
-
* absent or carries no anchored ref. Backs the approval-center `task` slot.
|
|
1183
|
-
* NOTE: the prototype's `ttl` slot has ZERO source (the markdown queue has no expiry concept) →
|
|
1184
|
-
* deliberately NOT a DTO field, never fabricated.
|
|
1185
|
-
*/
|
|
1186
|
-
taskRef: string | null;
|
|
1187
|
-
}
|
|
1188
|
-
export interface IssueInfo {
|
|
1189
|
-
/** Stable id derived from the raw title line (no explicit id exists in the markdown). */
|
|
1190
|
-
id: string;
|
|
1191
|
-
/** Bold title text of the entry bullet. */
|
|
1192
|
-
title: string;
|
|
1193
|
-
/** First `YYYY-MM-DD` found in the title line's trailing parens; honest null when absent. */
|
|
1194
|
-
date: string | null;
|
|
1195
|
-
/** Raw markdown body lines (freeform sub-bullets), verbatim; '' when the entry has no body. */
|
|
1196
|
-
body: string;
|
|
1197
|
-
}
|
|
1198
|
-
export type NoteInfo = ProjectNote;
|
|
1199
|
-
import type { RebuildProgress as DaemonRebuildProgress, RebuildStepState as DaemonRebuildStep, RebuildStepName as DaemonRebuildStepName, RebuildStepStatus as DaemonRebuildStepStatus, RebuildStatus as DaemonRebuildStatus } from '../../core/rebuild-progress.js';
|
|
1200
|
-
export type { DaemonRebuildProgress, DaemonRebuildStep, DaemonRebuildStepName, DaemonRebuildStepStatus, DaemonRebuildStatus, };
|
|
1201
|
-
export interface DaemonProcessInfo {
|
|
1202
|
-
name: string;
|
|
1203
|
-
label: string;
|
|
1204
|
-
status: 'running' | 'stopped' | 'unknown';
|
|
1205
|
-
pid: number | null;
|
|
1206
|
-
uptime: string | null;
|
|
1207
|
-
port: number | null;
|
|
1208
|
-
}
|
|
1209
|
-
export interface SystemDaemonStatus {
|
|
1210
|
-
processes: DaemonProcessInfo[];
|
|
1211
|
-
lastRestart: {
|
|
1212
|
-
at: string | null;
|
|
1213
|
-
};
|
|
1214
|
-
/** The supervisor's hot-rebuild pipeline: the run in flight, or the last one it finished. Null
|
|
1215
|
-
* when no rebuild has run (production installs never rebuild) or when the record belongs to a
|
|
1216
|
-
* supervisor that is no longer alive. */
|
|
1217
|
-
rebuild: DaemonRebuildProgress | null;
|
|
1218
|
-
}
|
|
1219
|
-
export interface SystemNoticeEntry {
|
|
1220
|
-
id: string;
|
|
1221
|
-
ts: string;
|
|
1222
|
-
level: 'info' | 'warning' | 'error';
|
|
1223
|
-
title?: string;
|
|
1224
|
-
text: string;
|
|
1225
|
-
}
|
|
1226
|
-
export interface SystemNotices {
|
|
1227
|
-
entries: SystemNoticeEntry[];
|
|
1228
|
-
/** Ring buffer capacity, so the UI can label "showing N of cap" honestly. */
|
|
1229
|
-
cap: number;
|
|
1230
|
-
}
|
|
1231
|
-
export interface RateLimitWindowInfo {
|
|
1232
|
-
type: string;
|
|
1233
|
-
label?: string;
|
|
1234
|
-
utilization: number | null;
|
|
1235
|
-
resetsAt: number;
|
|
1236
|
-
activatedAt: number;
|
|
1237
|
-
}
|
|
1238
|
-
export interface RateLimitProviderInfo {
|
|
1239
|
-
provider: string;
|
|
1240
|
-
displayName: string;
|
|
1241
|
-
waitingSessions: number;
|
|
1242
|
-
windows: RateLimitWindowInfo[];
|
|
1243
|
-
}
|
|
1244
|
-
export interface SystemRateLimitStatus {
|
|
1245
|
-
providers: RateLimitProviderInfo[];
|
|
1246
|
-
}
|
|
1247
|
-
export type SystemUsageStatus = ProviderUsage[];
|
|
1248
|
-
export type SystemRefreshUsageReturn = ProviderUsage[];
|
|
1249
|
-
export type SystemRedeemUsageResetReturn = UsageResetResult;
|
|
1250
|
-
export interface SystemRestartReturn {
|
|
1251
|
-
ok: boolean;
|
|
1252
|
-
message: string;
|
|
1253
|
-
}
|
|
1254
|
-
export type SystemUpdateStatus = ServerUpdateStatus;
|
|
1255
|
-
export interface SystemUpdateDecisionReturn {
|
|
1256
|
-
/** false when no prompt was pending — a stale dialog whose answer arrived too late. */
|
|
1257
|
-
accepted: boolean;
|
|
1258
|
-
status: SystemUpdateStatus;
|
|
1259
|
-
}
|
|
1260
|
-
export interface SystemClearRateLimitReturn {
|
|
1261
|
-
/** Providers whose throttle was lifted early. */
|
|
1262
|
-
cleared: {
|
|
1263
|
-
provider: string;
|
|
1264
|
-
displayName: string;
|
|
1265
|
-
/** Window types cleared (e.g. five_hour / outage). */
|
|
1266
|
-
types: string[];
|
|
1267
|
-
/** Latest resetsAt among the cleared windows (epoch sec). */
|
|
1268
|
-
resetsAt: number;
|
|
1269
|
-
}[];
|
|
1270
|
-
}
|
|
1271
|
-
export interface ProjectCreateReturn {
|
|
1272
|
-
/** The id of the newly created project (equals its directory name). */
|
|
1273
|
-
id: string;
|
|
1274
|
-
}
|
|
1275
|
-
export interface SessionsCreateReturn {
|
|
1276
|
-
/** The id of the newly created direct session. */
|
|
1277
|
-
sessionId: string;
|
|
1278
|
-
}
|
|
1279
|
-
export interface SessionsSendReturn {
|
|
1280
|
-
/** The message was accepted and routed. Assistant output returns via the `session.message`
|
|
1281
|
-
* stream event, NOT this return (fire-and-forget). */
|
|
1282
|
-
accepted: boolean;
|
|
1283
|
-
/** Server clock at acceptance, taken BEFORE the message is routed — so every timestamp the
|
|
1284
|
-
* message later carries (history row, pending injection record) is at or after it. A client
|
|
1285
|
-
* whose own clock differs from the server's uses this to order its optimistic row against
|
|
1286
|
-
* server-written rows instead of trusting the browser clock. */
|
|
1287
|
-
acceptedAt: string;
|
|
1288
|
-
}
|
|
1289
|
-
export interface SessionsCancelReturn {
|
|
1290
|
-
/** True when at least one running execution on the session's channel was cancelled. */
|
|
1291
|
-
cancelled: boolean;
|
|
1292
|
-
/** How many live executions were cancelled on the session's channel. */
|
|
1293
|
-
count: number;
|
|
1294
|
-
}
|
|
1295
|
-
export interface SessionsCompactReturn {
|
|
1296
|
-
status: 'compacted' | 'not-needed';
|
|
1297
|
-
contextUsage: SessionContextUsage | null;
|
|
1298
|
-
}
|
|
1299
|
-
export interface SessionsSetAgentReturn {
|
|
1300
|
-
/** The selected environment; null follows the global default agent. */
|
|
1301
|
-
agentName: string | null;
|
|
1302
|
-
}
|
|
1303
|
-
/** Effective engine choice after the mutation. */
|
|
1304
|
-
export interface SessionsSetSelectionReturn extends EngineSelection {
|
|
1305
|
-
backendChanged: boolean;
|
|
1306
|
-
}
|
|
1307
|
-
export interface SessionsCreateAndSendReturn {
|
|
1308
|
-
/** The id of the newly created session (the client transitions from draft to this session). */
|
|
1309
|
-
sessionId: string;
|
|
1310
|
-
/** Server clock at acceptance — see `SessionsSendReturn.acceptedAt`. */
|
|
1311
|
-
acceptedAt: string;
|
|
1312
|
-
}
|
|
1313
|
-
export interface ExecutionsCancelReturn {
|
|
1314
|
-
cancelled: boolean;
|
|
1315
|
-
}
|
|
1316
|
-
export interface WaitpointsCancelReturn {
|
|
1317
|
-
cancelled: boolean;
|
|
1318
|
-
/** The state that blocked the cancel when `cancelled` is false (already fired/expired/cancelled). */
|
|
1319
|
-
state: string | null;
|
|
1320
|
-
}
|
|
1321
|
-
export interface ConfigSetReturn {
|
|
1322
|
-
written: true;
|
|
1323
|
-
section: 'budget' | 'settings' | 'preferences';
|
|
1324
|
-
}
|
|
1325
|
-
export interface ConfigSetProviderRateLimitPolicyReturn {
|
|
1326
|
-
written: true;
|
|
1327
|
-
policy: ProviderRateLimitPolicy;
|
|
1328
|
-
}
|
|
1329
|
-
export interface ApprovalMutateReturn {
|
|
1330
|
-
id: string;
|
|
1331
|
-
status: ApprovalStatus;
|
|
1332
|
-
}
|
|
1333
|
-
export interface IssuesDeleteReturn {
|
|
1334
|
-
id: string;
|
|
1335
|
-
deleted: true;
|
|
1336
|
-
}
|
|
1337
|
-
export interface IssuesHandleReturn {
|
|
1338
|
-
/** The freshly created direct session now carrying the issue as its first user turn. */
|
|
1339
|
-
sessionId: string;
|
|
1340
|
-
}
|
|
1341
|
-
export interface NotesDeleteReturn {
|
|
1342
|
-
id: string;
|
|
1343
|
-
deleted: true;
|
|
1344
|
-
}
|
|
1345
|
-
export interface NotesClearCompletedReturn {
|
|
1346
|
-
cleared: number;
|
|
1347
|
-
}
|
|
1348
|
-
export interface ApprovalsRequestReturn {
|
|
1349
|
-
queued: true;
|
|
1350
|
-
/** headingId of the newly appended PENDING entry (stable, hashed from the heading line). */
|
|
1351
|
-
id: string;
|
|
1352
|
-
}
|
|
1353
|
-
/** Query params are exactly what the scope's zod schema parses to. */
|
|
1354
|
-
export type QueryParamMap = {
|
|
1355
|
-
[S in QueryScope]: z.output<QueryInputSchemas[S]>;
|
|
1356
|
-
};
|
|
1357
|
-
export interface QueryReturnMap {
|
|
1358
|
-
'projects.list': ProjectConduitInfo[];
|
|
1359
|
-
'sessions.list': SessionInfo[];
|
|
1360
|
-
'sessions.transcript': SessionTranscript;
|
|
1361
|
-
'sessions.subagentTranscript': SessionSubagentTranscript;
|
|
1362
|
-
'sessions.debugDetails': TranscriptDebugDetails | null;
|
|
1363
|
-
'sessions.pendingInteraction': SessionsPendingInteraction;
|
|
1364
|
-
'schedules.list': ScheduleInfo[];
|
|
1365
|
-
'boards.list': BoardInfo[];
|
|
1366
|
-
'boards.get': BoardInfo;
|
|
1367
|
-
'boards.decisions': BoardDecisionEntry[];
|
|
1368
|
-
'boards.style': BoardStyle;
|
|
1369
|
-
'executions.list': ExecutionInfo[];
|
|
1370
|
-
'waitpoints.list': WaitpointInfo[];
|
|
1371
|
-
'executions.get': ExecutionDetailInfo;
|
|
1372
|
-
'memory.tree': MemoryTree;
|
|
1373
|
-
'memory.file': MemoryFile;
|
|
1374
|
-
'approvals.list': ApprovalInfo[];
|
|
1375
|
-
'issues.list': IssueInfo[];
|
|
1376
|
-
'notes.list': NoteInfo[];
|
|
1377
|
-
'cost.summary': CostSummary;
|
|
1378
|
-
'config.get': ConfigSnapshot;
|
|
1379
|
-
'auth.status': AuthStatusSnapshot;
|
|
1380
|
-
'auth.flowState': LoginFlowState | null;
|
|
1381
|
-
'auth.customProviders': CustomProviderView[];
|
|
1382
|
-
'usageSharing.get': UsageSharingSettings;
|
|
1383
|
-
'telemetry.info': TelemetryInfo;
|
|
1384
|
-
'models.catalog': ModelCatalogSnapshot;
|
|
1385
|
-
'hooks.list': HooksOverview;
|
|
1386
|
-
'machines.list': MachineInfo[];
|
|
1387
|
-
'machines.detail': MachineDetail;
|
|
1388
|
-
'skills.list': SkillGroup[];
|
|
1389
|
-
'skills.session': SessionSkill[];
|
|
1390
|
-
'plugins.list': PluginsListReturn;
|
|
1391
|
-
'plugins.skillFile': PluginsSkillFile;
|
|
1392
|
-
'plugins.mcpRead': PluginsMcpRead;
|
|
1393
|
-
'environments.list': EnvironmentEntry[];
|
|
1394
|
-
'environments.get': EnvironmentDetail;
|
|
1395
|
-
'system.daemonStatus': SystemDaemonStatus;
|
|
1396
|
-
'system.rateLimitStatus': SystemRateLimitStatus;
|
|
1397
|
-
'system.usageStatus': SystemUsageStatus;
|
|
1398
|
-
'system.notices': SystemNotices;
|
|
1399
|
-
'system.updateStatus': SystemUpdateStatus;
|
|
1400
|
-
}
|
|
1401
|
-
/** Mutate args are exactly what the op's zod schema parses to. */
|
|
1402
|
-
export type MutateArgsMap = {
|
|
1403
|
-
[O in MutateOp]: z.output<MutateInputSchemas[O]>;
|
|
1404
|
-
};
|
|
1405
|
-
export interface MutateReturnMap {
|
|
1406
|
-
'projects.create': ProjectCreateReturn;
|
|
1407
|
-
'sessions.create': SessionsCreateReturn;
|
|
1408
|
-
'sessions.send': SessionsSendReturn;
|
|
1409
|
-
'sessions.cancel': SessionsCancelReturn;
|
|
1410
|
-
'sessions.compact': SessionsCompactReturn;
|
|
1411
|
-
'sessions.setAgent': SessionsSetAgentReturn;
|
|
1412
|
-
'sessions.setSelection': SessionsSetSelectionReturn;
|
|
1413
|
-
'sessions.createAndSend': SessionsCreateAndSendReturn;
|
|
1414
|
-
'sessions.setStarred': SessionsSetStarredReturn;
|
|
1415
|
-
'sessions.rename': SessionsRenameReturn;
|
|
1416
|
-
'sessions.markRead': void;
|
|
1417
|
-
'sessions.markManyRead': SessionsMarkManyReadReturn;
|
|
1418
|
-
'sessions.answerQuestion': SessionsInteractionMutateReturn;
|
|
1419
|
-
'sessions.respondPlan': SessionsInteractionMutateReturn;
|
|
1420
|
-
'sessions.respondDecision': SessionsRespondDecisionReturn;
|
|
1421
|
-
'sessions.cancelResume': SessionsCancelResumeReturn;
|
|
1422
|
-
'sessions.rewind': SessionsRewindReturn;
|
|
1423
|
-
'sessions.resolveMedia': ResolveMediaResult;
|
|
1424
|
-
'executions.cancel': ExecutionsCancelReturn;
|
|
1425
|
-
'waitpoints.cancel': WaitpointsCancelReturn;
|
|
1426
|
-
'schedules.pause': void;
|
|
1427
|
-
'schedules.resume': void;
|
|
1428
|
-
'schedules.remove': void;
|
|
1429
|
-
'schedules.add': ScheduleInfo;
|
|
1430
|
-
'schedules.update': ScheduleInfo;
|
|
1431
|
-
'approvals.approve': ApprovalMutateReturn;
|
|
1432
|
-
'approvals.reject': ApprovalMutateReturn;
|
|
1433
|
-
'approvals.request': ApprovalsRequestReturn;
|
|
1434
|
-
'issues.handle': IssuesHandleReturn;
|
|
1435
|
-
'issues.delete': IssuesDeleteReturn;
|
|
1436
|
-
'notes.add': NoteInfo;
|
|
1437
|
-
'notes.update': NoteInfo;
|
|
1438
|
-
'notes.setCompleted': NoteInfo;
|
|
1439
|
-
'notes.delete': NotesDeleteReturn;
|
|
1440
|
-
'notes.clearCompleted': NotesClearCompletedReturn;
|
|
1441
|
-
'config.set': ConfigSetReturn;
|
|
1442
|
-
'config.setPlatform': {
|
|
1443
|
-
written: true;
|
|
1444
|
-
restartRequired: true;
|
|
1445
|
-
};
|
|
1446
|
-
'config.setProviderRateLimitPolicy': ConfigSetProviderRateLimitPolicyReturn;
|
|
1447
|
-
'auth.startLogin': LoginFlowState;
|
|
1448
|
-
'auth.respondPrompt': LoginFlowState;
|
|
1449
|
-
'auth.cancelFlow': LoginFlowState;
|
|
1450
|
-
'auth.logout': AuthLogoutReturn;
|
|
1451
|
-
'auth.syncGateway': AuthSyncGatewayReturn;
|
|
1452
|
-
'auth.upsertCustomProvider': CustomProviderView;
|
|
1453
|
-
'auth.removeCustomProvider': AuthRemoveCustomProviderReturn;
|
|
1454
|
-
'usageSharing.set': UsageSharingSettings;
|
|
1455
|
-
'telemetry.report': {
|
|
1456
|
-
ok: true;
|
|
1457
|
-
};
|
|
1458
|
-
'hooks.create': HooksCreateReturn;
|
|
1459
|
-
'hooks.update': HooksUpdateReturn;
|
|
1460
|
-
'hooks.setEnabled': HooksSetEnabledReturn;
|
|
1461
|
-
'hooks.remove': HooksRemoveReturn;
|
|
1462
|
-
'hooks.test': HooksTestReturn;
|
|
1463
|
-
'models.favorites.add': ModelsMutationReturn;
|
|
1464
|
-
'models.favorites.remove': ModelsMutationReturn;
|
|
1465
|
-
'models.setDefault': ModelsMutationReturn;
|
|
1466
|
-
'models.setThinking': ModelsMutationReturn;
|
|
1467
|
-
'plugins.assign': PluginsAssignReturn;
|
|
1468
|
-
'plugins.skillWrite': PluginsSkillWriteReturn;
|
|
1469
|
-
'plugins.skillCreate': PluginsSkillReturn;
|
|
1470
|
-
'plugins.skillMove': PluginsSkillReturn;
|
|
1471
|
-
'plugins.skillRemove': PluginsSkillReturn;
|
|
1472
|
-
'plugins.skillRevert': PluginsSkillReturn;
|
|
1473
|
-
'plugins.create': PluginsPackageReturn;
|
|
1474
|
-
'plugins.remove': PluginsPackageReturn;
|
|
1475
|
-
'plugins.convertToPortable': PluginsPackageReturn;
|
|
1476
|
-
'plugins.mcpWrite': PluginsMcpRead;
|
|
1477
|
-
'environments.validate': EnvironmentsValidateReturn;
|
|
1478
|
-
'environments.save': EnvironmentsSaveReturn;
|
|
1479
|
-
'environments.delete': EnvironmentsDeleteReturn;
|
|
1480
|
-
'environments.savePrompt': EnvironmentsSavePromptReturn;
|
|
1481
|
-
'system.restart': SystemRestartReturn;
|
|
1482
|
-
'system.clearRateLimit': SystemClearRateLimitReturn;
|
|
1483
|
-
'system.refreshUsage': SystemRefreshUsageReturn;
|
|
1484
|
-
'system.redeemUsageReset': SystemRedeemUsageResetReturn;
|
|
1485
|
-
'system.checkUpdate': SystemUpdateCheckResult;
|
|
1486
|
-
'system.applyUpdate': SystemUpdateDecisionReturn;
|
|
1487
|
-
'system.skipUpdate': SystemUpdateDecisionReturn;
|
|
1488
|
-
}
|
|
1489
|
-
export type QueryParams<S extends QueryScope> = QueryParamMap[S];
|
|
1490
|
-
export type QueryReturn<S extends QueryScope> = QueryReturnMap[S];
|
|
1491
|
-
export type MutateArgs<O extends MutateOp> = MutateArgsMap[O];
|
|
1492
|
-
export type MutateReturn<O extends MutateOp> = MutateReturnMap[O];
|
|
1493
|
-
/** Per-request facts the transport knows and handlers may use; never part of the op's args. */
|
|
1494
|
-
export interface UiCallContext {
|
|
1495
|
-
/** Which app sent the request (`x-cortex-client`), null for unknown callers. */
|
|
1496
|
-
client: ClientKind | null;
|
|
1497
|
-
}
|
|
1498
|
-
export interface UiService {
|
|
1499
|
-
query<S extends QueryScope>(scope: S, params: QueryParams<S>): Promise<Result<QueryReturn<S>>>;
|
|
1500
|
-
mutate<O extends MutateOp>(op: O, args: MutateArgs<O>, ctx?: UiCallContext): Promise<Result<MutateReturn<O>>>;
|
|
1501
|
-
subscribe(filter: SubscribeFilter): AsyncIterable<UiEvent> & {
|
|
1502
|
-
close(): void;
|
|
1503
|
-
};
|
|
1504
|
-
}
|
|
1505
|
-
export interface UiServiceDeps {
|
|
1506
|
-
/** Entry-layer callback: domain handlers never import orchestration. */
|
|
1507
|
-
resolveMedia: (input: ResolveMediaInput) => Promise<ResolveMediaResult>;
|
|
1508
|
-
/** Shared with background timers; bounded discovery, never waits for update consent. */
|
|
1509
|
-
checkServerUpdate: () => Promise<SystemUpdateCheckResult>;
|
|
1510
|
-
/** Optional seams for deterministic authentication dispatch tests. */
|
|
1511
|
-
getAuthStatus?: () => Promise<AuthStatusSnapshot>;
|
|
1512
|
-
authLogin?: AuthLoginService;
|
|
1513
|
-
logoutAccount?: (input: LogoutAccountInput) => Promise<AuthLogoutResult>;
|
|
1514
|
-
/** Re-derives gateway routes and favorites; defaults to discovery-backed sync. */
|
|
1515
|
-
syncGateway?: (options: {
|
|
1516
|
-
backends?: string[];
|
|
1517
|
-
}) => Promise<AuthSyncGatewayReturn>;
|
|
1518
|
-
/** Files custom providers are read from and written to; defaults to the host's own two files. */
|
|
1519
|
-
customProviderStores?: CustomProviderStores;
|
|
1520
|
-
/** Directory holding the aistatus `config.yaml`; defaults to `~/.aistatus`. */
|
|
1521
|
-
usageSharingDir?: string;
|
|
1522
|
-
projectStore: {
|
|
1523
|
-
list(): Project[];
|
|
1524
|
-
get(id: string): Project | undefined;
|
|
1525
|
-
exists(id: string): boolean;
|
|
1526
|
-
getDefault(): Project;
|
|
1527
|
-
createProject(name: string): CreateProjectResult;
|
|
1528
|
-
};
|
|
1529
|
-
sessionStore: {
|
|
1530
|
-
listByProject(projectId: string): Promise<Session[]>;
|
|
1531
|
-
listByOrigin(origin: 'direct' | 'thread' | 'scheduled', projectId?: string): Promise<Session[]>;
|
|
1532
|
-
listResumable(projectId?: string): Promise<Session[]>;
|
|
1533
|
-
getById(sessionId: string): Promise<Session | null>;
|
|
1534
|
-
/** Admission-only liveness touch for fire-and-forget send. Updates lastUsedAt and returns false
|
|
1535
|
-
* when the session is already pending deletion or missing. */
|
|
1536
|
-
touchSessionUse(sessionId: string): Promise<boolean>;
|
|
1537
|
-
/** Stamp lastReadAt=now (unread tracking; backs `sessions.markRead`). */
|
|
1538
|
-
markRead(sessionId: string): Promise<void>;
|
|
1539
|
-
/** Atomic metadata-only writes. */
|
|
1540
|
-
setStarred(sessionId: string, starred: boolean): Promise<Session | null>;
|
|
1541
|
-
rename(sessionId: string, label: string): Promise<Session | null>;
|
|
1542
|
-
};
|
|
1543
|
-
/** Capability hint for sessions.list; execution revalidates inside orchestration. */
|
|
1544
|
-
supportsSessionCompaction: (session: Pick<Session, 'backend'>) => boolean;
|
|
1545
|
-
/** Latest task-list snapshot for a session (in-memory registry). */
|
|
1546
|
-
getSessionTodos: (sessionId: string) => TodoSnapshot | null;
|
|
1547
|
-
/** Idle-only manual context compaction, injected at the entry layer. */
|
|
1548
|
-
compactSession: (opts: {
|
|
1549
|
-
sessionId: string;
|
|
1550
|
-
}) => Promise<{
|
|
1551
|
-
ok: true;
|
|
1552
|
-
status: 'compacted' | 'not-needed';
|
|
1553
|
-
contextUsage: SessionContextUsage | null;
|
|
1554
|
-
} | {
|
|
1555
|
-
ok: false;
|
|
1556
|
-
reason: 'not-found' | 'unsupported' | 'running';
|
|
1557
|
-
}>;
|
|
1558
|
-
/** Snapshot of started Cortex-managed children only; native CLI tasks use their own tracker. */
|
|
1559
|
-
getSubagentChildStatuses: (sessionId: string) => ReadonlyMap<string, NonNullable<TranscriptSubagentSummary['status']>>;
|
|
1560
|
-
/** Backend-independent conversation history — read source for `sessions.transcript` (S4 chat). */
|
|
1561
|
-
conversationHistory: {
|
|
1562
|
-
getHistory(sessionId: string, options?: {
|
|
1563
|
-
includeToolDebug?: boolean;
|
|
1564
|
-
}): Promise<SessionHistory | null>;
|
|
1565
|
-
/** Compact history plus the cursor that makes the next read a delta. */
|
|
1566
|
-
getCompactHistoryAt(sessionId: string): Promise<{
|
|
1567
|
-
value: import('../../store/conversation-history-repo.js').CompactConversationHistory | null;
|
|
1568
|
-
cursor: string;
|
|
1569
|
-
}>;
|
|
1570
|
-
getSubagentHistory(sessionId: string, subagentId: string): Promise<import('../../store/conversation-history-repo.js').SubagentConversationHistory>;
|
|
1571
|
-
getToolDebugDetails(sessionId: string, toolRef: string): Promise<TranscriptDebugDetails | null>;
|
|
1572
|
-
/** First user message text — used to title a label-less session in `sessions.list`. */
|
|
1573
|
-
getFirstUserText(sessionId: string): Promise<string | null>;
|
|
1574
|
-
/** Append-only decision-action line (`sessions.respondDecision`). */
|
|
1575
|
-
appendDecisionAction(sessionId: string, opts: {
|
|
1576
|
-
decisionId: string;
|
|
1577
|
-
action: DecisionActionKind;
|
|
1578
|
-
message?: string;
|
|
1579
|
-
ts?: string;
|
|
1580
|
-
}): Promise<void>;
|
|
1581
|
-
};
|
|
1582
|
-
/** Durable active pending-injection snapshot joined into `sessions.transcript`. */
|
|
1583
|
-
pendingInjections: {
|
|
1584
|
-
listBySession(sessionId: string): Promise<{
|
|
1585
|
-
id: string;
|
|
1586
|
-
text: string;
|
|
1587
|
-
createdAt: string;
|
|
1588
|
-
attachments?: AttachmentMeta[];
|
|
1589
|
-
systemOrigin?: SystemTurnOrigin;
|
|
1590
|
-
}[]>;
|
|
1591
|
-
};
|
|
1592
|
-
/**
|
|
1593
|
-
* Inject a genuine user turn into a session and route it through the agent (S4 chat send).
|
|
1594
|
-
* Fire-and-forget: assistant output returns via the `session.message` stream event, not here.
|
|
1595
|
-
* Wired in the entry layer (app.ts) to the orchestration send path — kept as an injected
|
|
1596
|
-
* callback so the ui-service domain never imports orchestration (layer safety / depcruise).
|
|
1597
|
-
*/
|
|
1598
|
-
sendSessionMessage: (opts: {
|
|
1599
|
-
channel: string;
|
|
1600
|
-
text: string;
|
|
1601
|
-
attachments?: AttachmentMeta[];
|
|
1602
|
-
}) => void;
|
|
1603
|
-
/**
|
|
1604
|
-
* Cancel every live execution running on a session's channel (S4 chat Stop). Wired in the entry
|
|
1605
|
-
* layer to the orchestration channel-cancel path (`cancelChannelRuns`), which kills the live agent
|
|
1606
|
-
* handle, preserves the session, and tears the execution down as `cancelled`. Returns the number
|
|
1607
|
-
* cancelled. Kept as an injected callback so the ui-service domain never imports orchestration
|
|
1608
|
-
* (layer safety / depcruise).
|
|
1609
|
-
*/
|
|
1610
|
-
cancelSessionRun: (opts: {
|
|
1611
|
-
channel: string;
|
|
1612
|
-
}) => Promise<number>;
|
|
1613
|
-
/** Kill one live execution and tear it down as `cancelled` (Web "Kill run"). Wired to the
|
|
1614
|
-
* orchestration `cancelLiveExecution`. False when no live execution has that id. */
|
|
1615
|
-
cancelLiveExecution: (executionId: string) => Promise<boolean>;
|
|
1616
|
-
/**
|
|
1617
|
-
* Message edit + rewind: roll the session back to `turnIndex` and re-send the edited text
|
|
1618
|
-
* (orchestration `rewindWebSession` — ledger rollback + backend backup restore + pooled-CLI
|
|
1619
|
-
* close + display-history truncate + resend). Wired in the entry layer (app.ts) so the
|
|
1620
|
-
* ui-service domain never imports orchestration.
|
|
1621
|
-
*/
|
|
1622
|
-
rewindSession: (opts: {
|
|
1623
|
-
sessionId: string;
|
|
1624
|
-
channel: string;
|
|
1625
|
-
turnIndex: number;
|
|
1626
|
-
text: string;
|
|
1627
|
-
}) => Promise<{
|
|
1628
|
-
ok: true;
|
|
1629
|
-
} | {
|
|
1630
|
-
ok: false;
|
|
1631
|
-
reason: 'running' | 'not-found';
|
|
1632
|
-
}>;
|
|
1633
|
-
/**
|
|
1634
|
-
* Create a fresh, live user-initiated (origin='direct') session for the workbench and return its
|
|
1635
|
-
* id. Injected in the entry layer (app.ts) to the domain `createDirectSession` primitive with the
|
|
1636
|
-
* real session/ledger singletons, so the ui-service domain never imports store internals.
|
|
1637
|
-
*/
|
|
1638
|
-
createDirectSession: (opts: {
|
|
1639
|
-
projectId: string;
|
|
1640
|
-
sessionId?: string;
|
|
1641
|
-
agentName?: string | null;
|
|
1642
|
-
selection?: EngineSelection;
|
|
1643
|
-
}) => Promise<{
|
|
1644
|
-
sessionId: string;
|
|
1645
|
-
channel: string;
|
|
1646
|
-
}>;
|
|
1647
|
-
/**
|
|
1648
|
-
* Convert a scheduled run's session into a normal direct web session before a reply is sent
|
|
1649
|
-
* (design 27b: replying adopts the run — it leaves the schedule grouping and becomes a normal
|
|
1650
|
-
* conversation; the next fire starts a fresh session). Injected in the entry layer (app.ts) to
|
|
1651
|
-
* the domain `adoptScheduledSession` primitive. Returns the adopted channel, or null when the
|
|
1652
|
-
* session is unknown.
|
|
1653
|
-
*/
|
|
1654
|
-
adoptScheduledSession: (opts: {
|
|
1655
|
-
sessionId: string;
|
|
1656
|
-
}) => Promise<{
|
|
1657
|
-
channel: string;
|
|
1658
|
-
} | null>;
|
|
1659
|
-
/**
|
|
1660
|
-
* Move files uploaded under a draft upload id to the real session's attachment directory
|
|
1661
|
-
* and return updated AttachmentMeta with corrected paths. No-op when draftUploadId is null.
|
|
1662
|
-
*/
|
|
1663
|
-
moveDraftAttachments: (opts: {
|
|
1664
|
-
draftUploadId: string | null;
|
|
1665
|
-
sessionId: string;
|
|
1666
|
-
attachments: AttachmentMeta[];
|
|
1667
|
-
}) => Promise<AttachmentMeta[]>;
|
|
1668
|
-
/** Switch execution environment without changing the engine. */
|
|
1669
|
-
switchSessionAgent: (opts: {
|
|
1670
|
-
channel: string;
|
|
1671
|
-
name: string | null;
|
|
1672
|
-
}) => Promise<{
|
|
1673
|
-
ok: boolean;
|
|
1674
|
-
agentName: string | null;
|
|
1675
|
-
reason?: 'unknown-agent';
|
|
1676
|
-
}>;
|
|
1677
|
-
/** Shared domain selection rule, wired at the entry layer. */
|
|
1678
|
-
applySessionSelection: (opts: EngineSelection & {
|
|
1679
|
-
channel: string;
|
|
1680
|
-
}) => Promise<EngineSelection & {
|
|
1681
|
-
ok: boolean;
|
|
1682
|
-
backendChanged: boolean;
|
|
1683
|
-
reason?: string;
|
|
1684
|
-
currentBackend?: string;
|
|
1685
|
-
targetBackend?: string;
|
|
1686
|
-
allowed?: readonly string[];
|
|
1687
|
-
}>;
|
|
1688
|
-
getModelMemory: () => ConfigModels['memory'];
|
|
1689
|
-
/** The last composer pick on this host, which a draft conversation starts from. Injected for the
|
|
1690
|
-
* same reason as the two above. */
|
|
1691
|
-
getSelectionDefault: () => ConfigSelectionDefault | null;
|
|
1692
|
-
scheduler: {
|
|
1693
|
-
list(): Promise<ScheduleTask[]>;
|
|
1694
|
-
get(id: string): Promise<ScheduleTask | null>;
|
|
1695
|
-
pause(id: string): Promise<ScheduleTask | null>;
|
|
1696
|
-
resume(id: string): Promise<ScheduleTask | null>;
|
|
1697
|
-
remove(id: string): Promise<boolean>;
|
|
1698
|
-
add(spec: ScheduleSpec): Promise<ScheduleTask>;
|
|
1699
|
-
update(id: string, patch: SchedulePatch): Promise<ScheduleTask | null>;
|
|
1700
|
-
};
|
|
1701
|
-
executionRegistry: {
|
|
1702
|
-
getExecution(id: string): ExecutionRecord | null;
|
|
1703
|
-
getAll(): ExecutionRecord[];
|
|
1704
|
-
cancelExecution(id: string): ExecutionRecord | null;
|
|
1705
|
-
};
|
|
1706
|
-
/** Waitpoint seam (`waitpoints.*` ops and SessionInfo.waitingOn). Injected at the entry layer so
|
|
1707
|
-
* the ui-service domain never reaches into the waitpoint store itself. Queries include armed records and pending deliveries; settled records are hidden. */
|
|
1708
|
-
waitpointRegistry: {
|
|
1709
|
-
list(): Promise<Waitpoint[]>;
|
|
1710
|
-
cancel(id: string): Promise<{
|
|
1711
|
-
cancelled: boolean;
|
|
1712
|
-
state?: string;
|
|
1713
|
-
}>;
|
|
1714
|
-
};
|
|
1715
|
-
/** Board registry seam (boards.* ops). Optional — handlers fall back to the boardRepo
|
|
1716
|
-
* singleton when absent; tests inject it for determinism. */
|
|
1717
|
-
boardStore?: {
|
|
1718
|
-
list(projectId?: string): Promise<BoardRecord[]>;
|
|
1719
|
-
find(id: string): Promise<BoardRecord | null>;
|
|
1720
|
-
};
|
|
1721
|
-
/** Stylesheet sources for boards.style. Optional — defaults to the shipped preset and
|
|
1722
|
-
* `<cortex home>/config/board.css`; tests point it at temp files. */
|
|
1723
|
-
boardStylePaths?: {
|
|
1724
|
-
defaultCss: string;
|
|
1725
|
-
userCss: string;
|
|
1726
|
-
};
|
|
1727
|
-
/** Absolute path to PENDING_APPROVALS.md (the approval-center 7a markdown queue). */
|
|
1728
|
-
approvalsPath: string;
|
|
1729
|
-
/** The one busy answer (core/session-state.ts): sessions.list joins on it rather than
|
|
1730
|
-
* re-deriving "running" from the executions index and the hold registry separately. */
|
|
1731
|
-
runningExecutions: SessionStateReader;
|
|
1732
|
-
costSummary: (projectId?: string | null) => Promise<CostSummary>;
|
|
1733
|
-
/**
|
|
1734
|
-
* Registry of connected cortex-client devices (from remote/client-manager) plus the
|
|
1735
|
-
* static machine config (from remote/machine-registry getMachineRegistry). Injected at the
|
|
1736
|
-
* entry layer so the ui-service domain never imports the remote layer directly.
|
|
1737
|
-
* SECURITY: the raw ssh user@host string is NOT surfaced — only sshConfigured:boolean.
|
|
1738
|
-
*/
|
|
1739
|
-
clientRegistry: {
|
|
1740
|
-
getOnlineDevices(): Array<{
|
|
1741
|
-
device: string;
|
|
1742
|
-
platform: string;
|
|
1743
|
-
connectedAt: Date;
|
|
1744
|
-
lastHeartbeat: Date;
|
|
1745
|
-
capabilities: string[];
|
|
1746
|
-
}>;
|
|
1747
|
-
isDeviceOnline(device: string): boolean;
|
|
1748
|
-
getMachineRegistry(): Record<string, {
|
|
1749
|
-
cortexPath: string;
|
|
1750
|
-
gpuCount: number;
|
|
1751
|
-
ssh?: string;
|
|
1752
|
-
win?: boolean;
|
|
1753
|
-
}>;
|
|
1754
|
-
/**
|
|
1755
|
-
* Run a read-only shell probe on a connected device and return its stdout (machines.detail).
|
|
1756
|
-
* The command is built server-side — callers never forward user input into it.
|
|
1757
|
-
*/
|
|
1758
|
-
probeMachine(device: string, command: string, timeoutMs: number): Promise<string>;
|
|
1759
|
-
};
|
|
1760
|
-
bus: EventBus;
|
|
1761
|
-
adapter: PlatformAdapter;
|
|
1762
|
-
/**
|
|
1763
|
-
* Return the pending ask-user question group for a channel, if any (web UI pending query).
|
|
1764
|
-
* Reads from the in-memory pendingAskUserQuestionGroups Map.
|
|
1765
|
-
*/
|
|
1766
|
-
getPendingAskUser: (channel: string) => {
|
|
1767
|
-
requestId: string;
|
|
1768
|
-
questions: {
|
|
1769
|
-
question: string;
|
|
1770
|
-
header: string;
|
|
1771
|
-
options: {
|
|
1772
|
-
label: string;
|
|
1773
|
-
description?: string;
|
|
1774
|
-
}[];
|
|
1775
|
-
multiSelect: boolean;
|
|
1776
|
-
}[];
|
|
1777
|
-
blocking: boolean;
|
|
1778
|
-
} | null;
|
|
1779
|
-
/**
|
|
1780
|
-
* Return the pending plan approval for a channel, if any (web UI pending query).
|
|
1781
|
-
* Reads from the in-memory planApprovals Map.
|
|
1782
|
-
*/
|
|
1783
|
-
getPendingPlan: (channel: string) => {
|
|
1784
|
-
requestId: string;
|
|
1785
|
-
planContent: string;
|
|
1786
|
-
planFilePath: string | null;
|
|
1787
|
-
} | null;
|
|
1788
|
-
/**
|
|
1789
|
-
* Resolve a pending ask-user-question interaction (web UI path). The injected impl (app.ts)
|
|
1790
|
-
* looks up the hook group, collects answers, updates the interaction entity, and calls
|
|
1791
|
-
* tryResolveHook/resolveHookRequest so the blocked MCP tool receives its response.
|
|
1792
|
-
* Three-way outcome: 'resolved' | 'already-resolved' (another client won the race) |
|
|
1793
|
-
* 'not-found' (no such interaction).
|
|
1794
|
-
*/
|
|
1795
|
-
answerQuestion: (requestId: string, answers: Record<string, string>) => 'resolved' | 'already-resolved' | 'not-found';
|
|
1796
|
-
/**
|
|
1797
|
-
* Resolve a pending plan-approval interaction (web UI path). Same three-way outcome as
|
|
1798
|
-
* answerQuestion; the impl calls planApprovals.resolve/reject + entity resolve +
|
|
1799
|
-
* resolveHookRequest.
|
|
1800
|
-
*/
|
|
1801
|
-
respondPlan: (requestId: string, approved: boolean, feedback?: string) => 'resolved' | 'already-resolved' | 'not-found';
|
|
1802
|
-
/**
|
|
1803
|
-
* Liveness signal for transcript materialization: true only while the interaction is a live,
|
|
1804
|
-
* un-expired pending entry in the in-process index. After a restart the index is empty, so
|
|
1805
|
-
* still-`pending` persisted rows derive to `expired` at read time.
|
|
1806
|
-
*/
|
|
1807
|
-
isInteractionPending: (id: string) => boolean;
|
|
1808
|
-
}
|