agor-live 0.18.0 → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/commands/init.d.ts +0 -7
- package/dist/cli/commands/init.js +0 -48
- package/dist/core/{agentic-tool-DzVU-k-L.d.ts → agentic-tool-CGORlIKq.d.ts} +24 -1
- package/dist/core/{agentic-tool-BoVfSlQg.d.cts → agentic-tool-DYek7YVq.d.cts} +24 -1
- package/dist/core/api/index.d.cts +8 -8
- package/dist/core/api/index.d.ts +8 -8
- package/dist/core/{artifact-BiiLXU1_.d.ts → artifact-DDxlQ02o.d.ts} +1 -1
- package/dist/core/{artifact-CJVX9P0W.d.cts → artifact-k1G9-H6K.d.cts} +1 -1
- package/dist/core/{board-DGqozUC3.d.cts → board-1cbdSXob.d.cts} +1 -1
- package/dist/core/{board-DJssyVxQ.d.ts → board-B3k24jbC.d.ts} +1 -1
- package/dist/core/claude/index.cjs +7 -3
- package/dist/core/claude/index.d.cts +2 -2
- package/dist/core/claude/index.d.ts +2 -2
- package/dist/core/claude/index.js +7 -3
- package/dist/core/client/claude-system-suppression.cjs +59 -0
- package/dist/core/client/claude-system-suppression.d.cts +80 -0
- package/dist/core/client/claude-system-suppression.d.ts +80 -0
- package/dist/core/client/claude-system-suppression.js +32 -0
- package/dist/core/client/index.cjs +11 -3
- package/dist/core/client/index.d.cts +11 -11
- package/dist/core/client/index.d.ts +11 -11
- package/dist/core/client/index.js +10 -3
- package/dist/core/{client-C67tXxsk.d.ts → client-BrcHL222.d.cts} +12 -12
- package/dist/core/{client-BZZ079pE.d.cts → client-D1FTSv0A.d.ts} +12 -12
- package/dist/core/config/browser.d.cts +5 -5
- package/dist/core/config/browser.d.ts +5 -5
- package/dist/core/config/index.cjs +6 -2
- package/dist/core/config/index.d.cts +16 -25
- package/dist/core/config/index.d.ts +16 -25
- package/dist/core/config/index.js +6 -2
- package/dist/core/{config-manager-BET18dIh.d.cts → config-manager-DUYJRiGg.d.cts} +1 -1
- package/dist/core/{config-manager-Cz_Uk_n7.d.ts → config-manager-DrPVouA-.d.ts} +1 -1
- package/dist/core/{config-services-DXeqk2Do.d.cts → config-services-Bx4oustE.d.cts} +3 -3
- package/dist/core/{config-services-W4ZGuziR.d.ts → config-services-C6sJnO_4.d.ts} +3 -3
- package/dist/core/db/index.cjs +8 -4
- package/dist/core/db/index.d.cts +18 -18
- package/dist/core/db/index.d.ts +18 -18
- package/dist/core/db/index.js +8 -4
- package/dist/core/db/session-guard.d.cts +8 -8
- package/dist/core/db/session-guard.d.ts +8 -8
- package/dist/core/{feathers-DZvgVY4k.d.cts → feathers-DCslAllZ.d.cts} +1 -1
- package/dist/core/{feathers-veXYnC_G.d.ts → feathers-De9RYKO0.d.ts} +1 -1
- package/dist/core/gateway/index.d.cts +4 -4
- package/dist/core/gateway/index.d.ts +4 -4
- package/dist/core/{gateway-CO5u0sMT.d.ts → gateway-CGndjyED.d.ts} +3 -3
- package/dist/core/{gateway-BYf_zyZ2.d.cts → gateway-CL7Il8hj.d.cts} +3 -3
- package/dist/core/git/index.d.cts +6 -6
- package/dist/core/git/index.d.ts +6 -6
- package/dist/core/index.cjs +18 -6
- package/dist/core/index.d.cts +16 -16
- package/dist/core/index.d.ts +16 -16
- package/dist/core/index.js +17 -6
- package/dist/core/mcp/index.cjs +6 -2
- package/dist/core/mcp/index.js +6 -2
- package/dist/core/{message-aoAVQOoh.d.cts → message-CbUetxFL.d.cts} +12 -15
- package/dist/core/{message-0Ym119On.d.ts → message-DhU78eBO.d.ts} +12 -15
- package/dist/core/models/index.d.cts +3 -3
- package/dist/core/models/index.d.ts +3 -3
- package/dist/core/package.json +57 -0
- package/dist/core/permissions/index.d.cts +1 -1
- package/dist/core/permissions/index.d.ts +1 -1
- package/dist/core/{resolve-config-Ci8TVB13.d.cts → resolve-config-C6xndFL-.d.cts} +1 -1
- package/dist/core/{resolve-config-CJ4dkASO.d.ts → resolve-config-DMzwFPem.d.ts} +1 -1
- package/dist/core/seed/index.cjs +6 -2
- package/dist/core/seed/index.js +6 -2
- package/dist/core/{session-D2IKSDMm.d.cts → session-CgjZBe3u.d.cts} +1 -1
- package/dist/core/{session-DfaRpjh7.d.ts → session-DRsYGibl.d.ts} +1 -1
- package/dist/core/{session-guard-CduZtOkN.d.ts → session-guard-5dk6hW30.d.ts} +2 -2
- package/dist/core/{session-guard-C0trzVoG.d.cts → session-guard-B7EKrzDB.d.cts} +2 -2
- package/dist/core/sessions/index.d.cts +4 -4
- package/dist/core/sessions/index.d.ts +4 -4
- package/dist/core/{task-BwzcDown.d.cts → task-Bh63ayAv.d.cts} +1 -1
- package/dist/core/{task-DEuBUSIM.d.ts → task-uaxfWS17.d.ts} +1 -1
- package/dist/core/templates/session-context.d.cts +3 -3
- package/dist/core/templates/session-context.d.ts +3 -3
- package/dist/core/tools/mcp/oauth-refresh.cjs +6 -2
- package/dist/core/tools/mcp/oauth-refresh.d.cts +7 -7
- package/dist/core/tools/mcp/oauth-refresh.d.ts +7 -7
- package/dist/core/tools/mcp/oauth-refresh.js +6 -2
- package/dist/core/types/index.cjs +11 -3
- package/dist/core/types/index.d.cts +12 -12
- package/dist/core/types/index.d.ts +12 -12
- package/dist/core/types/index.js +10 -3
- package/dist/core/{types-LbFJvpjs.d.cts → types-CWpfBnZs.d.cts} +4 -6
- package/dist/core/{types-DfkMy25M.d.ts → types-fX70Qz4e.d.ts} +4 -6
- package/dist/core/unix/index.cjs +6 -2
- package/dist/core/unix/index.d.cts +10 -10
- package/dist/core/unix/index.d.ts +10 -10
- package/dist/core/unix/index.js +6 -2
- package/dist/core/{user-Bu1on2Sn.d.ts → user-C-ElgcLJ.d.ts} +4 -2
- package/dist/core/{user-Bh_97om1.d.cts → user-fbmxIZSn.d.cts} +4 -2
- package/dist/core/utils/board-placement.d.cts +2 -2
- package/dist/core/utils/board-placement.d.ts +2 -2
- package/dist/core/utils/permission-mode-mapper.d.cts +2 -2
- package/dist/core/utils/permission-mode-mapper.d.ts +2 -2
- package/dist/daemon/index.js +528 -270
- package/dist/daemon/main.js +528 -270
- package/dist/daemon/register-hooks.js +25 -13
- package/dist/daemon/register-routes.js +70 -98
- package/dist/daemon/register-services.js +305 -81
- package/dist/daemon/services/check-auth.d.ts +31 -0
- package/dist/daemon/services/check-auth.js +208 -0
- package/dist/daemon/services/repos.js +14 -9
- package/dist/daemon/services/tasks.js +44 -23
- package/dist/daemon/services/terminals.js +7 -0
- package/dist/daemon/services/worktree-owners.js +7 -0
- package/dist/daemon/services/worktrees.js +13 -9
- package/dist/daemon/startup.js +139 -1
- package/dist/daemon/utils/append-system-message.d.ts +35 -0
- package/dist/daemon/utils/append-system-message.js +36 -0
- package/dist/daemon/utils/git-impersonation.d.ts +39 -6
- package/dist/daemon/utils/git-impersonation.js +6 -7
- package/dist/daemon/utils/git-shell-capture.d.ts +3 -1
- package/dist/daemon/utils/git-shell-capture.js +8 -8
- package/dist/daemon/utils/spawn-executor.js +7 -0
- package/dist/executor/handlers/sdk/claude.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/claude.js +5 -14
- package/dist/executor/handlers/sdk/codex.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/codex.js +2 -1
- package/dist/executor/handlers/sdk/copilot.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/copilot.js +2 -1
- package/dist/executor/handlers/sdk/gemini.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/gemini.js +2 -1
- package/dist/executor/handlers/sdk/tool-registry.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/tool-registry.js +5 -4
- package/dist/executor/index.d.ts.map +1 -1
- package/dist/executor/index.js +0 -16
- package/dist/executor/sdk-handlers/base/tool.interface.d.ts +15 -1
- package/dist/executor/sdk-handlers/base/tool.interface.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/claude-tool.d.ts +1 -1
- package/dist/executor/sdk-handlers/claude/claude-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/claude-tool.js +2 -2
- package/dist/executor/sdk-handlers/claude/constants.d.ts +32 -0
- package/dist/executor/sdk-handlers/claude/constants.d.ts.map +1 -0
- package/dist/executor/sdk-handlers/claude/constants.js +36 -0
- package/dist/executor/sdk-handlers/claude/message-processor.d.ts +0 -5
- package/dist/executor/sdk-handlers/claude/message-processor.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/message-processor.js +8 -16
- package/dist/executor/sdk-handlers/claude/permissions/permission-hooks.d.ts +2 -13
- package/dist/executor/sdk-handlers/claude/permissions/permission-hooks.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/permissions/permission-hooks.js +1 -135
- package/dist/executor/sdk-handlers/claude/prompt-service.d.ts +1 -2
- package/dist/executor/sdk-handlers/claude/prompt-service.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/prompt-service.js +1 -5
- package/dist/executor/sdk-handlers/claude/query-builder.d.ts +0 -1
- package/dist/executor/sdk-handlers/claude/query-builder.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/query-builder.js +14 -17
- package/dist/executor/sdk-handlers/codex/app-server-client.d.ts +36 -0
- package/dist/executor/sdk-handlers/codex/app-server-client.d.ts.map +1 -0
- package/dist/executor/sdk-handlers/codex/app-server-client.js +155 -0
- package/dist/executor/sdk-handlers/codex/codex-tool.js +1 -1
- package/dist/executor/sdk-handlers/codex/prompt-service.d.ts +9 -0
- package/dist/executor/sdk-handlers/codex/prompt-service.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/codex/prompt-service.js +37 -0
- package/dist/executor/sdk-handlers/opencode/opencode-tool.d.ts +14 -0
- package/dist/executor/sdk-handlers/opencode/opencode-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/opencode/opencode-tool.js +72 -70
- package/dist/ui/assets/{CodeEditor.inner-B-LSxNLi.js → CodeEditor.inner-DQ7cP_NY.js} +1 -1
- package/dist/ui/assets/CodeEditor.inner-DQ7cP_NY.js.gz +0 -0
- package/dist/ui/assets/{architectureDiagram-VXUJARFQ-BOtw3C-s.js → architectureDiagram-VXUJARFQ-DHpqUvz1.js} +1 -1
- package/dist/ui/assets/architectureDiagram-VXUJARFQ-DHpqUvz1.js.gz +0 -0
- package/dist/ui/assets/{base-80a1f760-DPuSYwsb.js → base-80a1f760-DxPMyYTL.js} +1 -1
- package/dist/ui/assets/{blockDiagram-VD42YOAC-CD6wVOI_.js → blockDiagram-VD42YOAC-k39CdIUf.js} +1 -1
- package/dist/ui/assets/blockDiagram-VD42YOAC-k39CdIUf.js.gz +0 -0
- package/dist/ui/assets/{c4Diagram-YG6GDRKO-DI1VgHC9.js → c4Diagram-YG6GDRKO-PR7T7iw1.js} +1 -1
- package/dist/ui/assets/c4Diagram-YG6GDRKO-PR7T7iw1.js.gz +0 -0
- package/dist/ui/assets/channel-CLdjxXcP.js +1 -0
- package/dist/ui/assets/{chunk-4BX2VUAB-DeeSQrFJ.js → chunk-4BX2VUAB-C1lEyfYZ.js} +1 -1
- package/dist/ui/assets/chunk-55IACEB6-CNn86vG_.js +1 -0
- package/dist/ui/assets/{chunk-ABZYJK2D-C7wO77xG.js → chunk-ABZYJK2D-DBgK7Cgw.js} +1 -1
- package/dist/ui/assets/chunk-ABZYJK2D-DBgK7Cgw.js.gz +0 -0
- package/dist/ui/assets/{chunk-ATLVNIR6-BxLyiY2G.js → chunk-ATLVNIR6-Cz4kwS7Q.js} +1 -1
- package/dist/ui/assets/chunk-ATLVNIR6-Cz4kwS7Q.js.gz +0 -0
- package/dist/ui/assets/{chunk-B4BG7PRW-cm4IVPdj.js → chunk-B4BG7PRW-BLeXrBcw.js} +1 -1
- package/dist/ui/assets/chunk-B4BG7PRW-BLeXrBcw.js.gz +0 -0
- package/dist/ui/assets/{chunk-CVBHYZKI-C3gU9MJa.js → chunk-CVBHYZKI-DcWBWrbh.js} +1 -1
- package/dist/ui/assets/{chunk-DI55MBZ5-Cn11MhsG.js → chunk-DI55MBZ5-BLeU3lV6.js} +1 -1
- package/dist/ui/assets/chunk-DI55MBZ5-BLeU3lV6.js.gz +0 -0
- package/dist/ui/assets/chunk-EXTU4WIE-CWaTDYIx.js +1 -0
- package/dist/ui/assets/{chunk-FMBD7UC4-nUxlvJ2M.js → chunk-FMBD7UC4-Dsx401Bk.js} +1 -1
- package/dist/ui/assets/{chunk-HN2XXSSU-ByreOuj8.js → chunk-HN2XXSSU-FU2i5wbk.js} +1 -1
- package/dist/ui/assets/chunk-HN2XXSSU-FU2i5wbk.js.gz +0 -0
- package/dist/ui/assets/{chunk-JA3XYJ7Z-Bax7xK_N.js → chunk-JA3XYJ7Z-CPs9NkDs.js} +1 -1
- package/dist/ui/assets/chunk-JA3XYJ7Z-CPs9NkDs.js.gz +0 -0
- package/dist/ui/assets/{chunk-JZLCHNYA-Dl9q9w_H.js → chunk-JZLCHNYA-D5l3lWD0.js} +1 -1
- package/dist/ui/assets/chunk-JZLCHNYA-D5l3lWD0.js.gz +0 -0
- package/dist/ui/assets/{chunk-MI3HLSF2-DENCMb8x.js → chunk-MI3HLSF2-BLgVVRWz.js} +1 -1
- package/dist/ui/assets/chunk-MI3HLSF2-BLgVVRWz.js.gz +0 -0
- package/dist/ui/assets/chunk-N4CR4FBY-BkLhbbW5.js +2 -0
- package/dist/ui/assets/chunk-N4CR4FBY-BkLhbbW5.js.gz +0 -0
- package/dist/ui/assets/{chunk-QN33PNHL-BylJc9WI.js → chunk-QN33PNHL-Bg8qyslX.js} +1 -1
- package/dist/ui/assets/{chunk-QXUST7PY-GzChXWQ7.js → chunk-QXUST7PY-T9BD6i2J.js} +1 -1
- package/dist/ui/assets/chunk-QXUST7PY-T9BD6i2J.js.gz +0 -0
- package/dist/ui/assets/chunk-QZHKN3VN-C7QqpMPT.js +1 -0
- package/dist/ui/assets/{chunk-S3R3BYOJ-8aOqy05k.js → chunk-S3R3BYOJ-Bd-SmpVk.js} +1 -1
- package/dist/ui/assets/chunk-S3R3BYOJ-Bd-SmpVk.js.gz +0 -0
- package/dist/ui/assets/{chunk-TZMSLE5B-BxJrLwMD.js → chunk-TZMSLE5B-D7utadca.js} +1 -1
- package/dist/ui/assets/chunk-TZMSLE5B-D7utadca.js.gz +0 -0
- package/dist/ui/assets/classDiagram-2ON5EDUG-M-SUeCsQ.js +1 -0
- package/dist/ui/assets/classDiagram-v2-WZHVMYZB-CZa_UUUB.js +1 -0
- package/dist/ui/assets/{consoleHook-59e792cb-CzU4Wihp.js → consoleHook-59e792cb-DYa453nl.js} +1 -1
- package/dist/ui/assets/consoleHook-59e792cb-DYa453nl.js.gz +0 -0
- package/dist/ui/assets/{cose-bilkent-S5V4N54A-ChrN-7Nk.js → cose-bilkent-S5V4N54A-BG6HMzXA.js} +1 -1
- package/dist/ui/assets/cose-bilkent-S5V4N54A-BG6HMzXA.js.gz +0 -0
- package/dist/ui/assets/{dagre-BQkMlG7T.js → dagre-4zBoL_Gx.js} +1 -1
- package/dist/ui/assets/dagre-4zBoL_Gx.js.gz +0 -0
- package/dist/ui/assets/{dagre-6UL2VRFP-RxBNvESq.js → dagre-6UL2VRFP-CVKllEKp.js} +1 -1
- package/dist/ui/assets/dagre-6UL2VRFP-CVKllEKp.js.gz +0 -0
- package/dist/ui/assets/{diagram-PSM6KHXK-CA9V0qry.js → diagram-PSM6KHXK-V5FtNG96.js} +1 -1
- package/dist/ui/assets/diagram-PSM6KHXK-V5FtNG96.js.gz +0 -0
- package/dist/ui/assets/{diagram-QEK2KX5R-D_XJg8In.js → diagram-QEK2KX5R-D5fRWqYU.js} +1 -1
- package/dist/ui/assets/diagram-QEK2KX5R-D5fRWqYU.js.gz +0 -0
- package/dist/ui/assets/{diagram-S2PKOQOG-D-XWx6cj.js → diagram-S2PKOQOG-CE-dLwnJ.js} +1 -1
- package/dist/ui/assets/diagram-S2PKOQOG-CE-dLwnJ.js.gz +0 -0
- package/dist/ui/assets/{erDiagram-Q2GNP2WA-DjU6rC6-.js → erDiagram-Q2GNP2WA-B4r7GyLC.js} +1 -1
- package/dist/ui/assets/erDiagram-Q2GNP2WA-B4r7GyLC.js.gz +0 -0
- package/dist/ui/assets/{flowDiagram-NV44I4VS-ynZiTH3K.js → flowDiagram-NV44I4VS-7Lr8SmeJ.js} +1 -1
- package/dist/ui/assets/{flowDiagram-NV44I4VS-ynZiTH3K.js.gz → flowDiagram-NV44I4VS-7Lr8SmeJ.js.gz} +0 -0
- package/dist/ui/assets/{ganttDiagram-LVOFAZNH-mCDFE6N1.js → ganttDiagram-LVOFAZNH-Be2WXMQa.js} +1 -1
- package/dist/ui/assets/ganttDiagram-LVOFAZNH-Be2WXMQa.js.gz +0 -0
- package/dist/ui/assets/{gitGraphDiagram-NY62KEGX-C-Fjma_s.js → gitGraphDiagram-NY62KEGX-JmKMUCI1.js} +1 -1
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-JmKMUCI1.js.gz +0 -0
- package/dist/ui/assets/{index-599aeaf7-DW44bv7a.js → index-599aeaf7-CfJqiSKS.js} +1 -1
- package/dist/ui/assets/index-599aeaf7-CfJqiSKS.js.gz +0 -0
- package/dist/ui/assets/{index-BmTcW7iL.js → index-BoDoiS0m.js} +266 -260
- package/dist/ui/assets/index-BoDoiS0m.js.gz +0 -0
- package/dist/ui/assets/{infoDiagram-ER5ION4S-DvCvvyxp.js → infoDiagram-ER5ION4S-C27JecsG.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-XKPGCS4Q-CUu4LTwo.js → journeyDiagram-XKPGCS4Q-CknzscUq.js} +1 -1
- package/dist/ui/assets/journeyDiagram-XKPGCS4Q-CknzscUq.js.gz +0 -0
- package/dist/ui/assets/{kanban-definition-3W4ZIXB7-DgxIm_fo.js → kanban-definition-3W4ZIXB7-Bw7YM3dy.js} +1 -1
- package/dist/ui/assets/kanban-definition-3W4ZIXB7-Bw7YM3dy.js.gz +0 -0
- package/dist/ui/assets/{lib-Cfk8U6Lp.js → lib-CNy7cP8d.js} +1 -1
- package/dist/ui/assets/lib-CNy7cP8d.js.gz +0 -0
- package/dist/ui/assets/{line-BPBIcMZX.js → line-Cj-M2mvG.js} +1 -1
- package/dist/ui/assets/{linear-CvByawp5.js → linear-EJLzpwZ8.js} +1 -1
- package/dist/ui/assets/linear-EJLzpwZ8.js.gz +0 -0
- package/dist/ui/assets/{mermaid-parser.core-DELRDTUA.js → mermaid-parser.core-7e8XSYnf.js} +1 -1
- package/dist/ui/assets/mermaid-parser.core-7e8XSYnf.js.gz +0 -0
- package/dist/ui/assets/{mermaid.core-CO2N44zL.js → mermaid.core-L4UVi2Iv.js} +3 -3
- package/dist/ui/assets/mermaid.core-L4UVi2Iv.js.gz +0 -0
- package/dist/ui/assets/{mindmap-definition-VGOIOE7T-vBulzGic.js → mindmap-definition-VGOIOE7T-CgxQLYKe.js} +1 -1
- package/dist/ui/assets/mindmap-definition-VGOIOE7T-CgxQLYKe.js.gz +0 -0
- package/dist/ui/assets/{node-BVTGLmvK.js → node-B9piSQLO.js} +1 -1
- package/dist/ui/assets/node-B9piSQLO.js.gz +0 -0
- package/dist/ui/assets/{pieDiagram-ADFJNKIX-CXLnsdI6.js → pieDiagram-ADFJNKIX-CFeC5_7Z.js} +1 -1
- package/dist/ui/assets/pieDiagram-ADFJNKIX-CFeC5_7Z.js.gz +0 -0
- package/dist/ui/assets/{quadrantDiagram-AYHSOK5B-BL6urrj8.js → quadrantDiagram-AYHSOK5B-DJuPVTAD.js} +1 -1
- package/dist/ui/assets/quadrantDiagram-AYHSOK5B-DJuPVTAD.js.gz +0 -0
- package/dist/ui/assets/{requirementDiagram-UZGBJVZJ-BMjDHrbD.js → requirementDiagram-UZGBJVZJ-Cry-FJHM.js} +1 -1
- package/dist/ui/assets/requirementDiagram-UZGBJVZJ-Cry-FJHM.js.gz +0 -0
- package/dist/ui/assets/{runtime-ls8MNB0x.js → runtime-qz5_GT5C.js} +1 -1
- package/dist/ui/assets/runtime-qz5_GT5C.js.gz +0 -0
- package/dist/ui/assets/{sankeyDiagram-TZEHDZUN-CR08BYIq.js → sankeyDiagram-TZEHDZUN-DEs7QHM2.js} +1 -1
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-DEs7QHM2.js.gz +0 -0
- package/dist/ui/assets/{sequenceDiagram-WL72ISMW-DCDleF5P.js → sequenceDiagram-WL72ISMW-DS8d4e2t.js} +1 -1
- package/dist/ui/assets/sequenceDiagram-WL72ISMW-DS8d4e2t.js.gz +0 -0
- package/dist/ui/assets/{src-B_KHrEYy.js → src-DcSFC_zK.js} +1 -1
- package/dist/ui/assets/src-DcSFC_zK.js.gz +0 -0
- package/dist/ui/assets/{stateDiagram-FKZM4ZOC-C3_ziXMz.js → stateDiagram-FKZM4ZOC-i3VBKuKx.js} +1 -1
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-i3VBKuKx.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-JLEoTJjY.js +1 -0
- package/dist/ui/assets/{timeline-definition-IT6M3QCI-DDmyaQZc.js → timeline-definition-IT6M3QCI-BbEYH5_l.js} +1 -1
- package/dist/ui/assets/timeline-definition-IT6M3QCI-BbEYH5_l.js.gz +0 -0
- package/dist/ui/assets/{xychartDiagram-PRI3JC2R-Mt6QyXzu.js → xychartDiagram-PRI3JC2R-zhZ9KYQ1.js} +1 -1
- package/dist/ui/assets/xychartDiagram-PRI3JC2R-zhZ9KYQ1.js.gz +0 -0
- package/dist/ui/index.html +1 -1
- package/package.json +2 -2
- package/dist/ui/assets/CodeEditor.inner-B-LSxNLi.js.gz +0 -0
- package/dist/ui/assets/architectureDiagram-VXUJARFQ-BOtw3C-s.js.gz +0 -0
- package/dist/ui/assets/blockDiagram-VD42YOAC-CD6wVOI_.js.gz +0 -0
- package/dist/ui/assets/c4Diagram-YG6GDRKO-DI1VgHC9.js.gz +0 -0
- package/dist/ui/assets/channel-Z1ndN-1Q.js +0 -1
- package/dist/ui/assets/chunk-55IACEB6-o3sSL9lC.js +0 -1
- package/dist/ui/assets/chunk-ABZYJK2D-C7wO77xG.js.gz +0 -0
- package/dist/ui/assets/chunk-ATLVNIR6-BxLyiY2G.js.gz +0 -0
- package/dist/ui/assets/chunk-B4BG7PRW-cm4IVPdj.js.gz +0 -0
- package/dist/ui/assets/chunk-DI55MBZ5-Cn11MhsG.js.gz +0 -0
- package/dist/ui/assets/chunk-EXTU4WIE-BINdIke0.js +0 -1
- package/dist/ui/assets/chunk-HN2XXSSU-ByreOuj8.js.gz +0 -0
- package/dist/ui/assets/chunk-JA3XYJ7Z-Bax7xK_N.js.gz +0 -0
- package/dist/ui/assets/chunk-JZLCHNYA-Dl9q9w_H.js.gz +0 -0
- package/dist/ui/assets/chunk-MI3HLSF2-DENCMb8x.js.gz +0 -0
- package/dist/ui/assets/chunk-N4CR4FBY-M_81kVpk.js +0 -2
- package/dist/ui/assets/chunk-N4CR4FBY-M_81kVpk.js.gz +0 -0
- package/dist/ui/assets/chunk-QXUST7PY-GzChXWQ7.js.gz +0 -0
- package/dist/ui/assets/chunk-QZHKN3VN-CiTT4w1Y.js +0 -1
- package/dist/ui/assets/chunk-S3R3BYOJ-8aOqy05k.js.gz +0 -0
- package/dist/ui/assets/chunk-TZMSLE5B-BxJrLwMD.js.gz +0 -0
- package/dist/ui/assets/classDiagram-2ON5EDUG-D5RKbezd.js +0 -1
- package/dist/ui/assets/classDiagram-v2-WZHVMYZB--hxRdqYw.js +0 -1
- package/dist/ui/assets/consoleHook-59e792cb-CzU4Wihp.js.gz +0 -0
- package/dist/ui/assets/cose-bilkent-S5V4N54A-ChrN-7Nk.js.gz +0 -0
- package/dist/ui/assets/dagre-6UL2VRFP-RxBNvESq.js.gz +0 -0
- package/dist/ui/assets/dagre-BQkMlG7T.js.gz +0 -0
- package/dist/ui/assets/diagram-PSM6KHXK-CA9V0qry.js.gz +0 -0
- package/dist/ui/assets/diagram-QEK2KX5R-D_XJg8In.js.gz +0 -0
- package/dist/ui/assets/diagram-S2PKOQOG-D-XWx6cj.js.gz +0 -0
- package/dist/ui/assets/erDiagram-Q2GNP2WA-DjU6rC6-.js.gz +0 -0
- package/dist/ui/assets/ganttDiagram-LVOFAZNH-mCDFE6N1.js.gz +0 -0
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-C-Fjma_s.js.gz +0 -0
- package/dist/ui/assets/index-599aeaf7-DW44bv7a.js.gz +0 -0
- package/dist/ui/assets/index-BmTcW7iL.js.gz +0 -0
- package/dist/ui/assets/journeyDiagram-XKPGCS4Q-CUu4LTwo.js.gz +0 -0
- package/dist/ui/assets/kanban-definition-3W4ZIXB7-DgxIm_fo.js.gz +0 -0
- package/dist/ui/assets/lib-Cfk8U6Lp.js.gz +0 -0
- package/dist/ui/assets/linear-CvByawp5.js.gz +0 -0
- package/dist/ui/assets/mermaid-parser.core-DELRDTUA.js.gz +0 -0
- package/dist/ui/assets/mermaid.core-CO2N44zL.js.gz +0 -0
- package/dist/ui/assets/mindmap-definition-VGOIOE7T-vBulzGic.js.gz +0 -0
- package/dist/ui/assets/node-BVTGLmvK.js.gz +0 -0
- package/dist/ui/assets/pieDiagram-ADFJNKIX-CXLnsdI6.js.gz +0 -0
- package/dist/ui/assets/quadrantDiagram-AYHSOK5B-BL6urrj8.js.gz +0 -0
- package/dist/ui/assets/requirementDiagram-UZGBJVZJ-BMjDHrbD.js.gz +0 -0
- package/dist/ui/assets/runtime-ls8MNB0x.js.gz +0 -0
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-CR08BYIq.js.gz +0 -0
- package/dist/ui/assets/sequenceDiagram-WL72ISMW-DCDleF5P.js.gz +0 -0
- package/dist/ui/assets/src-B_KHrEYy.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-C3_ziXMz.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-CLvtczX3.js +0 -1
- package/dist/ui/assets/timeline-definition-IT6M3QCI-DDmyaQZc.js.gz +0 -0
- package/dist/ui/assets/xychartDiagram-PRI3JC2R-Mt6QyXzu.js.gz +0 -0
|
@@ -48,13 +48,6 @@ declare class Init extends Command {
|
|
|
48
48
|
* `~/.agor/admin-credentials`.
|
|
49
49
|
*/
|
|
50
50
|
private promptAdminSetup;
|
|
51
|
-
/**
|
|
52
|
-
* Prompt user for assistant setup
|
|
53
|
-
*
|
|
54
|
-
* Stores intent in config.yaml for the UI wizard to pick up.
|
|
55
|
-
* The framework repo is public, so HTTPS always works.
|
|
56
|
-
*/
|
|
57
|
-
private promptAssistantSetup;
|
|
58
51
|
/**
|
|
59
52
|
* Prompt user for API key setup
|
|
60
53
|
*/
|
|
@@ -266,9 +266,6 @@ var Init = class _Init extends Command {
|
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
|
-
if (!skipPrompts) {
|
|
270
|
-
await this.promptAssistantSetup();
|
|
271
|
-
}
|
|
272
269
|
this.log("");
|
|
273
270
|
this.log(chalk.green.bold("\u2705 Agor initialized successfully!"));
|
|
274
271
|
this.log("");
|
|
@@ -380,51 +377,6 @@ var Init = class _Init extends Command {
|
|
|
380
377
|
});
|
|
381
378
|
this.log(`${chalk.green(" \u2713")} Admin user created (${chalk.gray(email)})`);
|
|
382
379
|
}
|
|
383
|
-
/**
|
|
384
|
-
* Prompt user for assistant setup
|
|
385
|
-
*
|
|
386
|
-
* Stores intent in config.yaml for the UI wizard to pick up.
|
|
387
|
-
* The framework repo is public, so HTTPS always works.
|
|
388
|
-
*/
|
|
389
|
-
async promptAssistantSetup() {
|
|
390
|
-
this.log("");
|
|
391
|
-
this.log(chalk.bold("\u{1F916} Assistant"));
|
|
392
|
-
this.log("");
|
|
393
|
-
this.log(
|
|
394
|
-
chalk.gray("An assistant is a persistent AI companion that manages your Agor instance.")
|
|
395
|
-
);
|
|
396
|
-
this.log(
|
|
397
|
-
chalk.gray(
|
|
398
|
-
"It maintains memory across sessions, orchestrates work, and learns your preferences."
|
|
399
|
-
)
|
|
400
|
-
);
|
|
401
|
-
this.log("");
|
|
402
|
-
const { setupAssistant } = await inquirer.prompt([
|
|
403
|
-
{
|
|
404
|
-
type: "confirm",
|
|
405
|
-
name: "setupAssistant",
|
|
406
|
-
message: "Set up your assistant?",
|
|
407
|
-
default: true
|
|
408
|
-
}
|
|
409
|
-
]);
|
|
410
|
-
if (setupAssistant) {
|
|
411
|
-
const frameworkRepoUrl = "https://github.com/preset-io/agor-assistant.git";
|
|
412
|
-
await setConfigValue("onboarding.assistantPending", true);
|
|
413
|
-
await setConfigValue("onboarding.frameworkRepoUrl", frameworkRepoUrl);
|
|
414
|
-
this.log(`${chalk.green(" \u2713")} Assistant setup queued for the UI wizard`);
|
|
415
|
-
if (!process.env.ANTHROPIC_API_KEY) {
|
|
416
|
-
this.log("");
|
|
417
|
-
this.log(
|
|
418
|
-
chalk.yellow(
|
|
419
|
-
" \u{1F4A1} Tip: Set ANTHROPIC_API_KEY in your environment for Claude Code sessions"
|
|
420
|
-
)
|
|
421
|
-
);
|
|
422
|
-
this.log(chalk.gray(" You can also configure API keys in the UI after setup"));
|
|
423
|
-
}
|
|
424
|
-
} else {
|
|
425
|
-
this.log(chalk.gray(" Skipped. You can set this up later from the UI."));
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
380
|
/**
|
|
429
381
|
* Prompt user for API key setup
|
|
430
382
|
*/
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { A as AgenticToolID } from './id-DkhPzOUr.js';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* The set of credential env-var names the resolver knows how to look up.
|
|
5
|
+
* Kept as an explicit union so callers can't accidentally use an unrelated var.
|
|
6
|
+
* Lives in types (not config) so it is accessible to the browser bundle and
|
|
7
|
+
* executor without creating a circular config→types dependency.
|
|
8
|
+
*/
|
|
9
|
+
type ApiKeyName = 'ANTHROPIC_API_KEY' | 'ANTHROPIC_AUTH_TOKEN' | 'CLAUDE_CODE_OAUTH_TOKEN' | 'OPENAI_API_KEY' | 'GEMINI_API_KEY' | 'COPILOT_GITHUB_TOKEN';
|
|
3
10
|
/**
|
|
4
11
|
* Agentic coding tool names
|
|
5
12
|
*
|
|
@@ -126,6 +133,22 @@ interface AgenticToolCapabilities {
|
|
|
126
133
|
* Static capability map for all agentic tools.
|
|
127
134
|
* Source of truth for what each tool supports — avoids scattered `if (tool === 'codex')` checks.
|
|
128
135
|
*/
|
|
136
|
+
/**
|
|
137
|
+
* Auth check result — shared type for ITool.isAuthenticated and the daemon /check-auth service.
|
|
138
|
+
*/
|
|
139
|
+
interface AuthCheckResult {
|
|
140
|
+
authenticated: boolean;
|
|
141
|
+
method: 'api-key' | 'oauth' | 'native' | 'none';
|
|
142
|
+
hint?: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Canonical mapping from AgenticToolName to the env-var name that holds its primary API key.
|
|
146
|
+
* Tools that authenticate without a key (opencode) are intentionally absent.
|
|
147
|
+
*
|
|
148
|
+
* Single source of truth — used by the daemon check-auth service, the executor tool registry,
|
|
149
|
+
* and the onboarding wizard's API-key step.
|
|
150
|
+
*/
|
|
151
|
+
declare const TOOL_API_KEY_NAMES: Partial<Record<AgenticToolName, ApiKeyName>>;
|
|
129
152
|
declare const AGENTIC_TOOL_CAPABILITIES: Record<AgenticToolName, AgenticToolCapabilities>;
|
|
130
153
|
|
|
131
|
-
export { AGENTIC_TOOL_CAPABILITIES as A, type ClaudeCodePermissionMode as C, type GeminiPermissionMode as G, type OpenCodePermissionMode as O, type AgenticTool as a, type AgenticToolCapabilities as b, type AgenticToolName as c, type
|
|
154
|
+
export { AGENTIC_TOOL_CAPABILITIES as A, type ClaudeCodePermissionMode as C, type GeminiPermissionMode as G, type OpenCodePermissionMode as O, TOOL_API_KEY_NAMES as T, type AgenticTool as a, type AgenticToolCapabilities as b, type AgenticToolName as c, type ApiKeyName as d, type AuthCheckResult as e, type CodexApprovalPolicy as f, type CodexNetworkAccess as g, type CodexPermissionMode as h, type CodexSandboxMode as i, type CopilotPermissionMode as j };
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { A as AgenticToolID } from './id-DkhPzOUr.cjs';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* The set of credential env-var names the resolver knows how to look up.
|
|
5
|
+
* Kept as an explicit union so callers can't accidentally use an unrelated var.
|
|
6
|
+
* Lives in types (not config) so it is accessible to the browser bundle and
|
|
7
|
+
* executor without creating a circular config→types dependency.
|
|
8
|
+
*/
|
|
9
|
+
type ApiKeyName = 'ANTHROPIC_API_KEY' | 'ANTHROPIC_AUTH_TOKEN' | 'CLAUDE_CODE_OAUTH_TOKEN' | 'OPENAI_API_KEY' | 'GEMINI_API_KEY' | 'COPILOT_GITHUB_TOKEN';
|
|
3
10
|
/**
|
|
4
11
|
* Agentic coding tool names
|
|
5
12
|
*
|
|
@@ -126,6 +133,22 @@ interface AgenticToolCapabilities {
|
|
|
126
133
|
* Static capability map for all agentic tools.
|
|
127
134
|
* Source of truth for what each tool supports — avoids scattered `if (tool === 'codex')` checks.
|
|
128
135
|
*/
|
|
136
|
+
/**
|
|
137
|
+
* Auth check result — shared type for ITool.isAuthenticated and the daemon /check-auth service.
|
|
138
|
+
*/
|
|
139
|
+
interface AuthCheckResult {
|
|
140
|
+
authenticated: boolean;
|
|
141
|
+
method: 'api-key' | 'oauth' | 'native' | 'none';
|
|
142
|
+
hint?: string;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Canonical mapping from AgenticToolName to the env-var name that holds its primary API key.
|
|
146
|
+
* Tools that authenticate without a key (opencode) are intentionally absent.
|
|
147
|
+
*
|
|
148
|
+
* Single source of truth — used by the daemon check-auth service, the executor tool registry,
|
|
149
|
+
* and the onboarding wizard's API-key step.
|
|
150
|
+
*/
|
|
151
|
+
declare const TOOL_API_KEY_NAMES: Partial<Record<AgenticToolName, ApiKeyName>>;
|
|
129
152
|
declare const AGENTIC_TOOL_CAPABILITIES: Record<AgenticToolName, AgenticToolCapabilities>;
|
|
130
153
|
|
|
131
|
-
export { AGENTIC_TOOL_CAPABILITIES as A, type ClaudeCodePermissionMode as C, type GeminiPermissionMode as G, type OpenCodePermissionMode as O, type AgenticTool as a, type AgenticToolCapabilities as b, type AgenticToolName as c, type
|
|
154
|
+
export { AGENTIC_TOOL_CAPABILITIES as A, type ClaudeCodePermissionMode as C, type GeminiPermissionMode as G, type OpenCodePermissionMode as O, TOOL_API_KEY_NAMES as T, type AgenticTool as a, type AgenticToolCapabilities as b, type AgenticToolName as c, type ApiKeyName as d, type AuthCheckResult as e, type CodexApprovalPolicy as f, type CodexNetworkAccess as g, type CodexPermissionMode as h, type CodexSandboxMode as i, type CopilotPermissionMode as j };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { M as Message } from '../message-
|
|
1
|
+
import { M as Message } from '../message-CbUetxFL.cjs';
|
|
2
2
|
import { e as UUID } from '../id-DkhPzOUr.cjs';
|
|
3
|
-
import { b as Artifact } from '../artifact-
|
|
4
|
-
import { B as Board, k as CardWithType, i as CardType, d as BoardExportBlob } from '../board-
|
|
3
|
+
import { b as Artifact } from '../artifact-k1G9-H6K.cjs';
|
|
4
|
+
import { B as Board, k as CardWithType, i as CardType, d as BoardExportBlob } from '../board-1cbdSXob.cjs';
|
|
5
5
|
import { R as Repo, l as Worktree, C as CloneRepositoryResult } from '../repo-X-f3IbfQ.cjs';
|
|
6
|
-
import { a as Session, P as PermissionMode } from '../session-
|
|
7
|
-
import { q as User } from '../user-
|
|
6
|
+
import { a as Session, P as PermissionMode } from '../session-CgjZBe3u.cjs';
|
|
7
|
+
import { q as User } from '../user-fbmxIZSn.cjs';
|
|
8
8
|
import { a as ContextFileListItem, C as ContextFileDetail } from '../context-BpkCELpO.cjs';
|
|
9
|
-
import { b as AuthenticationResult } from '../feathers-
|
|
9
|
+
import { b as AuthenticationResult } from '../feathers-DCslAllZ.cjs';
|
|
10
10
|
import { f as MCPServer } from '../mcp-3o0cxfxv.cjs';
|
|
11
|
-
import { T as Task } from '../task-
|
|
11
|
+
import { T as Task } from '../task-Bh63ayAv.cjs';
|
|
12
12
|
import { a as TemplateRenderResponse, T as TemplateRenderRequest } from '../template-Ceyqdfae.cjs';
|
|
13
13
|
import { Application, Params, Paginated } from '@feathersjs/feathers';
|
|
14
14
|
import { Socket } from 'socket.io-client';
|
|
15
15
|
export { default as authenticationClient } from '@feathersjs/authentication-client';
|
|
16
|
-
import '../agentic-tool-
|
|
16
|
+
import '../agentic-tool-DYek7YVq.cjs';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Feathers Client for Agor
|
package/dist/core/api/index.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { M as Message } from '../message-
|
|
1
|
+
import { M as Message } from '../message-DhU78eBO.js';
|
|
2
2
|
import { e as UUID } from '../id-DkhPzOUr.js';
|
|
3
|
-
import { b as Artifact } from '../artifact-
|
|
4
|
-
import { B as Board, k as CardWithType, i as CardType, d as BoardExportBlob } from '../board-
|
|
3
|
+
import { b as Artifact } from '../artifact-DDxlQ02o.js';
|
|
4
|
+
import { B as Board, k as CardWithType, i as CardType, d as BoardExportBlob } from '../board-B3k24jbC.js';
|
|
5
5
|
import { R as Repo, l as Worktree, C as CloneRepositoryResult } from '../repo-rgMGUgtm.js';
|
|
6
|
-
import { a as Session, P as PermissionMode } from '../session-
|
|
7
|
-
import { q as User } from '../user-
|
|
6
|
+
import { a as Session, P as PermissionMode } from '../session-DRsYGibl.js';
|
|
7
|
+
import { q as User } from '../user-C-ElgcLJ.js';
|
|
8
8
|
import { a as ContextFileListItem, C as ContextFileDetail } from '../context-BpkCELpO.js';
|
|
9
|
-
import { b as AuthenticationResult } from '../feathers-
|
|
9
|
+
import { b as AuthenticationResult } from '../feathers-De9RYKO0.js';
|
|
10
10
|
import { f as MCPServer } from '../mcp-BrlfyCrb.js';
|
|
11
|
-
import { T as Task } from '../task-
|
|
11
|
+
import { T as Task } from '../task-uaxfWS17.js';
|
|
12
12
|
import { a as TemplateRenderResponse, T as TemplateRenderRequest } from '../template-Ceyqdfae.js';
|
|
13
13
|
import { Application, Params, Paginated } from '@feathersjs/feathers';
|
|
14
14
|
import { Socket } from 'socket.io-client';
|
|
15
15
|
export { default as authenticationClient } from '@feathersjs/authentication-client';
|
|
16
|
-
import '../agentic-tool-
|
|
16
|
+
import '../agentic-tool-CGORlIKq.js';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* Feathers Client for Agor
|
|
@@ -314,7 +314,7 @@ var init_task = __esm({
|
|
|
314
314
|
// Stop requested, waiting for SDK to halt
|
|
315
315
|
AWAITING_PERMISSION: "awaiting_permission",
|
|
316
316
|
AWAITING_INPUT: "awaiting_input",
|
|
317
|
-
//
|
|
317
|
+
// Legacy / pre-#1177: AskUserQuestion was disallowed at the SDK; new tasks never enter this state, kept for historical rows
|
|
318
318
|
TIMED_OUT: "timed_out",
|
|
319
319
|
// Permission/input request timed out, executor exited — user must re-prompt
|
|
320
320
|
COMPLETED: "completed",
|
|
@@ -613,7 +613,9 @@ var init_schema_postgres = __esm({
|
|
|
613
613
|
"system",
|
|
614
614
|
"file-history-snapshot",
|
|
615
615
|
"permission_request",
|
|
616
|
-
"input_request"
|
|
616
|
+
"input_request",
|
|
617
|
+
"daemon_restart",
|
|
618
|
+
"daemon_crash"
|
|
617
619
|
]
|
|
618
620
|
}).notNull(),
|
|
619
621
|
role: (0, import_pg_core.text)("role", {
|
|
@@ -1366,7 +1368,9 @@ var init_schema_sqlite = __esm({
|
|
|
1366
1368
|
"system",
|
|
1367
1369
|
"file-history-snapshot",
|
|
1368
1370
|
"permission_request",
|
|
1369
|
-
"input_request"
|
|
1371
|
+
"input_request",
|
|
1372
|
+
"daemon_restart",
|
|
1373
|
+
"daemon_crash"
|
|
1370
1374
|
]
|
|
1371
1375
|
}).notNull(),
|
|
1372
1376
|
role: (0, import_sqlite_core.text)("role", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as Message } from '../message-
|
|
1
|
+
import { M as Message } from '../message-CbUetxFL.cjs';
|
|
2
2
|
import { S as SessionID } from '../id-DkhPzOUr.cjs';
|
|
3
|
-
import { d as TaskStatus, T as Task } from '../task-
|
|
3
|
+
import { d as TaskStatus, T as Task } from '../task-Bh63ayAv.cjs';
|
|
4
4
|
import '../context-BpkCELpO.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { M as Message } from '../message-
|
|
1
|
+
import { M as Message } from '../message-DhU78eBO.js';
|
|
2
2
|
import { S as SessionID } from '../id-DkhPzOUr.js';
|
|
3
|
-
import { d as TaskStatus, T as Task } from '../task-
|
|
3
|
+
import { d as TaskStatus, T as Task } from '../task-uaxfWS17.js';
|
|
4
4
|
import '../context-BpkCELpO.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -292,7 +292,7 @@ var init_task = __esm({
|
|
|
292
292
|
// Stop requested, waiting for SDK to halt
|
|
293
293
|
AWAITING_PERMISSION: "awaiting_permission",
|
|
294
294
|
AWAITING_INPUT: "awaiting_input",
|
|
295
|
-
//
|
|
295
|
+
// Legacy / pre-#1177: AskUserQuestion was disallowed at the SDK; new tasks never enter this state, kept for historical rows
|
|
296
296
|
TIMED_OUT: "timed_out",
|
|
297
297
|
// Permission/input request timed out, executor exited — user must re-prompt
|
|
298
298
|
COMPLETED: "completed",
|
|
@@ -604,7 +604,9 @@ var init_schema_postgres = __esm({
|
|
|
604
604
|
"system",
|
|
605
605
|
"file-history-snapshot",
|
|
606
606
|
"permission_request",
|
|
607
|
-
"input_request"
|
|
607
|
+
"input_request",
|
|
608
|
+
"daemon_restart",
|
|
609
|
+
"daemon_crash"
|
|
608
610
|
]
|
|
609
611
|
}).notNull(),
|
|
610
612
|
role: text("role", {
|
|
@@ -1365,7 +1367,9 @@ var init_schema_sqlite = __esm({
|
|
|
1365
1367
|
"system",
|
|
1366
1368
|
"file-history-snapshot",
|
|
1367
1369
|
"permission_request",
|
|
1368
|
-
"input_request"
|
|
1370
|
+
"input_request",
|
|
1371
|
+
"daemon_restart",
|
|
1372
|
+
"daemon_crash"
|
|
1369
1373
|
]
|
|
1370
1374
|
}).notNull(),
|
|
1371
1375
|
role: text2("role", {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/client/claude-system-suppression.ts
|
|
21
|
+
var claude_system_suppression_exports = {};
|
|
22
|
+
__export(claude_system_suppression_exports, {
|
|
23
|
+
SUPPRESSED_CLAUDE_STATUSES: () => SUPPRESSED_CLAUDE_STATUSES,
|
|
24
|
+
SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES: () => SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES,
|
|
25
|
+
shouldHidePersistedClaudeSdkEvent: () => shouldHidePersistedClaudeSdkEvent
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(claude_system_suppression_exports);
|
|
28
|
+
var SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES = /* @__PURE__ */ new Set([
|
|
29
|
+
"files_persisted",
|
|
30
|
+
"session_state_changed",
|
|
31
|
+
"task_started",
|
|
32
|
+
"task_progress",
|
|
33
|
+
"task_updated",
|
|
34
|
+
"task_notification"
|
|
35
|
+
]);
|
|
36
|
+
var SUPPRESSED_CLAUDE_STATUSES = /* @__PURE__ */ new Set([
|
|
37
|
+
"requesting"
|
|
38
|
+
]);
|
|
39
|
+
function shouldHidePersistedClaudeSdkEvent(block) {
|
|
40
|
+
if (block.type !== "sdk_event") return false;
|
|
41
|
+
if (block.sdkType !== "system") return false;
|
|
42
|
+
if (!block.sdkSubtype) return false;
|
|
43
|
+
if (SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES.has(block.sdkSubtype)) {
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
if (block.sdkSubtype === "status") {
|
|
47
|
+
const status = typeof block.metadata === "object" && block.metadata !== null ? block.metadata.status : void 0;
|
|
48
|
+
if (typeof status === "string" && SUPPRESSED_CLAUDE_STATUSES.has(status)) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
55
|
+
0 && (module.exports = {
|
|
56
|
+
SUPPRESSED_CLAUDE_STATUSES,
|
|
57
|
+
SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES,
|
|
58
|
+
shouldHidePersistedClaudeSdkEvent
|
|
59
|
+
});
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared suppression rules for noisy Claude Agent SDK `type:'system'` events.
|
|
5
|
+
*
|
|
6
|
+
* Blacklist philosophy: surface unknown subtypes by default so newly added
|
|
7
|
+
* SDK events (e.g. `mirror_error`, `notification`, `api_retry`, `memory_recall`,
|
|
8
|
+
* `plugin_install`) reach users without code changes. Only entries we have
|
|
9
|
+
* confirmed are pure lifecycle telemetry belong in the suppress set.
|
|
10
|
+
*
|
|
11
|
+
* Two consumers:
|
|
12
|
+
* - executor (`message-processor.ts`): drops these before they ever become
|
|
13
|
+
* persisted sdk_event blocks. Forward-only.
|
|
14
|
+
* - UI (`RateLimitBlock`): defensive filter for sdk_event rows already in the
|
|
15
|
+
* DB from sessions created before a given suppression entry was added.
|
|
16
|
+
*
|
|
17
|
+
* History:
|
|
18
|
+
* - PR #1116 added `status='requesting'`.
|
|
19
|
+
* - PR #1172 added `task_updated` and lifted both rules into this shared
|
|
20
|
+
* module so the executor + UI no longer hardcode the same literals.
|
|
21
|
+
*
|
|
22
|
+
* This module is browser-safe: it imports types only from
|
|
23
|
+
* `@anthropic-ai/claude-agent-sdk` (erased at runtime).
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The exhaustive set of `subtype` values for SDK messages with `type:'system'`,
|
|
28
|
+
* pulled from the SDK's discriminated union. A rename in the SDK turns into a
|
|
29
|
+
* type error at the call site, rather than a silent miss.
|
|
30
|
+
*/
|
|
31
|
+
type ClaudeSystemSubtype = Extract<SDKMessage, {
|
|
32
|
+
type: 'system';
|
|
33
|
+
}>['subtype'];
|
|
34
|
+
/**
|
|
35
|
+
* The `status` values an `SDKStatusMessage` can carry, again derived from the
|
|
36
|
+
* SDK union so an upstream rename trips typecheck instead of silently leaking.
|
|
37
|
+
*/
|
|
38
|
+
type ClaudeSystemStatus = Extract<SDKMessage, {
|
|
39
|
+
type: 'system';
|
|
40
|
+
subtype: 'status';
|
|
41
|
+
}>['status'];
|
|
42
|
+
/**
|
|
43
|
+
* System subtypes we suppress on sight — pure lifecycle telemetry that has no
|
|
44
|
+
* user-meaningful content on its own.
|
|
45
|
+
*
|
|
46
|
+
* Task failure visibility note: `task_*` events are suppressed wholesale,
|
|
47
|
+
* including `task_updated` rows where `patch.error` is set. The Task tool's
|
|
48
|
+
* own `tool_result` block (with `is_error: true`) is the authoritative surface
|
|
49
|
+
* for subagent task failures; the parallel `task_*` telemetry stream is
|
|
50
|
+
* redundant. If that invariant ever breaks, revisit this set.
|
|
51
|
+
*/
|
|
52
|
+
declare const SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES: ReadonlySet<ClaudeSystemSubtype>;
|
|
53
|
+
/**
|
|
54
|
+
* `SDKStatusMessage.status` values we suppress. `requesting` fires on every
|
|
55
|
+
* API call; `compacting` is handled separately in the executor (it renders as
|
|
56
|
+
* a real SYSTEM "Compacting…" message). Other status values — `null` (the SDK's
|
|
57
|
+
* "no active status" sentinel, often co-occurring with `permissionMode` or
|
|
58
|
+
* `compact_result` fields) and any future additions — are intentionally allowed
|
|
59
|
+
* to fall through to the generic sdk_event surfacer.
|
|
60
|
+
*/
|
|
61
|
+
declare const SUPPRESSED_CLAUDE_STATUSES: ReadonlySet<NonNullable<ClaudeSystemStatus>>;
|
|
62
|
+
/**
|
|
63
|
+
* Block shape persisted on `sdk_event` content blocks. Loose by design: this
|
|
64
|
+
* helper is consumed by the UI from message rows that may predate any given
|
|
65
|
+
* schema revision.
|
|
66
|
+
*/
|
|
67
|
+
interface PersistedSdkEventBlock {
|
|
68
|
+
type?: string;
|
|
69
|
+
sdkType?: string;
|
|
70
|
+
sdkSubtype?: string;
|
|
71
|
+
metadata?: unknown;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Defensive UI filter: returns true when an already-persisted `sdk_event`
|
|
75
|
+
* block matches one of our suppression rules and should be hidden from the
|
|
76
|
+
* transcript. Catches rows written before the executor learned to drop them.
|
|
77
|
+
*/
|
|
78
|
+
declare function shouldHidePersistedClaudeSdkEvent(block: PersistedSdkEventBlock): boolean;
|
|
79
|
+
|
|
80
|
+
export { type ClaudeSystemStatus, type ClaudeSystemSubtype, SUPPRESSED_CLAUDE_STATUSES, SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES, shouldHidePersistedClaudeSdkEvent };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { SDKMessage } from '@anthropic-ai/claude-agent-sdk';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared suppression rules for noisy Claude Agent SDK `type:'system'` events.
|
|
5
|
+
*
|
|
6
|
+
* Blacklist philosophy: surface unknown subtypes by default so newly added
|
|
7
|
+
* SDK events (e.g. `mirror_error`, `notification`, `api_retry`, `memory_recall`,
|
|
8
|
+
* `plugin_install`) reach users without code changes. Only entries we have
|
|
9
|
+
* confirmed are pure lifecycle telemetry belong in the suppress set.
|
|
10
|
+
*
|
|
11
|
+
* Two consumers:
|
|
12
|
+
* - executor (`message-processor.ts`): drops these before they ever become
|
|
13
|
+
* persisted sdk_event blocks. Forward-only.
|
|
14
|
+
* - UI (`RateLimitBlock`): defensive filter for sdk_event rows already in the
|
|
15
|
+
* DB from sessions created before a given suppression entry was added.
|
|
16
|
+
*
|
|
17
|
+
* History:
|
|
18
|
+
* - PR #1116 added `status='requesting'`.
|
|
19
|
+
* - PR #1172 added `task_updated` and lifted both rules into this shared
|
|
20
|
+
* module so the executor + UI no longer hardcode the same literals.
|
|
21
|
+
*
|
|
22
|
+
* This module is browser-safe: it imports types only from
|
|
23
|
+
* `@anthropic-ai/claude-agent-sdk` (erased at runtime).
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The exhaustive set of `subtype` values for SDK messages with `type:'system'`,
|
|
28
|
+
* pulled from the SDK's discriminated union. A rename in the SDK turns into a
|
|
29
|
+
* type error at the call site, rather than a silent miss.
|
|
30
|
+
*/
|
|
31
|
+
type ClaudeSystemSubtype = Extract<SDKMessage, {
|
|
32
|
+
type: 'system';
|
|
33
|
+
}>['subtype'];
|
|
34
|
+
/**
|
|
35
|
+
* The `status` values an `SDKStatusMessage` can carry, again derived from the
|
|
36
|
+
* SDK union so an upstream rename trips typecheck instead of silently leaking.
|
|
37
|
+
*/
|
|
38
|
+
type ClaudeSystemStatus = Extract<SDKMessage, {
|
|
39
|
+
type: 'system';
|
|
40
|
+
subtype: 'status';
|
|
41
|
+
}>['status'];
|
|
42
|
+
/**
|
|
43
|
+
* System subtypes we suppress on sight — pure lifecycle telemetry that has no
|
|
44
|
+
* user-meaningful content on its own.
|
|
45
|
+
*
|
|
46
|
+
* Task failure visibility note: `task_*` events are suppressed wholesale,
|
|
47
|
+
* including `task_updated` rows where `patch.error` is set. The Task tool's
|
|
48
|
+
* own `tool_result` block (with `is_error: true`) is the authoritative surface
|
|
49
|
+
* for subagent task failures; the parallel `task_*` telemetry stream is
|
|
50
|
+
* redundant. If that invariant ever breaks, revisit this set.
|
|
51
|
+
*/
|
|
52
|
+
declare const SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES: ReadonlySet<ClaudeSystemSubtype>;
|
|
53
|
+
/**
|
|
54
|
+
* `SDKStatusMessage.status` values we suppress. `requesting` fires on every
|
|
55
|
+
* API call; `compacting` is handled separately in the executor (it renders as
|
|
56
|
+
* a real SYSTEM "Compacting…" message). Other status values — `null` (the SDK's
|
|
57
|
+
* "no active status" sentinel, often co-occurring with `permissionMode` or
|
|
58
|
+
* `compact_result` fields) and any future additions — are intentionally allowed
|
|
59
|
+
* to fall through to the generic sdk_event surfacer.
|
|
60
|
+
*/
|
|
61
|
+
declare const SUPPRESSED_CLAUDE_STATUSES: ReadonlySet<NonNullable<ClaudeSystemStatus>>;
|
|
62
|
+
/**
|
|
63
|
+
* Block shape persisted on `sdk_event` content blocks. Loose by design: this
|
|
64
|
+
* helper is consumed by the UI from message rows that may predate any given
|
|
65
|
+
* schema revision.
|
|
66
|
+
*/
|
|
67
|
+
interface PersistedSdkEventBlock {
|
|
68
|
+
type?: string;
|
|
69
|
+
sdkType?: string;
|
|
70
|
+
sdkSubtype?: string;
|
|
71
|
+
metadata?: unknown;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Defensive UI filter: returns true when an already-persisted `sdk_event`
|
|
75
|
+
* block matches one of our suppression rules and should be hidden from the
|
|
76
|
+
* transcript. Catches rows written before the executor learned to drop them.
|
|
77
|
+
*/
|
|
78
|
+
declare function shouldHidePersistedClaudeSdkEvent(block: PersistedSdkEventBlock): boolean;
|
|
79
|
+
|
|
80
|
+
export { type ClaudeSystemStatus, type ClaudeSystemSubtype, SUPPRESSED_CLAUDE_STATUSES, SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES, shouldHidePersistedClaudeSdkEvent };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// src/client/claude-system-suppression.ts
|
|
2
|
+
var SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES = /* @__PURE__ */ new Set([
|
|
3
|
+
"files_persisted",
|
|
4
|
+
"session_state_changed",
|
|
5
|
+
"task_started",
|
|
6
|
+
"task_progress",
|
|
7
|
+
"task_updated",
|
|
8
|
+
"task_notification"
|
|
9
|
+
]);
|
|
10
|
+
var SUPPRESSED_CLAUDE_STATUSES = /* @__PURE__ */ new Set([
|
|
11
|
+
"requesting"
|
|
12
|
+
]);
|
|
13
|
+
function shouldHidePersistedClaudeSdkEvent(block) {
|
|
14
|
+
if (block.type !== "sdk_event") return false;
|
|
15
|
+
if (block.sdkType !== "system") return false;
|
|
16
|
+
if (!block.sdkSubtype) return false;
|
|
17
|
+
if (SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES.has(block.sdkSubtype)) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
if (block.sdkSubtype === "status") {
|
|
21
|
+
const status = typeof block.metadata === "object" && block.metadata !== null ? block.metadata.status : void 0;
|
|
22
|
+
if (typeof status === "string" && SUPPRESSED_CLAUDE_STATUSES.has(status)) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
SUPPRESSED_CLAUDE_STATUSES,
|
|
30
|
+
SUPPRESSED_CLAUDE_SYSTEM_SUBTYPES,
|
|
31
|
+
shouldHidePersistedClaudeSdkEvent
|
|
32
|
+
};
|
|
@@ -61,6 +61,7 @@ __export(client_exports, {
|
|
|
61
61
|
SERVICE_TIER_RANK: () => SERVICE_TIER_RANK,
|
|
62
62
|
SESSION: () => SESSION,
|
|
63
63
|
SessionStatus: () => SessionStatus,
|
|
64
|
+
TOOL_API_KEY_NAMES: () => TOOL_API_KEY_NAMES,
|
|
64
65
|
TaskStatus: () => TaskStatus,
|
|
65
66
|
URL_SHORT_ID_LENGTH: () => URL_SHORT_ID_LENGTH,
|
|
66
67
|
WEBSOCKET: () => WEBSOCKET,
|
|
@@ -915,6 +916,12 @@ function buildZoneTriggerContext(input) {
|
|
|
915
916
|
}
|
|
916
917
|
|
|
917
918
|
// src/types/agentic-tool.ts
|
|
919
|
+
var TOOL_API_KEY_NAMES = {
|
|
920
|
+
"claude-code": "ANTHROPIC_API_KEY",
|
|
921
|
+
codex: "OPENAI_API_KEY",
|
|
922
|
+
gemini: "GEMINI_API_KEY",
|
|
923
|
+
copilot: "COPILOT_GITHUB_TOKEN"
|
|
924
|
+
};
|
|
918
925
|
var AGENTIC_TOOL_CAPABILITIES = {
|
|
919
926
|
"claude-code": {
|
|
920
927
|
supportsSessionFork: true,
|
|
@@ -923,7 +930,7 @@ var AGENTIC_TOOL_CAPABILITIES = {
|
|
|
923
930
|
supportsStatelessFsMode: true
|
|
924
931
|
},
|
|
925
932
|
codex: {
|
|
926
|
-
supportsSessionFork:
|
|
933
|
+
supportsSessionFork: true,
|
|
927
934
|
supportsChildSpawn: true,
|
|
928
935
|
supportsSessionImport: false,
|
|
929
936
|
supportsStatelessFsMode: true
|
|
@@ -1206,7 +1213,7 @@ var SessionStatus = {
|
|
|
1206
1213
|
// Stop requested, waiting for task to stop
|
|
1207
1214
|
AWAITING_PERMISSION: "awaiting_permission",
|
|
1208
1215
|
AWAITING_INPUT: "awaiting_input",
|
|
1209
|
-
//
|
|
1216
|
+
// Legacy / pre-#1177: AskUserQuestion was disallowed at the SDK; new sessions never enter this state, kept for historical rows
|
|
1210
1217
|
TIMED_OUT: "timed_out",
|
|
1211
1218
|
// Permission/input request timed out, executor exited — user must re-prompt
|
|
1212
1219
|
COMPLETED: "completed",
|
|
@@ -1258,7 +1265,7 @@ var TaskStatus = {
|
|
|
1258
1265
|
// Stop requested, waiting for SDK to halt
|
|
1259
1266
|
AWAITING_PERMISSION: "awaiting_permission",
|
|
1260
1267
|
AWAITING_INPUT: "awaiting_input",
|
|
1261
|
-
//
|
|
1268
|
+
// Legacy / pre-#1177: AskUserQuestion was disallowed at the SDK; new tasks never enter this state, kept for historical rows
|
|
1262
1269
|
TIMED_OUT: "timed_out",
|
|
1263
1270
|
// Permission/input request timed out, executor exited — user must re-prompt
|
|
1264
1271
|
COMPLETED: "completed",
|
|
@@ -1389,6 +1396,7 @@ var getPersistedAgentConfig = getAssistantConfig;
|
|
|
1389
1396
|
SERVICE_TIER_RANK,
|
|
1390
1397
|
SESSION,
|
|
1391
1398
|
SessionStatus,
|
|
1399
|
+
TOOL_API_KEY_NAMES,
|
|
1392
1400
|
TaskStatus,
|
|
1393
1401
|
URL_SHORT_ID_LENGTH,
|
|
1394
1402
|
WEBSOCKET,
|