agor-live 0.16.2 → 0.16.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/agor-daemon.js +1 -1
- package/dist/cli/base-command.d.ts +1 -1
- package/dist/cli/base-command.js +8 -7
- package/dist/cli/commands/auth/login.js +2 -2
- package/dist/cli/commands/board/add-session.d.ts +1 -1
- package/dist/cli/commands/board/add-session.js +15 -17
- package/dist/cli/commands/board/clone.d.ts +1 -1
- package/dist/cli/commands/board/clone.js +8 -7
- package/dist/cli/commands/board/export.d.ts +1 -1
- package/dist/cli/commands/board/export.js +8 -7
- package/dist/cli/commands/board/import.d.ts +1 -1
- package/dist/cli/commands/board/import.js +8 -7
- package/dist/cli/commands/board/list.d.ts +1 -1
- package/dist/cli/commands/board/list.js +15 -13
- package/dist/cli/commands/daemon/logs.js +71 -6
- package/dist/cli/commands/daemon/restart.js +43 -6
- package/dist/cli/commands/daemon/start.d.ts +6 -0
- package/dist/cli/commands/daemon/start.js +208 -133
- package/dist/cli/commands/daemon/status.js +5 -2
- package/dist/cli/commands/daemon/stop.js +3 -0
- package/dist/cli/commands/init.js +1 -1
- package/dist/cli/commands/login.js +2 -2
- package/dist/cli/commands/mcp/add.d.ts +1 -1
- package/dist/cli/commands/mcp/add.js +8 -7
- package/dist/cli/commands/mcp/list.d.ts +1 -1
- package/dist/cli/commands/mcp/list.js +9 -9
- package/dist/cli/commands/mcp/remove.d.ts +1 -1
- package/dist/cli/commands/mcp/remove.js +9 -9
- package/dist/cli/commands/mcp/show.d.ts +1 -1
- package/dist/cli/commands/mcp/show.js +9 -9
- package/dist/cli/commands/open.js +2 -2
- package/dist/cli/commands/repo/add-local.d.ts +1 -1
- package/dist/cli/commands/repo/add-local.js +8 -7
- package/dist/cli/commands/repo/add.d.ts +1 -1
- package/dist/cli/commands/repo/add.js +9 -8
- package/dist/cli/commands/repo/list.d.ts +1 -1
- package/dist/cli/commands/repo/list.js +9 -9
- package/dist/cli/commands/repo/rm.d.ts +1 -1
- package/dist/cli/commands/repo/rm.js +9 -9
- package/dist/cli/commands/session/list.d.ts +1 -1
- package/dist/cli/commands/session/list.js +9 -10
- package/dist/cli/commands/session/load-claude.d.ts +1 -1
- package/dist/cli/commands/session/load-claude.js +10 -10
- package/dist/cli/commands/user/create.d.ts +1 -1
- package/dist/cli/commands/user/create.js +8 -7
- package/dist/cli/commands/user/delete.d.ts +1 -1
- package/dist/cli/commands/user/delete.js +9 -9
- package/dist/cli/commands/user/update.d.ts +1 -1
- package/dist/cli/commands/user/update.js +9 -9
- package/dist/cli/commands/worktree/add.d.ts +1 -1
- package/dist/cli/commands/worktree/add.js +9 -9
- package/dist/cli/commands/worktree/archive.d.ts +1 -1
- package/dist/cli/commands/worktree/archive.js +10 -10
- package/dist/cli/commands/worktree/cd.d.ts +1 -1
- package/dist/cli/commands/worktree/cd.js +8 -7
- package/dist/cli/commands/worktree/env/restart.d.ts +1 -1
- package/dist/cli/commands/worktree/env/restart.js +9 -8
- package/dist/cli/commands/worktree/env/start.d.ts +1 -1
- package/dist/cli/commands/worktree/env/start.js +9 -8
- package/dist/cli/commands/worktree/env/status.d.ts +1 -1
- package/dist/cli/commands/worktree/env/status.js +9 -8
- package/dist/cli/commands/worktree/env/stop.d.ts +1 -1
- package/dist/cli/commands/worktree/env/stop.js +9 -8
- package/dist/cli/commands/worktree/list.d.ts +1 -1
- package/dist/cli/commands/worktree/list.js +12 -15
- package/dist/cli/commands/worktree/rm.d.ts +1 -1
- package/dist/cli/commands/worktree/rm.js +10 -10
- package/dist/cli/commands/worktree/show.d.ts +1 -1
- package/dist/cli/commands/worktree/show.js +10 -10
- package/dist/cli/commands/worktree/unarchive.d.ts +1 -1
- package/dist/cli/commands/worktree/unarchive.js +10 -10
- package/dist/cli/commands/worktree/update.d.ts +1 -1
- package/dist/cli/commands/worktree/update.js +9 -8
- package/dist/cli/lib/context.d.ts +7 -1
- package/dist/cli/lib/context.js +13 -0
- package/dist/cli/lib/daemon-manager.d.ts +15 -2
- package/dist/cli/lib/daemon-manager.js +106 -7
- package/dist/cli/lib/daemon-manager.test.d.ts +2 -0
- package/dist/cli/lib/daemon-manager.test.js +17355 -0
- package/dist/cli/lib/help.js +2 -2
- package/dist/core/{agentic-tool-1L19ixPC.d.ts → agentic-tool-B6RT-ZX5.d.ts} +1 -1
- package/dist/core/{agentic-tool-3oiAj9Lg.d.cts → agentic-tool-Cs4nK-CC.d.cts} +1 -1
- package/dist/core/api/index.cjs +90 -4
- package/dist/core/api/index.d.cts +61 -18
- package/dist/core/api/index.d.ts +61 -18
- package/dist/core/api/index.js +88 -3
- package/dist/core/{artifact-B5MFR79G.d.ts → artifact-CIQzxjNP.d.ts} +2 -2
- package/dist/core/{artifact-Bi-1jifF.d.cts → artifact-DaHQPZVX.d.cts} +2 -2
- package/dist/core/{board-B9Xnux_i.d.ts → board-DG--dAS_.d.ts} +2 -2
- package/dist/core/{board-CPZGf5wF.d.cts → board-DogjFoWy.d.cts} +2 -2
- package/dist/core/{board-comment-BoDqwrnL.d.ts → board-comment-9ORrSlA1.d.ts} +1 -1
- package/dist/core/{board-comment-BQKnob6r.d.cts → board-comment-WzJC3SuF.d.cts} +1 -1
- package/dist/core/claude/index.cjs +9 -8
- package/dist/core/claude/index.d.cts +3 -3
- package/dist/core/claude/index.d.ts +3 -3
- package/dist/core/claude/index.js +9 -8
- package/dist/core/{client-HEOUNaCs.d.ts → client-NFCS0H8T.d.ts} +5 -5
- package/dist/core/{client-BC_18M7T.d.cts → client-XpghdMQL.d.cts} +5 -5
- package/dist/core/config/browser.d.cts +7 -7
- package/dist/core/config/browser.d.ts +7 -7
- package/dist/core/config/index.cjs +1 -0
- package/dist/core/config/index.d.cts +13 -13
- package/dist/core/config/index.d.ts +13 -13
- package/dist/core/config/index.js +1 -0
- package/dist/core/{config-manager-DK1LMXEc.d.cts → config-manager-BbMvB3Lz.d.cts} +1 -1
- package/dist/core/{config-manager-YrO9mG5j.d.ts → config-manager-etFWO6Wo.d.ts} +1 -1
- package/dist/core/{config-services-DrHSgUEm.d.ts → config-services-C848cfbD.d.ts} +4 -4
- package/dist/core/{config-services-CuhBWSs_.d.cts → config-services-CDhfaNpd.d.cts} +4 -4
- package/dist/core/db/index.cjs +13 -10
- package/dist/core/db/index.d.cts +16 -16
- package/dist/core/db/index.d.ts +16 -16
- package/dist/core/db/index.js +13 -10
- package/dist/core/db/session-guard.d.cts +8 -8
- package/dist/core/db/session-guard.d.ts +8 -8
- package/dist/core/environment/variable-resolver.d.cts +2 -2
- package/dist/core/environment/variable-resolver.d.ts +2 -2
- package/dist/core/{feathers-CzuSOZgY.d.ts → feathers--R3ml98e.d.cts} +12 -4
- package/dist/core/{feathers-CYAHFZ05.d.cts → feathers-C8PkF35p.d.ts} +12 -4
- package/dist/core/gateway/index.d.cts +5 -5
- package/dist/core/gateway/index.d.ts +5 -5
- package/dist/core/{gateway-Ci8LcUxK.d.ts → gateway-BYCTTJVJ.d.ts} +4 -4
- package/dist/core/{gateway-gHbaS6qt.d.cts → gateway-D5me_jjo.d.cts} +4 -4
- package/dist/core/git/index.d.cts +8 -8
- package/dist/core/git/index.d.ts +8 -8
- package/dist/core/{id-Cv3ntaTJ.d.cts → id-2oR2NdLp.d.cts} +17 -1
- package/dist/core/{id-Cv3ntaTJ.d.ts → id-2oR2NdLp.d.ts} +17 -1
- package/dist/core/index.cjs +95 -4
- package/dist/core/index.d.cts +19 -19
- package/dist/core/index.d.ts +19 -19
- package/dist/core/index.js +93 -4
- package/dist/core/mcp/index.d.cts +2 -2
- package/dist/core/mcp/index.d.ts +2 -2
- package/dist/core/{mcp-VhU-PMHo.d.ts → mcp-D7eTnVUO.d.ts} +1 -1
- package/dist/core/{mcp-CtC1DFEm.d.cts → mcp-DUrvGUDS.d.cts} +1 -1
- package/dist/core/{message-CbD99EwO.d.cts → message-BbDSJvyl.d.cts} +1 -1
- package/dist/core/{message-Cwhx2ItQ.d.ts → message-C4Bb-L6c.d.ts} +1 -1
- package/dist/core/permissions/index.d.cts +2 -2
- package/dist/core/permissions/index.d.ts +2 -2
- package/dist/core/{repo-j12tCmyK.d.ts → repo-DaP4omZL.d.ts} +1 -1
- package/dist/core/{repo-CcvhnJDf.d.cts → repo-zg1xnWQQ.d.cts} +1 -1
- package/dist/core/seed/index.cjs +13 -10
- package/dist/core/seed/index.d.cts +1 -1
- package/dist/core/seed/index.d.ts +1 -1
- package/dist/core/seed/index.js +13 -10
- package/dist/core/{session-DEU5FS0N.d.cts → session-C7mvs-rD.d.cts} +2 -2
- package/dist/core/{session-Bw8_FN2l.d.ts → session-elEYFVev.d.ts} +2 -2
- package/dist/core/{session-guard-CJ7sfOF1.d.ts → session-guard-D7hUa4D2.d.ts} +3 -3
- package/dist/core/{session-guard-BjHxMpvV.d.cts → session-guard-DOQgVFL6.d.cts} +3 -3
- package/dist/core/{task-CKHC1gPj.d.ts → task-C8SPRSHg.d.ts} +8 -1
- package/dist/core/{task-DCPYEXlG.d.cts → task-DJMxZTv4.d.cts} +8 -1
- package/dist/core/templates/session-context.d.cts +5 -5
- package/dist/core/templates/session-context.d.ts +5 -5
- package/dist/core/tools/mcp/jwt-auth.d.cts +2 -2
- package/dist/core/tools/mcp/jwt-auth.d.ts +2 -2
- package/dist/core/types/index.cjs +7 -0
- package/dist/core/types/index.d.cts +16 -16
- package/dist/core/types/index.d.ts +16 -16
- package/dist/core/types/index.js +6 -0
- package/dist/core/{types-BE6DTpRe.d.cts → types-BQRGoDkg.d.cts} +1 -1
- package/dist/core/{types-BvYoeNhO.d.ts → types-CvXKxTNP.d.ts} +1 -1
- package/dist/core/unix/index.cjs +5 -2
- package/dist/core/unix/index.d.cts +8 -8
- package/dist/core/unix/index.d.ts +8 -8
- package/dist/core/unix/index.js +5 -2
- package/dist/core/{user-pO3lB_da.d.ts → user-C9UDwwtA.d.ts} +3 -3
- package/dist/core/{user-BpKIlt04.d.cts → user-wScngdUE.d.cts} +3 -3
- package/dist/core/utils/board-placement.d.cts +3 -3
- package/dist/core/utils/board-placement.d.ts +3 -3
- package/dist/core/utils/permission-mode-mapper.d.cts +3 -3
- package/dist/core/utils/permission-mode-mapper.d.ts +3 -3
- package/dist/core/utils/url.cjs +8 -2
- package/dist/core/utils/url.d.cts +1 -1
- package/dist/core/utils/url.d.ts +1 -1
- package/dist/core/utils/url.js +8 -2
- package/dist/daemon/index.d.ts +34 -1
- package/dist/daemon/index.js +36 -13
- package/dist/daemon/main.d.ts +2 -0
- package/dist/daemon/main.js +32581 -0
- package/dist/daemon/register-routes.js +15 -0
- package/dist/daemon/register-services.js +4 -1
- package/dist/daemon/startup.d.ts +2 -0
- package/dist/daemon/startup.js +8 -4
- package/dist/executor/db/feathers-repositories.d.ts +1 -0
- package/dist/executor/db/feathers-repositories.d.ts.map +1 -1
- package/dist/executor/db/feathers-repositories.js +1 -0
- package/dist/executor/handlers/sdk/base-executor.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/base-executor.js +33 -21
- package/dist/executor/handlers/sdk/claude.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/claude.js +1 -1
- package/dist/executor/handlers/sdk/codex.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/codex.js +1 -1
- package/dist/executor/sdk-handlers/base/diff-enrichment.d.ts +20 -1
- package/dist/executor/sdk-handlers/base/diff-enrichment.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/base/diff-enrichment.js +264 -26
- package/dist/executor/sdk-handlers/claude/claude-tool.d.ts +9 -1
- package/dist/executor/sdk-handlers/claude/claude-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/claude-tool.js +17 -7
- package/dist/executor/sdk-handlers/codex/codex-tool.d.ts +19 -7
- package/dist/executor/sdk-handlers/codex/codex-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/codex/codex-tool.js +166 -38
- package/dist/executor/sdk-handlers/codex/context-window-fallback.d.ts +12 -0
- package/dist/executor/sdk-handlers/codex/context-window-fallback.d.ts.map +1 -0
- package/dist/executor/sdk-handlers/codex/context-window-fallback.js +72 -0
- package/dist/executor/sdk-handlers/codex/prompt-service.d.ts +12 -1
- package/dist/executor/sdk-handlers/codex/prompt-service.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/codex/prompt-service.js +124 -18
- package/dist/executor/sdk-handlers/codex/usage.d.ts +35 -0
- package/dist/executor/sdk-handlers/codex/usage.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/codex/usage.js +90 -0
- package/dist/ui/assets/{_basePickBy-By_woBZB.js → _basePickBy-CQZh_v13.js} +1 -1
- package/dist/ui/assets/_basePickBy-CQZh_v13.js.gz +0 -0
- package/dist/ui/assets/{_baseUniq-C2jLj-Al.js → _baseUniq-Cgf5LtCM.js} +1 -1
- package/dist/ui/assets/_baseUniq-Cgf5LtCM.js.gz +0 -0
- package/dist/ui/assets/{arc-DADMFVbt.js → arc-DnTl2a4f.js} +1 -1
- package/dist/ui/assets/arc-DnTl2a4f.js.gz +0 -0
- package/dist/ui/assets/{architectureDiagram-VXUJARFQ-rNJ5lYJQ.js → architectureDiagram-VXUJARFQ-DZHKQxRL.js} +1 -1
- package/dist/ui/assets/{architectureDiagram-VXUJARFQ-rNJ5lYJQ.js.gz → architectureDiagram-VXUJARFQ-DZHKQxRL.js.gz} +0 -0
- package/dist/ui/assets/{base-80a1f760-BVsv_T1S.js → base-80a1f760-pDLzaKJY.js} +1 -1
- package/dist/ui/assets/{blockDiagram-VD42YOAC-CezN66iB.js → blockDiagram-VD42YOAC-BAOUMLja.js} +1 -1
- package/dist/ui/assets/blockDiagram-VD42YOAC-BAOUMLja.js.gz +0 -0
- package/dist/ui/assets/{c4Diagram-YG6GDRKO-Dze59YuK.js → c4Diagram-YG6GDRKO-C0xcWHxz.js} +1 -1
- package/dist/ui/assets/c4Diagram-YG6GDRKO-C0xcWHxz.js.gz +0 -0
- package/dist/ui/assets/channel-DpHH4gqH.js +1 -0
- package/dist/ui/assets/{chunk-4BX2VUAB-CXL-V_XA.js → chunk-4BX2VUAB-DCYNUaJZ.js} +1 -1
- package/dist/ui/assets/{chunk-55IACEB6-CI3h0xTl.js → chunk-55IACEB6-DU3b1X7p.js} +1 -1
- package/dist/ui/assets/{chunk-B4BG7PRW-CFohiEqO.js → chunk-B4BG7PRW-BJlNsfTo.js} +1 -1
- package/dist/ui/assets/chunk-B4BG7PRW-BJlNsfTo.js.gz +0 -0
- package/dist/ui/assets/{chunk-DI55MBZ5-BbF4fGKj.js → chunk-DI55MBZ5-CKQY-IiF.js} +1 -1
- package/dist/ui/assets/chunk-DI55MBZ5-CKQY-IiF.js.gz +0 -0
- package/dist/ui/assets/{chunk-FMBD7UC4-C5x6cpDg.js → chunk-FMBD7UC4-DmjQ-Dzu.js} +1 -1
- package/dist/ui/assets/{chunk-QN33PNHL-CEDiC29y.js → chunk-QN33PNHL-Bps50N51.js} +1 -1
- package/dist/ui/assets/{chunk-QZHKN3VN-DPo28cCF.js → chunk-QZHKN3VN-CNDKr6Xh.js} +1 -1
- package/dist/ui/assets/{chunk-TZMSLE5B-C94jSlIG.js → chunk-TZMSLE5B-R2Vz5IHZ.js} +1 -1
- package/dist/ui/assets/chunk-TZMSLE5B-R2Vz5IHZ.js.gz +0 -0
- package/dist/ui/assets/classDiagram-2ON5EDUG-CbDCU4XU.js +1 -0
- package/dist/ui/assets/classDiagram-v2-WZHVMYZB-CbDCU4XU.js +1 -0
- package/dist/ui/assets/clone-DSMLFNzW.js +1 -0
- package/dist/ui/assets/{consoleHook-59e792cb-cpS6JVM4.js → consoleHook-59e792cb-MfGBgEJx.js} +1 -1
- package/dist/ui/assets/consoleHook-59e792cb-MfGBgEJx.js.gz +0 -0
- package/dist/ui/assets/{cose-bilkent-S5V4N54A-CcoEg_Ct.js → cose-bilkent-S5V4N54A-Bkbv_h_w.js} +1 -1
- package/dist/ui/assets/cose-bilkent-S5V4N54A-Bkbv_h_w.js.gz +0 -0
- package/dist/ui/assets/{dagre-6UL2VRFP-DWAyqs2B.js → dagre-6UL2VRFP-DUoxEnB9.js} +1 -1
- package/dist/ui/assets/dagre-6UL2VRFP-DUoxEnB9.js.gz +0 -0
- package/dist/ui/assets/{diagram-PSM6KHXK-C7J2MNfc.js → diagram-PSM6KHXK-BUdRu7ma.js} +1 -1
- package/dist/ui/assets/diagram-PSM6KHXK-BUdRu7ma.js.gz +0 -0
- package/dist/ui/assets/{diagram-QEK2KX5R-6KZjqziN.js → diagram-QEK2KX5R-DEoZ3bpF.js} +1 -1
- package/dist/ui/assets/diagram-QEK2KX5R-DEoZ3bpF.js.gz +0 -0
- package/dist/ui/assets/{diagram-S2PKOQOG-DIL01325.js → diagram-S2PKOQOG-CxM9wSuL.js} +1 -1
- package/dist/ui/assets/diagram-S2PKOQOG-CxM9wSuL.js.gz +0 -0
- package/dist/ui/assets/{erDiagram-Q2GNP2WA-D5j4CetG.js → erDiagram-Q2GNP2WA-D5VuZpBE.js} +1 -1
- package/dist/ui/assets/erDiagram-Q2GNP2WA-D5VuZpBE.js.gz +0 -0
- package/dist/ui/assets/{flowDiagram-NV44I4VS-Bxx2iEi-.js → flowDiagram-NV44I4VS-uuzmVpS4.js} +1 -1
- package/dist/ui/assets/flowDiagram-NV44I4VS-uuzmVpS4.js.gz +0 -0
- package/dist/ui/assets/{ganttDiagram-LVOFAZNH-BtBi1ZfT.js → ganttDiagram-LVOFAZNH-7spsgOUT.js} +1 -1
- package/dist/ui/assets/ganttDiagram-LVOFAZNH-7spsgOUT.js.gz +0 -0
- package/dist/ui/assets/{gitGraphDiagram-NY62KEGX-CY1TKvzA.js → gitGraphDiagram-NY62KEGX-DJDE3D90.js} +1 -1
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-DJDE3D90.js.gz +0 -0
- package/dist/ui/assets/{graph-DC6eH7AX.js → graph-BmWYHUOg.js} +1 -1
- package/dist/ui/assets/graph-BmWYHUOg.js.gz +0 -0
- package/dist/ui/assets/{index-599aeaf7-Dh_oObwY.js → index-599aeaf7-C76CG5K3.js} +1 -1
- package/dist/ui/assets/index-599aeaf7-C76CG5K3.js.gz +0 -0
- package/dist/ui/assets/index-B0lOKf7g.js +4 -0
- package/dist/ui/assets/index-B0lOKf7g.js.gz +0 -0
- package/dist/ui/assets/{index-DJLnZ-9H.js → index-CMrDOI5G.js} +294 -298
- package/dist/ui/assets/index-CMrDOI5G.js.gz +0 -0
- package/dist/ui/assets/{index-DQn7RJ8z.js → index-CuMJFr7K.js} +1 -1
- package/dist/ui/assets/index-CuMJFr7K.js.gz +0 -0
- package/dist/ui/assets/{index-CxWOjjRu.js → index-fQo-B6L6.js} +1 -1
- package/dist/ui/assets/index-fQo-B6L6.js.gz +0 -0
- package/dist/ui/assets/{infoDiagram-ER5ION4S-COpJ37pc.js → infoDiagram-ER5ION4S--dZLWvYP.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-XKPGCS4Q-CpODBkng.js → journeyDiagram-XKPGCS4Q-C-Mzd3Ky.js} +1 -1
- package/dist/ui/assets/journeyDiagram-XKPGCS4Q-C-Mzd3Ky.js.gz +0 -0
- package/dist/ui/assets/{kanban-definition-3W4ZIXB7-DWShJ5Su.js → kanban-definition-3W4ZIXB7-DoDzQCSc.js} +1 -1
- package/dist/ui/assets/kanban-definition-3W4ZIXB7-DoDzQCSc.js.gz +0 -0
- package/dist/ui/assets/{layout-ttMTfXMb.js → layout-BmSvKYXZ.js} +1 -1
- package/dist/ui/assets/layout-BmSvKYXZ.js.gz +0 -0
- package/dist/ui/assets/{linear-DD8VTncp.js → linear-BnPF1K20.js} +1 -1
- package/dist/ui/assets/linear-BnPF1K20.js.gz +0 -0
- package/dist/ui/assets/{mermaid.core-BlvxruUX.js → mermaid.core-Suk7MkfT.js} +5 -5
- package/dist/ui/assets/mermaid.core-Suk7MkfT.js.gz +0 -0
- package/dist/ui/assets/{mindmap-definition-VGOIOE7T-CR0ESdqM.js → mindmap-definition-VGOIOE7T-Bj9HZQA9.js} +1 -1
- package/dist/ui/assets/mindmap-definition-VGOIOE7T-Bj9HZQA9.js.gz +0 -0
- package/dist/ui/assets/{pieDiagram-ADFJNKIX-B94eVYhY.js → pieDiagram-ADFJNKIX-BIcJ5ee8.js} +1 -1
- package/dist/ui/assets/pieDiagram-ADFJNKIX-BIcJ5ee8.js.gz +0 -0
- package/dist/ui/assets/{quadrantDiagram-AYHSOK5B-C4tNKfCm.js → quadrantDiagram-AYHSOK5B-CJm5QQ8N.js} +1 -1
- package/dist/ui/assets/quadrantDiagram-AYHSOK5B-CJm5QQ8N.js.gz +0 -0
- package/dist/ui/assets/{requirementDiagram-UZGBJVZJ-CuG3A95Q.js → requirementDiagram-UZGBJVZJ-Bg6r943V.js} +1 -1
- package/dist/ui/assets/requirementDiagram-UZGBJVZJ-Bg6r943V.js.gz +0 -0
- package/dist/ui/assets/{sankeyDiagram-TZEHDZUN-BCfc7mLC.js → sankeyDiagram-TZEHDZUN-C2XnZZZp.js} +1 -1
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-C2XnZZZp.js.gz +0 -0
- package/dist/ui/assets/{sequenceDiagram-WL72ISMW-D8tVuIkx.js → sequenceDiagram-WL72ISMW-DOg-bBN1.js} +1 -1
- package/dist/ui/assets/sequenceDiagram-WL72ISMW-DOg-bBN1.js.gz +0 -0
- package/dist/ui/assets/{stateDiagram-FKZM4ZOC-DvM8so2A.js → stateDiagram-FKZM4ZOC-DgZgPM-o.js} +1 -1
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-DgZgPM-o.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-C_0TAQGU.js +1 -0
- package/dist/ui/assets/{timeline-definition-IT6M3QCI-CP2O8vqw.js → timeline-definition-IT6M3QCI-CmkWt6nL.js} +1 -1
- package/dist/ui/assets/timeline-definition-IT6M3QCI-CmkWt6nL.js.gz +0 -0
- package/dist/ui/assets/{treemap-KMMF4GRG-SGJAEegj.js → treemap-KMMF4GRG-CV8wwXTM.js} +1 -1
- package/dist/ui/assets/treemap-KMMF4GRG-CV8wwXTM.js.gz +0 -0
- package/dist/ui/assets/{xychartDiagram-PRI3JC2R-CpwYBSmP.js → xychartDiagram-PRI3JC2R-CvuPvlyn.js} +1 -1
- package/dist/ui/assets/xychartDiagram-PRI3JC2R-CvuPvlyn.js.gz +0 -0
- package/dist/ui/index.html +1 -1
- package/package.json +2 -1
- package/dist/ui/assets/_basePickBy-By_woBZB.js.gz +0 -0
- package/dist/ui/assets/_baseUniq-C2jLj-Al.js.gz +0 -0
- package/dist/ui/assets/arc-DADMFVbt.js.gz +0 -0
- package/dist/ui/assets/blockDiagram-VD42YOAC-CezN66iB.js.gz +0 -0
- package/dist/ui/assets/c4Diagram-YG6GDRKO-Dze59YuK.js.gz +0 -0
- package/dist/ui/assets/channel-B2nSdT47.js +0 -1
- package/dist/ui/assets/chunk-B4BG7PRW-CFohiEqO.js.gz +0 -0
- package/dist/ui/assets/chunk-DI55MBZ5-BbF4fGKj.js.gz +0 -0
- package/dist/ui/assets/chunk-TZMSLE5B-C94jSlIG.js.gz +0 -0
- package/dist/ui/assets/classDiagram-2ON5EDUG-lwQJA5v0.js +0 -1
- package/dist/ui/assets/classDiagram-v2-WZHVMYZB-lwQJA5v0.js +0 -1
- package/dist/ui/assets/clone-DmZ98vg9.js +0 -1
- package/dist/ui/assets/consoleHook-59e792cb-cpS6JVM4.js.gz +0 -0
- package/dist/ui/assets/cose-bilkent-S5V4N54A-CcoEg_Ct.js.gz +0 -0
- package/dist/ui/assets/dagre-6UL2VRFP-DWAyqs2B.js.gz +0 -0
- package/dist/ui/assets/diagram-PSM6KHXK-C7J2MNfc.js.gz +0 -0
- package/dist/ui/assets/diagram-QEK2KX5R-6KZjqziN.js.gz +0 -0
- package/dist/ui/assets/diagram-S2PKOQOG-DIL01325.js.gz +0 -0
- package/dist/ui/assets/erDiagram-Q2GNP2WA-D5j4CetG.js.gz +0 -0
- package/dist/ui/assets/flowDiagram-NV44I4VS-Bxx2iEi-.js.gz +0 -0
- package/dist/ui/assets/ganttDiagram-LVOFAZNH-BtBi1ZfT.js.gz +0 -0
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-CY1TKvzA.js.gz +0 -0
- package/dist/ui/assets/graph-DC6eH7AX.js.gz +0 -0
- package/dist/ui/assets/index-599aeaf7-Dh_oObwY.js.gz +0 -0
- package/dist/ui/assets/index-CxWOjjRu.js.gz +0 -0
- package/dist/ui/assets/index-DJLnZ-9H.js.gz +0 -0
- package/dist/ui/assets/index-DQn7RJ8z.js.gz +0 -0
- package/dist/ui/assets/journeyDiagram-XKPGCS4Q-CpODBkng.js.gz +0 -0
- package/dist/ui/assets/kanban-definition-3W4ZIXB7-DWShJ5Su.js.gz +0 -0
- package/dist/ui/assets/layout-ttMTfXMb.js.gz +0 -0
- package/dist/ui/assets/linear-DD8VTncp.js.gz +0 -0
- package/dist/ui/assets/mermaid.core-BlvxruUX.js.gz +0 -0
- package/dist/ui/assets/mindmap-definition-VGOIOE7T-CR0ESdqM.js.gz +0 -0
- package/dist/ui/assets/pieDiagram-ADFJNKIX-B94eVYhY.js.gz +0 -0
- package/dist/ui/assets/quadrantDiagram-AYHSOK5B-C4tNKfCm.js.gz +0 -0
- package/dist/ui/assets/requirementDiagram-UZGBJVZJ-CuG3A95Q.js.gz +0 -0
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-BCfc7mLC.js.gz +0 -0
- package/dist/ui/assets/sequenceDiagram-WL72ISMW-D8tVuIkx.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-DvM8so2A.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-kQ-gZX7K.js +0 -1
- package/dist/ui/assets/timeline-definition-IT6M3QCI-CP2O8vqw.js.gz +0 -0
- package/dist/ui/assets/treemap-KMMF4GRG-SGJAEegj.js.gz +0 -0
- package/dist/ui/assets/xychartDiagram-PRI3JC2R-CpwYBSmP.js.gz +0 -0
package/dist/cli/lib/help.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/lib/help.ts
|
|
2
|
-
import { isDaemonRunning } from "@agor/
|
|
3
|
-
import { getDaemonUrl } from "@agor/
|
|
2
|
+
import { isDaemonRunning } from "@agor-live/client";
|
|
3
|
+
import { getDaemonUrl } from "@agor-live/client/config";
|
|
4
4
|
import { Help } from "@oclif/core";
|
|
5
5
|
import chalk2 from "chalk";
|
|
6
6
|
|
package/dist/core/api/index.cjs
CHANGED
|
@@ -34,7 +34,8 @@ __export(api_exports, {
|
|
|
34
34
|
createClient: () => createClient,
|
|
35
35
|
createRestClient: () => createRestClient,
|
|
36
36
|
getApiKeyFromEnv: () => getApiKeyFromEnv,
|
|
37
|
-
isDaemonRunning: () => isDaemonRunning
|
|
37
|
+
isDaemonRunning: () => isDaemonRunning,
|
|
38
|
+
normalizeFindResult: () => normalizeFindResult
|
|
38
39
|
});
|
|
39
40
|
module.exports = __toCommonJS(api_exports);
|
|
40
41
|
var import_authentication_client = __toESM(require("@feathersjs/authentication-client"), 1);
|
|
@@ -58,6 +59,9 @@ var DAEMON = {
|
|
|
58
59
|
var import_authentication_client2 = __toESM(require("@feathersjs/authentication-client"), 1);
|
|
59
60
|
var DEFAULT_DAEMON_URL = `http://${DAEMON.DEFAULT_HOST}:${DAEMON.DEFAULT_PORT}`;
|
|
60
61
|
var BOARDS_SERVICE_EXTENDED = Symbol("agor.boardsServiceExtended");
|
|
62
|
+
var SERVICE_FIND_ALL_EXTENDED = Symbol("agor.serviceFindAllExtended");
|
|
63
|
+
var CLIENT_SERVICE_FACTORY_EXTENDED = Symbol("agor.clientServiceFactoryExtended");
|
|
64
|
+
var CLIENT_SESSIONS_HELPERS_EXTENDED = Symbol("agor.clientSessionsHelpersExtended");
|
|
61
65
|
function extendBoardsService(client) {
|
|
62
66
|
const boardsService = client.service("boards");
|
|
63
67
|
if (boardsService[BOARDS_SERVICE_EXTENDED]) {
|
|
@@ -116,6 +120,82 @@ function extendBoardsService(client) {
|
|
|
116
120
|
}
|
|
117
121
|
boardsService[BOARDS_SERVICE_EXTENDED] = true;
|
|
118
122
|
}
|
|
123
|
+
function normalizeFindResult(result) {
|
|
124
|
+
return Array.isArray(result) ? result : result.data;
|
|
125
|
+
}
|
|
126
|
+
function isPaginatedResult(result) {
|
|
127
|
+
return !Array.isArray(result) && typeof result === "object" && result !== null && Array.isArray(result.data);
|
|
128
|
+
}
|
|
129
|
+
function extendFindAllOnService(service) {
|
|
130
|
+
const findAllService = service;
|
|
131
|
+
if (findAllService[SERVICE_FIND_ALL_EXTENDED]) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
findAllService.findAll = async (params) => {
|
|
135
|
+
const firstResult = await service.find(params);
|
|
136
|
+
if (!isPaginatedResult(firstResult)) {
|
|
137
|
+
return firstResult;
|
|
138
|
+
}
|
|
139
|
+
const allData = [...firstResult.data];
|
|
140
|
+
let total = firstResult.total;
|
|
141
|
+
let nextSkip = firstResult.skip + firstResult.data.length;
|
|
142
|
+
const pageLimit = typeof firstResult.limit === "number" && firstResult.limit > 0 ? firstResult.limit : firstResult.data.length;
|
|
143
|
+
if (!Number.isFinite(total) || pageLimit <= 0) {
|
|
144
|
+
return allData;
|
|
145
|
+
}
|
|
146
|
+
const baseQuery = params?.query && typeof params.query === "object" ? { ...params.query } : void 0;
|
|
147
|
+
while (allData.length < total) {
|
|
148
|
+
const nextParams = {
|
|
149
|
+
...params ?? {},
|
|
150
|
+
query: {
|
|
151
|
+
...baseQuery ?? {},
|
|
152
|
+
$skip: nextSkip,
|
|
153
|
+
$limit: pageLimit
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
const nextResult = await service.find(nextParams);
|
|
157
|
+
if (!isPaginatedResult(nextResult)) {
|
|
158
|
+
allData.push(...nextResult);
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
if (nextResult.data.length === 0) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
allData.push(...nextResult.data);
|
|
165
|
+
nextSkip = nextResult.skip + nextResult.data.length;
|
|
166
|
+
total = nextResult.total;
|
|
167
|
+
}
|
|
168
|
+
return allData;
|
|
169
|
+
};
|
|
170
|
+
findAllService[SERVICE_FIND_ALL_EXTENDED] = true;
|
|
171
|
+
}
|
|
172
|
+
function extendServiceFactory(client) {
|
|
173
|
+
const augmentedClient = client;
|
|
174
|
+
if (augmentedClient[CLIENT_SERVICE_FACTORY_EXTENDED]) {
|
|
175
|
+
return;
|
|
176
|
+
}
|
|
177
|
+
const rawService = client.service.bind(client);
|
|
178
|
+
augmentedClient.service = ((path) => {
|
|
179
|
+
const service = rawService(path);
|
|
180
|
+
extendFindAllOnService(service);
|
|
181
|
+
return service;
|
|
182
|
+
});
|
|
183
|
+
augmentedClient[CLIENT_SERVICE_FACTORY_EXTENDED] = true;
|
|
184
|
+
}
|
|
185
|
+
function extendSessionsHelpers(client) {
|
|
186
|
+
const augmentedClient = client;
|
|
187
|
+
if (augmentedClient[CLIENT_SESSIONS_HELPERS_EXTENDED]) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
client.sessions = {
|
|
191
|
+
prompt: async (sessionId, prompt, options) => {
|
|
192
|
+
const { params, ...requestOptions } = options ?? {};
|
|
193
|
+
const response = await client.service(`sessions/${sessionId}/prompt`).create({ prompt, ...requestOptions }, params);
|
|
194
|
+
return response;
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
augmentedClient[CLIENT_SESSIONS_HELPERS_EXTENDED] = true;
|
|
198
|
+
}
|
|
119
199
|
function getApiKeyFromEnv() {
|
|
120
200
|
const key = typeof process !== "undefined" ? process.env?.AGOR_API_KEY : null;
|
|
121
201
|
if (key?.startsWith("agor_sk_")) {
|
|
@@ -125,12 +205,13 @@ function getApiKeyFromEnv() {
|
|
|
125
205
|
}
|
|
126
206
|
async function createRestClient(url = DEFAULT_DAEMON_URL, apiKey) {
|
|
127
207
|
const client = (0, import_feathers.feathers)();
|
|
208
|
+
const fetchImpl = globalThis.fetch.bind(globalThis);
|
|
128
209
|
const { default: rest } = await import("@feathersjs/rest-client");
|
|
129
210
|
const fetchFn = apiKey ? (input, init) => {
|
|
130
211
|
const headers = new Headers(init?.headers);
|
|
131
212
|
headers.set("Authorization", `Bearer ${apiKey}`);
|
|
132
|
-
return
|
|
133
|
-
} :
|
|
213
|
+
return fetchImpl(input, { ...init, headers });
|
|
214
|
+
} : fetchImpl;
|
|
134
215
|
client.configure(rest(url).fetch(fetchFn));
|
|
135
216
|
client.configure((0, import_authentication_client.default)({ storage: void 0 }));
|
|
136
217
|
client.io = {
|
|
@@ -140,7 +221,9 @@ async function createRestClient(url = DEFAULT_DAEMON_URL, apiKey) {
|
|
|
140
221
|
},
|
|
141
222
|
io: { opts: {} }
|
|
142
223
|
};
|
|
224
|
+
extendServiceFactory(client);
|
|
143
225
|
extendBoardsService(client);
|
|
226
|
+
extendSessionsHelpers(client);
|
|
144
227
|
return client;
|
|
145
228
|
}
|
|
146
229
|
function createClient(url = DEFAULT_DAEMON_URL, autoConnect = true, options) {
|
|
@@ -188,7 +271,9 @@ function createClient(url = DEFAULT_DAEMON_URL, autoConnect = true, options) {
|
|
|
188
271
|
const storage = typeof globalThis !== "undefined" && "localStorage" in globalThis ? globalThis.localStorage : void 0;
|
|
189
272
|
client.configure((0, import_authentication_client.default)({ storage }));
|
|
190
273
|
client.io = socket;
|
|
274
|
+
extendServiceFactory(client);
|
|
191
275
|
extendBoardsService(client);
|
|
276
|
+
extendSessionsHelpers(client);
|
|
192
277
|
return client;
|
|
193
278
|
}
|
|
194
279
|
async function isDaemonRunning(url = DEFAULT_DAEMON_URL) {
|
|
@@ -205,5 +290,6 @@ async function isDaemonRunning(url = DEFAULT_DAEMON_URL) {
|
|
|
205
290
|
createClient,
|
|
206
291
|
createRestClient,
|
|
207
292
|
getApiKeyFromEnv,
|
|
208
|
-
isDaemonRunning
|
|
293
|
+
isDaemonRunning,
|
|
294
|
+
normalizeFindResult
|
|
209
295
|
});
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { i as Message } from '../message-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { i as Message } from '../message-BbDSJvyl.cjs';
|
|
2
|
+
import { U as UUID } from '../id-2oR2NdLp.cjs';
|
|
3
|
+
import { a as Artifact } from '../artifact-DaHQPZVX.cjs';
|
|
4
|
+
import { h as Board, m as CardWithType, k as CardType, i as BoardExportBlob } from '../board-DogjFoWy.cjs';
|
|
5
|
+
import { b as Repo, d as Worktree } from '../repo-zg1xnWQQ.cjs';
|
|
6
|
+
import { P as PermissionMode, a as Session } from '../session-C7mvs-rD.cjs';
|
|
7
|
+
import { d as User } from '../user-wScngdUE.cjs';
|
|
7
8
|
import { a as ContextFileListItem, b as ContextFileDetail } from '../context-ByxGjp5l.cjs';
|
|
8
|
-
import { b as AuthenticationResult } from '../feathers
|
|
9
|
-
import { i as MCPServer } from '../mcp-
|
|
10
|
-
import { c as Task } from '../task-
|
|
11
|
-
import {
|
|
9
|
+
import { b as AuthenticationResult } from '../feathers--R3ml98e.cjs';
|
|
10
|
+
import { i as MCPServer } from '../mcp-DUrvGUDS.cjs';
|
|
11
|
+
import { c as Task } from '../task-DJMxZTv4.cjs';
|
|
12
|
+
import { Paginated, Params, Application } from '@feathersjs/feathers';
|
|
12
13
|
import { Socket } from 'socket.io-client';
|
|
13
14
|
export { default as authenticationClient } from '@feathersjs/authentication-client';
|
|
14
|
-
import '../
|
|
15
|
-
import '../agentic-tool-3oiAj9Lg.cjs';
|
|
15
|
+
import '../agentic-tool-Cs4nK-CC.cjs';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Feathers Client for Agor
|
|
@@ -20,6 +20,46 @@ import '../agentic-tool-3oiAj9Lg.cjs';
|
|
|
20
20
|
* Shared client library for connecting to agor-daemon from CLI and UI
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Client-side input type helper:
|
|
25
|
+
* keeps strongly typed output models branded, while accepting plain strings
|
|
26
|
+
* for branded UUID fields in create/update/patch payloads.
|
|
27
|
+
*/
|
|
28
|
+
type ClientInput<T> = T extends UUID ? string : T extends string & {
|
|
29
|
+
readonly __brand: string;
|
|
30
|
+
} ? string : T extends readonly (infer U)[] ? ClientInput<U>[] : T extends (...args: unknown[]) => unknown ? T : T extends object ? {
|
|
31
|
+
[K in keyof T]: ClientInput<T[K]>;
|
|
32
|
+
} : T;
|
|
33
|
+
type CreatePayload<T> = Partial<ClientInput<T>>;
|
|
34
|
+
type UpdatePayload<T> = ClientInput<T>;
|
|
35
|
+
type PatchPayload<T> = Partial<ClientInput<T>> | null;
|
|
36
|
+
type FindResult<T> = Paginated<T> | T[];
|
|
37
|
+
interface SessionPromptRequest {
|
|
38
|
+
prompt: string;
|
|
39
|
+
permissionMode?: PermissionMode;
|
|
40
|
+
stream?: boolean;
|
|
41
|
+
messageSource?: 'gateway' | 'agor';
|
|
42
|
+
}
|
|
43
|
+
interface QueuedSessionPromptResult {
|
|
44
|
+
success: true;
|
|
45
|
+
queued: true;
|
|
46
|
+
message: Message;
|
|
47
|
+
queue_position: number;
|
|
48
|
+
}
|
|
49
|
+
interface RunningSessionPromptResult {
|
|
50
|
+
success: true;
|
|
51
|
+
taskId: string;
|
|
52
|
+
status: string;
|
|
53
|
+
streaming: boolean;
|
|
54
|
+
queued?: false;
|
|
55
|
+
}
|
|
56
|
+
type SessionPromptResult = QueuedSessionPromptResult | RunningSessionPromptResult;
|
|
57
|
+
interface SessionPromptOptions extends Omit<SessionPromptRequest, 'prompt'> {
|
|
58
|
+
params?: Params;
|
|
59
|
+
}
|
|
60
|
+
interface SessionsClientHelpers {
|
|
61
|
+
prompt(sessionId: string, prompt: string, options?: SessionPromptOptions): Promise<SessionPromptResult>;
|
|
62
|
+
}
|
|
23
63
|
/**
|
|
24
64
|
* Service interfaces for type safety
|
|
25
65
|
*/
|
|
@@ -40,12 +80,13 @@ interface ServiceTypes {
|
|
|
40
80
|
/**
|
|
41
81
|
* Feathers service with find method properly typed and event emitter methods
|
|
42
82
|
*/
|
|
43
|
-
interface AgorService<T
|
|
44
|
-
find(params?: Params): Promise<
|
|
83
|
+
interface AgorService<T, TCreate = CreatePayload<T>, TUpdate = UpdatePayload<T>, TPatch = PatchPayload<T>> {
|
|
84
|
+
find(params?: Params): Promise<FindResult<T>>;
|
|
85
|
+
findAll(params?: Params): Promise<T[]>;
|
|
45
86
|
get(id: string, params?: Params): Promise<T>;
|
|
46
|
-
create(data:
|
|
47
|
-
update(id: string, data:
|
|
48
|
-
patch(id: string | null, data:
|
|
87
|
+
create(data: TCreate, params?: Params): Promise<T>;
|
|
88
|
+
update(id: string, data: TUpdate, params?: Params): Promise<T>;
|
|
89
|
+
patch(id: string | null, data: TPatch, params?: Params): Promise<T>;
|
|
49
90
|
remove(id: string, params?: Params): Promise<T>;
|
|
50
91
|
on(event: 'created' | 'updated' | 'patched' | 'removed', handler: (data: T) => void): void;
|
|
51
92
|
on(event: string, handler: (...args: any[]) => void): void;
|
|
@@ -251,6 +292,7 @@ interface WorktreesService extends AgorService<Worktree> {
|
|
|
251
292
|
*/
|
|
252
293
|
interface AgorClient extends Omit<Application<ServiceTypes>, 'service'> {
|
|
253
294
|
io: Socket;
|
|
295
|
+
sessions: SessionsClientHelpers;
|
|
254
296
|
service(path: 'sessions'): SessionsService;
|
|
255
297
|
service(path: 'tasks'): TasksService;
|
|
256
298
|
service(path: 'messages'): MessagesService;
|
|
@@ -276,6 +318,7 @@ interface AgorClient extends Omit<Application<ServiceTypes>, 'service'> {
|
|
|
276
318
|
logout(): Promise<AuthenticationResult | null>;
|
|
277
319
|
reAuthenticate(force?: boolean): Promise<AuthenticationResult>;
|
|
278
320
|
}
|
|
321
|
+
declare function normalizeFindResult<T>(result: FindResult<T>): T[];
|
|
279
322
|
/**
|
|
280
323
|
* Create Feathers client connected to agor-daemon
|
|
281
324
|
*
|
|
@@ -313,4 +356,4 @@ declare function createClient(url?: string, autoConnect?: boolean, options?: {
|
|
|
313
356
|
*/
|
|
314
357
|
declare function isDaemonRunning(url?: string): Promise<boolean>;
|
|
315
358
|
|
|
316
|
-
export { type AgorClient, type AgorService, type BoardsService, type MessagesService, type ReposLocalService, type ReposService, type ServiceTypes, type SessionsService, type TasksService, type WorktreesService, createClient, createRestClient, getApiKeyFromEnv, isDaemonRunning };
|
|
359
|
+
export { type AgorClient, type AgorService, type BoardsService, type ClientInput, type CreatePayload, type FindResult, type MessagesService, type PatchPayload, type QueuedSessionPromptResult, type ReposLocalService, type ReposService, type RunningSessionPromptResult, type ServiceTypes, type SessionPromptOptions, type SessionPromptRequest, type SessionPromptResult, type SessionsClientHelpers, type SessionsService, type TasksService, type UpdatePayload, type WorktreesService, createClient, createRestClient, getApiKeyFromEnv, isDaemonRunning, normalizeFindResult };
|
package/dist/core/api/index.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { i as Message } from '../message-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { i as Message } from '../message-C4Bb-L6c.js';
|
|
2
|
+
import { U as UUID } from '../id-2oR2NdLp.js';
|
|
3
|
+
import { a as Artifact } from '../artifact-CIQzxjNP.js';
|
|
4
|
+
import { h as Board, m as CardWithType, k as CardType, i as BoardExportBlob } from '../board-DG--dAS_.js';
|
|
5
|
+
import { b as Repo, d as Worktree } from '../repo-DaP4omZL.js';
|
|
6
|
+
import { P as PermissionMode, a as Session } from '../session-elEYFVev.js';
|
|
7
|
+
import { d as User } from '../user-C9UDwwtA.js';
|
|
7
8
|
import { a as ContextFileListItem, b as ContextFileDetail } from '../context-ByxGjp5l.js';
|
|
8
|
-
import { b as AuthenticationResult } from '../feathers-
|
|
9
|
-
import { i as MCPServer } from '../mcp-
|
|
10
|
-
import { c as Task } from '../task-
|
|
11
|
-
import {
|
|
9
|
+
import { b as AuthenticationResult } from '../feathers-C8PkF35p.js';
|
|
10
|
+
import { i as MCPServer } from '../mcp-D7eTnVUO.js';
|
|
11
|
+
import { c as Task } from '../task-C8SPRSHg.js';
|
|
12
|
+
import { Paginated, Params, Application } from '@feathersjs/feathers';
|
|
12
13
|
import { Socket } from 'socket.io-client';
|
|
13
14
|
export { default as authenticationClient } from '@feathersjs/authentication-client';
|
|
14
|
-
import '../
|
|
15
|
-
import '../agentic-tool-1L19ixPC.js';
|
|
15
|
+
import '../agentic-tool-B6RT-ZX5.js';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Feathers Client for Agor
|
|
@@ -20,6 +20,46 @@ import '../agentic-tool-1L19ixPC.js';
|
|
|
20
20
|
* Shared client library for connecting to agor-daemon from CLI and UI
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Client-side input type helper:
|
|
25
|
+
* keeps strongly typed output models branded, while accepting plain strings
|
|
26
|
+
* for branded UUID fields in create/update/patch payloads.
|
|
27
|
+
*/
|
|
28
|
+
type ClientInput<T> = T extends UUID ? string : T extends string & {
|
|
29
|
+
readonly __brand: string;
|
|
30
|
+
} ? string : T extends readonly (infer U)[] ? ClientInput<U>[] : T extends (...args: unknown[]) => unknown ? T : T extends object ? {
|
|
31
|
+
[K in keyof T]: ClientInput<T[K]>;
|
|
32
|
+
} : T;
|
|
33
|
+
type CreatePayload<T> = Partial<ClientInput<T>>;
|
|
34
|
+
type UpdatePayload<T> = ClientInput<T>;
|
|
35
|
+
type PatchPayload<T> = Partial<ClientInput<T>> | null;
|
|
36
|
+
type FindResult<T> = Paginated<T> | T[];
|
|
37
|
+
interface SessionPromptRequest {
|
|
38
|
+
prompt: string;
|
|
39
|
+
permissionMode?: PermissionMode;
|
|
40
|
+
stream?: boolean;
|
|
41
|
+
messageSource?: 'gateway' | 'agor';
|
|
42
|
+
}
|
|
43
|
+
interface QueuedSessionPromptResult {
|
|
44
|
+
success: true;
|
|
45
|
+
queued: true;
|
|
46
|
+
message: Message;
|
|
47
|
+
queue_position: number;
|
|
48
|
+
}
|
|
49
|
+
interface RunningSessionPromptResult {
|
|
50
|
+
success: true;
|
|
51
|
+
taskId: string;
|
|
52
|
+
status: string;
|
|
53
|
+
streaming: boolean;
|
|
54
|
+
queued?: false;
|
|
55
|
+
}
|
|
56
|
+
type SessionPromptResult = QueuedSessionPromptResult | RunningSessionPromptResult;
|
|
57
|
+
interface SessionPromptOptions extends Omit<SessionPromptRequest, 'prompt'> {
|
|
58
|
+
params?: Params;
|
|
59
|
+
}
|
|
60
|
+
interface SessionsClientHelpers {
|
|
61
|
+
prompt(sessionId: string, prompt: string, options?: SessionPromptOptions): Promise<SessionPromptResult>;
|
|
62
|
+
}
|
|
23
63
|
/**
|
|
24
64
|
* Service interfaces for type safety
|
|
25
65
|
*/
|
|
@@ -40,12 +80,13 @@ interface ServiceTypes {
|
|
|
40
80
|
/**
|
|
41
81
|
* Feathers service with find method properly typed and event emitter methods
|
|
42
82
|
*/
|
|
43
|
-
interface AgorService<T
|
|
44
|
-
find(params?: Params): Promise<
|
|
83
|
+
interface AgorService<T, TCreate = CreatePayload<T>, TUpdate = UpdatePayload<T>, TPatch = PatchPayload<T>> {
|
|
84
|
+
find(params?: Params): Promise<FindResult<T>>;
|
|
85
|
+
findAll(params?: Params): Promise<T[]>;
|
|
45
86
|
get(id: string, params?: Params): Promise<T>;
|
|
46
|
-
create(data:
|
|
47
|
-
update(id: string, data:
|
|
48
|
-
patch(id: string | null, data:
|
|
87
|
+
create(data: TCreate, params?: Params): Promise<T>;
|
|
88
|
+
update(id: string, data: TUpdate, params?: Params): Promise<T>;
|
|
89
|
+
patch(id: string | null, data: TPatch, params?: Params): Promise<T>;
|
|
49
90
|
remove(id: string, params?: Params): Promise<T>;
|
|
50
91
|
on(event: 'created' | 'updated' | 'patched' | 'removed', handler: (data: T) => void): void;
|
|
51
92
|
on(event: string, handler: (...args: any[]) => void): void;
|
|
@@ -251,6 +292,7 @@ interface WorktreesService extends AgorService<Worktree> {
|
|
|
251
292
|
*/
|
|
252
293
|
interface AgorClient extends Omit<Application<ServiceTypes>, 'service'> {
|
|
253
294
|
io: Socket;
|
|
295
|
+
sessions: SessionsClientHelpers;
|
|
254
296
|
service(path: 'sessions'): SessionsService;
|
|
255
297
|
service(path: 'tasks'): TasksService;
|
|
256
298
|
service(path: 'messages'): MessagesService;
|
|
@@ -276,6 +318,7 @@ interface AgorClient extends Omit<Application<ServiceTypes>, 'service'> {
|
|
|
276
318
|
logout(): Promise<AuthenticationResult | null>;
|
|
277
319
|
reAuthenticate(force?: boolean): Promise<AuthenticationResult>;
|
|
278
320
|
}
|
|
321
|
+
declare function normalizeFindResult<T>(result: FindResult<T>): T[];
|
|
279
322
|
/**
|
|
280
323
|
* Create Feathers client connected to agor-daemon
|
|
281
324
|
*
|
|
@@ -313,4 +356,4 @@ declare function createClient(url?: string, autoConnect?: boolean, options?: {
|
|
|
313
356
|
*/
|
|
314
357
|
declare function isDaemonRunning(url?: string): Promise<boolean>;
|
|
315
358
|
|
|
316
|
-
export { type AgorClient, type AgorService, type BoardsService, type MessagesService, type ReposLocalService, type ReposService, type ServiceTypes, type SessionsService, type TasksService, type WorktreesService, createClient, createRestClient, getApiKeyFromEnv, isDaemonRunning };
|
|
359
|
+
export { type AgorClient, type AgorService, type BoardsService, type ClientInput, type CreatePayload, type FindResult, type MessagesService, type PatchPayload, type QueuedSessionPromptResult, type ReposLocalService, type ReposService, type RunningSessionPromptResult, type ServiceTypes, type SessionPromptOptions, type SessionPromptRequest, type SessionPromptResult, type SessionsClientHelpers, type SessionsService, type TasksService, type UpdatePayload, type WorktreesService, createClient, createRestClient, getApiKeyFromEnv, isDaemonRunning, normalizeFindResult };
|
package/dist/core/api/index.js
CHANGED
|
@@ -20,6 +20,9 @@ var DAEMON = {
|
|
|
20
20
|
import { default as default2 } from "@feathersjs/authentication-client";
|
|
21
21
|
var DEFAULT_DAEMON_URL = `http://${DAEMON.DEFAULT_HOST}:${DAEMON.DEFAULT_PORT}`;
|
|
22
22
|
var BOARDS_SERVICE_EXTENDED = Symbol("agor.boardsServiceExtended");
|
|
23
|
+
var SERVICE_FIND_ALL_EXTENDED = Symbol("agor.serviceFindAllExtended");
|
|
24
|
+
var CLIENT_SERVICE_FACTORY_EXTENDED = Symbol("agor.clientServiceFactoryExtended");
|
|
25
|
+
var CLIENT_SESSIONS_HELPERS_EXTENDED = Symbol("agor.clientSessionsHelpersExtended");
|
|
23
26
|
function extendBoardsService(client) {
|
|
24
27
|
const boardsService = client.service("boards");
|
|
25
28
|
if (boardsService[BOARDS_SERVICE_EXTENDED]) {
|
|
@@ -78,6 +81,82 @@ function extendBoardsService(client) {
|
|
|
78
81
|
}
|
|
79
82
|
boardsService[BOARDS_SERVICE_EXTENDED] = true;
|
|
80
83
|
}
|
|
84
|
+
function normalizeFindResult(result) {
|
|
85
|
+
return Array.isArray(result) ? result : result.data;
|
|
86
|
+
}
|
|
87
|
+
function isPaginatedResult(result) {
|
|
88
|
+
return !Array.isArray(result) && typeof result === "object" && result !== null && Array.isArray(result.data);
|
|
89
|
+
}
|
|
90
|
+
function extendFindAllOnService(service) {
|
|
91
|
+
const findAllService = service;
|
|
92
|
+
if (findAllService[SERVICE_FIND_ALL_EXTENDED]) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
findAllService.findAll = async (params) => {
|
|
96
|
+
const firstResult = await service.find(params);
|
|
97
|
+
if (!isPaginatedResult(firstResult)) {
|
|
98
|
+
return firstResult;
|
|
99
|
+
}
|
|
100
|
+
const allData = [...firstResult.data];
|
|
101
|
+
let total = firstResult.total;
|
|
102
|
+
let nextSkip = firstResult.skip + firstResult.data.length;
|
|
103
|
+
const pageLimit = typeof firstResult.limit === "number" && firstResult.limit > 0 ? firstResult.limit : firstResult.data.length;
|
|
104
|
+
if (!Number.isFinite(total) || pageLimit <= 0) {
|
|
105
|
+
return allData;
|
|
106
|
+
}
|
|
107
|
+
const baseQuery = params?.query && typeof params.query === "object" ? { ...params.query } : void 0;
|
|
108
|
+
while (allData.length < total) {
|
|
109
|
+
const nextParams = {
|
|
110
|
+
...params ?? {},
|
|
111
|
+
query: {
|
|
112
|
+
...baseQuery ?? {},
|
|
113
|
+
$skip: nextSkip,
|
|
114
|
+
$limit: pageLimit
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
const nextResult = await service.find(nextParams);
|
|
118
|
+
if (!isPaginatedResult(nextResult)) {
|
|
119
|
+
allData.push(...nextResult);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
if (nextResult.data.length === 0) {
|
|
123
|
+
break;
|
|
124
|
+
}
|
|
125
|
+
allData.push(...nextResult.data);
|
|
126
|
+
nextSkip = nextResult.skip + nextResult.data.length;
|
|
127
|
+
total = nextResult.total;
|
|
128
|
+
}
|
|
129
|
+
return allData;
|
|
130
|
+
};
|
|
131
|
+
findAllService[SERVICE_FIND_ALL_EXTENDED] = true;
|
|
132
|
+
}
|
|
133
|
+
function extendServiceFactory(client) {
|
|
134
|
+
const augmentedClient = client;
|
|
135
|
+
if (augmentedClient[CLIENT_SERVICE_FACTORY_EXTENDED]) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const rawService = client.service.bind(client);
|
|
139
|
+
augmentedClient.service = ((path) => {
|
|
140
|
+
const service = rawService(path);
|
|
141
|
+
extendFindAllOnService(service);
|
|
142
|
+
return service;
|
|
143
|
+
});
|
|
144
|
+
augmentedClient[CLIENT_SERVICE_FACTORY_EXTENDED] = true;
|
|
145
|
+
}
|
|
146
|
+
function extendSessionsHelpers(client) {
|
|
147
|
+
const augmentedClient = client;
|
|
148
|
+
if (augmentedClient[CLIENT_SESSIONS_HELPERS_EXTENDED]) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
client.sessions = {
|
|
152
|
+
prompt: async (sessionId, prompt, options) => {
|
|
153
|
+
const { params, ...requestOptions } = options ?? {};
|
|
154
|
+
const response = await client.service(`sessions/${sessionId}/prompt`).create({ prompt, ...requestOptions }, params);
|
|
155
|
+
return response;
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
augmentedClient[CLIENT_SESSIONS_HELPERS_EXTENDED] = true;
|
|
159
|
+
}
|
|
81
160
|
function getApiKeyFromEnv() {
|
|
82
161
|
const key = typeof process !== "undefined" ? process.env?.AGOR_API_KEY : null;
|
|
83
162
|
if (key?.startsWith("agor_sk_")) {
|
|
@@ -87,12 +166,13 @@ function getApiKeyFromEnv() {
|
|
|
87
166
|
}
|
|
88
167
|
async function createRestClient(url = DEFAULT_DAEMON_URL, apiKey) {
|
|
89
168
|
const client = feathers();
|
|
169
|
+
const fetchImpl = globalThis.fetch.bind(globalThis);
|
|
90
170
|
const { default: rest } = await import("@feathersjs/rest-client");
|
|
91
171
|
const fetchFn = apiKey ? (input, init) => {
|
|
92
172
|
const headers = new Headers(init?.headers);
|
|
93
173
|
headers.set("Authorization", `Bearer ${apiKey}`);
|
|
94
|
-
return
|
|
95
|
-
} :
|
|
174
|
+
return fetchImpl(input, { ...init, headers });
|
|
175
|
+
} : fetchImpl;
|
|
96
176
|
client.configure(rest(url).fetch(fetchFn));
|
|
97
177
|
client.configure(authentication({ storage: void 0 }));
|
|
98
178
|
client.io = {
|
|
@@ -102,7 +182,9 @@ async function createRestClient(url = DEFAULT_DAEMON_URL, apiKey) {
|
|
|
102
182
|
},
|
|
103
183
|
io: { opts: {} }
|
|
104
184
|
};
|
|
185
|
+
extendServiceFactory(client);
|
|
105
186
|
extendBoardsService(client);
|
|
187
|
+
extendSessionsHelpers(client);
|
|
106
188
|
return client;
|
|
107
189
|
}
|
|
108
190
|
function createClient(url = DEFAULT_DAEMON_URL, autoConnect = true, options) {
|
|
@@ -150,7 +232,9 @@ function createClient(url = DEFAULT_DAEMON_URL, autoConnect = true, options) {
|
|
|
150
232
|
const storage = typeof globalThis !== "undefined" && "localStorage" in globalThis ? globalThis.localStorage : void 0;
|
|
151
233
|
client.configure(authentication({ storage }));
|
|
152
234
|
client.io = socket;
|
|
235
|
+
extendServiceFactory(client);
|
|
153
236
|
extendBoardsService(client);
|
|
237
|
+
extendSessionsHelpers(client);
|
|
154
238
|
return client;
|
|
155
239
|
}
|
|
156
240
|
async function isDaemonRunning(url = DEFAULT_DAEMON_URL) {
|
|
@@ -166,5 +250,6 @@ export {
|
|
|
166
250
|
createClient,
|
|
167
251
|
createRestClient,
|
|
168
252
|
getApiKeyFromEnv,
|
|
169
|
-
isDaemonRunning
|
|
253
|
+
isDaemonRunning,
|
|
254
|
+
normalizeFindResult
|
|
170
255
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SandpackTemplate } from './board-
|
|
2
|
-
import {
|
|
1
|
+
import { S as SandpackTemplate } from './board-DG--dAS_.js';
|
|
2
|
+
import { e as ArtifactID, W as WorktreeID, B as BoardID } from './id-2oR2NdLp.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Artifact Type Definitions
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as SandpackTemplate } from './board-
|
|
2
|
-
import {
|
|
1
|
+
import { S as SandpackTemplate } from './board-DogjFoWy.cjs';
|
|
2
|
+
import { e as ArtifactID, W as WorktreeID, B as BoardID } from './id-2oR2NdLp.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Artifact Type Definitions
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AgenticToolName } from './agentic-tool-
|
|
2
|
-
import { U as UUID, B as BoardID,
|
|
1
|
+
import { A as AgenticToolName } from './agentic-tool-B6RT-ZX5.js';
|
|
2
|
+
import { U as UUID, B as BoardID, e as ArtifactID, W as WorktreeID } from './id-2oR2NdLp.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Card identifier
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AgenticToolName } from './agentic-tool-
|
|
2
|
-
import { U as UUID, B as BoardID,
|
|
1
|
+
import { A as AgenticToolName } from './agentic-tool-Cs4nK-CC.cjs';
|
|
2
|
+
import { U as UUID, B as BoardID, e as ArtifactID, W as WorktreeID } from './id-2oR2NdLp.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Card identifier
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CommentID, B as BoardID,
|
|
1
|
+
import { C as CommentID, B as BoardID, d as UserID, b as SessionID, T as TaskID, M as MessageID, W as WorktreeID } from './id-2oR2NdLp.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Individual reaction on a comment
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CommentID, B as BoardID,
|
|
1
|
+
import { C as CommentID, B as BoardID, d as UserID, b as SessionID, T as TaskID, M as MessageID, W as WorktreeID } from './id-2oR2NdLp.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Individual reaction on a comment
|
|
@@ -37,6 +37,14 @@ var init_cjs_shims = __esm({
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
+
// src/types/id.ts
|
|
41
|
+
var init_id = __esm({
|
|
42
|
+
"src/types/id.ts"() {
|
|
43
|
+
"use strict";
|
|
44
|
+
init_cjs_shims();
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
|
|
40
48
|
// src/lib/ids.ts
|
|
41
49
|
function generateId() {
|
|
42
50
|
return (0, import_uuid.v4)();
|
|
@@ -47,6 +55,7 @@ var init_ids = __esm({
|
|
|
47
55
|
"use strict";
|
|
48
56
|
init_cjs_shims();
|
|
49
57
|
import_uuid = require("uuid");
|
|
58
|
+
init_id();
|
|
50
59
|
}
|
|
51
60
|
});
|
|
52
61
|
|
|
@@ -231,14 +240,6 @@ var init_gateway = __esm({
|
|
|
231
240
|
}
|
|
232
241
|
});
|
|
233
242
|
|
|
234
|
-
// src/types/id.ts
|
|
235
|
-
var init_id = __esm({
|
|
236
|
-
"src/types/id.ts"() {
|
|
237
|
-
"use strict";
|
|
238
|
-
init_cjs_shims();
|
|
239
|
-
}
|
|
240
|
-
});
|
|
241
|
-
|
|
242
243
|
// src/types/mcp.ts
|
|
243
244
|
var init_mcp = __esm({
|
|
244
245
|
"src/types/mcp.ts"() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as Message } from '../message-
|
|
2
|
-
import { b as SessionID } from '../id-
|
|
3
|
-
import { T as TaskStatus, c as Task } from '../task-
|
|
1
|
+
import { i as Message } from '../message-BbDSJvyl.cjs';
|
|
2
|
+
import { b as SessionID } from '../id-2oR2NdLp.cjs';
|
|
3
|
+
import { T as TaskStatus, c as Task } from '../task-DJMxZTv4.cjs';
|
|
4
4
|
import '../context-ByxGjp5l.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as Message } from '../message-
|
|
2
|
-
import { b as SessionID } from '../id-
|
|
3
|
-
import { T as TaskStatus, c as Task } from '../task-
|
|
1
|
+
import { i as Message } from '../message-C4Bb-L6c.js';
|
|
2
|
+
import { b as SessionID } from '../id-2oR2NdLp.js';
|
|
3
|
+
import { T as TaskStatus, c as Task } from '../task-C8SPRSHg.js';
|
|
4
4
|
import '../context-ByxGjp5l.js';
|
|
5
5
|
|
|
6
6
|
/**
|