@jingyi0605/codingns 0.7.4 → 0.8.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/README.md +6 -0
- package/bin/codingns.mjs +747 -28
- package/bin/office-mcp-server.mjs +620 -0
- package/dist/public/assets/{AdaptiveButlerPage-CgBX49t-.js → AdaptiveButlerPage-b7s6F_sd.js} +1 -1
- package/dist/public/assets/{App-tXOqoHNl.js → App-B0q8uDA-.js} +3 -3
- package/dist/public/assets/{BootstrapPage-DoRMz87R.js → BootstrapPage-jFfl7KNK.js} +1 -1
- package/dist/public/assets/{ConversationPage-DXR6Hp4O.js → ConversationPage-sj_rn4q0.js} +6 -6
- package/dist/public/assets/{DesktopDetachPreviewPage-Cyk-ZYCk.js → DesktopDetachPreviewPage-C5c88SOX.js} +1 -1
- package/dist/public/assets/{DesktopWindowPage-DNVNK3hs.js → DesktopWindowPage-BdKUZrKG.js} +1 -1
- package/dist/public/assets/FileContextPanel-lM5mBcfn.js +1 -0
- package/dist/public/assets/{GitSidebar-Cr3Z9OUI.js → GitSidebar-CmXAhyjo.js} +2 -2
- package/dist/public/assets/{MobileCreateSessionSheet-DMW0V6GJ.js → MobileCreateSessionSheet-CceV0-AH.js} +1 -1
- package/dist/public/assets/{MobileTopHeaderFrame-CkdnZ_MU.js → MobileTopHeaderFrame-_I0t7cC_.js} +1 -1
- package/dist/public/assets/{MobileWorkspaceSwitcherHeader-KIbqBYJN.js → MobileWorkspaceSwitcherHeader-DhaM9fgx.js} +1 -1
- package/dist/public/assets/{RelayConnectEntryPage-DIRBH3hw.js → RelayConnectEntryPage-CMtDWyGS.js} +1 -1
- package/dist/public/assets/{ServerSettingsModal-C-9RxdWP.js → ServerSettingsModal-Rkgn3jft.js} +1 -1
- package/dist/public/assets/{SessionIndexPage-bRlIydRA.js → SessionIndexPage-BOumP3ij.js} +1 -1
- package/dist/public/assets/{SettingsPage-CMEt4ua9.js → SettingsPage-vx_c-00-.js} +2 -2
- package/dist/public/assets/{TerminalManagerPanel-2bi9wVhT.js → TerminalManagerPanel-D9JHCS6d.js} +1 -1
- package/dist/public/assets/{TerminalPage-DayZz2Tf.js → TerminalPage-CBIKHI33.js} +1 -1
- package/dist/public/assets/{TerminalRuntimeFallbackModal-DgwYcp-Y.js → TerminalRuntimeFallbackModal-W5NjqFEz.js} +1 -1
- package/dist/public/assets/{ToolFilesPage-YvnP_FXW.js → ToolFilesPage-DWtpaN_7.js} +1 -1
- package/dist/public/assets/{ToolGitPage-GMcQKtV9.js → ToolGitPage-MpGXsw4_.js} +1 -1
- package/dist/public/assets/{ToolProcessesPage-DFIQ7BCd.js → ToolProcessesPage-B1jHQKhZ.js} +1 -1
- package/dist/public/assets/{ToolsHomePage-CSilFzXR.js → ToolsHomePage-CJrn8ZFl.js} +1 -1
- package/dist/public/assets/{WorkbenchLandingPage-1VtToSz9.js → WorkbenchLandingPage-CJQ1V5U-.js} +1 -1
- package/dist/public/assets/WorkbenchLayout-D48i71PU.js +244 -0
- package/dist/public/assets/{WorkbenchModal-BWXYSXmC.js → WorkbenchModal-BYNuMIoV.js} +1 -1
- package/dist/public/assets/WorkbenchShellRoute-B4XB8SwG.css +1 -0
- package/dist/public/assets/WorkbenchShellRoute-CGKjy4J-.js +1 -0
- package/dist/public/assets/{WorkspaceDebugDetailPage-Ux8_Q7la.js → WorkspaceDebugDetailPage-DCAYgays.js} +1 -1
- package/dist/public/assets/{WorkspaceDetailPage-B402p99m.js → WorkspaceDetailPage-D5v-nUIi.js} +1 -1
- package/dist/public/assets/{WorkspaceHomePage-D2pob6HI.js → WorkspaceHomePage-I5G1p5SR.js} +1 -1
- package/dist/public/assets/{client-runtime-manager-C5D76ewj.js → client-runtime-manager-CdJP7nUp.js} +1 -1
- package/dist/public/assets/file-tree-icon-BFwaPxKs.js +590 -0
- package/dist/public/assets/index-CjewzOUG.js +42 -0
- package/dist/public/assets/index-VVxfF0s5.css +1 -0
- package/dist/public/assets/{login-direct-candidate-resolver-wXSaB0i7.js → login-direct-candidate-resolver-C-mo698r.js} +1 -1
- package/dist/public/assets/{model-switch-api-CPtou49j.js → model-switch-api-Br0ivfe5.js} +1 -1
- package/dist/public/assets/{preferences-service-CdaK7zA8.js → preferences-service-CnaTvZq2.js} +1 -1
- package/dist/public/assets/{realtime-client-BjQazYsK.js → realtime-client-BlQRqVmm.js} +1 -1
- package/dist/public/assets/{relay-entry-BwE5nw0l.js → relay-entry-D7OgZZN-.js} +1 -1
- package/dist/public/assets/{terminal-runtime-meta-C-Lbyx2i.js → terminal-runtime-meta-BCtAYB0E.js} +1 -1
- package/dist/public/assets/{useRegisteredDebugTemplates-BM7-c-gx.js → useRegisteredDebugTemplates-CXmxu69X.js} +1 -1
- package/dist/public/index.html +2 -2
- package/dist/server/config/env.d.ts +3 -0
- package/dist/server/config/env.js +67 -1
- package/dist/server/config/env.js.map +1 -1
- package/dist/server/config/opencode-base-url-resolver.d.ts +3 -2
- package/dist/server/config/opencode-base-url-resolver.js +64 -24
- package/dist/server/config/opencode-base-url-resolver.js.map +1 -1
- package/dist/server/main.js +2 -0
- package/dist/server/main.js.map +1 -1
- package/dist/server/middlewares/auth-guard.js +4 -0
- package/dist/server/middlewares/auth-guard.js.map +1 -1
- package/dist/server/modules/assistant-capability/assistant-capability-controller.d.ts +169 -1
- package/dist/server/modules/assistant-capability/assistant-capability-controller.js +206 -4
- package/dist/server/modules/assistant-capability/assistant-capability-controller.js.map +1 -1
- package/dist/server/modules/assistant-capability/assistant-capability-service.d.ts +297 -2
- package/dist/server/modules/assistant-capability/assistant-capability-service.js +873 -3
- package/dist/server/modules/assistant-capability/assistant-capability-service.js.map +1 -1
- package/dist/server/modules/auth/auth-service.d.ts +21 -1
- package/dist/server/modules/auth/auth-service.js +64 -0
- package/dist/server/modules/auth/auth-service.js.map +1 -1
- package/dist/server/modules/browser-runtime/browser-profile-service.d.ts +26 -0
- package/dist/server/modules/browser-runtime/browser-profile-service.js +85 -0
- package/dist/server/modules/browser-runtime/browser-profile-service.js.map +1 -0
- package/dist/server/modules/browser-runtime/browser-runtime-controller.d.ts +70 -0
- package/dist/server/modules/browser-runtime/browser-runtime-controller.js +84 -0
- package/dist/server/modules/browser-runtime/browser-runtime-controller.js.map +1 -0
- package/dist/server/modules/browser-runtime/browser-runtime-service.d.ts +59 -0
- package/dist/server/modules/browser-runtime/browser-runtime-service.js +255 -0
- package/dist/server/modules/browser-runtime/browser-runtime-service.js.map +1 -0
- package/dist/server/modules/browser-runtime/browser-task-execution-support.d.ts +65 -0
- package/dist/server/modules/browser-runtime/browser-task-execution-support.js +432 -0
- package/dist/server/modules/browser-runtime/browser-task-execution-support.js.map +1 -0
- package/dist/server/modules/browser-runtime/browser-task-executor-registry.d.ts +7 -0
- package/dist/server/modules/browser-runtime/browser-task-executor-registry.js +21 -0
- package/dist/server/modules/browser-runtime/browser-task-executor-registry.js.map +1 -0
- package/dist/server/modules/browser-runtime/browser-task-executor.d.ts +55 -0
- package/dist/server/modules/browser-runtime/browser-task-executor.js +2 -0
- package/dist/server/modules/browser-runtime/browser-task-executor.js.map +1 -0
- package/dist/server/modules/browser-runtime/browser-task-payload.d.ts +33 -0
- package/dist/server/modules/browser-runtime/browser-task-payload.js +55 -0
- package/dist/server/modules/browser-runtime/browser-task-payload.js.map +1 -0
- package/dist/server/modules/browser-runtime/opencli-bridge-browser-executor.d.ts +19 -0
- package/dist/server/modules/browser-runtime/opencli-bridge-browser-executor.js +219 -0
- package/dist/server/modules/browser-runtime/opencli-bridge-browser-executor.js.map +1 -0
- package/dist/server/modules/browser-runtime/opencli-browser-bridge-service.d.ts +15 -0
- package/dist/server/modules/browser-runtime/opencli-browser-bridge-service.js +33 -0
- package/dist/server/modules/browser-runtime/opencli-browser-bridge-service.js.map +1 -0
- package/dist/server/modules/browser-runtime/playwright-browser-executor.d.ts +16 -0
- package/dist/server/modules/browser-runtime/playwright-browser-executor.js +272 -0
- package/dist/server/modules/browser-runtime/playwright-browser-executor.js.map +1 -0
- package/dist/server/modules/butler/butler-auth-service.js +4 -0
- package/dist/server/modules/butler/butler-auth-service.js.map +1 -1
- package/dist/server/modules/butler/butler-inbox-instruction-adapter.js +1 -0
- package/dist/server/modules/butler/butler-inbox-instruction-adapter.js.map +1 -1
- package/dist/server/modules/butler/butler-session-summary-service.d.ts +1 -0
- package/dist/server/modules/butler/butler-session-summary-service.js +5 -3
- package/dist/server/modules/butler/butler-session-summary-service.js.map +1 -1
- package/dist/server/modules/butler/butler-workspace-context.js +23 -0
- package/dist/server/modules/butler/butler-workspace-context.js.map +1 -1
- package/dist/server/modules/debug-target/debug-target-service.d.ts +2 -0
- package/dist/server/modules/debug-target/debug-target-service.js +14 -0
- package/dist/server/modules/debug-target/debug-target-service.js.map +1 -1
- package/dist/server/modules/document-runtime/document-docx-fallback-renderer.py +139 -0
- package/dist/server/modules/document-runtime/document-export-executor.d.ts +50 -0
- package/dist/server/modules/document-runtime/document-export-executor.js +827 -0
- package/dist/server/modules/document-runtime/document-export-executor.js.map +1 -0
- package/dist/server/modules/document-runtime/document-runtime-controller.d.ts +127 -0
- package/dist/server/modules/document-runtime/document-runtime-controller.js +131 -0
- package/dist/server/modules/document-runtime/document-runtime-controller.js.map +1 -0
- package/dist/server/modules/document-runtime/document-runtime-service.d.ts +125 -0
- package/dist/server/modules/document-runtime/document-runtime-service.js +706 -0
- package/dist/server/modules/document-runtime/document-runtime-service.js.map +1 -0
- package/dist/server/modules/git/git-command-helper-process.js +0 -18
- package/dist/server/modules/git/git-command-helper-process.js.map +1 -1
- package/dist/server/modules/git/git-command-runner.js +0 -18
- package/dist/server/modules/git/git-command-runner.js.map +1 -1
- package/dist/server/modules/office/office-controller.d.ts +77 -0
- package/dist/server/modules/office/office-controller.js +174 -0
- package/dist/server/modules/office/office-controller.js.map +1 -0
- package/dist/server/modules/office/office-preview-link-service.d.ts +27 -0
- package/dist/server/modules/office/office-preview-link-service.js +121 -0
- package/dist/server/modules/office/office-preview-link-service.js.map +1 -0
- package/dist/server/modules/office/office-service.d.ts +67 -0
- package/dist/server/modules/office/office-service.js +359 -0
- package/dist/server/modules/office/office-service.js.map +1 -0
- package/dist/server/modules/opencli/opencli-bridge-skill-service.js +38 -14
- package/dist/server/modules/opencli/opencli-bridge-skill-service.js.map +1 -1
- package/dist/server/modules/opencli/opencli-install-discovery.d.ts +4 -0
- package/dist/server/modules/opencli/opencli-install-discovery.js +94 -0
- package/dist/server/modules/opencli/opencli-install-discovery.js.map +1 -1
- package/dist/server/modules/opencli/opencli-runtime-builder.js +29 -0
- package/dist/server/modules/opencli/opencli-runtime-builder.js.map +1 -1
- package/dist/server/modules/opencli/opencli-runtime-guard.d.ts +2 -0
- package/dist/server/modules/opencli/opencli-runtime-guard.js +5 -0
- package/dist/server/modules/opencli/opencli-runtime-guard.js.map +1 -0
- package/dist/server/modules/ops-runtime/ops-runtime-controller.d.ts +70 -0
- package/dist/server/modules/ops-runtime/ops-runtime-controller.js +83 -0
- package/dist/server/modules/ops-runtime/ops-runtime-controller.js.map +1 -0
- package/dist/server/modules/ops-runtime/ops-runtime-service.d.ts +80 -0
- package/dist/server/modules/ops-runtime/ops-runtime-service.js +327 -0
- package/dist/server/modules/ops-runtime/ops-runtime-service.js.map +1 -0
- package/dist/server/modules/ops-runtime/ssh-ops-executor.d.ts +41 -0
- package/dist/server/modules/ops-runtime/ssh-ops-executor.js +478 -0
- package/dist/server/modules/ops-runtime/ssh-ops-executor.js.map +1 -0
- package/dist/server/modules/presentation/presentation-controller.d.ts +22 -0
- package/dist/server/modules/presentation/presentation-controller.js +59 -0
- package/dist/server/modules/presentation/presentation-controller.js.map +1 -0
- package/dist/server/modules/presentation/presentation-export-task-service.d.ts +24 -0
- package/dist/server/modules/presentation/presentation-export-task-service.js +137 -0
- package/dist/server/modules/presentation/presentation-export-task-service.js.map +1 -0
- package/dist/server/modules/presentation/presentation-export-types.d.ts +12 -0
- package/dist/server/modules/presentation/presentation-export-types.js +2 -0
- package/dist/server/modules/presentation/presentation-export-types.js.map +1 -0
- package/dist/server/modules/presentation/presentation-pdf-export-service.d.ts +20 -0
- package/dist/server/modules/presentation/presentation-pdf-export-service.js +29 -0
- package/dist/server/modules/presentation/presentation-pdf-export-service.js.map +1 -0
- package/dist/server/modules/presentation/presentation-pptx-export-service.d.ts +20 -0
- package/dist/server/modules/presentation/presentation-pptx-export-service.js +64 -0
- package/dist/server/modules/presentation/presentation-pptx-export-service.js.map +1 -0
- package/dist/server/modules/presentation/presentation-renderer.d.ts +21 -0
- package/dist/server/modules/presentation/presentation-renderer.js +208 -0
- package/dist/server/modules/presentation/presentation-renderer.js.map +1 -0
- package/dist/server/modules/relay-tunnel/relay-tunnel-gateway-service.js +3 -3
- package/dist/server/modules/relay-tunnel/relay-tunnel-gateway-service.js.map +1 -1
- package/dist/server/modules/relay-tunnel/relay-tunnel-service.js +6 -1
- package/dist/server/modules/relay-tunnel/relay-tunnel-service.js.map +1 -1
- package/dist/server/modules/sessions/codex-app-server-helper-process.js +2 -1
- package/dist/server/modules/sessions/codex-app-server-helper-process.js.map +1 -1
- package/dist/server/modules/sessions/session-controller.d.ts +1 -0
- package/dist/server/modules/sessions/session-controller.js +59 -4
- package/dist/server/modules/sessions/session-controller.js.map +1 -1
- package/dist/server/modules/sessions/session-history-service.js +17 -5
- package/dist/server/modules/sessions/session-history-service.js.map +1 -1
- package/dist/server/modules/sessions/session-live-runtime-service.d.ts +5 -1
- package/dist/server/modules/sessions/session-live-runtime-service.js +129 -8
- package/dist/server/modules/sessions/session-live-runtime-service.js.map +1 -1
- package/dist/server/modules/sessions/session-provider-config-service.d.ts +25 -1
- package/dist/server/modules/sessions/session-provider-config-service.js +54 -5
- package/dist/server/modules/sessions/session-provider-config-service.js.map +1 -1
- package/dist/server/modules/sessions/workspace-office-mcp-config.d.ts +14 -0
- package/dist/server/modules/sessions/workspace-office-mcp-config.js +54 -0
- package/dist/server/modules/sessions/workspace-office-mcp-config.js.map +1 -0
- package/dist/server/modules/sessions/workspace-session-auth-service.d.ts +27 -0
- package/dist/server/modules/sessions/workspace-session-auth-service.js +109 -0
- package/dist/server/modules/sessions/workspace-session-auth-service.js.map +1 -0
- package/dist/server/modules/sessions/workspace-session-runtime-context-service.d.ts +51 -0
- package/dist/server/modules/sessions/workspace-session-runtime-context-service.js +341 -0
- package/dist/server/modules/sessions/workspace-session-runtime-context-service.js.map +1 -0
- package/dist/server/modules/skills/assistant-runtime-skill-catalog.js +5 -0
- package/dist/server/modules/skills/assistant-runtime-skill-catalog.js.map +1 -1
- package/dist/server/modules/skills/builtin-skills/codingns-workspace-session/SKILL.md +67 -0
- package/dist/server/modules/skills/builtin-skills/codingns-workspace-session/agents/openai.yaml +4 -0
- package/dist/server/modules/skills/builtin-skills/codingns-workspace-session/references/cli-workflow.md +133 -0
- package/dist/server/modules/skills/skill-controller.d.ts +7 -0
- package/dist/server/modules/skills/skill-controller.js +7 -0
- package/dist/server/modules/skills/skill-controller.js.map +1 -1
- package/dist/server/modules/skills/skill-manager-service.d.ts +61 -0
- package/dist/server/modules/skills/skill-manager-service.js +218 -0
- package/dist/server/modules/skills/skill-manager-service.js.map +1 -1
- package/dist/server/modules/skills/skill-name-policy.js +2 -1
- package/dist/server/modules/skills/skill-name-policy.js.map +1 -1
- package/dist/server/modules/tasks/task-helper-client.d.ts +1 -0
- package/dist/server/modules/tasks/task-helper-client.js +45 -9
- package/dist/server/modules/tasks/task-helper-client.js.map +1 -1
- package/dist/server/modules/tasks/task-types.d.ts +5 -0
- package/dist/server/modules/tasks/task-types.js +6 -1
- package/dist/server/modules/tasks/task-types.js.map +1 -1
- package/dist/server/modules/terminal/runtime/conpty-session-agent-process.js +2 -1
- package/dist/server/modules/terminal/runtime/conpty-session-agent-process.js.map +1 -1
- package/dist/server/modules/terminal/runtime/node-pty-loader.d.ts +5 -0
- package/dist/server/modules/terminal/runtime/node-pty-loader.js +68 -0
- package/dist/server/modules/terminal/runtime/node-pty-loader.js.map +1 -0
- package/dist/server/modules/terminal/runtime/pty-broker-agent-process.js +2 -1
- package/dist/server/modules/terminal/runtime/pty-broker-agent-process.js.map +1 -1
- package/dist/server/modules/terminal/runtime/pty-host-attachment-manager.js +6 -9
- package/dist/server/modules/terminal/runtime/pty-host-attachment-manager.js.map +1 -1
- package/dist/server/modules/terminal/runtime/pty-runtime-manager.js +6 -9
- package/dist/server/modules/terminal/runtime/pty-runtime-manager.js.map +1 -1
- package/dist/server/routes/assistant.d.ts +2 -1
- package/dist/server/routes/assistant.js +20 -1
- package/dist/server/routes/assistant.js.map +1 -1
- package/dist/server/routes/browser-runtime.d.ts +3 -0
- package/dist/server/routes/browser-runtime.js +14 -0
- package/dist/server/routes/browser-runtime.js.map +1 -0
- package/dist/server/routes/document-runtime.d.ts +3 -0
- package/dist/server/routes/document-runtime.js +18 -0
- package/dist/server/routes/document-runtime.js.map +1 -0
- package/dist/server/routes/office.d.ts +3 -0
- package/dist/server/routes/office.js +16 -0
- package/dist/server/routes/office.js.map +1 -0
- package/dist/server/routes/ops-runtime.d.ts +3 -0
- package/dist/server/routes/ops-runtime.js +13 -0
- package/dist/server/routes/ops-runtime.js.map +1 -0
- package/dist/server/routes/presentation.d.ts +3 -0
- package/dist/server/routes/presentation.js +5 -0
- package/dist/server/routes/presentation.js.map +1 -0
- package/dist/server/routes/skills.js +1 -0
- package/dist/server/routes/skills.js.map +1 -1
- package/dist/server/server/create-server.d.ts +36 -0
- package/dist/server/server/create-server.js +215 -4
- package/dist/server/server/create-server.js.map +1 -1
- package/dist/server/server/release-manifest-sync.d.ts +1 -0
- package/dist/server/server/release-manifest-sync.js +2 -2
- package/dist/server/server/release-manifest-sync.js.map +1 -1
- package/dist/server/server/start-host.js +1 -1
- package/dist/server/server/start-host.js.map +1 -1
- package/dist/server/shared/http/error-handler.js +53 -19
- package/dist/server/shared/http/error-handler.js.map +1 -1
- package/dist/server/shared/utils/install-console-timestamp-prefix.d.ts +1 -0
- package/dist/server/shared/utils/install-console-timestamp-prefix.js +28 -0
- package/dist/server/shared/utils/install-console-timestamp-prefix.js.map +1 -0
- package/dist/server/storage/repositories/auth-token-repository.js +22 -6
- package/dist/server/storage/repositories/auth-token-repository.js.map +1 -1
- package/dist/server/storage/repositories/browser-profile-repository.d.ts +18 -0
- package/dist/server/storage/repositories/browser-profile-repository.js +134 -0
- package/dist/server/storage/repositories/browser-profile-repository.js.map +1 -0
- package/dist/server/storage/repositories/document-comment-repository.d.ts +10 -0
- package/dist/server/storage/repositories/document-comment-repository.js +118 -0
- package/dist/server/storage/repositories/document-comment-repository.js.map +1 -0
- package/dist/server/storage/repositories/document-repository.d.ts +16 -0
- package/dist/server/storage/repositories/document-repository.js +109 -0
- package/dist/server/storage/repositories/document-repository.js.map +1 -0
- package/dist/server/storage/repositories/document-revision-repository.d.ts +10 -0
- package/dist/server/storage/repositories/document-revision-repository.js +79 -0
- package/dist/server/storage/repositories/document-revision-repository.js.map +1 -0
- package/dist/server/storage/repositories/document-template-repository.d.ts +13 -0
- package/dist/server/storage/repositories/document-template-repository.js +244 -0
- package/dist/server/storage/repositories/document-template-repository.js.map +1 -0
- package/dist/server/storage/repositories/office-approval-repository.d.ts +11 -0
- package/dist/server/storage/repositories/office-approval-repository.js +109 -0
- package/dist/server/storage/repositories/office-approval-repository.js.map +1 -0
- package/dist/server/storage/repositories/office-artifact-repository.d.ts +10 -0
- package/dist/server/storage/repositories/office-artifact-repository.js +89 -0
- package/dist/server/storage/repositories/office-artifact-repository.js.map +1 -0
- package/dist/server/storage/repositories/office-audit-event-repository.d.ts +8 -0
- package/dist/server/storage/repositories/office-audit-event-repository.js +54 -0
- package/dist/server/storage/repositories/office-audit-event-repository.js.map +1 -0
- package/dist/server/storage/repositories/office-connector-repository.d.ts +10 -0
- package/dist/server/storage/repositories/office-connector-repository.js +97 -0
- package/dist/server/storage/repositories/office-connector-repository.js.map +1 -0
- package/dist/server/storage/repositories/office-receipt-repository.d.ts +8 -0
- package/dist/server/storage/repositories/office-receipt-repository.js +48 -0
- package/dist/server/storage/repositories/office-receipt-repository.js.map +1 -0
- package/dist/server/storage/repositories/office-rollback-record-repository.d.ts +8 -0
- package/dist/server/storage/repositories/office-rollback-record-repository.js +60 -0
- package/dist/server/storage/repositories/office-rollback-record-repository.js.map +1 -0
- package/dist/server/storage/repositories/office-task-repository.d.ts +19 -0
- package/dist/server/storage/repositories/office-task-repository.js +199 -0
- package/dist/server/storage/repositories/office-task-repository.js.map +1 -0
- package/dist/server/storage/repositories/office-task-step-repository.d.ts +10 -0
- package/dist/server/storage/repositories/office-task-step-repository.js +110 -0
- package/dist/server/storage/repositories/office-task-step-repository.js.map +1 -0
- package/dist/server/storage/repositories/ops-target-repository.d.ts +16 -0
- package/dist/server/storage/repositories/ops-target-repository.js +119 -0
- package/dist/server/storage/repositories/ops-target-repository.js.map +1 -0
- package/dist/server/storage/repositories/session-binding-repository.d.ts +4 -0
- package/dist/server/storage/repositories/session-binding-repository.js +70 -69
- package/dist/server/storage/repositories/session-binding-repository.js.map +1 -1
- package/dist/server/storage/repositories/session-changed-file-repository.d.ts +6 -0
- package/dist/server/storage/repositories/session-changed-file-repository.js +44 -43
- package/dist/server/storage/repositories/session-changed-file-repository.js.map +1 -1
- package/dist/server/storage/repositories/session-fork-repository.d.ts +2 -0
- package/dist/server/storage/repositories/session-fork-repository.js +42 -41
- package/dist/server/storage/repositories/session-fork-repository.js.map +1 -1
- package/dist/server/storage/repositories/session-index-repository.d.ts +5 -0
- package/dist/server/storage/repositories/session-index-repository.js +153 -152
- package/dist/server/storage/repositories/session-index-repository.js.map +1 -1
- package/dist/server/storage/repositories/session-message-attachment-repository.d.ts +7 -0
- package/dist/server/storage/repositories/session-message-attachment-repository.js +91 -90
- package/dist/server/storage/repositories/session-message-attachment-repository.js.map +1 -1
- package/dist/server/storage/repositories/session-message-origin-repository.d.ts +2 -0
- package/dist/server/storage/repositories/session-message-origin-repository.js +25 -24
- package/dist/server/storage/repositories/session-message-origin-repository.js.map +1 -1
- package/dist/server/storage/repositories/session-state-repository.d.ts +2 -0
- package/dist/server/storage/repositories/session-state-repository.js +35 -34
- package/dist/server/storage/repositories/session-state-repository.js.map +1 -1
- package/dist/server/storage/repositories/session-status-snapshot-repository.d.ts +2 -0
- package/dist/server/storage/repositories/session-status-snapshot-repository.js +25 -24
- package/dist/server/storage/repositories/session-status-snapshot-repository.js.map +1 -1
- package/dist/server/storage/sqlite/client.js +123 -1
- package/dist/server/storage/sqlite/client.js.map +1 -1
- package/dist/server/storage/sqlite/schema.sql +300 -1
- package/dist/server/types/domain.d.ts +205 -1
- package/node_modules/@codingns/session-sync-core/dist/runtime/opencode-runtime.d.ts +3 -2
- package/node_modules/@codingns/session-sync-core/dist/runtime/opencode-runtime.js +26 -19
- package/node_modules/@codingns/session-sync-core/dist/runtime/opencode-runtime.js.map +1 -1
- package/package.json +17 -8
- package/scripts/postinstall.mjs +159 -7
- package/vendor/node-pty-fork/LICENSE +69 -0
- package/vendor/node-pty-fork/README.md +91 -0
- package/vendor/node-pty-fork/binding.gyp +117 -0
- package/vendor/node-pty-fork/deps/.editorconfig +2 -0
- package/vendor/node-pty-fork/deps/winpty/.drone.yml +17 -0
- package/vendor/node-pty-fork/deps/winpty/.gitattributes +19 -0
- package/vendor/node-pty-fork/deps/winpty/LICENSE +21 -0
- package/vendor/node-pty-fork/deps/winpty/Makefile +166 -0
- package/vendor/node-pty-fork/deps/winpty/README.md +151 -0
- package/vendor/node-pty-fork/deps/winpty/RELEASES.md +280 -0
- package/vendor/node-pty-fork/deps/winpty/VERSION.txt +1 -0
- package/vendor/node-pty-fork/deps/winpty/configure +167 -0
- package/vendor/node-pty-fork/deps/winpty/misc/BufferResizeTests.cc +90 -0
- package/vendor/node-pty-fork/deps/winpty/misc/ChangeScreenBuffer.cc +53 -0
- package/vendor/node-pty-fork/deps/winpty/misc/ClearConsole.cc +72 -0
- package/vendor/node-pty-fork/deps/winpty/misc/ConinMode.cc +117 -0
- package/vendor/node-pty-fork/deps/winpty/misc/ConinMode.ps1 +116 -0
- package/vendor/node-pty-fork/deps/winpty/misc/ConoutMode.cc +113 -0
- package/vendor/node-pty-fork/deps/winpty/misc/DebugClient.py +42 -0
- package/vendor/node-pty-fork/deps/winpty/misc/DebugServer.py +63 -0
- package/vendor/node-pty-fork/deps/winpty/misc/DumpLines.py +5 -0
- package/vendor/node-pty-fork/deps/winpty/misc/EnableExtendedFlags.txt +46 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Font-Report-June2016/CP437-Consolas.txt +528 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Font-Report-June2016/CP437-Lucida.txt +633 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Font-Report-June2016/CP932.txt +630 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Font-Report-June2016/CP936.txt +630 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Font-Report-June2016/CP949.txt +630 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Font-Report-June2016/CP950.txt +630 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Font-Report-June2016/MinimumWindowWidths.txt +16 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Font-Report-June2016/Results.txt +4 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Font-Report-June2016/Windows10SetFontBugginess.txt +144 -0
- package/vendor/node-pty-fork/deps/winpty/misc/FontSurvey.cc +100 -0
- package/vendor/node-pty-fork/deps/winpty/misc/FormatChar.h +21 -0
- package/vendor/node-pty-fork/deps/winpty/misc/FreezePerfTest.cc +62 -0
- package/vendor/node-pty-fork/deps/winpty/misc/GetCh.cc +20 -0
- package/vendor/node-pty-fork/deps/winpty/misc/GetConsolePos.cc +41 -0
- package/vendor/node-pty-fork/deps/winpty/misc/GetFont.cc +261 -0
- package/vendor/node-pty-fork/deps/winpty/misc/IdentifyConsoleWindow.ps1 +51 -0
- package/vendor/node-pty-fork/deps/winpty/misc/IsNewConsole.cc +87 -0
- package/vendor/node-pty-fork/deps/winpty/misc/MouseInputNotes.txt +90 -0
- package/vendor/node-pty-fork/deps/winpty/misc/MoveConsoleWindow.cc +34 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Notes.txt +219 -0
- package/vendor/node-pty-fork/deps/winpty/misc/OSVersion.cc +27 -0
- package/vendor/node-pty-fork/deps/winpty/misc/ScreenBufferFreezeInactive.cc +101 -0
- package/vendor/node-pty-fork/deps/winpty/misc/ScreenBufferTest.cc +671 -0
- package/vendor/node-pty-fork/deps/winpty/misc/ScreenBufferTest2.cc +151 -0
- package/vendor/node-pty-fork/deps/winpty/misc/SelectAllTest.cc +45 -0
- package/vendor/node-pty-fork/deps/winpty/misc/SetBufferSize.cc +32 -0
- package/vendor/node-pty-fork/deps/winpty/misc/SetCursorPos.cc +10 -0
- package/vendor/node-pty-fork/deps/winpty/misc/SetFont.cc +145 -0
- package/vendor/node-pty-fork/deps/winpty/misc/SetWindowRect.cc +36 -0
- package/vendor/node-pty-fork/deps/winpty/misc/ShowArgv.cc +12 -0
- package/vendor/node-pty-fork/deps/winpty/misc/ShowConsoleInput.cc +40 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Spew.py +5 -0
- package/vendor/node-pty-fork/deps/winpty/misc/TestUtil.cc +172 -0
- package/vendor/node-pty-fork/deps/winpty/misc/UnicodeDoubleWidthTest.cc +102 -0
- package/vendor/node-pty-fork/deps/winpty/misc/UnicodeWideTest1.cc +246 -0
- package/vendor/node-pty-fork/deps/winpty/misc/UnicodeWideTest2.cc +130 -0
- package/vendor/node-pty-fork/deps/winpty/misc/UnixEcho.cc +89 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Utf16Echo.cc +46 -0
- package/vendor/node-pty-fork/deps/winpty/misc/VeryLargeRead.cc +122 -0
- package/vendor/node-pty-fork/deps/winpty/misc/VkEscapeTest.cc +56 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Win10ResizeWhileFrozen.cc +52 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Win10WrapTest1.cc +57 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Win10WrapTest2.cc +30 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Win32Echo1.cc +26 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Win32Echo2.cc +19 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Win32Test1.cc +46 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Win32Test2.cc +70 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Win32Test3.cc +78 -0
- package/vendor/node-pty-fork/deps/winpty/misc/Win32Write1.cc +44 -0
- package/vendor/node-pty-fork/deps/winpty/misc/WindowsBugCrashReader.cc +27 -0
- package/vendor/node-pty-fork/deps/winpty/misc/WriteConsole.cc +106 -0
- package/vendor/node-pty-fork/deps/winpty/misc/build32.sh +9 -0
- package/vendor/node-pty-fork/deps/winpty/misc/build64.sh +9 -0
- package/vendor/node-pty-fork/deps/winpty/misc/color-test.sh +212 -0
- package/vendor/node-pty-fork/deps/winpty/misc/font-notes.txt +300 -0
- package/vendor/node-pty-fork/deps/winpty/misc/winbug-15048.cc +201 -0
- package/vendor/node-pty-fork/deps/winpty/ship/build-pty4j-libpty.bat +36 -0
- package/vendor/node-pty-fork/deps/winpty/ship/common_ship.py +53 -0
- package/vendor/node-pty-fork/deps/winpty/ship/make_msvc_package.py +165 -0
- package/vendor/node-pty-fork/deps/winpty/ship/ship.py +108 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Agent.cc +605 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Agent.h +103 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/AgentCreateDesktop.cc +84 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/AgentCreateDesktop.h +28 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/ConsoleFont.cc +632 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/ConsoleFont.h +28 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/ConsoleInput.cc +852 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/ConsoleInput.h +109 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/ConsoleInputReencoding.cc +121 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/ConsoleInputReencoding.h +36 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/ConsoleLine.cc +152 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/ConsoleLine.h +41 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Coord.h +87 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/DebugShowInput.cc +239 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/DebugShowInput.h +32 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/DefaultInputMap.cc +422 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/DefaultInputMap.h +28 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/DsrSender.h +30 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/EventLoop.cc +99 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/EventLoop.h +47 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/InputMap.cc +246 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/InputMap.h +114 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/LargeConsoleRead.cc +71 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/LargeConsoleRead.h +68 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/NamedPipe.cc +378 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/NamedPipe.h +125 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Scraper.cc +699 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Scraper.h +103 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/SimplePool.h +75 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/SmallRect.h +143 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Terminal.cc +535 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Terminal.h +69 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/UnicodeEncoding.h +157 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/UnicodeEncodingTest.cc +189 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Win32Console.cc +107 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Win32Console.h +67 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Win32ConsoleBuffer.cc +193 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/Win32ConsoleBuffer.h +99 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/main.cc +114 -0
- package/vendor/node-pty-fork/deps/winpty/src/agent/subdir.mk +61 -0
- package/vendor/node-pty-fork/deps/winpty/src/configurations.gypi +60 -0
- package/vendor/node-pty-fork/deps/winpty/src/debugserver/DebugServer.cc +117 -0
- package/vendor/node-pty-fork/deps/winpty/src/debugserver/subdir.mk +41 -0
- package/vendor/node-pty-fork/deps/winpty/src/include/winpty.h +242 -0
- package/vendor/node-pty-fork/deps/winpty/src/include/winpty_constants.h +131 -0
- package/vendor/node-pty-fork/deps/winpty/src/libwinpty/AgentLocation.cc +75 -0
- package/vendor/node-pty-fork/deps/winpty/src/libwinpty/AgentLocation.h +28 -0
- package/vendor/node-pty-fork/deps/winpty/src/libwinpty/LibWinptyException.h +54 -0
- package/vendor/node-pty-fork/deps/winpty/src/libwinpty/WinptyInternal.h +72 -0
- package/vendor/node-pty-fork/deps/winpty/src/libwinpty/subdir.mk +46 -0
- package/vendor/node-pty-fork/deps/winpty/src/libwinpty/winpty.cc +970 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/AgentMsg.h +38 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/BackgroundDesktop.cc +122 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/BackgroundDesktop.h +73 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/Buffer.cc +103 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/Buffer.h +102 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/DebugClient.cc +187 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/DebugClient.h +38 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/GenRandom.cc +138 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/GenRandom.h +55 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/GetCommitHash.bat +13 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/Mutex.h +54 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/OsModule.h +63 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/OwnedHandle.cc +36 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/OwnedHandle.h +45 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/PrecompiledHeader.h +43 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/StringBuilder.h +227 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/StringBuilderTest.cc +114 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/StringUtil.cc +55 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/StringUtil.h +80 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/TimeMeasurement.h +63 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/UnixCtrlChars.h +45 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/UpdateGenVersion.bat +20 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/WindowsSecurity.cc +460 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/WindowsSecurity.h +104 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/WindowsVersion.cc +252 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/WindowsVersion.h +29 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/WinptyAssert.cc +55 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/WinptyAssert.h +64 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/WinptyException.cc +57 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/WinptyException.h +43 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/WinptyVersion.cc +42 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/WinptyVersion.h +27 -0
- package/vendor/node-pty-fork/deps/winpty/src/shared/winpty_snprintf.h +99 -0
- package/vendor/node-pty-fork/deps/winpty/src/subdir.mk +5 -0
- package/vendor/node-pty-fork/deps/winpty/src/tests/subdir.mk +28 -0
- package/vendor/node-pty-fork/deps/winpty/src/tests/trivial_test.cc +158 -0
- package/vendor/node-pty-fork/deps/winpty/src/unix-adapter/InputHandler.cc +114 -0
- package/vendor/node-pty-fork/deps/winpty/src/unix-adapter/InputHandler.h +56 -0
- package/vendor/node-pty-fork/deps/winpty/src/unix-adapter/OutputHandler.cc +80 -0
- package/vendor/node-pty-fork/deps/winpty/src/unix-adapter/OutputHandler.h +53 -0
- package/vendor/node-pty-fork/deps/winpty/src/unix-adapter/Util.cc +86 -0
- package/vendor/node-pty-fork/deps/winpty/src/unix-adapter/Util.h +31 -0
- package/vendor/node-pty-fork/deps/winpty/src/unix-adapter/WakeupFd.cc +70 -0
- package/vendor/node-pty-fork/deps/winpty/src/unix-adapter/WakeupFd.h +42 -0
- package/vendor/node-pty-fork/deps/winpty/src/unix-adapter/main.cc +729 -0
- package/vendor/node-pty-fork/deps/winpty/src/unix-adapter/subdir.mk +41 -0
- package/vendor/node-pty-fork/deps/winpty/src/winpty.gyp +206 -0
- package/vendor/node-pty-fork/deps/winpty/vcbuild.bat +83 -0
- package/vendor/node-pty-fork/lib/conpty_console_list_agent.js +20 -0
- package/vendor/node-pty-fork/lib/conpty_console_list_agent.js.map +1 -0
- package/vendor/node-pty-fork/lib/eventEmitter2.js +47 -0
- package/vendor/node-pty-fork/lib/eventEmitter2.js.map +1 -0
- package/vendor/node-pty-fork/lib/eventEmitter2.test.js +30 -0
- package/vendor/node-pty-fork/lib/eventEmitter2.test.js.map +1 -0
- package/vendor/node-pty-fork/lib/index.js +51 -0
- package/vendor/node-pty-fork/lib/index.js.map +1 -0
- package/vendor/node-pty-fork/lib/interfaces.js +7 -0
- package/vendor/node-pty-fork/lib/interfaces.js.map +1 -0
- package/vendor/node-pty-fork/lib/shared/conout.js +11 -0
- package/vendor/node-pty-fork/lib/shared/conout.js.map +1 -0
- package/vendor/node-pty-fork/lib/terminal.js +190 -0
- package/vendor/node-pty-fork/lib/terminal.js.map +1 -0
- package/vendor/node-pty-fork/lib/terminal.test.js +139 -0
- package/vendor/node-pty-fork/lib/terminal.test.js.map +1 -0
- package/vendor/node-pty-fork/lib/testUtils.test.js +28 -0
- package/vendor/node-pty-fork/lib/testUtils.test.js.map +1 -0
- package/vendor/node-pty-fork/lib/types.js +7 -0
- package/vendor/node-pty-fork/lib/types.js.map +1 -0
- package/vendor/node-pty-fork/lib/unixTerminal.js +304 -0
- package/vendor/node-pty-fork/lib/unixTerminal.js.map +1 -0
- package/vendor/node-pty-fork/lib/unixTerminal.test.js +330 -0
- package/vendor/node-pty-fork/lib/unixTerminal.test.js.map +1 -0
- package/vendor/node-pty-fork/lib/utils.js +17 -0
- package/vendor/node-pty-fork/lib/utils.js.map +1 -0
- package/vendor/node-pty-fork/lib/windowsConoutConnection.js +122 -0
- package/vendor/node-pty-fork/lib/windowsConoutConnection.js.map +1 -0
- package/vendor/node-pty-fork/lib/windowsPtyAgent.js +324 -0
- package/vendor/node-pty-fork/lib/windowsPtyAgent.js.map +1 -0
- package/vendor/node-pty-fork/lib/windowsPtyAgent.test.js +90 -0
- package/vendor/node-pty-fork/lib/windowsPtyAgent.test.js.map +1 -0
- package/vendor/node-pty-fork/lib/windowsTerminal.js +201 -0
- package/vendor/node-pty-fork/lib/windowsTerminal.js.map +1 -0
- package/vendor/node-pty-fork/lib/windowsTerminal.test.js +203 -0
- package/vendor/node-pty-fork/lib/windowsTerminal.test.js.map +1 -0
- package/vendor/node-pty-fork/lib/worker/conoutSocketWorker.js +22 -0
- package/vendor/node-pty-fork/lib/worker/conoutSocketWorker.js.map +1 -0
- package/vendor/node-pty-fork/package.json +35 -0
- package/vendor/node-pty-fork/scripts/apply-patches.mjs +341 -0
- package/vendor/node-pty-fork/scripts/fetch-upstream.mjs +41 -0
- package/vendor/node-pty-fork/scripts/install-smoke.cjs +59 -0
- package/vendor/node-pty-fork/scripts/smoke-load.cjs +10 -0
- package/vendor/node-pty-fork/scripts/sync-upstream.mjs +29 -0
- package/vendor/node-pty-fork/scripts/verify-runtime.cjs +54 -0
- package/vendor/node-pty-fork/scripts/verify-runtime.test.cjs +22 -0
- package/vendor/node-pty-fork/scripts/verify-tarball.cjs +80 -0
- package/vendor/node-pty-fork/src/conpty_console_list_agent.ts +19 -0
- package/vendor/node-pty-fork/src/eventEmitter2.test.ts +30 -0
- package/vendor/node-pty-fork/src/eventEmitter2.ts +48 -0
- package/vendor/node-pty-fork/src/index.ts +51 -0
- package/vendor/node-pty-fork/src/interfaces.ts +129 -0
- package/vendor/node-pty-fork/src/native.d.ts +56 -0
- package/vendor/node-pty-fork/src/shared/conout.ts +15 -0
- package/vendor/node-pty-fork/src/terminal.test.ts +119 -0
- package/vendor/node-pty-fork/src/terminal.ts +211 -0
- package/vendor/node-pty-fork/src/testUtils.test.ts +23 -0
- package/vendor/node-pty-fork/src/tsconfig.json +22 -0
- package/vendor/node-pty-fork/src/types.ts +15 -0
- package/vendor/node-pty-fork/src/unix/pty.cc +826 -0
- package/vendor/node-pty-fork/src/unix/spawn-helper.cc +23 -0
- package/vendor/node-pty-fork/src/unixTerminal.test.ts +335 -0
- package/vendor/node-pty-fork/src/unixTerminal.ts +320 -0
- package/vendor/node-pty-fork/src/utils.ts +9 -0
- package/vendor/node-pty-fork/src/win/conpty.cc +500 -0
- package/vendor/node-pty-fork/src/win/conpty_console_list.cc +43 -0
- package/vendor/node-pty-fork/src/win/path_util.cc +73 -0
- package/vendor/node-pty-fork/src/win/path_util.h +22 -0
- package/vendor/node-pty-fork/src/win/winpty.cc +322 -0
- package/vendor/node-pty-fork/src/windowsConoutConnection.ts +79 -0
- package/vendor/node-pty-fork/src/windowsPtyAgent.test.ts +94 -0
- package/vendor/node-pty-fork/src/windowsPtyAgent.ts +323 -0
- package/vendor/node-pty-fork/src/windowsTerminal.test.ts +214 -0
- package/vendor/node-pty-fork/src/windowsTerminal.ts +208 -0
- package/vendor/node-pty-fork/src/worker/conoutSocketWorker.ts +22 -0
- package/vendor/node-pty-fork/typings/node-pty.d.ts +203 -0
- package/dist/public/assets/FileContextPanel-xGTYDclT.js +0 -1
- package/dist/public/assets/WorkbenchLayout-DScHaza9.js +0 -244
- package/dist/public/assets/WorkbenchShellRoute-DN6LdrqC.js +0 -1
- package/dist/public/assets/WorkbenchShellRoute-DhQo_0vu.css +0 -1
- package/dist/public/assets/file-tree-icon-lfU9Ag77.js +0 -3
- package/dist/public/assets/index-CFYXCsyx.css +0 -1
- package/dist/public/assets/index-NGxWr8Ix.js +0 -42
- package/dist/server/modules/channels/wechat-claw-client.d.ts +0 -51
- package/dist/server/modules/channels/wechat-claw-client.js +0 -245
- package/dist/server/modules/channels/wechat-claw-client.js.map +0 -1
|
@@ -75,6 +75,87 @@ interface AssistantDebugRuntimeHistoryQuery {
|
|
|
75
75
|
interface AssistantWorkspaceBrowseQuery {
|
|
76
76
|
path?: string;
|
|
77
77
|
}
|
|
78
|
+
interface AssistantOfficeDocumentBody {
|
|
79
|
+
workspaceId?: string | null;
|
|
80
|
+
title?: string;
|
|
81
|
+
templateId?: string | null;
|
|
82
|
+
templateKey?: string | null;
|
|
83
|
+
content?: unknown;
|
|
84
|
+
outline?: unknown;
|
|
85
|
+
summary?: string | null;
|
|
86
|
+
}
|
|
87
|
+
interface AssistantOfficeDocumentUpdateBody {
|
|
88
|
+
title?: string | null;
|
|
89
|
+
templateId?: string | null;
|
|
90
|
+
content?: unknown;
|
|
91
|
+
outline?: unknown;
|
|
92
|
+
summary?: string | null;
|
|
93
|
+
status?: "draft" | "reviewing" | "published" | "archived";
|
|
94
|
+
}
|
|
95
|
+
interface AssistantOfficeDocumentExportBody {
|
|
96
|
+
workspaceId?: string | null;
|
|
97
|
+
format?: "docx" | "pdf" | "md";
|
|
98
|
+
riskLevel?: "low" | "medium" | "high";
|
|
99
|
+
execute?: boolean;
|
|
100
|
+
}
|
|
101
|
+
interface AssistantOfficeBrowserProfileQuery {
|
|
102
|
+
workspaceId?: string;
|
|
103
|
+
}
|
|
104
|
+
interface AssistantOfficeBrowserProfileBody {
|
|
105
|
+
workspaceId?: string | null;
|
|
106
|
+
engine?: "chrome" | "edge";
|
|
107
|
+
mode?: "persistent" | "cdp_attached";
|
|
108
|
+
displayName?: string | null;
|
|
109
|
+
ownershipScope?: "user" | "workspace";
|
|
110
|
+
cdpEndpoint?: string | null;
|
|
111
|
+
}
|
|
112
|
+
interface AssistantOfficeBrowserTaskBody {
|
|
113
|
+
workspaceId?: string | null;
|
|
114
|
+
title?: string;
|
|
115
|
+
profileId?: string;
|
|
116
|
+
riskLevel?: "low" | "medium" | "high";
|
|
117
|
+
executionBackend?: "playwright" | "opencli_bridge";
|
|
118
|
+
sessionRequirement?: "none" | "reuse_current_logged_in_browser";
|
|
119
|
+
input?: unknown;
|
|
120
|
+
execute?: boolean;
|
|
121
|
+
}
|
|
122
|
+
interface AssistantOfficeOpsTargetListQuery {
|
|
123
|
+
workspaceId?: string;
|
|
124
|
+
kind?: "ssh_host" | "web_console";
|
|
125
|
+
status?: "active" | "disabled" | "error";
|
|
126
|
+
}
|
|
127
|
+
interface AssistantOfficeOpsTargetBody {
|
|
128
|
+
workspaceId?: string | null;
|
|
129
|
+
kind?: "ssh_host" | "web_console";
|
|
130
|
+
displayName?: string;
|
|
131
|
+
environment?: string | null;
|
|
132
|
+
config?: unknown;
|
|
133
|
+
credentialRef?: string | null;
|
|
134
|
+
}
|
|
135
|
+
interface AssistantOfficeOpsSshTaskBody {
|
|
136
|
+
title?: string;
|
|
137
|
+
targetId?: string;
|
|
138
|
+
riskLevel?: "low" | "medium" | "high";
|
|
139
|
+
input?: unknown;
|
|
140
|
+
execute?: boolean;
|
|
141
|
+
confirm?: boolean;
|
|
142
|
+
}
|
|
143
|
+
interface AssistantOfficeOpsBrowserTaskBody {
|
|
144
|
+
title?: string;
|
|
145
|
+
targetId?: string;
|
|
146
|
+
profileId?: string;
|
|
147
|
+
executionBackend?: "playwright" | "opencli_bridge";
|
|
148
|
+
riskLevel?: "low" | "medium" | "high";
|
|
149
|
+
input?: unknown;
|
|
150
|
+
confirm?: boolean;
|
|
151
|
+
}
|
|
152
|
+
interface AssistantOfficeTaskApprovalBody {
|
|
153
|
+
status?: "approved" | "rejected";
|
|
154
|
+
decisionNote?: string | null;
|
|
155
|
+
}
|
|
156
|
+
interface AssistantConfirmationBody {
|
|
157
|
+
confirm?: boolean;
|
|
158
|
+
}
|
|
78
159
|
interface AssistantWorktreeTreeQuery {
|
|
79
160
|
rootWorkspaceId?: string;
|
|
80
161
|
}
|
|
@@ -105,6 +186,14 @@ interface AssistantForkBody {
|
|
|
105
186
|
}
|
|
106
187
|
interface AssistantTerminalInputBody {
|
|
107
188
|
content?: string;
|
|
189
|
+
confirm?: boolean;
|
|
190
|
+
}
|
|
191
|
+
interface AssistantCreateTerminalBody {
|
|
192
|
+
workspaceId?: string | null;
|
|
193
|
+
projectId?: string | null;
|
|
194
|
+
name?: string | null;
|
|
195
|
+
cwd?: string | null;
|
|
196
|
+
shell?: string | null;
|
|
108
197
|
}
|
|
109
198
|
interface AssistantCreateTimerBody {
|
|
110
199
|
controlSessionId?: string | null;
|
|
@@ -235,6 +324,21 @@ interface AssistantReorderWorkspacesBody {
|
|
|
235
324
|
interface AssistantWorkspaceParams {
|
|
236
325
|
workspaceId: string;
|
|
237
326
|
}
|
|
327
|
+
interface AssistantOfficeDocumentParams {
|
|
328
|
+
documentId: string;
|
|
329
|
+
}
|
|
330
|
+
interface AssistantOfficeTaskParams {
|
|
331
|
+
taskId: string;
|
|
332
|
+
}
|
|
333
|
+
interface AssistantOfficeApprovalParams {
|
|
334
|
+
approvalId: string;
|
|
335
|
+
}
|
|
336
|
+
interface AssistantOfficeBrowserProfileParams {
|
|
337
|
+
profileId: string;
|
|
338
|
+
}
|
|
339
|
+
interface AssistantOfficeOpsTargetParams {
|
|
340
|
+
targetId: string;
|
|
341
|
+
}
|
|
238
342
|
interface AssistantWorkspaceNavigationStateBody {
|
|
239
343
|
collapsed?: unknown;
|
|
240
344
|
backgroundColor?: unknown;
|
|
@@ -247,14 +351,17 @@ interface AssistantCreateWorktreeBody {
|
|
|
247
351
|
}
|
|
248
352
|
interface AssistantWorktreeCleanupBody {
|
|
249
353
|
deleteBranch?: boolean;
|
|
354
|
+
confirm?: boolean;
|
|
250
355
|
}
|
|
251
356
|
interface AssistantAnalyzeDebugTargetBody {
|
|
252
357
|
workspaceId?: string;
|
|
253
358
|
rootPath?: string;
|
|
254
359
|
commandHints?: unknown;
|
|
360
|
+
confirm?: boolean;
|
|
255
361
|
}
|
|
256
362
|
interface AssistantDebugTargetLaunchPlanBody {
|
|
257
363
|
portRequests?: unknown;
|
|
364
|
+
confirm?: boolean;
|
|
258
365
|
}
|
|
259
366
|
interface AssistantRunDebugTargetBody extends AssistantDebugTargetLaunchPlanBody {
|
|
260
367
|
shell?: string;
|
|
@@ -263,7 +370,7 @@ interface AssistantRunDebugTargetBody extends AssistantDebugTargetLaunchPlanBody
|
|
|
263
370
|
export declare class AssistantCapabilityController {
|
|
264
371
|
private readonly assistantCapabilityService;
|
|
265
372
|
constructor(assistantCapabilityService: AssistantCapabilityService);
|
|
266
|
-
readonly listCapabilities: (
|
|
373
|
+
readonly listCapabilities: (request: FastifyRequest, reply: FastifyReply) => Promise<void>;
|
|
267
374
|
readonly listProjects: (request: FastifyRequest<{
|
|
268
375
|
Querystring: AssistantProjectListQuery;
|
|
269
376
|
}>, reply: FastifyReply) => Promise<void>;
|
|
@@ -382,6 +489,9 @@ export declare class AssistantCapabilityController {
|
|
|
382
489
|
readonly listTerminals: (request: FastifyRequest<{
|
|
383
490
|
Querystring: AssistantTerminalListQuery;
|
|
384
491
|
}>, reply: FastifyReply) => Promise<void>;
|
|
492
|
+
readonly createTerminal: (request: FastifyRequest<{
|
|
493
|
+
Body: AssistantCreateTerminalBody;
|
|
494
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
385
495
|
readonly readTerminalHistory: (request: FastifyRequest<{
|
|
386
496
|
Params: AssistantTerminalParams;
|
|
387
497
|
Querystring: AssistantTerminalHistoryQuery;
|
|
@@ -392,6 +502,62 @@ export declare class AssistantCapabilityController {
|
|
|
392
502
|
}>, reply: FastifyReply) => Promise<void>;
|
|
393
503
|
readonly closeTerminal: (request: FastifyRequest<{
|
|
394
504
|
Params: AssistantTerminalParams;
|
|
505
|
+
Body: AssistantConfirmationBody;
|
|
506
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
507
|
+
readonly createOfficeDocument: (request: FastifyRequest<{
|
|
508
|
+
Body: AssistantOfficeDocumentBody;
|
|
509
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
510
|
+
readonly updateOfficeDocument: (request: FastifyRequest<{
|
|
511
|
+
Params: AssistantOfficeDocumentParams;
|
|
512
|
+
Body: AssistantOfficeDocumentUpdateBody;
|
|
513
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
514
|
+
readonly exportOfficeDocument: (request: FastifyRequest<{
|
|
515
|
+
Params: AssistantOfficeDocumentParams;
|
|
516
|
+
Body: AssistantOfficeDocumentExportBody;
|
|
517
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
518
|
+
readonly getOfficeDocumentTask: (request: FastifyRequest<{
|
|
519
|
+
Params: AssistantOfficeTaskParams;
|
|
520
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
521
|
+
readonly listOfficeBrowserProfiles: (request: FastifyRequest<{
|
|
522
|
+
Querystring: AssistantOfficeBrowserProfileQuery;
|
|
523
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
524
|
+
readonly createOfficeBrowserProfile: (request: FastifyRequest<{
|
|
525
|
+
Body: AssistantOfficeBrowserProfileBody;
|
|
526
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
527
|
+
readonly getOfficeBrowserProfile: (request: FastifyRequest<{
|
|
528
|
+
Params: AssistantOfficeBrowserProfileParams;
|
|
529
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
530
|
+
readonly createOfficeBrowserTask: (request: FastifyRequest<{
|
|
531
|
+
Body: AssistantOfficeBrowserTaskBody;
|
|
532
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
533
|
+
readonly getOfficeBrowserTask: (request: FastifyRequest<{
|
|
534
|
+
Params: AssistantOfficeTaskParams;
|
|
535
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
536
|
+
readonly listOfficeOpsTargets: (request: FastifyRequest<{
|
|
537
|
+
Querystring: AssistantOfficeOpsTargetListQuery;
|
|
538
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
539
|
+
readonly createOfficeOpsTarget: (request: FastifyRequest<{
|
|
540
|
+
Body: AssistantOfficeOpsTargetBody;
|
|
541
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
542
|
+
readonly getOfficeOpsTarget: (request: FastifyRequest<{
|
|
543
|
+
Params: AssistantOfficeOpsTargetParams;
|
|
544
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
545
|
+
readonly createOfficeOpsSshTask: (request: FastifyRequest<{
|
|
546
|
+
Body: AssistantOfficeOpsSshTaskBody;
|
|
547
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
548
|
+
readonly executeOfficeOpsTask: (request: FastifyRequest<{
|
|
549
|
+
Params: AssistantOfficeTaskParams;
|
|
550
|
+
Body: AssistantConfirmationBody;
|
|
551
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
552
|
+
readonly replyOfficeTaskApproval: (request: FastifyRequest<{
|
|
553
|
+
Params: AssistantOfficeApprovalParams;
|
|
554
|
+
Body: AssistantOfficeTaskApprovalBody;
|
|
555
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
556
|
+
readonly createOfficeOpsBrowserTask: (request: FastifyRequest<{
|
|
557
|
+
Body: AssistantOfficeOpsBrowserTaskBody;
|
|
558
|
+
}>, reply: FastifyReply) => Promise<void>;
|
|
559
|
+
readonly getOfficeOpsTask: (request: FastifyRequest<{
|
|
560
|
+
Params: AssistantOfficeTaskParams;
|
|
395
561
|
}>, reply: FastifyReply) => Promise<void>;
|
|
396
562
|
readonly listWorkspaces: (_request: FastifyRequest, reply: FastifyReply) => Promise<void>;
|
|
397
563
|
readonly browseWorkspaces: (request: FastifyRequest<{
|
|
@@ -430,6 +596,7 @@ export declare class AssistantCapabilityController {
|
|
|
430
596
|
}>, reply: FastifyReply) => Promise<void>;
|
|
431
597
|
readonly mergeWorktreeIntoParent: (request: FastifyRequest<{
|
|
432
598
|
Params: AssistantWorkspaceParams;
|
|
599
|
+
Body: AssistantConfirmationBody;
|
|
433
600
|
}>, reply: FastifyReply) => Promise<void>;
|
|
434
601
|
readonly cleanupWorktree: (request: FastifyRequest<{
|
|
435
602
|
Params: AssistantWorkspaceParams;
|
|
@@ -444,6 +611,7 @@ export declare class AssistantCapabilityController {
|
|
|
444
611
|
}>, reply: FastifyReply) => Promise<void>;
|
|
445
612
|
readonly refreshDebugFrameworkAnalysis: (request: FastifyRequest<{
|
|
446
613
|
Params: AssistantDebugTargetParams;
|
|
614
|
+
Body: AssistantConfirmationBody;
|
|
447
615
|
}>, reply: FastifyReply) => Promise<void>;
|
|
448
616
|
readonly createDebugLaunchPlan: (request: FastifyRequest<{
|
|
449
617
|
Params: AssistantDebugTargetParams;
|
|
@@ -5,8 +5,8 @@ export class AssistantCapabilityController {
|
|
|
5
5
|
constructor(assistantCapabilityService) {
|
|
6
6
|
this.assistantCapabilityService = assistantCapabilityService;
|
|
7
7
|
}
|
|
8
|
-
listCapabilities = async (
|
|
9
|
-
reply.send(this.assistantCapabilityService.listCapabilities());
|
|
8
|
+
listCapabilities = async (request, reply) => {
|
|
9
|
+
reply.send(this.assistantCapabilityService.listCapabilities(readAssistantExecutionContext(request)));
|
|
10
10
|
};
|
|
11
11
|
listProjects = async (request, reply) => {
|
|
12
12
|
reply.send(this.assistantCapabilityService.listProjects({
|
|
@@ -16,9 +16,11 @@ export class AssistantCapabilityController {
|
|
|
16
16
|
}));
|
|
17
17
|
};
|
|
18
18
|
getProject = async (request, reply) => {
|
|
19
|
+
this.assistantCapabilityService.assertExecutionAllowed("projects.get", readAssistantExecutionContext(request), { projectId: request.params.projectId });
|
|
19
20
|
reply.send(await this.assistantCapabilityService.getProject(request.params.projectId, requireUserId(request)));
|
|
20
21
|
};
|
|
21
22
|
listProjectSessions = async (request, reply) => {
|
|
23
|
+
this.assistantCapabilityService.assertExecutionAllowed("projects.sessions.list", readAssistantExecutionContext(request), { projectId: request.params.projectId });
|
|
22
24
|
reply.send(await this.assistantCapabilityService.listProjectSessions(request.params.projectId, requireUserId(request)));
|
|
23
25
|
};
|
|
24
26
|
startProjectSession = async (request, reply) => {
|
|
@@ -44,12 +46,14 @@ export class AssistantCapabilityController {
|
|
|
44
46
|
}));
|
|
45
47
|
};
|
|
46
48
|
getSession = async (request, reply) => {
|
|
49
|
+
this.assistantCapabilityService.assertExecutionAllowed("sessions.get", readAssistantExecutionContext(request), { sessionId: request.params.sessionId });
|
|
47
50
|
reply.send(this.assistantCapabilityService.getSession(request.params.sessionId, requireUserId(request)));
|
|
48
51
|
};
|
|
49
52
|
deleteSession = async (request, reply) => {
|
|
50
53
|
reply.send(await this.assistantCapabilityService.deleteSession(request.params.sessionId, requireUserId(request)));
|
|
51
54
|
};
|
|
52
55
|
listSessionMessages = async (request, reply) => {
|
|
56
|
+
this.assistantCapabilityService.assertExecutionAllowed("sessions.messages.list", readAssistantExecutionContext(request), { sessionId: request.params.sessionId });
|
|
53
57
|
reply.send(await this.assistantCapabilityService.listSessionMessages({
|
|
54
58
|
sessionId: request.params.sessionId,
|
|
55
59
|
userId: requireUserId(request),
|
|
@@ -59,6 +63,7 @@ export class AssistantCapabilityController {
|
|
|
59
63
|
}));
|
|
60
64
|
};
|
|
61
65
|
getSessionRuntime = async (request, reply) => {
|
|
66
|
+
this.assistantCapabilityService.assertExecutionAllowed("sessions.runtime.get", readAssistantExecutionContext(request), { sessionId: request.params.sessionId });
|
|
62
67
|
reply.send(await this.assistantCapabilityService.getSessionRuntime(request.params.sessionId, requireUserId(request)));
|
|
63
68
|
};
|
|
64
69
|
sendSessionMessage = async (request, reply) => {
|
|
@@ -314,13 +319,28 @@ export class AssistantCapabilityController {
|
|
|
314
319
|
field: "projectId"
|
|
315
320
|
});
|
|
316
321
|
}
|
|
322
|
+
this.assistantCapabilityService.assertExecutionAllowed("terminals.list", readAssistantExecutionContext(request), { projectId, workspaceId });
|
|
317
323
|
reply.send(await this.assistantCapabilityService.listTerminals({
|
|
318
324
|
userId: requireUserId(request),
|
|
319
325
|
projectId,
|
|
320
326
|
workspaceId
|
|
321
327
|
}));
|
|
322
328
|
};
|
|
329
|
+
createTerminal = async (request, reply) => {
|
|
330
|
+
const projectId = normalizeNullableText(request.body.projectId);
|
|
331
|
+
const workspaceId = normalizeNullableText(request.body.workspaceId);
|
|
332
|
+
this.assistantCapabilityService.assertExecutionAllowed("terminals.create", readAssistantExecutionContext(request), { projectId, workspaceId });
|
|
333
|
+
reply.send(await this.assistantCapabilityService.createTerminal({
|
|
334
|
+
userId: requireUserId(request),
|
|
335
|
+
projectId,
|
|
336
|
+
workspaceId,
|
|
337
|
+
name: normalizeNullableText(request.body.name),
|
|
338
|
+
cwd: normalizeNullableText(request.body.cwd),
|
|
339
|
+
shell: normalizeNullableText(request.body.shell)
|
|
340
|
+
}));
|
|
341
|
+
};
|
|
323
342
|
readTerminalHistory = async (request, reply) => {
|
|
343
|
+
this.assistantCapabilityService.assertExecutionAllowed("terminals.history.read", readAssistantExecutionContext(request), { terminalId: request.params.terminalId });
|
|
324
344
|
reply.send(await this.assistantCapabilityService.readTerminalHistory({
|
|
325
345
|
terminalId: request.params.terminalId,
|
|
326
346
|
beforeSeq: normalizeOptionalInteger(request.query.beforeSeq, "beforeSeq"),
|
|
@@ -328,14 +348,164 @@ export class AssistantCapabilityController {
|
|
|
328
348
|
}));
|
|
329
349
|
};
|
|
330
350
|
sendTerminalInput = async (request, reply) => {
|
|
351
|
+
this.assistantCapabilityService.assertExecutionAllowed("terminals.input.send", readAssistantExecutionContext(request, request.body.confirm === true), { terminalId: request.params.terminalId });
|
|
331
352
|
reply.send(await this.assistantCapabilityService.sendTerminalInput({
|
|
332
353
|
terminalId: request.params.terminalId,
|
|
333
354
|
content: requireNonEmptyText(request.body.content, "content", "终端输入必须提供 content")
|
|
334
355
|
}));
|
|
335
356
|
};
|
|
336
357
|
closeTerminal = async (request, reply) => {
|
|
358
|
+
this.assistantCapabilityService.assertExecutionAllowed("terminals.close", readAssistantExecutionContext(request, request.body?.confirm === true), { terminalId: request.params.terminalId });
|
|
337
359
|
reply.send(await this.assistantCapabilityService.closeTerminal(request.params.terminalId));
|
|
338
360
|
};
|
|
361
|
+
createOfficeDocument = async (request, reply) => {
|
|
362
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.document.create", readAssistantExecutionContext(request), { workspaceId: normalizeNullableText(request.body.workspaceId) });
|
|
363
|
+
reply.send(this.assistantCapabilityService.createOfficeDocument({
|
|
364
|
+
userId: requireUserId(request),
|
|
365
|
+
workspaceId: normalizeNullableText(request.body.workspaceId),
|
|
366
|
+
title: requireNonEmptyText(request.body.title, "title", "创建文档必须提供 title"),
|
|
367
|
+
templateId: normalizeNullableText(request.body.templateId),
|
|
368
|
+
templateKey: normalizeNullableText(request.body.templateKey),
|
|
369
|
+
content: request.body.content,
|
|
370
|
+
outline: request.body.outline,
|
|
371
|
+
summary: normalizeNullableText(request.body.summary)
|
|
372
|
+
}));
|
|
373
|
+
};
|
|
374
|
+
updateOfficeDocument = async (request, reply) => {
|
|
375
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.document.update", readAssistantExecutionContext(request), { documentId: request.params.documentId });
|
|
376
|
+
reply.send(this.assistantCapabilityService.updateOfficeDocument({
|
|
377
|
+
userId: requireUserId(request),
|
|
378
|
+
documentId: request.params.documentId,
|
|
379
|
+
title: request.body.title === undefined ? undefined : normalizeNullableText(request.body.title),
|
|
380
|
+
templateId: normalizeNullableText(request.body.templateId),
|
|
381
|
+
content: request.body.content,
|
|
382
|
+
outline: request.body.outline,
|
|
383
|
+
summary: request.body.summary === undefined ? undefined : normalizeNullableText(request.body.summary),
|
|
384
|
+
status: request.body.status
|
|
385
|
+
}));
|
|
386
|
+
};
|
|
387
|
+
exportOfficeDocument = async (request, reply) => {
|
|
388
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.document.export", readAssistantExecutionContext(request), {
|
|
389
|
+
documentId: request.params.documentId,
|
|
390
|
+
workspaceId: normalizeNullableText(request.body.workspaceId)
|
|
391
|
+
});
|
|
392
|
+
reply.send(await this.assistantCapabilityService.exportOfficeDocument({
|
|
393
|
+
userId: requireUserId(request),
|
|
394
|
+
documentId: request.params.documentId,
|
|
395
|
+
workspaceId: normalizeNullableText(request.body.workspaceId),
|
|
396
|
+
format: request.body.format,
|
|
397
|
+
riskLevel: request.body.riskLevel,
|
|
398
|
+
execute: typeof request.body.execute === "boolean" ? request.body.execute : undefined
|
|
399
|
+
}));
|
|
400
|
+
};
|
|
401
|
+
getOfficeDocumentTask = async (request, reply) => {
|
|
402
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.document.task.get", readAssistantExecutionContext(request), { officeTaskId: request.params.taskId });
|
|
403
|
+
reply.send(this.assistantCapabilityService.getOfficeDocumentTask(request.params.taskId, requireUserId(request)));
|
|
404
|
+
};
|
|
405
|
+
listOfficeBrowserProfiles = async (request, reply) => {
|
|
406
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.browser.profile.list", readAssistantExecutionContext(request), { workspaceId: normalizeNullableText(request.query.workspaceId) });
|
|
407
|
+
reply.send(this.assistantCapabilityService.listOfficeBrowserProfiles(requireUserId(request), normalizeNullableText(request.query.workspaceId)));
|
|
408
|
+
};
|
|
409
|
+
createOfficeBrowserProfile = async (request, reply) => {
|
|
410
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.browser.profile.create", readAssistantExecutionContext(request), { workspaceId: normalizeNullableText(request.body.workspaceId) });
|
|
411
|
+
reply.send(this.assistantCapabilityService.createOfficeBrowserProfile({
|
|
412
|
+
userId: requireUserId(request),
|
|
413
|
+
workspaceId: normalizeNullableText(request.body.workspaceId),
|
|
414
|
+
engine: request.body.engine ?? "chrome",
|
|
415
|
+
mode: request.body.mode ?? "persistent",
|
|
416
|
+
displayName: normalizeNullableText(request.body.displayName),
|
|
417
|
+
ownershipScope: request.body.ownershipScope ?? undefined,
|
|
418
|
+
cdpEndpoint: normalizeNullableText(request.body.cdpEndpoint)
|
|
419
|
+
}));
|
|
420
|
+
};
|
|
421
|
+
getOfficeBrowserProfile = async (request, reply) => {
|
|
422
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.browser.profile.get", readAssistantExecutionContext(request), { browserProfileId: request.params.profileId });
|
|
423
|
+
reply.send(this.assistantCapabilityService.getOfficeBrowserProfile(request.params.profileId, requireUserId(request)));
|
|
424
|
+
};
|
|
425
|
+
createOfficeBrowserTask = async (request, reply) => {
|
|
426
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.browser.task.create", readAssistantExecutionContext(request), {
|
|
427
|
+
workspaceId: normalizeNullableText(request.body.workspaceId),
|
|
428
|
+
browserProfileId: request.body.profileId?.trim() ?? null
|
|
429
|
+
});
|
|
430
|
+
reply.send(await this.assistantCapabilityService.createOfficeBrowserTask({
|
|
431
|
+
userId: requireUserId(request),
|
|
432
|
+
workspaceId: normalizeNullableText(request.body.workspaceId),
|
|
433
|
+
title: request.body.title?.trim() ?? "浏览器任务",
|
|
434
|
+
profileId: normalizeNullableText(request.body.profileId),
|
|
435
|
+
riskLevel: request.body.riskLevel,
|
|
436
|
+
executionBackend: request.body.executionBackend,
|
|
437
|
+
sessionRequirement: request.body.sessionRequirement,
|
|
438
|
+
input: request.body.input,
|
|
439
|
+
execute: typeof request.body.execute === "boolean" ? request.body.execute : undefined
|
|
440
|
+
}));
|
|
441
|
+
};
|
|
442
|
+
getOfficeBrowserTask = async (request, reply) => {
|
|
443
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.browser.task.get", readAssistantExecutionContext(request), { officeTaskId: request.params.taskId });
|
|
444
|
+
reply.send(this.assistantCapabilityService.getOfficeBrowserTask(request.params.taskId, requireUserId(request)));
|
|
445
|
+
};
|
|
446
|
+
listOfficeOpsTargets = async (request, reply) => {
|
|
447
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.ops.target.list", readAssistantExecutionContext(request), { workspaceId: normalizeNullableText(request.query.workspaceId) });
|
|
448
|
+
reply.send(this.assistantCapabilityService.listOfficeOpsTargets(requireUserId(request), normalizeNullableText(request.query.workspaceId), request.query.kind ?? null, request.query.status ?? null));
|
|
449
|
+
};
|
|
450
|
+
createOfficeOpsTarget = async (request, reply) => {
|
|
451
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.ops.target.create", readAssistantExecutionContext(request), { workspaceId: normalizeNullableText(request.body.workspaceId) });
|
|
452
|
+
reply.send(this.assistantCapabilityService.createOfficeOpsTarget({
|
|
453
|
+
userId: requireUserId(request),
|
|
454
|
+
workspaceId: normalizeNullableText(request.body.workspaceId),
|
|
455
|
+
kind: request.body.kind ?? "ssh_host",
|
|
456
|
+
displayName: requireNonEmptyText(request.body.displayName, "displayName", "创建运维目标必须提供 displayName"),
|
|
457
|
+
environment: normalizeNullableText(request.body.environment),
|
|
458
|
+
config: request.body.config ?? {},
|
|
459
|
+
credentialRef: normalizeNullableText(request.body.credentialRef)
|
|
460
|
+
}));
|
|
461
|
+
};
|
|
462
|
+
getOfficeOpsTarget = async (request, reply) => {
|
|
463
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.ops.target.get", readAssistantExecutionContext(request));
|
|
464
|
+
reply.send(this.assistantCapabilityService.getOfficeOpsTarget(request.params.targetId, requireUserId(request)));
|
|
465
|
+
};
|
|
466
|
+
createOfficeOpsSshTask = async (request, reply) => {
|
|
467
|
+
const requiresConfirm = request.body.execute === true;
|
|
468
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.ops.ssh-task.create", readAssistantExecutionContext(request, requiresConfirm && request.body.confirm === true));
|
|
469
|
+
reply.send(await this.assistantCapabilityService.createOfficeOpsSshTask({
|
|
470
|
+
userId: requireUserId(request),
|
|
471
|
+
title: request.body.title?.trim() ?? "SSH 运维任务",
|
|
472
|
+
targetId: requireNonEmptyText(request.body.targetId, "targetId", "创建 SSH 运维任务必须提供 targetId"),
|
|
473
|
+
riskLevel: request.body.riskLevel,
|
|
474
|
+
input: request.body.input,
|
|
475
|
+
execute: typeof request.body.execute === "boolean" ? request.body.execute : undefined
|
|
476
|
+
}));
|
|
477
|
+
};
|
|
478
|
+
executeOfficeOpsTask = async (request, reply) => {
|
|
479
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.ops.task.execute", readAssistantExecutionContext(request, request.body?.confirm === true), { officeTaskId: request.params.taskId });
|
|
480
|
+
reply.send(await this.assistantCapabilityService.executeOfficeOpsTask({
|
|
481
|
+
userId: requireUserId(request),
|
|
482
|
+
taskId: request.params.taskId
|
|
483
|
+
}));
|
|
484
|
+
};
|
|
485
|
+
replyOfficeTaskApproval = async (request, reply) => {
|
|
486
|
+
reply.send(this.assistantCapabilityService.replyOfficeTaskApproval({
|
|
487
|
+
userId: requireUserId(request),
|
|
488
|
+
approvalId: request.params.approvalId,
|
|
489
|
+
status: request.body.status ?? "approved",
|
|
490
|
+
decisionNote: normalizeNullableText(request.body.decisionNote)
|
|
491
|
+
}));
|
|
492
|
+
};
|
|
493
|
+
createOfficeOpsBrowserTask = async (request, reply) => {
|
|
494
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.ops.browser-task.create", readAssistantExecutionContext(request, request.body.confirm === true), { browserProfileId: request.body.profileId?.trim() ?? null });
|
|
495
|
+
reply.send(this.assistantCapabilityService.createOfficeOpsBrowserTask({
|
|
496
|
+
userId: requireUserId(request),
|
|
497
|
+
title: request.body.title?.trim() ?? "浏览器运维任务",
|
|
498
|
+
targetId: requireNonEmptyText(request.body.targetId, "targetId", "创建浏览器运维任务必须提供 targetId"),
|
|
499
|
+
profileId: normalizeNullableText(request.body.profileId),
|
|
500
|
+
executionBackend: request.body.executionBackend,
|
|
501
|
+
riskLevel: request.body.riskLevel,
|
|
502
|
+
input: request.body.input
|
|
503
|
+
}));
|
|
504
|
+
};
|
|
505
|
+
getOfficeOpsTask = async (request, reply) => {
|
|
506
|
+
this.assistantCapabilityService.assertExecutionAllowed("office.ops.task.get", readAssistantExecutionContext(request), { officeTaskId: request.params.taskId });
|
|
507
|
+
reply.send(this.assistantCapabilityService.getOfficeOpsTask(request.params.taskId, requireUserId(request)));
|
|
508
|
+
};
|
|
339
509
|
listWorkspaces = async (_request, reply) => {
|
|
340
510
|
reply.send(this.assistantCapabilityService.listWorkspaces());
|
|
341
511
|
};
|
|
@@ -398,23 +568,29 @@ export class AssistantCapabilityController {
|
|
|
398
568
|
field: "rootWorkspaceId"
|
|
399
569
|
});
|
|
400
570
|
}
|
|
571
|
+
this.assistantCapabilityService.assertExecutionAllowed("worktrees.tree", readAssistantExecutionContext(request), { worktreeWorkspaceId: rootWorkspaceId });
|
|
401
572
|
reply.send(await this.assistantCapabilityService.getWorktreeTree(rootWorkspaceId));
|
|
402
573
|
};
|
|
403
574
|
createWorktree = async (request, reply) => {
|
|
575
|
+
const sourceWorkspaceId = requireNonEmptyText(request.body.sourceWorkspaceId, "sourceWorkspaceId", "创建工作树必须提供 sourceWorkspaceId");
|
|
576
|
+
this.assistantCapabilityService.assertExecutionAllowed("worktrees.create", readAssistantExecutionContext(request), { worktreeWorkspaceId: sourceWorkspaceId });
|
|
404
577
|
reply.send(await this.assistantCapabilityService.createWorktree({
|
|
405
|
-
sourceWorkspaceId
|
|
578
|
+
sourceWorkspaceId,
|
|
406
579
|
branchName: requireNonEmptyText(request.body.branchName, "branchName", "创建工作树必须提供 branchName"),
|
|
407
580
|
displayName: normalizeNullableText(request.body.displayName),
|
|
408
581
|
baseRef: normalizeNullableText(request.body.baseRef)
|
|
409
582
|
}));
|
|
410
583
|
};
|
|
411
584
|
getWorktreeMergePreview = async (request, reply) => {
|
|
585
|
+
this.assistantCapabilityService.assertExecutionAllowed("worktrees.merge-preview", readAssistantExecutionContext(request), { worktreeWorkspaceId: request.params.workspaceId });
|
|
412
586
|
reply.send(await this.assistantCapabilityService.getWorktreeMergePreview(request.params.workspaceId));
|
|
413
587
|
};
|
|
414
588
|
mergeWorktreeIntoParent = async (request, reply) => {
|
|
589
|
+
this.assistantCapabilityService.assertExecutionAllowed("worktrees.merge-into-parent", readAssistantExecutionContext(request, request.body?.confirm === true), { worktreeWorkspaceId: request.params.workspaceId });
|
|
415
590
|
reply.send(await this.assistantCapabilityService.mergeWorktreeIntoParent(request.params.workspaceId));
|
|
416
591
|
};
|
|
417
592
|
cleanupWorktree = async (request, reply) => {
|
|
593
|
+
this.assistantCapabilityService.assertExecutionAllowed("worktrees.cleanup", readAssistantExecutionContext(request), { worktreeWorkspaceId: request.params.workspaceId });
|
|
418
594
|
reply.send(await this.assistantCapabilityService.cleanupWorktree(request.params.workspaceId, requireUserId(request), {
|
|
419
595
|
deleteBranch: request.body?.deleteBranch === true
|
|
420
596
|
}));
|
|
@@ -423,19 +599,24 @@ export class AssistantCapabilityController {
|
|
|
423
599
|
reply.send(this.assistantCapabilityService.getDebugCompatibilityMatrix());
|
|
424
600
|
};
|
|
425
601
|
analyzeDebugTarget = async (request, reply) => {
|
|
602
|
+
const workspaceId = requireNonEmptyText(request.body.workspaceId, "workspaceId", "分析调试目标必须提供 workspaceId");
|
|
603
|
+
this.assistantCapabilityService.assertExecutionAllowed("debug-targets.analyze", readAssistantExecutionContext(request, request.body.confirm === true), { workspaceId });
|
|
426
604
|
reply.send(this.assistantCapabilityService.analyzeDebugTarget({
|
|
427
|
-
workspaceId
|
|
605
|
+
workspaceId,
|
|
428
606
|
rootPath: requireNonEmptyText(request.body.rootPath, "rootPath", "分析调试目标必须提供 rootPath"),
|
|
429
607
|
commandHints: normalizeCommandHints(request.body.commandHints)
|
|
430
608
|
}));
|
|
431
609
|
};
|
|
432
610
|
getDebugFrameworkAnalysis = async (request, reply) => {
|
|
611
|
+
this.assistantCapabilityService.assertExecutionAllowed("debug-targets.framework-analysis.get", readAssistantExecutionContext(request), { debugTargetId: request.params.targetId });
|
|
433
612
|
reply.send(this.assistantCapabilityService.getDebugFrameworkAnalysis(request.params.targetId));
|
|
434
613
|
};
|
|
435
614
|
refreshDebugFrameworkAnalysis = async (request, reply) => {
|
|
615
|
+
this.assistantCapabilityService.assertExecutionAllowed("debug-targets.framework-analysis.refresh", readAssistantExecutionContext(request, request.body?.confirm === true), { debugTargetId: request.params.targetId });
|
|
436
616
|
reply.send(this.assistantCapabilityService.refreshDebugFrameworkAnalysis(request.params.targetId));
|
|
437
617
|
};
|
|
438
618
|
createDebugLaunchPlan = async (request, reply) => {
|
|
619
|
+
this.assistantCapabilityService.assertExecutionAllowed("debug-targets.launch-plan.create", readAssistantExecutionContext(request, request.body?.confirm === true), { debugTargetId: request.params.targetId });
|
|
439
620
|
reply.send(await this.assistantCapabilityService.createDebugLaunchPlan({
|
|
440
621
|
targetId: request.params.targetId,
|
|
441
622
|
userId: requireUserId(request),
|
|
@@ -443,6 +624,7 @@ export class AssistantCapabilityController {
|
|
|
443
624
|
}));
|
|
444
625
|
};
|
|
445
626
|
runDebugTarget = async (request, reply) => {
|
|
627
|
+
this.assistantCapabilityService.assertExecutionAllowed("debug-targets.run", readAssistantExecutionContext(request, request.body?.confirm === true), { debugTargetId: request.params.targetId });
|
|
446
628
|
reply.send(await this.assistantCapabilityService.runDebugTarget({
|
|
447
629
|
targetId: request.params.targetId,
|
|
448
630
|
userId: requireUserId(request),
|
|
@@ -452,15 +634,18 @@ export class AssistantCapabilityController {
|
|
|
452
634
|
}));
|
|
453
635
|
};
|
|
454
636
|
getLatestDebugRuntime = async (request, reply) => {
|
|
637
|
+
this.assistantCapabilityService.assertExecutionAllowed("debug-targets.runtime-latest.get", readAssistantExecutionContext(request), { debugTargetId: request.params.targetId });
|
|
455
638
|
reply.send(await this.assistantCapabilityService.getLatestDebugRuntime(request.params.targetId));
|
|
456
639
|
};
|
|
457
640
|
listDebugRuntimes = async (request, reply) => {
|
|
641
|
+
this.assistantCapabilityService.assertExecutionAllowed("debug-targets.runtimes.list", readAssistantExecutionContext(request), { debugTargetId: request.params.targetId });
|
|
458
642
|
reply.send(await this.assistantCapabilityService.listDebugRuntimes({
|
|
459
643
|
targetId: request.params.targetId,
|
|
460
644
|
limit: normalizePositiveInteger(request.query.limit, 5, 50, "limit")
|
|
461
645
|
}));
|
|
462
646
|
};
|
|
463
647
|
getDebugRuntime = async (request, reply) => {
|
|
648
|
+
this.assistantCapabilityService.assertExecutionAllowed("debug-runtimes.get", readAssistantExecutionContext(request), { debugRuntimeId: request.params.runtimeId });
|
|
464
649
|
reply.send(await this.assistantCapabilityService.getDebugRuntime(request.params.runtimeId));
|
|
465
650
|
};
|
|
466
651
|
}
|
|
@@ -741,4 +926,21 @@ function normalizeDebugPortRequestRole(value) {
|
|
|
741
926
|
field: "portRequests"
|
|
742
927
|
});
|
|
743
928
|
}
|
|
929
|
+
function readAssistantExecutionContext(request, confirmed = false) {
|
|
930
|
+
return {
|
|
931
|
+
userId: request.auth?.user.userId ?? null,
|
|
932
|
+
callerKind: request.auth?.callerKind ?? null,
|
|
933
|
+
capabilityProfile: normalizeAssistantCapabilityProfile(request.auth?.capabilityProfile),
|
|
934
|
+
workspaceId: request.auth?.workspaceId ?? null,
|
|
935
|
+
projectId: request.auth?.projectId ?? null,
|
|
936
|
+
sessionId: request.auth?.sessionId ?? null,
|
|
937
|
+
confirmationToken: confirmed ? "confirmed" : null
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
function normalizeAssistantCapabilityProfile(value) {
|
|
941
|
+
if (value === "butler-full" || value === "butler-ui" || value === "workspace-scoped") {
|
|
942
|
+
return value;
|
|
943
|
+
}
|
|
944
|
+
return null;
|
|
945
|
+
}
|
|
744
946
|
//# sourceMappingURL=assistant-capability-controller.js.map
|