@jingyi0605/codingns 0.3.5 → 0.4.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.
Files changed (255) hide show
  1. package/README.md +16 -0
  2. package/bin/codingns.mjs +1369 -10
  3. package/dist/public/assets/{TerminalPage-CgrfstRm.js → TerminalPage-6jHZV9Mh.js} +17 -17
  4. package/dist/public/assets/index-CSVhg7I8.js +123 -0
  5. package/dist/public/assets/index-Ce1VX19m.css +1 -0
  6. package/dist/public/index.html +2 -2
  7. package/dist/server/config/opencode-base-url-resolver.d.ts +7 -0
  8. package/dist/server/config/opencode-base-url-resolver.js +48 -11
  9. package/dist/server/config/opencode-base-url-resolver.js.map +1 -1
  10. package/dist/server/config/opencode-system-probe-helper-client.d.ts +4 -0
  11. package/dist/server/config/opencode-system-probe-helper-client.js +29 -0
  12. package/dist/server/config/opencode-system-probe-helper-client.js.map +1 -1
  13. package/dist/server/config/opencode-system-probe-helper-process.d.ts +12 -0
  14. package/dist/server/config/opencode-system-probe-helper-process.js +34 -7
  15. package/dist/server/config/opencode-system-probe-helper-process.js.map +1 -1
  16. package/dist/server/modules/assistant-capability/assistant-capability-controller.d.ts +317 -0
  17. package/dist/server/modules/assistant-capability/assistant-capability-controller.js +549 -1
  18. package/dist/server/modules/assistant-capability/assistant-capability-controller.js.map +1 -1
  19. package/dist/server/modules/assistant-capability/assistant-capability-service.d.ts +330 -2
  20. package/dist/server/modules/assistant-capability/assistant-capability-service.js +958 -3
  21. package/dist/server/modules/assistant-capability/assistant-capability-service.js.map +1 -1
  22. package/dist/server/modules/butler/assistant-automation-service.d.ts +110 -0
  23. package/dist/server/modules/butler/assistant-automation-service.js +786 -0
  24. package/dist/server/modules/butler/assistant-automation-service.js.map +1 -0
  25. package/dist/server/modules/butler/assistant-automation-trigger.d.ts +94 -0
  26. package/dist/server/modules/butler/assistant-automation-trigger.js +400 -0
  27. package/dist/server/modules/butler/assistant-automation-trigger.js.map +1 -0
  28. package/dist/server/modules/butler/assistant-sandbox-service.d.ts +55 -0
  29. package/dist/server/modules/butler/assistant-sandbox-service.js +266 -0
  30. package/dist/server/modules/butler/assistant-sandbox-service.js.map +1 -0
  31. package/dist/server/modules/butler/butler-action-context-service.d.ts +4 -1
  32. package/dist/server/modules/butler/butler-action-context-service.js +8 -2
  33. package/dist/server/modules/butler/butler-action-context-service.js.map +1 -1
  34. package/dist/server/modules/butler/butler-control-session-service.d.ts +8 -1
  35. package/dist/server/modules/butler/butler-control-session-service.js +154 -40
  36. package/dist/server/modules/butler/butler-control-session-service.js.map +1 -1
  37. package/dist/server/modules/butler/butler-control-timer-scheduler.d.ts +32 -0
  38. package/dist/server/modules/butler/butler-control-timer-scheduler.js +93 -0
  39. package/dist/server/modules/butler/butler-control-timer-scheduler.js.map +1 -0
  40. package/dist/server/modules/butler/butler-control-timer-service.d.ts +42 -0
  41. package/dist/server/modules/butler/butler-control-timer-service.js +132 -0
  42. package/dist/server/modules/butler/butler-control-timer-service.js.map +1 -0
  43. package/dist/server/modules/butler/butler-controller.d.ts +42 -2
  44. package/dist/server/modules/butler/butler-controller.js +79 -12
  45. package/dist/server/modules/butler/butler-controller.js.map +1 -1
  46. package/dist/server/modules/butler/butler-follow-up-service.d.ts +9 -1
  47. package/dist/server/modules/butler/butler-follow-up-service.js +273 -181
  48. package/dist/server/modules/butler/butler-follow-up-service.js.map +1 -1
  49. package/dist/server/modules/butler/butler-inbox-analysis-service.d.ts +4 -1
  50. package/dist/server/modules/butler/butler-inbox-analysis-service.js +18 -4
  51. package/dist/server/modules/butler/butler-inbox-analysis-service.js.map +1 -1
  52. package/dist/server/modules/butler/butler-inbox-instruction-adapter.js +7 -6
  53. package/dist/server/modules/butler/butler-inbox-instruction-adapter.js.map +1 -1
  54. package/dist/server/modules/butler/butler-profile-service.js +2 -5
  55. package/dist/server/modules/butler/butler-profile-service.js.map +1 -1
  56. package/dist/server/modules/butler/butler-project-service.d.ts +3 -1
  57. package/dist/server/modules/butler/butler-project-service.js +7 -1
  58. package/dist/server/modules/butler/butler-project-service.js.map +1 -1
  59. package/dist/server/modules/butler/butler-session-service.d.ts +3 -1
  60. package/dist/server/modules/butler/butler-session-service.js +12 -1
  61. package/dist/server/modules/butler/butler-session-service.js.map +1 -1
  62. package/dist/server/modules/butler/butler-session-summary-service.js +2 -1
  63. package/dist/server/modules/butler/butler-session-summary-service.js.map +1 -1
  64. package/dist/server/modules/butler/butler-workspace-context.d.ts +3 -0
  65. package/dist/server/modules/butler/butler-workspace-context.js +182 -51
  66. package/dist/server/modules/butler/butler-workspace-context.js.map +1 -1
  67. package/dist/server/modules/butler/patrol-execution-service.js +2 -1
  68. package/dist/server/modules/butler/patrol-execution-service.js.map +1 -1
  69. package/dist/server/modules/butler/provider-adapter-registry.d.ts +3 -0
  70. package/dist/server/modules/butler/provider-adapter-registry.js +18 -1
  71. package/dist/server/modules/butler/provider-adapter-registry.js.map +1 -1
  72. package/dist/server/modules/butler/verification-run-service.d.ts +9 -2
  73. package/dist/server/modules/butler/verification-run-service.js +188 -34
  74. package/dist/server/modules/butler/verification-run-service.js.map +1 -1
  75. package/dist/server/modules/debug-target/debug-target-controller.d.ts +13 -0
  76. package/dist/server/modules/debug-target/debug-target-controller.js +77 -2
  77. package/dist/server/modules/debug-target/debug-target-controller.js.map +1 -1
  78. package/dist/server/modules/debug-target/debug-target-service.d.ts +17 -3
  79. package/dist/server/modules/debug-target/debug-target-service.js +696 -98
  80. package/dist/server/modules/debug-target/debug-target-service.js.map +1 -1
  81. package/dist/server/modules/git/git-command-helper-client.d.ts +3 -0
  82. package/dist/server/modules/git/git-command-helper-client.js +71 -29
  83. package/dist/server/modules/git/git-command-helper-client.js.map +1 -1
  84. package/dist/server/modules/git/git-command-helper-process.js +62 -9
  85. package/dist/server/modules/git/git-command-helper-process.js.map +1 -1
  86. package/dist/server/modules/git/git-command-runner.d.ts +1 -0
  87. package/dist/server/modules/git/git-command-runner.js +44 -1
  88. package/dist/server/modules/git/git-command-runner.js.map +1 -1
  89. package/dist/server/modules/git/git-controller.js +8 -7
  90. package/dist/server/modules/git/git-controller.js.map +1 -1
  91. package/dist/server/modules/git/git-read-service.d.ts +7 -7
  92. package/dist/server/modules/git/git-read-service.js +41 -24
  93. package/dist/server/modules/git/git-read-service.js.map +1 -1
  94. package/dist/server/modules/model-switch/cc-switch-adapter.js +6 -2
  95. package/dist/server/modules/model-switch/cc-switch-adapter.js.map +1 -1
  96. package/dist/server/modules/preferences/profile-service.d.ts +3 -1
  97. package/dist/server/modules/preferences/profile-service.js +74 -3
  98. package/dist/server/modules/preferences/profile-service.js.map +1 -1
  99. package/dist/server/modules/provider/codex-model-options.js +2 -3
  100. package/dist/server/modules/provider/codex-model-options.js.map +1 -1
  101. package/dist/server/modules/provider/opencode-model-options.js +2 -3
  102. package/dist/server/modules/provider/opencode-model-options.js.map +1 -1
  103. package/dist/server/modules/provider/provider-discovery-helper-client.d.ts +14 -7
  104. package/dist/server/modules/provider/provider-discovery-helper-client.js +208 -46
  105. package/dist/server/modules/provider/provider-discovery-helper-client.js.map +1 -1
  106. package/dist/server/modules/provider/provider-discovery-helper-process.js +96 -47
  107. package/dist/server/modules/provider/provider-discovery-helper-process.js.map +1 -1
  108. package/dist/server/modules/provider/provider-discovery-runtime.d.ts +4 -0
  109. package/dist/server/modules/provider/provider-discovery-runtime.js +145 -0
  110. package/dist/server/modules/provider/provider-discovery-runtime.js.map +1 -0
  111. package/dist/server/modules/sessions/claude-runtime-helper-client.js +23 -1
  112. package/dist/server/modules/sessions/claude-runtime-helper-client.js.map +1 -1
  113. package/dist/server/modules/sessions/session-history-service.d.ts +12 -3
  114. package/dist/server/modules/sessions/session-history-service.js +465 -67
  115. package/dist/server/modules/sessions/session-history-service.js.map +1 -1
  116. package/dist/server/modules/sessions/session-live-runtime-service.d.ts +8 -0
  117. package/dist/server/modules/sessions/session-live-runtime-service.js +164 -34
  118. package/dist/server/modules/sessions/session-live-runtime-service.js.map +1 -1
  119. package/dist/server/modules/sessions/session-message-origin-utils.d.ts +12 -0
  120. package/dist/server/modules/sessions/session-message-origin-utils.js +45 -0
  121. package/dist/server/modules/sessions/session-message-origin-utils.js.map +1 -0
  122. package/dist/server/modules/sessions/session-permission-request-service.js +167 -0
  123. package/dist/server/modules/sessions/session-permission-request-service.js.map +1 -1
  124. package/dist/server/modules/skills/builtin-skill-service.d.ts +12 -0
  125. package/dist/server/modules/skills/builtin-skill-service.js +49 -0
  126. package/dist/server/modules/skills/builtin-skill-service.js.map +1 -0
  127. package/dist/server/modules/skills/builtin-skills/codingns-assistant/SKILL.md +82 -0
  128. package/dist/server/modules/skills/builtin-skills/codingns-assistant/agents/openai.yaml +4 -0
  129. package/dist/server/modules/skills/builtin-skills/codingns-assistant/references/cli-workflow.md +136 -0
  130. package/dist/server/modules/skills/skill-manager-service.d.ts +7 -0
  131. package/dist/server/modules/skills/skill-manager-service.js +98 -0
  132. package/dist/server/modules/skills/skill-manager-service.js.map +1 -1
  133. package/dist/server/modules/tailscale/tailscale-helper-client.d.ts +1 -0
  134. package/dist/server/modules/tailscale/tailscale-helper-client.js +12 -0
  135. package/dist/server/modules/tailscale/tailscale-helper-client.js.map +1 -1
  136. package/dist/server/modules/tasks/task-helper-client.d.ts +10 -2
  137. package/dist/server/modules/tasks/task-helper-client.js +152 -27
  138. package/dist/server/modules/tasks/task-helper-client.js.map +1 -1
  139. package/dist/server/modules/tasks/task-helper-process-handlers.d.ts +10 -3
  140. package/dist/server/modules/tasks/task-helper-process-handlers.js +7 -5
  141. package/dist/server/modules/tasks/task-helper-process-handlers.js.map +1 -1
  142. package/dist/server/modules/tasks/task-helper-process.js +104 -3
  143. package/dist/server/modules/tasks/task-helper-process.js.map +1 -1
  144. package/dist/server/modules/tasks/task-lane-executors.js +2 -2
  145. package/dist/server/modules/tasks/task-lane-executors.js.map +1 -1
  146. package/dist/server/modules/tasks/task-types.d.ts +4 -0
  147. package/dist/server/modules/tasks/task-types.js +5 -1
  148. package/dist/server/modules/tasks/task-types.js.map +1 -1
  149. package/dist/server/modules/terminal/command-template-service.d.ts +11 -2
  150. package/dist/server/modules/terminal/command-template-service.js +91 -9
  151. package/dist/server/modules/terminal/command-template-service.js.map +1 -1
  152. package/dist/server/modules/terminal/runtime/terminal-log-writer-client.js +1 -1
  153. package/dist/server/modules/terminal/runtime/terminal-log-writer-client.js.map +1 -1
  154. package/dist/server/modules/terminal/runtime/terminal-log-writer-process.js +160 -11
  155. package/dist/server/modules/terminal/runtime/terminal-log-writer-process.js.map +1 -1
  156. package/dist/server/modules/terminal/template-port-runtime.d.ts +1 -1
  157. package/dist/server/modules/terminal/template-port-runtime.js +87 -37
  158. package/dist/server/modules/terminal/template-port-runtime.js.map +1 -1
  159. package/dist/server/modules/terminal/terminal-controller.d.ts +3 -0
  160. package/dist/server/modules/terminal/terminal-controller.js +41 -0
  161. package/dist/server/modules/terminal/terminal-controller.js.map +1 -1
  162. package/dist/server/modules/terminal/terminal-service.d.ts +4 -0
  163. package/dist/server/modules/terminal/terminal-service.js +35 -1
  164. package/dist/server/modules/terminal/terminal-service.js.map +1 -1
  165. package/dist/server/modules/workbench/workbench-service.d.ts +3 -0
  166. package/dist/server/modules/workbench/workbench-service.js +7 -6
  167. package/dist/server/modules/workbench/workbench-service.js.map +1 -1
  168. package/dist/server/modules/workbench/workspace-file-watcher.d.ts +14 -6
  169. package/dist/server/modules/workbench/workspace-file-watcher.js +267 -57
  170. package/dist/server/modules/workbench/workspace-file-watcher.js.map +1 -1
  171. package/dist/server/modules/workbench/workspace-panel-snapshot-service.d.ts +3 -0
  172. package/dist/server/modules/workbench/workspace-panel-snapshot-service.js +149 -41
  173. package/dist/server/modules/workbench/workspace-panel-snapshot-service.js.map +1 -1
  174. package/dist/server/modules/workspace/workspace-code-composition.d.ts +1 -0
  175. package/dist/server/modules/workspace/workspace-code-composition.js +183 -1
  176. package/dist/server/modules/workspace/workspace-code-composition.js.map +1 -1
  177. package/dist/server/modules/workspace/workspace-service.js +54 -17
  178. package/dist/server/modules/workspace/workspace-service.js.map +1 -1
  179. package/dist/server/modules/worktree/worktree-cleanup-service.d.ts +1 -1
  180. package/dist/server/modules/worktree/worktree-cleanup-service.js +22 -17
  181. package/dist/server/modules/worktree/worktree-cleanup-service.js.map +1 -1
  182. package/dist/server/modules/worktree/worktree-controller.js +6 -5
  183. package/dist/server/modules/worktree/worktree-controller.js.map +1 -1
  184. package/dist/server/modules/worktree/worktree-manager.d.ts +10 -2
  185. package/dist/server/modules/worktree/worktree-manager.js +35 -20
  186. package/dist/server/modules/worktree/worktree-manager.js.map +1 -1
  187. package/dist/server/modules/worktree/worktree-merge-service.d.ts +2 -2
  188. package/dist/server/modules/worktree/worktree-merge-service.js +34 -27
  189. package/dist/server/modules/worktree/worktree-merge-service.js.map +1 -1
  190. package/dist/server/modules/worktree/worktree-sync-service.d.ts +1 -1
  191. package/dist/server/modules/worktree/worktree-sync-service.js +5 -3
  192. package/dist/server/modules/worktree/worktree-sync-service.js.map +1 -1
  193. package/dist/server/routes/assistant.js +43 -0
  194. package/dist/server/routes/assistant.js.map +1 -1
  195. package/dist/server/routes/butler.js +5 -0
  196. package/dist/server/routes/butler.js.map +1 -1
  197. package/dist/server/server/create-server.d.ts +8 -0
  198. package/dist/server/server/create-server.js +51 -13
  199. package/dist/server/server/create-server.js.map +1 -1
  200. package/dist/server/shared/http/request-abort.d.ts +2 -0
  201. package/dist/server/shared/http/request-abort.js +38 -0
  202. package/dist/server/shared/http/request-abort.js.map +1 -0
  203. package/dist/server/storage/repositories/assistant-automation-run-repository.d.ts +12 -0
  204. package/dist/server/storage/repositories/assistant-automation-run-repository.js +139 -0
  205. package/dist/server/storage/repositories/assistant-automation-run-repository.js.map +1 -0
  206. package/dist/server/storage/repositories/assistant-automation-task-repository.d.ts +15 -0
  207. package/dist/server/storage/repositories/assistant-automation-task-repository.js +173 -0
  208. package/dist/server/storage/repositories/assistant-automation-task-repository.js.map +1 -0
  209. package/dist/server/storage/repositories/assistant-sandbox-workspace-repository.d.ts +17 -0
  210. package/dist/server/storage/repositories/assistant-sandbox-workspace-repository.js +164 -0
  211. package/dist/server/storage/repositories/assistant-sandbox-workspace-repository.js.map +1 -0
  212. package/dist/server/storage/repositories/butler-control-session-repository.js +27 -3
  213. package/dist/server/storage/repositories/butler-control-session-repository.js.map +1 -1
  214. package/dist/server/storage/repositories/butler-control-timer-repository.d.ts +15 -0
  215. package/dist/server/storage/repositories/butler-control-timer-repository.js +157 -0
  216. package/dist/server/storage/repositories/butler-control-timer-repository.js.map +1 -0
  217. package/dist/server/storage/repositories/user-preference-profile-repository.js +6 -3
  218. package/dist/server/storage/repositories/user-preference-profile-repository.js.map +1 -1
  219. package/dist/server/storage/sqlite/client.js +239 -2
  220. package/dist/server/storage/sqlite/client.js.map +1 -1
  221. package/dist/server/storage/sqlite/schema.sql +107 -1
  222. package/dist/server/types/domain.d.ts +89 -2
  223. package/dist/server/ws/workbench-ws-hub.d.ts +14 -7
  224. package/dist/server/ws/workbench-ws-hub.js +316 -158
  225. package/dist/server/ws/workbench-ws-hub.js.map +1 -1
  226. package/node_modules/@codingns/session-sync-core/dist/providers/claude-code.d.ts +4 -1
  227. package/node_modules/@codingns/session-sync-core/dist/providers/claude-code.js +111 -3
  228. package/node_modules/@codingns/session-sync-core/dist/providers/claude-code.js.map +1 -1
  229. package/node_modules/@codingns/session-sync-core/dist/providers/codex.d.ts +6 -1
  230. package/node_modules/@codingns/session-sync-core/dist/providers/codex.js +306 -31
  231. package/node_modules/@codingns/session-sync-core/dist/providers/codex.js.map +1 -1
  232. package/node_modules/@codingns/session-sync-core/dist/providers/gemini.d.ts +5 -1
  233. package/node_modules/@codingns/session-sync-core/dist/providers/gemini.js +187 -26
  234. package/node_modules/@codingns/session-sync-core/dist/providers/gemini.js.map +1 -1
  235. package/node_modules/@codingns/session-sync-core/dist/providers/kimi.d.ts +4 -1
  236. package/node_modules/@codingns/session-sync-core/dist/providers/kimi.js +98 -1
  237. package/node_modules/@codingns/session-sync-core/dist/providers/kimi.js.map +1 -1
  238. package/node_modules/@codingns/session-sync-core/dist/providers/opencode.d.ts +2 -0
  239. package/node_modules/@codingns/session-sync-core/dist/providers/opencode.js +71 -8
  240. package/node_modules/@codingns/session-sync-core/dist/providers/opencode.js.map +1 -1
  241. package/node_modules/@codingns/session-sync-core/dist/providers/utils.d.ts +1 -0
  242. package/node_modules/@codingns/session-sync-core/dist/providers/utils.js +4 -1
  243. package/node_modules/@codingns/session-sync-core/dist/providers/utils.js.map +1 -1
  244. package/node_modules/@codingns/session-sync-core/dist/runtime/claude-runtime.js +44 -0
  245. package/node_modules/@codingns/session-sync-core/dist/runtime/claude-runtime.js.map +1 -1
  246. package/node_modules/@codingns/session-sync-core/dist/runtime/codex-runtime.js +9 -3
  247. package/node_modules/@codingns/session-sync-core/dist/runtime/codex-runtime.js.map +1 -1
  248. package/node_modules/@codingns/session-sync-core/dist/runtime/types.d.ts +1 -0
  249. package/node_modules/@codingns/session-sync-core/dist/services.js +17 -8
  250. package/node_modules/@codingns/session-sync-core/dist/services.js.map +1 -1
  251. package/node_modules/@codingns/session-sync-core/dist/types.d.ts +4 -0
  252. package/package.json +1 -1
  253. package/scripts/postinstall.mjs +33 -0
  254. package/dist/public/assets/index-Cek6u0b9.css +0 -1
  255. package/dist/public/assets/index-THHY79si.js +0 -122
