agor-live 0.17.2 → 0.17.3
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/lib/banner.d.ts +1 -1
- package/dist/cli/lib/banner.js +1 -1
- package/dist/cli/lib/check-migrations.test.js +9627 -9112
- package/dist/cli/lib/daemon-manager.test.js +9632 -9117
- package/dist/cli/lib/help.js +1 -1
- package/dist/core/api/index.d.cts +3 -3
- package/dist/core/api/index.d.ts +3 -3
- package/dist/core/{board-comment-DIdOJrSF.d.cts → board-comment-CCFVVN7K.d.cts} +0 -2
- package/dist/core/{board-comment-3N-jSgsk.d.ts → board-comment-iT3DgZb4.d.ts} +0 -2
- package/dist/core/claude/index.cjs +29 -19
- package/dist/core/claude/index.d.cts +2 -2
- package/dist/core/claude/index.d.ts +2 -2
- package/dist/core/claude/index.js +32 -33
- package/dist/core/client/index.cjs +49 -0
- package/dist/core/client/index.d.cts +7 -7
- package/dist/core/client/index.d.ts +7 -7
- package/dist/core/client/index.js +46 -0
- package/dist/core/{client-B5PyIvNc.d.cts → client-CemqXk0v.d.cts} +116 -100
- package/dist/core/{client-C1CsRi19.d.ts → client-uYEOha6g.d.ts} +116 -100
- package/dist/core/config/browser.d.cts +3 -3
- package/dist/core/config/browser.d.ts +3 -3
- package/dist/core/config/index.cjs +84 -41
- package/dist/core/config/index.d.cts +59 -17
- package/dist/core/config/index.d.ts +59 -17
- package/dist/core/config/index.js +86 -55
- package/dist/core/{config-manager-TxxjFMRd.d.cts → config-manager-B8TP9Kz0.d.cts} +12 -3
- package/dist/core/{config-manager-DTrsj6G3.d.ts → config-manager-CDEB0FY4.d.ts} +12 -3
- package/dist/core/{config-services-YEZ4DwCD.d.cts → config-services-CXyQKEK5.d.cts} +1 -1
- package/dist/core/{config-services-DcO2GRgh.d.ts → config-services-DhM7_yWn.d.ts} +1 -1
- package/dist/core/db/index.cjs +235 -175
- package/dist/core/db/index.d.cts +190 -147
- package/dist/core/db/index.d.ts +190 -147
- package/dist/core/db/index.js +239 -190
- package/dist/core/db/session-guard.d.cts +4 -4
- package/dist/core/db/session-guard.d.ts +4 -4
- package/dist/core/drizzle/postgres/0028_queued_tasks.sql +8 -0
- package/dist/core/drizzle/postgres/0030_migrate_queued_messages.sql +24 -0
- package/dist/core/drizzle/postgres/0031_restructure_agentic_tool_config.sql +201 -0
- package/dist/core/drizzle/postgres/meta/_journal.json +21 -0
- package/dist/core/drizzle/sqlite/0039_queued_tasks.sql +13 -0
- package/dist/core/drizzle/sqlite/0040_migrate_queued_messages.sql +61 -0
- package/dist/core/drizzle/sqlite/0041_restructure_agentic_tool_config.sql +204 -0
- package/dist/core/drizzle/sqlite/meta/_journal.json +21 -0
- package/dist/core/gateway/index.d.cts +2 -2
- package/dist/core/gateway/index.d.ts +2 -2
- package/dist/core/{gateway-BnOlAelY.d.cts → gateway-BWq4j_Ll.d.cts} +1 -1
- package/dist/core/{gateway-B_4X-v07.d.ts → gateway-C3Jm_akw.d.ts} +1 -1
- package/dist/core/git/index.d.cts +4 -4
- package/dist/core/git/index.d.ts +4 -4
- package/dist/core/index.cjs +474 -201
- package/dist/core/index.d.cts +12 -10
- package/dist/core/index.d.ts +12 -10
- package/dist/core/index.js +473 -216
- package/dist/core/lib/feathers-validation.cjs +2 -1
- package/dist/core/lib/feathers-validation.d.cts +1 -1
- package/dist/core/lib/feathers-validation.d.ts +1 -1
- package/dist/core/lib/feathers-validation.js +2 -1
- package/dist/core/mcp/index.cjs +26 -16
- package/dist/core/mcp/index.js +26 -16
- package/dist/core/{message-DinITA7a.d.cts → message-CSWOsdcZ.d.cts} +1 -9
- package/dist/core/{message-CHUUP6OS.d.ts → message-DZa8g0s0.d.ts} +1 -9
- package/dist/core/models/index.d.cts +3 -73
- package/dist/core/models/index.d.ts +3 -73
- package/dist/core/package.json +5 -0
- package/dist/core/permissions/index.d.cts +1 -1
- package/dist/core/permissions/index.d.ts +1 -1
- package/dist/core/resolve-config-BcL-Hv8k.d.ts +74 -0
- package/dist/core/resolve-config-DTCxuSBx.d.cts +74 -0
- package/dist/core/seed/index.cjs +145 -98
- package/dist/core/seed/index.js +148 -112
- package/dist/core/{session-guard-C0LkDEN7.d.ts → session-guard-BFqVtBoS.d.ts} +1 -1
- package/dist/core/{session-guard-kvAx_8Fb.d.cts → session-guard-KHh0cnET.d.cts} +1 -1
- package/dist/core/sessions/index.cjs +184 -0
- package/dist/core/sessions/index.d.cts +79 -0
- package/dist/core/sessions/index.d.ts +79 -0
- package/dist/core/sessions/index.js +157 -0
- package/dist/core/{task-BLPFCORT.d.ts → task-BHV-YHg1.d.ts} +41 -3
- package/dist/core/{task-wht1RJEL.d.cts → task-C2Hy7H6u.d.cts} +41 -3
- package/dist/core/templates/session-context.d.cts +1 -1
- package/dist/core/templates/session-context.d.ts +1 -1
- package/dist/core/tools/mcp/oauth-mcp-transport.cjs +168 -66
- package/dist/core/tools/mcp/oauth-mcp-transport.d.cts +92 -16
- package/dist/core/tools/mcp/oauth-mcp-transport.d.ts +92 -16
- package/dist/core/tools/mcp/oauth-mcp-transport.js +165 -66
- package/dist/core/tools/mcp/oauth-refresh.cjs +43 -53
- package/dist/core/tools/mcp/oauth-refresh.d.cts +3 -3
- package/dist/core/tools/mcp/oauth-refresh.d.ts +3 -3
- package/dist/core/tools/mcp/oauth-refresh.js +58 -78
- package/dist/core/types/index.cjs +49 -0
- package/dist/core/types/index.d.cts +7 -7
- package/dist/core/types/index.d.ts +7 -7
- package/dist/core/types/index.js +46 -0
- package/dist/core/{types-DNqfdt1z.d.cts → types-D4Rl6ZKN.d.cts} +18 -2
- package/dist/core/{types-DqPMmTad.d.ts → types-n61iaXub.d.ts} +18 -2
- package/dist/core/unix/index.cjs +164 -110
- package/dist/core/unix/index.d.cts +7 -8
- package/dist/core/unix/index.d.ts +7 -8
- package/dist/core/unix/index.js +167 -124
- package/dist/core/{user-DkNdeFoz.d.cts → user-CpfkcV2C.d.cts} +139 -13
- package/dist/core/{user-BfVWBmXA.d.ts → user-DP-XZMIM.d.ts} +139 -13
- package/dist/core/utils/permission-mode-mapper.d.cts +0 -2
- package/dist/core/utils/permission-mode-mapper.d.ts +0 -2
- package/dist/daemon/index.js +2976 -2791
- package/dist/daemon/main.js +2976 -2791
- package/dist/daemon/mcp/server.js +177 -134
- package/dist/daemon/mcp/tools/analytics.js +19 -5
- package/dist/daemon/mcp/tools/artifacts.js +19 -5
- package/dist/daemon/mcp/tools/boards.js +19 -5
- package/dist/daemon/mcp/tools/card-types.js +19 -5
- package/dist/daemon/mcp/tools/cards.js +19 -5
- package/dist/daemon/mcp/tools/environment.js +19 -5
- package/dist/daemon/mcp/tools/mcp-servers.d.ts +29 -2
- package/dist/daemon/mcp/tools/mcp-servers.js +64 -54
- package/dist/daemon/mcp/tools/messages.js +19 -5
- package/dist/daemon/mcp/tools/repos.js +19 -5
- package/dist/daemon/mcp/tools/search.js +19 -5
- package/dist/daemon/mcp/tools/sessions.js +175 -53
- package/dist/daemon/mcp/tools/tasks.js +19 -5
- package/dist/daemon/mcp/tools/users.js +19 -5
- package/dist/daemon/mcp/tools/worktrees.js +37 -38
- package/dist/daemon/register-hooks.js +52 -1
- package/dist/daemon/register-routes.js +436 -424
- package/dist/daemon/register-services.js +255 -140
- package/dist/daemon/services/config.d.ts +7 -1
- package/dist/daemon/services/config.js +3 -2
- package/dist/daemon/services/gateway.js +28 -15
- package/dist/daemon/services/mcp-servers.d.ts +7 -2
- package/dist/daemon/services/repos.js +2 -0
- package/dist/daemon/services/sessions.d.ts +1 -1
- package/dist/daemon/services/sessions.js +8 -16
- package/dist/daemon/services/tasks.js +16 -10
- package/dist/daemon/services/terminals.js +2 -0
- package/dist/daemon/services/users.d.ts +27 -11
- package/dist/daemon/services/users.js +89 -43
- package/dist/daemon/services/worktree-owners.js +2 -0
- package/dist/daemon/services/worktrees.js +2 -0
- package/dist/daemon/setup/index.js +5 -2
- package/dist/daemon/setup/socketio.d.ts +10 -1
- package/dist/daemon/setup/socketio.js +7 -3
- package/dist/daemon/startup.js +13 -1
- package/dist/daemon/utils/apply-session-config-defaults.d.ts +54 -0
- package/dist/daemon/utils/apply-session-config-defaults.js +46 -0
- package/dist/daemon/utils/spawn-executor.js +2 -0
- package/dist/daemon/utils/worktree-authorization.d.ts +2 -4
- package/dist/executor/commands/zellij.d.ts.map +1 -1
- package/dist/executor/commands/zellij.js +2 -2
- package/dist/executor/handlers/sdk/base-executor.d.ts +4 -3
- package/dist/executor/handlers/sdk/base-executor.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/base-executor.js +11 -5
- package/dist/executor/payload-types.d.ts +14 -14
- package/dist/executor/sdk-handlers/claude/claude-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/claude-tool.js +9 -4
- package/dist/executor/sdk-handlers/claude/import/task-extractor.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/import/task-extractor.js +0 -5
- package/dist/executor/sdk-handlers/claude/message-builder.d.ts +23 -2
- package/dist/executor/sdk-handlers/claude/message-builder.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/message-builder.js +33 -2
- package/dist/executor/sdk-handlers/claude/permissions/permission-hooks.d.ts +9 -1
- package/dist/executor/sdk-handlers/claude/permissions/permission-hooks.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/permissions/permission-hooks.js +12 -0
- package/dist/executor/sdk-handlers/claude/query-builder.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/claude/query-builder.js +11 -6
- package/dist/executor/sdk-handlers/codex/codex-tool.d.ts +0 -5
- package/dist/executor/sdk-handlers/codex/codex-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/codex/codex-tool.js +9 -24
- package/dist/executor/sdk-handlers/codex/prompt-service.d.ts +15 -2
- package/dist/executor/sdk-handlers/codex/prompt-service.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/codex/prompt-service.js +39 -10
- package/dist/executor/sdk-handlers/copilot/copilot-tool.d.ts +0 -5
- package/dist/executor/sdk-handlers/copilot/copilot-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/copilot/copilot-tool.js +5 -22
- package/dist/executor/sdk-handlers/gemini/gemini-tool.d.ts +0 -5
- package/dist/executor/sdk-handlers/gemini/gemini-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/gemini/gemini-tool.js +9 -24
- package/dist/ui/assets/{CodeEditor.inner-CO-5PAnZ.js → CodeEditor.inner-CVLqZBtM.js} +1 -1
- package/dist/ui/assets/{CodeEditor.inner-CO-5PAnZ.js.gz → CodeEditor.inner-CVLqZBtM.js.gz} +0 -0
- package/dist/ui/assets/{_basePickBy-DfxojsEt.js → _basePickBy-CFq5ES2J.js} +1 -1
- package/dist/ui/assets/_basePickBy-CFq5ES2J.js.gz +0 -0
- package/dist/ui/assets/{_baseUniq-DWFPJOTC.js → _baseUniq-C4uKBvNt.js} +1 -1
- package/dist/ui/assets/_baseUniq-C4uKBvNt.js.gz +0 -0
- package/dist/ui/assets/{arc-vMZ_XGSI.js → arc-BnrcXDJJ.js} +1 -1
- package/dist/ui/assets/arc-BnrcXDJJ.js.gz +0 -0
- package/dist/ui/assets/{architectureDiagram-VXUJARFQ-DGpk_uOD.js → architectureDiagram-VXUJARFQ-DD9HD-WR.js} +1 -1
- package/dist/ui/assets/architectureDiagram-VXUJARFQ-DD9HD-WR.js.gz +0 -0
- package/dist/ui/assets/{base-80a1f760-BsVlOKqO.js → base-80a1f760-BK1VmxWU.js} +1 -1
- package/dist/ui/assets/{blockDiagram-VD42YOAC-BkRnxc94.js → blockDiagram-VD42YOAC-LBAckZZe.js} +1 -1
- package/dist/ui/assets/blockDiagram-VD42YOAC-LBAckZZe.js.gz +0 -0
- package/dist/ui/assets/{c4Diagram-YG6GDRKO-Dcf-anJy.js → c4Diagram-YG6GDRKO-yEdylcYP.js} +1 -1
- package/dist/ui/assets/{c4Diagram-YG6GDRKO-Dcf-anJy.js.gz → c4Diagram-YG6GDRKO-yEdylcYP.js.gz} +0 -0
- package/dist/ui/assets/channel-CMN-iY3Q.js +1 -0
- package/dist/ui/assets/{chunk-4BX2VUAB-C4oVWDo8.js → chunk-4BX2VUAB-IHtzKbmQ.js} +1 -1
- package/dist/ui/assets/{chunk-55IACEB6-CsBbTu57.js → chunk-55IACEB6-C4o5tv_F.js} +1 -1
- package/dist/ui/assets/{chunk-B4BG7PRW-DtkeCZab.js → chunk-B4BG7PRW-EPkzLvlB.js} +1 -1
- package/dist/ui/assets/chunk-B4BG7PRW-EPkzLvlB.js.gz +0 -0
- package/dist/ui/assets/{chunk-DI55MBZ5-BQ_asW-1.js → chunk-DI55MBZ5-CW-Bzkzj.js} +1 -1
- package/dist/ui/assets/chunk-DI55MBZ5-CW-Bzkzj.js.gz +0 -0
- package/dist/ui/assets/{chunk-FMBD7UC4-DAdcLNG-.js → chunk-FMBD7UC4-DvGU02Io.js} +1 -1
- package/dist/ui/assets/{chunk-QN33PNHL-Do2zad3m.js → chunk-QN33PNHL-C-PIlz9n.js} +1 -1
- package/dist/ui/assets/{chunk-QZHKN3VN-CyhMmSdC.js → chunk-QZHKN3VN-BhpJFm6h.js} +1 -1
- package/dist/ui/assets/{chunk-TZMSLE5B-DlPypnIq.js → chunk-TZMSLE5B-Biake8IU.js} +1 -1
- package/dist/ui/assets/chunk-TZMSLE5B-Biake8IU.js.gz +0 -0
- package/dist/ui/assets/classDiagram-2ON5EDUG-Bz1et8oA.js +1 -0
- package/dist/ui/assets/classDiagram-v2-WZHVMYZB-Bz1et8oA.js +1 -0
- package/dist/ui/assets/clone-Dxo5sEAf.js +1 -0
- package/dist/ui/assets/{consoleHook-59e792cb-DHYIclEd.js → consoleHook-59e792cb-BzEkHWE8.js} +1 -1
- package/dist/ui/assets/consoleHook-59e792cb-BzEkHWE8.js.gz +0 -0
- package/dist/ui/assets/{cose-bilkent-S5V4N54A-DotJH9qH.js → cose-bilkent-S5V4N54A-vAiVi74s.js} +1 -1
- package/dist/ui/assets/cose-bilkent-S5V4N54A-vAiVi74s.js.gz +0 -0
- package/dist/ui/assets/{dagre-6UL2VRFP-Btssr8QF.js → dagre-6UL2VRFP-C8w7TshD.js} +1 -1
- package/dist/ui/assets/dagre-6UL2VRFP-C8w7TshD.js.gz +0 -0
- package/dist/ui/assets/{diagram-PSM6KHXK-D5_Jkog3.js → diagram-PSM6KHXK-CvnjEmtQ.js} +1 -1
- package/dist/ui/assets/diagram-PSM6KHXK-CvnjEmtQ.js.gz +0 -0
- package/dist/ui/assets/{diagram-QEK2KX5R-DlPEVSL5.js → diagram-QEK2KX5R-D245unng.js} +1 -1
- package/dist/ui/assets/diagram-QEK2KX5R-D245unng.js.gz +0 -0
- package/dist/ui/assets/{diagram-S2PKOQOG-CjO1k8aG.js → diagram-S2PKOQOG-DgGUHL8Z.js} +1 -1
- package/dist/ui/assets/diagram-S2PKOQOG-DgGUHL8Z.js.gz +0 -0
- package/dist/ui/assets/{erDiagram-Q2GNP2WA-3cO02-K3.js → erDiagram-Q2GNP2WA-Cf5paK9b.js} +1 -1
- package/dist/ui/assets/erDiagram-Q2GNP2WA-Cf5paK9b.js.gz +0 -0
- package/dist/ui/assets/{flowDiagram-NV44I4VS-CajTpSxI.js → flowDiagram-NV44I4VS-BJpHmEXV.js} +1 -1
- package/dist/ui/assets/flowDiagram-NV44I4VS-BJpHmEXV.js.gz +0 -0
- package/dist/ui/assets/{ganttDiagram-LVOFAZNH-CnY_bV3o.js → ganttDiagram-LVOFAZNH-zOyTZcXC.js} +1 -1
- package/dist/ui/assets/{ganttDiagram-LVOFAZNH-CnY_bV3o.js.gz → ganttDiagram-LVOFAZNH-zOyTZcXC.js.gz} +0 -0
- package/dist/ui/assets/{gitGraphDiagram-NY62KEGX-CH16bg-j.js → gitGraphDiagram-NY62KEGX-B0uxwqMv.js} +1 -1
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-B0uxwqMv.js.gz +0 -0
- package/dist/ui/assets/{graph-IQoZvE3o.js → graph-NWXc73TO.js} +1 -1
- package/dist/ui/assets/graph-NWXc73TO.js.gz +0 -0
- package/dist/ui/assets/{index-599aeaf7-RUCkgwsg.js → index-599aeaf7-BKmNqoNF.js} +1 -1
- package/dist/ui/assets/index-599aeaf7-BKmNqoNF.js.gz +0 -0
- package/dist/ui/assets/{index-B3AvIgqP.js → index-BRYNiHLB.js} +345 -349
- package/dist/ui/assets/index-BRYNiHLB.js.gz +0 -0
- package/dist/ui/assets/{index-QV5-5yA2.js → index-BX6Xmhes.js} +1 -1
- package/dist/ui/assets/index-BX6Xmhes.js.gz +0 -0
- package/dist/ui/assets/{index-ChmRuj_T.js → index-W1hIq1uU.js} +1 -1
- package/dist/ui/assets/index-W1hIq1uU.js.gz +0 -0
- package/dist/ui/assets/{index-C-quzPWC.js → index-ctuok0zf.js} +1 -1
- package/dist/ui/assets/index-ctuok0zf.js.gz +0 -0
- package/dist/ui/assets/{infoDiagram-ER5ION4S-2e4gZVGT.js → infoDiagram-ER5ION4S-CquCuoTH.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-XKPGCS4Q-B5bgV3GH.js → journeyDiagram-XKPGCS4Q-B_XkufZ8.js} +1 -1
- package/dist/ui/assets/journeyDiagram-XKPGCS4Q-B_XkufZ8.js.gz +0 -0
- package/dist/ui/assets/{kanban-definition-3W4ZIXB7-Bp-aWRSc.js → kanban-definition-3W4ZIXB7-C2Bo9HkB.js} +1 -1
- package/dist/ui/assets/kanban-definition-3W4ZIXB7-C2Bo9HkB.js.gz +0 -0
- package/dist/ui/assets/katex-C6wkUDai.css +1 -0
- package/dist/ui/assets/{katex-DGRguze2.css.gz → katex-C6wkUDai.css.gz} +0 -0
- package/dist/ui/assets/{layout-BH-2XJZq.js → layout-D9A7Uaku.js} +1 -1
- package/dist/ui/assets/layout-D9A7Uaku.js.gz +0 -0
- package/dist/ui/assets/{linear-DCYXhl_f.js → linear-BJUwJsxE.js} +1 -1
- package/dist/ui/assets/linear-BJUwJsxE.js.gz +0 -0
- package/dist/ui/assets/{mermaid.core-BAuL6kgQ.js → mermaid.core-DcOEcjcA.js} +5 -5
- package/dist/ui/assets/mermaid.core-DcOEcjcA.js.gz +0 -0
- package/dist/ui/assets/{mindmap-definition-VGOIOE7T-DpH5N-N0.js → mindmap-definition-VGOIOE7T-BFT1m7BG.js} +1 -1
- package/dist/ui/assets/mindmap-definition-VGOIOE7T-BFT1m7BG.js.gz +0 -0
- package/dist/ui/assets/{pieDiagram-ADFJNKIX-BB8fBxj1.js → pieDiagram-ADFJNKIX-BFaX1oBV.js} +1 -1
- package/dist/ui/assets/pieDiagram-ADFJNKIX-BFaX1oBV.js.gz +0 -0
- package/dist/ui/assets/{quadrantDiagram-AYHSOK5B-D6oZLdUD.js → quadrantDiagram-AYHSOK5B-DQps5392.js} +1 -1
- package/dist/ui/assets/quadrantDiagram-AYHSOK5B-DQps5392.js.gz +0 -0
- package/dist/ui/assets/{requirementDiagram-UZGBJVZJ-B4uGPp8w.js → requirementDiagram-UZGBJVZJ-3EZ5KWEi.js} +1 -1
- package/dist/ui/assets/requirementDiagram-UZGBJVZJ-3EZ5KWEi.js.gz +0 -0
- package/dist/ui/assets/{sankeyDiagram-TZEHDZUN-MXhIjhme.js → sankeyDiagram-TZEHDZUN-D0qcydqq.js} +1 -1
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-D0qcydqq.js.gz +0 -0
- package/dist/ui/assets/{sequenceDiagram-WL72ISMW-Cm53TYug.js → sequenceDiagram-WL72ISMW-BCR5gaaN.js} +1 -1
- package/dist/ui/assets/sequenceDiagram-WL72ISMW-BCR5gaaN.js.gz +0 -0
- package/dist/ui/assets/{stateDiagram-FKZM4ZOC-BVuxUkj5.js → stateDiagram-FKZM4ZOC-BvX4FLQ9.js} +1 -1
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-BvX4FLQ9.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-CxLDvgTF.js +1 -0
- package/dist/ui/assets/{timeline-definition-IT6M3QCI-CMypNiEP.js → timeline-definition-IT6M3QCI-_AWp5LJn.js} +1 -1
- package/dist/ui/assets/timeline-definition-IT6M3QCI-_AWp5LJn.js.gz +0 -0
- package/dist/ui/assets/{treemap-KMMF4GRG-BEtnV3BT.js → treemap-KMMF4GRG-BZ9FBl5-.js} +1 -1
- package/dist/ui/assets/treemap-KMMF4GRG-BZ9FBl5-.js.gz +0 -0
- package/dist/ui/assets/{xychartDiagram-PRI3JC2R-BnioEYUM.js → xychartDiagram-PRI3JC2R-_wB7yuVd.js} +1 -1
- package/dist/ui/assets/xychartDiagram-PRI3JC2R-_wB7yuVd.js.gz +0 -0
- package/dist/ui/index.html +1 -1
- package/package.json +8 -8
- package/dist/ui/assets/_basePickBy-DfxojsEt.js.gz +0 -0
- package/dist/ui/assets/_baseUniq-DWFPJOTC.js.gz +0 -0
- package/dist/ui/assets/arc-vMZ_XGSI.js.gz +0 -0
- package/dist/ui/assets/architectureDiagram-VXUJARFQ-DGpk_uOD.js.gz +0 -0
- package/dist/ui/assets/blockDiagram-VD42YOAC-BkRnxc94.js.gz +0 -0
- package/dist/ui/assets/channel-B9aI4bYN.js +0 -1
- package/dist/ui/assets/chunk-B4BG7PRW-DtkeCZab.js.gz +0 -0
- package/dist/ui/assets/chunk-DI55MBZ5-BQ_asW-1.js.gz +0 -0
- package/dist/ui/assets/chunk-TZMSLE5B-DlPypnIq.js.gz +0 -0
- package/dist/ui/assets/classDiagram-2ON5EDUG-p-68WO4Z.js +0 -1
- package/dist/ui/assets/classDiagram-v2-WZHVMYZB-p-68WO4Z.js +0 -1
- package/dist/ui/assets/clone-DzK5ogfn.js +0 -1
- package/dist/ui/assets/consoleHook-59e792cb-DHYIclEd.js.gz +0 -0
- package/dist/ui/assets/cose-bilkent-S5V4N54A-DotJH9qH.js.gz +0 -0
- package/dist/ui/assets/dagre-6UL2VRFP-Btssr8QF.js.gz +0 -0
- package/dist/ui/assets/diagram-PSM6KHXK-D5_Jkog3.js.gz +0 -0
- package/dist/ui/assets/diagram-QEK2KX5R-DlPEVSL5.js.gz +0 -0
- package/dist/ui/assets/diagram-S2PKOQOG-CjO1k8aG.js.gz +0 -0
- package/dist/ui/assets/erDiagram-Q2GNP2WA-3cO02-K3.js.gz +0 -0
- package/dist/ui/assets/flowDiagram-NV44I4VS-CajTpSxI.js.gz +0 -0
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-CH16bg-j.js.gz +0 -0
- package/dist/ui/assets/graph-IQoZvE3o.js.gz +0 -0
- package/dist/ui/assets/index-599aeaf7-RUCkgwsg.js.gz +0 -0
- package/dist/ui/assets/index-B3AvIgqP.js.gz +0 -0
- package/dist/ui/assets/index-C-quzPWC.js.gz +0 -0
- package/dist/ui/assets/index-ChmRuj_T.js.gz +0 -0
- package/dist/ui/assets/index-QV5-5yA2.js.gz +0 -0
- package/dist/ui/assets/journeyDiagram-XKPGCS4Q-B5bgV3GH.js.gz +0 -0
- package/dist/ui/assets/kanban-definition-3W4ZIXB7-Bp-aWRSc.js.gz +0 -0
- package/dist/ui/assets/katex-DGRguze2.css +0 -1
- package/dist/ui/assets/layout-BH-2XJZq.js.gz +0 -0
- package/dist/ui/assets/linear-DCYXhl_f.js.gz +0 -0
- package/dist/ui/assets/mermaid.core-BAuL6kgQ.js.gz +0 -0
- package/dist/ui/assets/mindmap-definition-VGOIOE7T-DpH5N-N0.js.gz +0 -0
- package/dist/ui/assets/pieDiagram-ADFJNKIX-BB8fBxj1.js.gz +0 -0
- package/dist/ui/assets/quadrantDiagram-AYHSOK5B-D6oZLdUD.js.gz +0 -0
- package/dist/ui/assets/requirementDiagram-UZGBJVZJ-B4uGPp8w.js.gz +0 -0
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-MXhIjhme.js.gz +0 -0
- package/dist/ui/assets/sequenceDiagram-WL72ISMW-Cm53TYug.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-BVuxUkj5.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-8Jeww6Dc.js +0 -1
- package/dist/ui/assets/timeline-definition-IT6M3QCI-CMypNiEP.js.gz +0 -0
- package/dist/ui/assets/treemap-KMMF4GRG-BEtnV3BT.js.gz +0 -0
- package/dist/ui/assets/xychartDiagram-PRI3JC2R-BnioEYUM.js.gz +0 -0
|
@@ -69,6 +69,123 @@ interface DefaultAgenticConfig {
|
|
|
69
69
|
opencode?: DefaultAgenticToolConfig;
|
|
70
70
|
copilot?: DefaultAgenticToolConfig;
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Per-tool credential field shapes.
|
|
74
|
+
*
|
|
75
|
+
* Field names equal the env var names exported into the SDK CLI's environment.
|
|
76
|
+
* Storage values are encrypted at rest; the public DTO (User.agentic_tools)
|
|
77
|
+
* exposes the same field names with `boolean` presence flags.
|
|
78
|
+
*/
|
|
79
|
+
interface ClaudeCodeConfig {
|
|
80
|
+
ANTHROPIC_API_KEY?: string;
|
|
81
|
+
CLAUDE_CODE_OAUTH_TOKEN?: string;
|
|
82
|
+
ANTHROPIC_AUTH_TOKEN?: string;
|
|
83
|
+
ANTHROPIC_BASE_URL?: string;
|
|
84
|
+
}
|
|
85
|
+
interface CodexConfig {
|
|
86
|
+
OPENAI_API_KEY?: string;
|
|
87
|
+
OPENAI_BASE_URL?: string;
|
|
88
|
+
}
|
|
89
|
+
interface GeminiConfig {
|
|
90
|
+
GEMINI_API_KEY?: string;
|
|
91
|
+
}
|
|
92
|
+
interface CopilotConfig {
|
|
93
|
+
COPILOT_GITHUB_TOKEN?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Per-tool credential map. Each tool's config is independent and
|
|
97
|
+
* scoped to its own SDK at session-spawn time.
|
|
98
|
+
*/
|
|
99
|
+
interface AgenticToolsConfig {
|
|
100
|
+
'claude-code'?: ClaudeCodeConfig;
|
|
101
|
+
codex?: CodexConfig;
|
|
102
|
+
gemini?: GeminiConfig;
|
|
103
|
+
copilot?: CopilotConfig;
|
|
104
|
+
opencode?: Record<string, never>;
|
|
105
|
+
}
|
|
106
|
+
/** Union of all valid env-var-named fields across all tool configs. */
|
|
107
|
+
type AgenticToolConfigField = keyof ClaudeCodeConfig | keyof CodexConfig | keyof GeminiConfig | keyof CopilotConfig;
|
|
108
|
+
/**
|
|
109
|
+
* Public DTO shape: per-tool credential presence flags.
|
|
110
|
+
*
|
|
111
|
+
* Flips every field of every tool config from `string` (encrypted) to `boolean`
|
|
112
|
+
* (set/unset). Used by `User.agentic_tools` and the user-facing API responses
|
|
113
|
+
* — the daemon never returns decrypted credential values to clients.
|
|
114
|
+
*/
|
|
115
|
+
type AgenticToolsStatus = {
|
|
116
|
+
[Tool in keyof AgenticToolsConfig]?: AgenticToolsConfig[Tool] extends infer Cfg ? {
|
|
117
|
+
[Field in keyof Cfg]?: boolean;
|
|
118
|
+
} : never;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Encrypted-at-rest projection of `AgenticToolsConfig` — the on-disk shape of
|
|
122
|
+
* `users.data.agentic_tools`. Each field's `string` (plaintext) is replaced
|
|
123
|
+
* with the encrypted ciphertext bytes (also a string at the storage layer).
|
|
124
|
+
*
|
|
125
|
+
* Lives next to `AgenticToolsConfig` so the canonical type, the public DTO,
|
|
126
|
+
* and the storage projection move together. Imported by the repo (writer/
|
|
127
|
+
* decryptor), the env resolver (reader), and the daemon users service
|
|
128
|
+
* (patcher) — keeping the alias single-source avoids the historical drift
|
|
129
|
+
* across these three call sites.
|
|
130
|
+
*/
|
|
131
|
+
type StoredAgenticTools = {
|
|
132
|
+
[Tool in keyof AgenticToolsConfig]?: Record<string, string>;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Project the encrypted-at-rest blob to the boolean presence DTO returned to
|
|
136
|
+
* clients. Empty buckets are dropped so the API response stays compact.
|
|
137
|
+
*/
|
|
138
|
+
declare function toAgenticToolsStatus(stored: StoredAgenticTools | undefined): AgenticToolsStatus | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Update DTO shape: per-tool credential patch payload.
|
|
141
|
+
*
|
|
142
|
+
* String values set the field (plaintext, encrypted before storage); `null`
|
|
143
|
+
* clears the field. Omitted fields are untouched. Used by PATCH /users/:id.
|
|
144
|
+
*/
|
|
145
|
+
type AgenticToolsUpdate = {
|
|
146
|
+
[Tool in keyof AgenticToolsConfig]?: AgenticToolsConfig[Tool] extends infer Cfg ? {
|
|
147
|
+
[Field in keyof Cfg]?: string | null;
|
|
148
|
+
} : never;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Per-tool whitelist of fields whose plaintext is safe to echo back to the
|
|
152
|
+
* field's owner.
|
|
153
|
+
*
|
|
154
|
+
* Base URLs are config (not credentials) — the user benefits from seeing the
|
|
155
|
+
* exact value they configured (e.g. distinguishing
|
|
156
|
+
* `https://gateway.example.com/v1` from `https://gateway.example.com`). API
|
|
157
|
+
* keys, OAuth tokens, and auth tokens are NEVER on this list and never
|
|
158
|
+
* decrypted on read.
|
|
159
|
+
*
|
|
160
|
+
* Even for whitelisted fields, the daemon only returns the plaintext to the
|
|
161
|
+
* field's *owner* — never to other users (base URLs can leak internal
|
|
162
|
+
* hostnames) and never to admins viewing someone else's profile.
|
|
163
|
+
*/
|
|
164
|
+
declare const AGENTIC_TOOLS_PUBLIC_FIELDS: {
|
|
165
|
+
readonly [Tool in keyof AgenticToolsConfig]?: ReadonlyArray<keyof NonNullable<AgenticToolsConfig[Tool]> & string>;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Owner-visible plaintext values for the fields listed in
|
|
169
|
+
* `AGENTIC_TOOLS_PUBLIC_FIELDS`. Sibling map to `AgenticToolsStatus` —
|
|
170
|
+
* presence remains the source of truth; this just lets the UI render the
|
|
171
|
+
* saved value back without forcing a clear-and-retype.
|
|
172
|
+
*
|
|
173
|
+
* Always undefined / partial when the requester is not the field's owner.
|
|
174
|
+
*/
|
|
175
|
+
type AgenticToolsPublicValues = {
|
|
176
|
+
[Tool in keyof AgenticToolsConfig]?: AgenticToolsConfig[Tool] extends infer Cfg ? {
|
|
177
|
+
[Field in keyof Cfg]?: string;
|
|
178
|
+
} : never;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Decrypt the whitelisted public fields from the on-disk encrypted blob.
|
|
182
|
+
* Returns undefined when no public fields are populated, so the API response
|
|
183
|
+
* stays compact.
|
|
184
|
+
*
|
|
185
|
+
* The caller is responsible for the self-only authorization check — this
|
|
186
|
+
* helper assumes the requester is already authorized to see the values.
|
|
187
|
+
*/
|
|
188
|
+
declare function extractAgenticToolsPublicValues(stored: StoredAgenticTools | undefined, decrypt: (ciphertext: string) => string): AgenticToolsPublicValues | undefined;
|
|
72
189
|
/**
|
|
73
190
|
* Available task completion chime sounds
|
|
74
191
|
*/
|
|
@@ -137,12 +254,20 @@ interface User extends BaseUserFields {
|
|
|
137
254
|
created_at: Date;
|
|
138
255
|
updated_at?: Date;
|
|
139
256
|
unix_username?: string;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
257
|
+
/**
|
|
258
|
+
* Per-tool credential & auth status (boolean only, never exposes actual values).
|
|
259
|
+
*
|
|
260
|
+
* Mirrors `AgenticToolsConfig` field-for-field with each value flipped from
|
|
261
|
+
* encrypted-string to `boolean` for presence checking.
|
|
262
|
+
*/
|
|
263
|
+
agentic_tools?: AgenticToolsStatus;
|
|
264
|
+
/**
|
|
265
|
+
* Plaintext values for fields listed in `AGENTIC_TOOLS_PUBLIC_FIELDS` —
|
|
266
|
+
* only populated when the requester is the field's owner. Lets the UI
|
|
267
|
+
* render the saved value (e.g. the user's custom `OPENAI_BASE_URL`) back
|
|
268
|
+
* without forcing a clear-and-retype. Never contains API keys or tokens.
|
|
269
|
+
*/
|
|
270
|
+
agentic_tools_public_values?: AgenticToolsPublicValues;
|
|
146
271
|
env_vars?: Record<string, EnvVarMetadata>;
|
|
147
272
|
default_agentic_config?: DefaultAgenticConfig;
|
|
148
273
|
}
|
|
@@ -200,12 +325,13 @@ interface UpdateUserInput extends Partial<BaseUserFields> {
|
|
|
200
325
|
unix_username?: string;
|
|
201
326
|
/** Force user to change password on next login (admin-only) */
|
|
202
327
|
must_change_password?: boolean;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
328
|
+
/**
|
|
329
|
+
* Per-tool credential updates (accepts plaintext, encrypted before storage).
|
|
330
|
+
*
|
|
331
|
+
* Each tool's sub-object is a partial patch — only fields you include are
|
|
332
|
+
* touched; `null` clears the field, a string sets it. Field names = env var names.
|
|
333
|
+
*/
|
|
334
|
+
agentic_tools?: AgenticToolsUpdate;
|
|
209
335
|
env_vars?: Record<string, string | null>;
|
|
210
336
|
/**
|
|
211
337
|
* Per-var scope updates, applied on top of any `env_vars` changes in the same PATCH.
|
|
@@ -229,4 +355,4 @@ interface SessionEnvSelection {
|
|
|
229
355
|
created_at: Date;
|
|
230
356
|
}
|
|
231
357
|
|
|
232
|
-
export {
|
|
358
|
+
export { AGENTIC_TOOLS_PUBLIC_FIELDS as A, type BaseUserFields as B, type ChimeSound as C, type DefaultAgenticConfig as D, ENV_VAR_SCOPES_V05 as E, type GeminiConfig as G, type OnboardingState as O, ROLES as R, type SessionEnvSelection as S, type UpdateUserInput as U, type AgenticToolConfigField as a, type AgenticToolsConfig as b, type AgenticToolsPublicValues as c, type AgenticToolsStatus as d, type AgenticToolsUpdate as e, type AudioPreferences as f, type ClaudeCodeConfig as g, type CodexConfig as h, type CopilotConfig as i, type CreateUserInput as j, type DefaultAgenticToolConfig as k, type DefaultModelConfig as l, type EnvVarMetadata as m, type EnvVarScope as n, type EventStreamPreferences as o, type StoredAgenticTools as p, type User as q, type UserApiKey as r, type UserPreferences as s, type UserRole as t, extractAgenticToolsPublicValues as u, hasMinimumRole as v, normalizeRole as w, toAgenticToolsStatus as x };
|
|
@@ -69,6 +69,123 @@ interface DefaultAgenticConfig {
|
|
|
69
69
|
opencode?: DefaultAgenticToolConfig;
|
|
70
70
|
copilot?: DefaultAgenticToolConfig;
|
|
71
71
|
}
|
|
72
|
+
/**
|
|
73
|
+
* Per-tool credential field shapes.
|
|
74
|
+
*
|
|
75
|
+
* Field names equal the env var names exported into the SDK CLI's environment.
|
|
76
|
+
* Storage values are encrypted at rest; the public DTO (User.agentic_tools)
|
|
77
|
+
* exposes the same field names with `boolean` presence flags.
|
|
78
|
+
*/
|
|
79
|
+
interface ClaudeCodeConfig {
|
|
80
|
+
ANTHROPIC_API_KEY?: string;
|
|
81
|
+
CLAUDE_CODE_OAUTH_TOKEN?: string;
|
|
82
|
+
ANTHROPIC_AUTH_TOKEN?: string;
|
|
83
|
+
ANTHROPIC_BASE_URL?: string;
|
|
84
|
+
}
|
|
85
|
+
interface CodexConfig {
|
|
86
|
+
OPENAI_API_KEY?: string;
|
|
87
|
+
OPENAI_BASE_URL?: string;
|
|
88
|
+
}
|
|
89
|
+
interface GeminiConfig {
|
|
90
|
+
GEMINI_API_KEY?: string;
|
|
91
|
+
}
|
|
92
|
+
interface CopilotConfig {
|
|
93
|
+
COPILOT_GITHUB_TOKEN?: string;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Per-tool credential map. Each tool's config is independent and
|
|
97
|
+
* scoped to its own SDK at session-spawn time.
|
|
98
|
+
*/
|
|
99
|
+
interface AgenticToolsConfig {
|
|
100
|
+
'claude-code'?: ClaudeCodeConfig;
|
|
101
|
+
codex?: CodexConfig;
|
|
102
|
+
gemini?: GeminiConfig;
|
|
103
|
+
copilot?: CopilotConfig;
|
|
104
|
+
opencode?: Record<string, never>;
|
|
105
|
+
}
|
|
106
|
+
/** Union of all valid env-var-named fields across all tool configs. */
|
|
107
|
+
type AgenticToolConfigField = keyof ClaudeCodeConfig | keyof CodexConfig | keyof GeminiConfig | keyof CopilotConfig;
|
|
108
|
+
/**
|
|
109
|
+
* Public DTO shape: per-tool credential presence flags.
|
|
110
|
+
*
|
|
111
|
+
* Flips every field of every tool config from `string` (encrypted) to `boolean`
|
|
112
|
+
* (set/unset). Used by `User.agentic_tools` and the user-facing API responses
|
|
113
|
+
* — the daemon never returns decrypted credential values to clients.
|
|
114
|
+
*/
|
|
115
|
+
type AgenticToolsStatus = {
|
|
116
|
+
[Tool in keyof AgenticToolsConfig]?: AgenticToolsConfig[Tool] extends infer Cfg ? {
|
|
117
|
+
[Field in keyof Cfg]?: boolean;
|
|
118
|
+
} : never;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Encrypted-at-rest projection of `AgenticToolsConfig` — the on-disk shape of
|
|
122
|
+
* `users.data.agentic_tools`. Each field's `string` (plaintext) is replaced
|
|
123
|
+
* with the encrypted ciphertext bytes (also a string at the storage layer).
|
|
124
|
+
*
|
|
125
|
+
* Lives next to `AgenticToolsConfig` so the canonical type, the public DTO,
|
|
126
|
+
* and the storage projection move together. Imported by the repo (writer/
|
|
127
|
+
* decryptor), the env resolver (reader), and the daemon users service
|
|
128
|
+
* (patcher) — keeping the alias single-source avoids the historical drift
|
|
129
|
+
* across these three call sites.
|
|
130
|
+
*/
|
|
131
|
+
type StoredAgenticTools = {
|
|
132
|
+
[Tool in keyof AgenticToolsConfig]?: Record<string, string>;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Project the encrypted-at-rest blob to the boolean presence DTO returned to
|
|
136
|
+
* clients. Empty buckets are dropped so the API response stays compact.
|
|
137
|
+
*/
|
|
138
|
+
declare function toAgenticToolsStatus(stored: StoredAgenticTools | undefined): AgenticToolsStatus | undefined;
|
|
139
|
+
/**
|
|
140
|
+
* Update DTO shape: per-tool credential patch payload.
|
|
141
|
+
*
|
|
142
|
+
* String values set the field (plaintext, encrypted before storage); `null`
|
|
143
|
+
* clears the field. Omitted fields are untouched. Used by PATCH /users/:id.
|
|
144
|
+
*/
|
|
145
|
+
type AgenticToolsUpdate = {
|
|
146
|
+
[Tool in keyof AgenticToolsConfig]?: AgenticToolsConfig[Tool] extends infer Cfg ? {
|
|
147
|
+
[Field in keyof Cfg]?: string | null;
|
|
148
|
+
} : never;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Per-tool whitelist of fields whose plaintext is safe to echo back to the
|
|
152
|
+
* field's owner.
|
|
153
|
+
*
|
|
154
|
+
* Base URLs are config (not credentials) — the user benefits from seeing the
|
|
155
|
+
* exact value they configured (e.g. distinguishing
|
|
156
|
+
* `https://gateway.example.com/v1` from `https://gateway.example.com`). API
|
|
157
|
+
* keys, OAuth tokens, and auth tokens are NEVER on this list and never
|
|
158
|
+
* decrypted on read.
|
|
159
|
+
*
|
|
160
|
+
* Even for whitelisted fields, the daemon only returns the plaintext to the
|
|
161
|
+
* field's *owner* — never to other users (base URLs can leak internal
|
|
162
|
+
* hostnames) and never to admins viewing someone else's profile.
|
|
163
|
+
*/
|
|
164
|
+
declare const AGENTIC_TOOLS_PUBLIC_FIELDS: {
|
|
165
|
+
readonly [Tool in keyof AgenticToolsConfig]?: ReadonlyArray<keyof NonNullable<AgenticToolsConfig[Tool]> & string>;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Owner-visible plaintext values for the fields listed in
|
|
169
|
+
* `AGENTIC_TOOLS_PUBLIC_FIELDS`. Sibling map to `AgenticToolsStatus` —
|
|
170
|
+
* presence remains the source of truth; this just lets the UI render the
|
|
171
|
+
* saved value back without forcing a clear-and-retype.
|
|
172
|
+
*
|
|
173
|
+
* Always undefined / partial when the requester is not the field's owner.
|
|
174
|
+
*/
|
|
175
|
+
type AgenticToolsPublicValues = {
|
|
176
|
+
[Tool in keyof AgenticToolsConfig]?: AgenticToolsConfig[Tool] extends infer Cfg ? {
|
|
177
|
+
[Field in keyof Cfg]?: string;
|
|
178
|
+
} : never;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Decrypt the whitelisted public fields from the on-disk encrypted blob.
|
|
182
|
+
* Returns undefined when no public fields are populated, so the API response
|
|
183
|
+
* stays compact.
|
|
184
|
+
*
|
|
185
|
+
* The caller is responsible for the self-only authorization check — this
|
|
186
|
+
* helper assumes the requester is already authorized to see the values.
|
|
187
|
+
*/
|
|
188
|
+
declare function extractAgenticToolsPublicValues(stored: StoredAgenticTools | undefined, decrypt: (ciphertext: string) => string): AgenticToolsPublicValues | undefined;
|
|
72
189
|
/**
|
|
73
190
|
* Available task completion chime sounds
|
|
74
191
|
*/
|
|
@@ -137,12 +254,20 @@ interface User extends BaseUserFields {
|
|
|
137
254
|
created_at: Date;
|
|
138
255
|
updated_at?: Date;
|
|
139
256
|
unix_username?: string;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
257
|
+
/**
|
|
258
|
+
* Per-tool credential & auth status (boolean only, never exposes actual values).
|
|
259
|
+
*
|
|
260
|
+
* Mirrors `AgenticToolsConfig` field-for-field with each value flipped from
|
|
261
|
+
* encrypted-string to `boolean` for presence checking.
|
|
262
|
+
*/
|
|
263
|
+
agentic_tools?: AgenticToolsStatus;
|
|
264
|
+
/**
|
|
265
|
+
* Plaintext values for fields listed in `AGENTIC_TOOLS_PUBLIC_FIELDS` —
|
|
266
|
+
* only populated when the requester is the field's owner. Lets the UI
|
|
267
|
+
* render the saved value (e.g. the user's custom `OPENAI_BASE_URL`) back
|
|
268
|
+
* without forcing a clear-and-retype. Never contains API keys or tokens.
|
|
269
|
+
*/
|
|
270
|
+
agentic_tools_public_values?: AgenticToolsPublicValues;
|
|
146
271
|
env_vars?: Record<string, EnvVarMetadata>;
|
|
147
272
|
default_agentic_config?: DefaultAgenticConfig;
|
|
148
273
|
}
|
|
@@ -200,12 +325,13 @@ interface UpdateUserInput extends Partial<BaseUserFields> {
|
|
|
200
325
|
unix_username?: string;
|
|
201
326
|
/** Force user to change password on next login (admin-only) */
|
|
202
327
|
must_change_password?: boolean;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
328
|
+
/**
|
|
329
|
+
* Per-tool credential updates (accepts plaintext, encrypted before storage).
|
|
330
|
+
*
|
|
331
|
+
* Each tool's sub-object is a partial patch — only fields you include are
|
|
332
|
+
* touched; `null` clears the field, a string sets it. Field names = env var names.
|
|
333
|
+
*/
|
|
334
|
+
agentic_tools?: AgenticToolsUpdate;
|
|
209
335
|
env_vars?: Record<string, string | null>;
|
|
210
336
|
/**
|
|
211
337
|
* Per-var scope updates, applied on top of any `env_vars` changes in the same PATCH.
|
|
@@ -229,4 +355,4 @@ interface SessionEnvSelection {
|
|
|
229
355
|
created_at: Date;
|
|
230
356
|
}
|
|
231
357
|
|
|
232
|
-
export {
|
|
358
|
+
export { AGENTIC_TOOLS_PUBLIC_FIELDS as A, type BaseUserFields as B, type ChimeSound as C, type DefaultAgenticConfig as D, ENV_VAR_SCOPES_V05 as E, type GeminiConfig as G, type OnboardingState as O, ROLES as R, type SessionEnvSelection as S, type UpdateUserInput as U, type AgenticToolConfigField as a, type AgenticToolsConfig as b, type AgenticToolsPublicValues as c, type AgenticToolsStatus as d, type AgenticToolsUpdate as e, type AudioPreferences as f, type ClaudeCodeConfig as g, type CodexConfig as h, type CopilotConfig as i, type CreateUserInput as j, type DefaultAgenticToolConfig as k, type DefaultModelConfig as l, type EnvVarMetadata as m, type EnvVarScope as n, type EventStreamPreferences as o, type StoredAgenticTools as p, type User as q, type UserApiKey as r, type UserPreferences as s, type UserRole as t, extractAgenticToolsPublicValues as u, hasMinimumRole as v, normalizeRole as w, toAgenticToolsStatus as x };
|
|
@@ -14,8 +14,6 @@ import '../context-BpkCELpO.cjs';
|
|
|
14
14
|
* - Claude Code: default, acceptEdits, bypassPermissions, plan, dontAsk
|
|
15
15
|
* - Gemini: default, autoEdit, yolo
|
|
16
16
|
* - Codex: ask, auto, on-failure, allow-all
|
|
17
|
-
*
|
|
18
|
-
* See: context/explorations/mcp-session-management.md for full specification
|
|
19
17
|
*/
|
|
20
18
|
|
|
21
19
|
/**
|
|
@@ -14,8 +14,6 @@ import '../context-BpkCELpO.js';
|
|
|
14
14
|
* - Claude Code: default, acceptEdits, bypassPermissions, plan, dontAsk
|
|
15
15
|
* - Gemini: default, autoEdit, yolo
|
|
16
16
|
* - Codex: ask, auto, on-failure, allow-all
|
|
17
|
-
*
|
|
18
|
-
* See: context/explorations/mcp-session-management.md for full specification
|
|
19
17
|
*/
|
|
20
18
|
|
|
21
19
|
/**
|