@jingyi0605/codingns 0.3.6 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/bin/codingns.mjs +913 -1
- package/dist/public/assets/AdaptiveButlerPage-B153lk5H.css +1 -0
- package/dist/public/assets/AdaptiveButlerPage-R-XZw7pd.js +3 -0
- package/dist/public/assets/App-DUAg5urj.css +1 -0
- package/dist/public/assets/App-DkvE5EyM.js +30 -0
- package/dist/public/assets/BootstrapPage-Vu5oEJ8z.js +1 -0
- package/dist/public/assets/ConversationPage-Cjpg6g0J.js +2 -0
- package/dist/public/assets/DesktopDetachPreviewPage-BgeEqbc5.js +1 -0
- package/dist/public/assets/DesktopWindowPage-1WelvxdH.js +2 -0
- package/dist/public/assets/FileContextPanel-D_ghXJuW.js +1 -0
- package/dist/public/assets/GitSidebar-D9f9Jxwr.js +6 -0
- package/dist/public/assets/MobileCreateSessionSheet-DLq5qPkx.js +1 -0
- package/dist/public/assets/MobileSheet-DLg-gX1t.js +1 -0
- package/dist/public/assets/MobileTopHeaderFrame-DArgZI7L.js +1 -0
- package/dist/public/assets/MobileWorkspaceSwitcherHeader-0ywJKfBQ.js +1 -0
- package/dist/public/assets/ServerSettingsModal-izoYMx9U.js +1 -0
- package/dist/public/assets/SessionIndexPage-C5aG8FIv.js +1 -0
- package/dist/public/assets/SettingsPage-HJIC-P-4.js +1 -0
- package/dist/public/assets/TerminalManagerPanel-DpyUTo9k.js +1 -0
- package/dist/public/assets/{TerminalPage-D00S4KM6.js → TerminalPage-CtKXIU0h.js} +19 -19
- package/dist/public/assets/TerminalRuntimeFallbackModal-CRhOQOsT.js +1 -0
- package/dist/public/assets/ToolFilesPage-DcYPsS-e.js +1 -0
- package/dist/public/assets/ToolGitPage-CsPl89ty.js +1 -0
- package/dist/public/assets/ToolProcessesPage-D0dvR8xK.js +1 -0
- package/dist/public/assets/ToolsHomePage-4fP-KRiv.js +1 -0
- package/dist/public/assets/WorkbenchLandingPage-kvlfyxRo.js +1 -0
- package/dist/public/assets/WorkbenchLayout-ByFw4eeu.js +3 -0
- package/dist/public/assets/WorkbenchModal-Ctob14VR.js +1 -0
- package/dist/public/assets/WorkbenchShellRoute-BUITtdAg.css +1 -0
- package/dist/public/assets/WorkbenchShellRoute-Kw7JEZI3.js +1 -0
- package/dist/public/assets/WorkspaceDebugDetailPage-Com5kEXJ.js +1 -0
- package/dist/public/assets/WorkspaceDetailPage-D0Lrx4Uz.js +1 -0
- package/dist/public/assets/WorkspaceHomePage-wR8d3aP9.js +1 -0
- package/dist/public/assets/butler-records-events-DgWCG364.js +1 -0
- package/dist/public/assets/default-session-permission-mode-CcGwR4Kk.js +1 -0
- package/dist/public/assets/event-DvH9tcej.js +1 -0
- package/dist/public/assets/file-tree-icon-UFVoVzhM.js +31 -0
- package/dist/public/assets/index-Byp9hJ0c.js +42 -0
- package/dist/public/assets/index-_52jxu4a.css +1 -0
- package/dist/public/assets/preferences-service-KIYeE2gk.js +1 -0
- package/dist/public/assets/session-runtime-machine-0KNSSPp5.js +17 -0
- package/dist/public/assets/styles-BWPBZvze.css +1 -0
- package/dist/public/assets/styles-CSUx5LGe.js +1 -0
- package/dist/public/assets/terminal-runtime-meta-AWXJpN4r.js +1 -0
- package/dist/public/assets/useRegisteredDebugTemplates-DBDRdptr.js +1 -0
- package/dist/public/assets/window-BWqRixxq.js +1 -0
- package/dist/public/index.html +2 -2
- package/dist/server/middlewares/auth-guard.d.ts +4 -0
- package/dist/server/middlewares/auth-guard.js +42 -4
- package/dist/server/middlewares/auth-guard.js.map +1 -1
- package/dist/server/modules/assistant-capability/assistant-capability-controller.d.ts +234 -0
- package/dist/server/modules/assistant-capability/assistant-capability-controller.js +365 -0
- package/dist/server/modules/assistant-capability/assistant-capability-controller.js.map +1 -1
- package/dist/server/modules/assistant-capability/assistant-capability-service.d.ts +262 -2
- package/dist/server/modules/assistant-capability/assistant-capability-service.js +737 -3
- package/dist/server/modules/assistant-capability/assistant-capability-service.js.map +1 -1
- package/dist/server/modules/auth/auth-controller.d.ts +11 -1
- package/dist/server/modules/auth/auth-controller.js +61 -2
- package/dist/server/modules/auth/auth-controller.js.map +1 -1
- package/dist/server/modules/auth/auth-device-display-name.d.ts +10 -0
- package/dist/server/modules/auth/auth-device-display-name.js +190 -0
- package/dist/server/modules/auth/auth-device-display-name.js.map +1 -0
- package/dist/server/modules/auth/auth-service.d.ts +80 -5
- package/dist/server/modules/auth/auth-service.js +333 -23
- package/dist/server/modules/auth/auth-service.js.map +1 -1
- package/dist/server/modules/butler/assistant-automation-service.d.ts +112 -0
- package/dist/server/modules/butler/assistant-automation-service.js +832 -0
- package/dist/server/modules/butler/assistant-automation-service.js.map +1 -0
- package/dist/server/modules/butler/assistant-automation-trigger.d.ts +94 -0
- package/dist/server/modules/butler/assistant-automation-trigger.js +400 -0
- package/dist/server/modules/butler/assistant-automation-trigger.js.map +1 -0
- package/dist/server/modules/butler/assistant-sandbox-cleanup-scheduler.d.ts +32 -0
- package/dist/server/modules/butler/assistant-sandbox-cleanup-scheduler.js +93 -0
- package/dist/server/modules/butler/assistant-sandbox-cleanup-scheduler.js.map +1 -0
- package/dist/server/modules/butler/assistant-sandbox-service.d.ts +69 -0
- package/dist/server/modules/butler/assistant-sandbox-service.js +399 -0
- package/dist/server/modules/butler/assistant-sandbox-service.js.map +1 -0
- package/dist/server/modules/butler/butler-action-context-service.d.ts +4 -1
- package/dist/server/modules/butler/butler-action-context-service.js +8 -2
- package/dist/server/modules/butler/butler-action-context-service.js.map +1 -1
- package/dist/server/modules/butler/butler-auth-service.js +7 -2
- package/dist/server/modules/butler/butler-auth-service.js.map +1 -1
- package/dist/server/modules/butler/butler-control-session-service.d.ts +11 -1
- package/dist/server/modules/butler/butler-control-session-service.js +173 -40
- package/dist/server/modules/butler/butler-control-session-service.js.map +1 -1
- package/dist/server/modules/butler/butler-control-timer-scheduler.d.ts +32 -0
- package/dist/server/modules/butler/butler-control-timer-scheduler.js +93 -0
- package/dist/server/modules/butler/butler-control-timer-scheduler.js.map +1 -0
- package/dist/server/modules/butler/butler-control-timer-service.d.ts +42 -0
- package/dist/server/modules/butler/butler-control-timer-service.js +132 -0
- package/dist/server/modules/butler/butler-control-timer-service.js.map +1 -0
- package/dist/server/modules/butler/butler-controller.d.ts +42 -2
- package/dist/server/modules/butler/butler-controller.js +79 -12
- package/dist/server/modules/butler/butler-controller.js.map +1 -1
- package/dist/server/modules/butler/butler-follow-up-evaluation-instruction-adapter.d.ts +2 -1
- package/dist/server/modules/butler/butler-follow-up-evaluation-instruction-adapter.js +27 -25
- package/dist/server/modules/butler/butler-follow-up-evaluation-instruction-adapter.js.map +1 -1
- package/dist/server/modules/butler/butler-follow-up-service.d.ts +41 -5
- package/dist/server/modules/butler/butler-follow-up-service.js +568 -371
- package/dist/server/modules/butler/butler-follow-up-service.js.map +1 -1
- package/dist/server/modules/butler/butler-inbox-analysis-service.d.ts +4 -1
- package/dist/server/modules/butler/butler-inbox-analysis-service.js +18 -4
- package/dist/server/modules/butler/butler-inbox-analysis-service.js.map +1 -1
- package/dist/server/modules/butler/butler-inbox-service.js +1 -0
- package/dist/server/modules/butler/butler-inbox-service.js.map +1 -1
- package/dist/server/modules/butler/butler-profile-service.js +2 -5
- package/dist/server/modules/butler/butler-profile-service.js.map +1 -1
- package/dist/server/modules/butler/butler-project-service.d.ts +3 -1
- package/dist/server/modules/butler/butler-project-service.js +7 -1
- package/dist/server/modules/butler/butler-project-service.js.map +1 -1
- package/dist/server/modules/butler/butler-session-service.d.ts +5 -1
- package/dist/server/modules/butler/butler-session-service.js +26 -1
- package/dist/server/modules/butler/butler-session-service.js.map +1 -1
- package/dist/server/modules/butler/butler-session-summary-service.js +2 -1
- package/dist/server/modules/butler/butler-session-summary-service.js.map +1 -1
- package/dist/server/modules/butler/butler-workspace-context.d.ts +4 -1
- package/dist/server/modules/butler/butler-workspace-context.js +204 -58
- package/dist/server/modules/butler/butler-workspace-context.js.map +1 -1
- package/dist/server/modules/butler/patrol-execution-service.js +2 -1
- package/dist/server/modules/butler/patrol-execution-service.js.map +1 -1
- package/dist/server/modules/butler/provider-adapter-registry.d.ts +3 -0
- package/dist/server/modules/butler/provider-adapter-registry.js +18 -1
- package/dist/server/modules/butler/provider-adapter-registry.js.map +1 -1
- package/dist/server/modules/butler/verification-run-service.d.ts +9 -2
- package/dist/server/modules/butler/verification-run-service.js +188 -34
- package/dist/server/modules/butler/verification-run-service.js.map +1 -1
- package/dist/server/modules/debug-target/debug-target-controller.js +1 -1
- package/dist/server/modules/debug-target/debug-target-controller.js.map +1 -1
- package/dist/server/modules/debug-target/debug-target-service.d.ts +7 -2
- package/dist/server/modules/debug-target/debug-target-service.js +563 -100
- package/dist/server/modules/debug-target/debug-target-service.js.map +1 -1
- package/dist/server/modules/git/git-command-helper-client.d.ts +1 -0
- package/dist/server/modules/git/git-command-helper-client.js +19 -26
- package/dist/server/modules/git/git-command-helper-client.js.map +1 -1
- package/dist/server/modules/git/git-command-runner.js +19 -1
- package/dist/server/modules/git/git-command-runner.js.map +1 -1
- package/dist/server/modules/preferences/profile-service.d.ts +3 -1
- package/dist/server/modules/preferences/profile-service.js +74 -3
- package/dist/server/modules/preferences/profile-service.js.map +1 -1
- package/dist/server/modules/provider/provider-controller.d.ts +1 -1
- package/dist/server/modules/provider/provider-controller.js.map +1 -1
- package/dist/server/modules/provider/provider-discovery-helper-client.d.ts +5 -3
- package/dist/server/modules/provider/provider-discovery-helper-client.js +129 -43
- package/dist/server/modules/provider/provider-discovery-helper-client.js.map +1 -1
- package/dist/server/modules/provider/provider-discovery-helper-process.js +44 -0
- package/dist/server/modules/provider/provider-discovery-helper-process.js.map +1 -1
- package/dist/server/modules/provider/provider-discovery-runtime.js +83 -3
- package/dist/server/modules/provider/provider-discovery-runtime.js.map +1 -1
- package/dist/server/modules/relay-tunnel/crypto/relay-tunnel-identity-service.d.ts +10 -0
- package/dist/server/modules/relay-tunnel/crypto/relay-tunnel-identity-service.js +48 -0
- package/dist/server/modules/relay-tunnel/crypto/relay-tunnel-identity-service.js.map +1 -0
- package/dist/server/modules/relay-tunnel/crypto/relay-tunnel-packets.d.ts +48 -0
- package/dist/server/modules/relay-tunnel/crypto/relay-tunnel-packets.js +11 -0
- package/dist/server/modules/relay-tunnel/crypto/relay-tunnel-packets.js.map +1 -0
- package/dist/server/modules/relay-tunnel/crypto/relay-tunnel-protocol.d.ts +74 -0
- package/dist/server/modules/relay-tunnel/crypto/relay-tunnel-protocol.js +302 -0
- package/dist/server/modules/relay-tunnel/crypto/relay-tunnel-protocol.js.map +1 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-controller.d.ts +33 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-controller.js +57 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-controller.js.map +1 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-edge-proof.d.ts +9 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-edge-proof.js +25 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-edge-proof.js.map +1 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-gateway-service.d.ts +18 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-gateway-service.js +230 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-gateway-service.js.map +1 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-runtime-adapter.d.ts +41 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-runtime-adapter.js +443 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-runtime-adapter.js.map +1 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-service.d.ts +111 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-service.js +771 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-service.js.map +1 -0
- package/dist/server/modules/sessions/claude-runtime-helper-client.js +23 -1
- package/dist/server/modules/sessions/claude-runtime-helper-client.js.map +1 -1
- package/dist/server/modules/sessions/codex-app-server-helper-client.d.ts +2 -1
- package/dist/server/modules/sessions/codex-app-server-helper-client.js +78 -0
- package/dist/server/modules/sessions/codex-app-server-helper-client.js.map +1 -1
- package/dist/server/modules/sessions/codex-app-server-helper-process.js +84 -2
- package/dist/server/modules/sessions/codex-app-server-helper-process.js.map +1 -1
- package/dist/server/modules/sessions/provider-session-delete-cli.d.ts +15 -0
- package/dist/server/modules/sessions/provider-session-delete-cli.js +148 -0
- package/dist/server/modules/sessions/provider-session-delete-cli.js.map +1 -0
- package/dist/server/modules/sessions/session-controller.d.ts +4 -1
- package/dist/server/modules/sessions/session-controller.js +4 -0
- package/dist/server/modules/sessions/session-controller.js.map +1 -1
- package/dist/server/modules/sessions/session-history-service.d.ts +24 -1
- package/dist/server/modules/sessions/session-history-service.js +401 -42
- package/dist/server/modules/sessions/session-history-service.js.map +1 -1
- package/dist/server/modules/sessions/session-live-runtime-router-service.d.ts +25 -0
- package/dist/server/modules/sessions/session-live-runtime-router-service.js +42 -0
- package/dist/server/modules/sessions/session-live-runtime-router-service.js.map +1 -0
- package/dist/server/modules/sessions/session-live-runtime-service.d.ts +6 -0
- package/dist/server/modules/sessions/session-live-runtime-service.js +130 -28
- package/dist/server/modules/sessions/session-live-runtime-service.js.map +1 -1
- package/dist/server/modules/sessions/session-message-attachment-service.d.ts +1 -0
- package/dist/server/modules/sessions/session-message-attachment-service.js +22 -0
- package/dist/server/modules/sessions/session-message-attachment-service.js.map +1 -1
- package/dist/server/modules/sessions/session-message-origin-utils.d.ts +12 -0
- package/dist/server/modules/sessions/session-message-origin-utils.js +45 -0
- package/dist/server/modules/sessions/session-message-origin-utils.js.map +1 -0
- package/dist/server/modules/sessions/session-permission-request-service.d.ts +1 -0
- package/dist/server/modules/sessions/session-permission-request-service.js +367 -5
- package/dist/server/modules/sessions/session-permission-request-service.js.map +1 -1
- package/dist/server/modules/sessions/session-provider-error-mapper.js +32 -0
- package/dist/server/modules/sessions/session-provider-error-mapper.js.map +1 -1
- package/dist/server/modules/sessions/session-provider-usage-guard-service.d.ts +37 -0
- package/dist/server/modules/sessions/session-provider-usage-guard-service.js +179 -0
- package/dist/server/modules/sessions/session-provider-usage-guard-service.js.map +1 -0
- package/dist/server/modules/sessions/session-provider-usage-limit.d.ts +17 -0
- package/dist/server/modules/sessions/session-provider-usage-limit.js +465 -0
- package/dist/server/modules/sessions/session-provider-usage-limit.js.map +1 -0
- package/dist/server/modules/skills/assistant-runtime-skill-catalog.d.ts +8 -0
- package/dist/server/modules/skills/assistant-runtime-skill-catalog.js +26 -0
- package/dist/server/modules/skills/assistant-runtime-skill-catalog.js.map +1 -0
- package/dist/server/modules/skills/assistant-runtime-skill-cleanup.d.ts +9 -0
- package/dist/server/modules/skills/assistant-runtime-skill-cleanup.js +55 -0
- package/dist/server/modules/skills/assistant-runtime-skill-cleanup.js.map +1 -0
- package/dist/server/modules/skills/builtin-skill-service.js +1 -6
- package/dist/server/modules/skills/builtin-skill-service.js.map +1 -1
- package/dist/server/modules/skills/builtin-skills/codingns-assistant/SKILL.md +19 -12
- package/dist/server/modules/skills/builtin-skills/codingns-assistant/references/cli-workflow.md +9 -3
- package/dist/server/modules/skills/skill-controller.d.ts +2 -2
- package/dist/server/modules/skills/skill-controller.js +9 -1
- package/dist/server/modules/skills/skill-controller.js.map +1 -1
- package/dist/server/modules/skills/skill-manager-service.d.ts +26 -1
- package/dist/server/modules/skills/skill-manager-service.js +346 -90
- package/dist/server/modules/skills/skill-manager-service.js.map +1 -1
- package/dist/server/modules/skills/skill-name-policy.d.ts +2 -0
- package/dist/server/modules/skills/skill-name-policy.js +10 -0
- package/dist/server/modules/skills/skill-name-policy.js.map +1 -0
- package/dist/server/modules/tailscale/tailscale-service.d.ts +2 -0
- package/dist/server/modules/tailscale/tailscale-service.js +21 -8
- package/dist/server/modules/tailscale/tailscale-service.js.map +1 -1
- package/dist/server/modules/tasks/task-helper-client.d.ts +5 -2
- package/dist/server/modules/tasks/task-helper-client.js +118 -38
- package/dist/server/modules/tasks/task-helper-client.js.map +1 -1
- package/dist/server/modules/tasks/task-helper-process.js +94 -3
- package/dist/server/modules/tasks/task-helper-process.js.map +1 -1
- package/dist/server/modules/tasks/task-types.d.ts +6 -0
- package/dist/server/modules/tasks/task-types.js +7 -1
- package/dist/server/modules/tasks/task-types.js.map +1 -1
- package/dist/server/modules/terminal/command-template-service.d.ts +9 -0
- package/dist/server/modules/terminal/command-template-service.js +87 -5
- package/dist/server/modules/terminal/command-template-service.js.map +1 -1
- package/dist/server/modules/terminal/template-reverse-proxy-service.js +71 -3
- package/dist/server/modules/terminal/template-reverse-proxy-service.js.map +1 -1
- package/dist/server/modules/terminal/terminal-controller.d.ts +3 -0
- package/dist/server/modules/terminal/terminal-controller.js +41 -0
- package/dist/server/modules/terminal/terminal-controller.js.map +1 -1
- package/dist/server/modules/workbench/workbench-service.d.ts +3 -0
- package/dist/server/modules/workbench/workbench-service.js +4 -3
- package/dist/server/modules/workbench/workbench-service.js.map +1 -1
- package/dist/server/modules/workbench/workspace-file-watcher.d.ts +14 -6
- package/dist/server/modules/workbench/workspace-file-watcher.js +267 -57
- package/dist/server/modules/workbench/workspace-file-watcher.js.map +1 -1
- package/dist/server/modules/workbench/workspace-panel-snapshot-service.d.ts +2 -0
- package/dist/server/modules/workbench/workspace-panel-snapshot-service.js +32 -3
- package/dist/server/modules/workbench/workspace-panel-snapshot-service.js.map +1 -1
- package/dist/server/modules/worktree/worktree-manager.d.ts +9 -1
- package/dist/server/modules/worktree/worktree-manager.js +9 -1
- package/dist/server/modules/worktree/worktree-manager.js.map +1 -1
- package/dist/server/routes/assistant.js +49 -0
- package/dist/server/routes/assistant.js.map +1 -1
- package/dist/server/routes/auth.js +4 -0
- package/dist/server/routes/auth.js.map +1 -1
- package/dist/server/routes/butler.js +5 -0
- package/dist/server/routes/butler.js.map +1 -1
- package/dist/server/routes/sessions.js +1 -0
- package/dist/server/routes/sessions.js.map +1 -1
- package/dist/server/routes/system.d.ts +2 -1
- package/dist/server/routes/system.js +13 -1
- package/dist/server/routes/system.js.map +1 -1
- package/dist/server/server/create-server.d.ts +18 -0
- package/dist/server/server/create-server.js +113 -20
- package/dist/server/server/create-server.js.map +1 -1
- package/dist/server/shared/utils/tokens.d.ts +3 -1
- package/dist/server/shared/utils/tokens.js +9 -2
- package/dist/server/shared/utils/tokens.js.map +1 -1
- package/dist/server/storage/repositories/assistant-automation-run-repository.d.ts +12 -0
- package/dist/server/storage/repositories/assistant-automation-run-repository.js +139 -0
- package/dist/server/storage/repositories/assistant-automation-run-repository.js.map +1 -0
- package/dist/server/storage/repositories/assistant-automation-task-repository.d.ts +17 -0
- package/dist/server/storage/repositories/assistant-automation-task-repository.js +179 -0
- package/dist/server/storage/repositories/assistant-automation-task-repository.js.map +1 -0
- package/dist/server/storage/repositories/assistant-sandbox-workspace-repository.d.ts +18 -0
- package/dist/server/storage/repositories/assistant-sandbox-workspace-repository.js +191 -0
- package/dist/server/storage/repositories/assistant-sandbox-workspace-repository.js.map +1 -0
- package/dist/server/storage/repositories/auth-device-repository.d.ts +22 -0
- package/dist/server/storage/repositories/auth-device-repository.js +97 -0
- package/dist/server/storage/repositories/auth-device-repository.js.map +1 -0
- package/dist/server/storage/repositories/auth-device-session-repository.d.ts +17 -0
- package/dist/server/storage/repositories/auth-device-session-repository.js +82 -0
- package/dist/server/storage/repositories/auth-device-session-repository.js.map +1 -0
- package/dist/server/storage/repositories/auth-login-event-repository.d.ts +9 -0
- package/dist/server/storage/repositories/auth-login-event-repository.js +53 -0
- package/dist/server/storage/repositories/auth-login-event-repository.js.map +1 -0
- package/dist/server/storage/repositories/auth-token-repository.d.ts +4 -0
- package/dist/server/storage/repositories/auth-token-repository.js +58 -5
- package/dist/server/storage/repositories/auth-token-repository.js.map +1 -1
- package/dist/server/storage/repositories/butler-control-session-repository.js +27 -3
- package/dist/server/storage/repositories/butler-control-session-repository.js.map +1 -1
- package/dist/server/storage/repositories/butler-control-timer-repository.d.ts +15 -0
- package/dist/server/storage/repositories/butler-control-timer-repository.js +157 -0
- package/dist/server/storage/repositories/butler-control-timer-repository.js.map +1 -0
- package/dist/server/storage/repositories/butler-follow-up-task-repository.js +21 -3
- package/dist/server/storage/repositories/butler-follow-up-task-repository.js.map +1 -1
- package/dist/server/storage/repositories/instance-relay-tunnel-identity-repository.d.ts +8 -0
- package/dist/server/storage/repositories/instance-relay-tunnel-identity-repository.js +52 -0
- package/dist/server/storage/repositories/instance-relay-tunnel-identity-repository.js.map +1 -0
- package/dist/server/storage/repositories/instance-relay-tunnel-repository.d.ts +10 -0
- package/dist/server/storage/repositories/instance-relay-tunnel-repository.js +153 -0
- package/dist/server/storage/repositories/instance-relay-tunnel-repository.js.map +1 -0
- package/dist/server/storage/repositories/instance-tailscale-repository.js +6 -3
- package/dist/server/storage/repositories/instance-tailscale-repository.js.map +1 -1
- package/dist/server/storage/repositories/managed-skill-repository.d.ts +2 -1
- package/dist/server/storage/repositories/managed-skill-repository.js +14 -4
- package/dist/server/storage/repositories/managed-skill-repository.js.map +1 -1
- package/dist/server/storage/repositories/session-message-attachment-repository.d.ts +2 -0
- package/dist/server/storage/repositories/session-message-attachment-repository.js +24 -0
- package/dist/server/storage/repositories/session-message-attachment-repository.js.map +1 -1
- package/dist/server/storage/repositories/user-preference-profile-repository.js +6 -3
- package/dist/server/storage/repositories/user-preference-profile-repository.js.map +1 -1
- package/dist/server/storage/sqlite/client.js +534 -2
- package/dist/server/storage/sqlite/client.js.map +1 -1
- package/dist/server/storage/sqlite/schema.sql +228 -4
- package/dist/server/types/domain.d.ts +170 -2
- package/dist/server/ws/workbench-ws-hub.d.ts +14 -8
- package/dist/server/ws/workbench-ws-hub.js +369 -209
- package/dist/server/ws/workbench-ws-hub.js.map +1 -1
- package/dist/server/ws/ws-auth-guard.js +1 -4
- package/dist/server/ws/ws-auth-guard.js.map +1 -1
- package/dist/server/ws/ws-server.d.ts +1 -1
- package/dist/server/ws/ws-server.js.map +1 -1
- package/node_modules/@codingns/session-sync-core/dist/codex-resume-history.d.ts +1 -0
- package/node_modules/@codingns/session-sync-core/dist/codex-resume-history.js +80 -0
- package/node_modules/@codingns/session-sync-core/dist/codex-resume-history.js.map +1 -0
- package/node_modules/@codingns/session-sync-core/dist/providers/claude-code.d.ts +5 -1
- package/node_modules/@codingns/session-sync-core/dist/providers/claude-code.js +122 -4
- package/node_modules/@codingns/session-sync-core/dist/providers/claude-code.js.map +1 -1
- package/node_modules/@codingns/session-sync-core/dist/providers/codex.d.ts +17 -1
- package/node_modules/@codingns/session-sync-core/dist/providers/codex.js +437 -51
- package/node_modules/@codingns/session-sync-core/dist/providers/codex.js.map +1 -1
- package/node_modules/@codingns/session-sync-core/dist/providers/gemini.d.ts +7 -1
- package/node_modules/@codingns/session-sync-core/dist/providers/gemini.js +240 -27
- package/node_modules/@codingns/session-sync-core/dist/providers/gemini.js.map +1 -1
- package/node_modules/@codingns/session-sync-core/dist/providers/kimi.d.ts +5 -1
- package/node_modules/@codingns/session-sync-core/dist/providers/kimi.js +108 -2
- package/node_modules/@codingns/session-sync-core/dist/providers/kimi.js.map +1 -1
- package/node_modules/@codingns/session-sync-core/dist/providers/opencode.d.ts +3 -0
- package/node_modules/@codingns/session-sync-core/dist/providers/opencode.js +101 -8
- package/node_modules/@codingns/session-sync-core/dist/providers/opencode.js.map +1 -1
- package/node_modules/@codingns/session-sync-core/dist/providers/utils.d.ts +1 -0
- package/node_modules/@codingns/session-sync-core/dist/providers/utils.js +4 -1
- package/node_modules/@codingns/session-sync-core/dist/providers/utils.js.map +1 -1
- package/node_modules/@codingns/session-sync-core/dist/runtime/claude-runtime.js +44 -0
- package/node_modules/@codingns/session-sync-core/dist/runtime/claude-runtime.js.map +1 -1
- package/node_modules/@codingns/session-sync-core/dist/runtime/codex-runtime.d.ts +5 -1
- package/node_modules/@codingns/session-sync-core/dist/runtime/codex-runtime.js +153 -60
- package/node_modules/@codingns/session-sync-core/dist/runtime/codex-runtime.js.map +1 -1
- package/node_modules/@codingns/session-sync-core/dist/runtime/types.d.ts +1 -0
- package/node_modules/@codingns/session-sync-core/dist/services.d.ts +1 -0
- package/node_modules/@codingns/session-sync-core/dist/services.js +24 -8
- package/node_modules/@codingns/session-sync-core/dist/services.js.map +1 -1
- package/node_modules/@codingns/session-sync-core/dist/types.d.ts +6 -0
- package/package.json +1 -1
- package/scripts/postinstall.mjs +0 -33
- package/dist/public/assets/index-BlOinYqR.js +0 -122
- package/dist/public/assets/index-Dg_7g6lA.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"worktree-manager.js","sourceRoot":"","sources":["../../../../src/modules/worktree/worktree-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAOpD,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAoB1C,MAAM,OAAO,eAAe;IAEP;IACA;IACA;IACA;IAJnB,YACmB,gBAAkC,EAClC,2BAAwD,EACxD,cAA8B,EAC9B,gBAAkC;QAHlC,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,gCAA2B,GAA3B,2BAA2B,CAA6B;QACxD,mBAAc,GAAd,cAAc,CAAgB;QAC9B,qBAAgB,GAAhB,gBAAgB,CAAkB;IAClD,CAAC;IAEJ,KAAK,CAAC,MAAM,CAAC,KAA0B,EAAE,MAAoB;QAC3D,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;QACzD,MAAM,UAAU,GAAG,mBAAmB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAEzD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,IAAI,QAAQ,CAAC;gBACjB,UAAU,EAAE,GAAG;gBACf,SAAS,EAAE,eAAe;gBAC1B,MAAM,EAAE,WAAW;gBACnB,KAAK,EAAE,mBAAmB;aAC3B,CAAC,CA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,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IACnE,CAAC;IAED,IAAI,KAAK,CAAC,SAAS,KAAK,oBAAoB,EAAE,CAAC;QAC7C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC7C,OAAO,IAAI,QAAQ,CAAC;YAClB,UAAU,EAAE,GAAG;YACf,SAAS,EAAE,wBAAwB;YACnC,MAAM,EAAE,oBAAoB;SAC7B,CAAC,CAAC;IACL,CAAC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,EAAE,CAAC;QACrD,OAAO,IAAI,QAAQ,CAAC;YAClB,UAAU,EAAE,GAAG;YACf,SAAS,EAAE,wBAAwB;YACnC,MAAM,EAAE,uBAAuB;SAChC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAI,QAAQ,CAAC;QAClB,UAAU,EAAE,GAAG;QACf,SAAS,EAAE,wBAAwB;QACnC,MAAM,EAAE,KAAK,CAAC,OAAO;KACtB,CAAC,CAAC;AACL,CAAC"}
|
|
1
|
+
{"version":3,"file":"worktree-manager.js","sourceRoot":"","sources":["../../../../src/modules/worktree/worktree-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAOpD,MAAM,0BAA0B,GAAG,MAAM,CAAC;AAoB1C,MAAM,OAAO,eAAe;IAEP;IACA;IACA;IACA;IACA;IALnB,YACmB,gBAAkC,EAClC,2BAAwD,EACxD,cAA8B,EAC9B,gBAAkC,EAClC,sBAOhB;QAXgB,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,gCAA2B,GAA3B,2BAA2B,CAA6B;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EAAE,wBAAwB;YACnC,MAAM,EAAE,uBAAuB;SAChC,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAI,QAAQ,CAAC;QAClB,UAAU,EAAE,GAAG;QACf,SAAS,EAAE,wBAAwB;QACnC,MAAM,EAAE,KAAK,CAAC,OAAO;KACtB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,13 +1,53 @@
|
|
|
1
1
|
export async function registerAssistantCapabilityRoutes(app, assistantCapabilityController) {
|
|
2
|
+
app.addHook("preSerialization", async (request, _reply, payload) => {
|
|
3
|
+
const routePath = request.url.split("?")[0] ?? request.url;
|
|
4
|
+
if (!routePath.startsWith("/api/assistant/")) {
|
|
5
|
+
return payload;
|
|
6
|
+
}
|
|
7
|
+
if (!request.auth?.callerKind || !isAssistantCapabilityReceipt(payload)) {
|
|
8
|
+
return payload;
|
|
9
|
+
}
|
|
10
|
+
return {
|
|
11
|
+
...payload,
|
|
12
|
+
callerKind: request.auth.callerKind
|
|
13
|
+
};
|
|
14
|
+
});
|
|
2
15
|
app.get("/api/assistant/capabilities", assistantCapabilityController.listCapabilities);
|
|
3
16
|
app.get("/api/assistant/projects", assistantCapabilityController.listProjects);
|
|
4
17
|
app.get("/api/assistant/projects/:projectId", assistantCapabilityController.getProject);
|
|
5
18
|
app.get("/api/assistant/projects/:projectId/sessions", assistantCapabilityController.listProjectSessions);
|
|
19
|
+
app.post("/api/assistant/projects/:projectId/sessions", assistantCapabilityController.startProjectSession);
|
|
20
|
+
app.post("/api/assistant/sessions/start", assistantCapabilityController.startSession);
|
|
6
21
|
app.get("/api/assistant/sessions/:sessionId", assistantCapabilityController.getSession);
|
|
22
|
+
app.delete("/api/assistant/sessions/:sessionId", assistantCapabilityController.deleteSession);
|
|
7
23
|
app.get("/api/assistant/sessions/:sessionId/messages", assistantCapabilityController.listSessionMessages);
|
|
8
24
|
app.get("/api/assistant/sessions/:sessionId/runtime", assistantCapabilityController.getSessionRuntime);
|
|
9
25
|
app.post("/api/assistant/sessions/:sessionId/messages", assistantCapabilityController.sendSessionMessage);
|
|
10
26
|
app.post("/api/assistant/sessions/:sessionId/forks", assistantCapabilityController.forkSession);
|
|
27
|
+
app.get("/api/assistant/sandboxes", assistantCapabilityController.listSandboxes);
|
|
28
|
+
app.post("/api/assistant/sandboxes", assistantCapabilityController.createSandbox);
|
|
29
|
+
app.post("/api/assistant/sandboxes/:sandboxId/promote", assistantCapabilityController.promoteSandbox);
|
|
30
|
+
app.post("/api/assistant/sandboxes/:sandboxId/expire", assistantCapabilityController.expireSandbox);
|
|
31
|
+
app.delete("/api/assistant/sandboxes/:sandboxId", assistantCapabilityController.removeSandbox);
|
|
32
|
+
app.get("/api/assistant/automations", assistantCapabilityController.listAutomations);
|
|
33
|
+
app.get("/api/assistant/automations/runs/recent", assistantCapabilityController.listRecentAutomationRuns);
|
|
34
|
+
app.get("/api/assistant/automations/:automationId", assistantCapabilityController.getAutomation);
|
|
35
|
+
app.post("/api/assistant/automations", assistantCapabilityController.createAutomation);
|
|
36
|
+
app.patch("/api/assistant/automations/:automationId", assistantCapabilityController.updateAutomation);
|
|
37
|
+
app.post("/api/assistant/automations/:automationId/cancel", assistantCapabilityController.cancelAutomation);
|
|
38
|
+
app.post("/api/assistant/automations/:automationId/skip-wait", assistantCapabilityController.skipAutomationWait);
|
|
39
|
+
app.get("/api/assistant/automations/:automationId/runs", assistantCapabilityController.listAutomationRuns);
|
|
40
|
+
app.get("/api/assistant/timers", assistantCapabilityController.listTimers);
|
|
41
|
+
app.get("/api/assistant/timers/:timerId", assistantCapabilityController.getTimer);
|
|
42
|
+
app.post("/api/assistant/timers", assistantCapabilityController.createTimer);
|
|
43
|
+
app.post("/api/assistant/timers/:timerId/cancel", assistantCapabilityController.cancelTimer);
|
|
44
|
+
app.get("/api/assistant/follow-ups", assistantCapabilityController.listFollowUps);
|
|
45
|
+
app.get("/api/assistant/follow-ups/:taskId", assistantCapabilityController.getFollowUp);
|
|
46
|
+
app.post("/api/assistant/follow-ups", assistantCapabilityController.createFollowUp);
|
|
47
|
+
app.post("/api/assistant/follow-ups/:taskId/continue", assistantCapabilityController.continueFollowUp);
|
|
48
|
+
app.post("/api/assistant/follow-ups/:taskId/waiting-user", assistantCapabilityController.markFollowUpWaitingUser);
|
|
49
|
+
app.post("/api/assistant/follow-ups/:taskId/complete", assistantCapabilityController.completeFollowUp);
|
|
50
|
+
app.post("/api/assistant/follow-ups/:taskId/fail", assistantCapabilityController.failFollowUp);
|
|
11
51
|
app.get("/api/assistant/terminals", assistantCapabilityController.listTerminals);
|
|
12
52
|
app.get("/api/assistant/terminals/:terminalId/history", assistantCapabilityController.readTerminalHistory);
|
|
13
53
|
app.post("/api/assistant/terminals/:terminalId/input", assistantCapabilityController.sendTerminalInput);
|
|
@@ -36,4 +76,13 @@ export async function registerAssistantCapabilityRoutes(app, assistantCapability
|
|
|
36
76
|
app.get("/api/assistant/debug-targets/:targetId/runtimes", assistantCapabilityController.listDebugRuntimes);
|
|
37
77
|
app.get("/api/assistant/debug-runtimes/:runtimeId", assistantCapabilityController.getDebugRuntime);
|
|
38
78
|
}
|
|
79
|
+
function isAssistantCapabilityReceipt(payload) {
|
|
80
|
+
if (typeof payload !== "object" || payload === null) {
|
|
81
|
+
return false;
|
|
82
|
+
}
|
|
83
|
+
const candidate = payload;
|
|
84
|
+
return (candidate.ok === true
|
|
85
|
+
&& typeof candidate.capability === "string"
|
|
86
|
+
&& typeof candidate.auditId === "string");
|
|
87
|
+
}
|
|
39
88
|
//# sourceMappingURL=assistant.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant.js","sourceRoot":"","sources":["../../../src/routes/assistant.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"assistant.js","sourceRoot":"","sources":["../../../src/routes/assistant.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,iCAAiC,CACrD,GAAoB,EACpB,6BAA4D;IAE5D,GAAG,CAAC,OAAO,CAAC,kBAAkB,EAA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C;IACnG,GAAG,CAAC,GAAG,CAAC,2DAA2D,EAAE,6BAA6B,CAAC,yBAAyB,CAAC,CAAC;IAC9H,GAAG,CAAC,IAAI,CACN,mEAAmE,EACnE,6BAA6B,CAAC,6BAA6B,CAC5D,CAAC;IACF,GAAG,CAAC,IAAI,CAAC,oDAAoD,EAAE,6BAA6B,CAAC,qBAAqB,CAAC,CAAC;IACpH,GAAG,CAAC,IAAI,CAAC,4CAA4C,EAAE,6BAA6B,CAAC,cAAc,CAAC,CAAC;IACrG,GAAG,CAAC,GAAG,CAAC,uDAAuD,EAAE,6BAA6B,CAAC,qBAAqB,CAAC,CAAC;IACtH,GAAG,CAAC,GAAG,CAAC,iDAAiD,EAAE,6BAA6B,CAAC,iBAAiB,CAAC,CAAC;IAC5G,GAAG,CAAC,GAAG,CAAC,0CAA0C,EAAE,6BAA6B,CAAC,eAAe,CAAC,CAAC;AACrG,CAAC;AAED,SAAS,4BAA4B,CAAC,OAAgB;IACpD,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;QACpD,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,SAAS,GAAG,OAAuD,CAAC;IAC1E,OAAO,CACL,SAAS,CAAC,EAAE,KAAK,IAAI;WAClB,OAAO,SAAS,CAAC,UAAU,KAAK,QAAQ;WACxC,OAAO,SAAS,CAAC,OAAO,KAAK,QAAQ,CACzC,CAAC;AACJ,CAAC"}
|
|
@@ -2,5 +2,9 @@ export async function registerAuthRoutes(app, authController) {
|
|
|
2
2
|
app.post("/api/auth/login", authController.login);
|
|
3
3
|
app.post("/api/auth/refresh", authController.refresh);
|
|
4
4
|
app.post("/api/auth/logout", authController.logout);
|
|
5
|
+
app.get("/api/auth/devices", authController.getDevices);
|
|
6
|
+
app.post("/api/auth/devices/current/primary", authController.updateCurrentDevicePrimary);
|
|
7
|
+
app.post("/api/auth/devices/logout-others", authController.logoutOtherDevices);
|
|
8
|
+
app.post("/api/auth/devices/:deviceId/logout", authController.logoutDevice);
|
|
5
9
|
}
|
|
6
10
|
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/routes/auth.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,GAAoB,EACpB,cAA8B;IAE9B,GAAG,CAAC,IAAI,CAAC,iBAAiB,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IAClD,GAAG,CAAC,IAAI,CAAC,mBAAmB,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACtD,GAAG,CAAC,IAAI,CAAC,kBAAkB,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/routes/auth.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,kBAAkB,CACtC,GAAoB,EACpB,cAA8B;IAE9B,GAAG,CAAC,IAAI,CAAC,iBAAiB,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IAClD,GAAG,CAAC,IAAI,CAAC,mBAAmB,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IACtD,GAAG,CAAC,IAAI,CAAC,kBAAkB,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;IACpD,GAAG,CAAC,GAAG,CAAC,mBAAmB,EAAE,cAAc,CAAC,UAAU,CAAC,CAAC;IACxD,GAAG,CAAC,IAAI,CAAC,mCAAmC,EAAE,cAAc,CAAC,0BAA0B,CAAC,CAAC;IACzF,GAAG,CAAC,IAAI,CAAC,iCAAiC,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;IAC/E,GAAG,CAAC,IAAI,CAAC,oCAAoC,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -5,11 +5,15 @@ export async function registerButlerRoutes(app, butlerController) {
|
|
|
5
5
|
app.get("/api/butler/control-session", butlerController.getCurrentControlSession);
|
|
6
6
|
app.get("/api/butler/control-sessions", butlerController.listControlSessions);
|
|
7
7
|
app.get("/api/butler/control-sessions/:controlSessionId", butlerController.getControlSession);
|
|
8
|
+
app.get("/api/butler/control-timers", butlerController.listControlTimers);
|
|
9
|
+
app.get("/api/butler/control-timers/:timerId", butlerController.getControlTimer);
|
|
8
10
|
app.get("/api/butler/control-session/events", butlerController.listControlSessionEvents);
|
|
9
11
|
app.post("/api/butler/control-session/reset", butlerController.resetControlSession);
|
|
10
12
|
app.post("/api/butler/control-session/start", butlerController.startControlSession);
|
|
11
13
|
app.post("/api/butler/control-session/resume", butlerController.resumeControlSession);
|
|
12
14
|
app.post("/api/butler/control-session/messages", butlerController.sendControlMessage);
|
|
15
|
+
app.post("/api/butler/control-timers", butlerController.createControlTimer);
|
|
16
|
+
app.post("/api/butler/control-timers/:timerId/cancel", butlerController.cancelControlTimer);
|
|
13
17
|
app.get("/api/butler/overview", butlerController.getOverview);
|
|
14
18
|
app.get("/api/butler/follow-up-tasks", butlerController.listFollowUpTasks);
|
|
15
19
|
app.get("/api/butler/follow-up-tasks/:taskId", butlerController.getFollowUpTask);
|
|
@@ -53,6 +57,7 @@ export async function registerButlerRoutes(app, butlerController) {
|
|
|
53
57
|
app.get("/api/butler/projects/:projectId/patrol-runs/:runId", butlerController.getPatrolRun);
|
|
54
58
|
app.get("/api/butler/projects/:projectId/verifications", butlerController.listVerificationRuns);
|
|
55
59
|
app.post("/api/butler/projects/:projectId/verifications", butlerController.startVerificationRun);
|
|
60
|
+
app.post("/api/butler/projects/:projectId/verifications/:verificationId/cancel", butlerController.cancelVerificationRun);
|
|
56
61
|
app.get("/api/butler/projects/:projectId/verifications/:verificationId", butlerController.getVerificationRun);
|
|
57
62
|
}
|
|
58
63
|
//# sourceMappingURL=butler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"butler.js","sourceRoot":"","sources":["../../../src/routes/butler.ts"],"names":[],"mappings":"A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IAAI,CAAC,8CAA8C,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC5F,GAAG,CAAC,KAAK,CAAC,sDAAsD,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IACrG,GAAG,CAAC,GAAG,CAAC,6CAA6C,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;IACxF,GAAG,CAAC,IAAI,CAAC,mDAAmD,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC/F,GAAG,CAAC,GAAG,CAAC,oDAAoD,EAAE,gBAAgB,CAAC,YAAY,CAAC,CAAC;IAC7F,GAAG,CAAC,GAAG,CAAC,+CAA+C,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IAChG,GAAG,CAAC,IAAI,CAAC,+CAA+C,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;IACjG,GAAG,CAAC,IAAI,CACN,sEAAsE,EACtE,gBAAgB,CAAC,qBAAqB,CACvC,CAAC;IACF,GAAG,CAAC,GAAG,CACL,+DAA+D,EAC/D,gBAAgB,CAAC,kBAAkB,CACpC,CAAC;AACJ,CAAC"}
|
|
@@ -31,6 +31,7 @@ export async function registerSessionRoutes(app, sessionController) {
|
|
|
31
31
|
app.post("/api/sessions/start-live", {
|
|
32
32
|
bodyLimit: SESSION_MESSAGE_BODY_LIMIT_BYTES
|
|
33
33
|
}, sessionController.startLive);
|
|
34
|
+
app.delete("/api/sessions/:sessionId", sessionController.deleteSession);
|
|
34
35
|
app.delete("/api/sessions/:sessionId/queue/:queueItemId", sessionController.deleteQueuedMessage);
|
|
35
36
|
}
|
|
36
37
|
//# sourceMappingURL=sessions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../src/routes/sessions.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,iDAAiD;AACjD,MAAM,CAAC,MAAM,gCAAgC,GAAG,EAAE,GAAG,IAAI,GAAG,IAAI,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,CACrC,CAAC;IACF,GAAG,CAAC,IAAI,CAAC,mDAAmD,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IACpG,GAAG,CAAC,IAAI,CAAC,oCAAoC,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC5E,GAAG,CAAC,IAAI,CAAC,+BAA+B,EAAE,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IACtE,GAAG,CAAC,IAAI,CAAC,iCAAiC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACtE,GAAG,CAAC,IAAI,CAAC,qBAAqB,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACzD,GAAG,CAAC,IAAI,CACN,0BAA0B,EAC1B;QACE,SAAS,EAAE,gCAAgC;KAC5C,EACD,iBAAiB,CAAC,SAAS,CAC5B,CAAC;IACF,GAAG,CAAC,MAAM,CAAC,0BAA0B,EAAE,iBAAiB,CAAC,aAAa,CAAC,CAAC;IACxE,GAAG,CAAC,MAAM,CAAC,6CAA6C,EAAE,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;AACnG,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { FastifyInstance } from "fastify";
|
|
2
2
|
import type { ModelSwitchController } from "../modules/model-switch/model-switch-controller.js";
|
|
3
|
+
import type { RelayTunnelController } from "../modules/relay-tunnel/relay-tunnel-controller.js";
|
|
3
4
|
import type { TailscaleController } from "../modules/tailscale/tailscale-controller.js";
|
|
4
|
-
export declare function registerSystemRoutes(app: FastifyInstance, tailscaleController: TailscaleController, modelSwitchController: ModelSwitchController): Promise<void>;
|
|
5
|
+
export declare function registerSystemRoutes(app: FastifyInstance, tailscaleController: TailscaleController, relayTunnelController: RelayTunnelController, modelSwitchController: ModelSwitchController): Promise<void>;
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
export async function registerSystemRoutes(app, tailscaleController, modelSwitchController) {
|
|
1
|
+
export async function registerSystemRoutes(app, tailscaleController, relayTunnelController, modelSwitchController) {
|
|
2
2
|
app.get("/api/system/tailscale/status", tailscaleController.getStatus);
|
|
3
3
|
app.put("/api/system/tailscale/config", tailscaleController.updateConfig);
|
|
4
4
|
app.post("/api/system/tailscale/enable", tailscaleController.enable);
|
|
5
5
|
app.post("/api/system/tailscale/disable", tailscaleController.disable);
|
|
6
6
|
app.post("/api/system/tailscale/login", tailscaleController.login);
|
|
7
7
|
app.post("/api/system/tailscale/logout", tailscaleController.logout);
|
|
8
|
+
app.get("/api/system/relay-tunnel/status", relayTunnelController.getStatus);
|
|
9
|
+
app.post("/api/system/relay-tunnel/identity/ensure", relayTunnelController.ensureIdentity);
|
|
10
|
+
app.put("/api/system/relay-tunnel/config", relayTunnelController.updateConfig);
|
|
11
|
+
app.post("/api/system/relay-tunnel/control/login", relayTunnelController.loginControl);
|
|
12
|
+
app.post("/api/system/relay-tunnel/control/logout", relayTunnelController.logoutControl);
|
|
13
|
+
app.get("/api/system/relay-tunnel/control/host-label-availability", relayTunnelController.checkHostLabelAvailability);
|
|
14
|
+
app.post("/api/system/relay-tunnel/control/bind", relayTunnelController.bindControlHost);
|
|
15
|
+
app.get("/api/system/relay-tunnel/control/wallet", relayTunnelController.getTrafficWallet);
|
|
16
|
+
app.post("/api/system/relay-tunnel/bind", relayTunnelController.bind);
|
|
17
|
+
app.post("/api/system/relay-tunnel/unbind", relayTunnelController.unbind);
|
|
18
|
+
app.post("/api/system/relay-tunnel/enable", relayTunnelController.enable);
|
|
19
|
+
app.post("/api/system/relay-tunnel/disable", relayTunnelController.disable);
|
|
8
20
|
app.get("/api/system/model-switch", modelSwitchController.getSnapshot);
|
|
9
21
|
app.post("/api/system/model-switch", modelSwitchController.switchPreset);
|
|
10
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../src/routes/system.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../src/routes/system.ts"],"names":[],"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AE,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACtE,GAAG,CAAC,IAAI,CAAC,iCAAiC,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC1E,GAAG,CAAC,IAAI,CAAC,iCAAiC,EAAE,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAC1E,GAAG,CAAC,IAAI,CAAC,kCAAkC,EAAE,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAC5E,GAAG,CAAC,GAAG,CAAC,0BAA0B,EAAE,qBAAqB,CAAC,WAAW,CAAC,CAAC;IACvE,GAAG,CAAC,IAAI,CAAC,0BAA0B,EAAE,qBAAqB,CAAC,YAAY,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -50,11 +50,18 @@ import { WorktreeMergeService } from "../modules/worktree/worktree-merge-service
|
|
|
50
50
|
import { WorktreeManager } from "../modules/worktree/worktree-manager.js";
|
|
51
51
|
import { WorktreeSyncService } from "../modules/worktree/worktree-sync-service.js";
|
|
52
52
|
import { WorkspaceService } from "../modules/workspace/workspace-service.js";
|
|
53
|
+
import { AssistantAutomationRunRepository } from "../storage/repositories/assistant-automation-run-repository.js";
|
|
54
|
+
import { AssistantSandboxWorkspaceRepository } from "../storage/repositories/assistant-sandbox-workspace-repository.js";
|
|
55
|
+
import { AssistantAutomationTaskRepository } from "../storage/repositories/assistant-automation-task-repository.js";
|
|
56
|
+
import { AuthDeviceRepository } from "../storage/repositories/auth-device-repository.js";
|
|
57
|
+
import { AuthDeviceSessionRepository } from "../storage/repositories/auth-device-session-repository.js";
|
|
58
|
+
import { AuthLoginEventRepository } from "../storage/repositories/auth-login-event-repository.js";
|
|
53
59
|
import { AuthTokenRepository } from "../storage/repositories/auth-token-repository.js";
|
|
54
60
|
import { AuthLoginAttemptRepository } from "../storage/repositories/auth-login-attempt-repository.js";
|
|
55
61
|
import { AuthUserRepository } from "../storage/repositories/auth-user-repository.js";
|
|
56
62
|
import { AiFallbackEditRepository } from "../storage/repositories/ai-fallback-edit-repository.js";
|
|
57
63
|
import { BootstrapStateRepository } from "../storage/repositories/bootstrap-state-repository.js";
|
|
64
|
+
import { ButlerControlTimerRepository } from "../storage/repositories/butler-control-timer-repository.js";
|
|
58
65
|
import { ButlerControlSessionRepository } from "../storage/repositories/butler-control-session-repository.js";
|
|
59
66
|
import { ButlerControlEventRepository } from "../storage/repositories/butler-control-event-repository.js";
|
|
60
67
|
import { ButlerFollowUpTaskRepository } from "../storage/repositories/butler-follow-up-task-repository.js";
|
|
@@ -90,6 +97,8 @@ import { SessionSendQueueRepository } from "../storage/repositories/session-send
|
|
|
90
97
|
import { SessionStateRepository } from "../storage/repositories/session-state-repository.js";
|
|
91
98
|
import { SessionStatusSnapshotRepository } from "../storage/repositories/session-status-snapshot-repository.js";
|
|
92
99
|
import { InstanceTailscaleRepository } from "../storage/repositories/instance-tailscale-repository.js";
|
|
100
|
+
import { InstanceRelayTunnelIdentityRepository } from "../storage/repositories/instance-relay-tunnel-identity-repository.js";
|
|
101
|
+
import { InstanceRelayTunnelRepository } from "../storage/repositories/instance-relay-tunnel-repository.js";
|
|
93
102
|
import { SkillTargetBindingRepository } from "../storage/repositories/skill-target-binding-repository.js";
|
|
94
103
|
import { TerminalCommandTemplateRepository } from "../storage/repositories/terminal-command-template-repository.js";
|
|
95
104
|
import { TerminalInstanceRepository } from "../storage/repositories/terminal-instance-repository.js";
|
|
@@ -112,7 +121,13 @@ export declare function createServer(config: HostConfig): {
|
|
|
112
121
|
bootstrapStateRepository: BootstrapStateRepository;
|
|
113
122
|
authUserRepository: AuthUserRepository;
|
|
114
123
|
authTokenRepository: AuthTokenRepository;
|
|
124
|
+
authDeviceRepository: AuthDeviceRepository;
|
|
125
|
+
authDeviceSessionRepository: AuthDeviceSessionRepository;
|
|
126
|
+
authLoginEventRepository: AuthLoginEventRepository;
|
|
115
127
|
authLoginAttemptRepository: AuthLoginAttemptRepository;
|
|
128
|
+
assistantAutomationTaskRepository: AssistantAutomationTaskRepository;
|
|
129
|
+
assistantAutomationRunRepository: AssistantAutomationRunRepository;
|
|
130
|
+
assistantSandboxWorkspaceRepository: AssistantSandboxWorkspaceRepository;
|
|
116
131
|
workspaceRepository: WorkspaceRepository;
|
|
117
132
|
workspaceWorktreeRepository: WorkspaceWorktreeRepository;
|
|
118
133
|
workspaceNavigationStateRepository: WorkspaceNavigationStateRepository;
|
|
@@ -123,6 +138,7 @@ export declare function createServer(config: HostConfig): {
|
|
|
123
138
|
portLeaseRepository: PortLeaseRepository;
|
|
124
139
|
runtimeBindingRepository: RuntimeBindingRepository;
|
|
125
140
|
aiFallbackEditRepository: AiFallbackEditRepository;
|
|
141
|
+
butlerControlTimerRepository: ButlerControlTimerRepository;
|
|
126
142
|
butlerControlSessionRepository: ButlerControlSessionRepository;
|
|
127
143
|
butlerControlEventRepository: ButlerControlEventRepository;
|
|
128
144
|
butlerFollowUpTaskRepository: ButlerFollowUpTaskRepository;
|
|
@@ -152,6 +168,8 @@ export declare function createServer(config: HostConfig): {
|
|
|
152
168
|
sessionStateRepository: SessionStateRepository;
|
|
153
169
|
sessionStatusSnapshotRepository: SessionStatusSnapshotRepository;
|
|
154
170
|
instanceTailscaleRepository: InstanceTailscaleRepository;
|
|
171
|
+
instanceRelayTunnelIdentityRepository: InstanceRelayTunnelIdentityRepository;
|
|
172
|
+
instanceRelayTunnelRepository: InstanceRelayTunnelRepository;
|
|
155
173
|
skillTargetBindingRepository: SkillTargetBindingRepository;
|
|
156
174
|
userQuickPhrasePreferenceRepository: UserQuickPhrasePreferenceRepository;
|
|
157
175
|
userPreferenceProfileRepository: UserPreferenceProfileRepository;
|