agor-live 0.15.0 → 0.16.1
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/base-command.js +5 -1
- package/dist/cli/commands/board/add-session.js +5 -1
- package/dist/cli/commands/board/clone.js +5 -1
- package/dist/cli/commands/board/export.js +5 -1
- package/dist/cli/commands/board/import.js +5 -1
- package/dist/cli/commands/board/list.js +5 -1
- package/dist/cli/commands/mcp/add.js +5 -1
- package/dist/cli/commands/mcp/list.js +5 -1
- package/dist/cli/commands/mcp/remove.js +5 -1
- package/dist/cli/commands/mcp/show.js +5 -1
- package/dist/cli/commands/repo/add-local.js +5 -1
- package/dist/cli/commands/repo/add.js +5 -1
- package/dist/cli/commands/repo/list.js +5 -1
- package/dist/cli/commands/repo/rm.js +5 -1
- package/dist/cli/commands/session/list.js +5 -1
- package/dist/cli/commands/session/load-claude.js +6 -3
- package/dist/cli/commands/user/create.js +6 -8
- package/dist/cli/commands/user/delete.js +5 -1
- package/dist/cli/commands/user/list.js +1 -1
- package/dist/cli/commands/user/update.js +7 -3
- package/dist/cli/commands/worktree/add.js +5 -1
- package/dist/cli/commands/worktree/archive.js +5 -1
- package/dist/cli/commands/worktree/cd.js +5 -1
- package/dist/cli/commands/worktree/env/restart.js +5 -1
- package/dist/cli/commands/worktree/env/start.js +5 -1
- package/dist/cli/commands/worktree/env/status.js +5 -1
- package/dist/cli/commands/worktree/env/stop.js +5 -1
- package/dist/cli/commands/worktree/list.js +5 -1
- package/dist/cli/commands/worktree/rm.js +5 -1
- package/dist/cli/commands/worktree/show.js +5 -1
- package/dist/cli/commands/worktree/unarchive.js +5 -1
- package/dist/cli/commands/worktree/update.js +5 -1
- package/dist/core/agentic-tool-COqFrlmU.d.ts +110 -0
- package/dist/core/agentic-tool-o8Io8dDl.d.cts +110 -0
- package/dist/core/api/index.cjs +16 -3
- package/dist/core/api/index.d.cts +29 -13
- package/dist/core/api/index.d.ts +29 -13
- package/dist/core/api/index.js +15 -3
- package/dist/core/artifact-Cv9Bs4Z0.d.cts +97 -0
- package/dist/core/artifact-KXt7SRRb.d.ts +97 -0
- package/dist/core/{board-Wj5KQZid.d.cts → board-BTK4RUmB.d.cts} +59 -5
- package/dist/core/{board-DFsuhk62.d.ts → board-Bfd4UTxM.d.ts} +59 -5
- package/dist/core/{board-comment-rH4c6eVl.d.ts → board-comment-BZm5w5S2.d.ts} +1 -1
- package/dist/core/{board-comment-D9NA4gOJ.d.cts → board-comment-D8NdYb9y.d.cts} +1 -1
- package/dist/core/callbacks/child-completion-template.d.cts +1 -0
- package/dist/core/callbacks/child-completion-template.d.ts +1 -0
- package/dist/core/claude/index.cjs +170 -34
- package/dist/core/claude/index.d.cts +3 -3
- package/dist/core/claude/index.d.ts +3 -3
- package/dist/core/claude/index.js +178 -31
- package/dist/core/{client-Bj25goen.d.ts → client-8v0GxKL_.d.ts} +1033 -70
- package/dist/core/{client-CrpaiY-N.d.cts → client-DJJl-TZq.d.cts} +1033 -70
- package/dist/core/config/browser.d.cts +3 -3
- package/dist/core/config/browser.d.ts +3 -3
- package/dist/core/config/index.cjs +182 -36
- package/dist/core/config/index.d.cts +17 -10
- package/dist/core/config/index.d.ts +17 -10
- package/dist/core/config/index.js +190 -33
- package/dist/core/{config-manager-_JsUrFp_.d.cts → config-manager-BLIWF6CF.d.cts} +1 -1
- package/dist/core/{config-manager-D0Yshxlj.d.ts → config-manager-CFaSP-Ym.d.ts} +1 -1
- package/dist/core/db/index.cjs +855 -317
- package/dist/core/db/index.d.cts +1168 -106
- package/dist/core/db/index.d.ts +1168 -106
- package/dist/core/db/index.js +831 -288
- package/dist/core/db/session-guard.d.cts +8 -7
- package/dist/core/db/session-guard.d.ts +8 -7
- package/dist/core/drizzle/postgres/0020_salty_marten_broadcloak.sql +3 -0
- package/dist/core/drizzle/postgres/0021_far_masked_marvel.sql +23 -0
- package/dist/core/drizzle/postgres/0022_add_user_api_keys.sql +14 -0
- package/dist/core/drizzle/postgres/0029_rename_owner_to_superadmin.sql +7 -0
- package/dist/core/drizzle/postgres/meta/0020_snapshot.json +2692 -0
- package/dist/core/drizzle/postgres/meta/0021_snapshot.json +2863 -0
- package/dist/core/drizzle/postgres/meta/0022_snapshot.json +2959 -0
- package/dist/core/drizzle/postgres/meta/_journal.json +28 -0
- package/dist/core/drizzle/sqlite/0029_rename_owner_to_superadmin.sql +8 -0
- package/dist/core/drizzle/sqlite/0030_flat_mantis.sql +3 -0
- package/dist/core/drizzle/sqlite/0031_breezy_speed_demon.sql +23 -0
- package/dist/core/drizzle/sqlite/0032_add_user_api_keys.sql +13 -0
- package/dist/core/drizzle/sqlite/meta/0030_snapshot.json +2126 -0
- package/dist/core/drizzle/sqlite/meta/0031_snapshot.json +2279 -0
- package/dist/core/drizzle/sqlite/meta/0032_snapshot.json +2359 -0
- package/dist/core/drizzle/sqlite/meta/_journal.json +28 -0
- package/dist/core/environment/variable-resolver.cjs +3 -6
- package/dist/core/environment/variable-resolver.d.cts +8 -7
- package/dist/core/environment/variable-resolver.d.ts +8 -7
- package/dist/core/environment/variable-resolver.js +3 -6
- package/dist/core/feathers/index.cjs +2 -0
- package/dist/core/feathers/index.d.cts +1 -1
- package/dist/core/feathers/index.d.ts +1 -1
- package/dist/core/feathers/index.js +2 -1
- package/dist/core/{feathers-CW9iL-3_.d.ts → feathers-DWfz4X2s.d.ts} +2 -2
- package/dist/core/{feathers-B4XMJMZn.d.cts → feathers-DstwBmky.d.cts} +2 -2
- package/dist/core/gateway/index.cjs +479 -20
- package/dist/core/gateway/index.d.cts +133 -5
- package/dist/core/gateway/index.d.ts +133 -5
- package/dist/core/gateway/index.js +467 -20
- package/dist/core/{gateway-C-mPlLRq.d.cts → gateway-BQsBWJXe.d.cts} +12 -4
- package/dist/core/{gateway-4z4Z3mpW.d.ts → gateway-BmsFBjwJ.d.ts} +12 -4
- package/dist/core/git/index.cjs +0 -1
- package/dist/core/git/index.d.cts +2 -2
- package/dist/core/git/index.d.ts +2 -2
- package/dist/core/git/index.js +0 -1
- package/dist/core/{id-BwPJtWxW.d.cts → id-DSzvIi3c.d.cts} +10 -1
- package/dist/core/{id-BwPJtWxW.d.ts → id-DSzvIi3c.d.ts} +10 -1
- package/dist/core/index.cjs +919 -326
- package/dist/core/index.d.cts +19 -17
- package/dist/core/index.d.ts +19 -17
- package/dist/core/index.js +888 -297
- package/dist/core/lib/feathers-validation.cjs +10 -2
- package/dist/core/lib/feathers-validation.d.cts +11 -3
- package/dist/core/lib/feathers-validation.d.ts +11 -3
- package/dist/core/lib/feathers-validation.js +9 -2
- package/dist/core/mcp/index.cjs +112 -8
- package/dist/core/mcp/index.d.cts +2 -2
- package/dist/core/mcp/index.d.ts +2 -2
- package/dist/core/mcp/index.js +112 -8
- package/dist/core/{mcp-DXLeQBg4.d.cts → mcp-DmSz5NtX.d.cts} +1 -1
- package/dist/core/{mcp-Bw8QAZjb.d.ts → mcp-eYAM1JQj.d.ts} +1 -1
- package/dist/core/{message-C9XTt2nM.d.ts → message-DcNHiQJx.d.ts} +2 -2
- package/dist/core/{message-kDoxvdzV.d.cts → message-ggLv6xJx.d.cts} +2 -2
- package/dist/core/models/index.cjs +20 -26
- package/dist/core/models/index.d.cts +2 -2
- package/dist/core/models/index.d.ts +2 -2
- package/dist/core/models/index.js +20 -26
- package/dist/core/package.json +5 -0
- package/dist/core/permissions/index.d.cts +2 -2
- package/dist/core/permissions/index.d.ts +2 -2
- package/dist/core/sdk/index.d.cts +1 -1
- package/dist/core/sdk/index.d.ts +1 -1
- package/dist/core/seed/index.cjs +377 -145
- package/dist/core/seed/index.d.cts +1 -1
- package/dist/core/seed/index.d.ts +1 -1
- package/dist/core/seed/index.js +378 -135
- package/dist/core/{session-DizlFIZP.d.cts → session-DrNmhT4I.d.cts} +62 -113
- package/dist/core/{session-CbioFjJS.d.ts → session-I7SKR8X0.d.ts} +62 -113
- package/dist/core/{session-guard-D5xyNuGB.d.cts → session-guard-CpgPDegW.d.ts} +7 -3
- package/dist/core/{session-guard-D-ePkTxq.d.ts → session-guard-DP0eaFA2.d.cts} +7 -3
- package/dist/core/{task-C2jNGWSt.d.ts → task-C_4XIEFP.d.ts} +1 -1
- package/dist/core/{task-Cw2N74jk.d.cts → task-Cobwzp1Z.d.cts} +1 -1
- package/dist/core/templates/session-context.d.cts +5 -4
- package/dist/core/templates/session-context.d.ts +5 -4
- 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/tools/mcp/oauth-mcp-transport.cjs +101 -25
- package/dist/core/tools/mcp/oauth-mcp-transport.d.cts +1 -0
- package/dist/core/tools/mcp/oauth-mcp-transport.d.ts +1 -0
- package/dist/core/tools/mcp/oauth-mcp-transport.js +101 -25
- package/dist/core/types/index.cjs +54 -2
- package/dist/core/types/index.d.cts +15 -13
- package/dist/core/types/index.d.ts +15 -13
- package/dist/core/types/index.js +47 -1
- package/dist/core/{types-Cir-hbkf.d.cts → types-DKptGEQi.d.cts} +10 -0
- package/dist/core/{types-Cir-hbkf.d.ts → types-DKptGEQi.d.ts} +10 -0
- package/dist/core/unix/index.cjs +348 -116
- package/dist/core/unix/index.d.cts +8 -7
- package/dist/core/unix/index.d.ts +8 -7
- package/dist/core/unix/index.js +349 -106
- package/dist/core/{user-fvOawzjb.d.ts → user-C-kUEFPf.d.ts} +40 -6
- package/dist/core/{user-i5mypqq-.d.cts → user-gTo6uzKE.d.cts} +40 -6
- package/dist/core/utils/board-placement.cjs +53 -0
- package/dist/core/utils/board-placement.d.cts +18 -0
- package/dist/core/utils/board-placement.d.ts +18 -0
- package/dist/core/utils/board-placement.js +26 -0
- package/dist/core/utils/permission-mode-mapper.d.cts +3 -2
- package/dist/core/utils/permission-mode-mapper.d.ts +3 -2
- package/dist/core/utils/url.cjs +18 -0
- package/dist/core/utils/url.d.cts +13 -2
- package/dist/core/utils/url.d.ts +13 -2
- package/dist/core/utils/url.js +17 -0
- package/dist/core/{worktree-CJIhAciM.d.ts → worktree-CbBATC-0.d.ts} +13 -1
- package/dist/core/{worktree-UDfRv0uW.d.cts → worktree-DQ1rsBlH.d.cts} +13 -1
- package/dist/daemon/adapters/drizzle.js +1 -1
- package/dist/daemon/auth/api-key-strategy.d.ts +28 -0
- package/dist/daemon/auth/api-key-strategy.js +61 -0
- package/dist/daemon/auth/session-token-strategy.js +3 -2
- package/dist/daemon/declarations.d.ts +2 -0
- package/dist/daemon/index.js +12652 -10365
- package/dist/daemon/mcp/server.d.ts +1 -1
- package/dist/daemon/mcp/server.js +784 -88
- package/dist/daemon/mcp/tools/analytics.js +17 -1
- package/dist/daemon/mcp/tools/artifacts.d.ts +19 -0
- package/dist/daemon/mcp/tools/artifacts.js +14003 -0
- package/dist/daemon/mcp/tools/boards.js +89 -10
- package/dist/daemon/mcp/tools/card-types.js +17 -1
- package/dist/daemon/mcp/tools/cards.js +16 -0
- package/dist/daemon/mcp/tools/environment.js +16 -0
- package/dist/daemon/mcp/tools/mcp-servers.js +16 -0
- package/dist/daemon/mcp/tools/messages.js +16 -0
- package/dist/daemon/mcp/tools/repos.js +16 -0
- package/dist/daemon/mcp/tools/search.js +42 -2
- package/dist/daemon/mcp/tools/sessions.js +369 -23
- package/dist/daemon/mcp/tools/tasks.js +18 -2
- package/dist/daemon/mcp/tools/users.js +27 -9
- package/dist/daemon/mcp/tools/worktrees.js +135 -38
- package/dist/daemon/services/artifacts.d.ts +114 -0
- package/dist/daemon/services/artifacts.js +645 -0
- package/dist/daemon/services/board-comments.js +1 -1
- package/dist/daemon/services/boards.d.ts +8 -0
- package/dist/daemon/services/boards.js +44 -1
- package/dist/daemon/services/card-types.js +1 -1
- package/dist/daemon/services/cards.js +1 -1
- package/dist/daemon/services/config.d.ts +3 -0
- package/dist/daemon/services/config.js +7 -1
- package/dist/daemon/services/context.js +4 -17
- package/dist/daemon/services/file.js +4 -17
- package/dist/daemon/services/gateway-channels.js +1 -1
- package/dist/daemon/services/gateway.d.ts +18 -0
- package/dist/daemon/services/gateway.js +299 -22
- package/dist/daemon/services/github-app-setup.d.ts +37 -0
- package/dist/daemon/services/github-app-setup.js +178 -0
- package/dist/daemon/services/mcp-servers.js +1 -1
- package/dist/daemon/services/messages.js +1 -1
- package/dist/daemon/services/repos.d.ts +1 -4
- package/dist/daemon/services/repos.js +137 -27
- package/dist/daemon/services/scheduler.d.ts +1 -0
- package/dist/daemon/services/scheduler.js +27 -2
- package/dist/daemon/services/sessions.d.ts +25 -3
- package/dist/daemon/services/sessions.js +69 -11
- package/dist/daemon/services/tasks.d.ts +4 -2
- package/dist/daemon/services/tasks.js +31 -27
- package/dist/daemon/services/thread-session-map.js +1 -1
- package/dist/daemon/services/user-api-keys.d.ts +28 -0
- package/dist/daemon/services/user-api-keys.js +54 -0
- package/dist/daemon/services/users.d.ts +3 -3
- package/dist/daemon/services/users.js +5 -4
- package/dist/daemon/services/worktree-owners.d.ts +2 -0
- package/dist/daemon/services/worktree-owners.js +34 -21
- package/dist/daemon/services/worktrees.d.ts +5 -1
- package/dist/daemon/services/worktrees.js +16 -1
- package/dist/daemon/strategies/anonymous.js +2 -1
- package/dist/daemon/utils/authorization.d.ts +12 -4
- package/dist/daemon/utils/authorization.js +31 -15
- package/dist/daemon/utils/worktree-authorization.d.ts +58 -11
- package/dist/daemon/utils/worktree-authorization.js +106 -20
- package/dist/executor/handlers/sdk/base-executor.d.ts +6 -0
- package/dist/executor/handlers/sdk/base-executor.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/base-executor.js +39 -12
- package/dist/executor/handlers/sdk/claude.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/claude.js +0 -2
- package/dist/executor/handlers/sdk/copilot.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/copilot.js +0 -1
- package/dist/executor/index.d.ts.map +1 -1
- package/dist/executor/index.js +18 -18
- package/dist/executor/sdk-handlers/claude/claude-tool.d.ts +34 -37
- package/dist/executor/sdk-handlers/claude/claude-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/claude-tool.js +199 -189
- package/dist/executor/sdk-handlers/claude/import/task-extractor.js +1 -1
- package/dist/executor/sdk-handlers/claude/message-builder.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/message-builder.js +6 -4
- package/dist/executor/sdk-handlers/claude/message-processor.d.ts +44 -1
- package/dist/executor/sdk-handlers/claude/message-processor.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/message-processor.js +153 -4
- package/dist/executor/sdk-handlers/claude/permissions/permission-hooks.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/permissions/permission-hooks.js +0 -3
- package/dist/executor/sdk-handlers/claude/prompt-service.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/prompt-service.js +31 -10
- package/dist/executor/sdk-handlers/claude/query-builder.d.ts +7 -0
- package/dist/executor/sdk-handlers/claude/query-builder.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/query-builder.js +34 -5
- package/dist/executor/sdk-handlers/copilot/permission-mapper.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/copilot/permission-mapper.js +0 -1
- package/dist/executor/sdk-handlers/opencode/opencode-tool.d.ts +1 -1
- package/dist/executor/sdk-handlers/opencode/opencode-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/opencode/opencode-tool.js +41 -43
- package/dist/executor/types.d.ts +0 -1
- package/dist/executor/types.d.ts.map +1 -1
- package/dist/ui/assets/{_basePickBy-CgIEpHKq.js → _basePickBy-BtVrd6dO.js} +1 -1
- package/dist/ui/assets/_basePickBy-BtVrd6dO.js.gz +0 -0
- package/dist/ui/assets/{_baseUniq-Cq2X8Kld.js → _baseUniq-BH9GjWbF.js} +1 -1
- package/dist/ui/assets/_baseUniq-BH9GjWbF.js.gz +0 -0
- package/dist/ui/assets/{arc-t2XoedaA.js → arc-B4KDi1iJ.js} +1 -1
- package/dist/ui/assets/arc-B4KDi1iJ.js.gz +0 -0
- package/dist/ui/assets/{architectureDiagram-VXUJARFQ-_QF9STs5.js → architectureDiagram-VXUJARFQ-CdvbpFNm.js} +1 -1
- package/dist/ui/assets/architectureDiagram-VXUJARFQ-CdvbpFNm.js.gz +0 -0
- package/dist/ui/assets/base-80a1f760-D-kQo-47.js +1 -0
- package/dist/ui/assets/{blockDiagram-VD42YOAC-BrfEPrSz.js → blockDiagram-VD42YOAC-B_mxl6Lf.js} +1 -1
- package/dist/ui/assets/blockDiagram-VD42YOAC-B_mxl6Lf.js.gz +0 -0
- package/dist/ui/assets/{c4Diagram-YG6GDRKO-B-YxY-UX.js → c4Diagram-YG6GDRKO-Dx6ylHPl.js} +1 -1
- package/dist/ui/assets/c4Diagram-YG6GDRKO-Dx6ylHPl.js.gz +0 -0
- package/dist/ui/assets/channel-CIT8bfEt.js +1 -0
- package/dist/ui/assets/{chunk-4BX2VUAB-GDw2Jfqu.js → chunk-4BX2VUAB-DNC2--Jg.js} +1 -1
- package/dist/ui/assets/{chunk-55IACEB6-zlXppIWE.js → chunk-55IACEB6-gGF1w6GZ.js} +1 -1
- package/dist/ui/assets/{chunk-B4BG7PRW-DcCH755B.js → chunk-B4BG7PRW-FXlRD4Fw.js} +1 -1
- package/dist/ui/assets/chunk-B4BG7PRW-FXlRD4Fw.js.gz +0 -0
- package/dist/ui/assets/{chunk-DI55MBZ5-BibYsjMO.js → chunk-DI55MBZ5-DbBPQIQz.js} +1 -1
- package/dist/ui/assets/chunk-DI55MBZ5-DbBPQIQz.js.gz +0 -0
- package/dist/ui/assets/{chunk-FMBD7UC4-CobOohec.js → chunk-FMBD7UC4-BqwS15h8.js} +1 -1
- package/dist/ui/assets/{chunk-QN33PNHL-CMf07nou.js → chunk-QN33PNHL-E8BK1n1w.js} +1 -1
- package/dist/ui/assets/{chunk-QZHKN3VN-5PYMgPN1.js → chunk-QZHKN3VN-CoigW80z.js} +1 -1
- package/dist/ui/assets/{chunk-TZMSLE5B-CQL2ymnq.js → chunk-TZMSLE5B-DdFLlZDV.js} +1 -1
- package/dist/ui/assets/chunk-TZMSLE5B-DdFLlZDV.js.gz +0 -0
- package/dist/ui/assets/classDiagram-2ON5EDUG-CaaBDWvO.js +1 -0
- package/dist/ui/assets/classDiagram-v2-WZHVMYZB-CaaBDWvO.js +1 -0
- package/dist/ui/assets/clone-Dr8RgH2m.js +1 -0
- package/dist/ui/assets/consoleHook-59e792cb-Dz0DMm-0.js +2 -0
- package/dist/ui/assets/consoleHook-59e792cb-Dz0DMm-0.js.gz +0 -0
- package/dist/ui/assets/{cose-bilkent-S5V4N54A-B_mS1sIs.js → cose-bilkent-S5V4N54A-tnhbVTPe.js} +1 -1
- package/dist/ui/assets/{cose-bilkent-S5V4N54A-B_mS1sIs.js.gz → cose-bilkent-S5V4N54A-tnhbVTPe.js.gz} +0 -0
- package/dist/ui/assets/{dagre-6UL2VRFP-lpsNN8Mv.js → dagre-6UL2VRFP-CVjnxYjN.js} +1 -1
- package/dist/ui/assets/dagre-6UL2VRFP-CVjnxYjN.js.gz +0 -0
- package/dist/ui/assets/{diagram-PSM6KHXK-C5LKLIJs.js → diagram-PSM6KHXK-CWFzevZb.js} +1 -1
- package/dist/ui/assets/diagram-PSM6KHXK-CWFzevZb.js.gz +0 -0
- package/dist/ui/assets/{diagram-QEK2KX5R-C3Ih4Ko9.js → diagram-QEK2KX5R-T_J5IVCY.js} +1 -1
- package/dist/ui/assets/diagram-QEK2KX5R-T_J5IVCY.js.gz +0 -0
- package/dist/ui/assets/{diagram-S2PKOQOG-qRPlAMnr.js → diagram-S2PKOQOG-C4Dhp8jy.js} +1 -1
- package/dist/ui/assets/diagram-S2PKOQOG-C4Dhp8jy.js.gz +0 -0
- package/dist/ui/assets/{erDiagram-Q2GNP2WA-BzmgchK9.js → erDiagram-Q2GNP2WA-D8w2VOw6.js} +1 -1
- package/dist/ui/assets/erDiagram-Q2GNP2WA-D8w2VOw6.js.gz +0 -0
- package/dist/ui/assets/{flowDiagram-NV44I4VS-Dhl9hlw1.js → flowDiagram-NV44I4VS-BxDP6XJj.js} +1 -1
- package/dist/ui/assets/flowDiagram-NV44I4VS-BxDP6XJj.js.gz +0 -0
- package/dist/ui/assets/{ganttDiagram-LVOFAZNH-BBN494YB.js → ganttDiagram-LVOFAZNH-Cqm31nz1.js} +1 -1
- package/dist/ui/assets/ganttDiagram-LVOFAZNH-Cqm31nz1.js.gz +0 -0
- package/dist/ui/assets/{gitGraphDiagram-NY62KEGX-FocdnfP2.js → gitGraphDiagram-NY62KEGX-49108Rzr.js} +1 -1
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-49108Rzr.js.gz +0 -0
- package/dist/ui/assets/{graph-BiGBhCcw.js → graph-Cl9WGtm3.js} +1 -1
- package/dist/ui/assets/graph-Cl9WGtm3.js.gz +0 -0
- package/dist/ui/assets/index-599aeaf7-tGQYdGhA.js +16 -0
- package/dist/ui/assets/index-599aeaf7-tGQYdGhA.js.gz +0 -0
- package/dist/ui/assets/index-CKmdxjmm.js +4 -0
- package/dist/ui/assets/index-CKmdxjmm.js.gz +0 -0
- package/dist/ui/assets/{index-BjxbtAmt.css → index-Cm_lkBJT.css} +1 -1
- package/dist/ui/assets/index-Cm_lkBJT.css.gz +0 -0
- package/dist/ui/assets/index-DUaptCU5.js +1 -0
- package/dist/ui/assets/index-DUaptCU5.js.gz +0 -0
- package/dist/ui/assets/{index-Bl-w-uvB.js → index-D_yKRJQj.js} +979 -251
- package/dist/ui/assets/index-D_yKRJQj.js.gz +0 -0
- package/dist/ui/assets/{infoDiagram-ER5ION4S-CfEJ92IC.js → infoDiagram-ER5ION4S-CKv_e89I.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-XKPGCS4Q-DPiELvyE.js → journeyDiagram-XKPGCS4Q-BYXSkKZr.js} +1 -1
- package/dist/ui/assets/journeyDiagram-XKPGCS4Q-BYXSkKZr.js.gz +0 -0
- package/dist/ui/assets/{kanban-definition-3W4ZIXB7-Xk8v6VqV.js → kanban-definition-3W4ZIXB7-B4iIn-H8.js} +1 -1
- package/dist/ui/assets/kanban-definition-3W4ZIXB7-B4iIn-H8.js.gz +0 -0
- package/dist/ui/assets/{layout-Ce0ia1hT.js → layout-AQEby1op.js} +1 -1
- package/dist/ui/assets/layout-AQEby1op.js.gz +0 -0
- package/dist/ui/assets/{linear-YWSRTc3a.js → linear-BfcSxAMZ.js} +1 -1
- package/dist/ui/assets/linear-BfcSxAMZ.js.gz +0 -0
- package/dist/ui/assets/{mermaid.core-BuUZcrQq.js → mermaid.core-DuEkBmyB.js} +5 -5
- package/dist/ui/assets/mermaid.core-DuEkBmyB.js.gz +0 -0
- package/dist/ui/assets/{mindmap-definition-VGOIOE7T-DACW8rfu.js → mindmap-definition-VGOIOE7T-BBDWarB6.js} +1 -1
- package/dist/ui/assets/mindmap-definition-VGOIOE7T-BBDWarB6.js.gz +0 -0
- package/dist/ui/assets/{pieDiagram-ADFJNKIX-B-KfC8Wr.js → pieDiagram-ADFJNKIX-EQSvb4cC.js} +1 -1
- package/dist/ui/assets/pieDiagram-ADFJNKIX-EQSvb4cC.js.gz +0 -0
- package/dist/ui/assets/{quadrantDiagram-AYHSOK5B-V_9ni7C7.js → quadrantDiagram-AYHSOK5B-CpNlK4fQ.js} +1 -1
- package/dist/ui/assets/quadrantDiagram-AYHSOK5B-CpNlK4fQ.js.gz +0 -0
- package/dist/ui/assets/{requirementDiagram-UZGBJVZJ-Dte2fAZs.js → requirementDiagram-UZGBJVZJ-BPMaEFDA.js} +1 -1
- package/dist/ui/assets/requirementDiagram-UZGBJVZJ-BPMaEFDA.js.gz +0 -0
- package/dist/ui/assets/{sankeyDiagram-TZEHDZUN-DEgxCqch.js → sankeyDiagram-TZEHDZUN-BiceNoew.js} +1 -1
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-BiceNoew.js.gz +0 -0
- package/dist/ui/assets/{sequenceDiagram-WL72ISMW-CvoQyf29.js → sequenceDiagram-WL72ISMW-CObp8n8B.js} +1 -1
- package/dist/ui/assets/sequenceDiagram-WL72ISMW-CObp8n8B.js.gz +0 -0
- package/dist/ui/assets/{stateDiagram-FKZM4ZOC-BdyzjztN.js → stateDiagram-FKZM4ZOC-DKNE6dA2.js} +1 -1
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-DKNE6dA2.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-fBA8Sge7.js +1 -0
- package/dist/ui/assets/{timeline-definition-IT6M3QCI-BvdVQEg7.js → timeline-definition-IT6M3QCI-DLXCiWgU.js} +1 -1
- package/dist/ui/assets/timeline-definition-IT6M3QCI-DLXCiWgU.js.gz +0 -0
- package/dist/ui/assets/{treemap-KMMF4GRG-DGvuMGDk.js → treemap-KMMF4GRG-TaU-Vz5l.js} +1 -1
- package/dist/ui/assets/treemap-KMMF4GRG-TaU-Vz5l.js.gz +0 -0
- package/dist/ui/assets/{xychartDiagram-PRI3JC2R-rWvxmlgT.js → xychartDiagram-PRI3JC2R-ry-Xm_33.js} +1 -1
- package/dist/ui/assets/xychartDiagram-PRI3JC2R-ry-Xm_33.js.gz +0 -0
- package/dist/ui/index.html +2 -2
- package/package.json +4 -2
- package/dist/ui/assets/_basePickBy-CgIEpHKq.js.gz +0 -0
- package/dist/ui/assets/_baseUniq-Cq2X8Kld.js.gz +0 -0
- package/dist/ui/assets/arc-t2XoedaA.js.gz +0 -0
- package/dist/ui/assets/architectureDiagram-VXUJARFQ-_QF9STs5.js.gz +0 -0
- package/dist/ui/assets/blockDiagram-VD42YOAC-BrfEPrSz.js.gz +0 -0
- package/dist/ui/assets/c4Diagram-YG6GDRKO-B-YxY-UX.js.gz +0 -0
- package/dist/ui/assets/channel-GlqOGaOV.js +0 -1
- package/dist/ui/assets/chunk-B4BG7PRW-DcCH755B.js.gz +0 -0
- package/dist/ui/assets/chunk-DI55MBZ5-BibYsjMO.js.gz +0 -0
- package/dist/ui/assets/chunk-TZMSLE5B-CQL2ymnq.js.gz +0 -0
- package/dist/ui/assets/classDiagram-2ON5EDUG-CeeRJjwh.js +0 -1
- package/dist/ui/assets/classDiagram-v2-WZHVMYZB-CeeRJjwh.js +0 -1
- package/dist/ui/assets/clone-Ccc6eJFg.js +0 -1
- package/dist/ui/assets/dagre-6UL2VRFP-lpsNN8Mv.js.gz +0 -0
- package/dist/ui/assets/diagram-PSM6KHXK-C5LKLIJs.js.gz +0 -0
- package/dist/ui/assets/diagram-QEK2KX5R-C3Ih4Ko9.js.gz +0 -0
- package/dist/ui/assets/diagram-S2PKOQOG-qRPlAMnr.js.gz +0 -0
- package/dist/ui/assets/erDiagram-Q2GNP2WA-BzmgchK9.js.gz +0 -0
- package/dist/ui/assets/flowDiagram-NV44I4VS-Dhl9hlw1.js.gz +0 -0
- package/dist/ui/assets/ganttDiagram-LVOFAZNH-BBN494YB.js.gz +0 -0
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-FocdnfP2.js.gz +0 -0
- package/dist/ui/assets/graph-BiGBhCcw.js.gz +0 -0
- package/dist/ui/assets/index-BjxbtAmt.css.gz +0 -0
- package/dist/ui/assets/index-Bl-w-uvB.js.gz +0 -0
- package/dist/ui/assets/journeyDiagram-XKPGCS4Q-DPiELvyE.js.gz +0 -0
- package/dist/ui/assets/kanban-definition-3W4ZIXB7-Xk8v6VqV.js.gz +0 -0
- package/dist/ui/assets/layout-Ce0ia1hT.js.gz +0 -0
- package/dist/ui/assets/linear-YWSRTc3a.js.gz +0 -0
- package/dist/ui/assets/mermaid.core-BuUZcrQq.js.gz +0 -0
- package/dist/ui/assets/mindmap-definition-VGOIOE7T-DACW8rfu.js.gz +0 -0
- package/dist/ui/assets/pieDiagram-ADFJNKIX-B-KfC8Wr.js.gz +0 -0
- package/dist/ui/assets/quadrantDiagram-AYHSOK5B-V_9ni7C7.js.gz +0 -0
- package/dist/ui/assets/requirementDiagram-UZGBJVZJ-Dte2fAZs.js.gz +0 -0
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-DEgxCqch.js.gz +0 -0
- package/dist/ui/assets/sequenceDiagram-WL72ISMW-CvoQyf29.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-BdyzjztN.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-UbsD9x2y.js +0 -1
- package/dist/ui/assets/timeline-definition-IT6M3QCI-BvdVQEg7.js.gz +0 -0
- package/dist/ui/assets/treemap-KMMF4GRG-DGvuMGDk.js.gz +0 -0
- package/dist/ui/assets/xychartDiagram-PRI3JC2R-rWvxmlgT.js.gz +0 -0
package/dist/cli/base-command.js
CHANGED
|
@@ -55,7 +55,7 @@ var init_auth = __esm({
|
|
|
55
55
|
|
|
56
56
|
// src/base-command.ts
|
|
57
57
|
init_auth();
|
|
58
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
58
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
59
59
|
import { getDaemonUrl } from "@agor/core/config";
|
|
60
60
|
import { Command } from "@oclif/core";
|
|
61
61
|
import chalk from "chalk";
|
|
@@ -75,6 +75,10 @@ var BaseCommand = class extends Command {
|
|
|
75
75
|
);
|
|
76
76
|
this.exit(1);
|
|
77
77
|
}
|
|
78
|
+
const apiKey = getApiKeyFromEnv();
|
|
79
|
+
if (apiKey) {
|
|
80
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
81
|
+
}
|
|
78
82
|
const client = await createRestClient(this.daemonUrl);
|
|
79
83
|
const storedAuth = await loadToken();
|
|
80
84
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import chalk2 from "chalk";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -58,7 +58,7 @@ import { Args } from "@oclif/core";
|
|
|
58
58
|
|
|
59
59
|
// src/base-command.ts
|
|
60
60
|
init_auth();
|
|
61
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
61
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
62
62
|
import { getDaemonUrl } from "@agor/core/config";
|
|
63
63
|
import { Command } from "@oclif/core";
|
|
64
64
|
import chalk from "chalk";
|
|
@@ -78,6 +78,10 @@ var BaseCommand = class extends Command {
|
|
|
78
78
|
);
|
|
79
79
|
this.exit(1);
|
|
80
80
|
}
|
|
81
|
+
const apiKey = getApiKeyFromEnv();
|
|
82
|
+
if (apiKey) {
|
|
83
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
84
|
+
}
|
|
81
85
|
const client = await createRestClient(this.daemonUrl);
|
|
82
86
|
const storedAuth = await loadToken();
|
|
83
87
|
if (storedAuth) {
|
|
@@ -58,7 +58,7 @@ import { Args, Flags } from "@oclif/core";
|
|
|
58
58
|
|
|
59
59
|
// src/base-command.ts
|
|
60
60
|
init_auth();
|
|
61
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
61
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
62
62
|
import { getDaemonUrl } from "@agor/core/config";
|
|
63
63
|
import { Command } from "@oclif/core";
|
|
64
64
|
import chalk from "chalk";
|
|
@@ -78,6 +78,10 @@ var BaseCommand = class extends Command {
|
|
|
78
78
|
);
|
|
79
79
|
this.exit(1);
|
|
80
80
|
}
|
|
81
|
+
const apiKey = getApiKeyFromEnv();
|
|
82
|
+
if (apiKey) {
|
|
83
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
84
|
+
}
|
|
81
85
|
const client = await createRestClient(this.daemonUrl);
|
|
82
86
|
const storedAuth = await loadToken();
|
|
83
87
|
if (storedAuth) {
|
|
@@ -58,7 +58,7 @@ import { Args } from "@oclif/core";
|
|
|
58
58
|
|
|
59
59
|
// src/base-command.ts
|
|
60
60
|
init_auth();
|
|
61
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
61
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
62
62
|
import { getDaemonUrl } from "@agor/core/config";
|
|
63
63
|
import { Command } from "@oclif/core";
|
|
64
64
|
import chalk from "chalk";
|
|
@@ -78,6 +78,10 @@ var BaseCommand = class extends Command {
|
|
|
78
78
|
);
|
|
79
79
|
this.exit(1);
|
|
80
80
|
}
|
|
81
|
+
const apiKey = getApiKeyFromEnv();
|
|
82
|
+
if (apiKey) {
|
|
83
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
84
|
+
}
|
|
81
85
|
const client = await createRestClient(this.daemonUrl);
|
|
82
86
|
const storedAuth = await loadToken();
|
|
83
87
|
if (storedAuth) {
|
|
@@ -61,7 +61,7 @@ import Table from "cli-table3";
|
|
|
61
61
|
|
|
62
62
|
// src/base-command.ts
|
|
63
63
|
init_auth();
|
|
64
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
64
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
65
65
|
import { getDaemonUrl } from "@agor/core/config";
|
|
66
66
|
import { Command } from "@oclif/core";
|
|
67
67
|
import chalk from "chalk";
|
|
@@ -81,6 +81,10 @@ var BaseCommand = class extends Command {
|
|
|
81
81
|
);
|
|
82
82
|
this.exit(1);
|
|
83
83
|
}
|
|
84
|
+
const apiKey = getApiKeyFromEnv();
|
|
85
|
+
if (apiKey) {
|
|
86
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
87
|
+
}
|
|
84
88
|
const client = await createRestClient(this.daemonUrl);
|
|
85
89
|
const storedAuth = await loadToken();
|
|
86
90
|
if (storedAuth) {
|
|
@@ -59,7 +59,7 @@ import chalk2 from "chalk";
|
|
|
59
59
|
|
|
60
60
|
// src/base-command.ts
|
|
61
61
|
init_auth();
|
|
62
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
62
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
63
63
|
import { getDaemonUrl } from "@agor/core/config";
|
|
64
64
|
import { Command } from "@oclif/core";
|
|
65
65
|
import chalk from "chalk";
|
|
@@ -79,6 +79,10 @@ var BaseCommand = class extends Command {
|
|
|
79
79
|
);
|
|
80
80
|
this.exit(1);
|
|
81
81
|
}
|
|
82
|
+
const apiKey = getApiKeyFromEnv();
|
|
83
|
+
if (apiKey) {
|
|
84
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
85
|
+
}
|
|
82
86
|
const client = await createRestClient(this.daemonUrl);
|
|
83
87
|
const storedAuth = await loadToken();
|
|
84
88
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import Table from "cli-table3";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -59,7 +59,7 @@ import chalk2 from "chalk";
|
|
|
59
59
|
|
|
60
60
|
// src/base-command.ts
|
|
61
61
|
init_auth();
|
|
62
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
62
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
63
63
|
import { getDaemonUrl } from "@agor/core/config";
|
|
64
64
|
import { Command } from "@oclif/core";
|
|
65
65
|
import chalk from "chalk";
|
|
@@ -79,6 +79,10 @@ var BaseCommand = class extends Command {
|
|
|
79
79
|
);
|
|
80
80
|
this.exit(1);
|
|
81
81
|
}
|
|
82
|
+
const apiKey = getApiKeyFromEnv();
|
|
83
|
+
if (apiKey) {
|
|
84
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
85
|
+
}
|
|
82
86
|
const client = await createRestClient(this.daemonUrl);
|
|
83
87
|
const storedAuth = await loadToken();
|
|
84
88
|
if (storedAuth) {
|
|
@@ -59,7 +59,7 @@ import chalk2 from "chalk";
|
|
|
59
59
|
|
|
60
60
|
// src/base-command.ts
|
|
61
61
|
init_auth();
|
|
62
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
62
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
63
63
|
import { getDaemonUrl } from "@agor/core/config";
|
|
64
64
|
import { Command } from "@oclif/core";
|
|
65
65
|
import chalk from "chalk";
|
|
@@ -79,6 +79,10 @@ var BaseCommand = class extends Command {
|
|
|
79
79
|
);
|
|
80
80
|
this.exit(1);
|
|
81
81
|
}
|
|
82
|
+
const apiKey = getApiKeyFromEnv();
|
|
83
|
+
if (apiKey) {
|
|
84
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
85
|
+
}
|
|
82
86
|
const client = await createRestClient(this.daemonUrl);
|
|
83
87
|
const storedAuth = await loadToken();
|
|
84
88
|
if (storedAuth) {
|
|
@@ -59,7 +59,7 @@ import chalk2 from "chalk";
|
|
|
59
59
|
|
|
60
60
|
// src/base-command.ts
|
|
61
61
|
init_auth();
|
|
62
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
62
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
63
63
|
import { getDaemonUrl } from "@agor/core/config";
|
|
64
64
|
import { Command } from "@oclif/core";
|
|
65
65
|
import chalk from "chalk";
|
|
@@ -79,6 +79,10 @@ var BaseCommand = class extends Command {
|
|
|
79
79
|
);
|
|
80
80
|
this.exit(1);
|
|
81
81
|
}
|
|
82
|
+
const apiKey = getApiKeyFromEnv();
|
|
83
|
+
if (apiKey) {
|
|
84
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
85
|
+
}
|
|
82
86
|
const client = await createRestClient(this.daemonUrl);
|
|
83
87
|
const storedAuth = await loadToken();
|
|
84
88
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import chalk2 from "chalk";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -62,7 +62,7 @@ import Table from "cli-table3";
|
|
|
62
62
|
|
|
63
63
|
// src/base-command.ts
|
|
64
64
|
init_auth();
|
|
65
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
65
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
66
66
|
import { getDaemonUrl } from "@agor/core/config";
|
|
67
67
|
import { Command } from "@oclif/core";
|
|
68
68
|
import chalk from "chalk";
|
|
@@ -82,6 +82,10 @@ var BaseCommand = class extends Command {
|
|
|
82
82
|
);
|
|
83
83
|
this.exit(1);
|
|
84
84
|
}
|
|
85
|
+
const apiKey = getApiKeyFromEnv();
|
|
86
|
+
if (apiKey) {
|
|
87
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
88
|
+
}
|
|
85
89
|
const client = await createRestClient(this.daemonUrl);
|
|
86
90
|
const storedAuth = await loadToken();
|
|
87
91
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import inquirer from "inquirer";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -63,7 +63,7 @@ import Table from "cli-table3";
|
|
|
63
63
|
|
|
64
64
|
// src/base-command.ts
|
|
65
65
|
init_auth();
|
|
66
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
66
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
67
67
|
import { getDaemonUrl } from "@agor/core/config";
|
|
68
68
|
import { Command } from "@oclif/core";
|
|
69
69
|
import chalk from "chalk";
|
|
@@ -83,6 +83,10 @@ var BaseCommand = class extends Command {
|
|
|
83
83
|
);
|
|
84
84
|
this.exit(1);
|
|
85
85
|
}
|
|
86
|
+
const apiKey = getApiKeyFromEnv();
|
|
87
|
+
if (apiKey) {
|
|
88
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
89
|
+
}
|
|
86
90
|
const client = await createRestClient(this.daemonUrl);
|
|
87
91
|
const storedAuth = await loadToken();
|
|
88
92
|
if (storedAuth) {
|
|
@@ -68,7 +68,7 @@ import chalk2 from "chalk";
|
|
|
68
68
|
|
|
69
69
|
// src/base-command.ts
|
|
70
70
|
init_auth();
|
|
71
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
71
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
72
72
|
import { getDaemonUrl } from "@agor/core/config";
|
|
73
73
|
import { Command } from "@oclif/core";
|
|
74
74
|
import chalk from "chalk";
|
|
@@ -88,6 +88,10 @@ var BaseCommand = class extends Command {
|
|
|
88
88
|
);
|
|
89
89
|
this.exit(1);
|
|
90
90
|
}
|
|
91
|
+
const apiKey = getApiKeyFromEnv();
|
|
92
|
+
if (apiKey) {
|
|
93
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
94
|
+
}
|
|
91
95
|
const client = await createRestClient(this.daemonUrl);
|
|
92
96
|
const storedAuth = await loadToken();
|
|
93
97
|
if (storedAuth) {
|
|
@@ -235,8 +239,7 @@ ${chalk2.blue("\u25CF")} Loading Claude Code session: ${chalk2.cyan(sessionId)}
|
|
|
235
239
|
genealogy: {
|
|
236
240
|
children: []
|
|
237
241
|
},
|
|
238
|
-
tasks: []
|
|
239
|
-
message_count: conversation.length
|
|
242
|
+
tasks: []
|
|
240
243
|
};
|
|
241
244
|
const sessionsService = client.service("sessions");
|
|
242
245
|
const created = await sessionsService.create(agorSession);
|
|
@@ -60,7 +60,7 @@ import inquirer from "inquirer";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -160,13 +164,7 @@ var UserCreate = class _UserCreate extends BaseCommand {
|
|
|
160
164
|
}),
|
|
161
165
|
role: Flags.string({
|
|
162
166
|
description: "User role",
|
|
163
|
-
options: [
|
|
164
|
-
/* 'owner', */
|
|
165
|
-
"admin",
|
|
166
|
-
"member",
|
|
167
|
-
"viewer"
|
|
168
|
-
],
|
|
169
|
-
// owner role unused
|
|
167
|
+
options: ["superadmin", "admin", "member", "viewer"],
|
|
170
168
|
default: "admin"
|
|
171
169
|
}),
|
|
172
170
|
"unix-username": Flags.string({
|
|
@@ -60,7 +60,7 @@ import inquirer from "inquirer";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -55,7 +55,7 @@ var UserList = class extends Command {
|
|
|
55
55
|
});
|
|
56
56
|
for (const user of userList) {
|
|
57
57
|
const shortId = user.user_id.substring(0, 8);
|
|
58
|
-
const roleColor = user.role === "
|
|
58
|
+
const roleColor = user.role === "superadmin" ? chalk.red : user.role === "admin" ? chalk.yellow : user.role === "member" ? chalk.green : chalk.gray;
|
|
59
59
|
table.push([
|
|
60
60
|
chalk.gray(shortId),
|
|
61
61
|
user.email,
|
|
@@ -60,7 +60,7 @@ import inquirer from "inquirer";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -164,7 +168,7 @@ var UserUpdate = class _UserUpdate extends BaseCommand {
|
|
|
164
168
|
}),
|
|
165
169
|
role: Flags.string({
|
|
166
170
|
description: "New role",
|
|
167
|
-
options: ["
|
|
171
|
+
options: ["superadmin", "admin", "member", "viewer"]
|
|
168
172
|
}),
|
|
169
173
|
"unix-username": Flags.string({
|
|
170
174
|
description: "New Unix username for shell access"
|
|
@@ -250,7 +254,7 @@ ${chalk2.gray(` No user matching: ${args.user}`)}`
|
|
|
250
254
|
name: "role",
|
|
251
255
|
message: "New role:",
|
|
252
256
|
when: fields.includes("role"),
|
|
253
|
-
choices: ["
|
|
257
|
+
choices: ["superadmin", "admin", "member", "viewer"],
|
|
254
258
|
default: user.role
|
|
255
259
|
},
|
|
256
260
|
{
|
|
@@ -59,7 +59,7 @@ import chalk2 from "chalk";
|
|
|
59
59
|
|
|
60
60
|
// src/base-command.ts
|
|
61
61
|
init_auth();
|
|
62
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
62
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
63
63
|
import { getDaemonUrl } from "@agor/core/config";
|
|
64
64
|
import { Command } from "@oclif/core";
|
|
65
65
|
import chalk from "chalk";
|
|
@@ -79,6 +79,10 @@ var BaseCommand = class extends Command {
|
|
|
79
79
|
);
|
|
80
80
|
this.exit(1);
|
|
81
81
|
}
|
|
82
|
+
const apiKey = getApiKeyFromEnv();
|
|
83
|
+
if (apiKey) {
|
|
84
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
85
|
+
}
|
|
82
86
|
const client = await createRestClient(this.daemonUrl);
|
|
83
87
|
const storedAuth = await loadToken();
|
|
84
88
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import chalk2 from "chalk";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -59,7 +59,7 @@ import chalk2 from "chalk";
|
|
|
59
59
|
|
|
60
60
|
// src/base-command.ts
|
|
61
61
|
init_auth();
|
|
62
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
62
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
63
63
|
import { getDaemonUrl } from "@agor/core/config";
|
|
64
64
|
import { Command } from "@oclif/core";
|
|
65
65
|
import chalk from "chalk";
|
|
@@ -79,6 +79,10 @@ var BaseCommand = class extends Command {
|
|
|
79
79
|
);
|
|
80
80
|
this.exit(1);
|
|
81
81
|
}
|
|
82
|
+
const apiKey = getApiKeyFromEnv();
|
|
83
|
+
if (apiKey) {
|
|
84
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
85
|
+
}
|
|
82
86
|
const client = await createRestClient(this.daemonUrl);
|
|
83
87
|
const storedAuth = await loadToken();
|
|
84
88
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import chalk2 from "chalk";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import chalk2 from "chalk";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import chalk2 from "chalk";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import chalk2 from "chalk";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -62,7 +62,7 @@ import Table from "cli-table3";
|
|
|
62
62
|
|
|
63
63
|
// src/base-command.ts
|
|
64
64
|
init_auth();
|
|
65
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
65
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
66
66
|
import { getDaemonUrl } from "@agor/core/config";
|
|
67
67
|
import { Command } from "@oclif/core";
|
|
68
68
|
import chalk from "chalk";
|
|
@@ -82,6 +82,10 @@ var BaseCommand = class extends Command {
|
|
|
82
82
|
);
|
|
83
83
|
this.exit(1);
|
|
84
84
|
}
|
|
85
|
+
const apiKey = getApiKeyFromEnv();
|
|
86
|
+
if (apiKey) {
|
|
87
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
88
|
+
}
|
|
85
89
|
const client = await createRestClient(this.daemonUrl);
|
|
86
90
|
const storedAuth = await loadToken();
|
|
87
91
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import chalk2 from "chalk";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|
|
@@ -60,7 +60,7 @@ import chalk2 from "chalk";
|
|
|
60
60
|
|
|
61
61
|
// src/base-command.ts
|
|
62
62
|
init_auth();
|
|
63
|
-
import { createRestClient, isDaemonRunning } from "@agor/core/api";
|
|
63
|
+
import { createRestClient, getApiKeyFromEnv, isDaemonRunning } from "@agor/core/api";
|
|
64
64
|
import { getDaemonUrl } from "@agor/core/config";
|
|
65
65
|
import { Command } from "@oclif/core";
|
|
66
66
|
import chalk from "chalk";
|
|
@@ -80,6 +80,10 @@ var BaseCommand = class extends Command {
|
|
|
80
80
|
);
|
|
81
81
|
this.exit(1);
|
|
82
82
|
}
|
|
83
|
+
const apiKey = getApiKeyFromEnv();
|
|
84
|
+
if (apiKey) {
|
|
85
|
+
return await createRestClient(this.daemonUrl, apiKey);
|
|
86
|
+
}
|
|
83
87
|
const client = await createRestClient(this.daemonUrl);
|
|
84
88
|
const storedAuth = await loadToken();
|
|
85
89
|
if (storedAuth) {
|