@@ -11,14 +11,41 @@ interface AssistantProjectParams {
11
11
  interface AssistantSessionParams {
12
12
  sessionId: string;
13
13
  }
14
+ interface AssistantSandboxParams {
15
+ sandboxId: string;
16
+ }
14
17
  interface AssistantTerminalParams {
15
18
  terminalId: string;
16
19
  }
20
+ interface AssistantTimerParams {
21
+ timerId: string;
22
+ }
23
+ interface AssistantAutomationParams {
24
+ automationId: string;
25
+ }
17
26
  interface AssistantMessagesQuery {
18
27
  cursor?: string;
19
28
  limit?: string;
20
29
  direction?: string;
21
30
  }
31
+ interface AssistantTimerListQuery {
32
+ status?: "active" | "completed" | "cancelled" | "failed";
33
+ controlSessionId?: string;
34
+ limit?: string;
35
+ }
36
+ interface AssistantAutomationListQuery {
37
+ status?: "active" | "completed" | "cancelled" | "failed";
38
+ controlSessionId?: string;
39
+ limit?: string;
40
+ }
41
+ interface AssistantAutomationRecentRunsQuery {
42
+ controlSessionId?: string;
43
+ limit?: string;
44
+ }
45
+ interface AssistantSandboxListQuery {
46
+ status?: "active" | "archived" | "expired" | "deleted";
47
+ controlSessionId?: string;
48
+ }
22
49
  interface AssistantTerminalListQuery {
23
50
  workspaceId?: string;
24
51
  projectId?: string;
@@ -27,6 +54,21 @@ interface AssistantTerminalHistoryQuery {
27
54
  beforeSeq?: string;
28
55
  limit?: string;
29
56
  }
57
+ interface AssistantDebugTargetParams {
58
+ targetId: string;
59
+ }
60
+ interface AssistantDebugRuntimeParams {
61
+ runtimeId: string;
62
+ }
63
+ interface AssistantDebugRuntimeHistoryQuery {
64
+ limit?: string;
65
+ }
66
+ interface AssistantWorkspaceBrowseQuery {
67
+ path?: string;
68
+ }
69
+ interface AssistantWorktreeTreeQuery {
70
+ rootWorkspaceId?: string;
71
+ }
30
72
  interface AssistantSendMessageBody {
31
73
  content?: string;
32
74
  clientRequestId?: string | null;
@@ -34,6 +76,18 @@ interface AssistantSendMessageBody {
34
76
  reasoningLevel?: string | null;
35
77
  permissionMode?: string | null;
36
78
  }
79
+ interface AssistantStartProjectSessionBody {
80
+ content?: string;
81
+ providerId?: "codex" | "claude-code" | null;
82
+ model?: string | null;
83
+ reasoningLevel?: string | null;
84
+ permissionMode?: string | null;
85
+ }
86
+ interface AssistantStartSessionBody extends AssistantStartProjectSessionBody {
87
+ projectId?: string | null;
88
+ workspaceId?: string | null;
89
+ sandboxId?: string | null;
90
+ }
37
91
  interface AssistantForkBody {
38
92
  sourceType?: "session" | "message";
39
93
  sourceMessageId?: string | null;
@@ -43,6 +97,136 @@ interface AssistantForkBody {
43
97
  interface AssistantTerminalInputBody {
44
98
  content?: string;
45
99
  }
100
+ interface AssistantCreateTimerBody {
101
+ controlSessionId?: string | null;
102
+ projectId?: string | null;
103
+ targetSessionId?: string | null;
104
+ title?: string | null;
105
+ content?: string;
106
+ dueAt?: string | null;
107
+ afterSeconds?: number | string | null;
108
+ }
109
+ interface AssistantCreateAutomationBody {
110
+ controlSessionId?: string | null;
111
+ projectId?: string | null;
112
+ targetSessionId?: string | null;
113
+ title?: string | null;
114
+ content?: string;
115
+ triggerType?: "once" | "interval" | "cron" | "condition" | null;
116
+ dueAt?: string | null;
117
+ afterSeconds?: number | string | null;
118
+ everySeconds?: number | string | null;
119
+ everyMinutes?: number | string | null;
120
+ everyHours?: number | string | null;
121
+ stopAt?: string | null;
122
+ cronMinute?: number | string | null;
123
+ cronHour?: number | string | null;
124
+ cronDaysOfWeek?: Array<number | string> | string | null;
125
+ conditionKind?: "git.remote_tag_changed" | "session.runtime_idle" | null;
126
+ repositoryUrl?: string | null;
127
+ pollIntervalSeconds?: number | string | null;
128
+ expiresAt?: string | null;
129
+ maxChecks?: number | string | null;
130
+ conditionSessionId?: string | null;
131
+ includeTriggerContext?: boolean | null;
132
+ }
133
+ interface AssistantUpdateAutomationBody {
134
+ title?: string | null;
135
+ content?: string | null;
136
+ includeTriggerContext?: boolean | null;
137
+ dueAt?: string | null;
138
+ everySeconds?: number | string | null;
139
+ everyMinutes?: number | string | null;
140
+ everyHours?: number | string | null;
141
+ stopAt?: string | null;
142
+ cronMinute?: number | string | null;
143
+ cronHour?: number | string | null;
144
+ cronDaysOfWeek?: Array<number | string> | string | null;
145
+ pollIntervalSeconds?: number | string | null;
146
+ expiresAt?: string | null;
147
+ maxChecks?: number | string | null;
148
+ }
149
+ interface AssistantCreateSandboxBody {
150
+ title?: string | null;
151
+ description?: string | null;
152
+ purpose?: string | null;
153
+ expiresAt?: string | null;
154
+ sourceKind?: "blank" | "clone" | null;
155
+ repositoryUrl?: string | null;
156
+ directoryName?: string | null;
157
+ auth?: {
158
+ mode?: "none";
159
+ } | {
160
+ mode: "basic";
161
+ username?: string;
162
+ password?: string;
163
+ } | {
164
+ mode: "token";
165
+ username?: string;
166
+ token?: string;
167
+ };
168
+ }
169
+ interface AssistantPromoteSandboxBody {
170
+ mode?: "pin" | "project";
171
+ projectName?: string | null;
172
+ defaultProvider?: "codex" | "claude-code" | null;
173
+ }
174
+ interface AssistantCreateWorkspaceDirectoryBody {
175
+ parentPath?: string;
176
+ directoryName?: string;
177
+ }
178
+ interface AssistantImportWorkspaceBody {
179
+ path?: string;
180
+ name?: string | null;
181
+ }
182
+ interface AssistantCloneWorkspaceBody {
183
+ repositoryUrl?: string;
184
+ parentPath?: string;
185
+ directoryName?: string | null;
186
+ name?: string | null;
187
+ auth?: {
188
+ mode?: "none";
189
+ } | {
190
+ mode: "basic";
191
+ username?: string;
192
+ password?: string;
193
+ } | {
194
+ mode: "token";
195
+ username?: string;
196
+ token?: string;
197
+ };
198
+ }
199
+ interface AssistantReorderWorkspacesBody {
200
+ workspaceIds?: string[];
201
+ }
202
+ interface AssistantWorkspaceParams {
203
+ workspaceId: string;
204
+ }
205
+ interface AssistantWorkspaceNavigationStateBody {
206
+ collapsed?: unknown;
207
+ backgroundColor?: unknown;
208
+ }
209
+ interface AssistantCreateWorktreeBody {
210
+ sourceWorkspaceId?: string;
211
+ branchName?: string;
212
+ displayName?: string | null;
213
+ baseRef?: string | null;
214
+ }
215
+ interface AssistantWorktreeCleanupBody {
216
+ deleteBranch?: boolean;
217
+ }
218
+ interface AssistantAnalyzeDebugTargetBody {
219
+ workspaceId?: string;
220
+ rootPath?: string;
221
+ commandHints?: unknown;
222
+ }
223
+ interface AssistantDebugTargetLaunchPlanBody {
224
+ portRequests?: unknown;
225
+ }
226
+ interface AssistantRunDebugTargetBody extends AssistantDebugTargetLaunchPlanBody {
227
+ shell?: string;
228
+ runtimeType?: string | null;
229
+ }
46
230
  export declare class AssistantCapabilityController {
47
231
  private readonly assistantCapabilityService;
48
232
  constructor(assistantCapabilityService: AssistantCapabilityService);
@@ -56,6 +240,13 @@ export declare class AssistantCapabilityController {
56
240
  readonly listProjectSessions: (request: FastifyRequest<{
57
241
  Params: AssistantProjectParams;
58
242
  }>, reply: FastifyReply) => Promise<void>;
243
+ readonly startProjectSession: (request: FastifyRequest<{
244
+ Params: AssistantProjectParams;
245
+ Body: AssistantStartProjectSessionBody;
246
+ }>, reply: FastifyReply) => Promise<void>;
247
+ readonly startSession: (request: FastifyRequest<{
248
+ Body: AssistantStartSessionBody;
249
+ }>, reply: FastifyReply) => Promise<void>;
59
250
  readonly getSession: (request: FastifyRequest<{
60
251
  Params: AssistantSessionParams;
61
252
  }>, reply: FastifyReply) => Promise<void>;
@@ -74,6 +265,59 @@ export declare class AssistantCapabilityController {
74
265
  Params: AssistantSessionParams;
75
266
  Body: AssistantForkBody;
76
267
  }>, reply: FastifyReply) => Promise<void>;
268
+ readonly listTimers: (request: FastifyRequest<{
269
+ Querystring: AssistantTimerListQuery;
270
+ }>, reply: FastifyReply) => Promise<void>;
271
+ readonly getTimer: (request: FastifyRequest<{
272
+ Params: AssistantTimerParams;
273
+ }>, reply: FastifyReply) => Promise<void>;
274
+ readonly createTimer: (request: FastifyRequest<{
275
+ Body: AssistantCreateTimerBody;
276
+ }>, reply: FastifyReply) => Promise<void>;
277
+ readonly cancelTimer: (request: FastifyRequest<{
278
+ Params: AssistantTimerParams;
279
+ }>, reply: FastifyReply) => Promise<void>;
280
+ readonly listAutomations: (request: FastifyRequest<{
281
+ Querystring: AssistantAutomationListQuery;
282
+ }>, reply: FastifyReply) => Promise<void>;
283
+ readonly getAutomation: (request: FastifyRequest<{
284
+ Params: AssistantAutomationParams;
285
+ }>, reply: FastifyReply) => Promise<void>;
286
+ readonly createAutomation: (request: FastifyRequest<{
287
+ Body: AssistantCreateAutomationBody;
288
+ }>, reply: FastifyReply) => Promise<void>;
289
+ readonly updateAutomation: (request: FastifyRequest<{
290
+ Params: AssistantAutomationParams;
291
+ Body: AssistantUpdateAutomationBody;
292
+ }>, reply: FastifyReply) => Promise<void>;
293
+ readonly cancelAutomation: (request: FastifyRequest<{
294
+ Params: AssistantAutomationParams;
295
+ }>, reply: FastifyReply) => Promise<void>;
296
+ readonly skipAutomationWait: (request: FastifyRequest<{
297
+ Params: AssistantAutomationParams;
298
+ }>, reply: FastifyReply) => Promise<void>;
299
+ readonly listAutomationRuns: (request: FastifyRequest<{
300
+ Params: AssistantAutomationParams;
301
+ }>, reply: FastifyReply) => Promise<void>;
302
+ readonly listRecentAutomationRuns: (request: FastifyRequest<{
303
+ Querystring: AssistantAutomationRecentRunsQuery;
304
+ }>, reply: FastifyReply) => Promise<void>;
305
+ readonly listSandboxes: (request: FastifyRequest<{
306
+ Querystring: AssistantSandboxListQuery;
307
+ }>, reply: FastifyReply) => Promise<void>;
308
+ readonly createSandbox: (request: FastifyRequest<{
309
+ Body: AssistantCreateSandboxBody;
310
+ }>, reply: FastifyReply) => Promise<void>;
311
+ readonly promoteSandbox: (request: FastifyRequest<{
312
+ Params: AssistantSandboxParams;
313
+ Body: AssistantPromoteSandboxBody;
314
+ }>, reply: FastifyReply) => Promise<void>;
315
+ readonly expireSandbox: (request: FastifyRequest<{
316
+ Params: AssistantSandboxParams;
317
+ }>, reply: FastifyReply) => Promise<void>;
318
+ readonly removeSandbox: (request: FastifyRequest<{
319
+ Params: AssistantSandboxParams;
320
+ }>, reply: FastifyReply) => Promise<void>;
77
321
  readonly listTerminals: (request: FastifyRequest<{
78
322
  Querystring: AssistantTerminalListQuery;
79
323
  }>, reply: FastifyReply) => Promise<void>;
@@ -85,5 +329,78 @@ export declare class AssistantCapabilityController {
85
329
  Params: AssistantTerminalParams;
86
330
  Body: AssistantTerminalInputBody;
87
331
  }>, reply: FastifyReply) => Promise<void>;
332
+ readonly closeTerminal: (request: FastifyRequest<{
333
+ Params: AssistantTerminalParams;
334
+ }>, reply: FastifyReply) => Promise<void>;
335
+ readonly listWorkspaces: (_request: FastifyRequest, reply: FastifyReply) => Promise<void>;
336
+ readonly browseWorkspaces: (request: FastifyRequest<{
337
+ Querystring: AssistantWorkspaceBrowseQuery;
338
+ }>, reply: FastifyReply) => Promise<void>;
339
+ readonly createWorkspaceDirectory: (request: FastifyRequest<{
340
+ Body: AssistantCreateWorkspaceDirectoryBody;
341
+ }>, reply: FastifyReply) => Promise<void>;
342
+ readonly importWorkspace: (request: FastifyRequest<{
343
+ Body: AssistantImportWorkspaceBody;
344
+ }>, reply: FastifyReply) => Promise<void>;
345
+ readonly cloneWorkspace: (request: FastifyRequest<{
346
+ Body: AssistantCloneWorkspaceBody;
347
+ }>, reply: FastifyReply) => Promise<void>;
348
+ readonly reorderWorkspaces: (request: FastifyRequest<{
349
+ Body: AssistantReorderWorkspacesBody;
350
+ }>, reply: FastifyReply) => Promise<void>;
351
+ readonly getWorkspaceManagementSummary: (request: FastifyRequest<{
352
+ Params: AssistantWorkspaceParams;
353
+ }>, reply: FastifyReply) => Promise<void>;
354
+ readonly updateWorkspaceNavigationState: (request: FastifyRequest<{
355
+ Params: AssistantWorkspaceParams;
356
+ Body: AssistantWorkspaceNavigationStateBody;
357
+ }>, reply: FastifyReply) => Promise<void>;
358
+ readonly removeWorkspace: (request: FastifyRequest<{
359
+ Params: AssistantWorkspaceParams;
360
+ }>, reply: FastifyReply) => Promise<void>;
361
+ readonly getWorktreeTree: (request: FastifyRequest<{
362
+ Querystring: AssistantWorktreeTreeQuery;
363
+ }>, reply: FastifyReply) => Promise<void>;
364
+ readonly createWorktree: (request: FastifyRequest<{
365
+ Body: AssistantCreateWorktreeBody;
366
+ }>, reply: FastifyReply) => Promise<void>;
367
+ readonly getWorktreeMergePreview: (request: FastifyRequest<{
368
+ Params: AssistantWorkspaceParams;
369
+ }>, reply: FastifyReply) => Promise<void>;
370
+ readonly mergeWorktreeIntoParent: (request: FastifyRequest<{
371
+ Params: AssistantWorkspaceParams;
372
+ }>, reply: FastifyReply) => Promise<void>;
373
+ readonly cleanupWorktree: (request: FastifyRequest<{
374
+ Params: AssistantWorkspaceParams;
375
+ Body: AssistantWorktreeCleanupBody;
376
+ }>, reply: FastifyReply) => Promise<void>;
377
+ readonly getDebugCompatibilityMatrix: (_request: FastifyRequest, reply: FastifyReply) => Promise<void>;
378
+ readonly analyzeDebugTarget: (request: FastifyRequest<{
379
+ Body: AssistantAnalyzeDebugTargetBody;
380
+ }>, reply: FastifyReply) => Promise<void>;
381
+ readonly getDebugFrameworkAnalysis: (request: FastifyRequest<{
382
+ Params: AssistantDebugTargetParams;
383
+ }>, reply: FastifyReply) => Promise<void>;
384
+ readonly refreshDebugFrameworkAnalysis: (request: FastifyRequest<{
385
+ Params: AssistantDebugTargetParams;
386
+ }>, reply: FastifyReply) => Promise<void>;
387
+ readonly createDebugLaunchPlan: (request: FastifyRequest<{
388
+ Params: AssistantDebugTargetParams;
389
+ Body: AssistantDebugTargetLaunchPlanBody;
390
+ }>, reply: FastifyReply) => Promise<void>;
391
+ readonly runDebugTarget: (request: FastifyRequest<{
392
+ Params: AssistantDebugTargetParams;
393
+ Body: AssistantRunDebugTargetBody;
394
+ }>, reply: FastifyReply) => Promise<void>;
395
+ readonly getLatestDebugRuntime: (request: FastifyRequest<{
396
+ Params: AssistantDebugTargetParams;
397
+ }>, reply: FastifyReply) => Promise<void>;
398
+ readonly listDebugRuntimes: (request: FastifyRequest<{
399
+ Params: AssistantDebugTargetParams;
400
+ Querystring: AssistantDebugRuntimeHistoryQuery;
401
+ }>, reply: FastifyReply) => Promise<void>;
402
+ readonly getDebugRuntime: (request: FastifyRequest<{
403
+ Params: AssistantDebugRuntimeParams;
404
+ }>, reply: FastifyReply) => Promise<void>;
88
405
  }
89
406
  export {};