@oscharko-dev/keiko-server 0.2.7 → 0.2.9

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 (302) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/chat-handlers.d.ts +18 -2
  3. package/dist/chat-handlers.d.ts.map +1 -1
  4. package/dist/chat-handlers.js +185 -3
  5. package/dist/command-runner-errors.d.ts +17 -0
  6. package/dist/command-runner-errors.d.ts.map +1 -0
  7. package/dist/command-runner-errors.js +37 -0
  8. package/dist/command-runner-evidence.d.ts +23 -0
  9. package/dist/command-runner-evidence.d.ts.map +1 -0
  10. package/dist/command-runner-evidence.js +69 -0
  11. package/dist/command-runner-routes.d.ts +7 -0
  12. package/dist/command-runner-routes.d.ts.map +1 -0
  13. package/dist/command-runner-routes.js +175 -0
  14. package/dist/command-runner.d.ts +29 -0
  15. package/dist/command-runner.d.ts.map +1 -0
  16. package/dist/command-runner.js +348 -0
  17. package/dist/conversation-prompt.d.ts +2 -2
  18. package/dist/conversation-prompt.d.ts.map +1 -1
  19. package/dist/conversation-prompt.js +17 -1
  20. package/dist/csp.d.ts.map +1 -1
  21. package/dist/csp.js +3 -0
  22. package/dist/deps.d.ts +28 -1
  23. package/dist/deps.d.ts.map +1 -1
  24. package/dist/deps.js +288 -13
  25. package/dist/discussion-prompt.d.ts +4 -0
  26. package/dist/discussion-prompt.d.ts.map +1 -0
  27. package/dist/discussion-prompt.js +19 -0
  28. package/dist/editor/agentActionAudit.d.ts +18 -0
  29. package/dist/editor/agentActionAudit.d.ts.map +1 -0
  30. package/dist/editor/agentActionAudit.js +80 -0
  31. package/dist/editor/agentRoutes.d.ts +1 -0
  32. package/dist/editor/agentRoutes.d.ts.map +1 -1
  33. package/dist/editor/agentRoutes.js +292 -55
  34. package/dist/editor/agentSessionRegistry.d.ts +35 -0
  35. package/dist/editor/agentSessionRegistry.d.ts.map +1 -0
  36. package/dist/editor/agentSessionRegistry.js +243 -0
  37. package/dist/editor/completionRoutes.d.ts.map +1 -1
  38. package/dist/editor/completionRoutes.js +5 -10
  39. package/dist/editor/languageRoutes.d.ts +12 -1
  40. package/dist/editor/languageRoutes.d.ts.map +1 -1
  41. package/dist/editor/languageRoutes.js +71 -8
  42. package/dist/editor/languageService.d.ts +3 -2
  43. package/dist/editor/languageService.d.ts.map +1 -1
  44. package/dist/editor/languageService.js +41 -3
  45. package/dist/editor/languageServiceHost.d.ts.map +1 -1
  46. package/dist/editor/languageServiceHost.js +2 -2
  47. package/dist/editor/lsp/hostLanguageOperation.d.ts +17 -0
  48. package/dist/editor/lsp/hostLanguageOperation.d.ts.map +1 -0
  49. package/dist/editor/lsp/hostLanguageOperation.js +436 -0
  50. package/dist/editor/lsp/hostLanguageProviders.d.ts +26 -0
  51. package/dist/editor/lsp/hostLanguageProviders.d.ts.map +1 -0
  52. package/dist/editor/lsp/hostLanguageProviders.js +161 -0
  53. package/dist/editor/lsp/lspFrameCodec.d.ts +13 -0
  54. package/dist/editor/lsp/lspFrameCodec.d.ts.map +1 -0
  55. package/dist/editor/lsp/lspFrameCodec.js +164 -0
  56. package/dist/editor/lsp/lspJsonRpcClient.d.ts +34 -0
  57. package/dist/editor/lsp/lspJsonRpcClient.d.ts.map +1 -0
  58. package/dist/editor/lsp/lspJsonRpcClient.js +173 -0
  59. package/dist/editor/lsp/lspLanguageProvider.d.ts +7 -0
  60. package/dist/editor/lsp/lspLanguageProvider.d.ts.map +1 -0
  61. package/dist/editor/lsp/lspLanguageProvider.js +29 -0
  62. package/dist/editor/lsp/lspLifecycleLedger.d.ts +5 -0
  63. package/dist/editor/lsp/lspLifecycleLedger.d.ts.map +1 -0
  64. package/dist/editor/lsp/lspLifecycleLedger.js +37 -0
  65. package/dist/editor/lsp/lspNodeAdapter.d.ts +31 -0
  66. package/dist/editor/lsp/lspNodeAdapter.d.ts.map +1 -0
  67. package/dist/editor/lsp/lspNodeAdapter.js +230 -0
  68. package/dist/editor/lsp/lspProcessManager.d.ts +24 -0
  69. package/dist/editor/lsp/lspProcessManager.d.ts.map +1 -0
  70. package/dist/editor/lsp/lspProcessManager.js +255 -0
  71. package/dist/editor/lsp/lspRestartThrottle.d.ts +6 -0
  72. package/dist/editor/lsp/lspRestartThrottle.d.ts.map +1 -0
  73. package/dist/editor/lsp/lspRestartThrottle.js +24 -0
  74. package/dist/editor/lsp/lspStatusRoute.d.ts +8 -0
  75. package/dist/editor/lsp/lspStatusRoute.d.ts.map +1 -0
  76. package/dist/editor/lsp/lspStatusRoute.js +22 -0
  77. package/dist/editor/lsp/lspTransport.d.ts +19 -0
  78. package/dist/editor/lsp/lspTransport.d.ts.map +1 -0
  79. package/dist/editor/lsp/lspTransport.js +55 -0
  80. package/dist/editor/lsp/testing/fakeLspProcess.d.ts +23 -0
  81. package/dist/editor/lsp/testing/fakeLspProcess.d.ts.map +1 -0
  82. package/dist/editor/lsp/testing/fakeLspProcess.js +132 -0
  83. package/dist/files.d.ts +63 -0
  84. package/dist/files.d.ts.map +1 -1
  85. package/dist/files.js +799 -1
  86. package/dist/gateway-readiness.d.ts +6 -0
  87. package/dist/gateway-readiness.d.ts.map +1 -0
  88. package/dist/gateway-readiness.js +624 -0
  89. package/dist/gateway-setup.d.ts +2 -0
  90. package/dist/gateway-setup.d.ts.map +1 -1
  91. package/dist/gateway-setup.js +275 -11
  92. package/dist/gitDelivery/actionSheetProjection.d.ts +30 -0
  93. package/dist/gitDelivery/actionSheetProjection.d.ts.map +1 -0
  94. package/dist/gitDelivery/actionSheetProjection.js +206 -0
  95. package/dist/gitDelivery/actionSheetRoutes.d.ts +29 -0
  96. package/dist/gitDelivery/actionSheetRoutes.d.ts.map +1 -0
  97. package/dist/gitDelivery/actionSheetRoutes.js +293 -0
  98. package/dist/gitDelivery/agentOperationsRoutes.d.ts +33 -0
  99. package/dist/gitDelivery/agentOperationsRoutes.d.ts.map +1 -0
  100. package/dist/gitDelivery/agentOperationsRoutes.js +405 -0
  101. package/dist/gitDelivery/commitRoutes.d.ts +23 -0
  102. package/dist/gitDelivery/commitRoutes.d.ts.map +1 -0
  103. package/dist/gitDelivery/commitRoutes.js +204 -0
  104. package/dist/gitDelivery/evidenceRoutes.d.ts +9 -0
  105. package/dist/gitDelivery/evidenceRoutes.d.ts.map +1 -0
  106. package/dist/gitDelivery/evidenceRoutes.js +101 -0
  107. package/dist/gitDelivery/execution.d.ts +38 -0
  108. package/dist/gitDelivery/execution.d.ts.map +1 -0
  109. package/dist/gitDelivery/execution.js +117 -0
  110. package/dist/gitDelivery/localMutationRoutes.d.ts +30 -0
  111. package/dist/gitDelivery/localMutationRoutes.d.ts.map +1 -0
  112. package/dist/gitDelivery/localMutationRoutes.js +165 -0
  113. package/dist/gitDelivery/mergeExecution.d.ts +63 -0
  114. package/dist/gitDelivery/mergeExecution.d.ts.map +1 -0
  115. package/dist/gitDelivery/mergeExecution.js +168 -0
  116. package/dist/gitDelivery/mergeRoutes.d.ts +12 -0
  117. package/dist/gitDelivery/mergeRoutes.d.ts.map +1 -0
  118. package/dist/gitDelivery/mergeRoutes.js +218 -0
  119. package/dist/gitDelivery/mutationEvidenceLedger.d.ts +23 -0
  120. package/dist/gitDelivery/mutationEvidenceLedger.d.ts.map +1 -0
  121. package/dist/gitDelivery/mutationEvidenceLedger.js +87 -0
  122. package/dist/gitDelivery/prExecution.d.ts +54 -0
  123. package/dist/gitDelivery/prExecution.d.ts.map +1 -0
  124. package/dist/gitDelivery/prExecution.js +192 -0
  125. package/dist/gitDelivery/prRoutes.d.ts +12 -0
  126. package/dist/gitDelivery/prRoutes.d.ts.map +1 -0
  127. package/dist/gitDelivery/prRoutes.js +256 -0
  128. package/dist/gitDelivery/pushExecution.d.ts +43 -0
  129. package/dist/gitDelivery/pushExecution.d.ts.map +1 -0
  130. package/dist/gitDelivery/pushExecution.js +124 -0
  131. package/dist/gitDelivery/pushRoutes.d.ts +12 -0
  132. package/dist/gitDelivery/pushRoutes.d.ts.map +1 -0
  133. package/dist/gitDelivery/pushRoutes.js +200 -0
  134. package/dist/gitDelivery/requestGuards.d.ts +15 -0
  135. package/dist/gitDelivery/requestGuards.d.ts.map +1 -0
  136. package/dist/gitDelivery/requestGuards.js +97 -0
  137. package/dist/gitDelivery/syncEvidence.d.ts +37 -0
  138. package/dist/gitDelivery/syncEvidence.d.ts.map +1 -0
  139. package/dist/gitDelivery/syncEvidence.js +85 -0
  140. package/dist/gitDelivery/syncExecution.d.ts +30 -0
  141. package/dist/gitDelivery/syncExecution.d.ts.map +1 -0
  142. package/dist/gitDelivery/syncExecution.js +266 -0
  143. package/dist/gitDelivery/syncRoutes.d.ts +13 -0
  144. package/dist/gitDelivery/syncRoutes.d.ts.map +1 -0
  145. package/dist/gitDelivery/syncRoutes.js +200 -0
  146. package/dist/gitPorcelainStatus.d.ts +15 -0
  147. package/dist/gitPorcelainStatus.d.ts.map +1 -0
  148. package/dist/gitPorcelainStatus.js +104 -0
  149. package/dist/gitRepositoryReads.d.ts +10 -0
  150. package/dist/gitRepositoryReads.d.ts.map +1 -0
  151. package/dist/gitRepositoryReads.js +314 -0
  152. package/dist/gitRepositoryRoutes.d.ts +7 -0
  153. package/dist/gitRepositoryRoutes.d.ts.map +1 -0
  154. package/dist/gitRepositoryRoutes.js +221 -0
  155. package/dist/gitRoutes.d.ts +66 -0
  156. package/dist/gitRoutes.d.ts.map +1 -0
  157. package/dist/gitRoutes.js +543 -0
  158. package/dist/governed-workflow.d.ts +2 -0
  159. package/dist/governed-workflow.d.ts.map +1 -1
  160. package/dist/governed-workflow.js +4 -0
  161. package/dist/grounded-qa-hybrid.d.ts.map +1 -1
  162. package/dist/grounded-qa-hybrid.js +2 -0
  163. package/dist/grounded-qa-multi-source.d.ts.map +1 -1
  164. package/dist/grounded-qa-multi-source.js +1 -0
  165. package/dist/grounded-qa.d.ts +11 -0
  166. package/dist/grounded-qa.d.ts.map +1 -1
  167. package/dist/grounded-qa.js +14 -4
  168. package/dist/headers.d.ts +4 -1
  169. package/dist/headers.d.ts.map +1 -1
  170. package/dist/headers.js +11 -4
  171. package/dist/index.d.ts +8 -1
  172. package/dist/index.d.ts.map +1 -1
  173. package/dist/index.js +9 -1
  174. package/dist/local-knowledge-grounded-qa.d.ts.map +1 -1
  175. package/dist/local-knowledge-grounded-qa.js +11 -2
  176. package/dist/qualityIntelligence/figmaSnapshotRoutes.d.ts +1 -1
  177. package/dist/qualityIntelligence/figmaSnapshotRoutes.d.ts.map +1 -1
  178. package/dist/qualityIntelligence/figmaSnapshotRoutes.js +1 -1
  179. package/dist/read-handlers.d.ts +5 -0
  180. package/dist/read-handlers.d.ts.map +1 -1
  181. package/dist/read-handlers.js +57 -1
  182. package/dist/routes.d.ts.map +1 -1
  183. package/dist/routes.js +260 -12
  184. package/dist/run-engine.d.ts.map +1 -1
  185. package/dist/run-engine.js +3 -0
  186. package/dist/run-handlers.d.ts +0 -1
  187. package/dist/run-handlers.d.ts.map +1 -1
  188. package/dist/run-handlers.js +64 -211
  189. package/dist/run-request.d.ts +11 -0
  190. package/dist/run-request.d.ts.map +1 -1
  191. package/dist/run-request.js +158 -10
  192. package/dist/runtime/capabilityDetector.d.ts +38 -0
  193. package/dist/runtime/capabilityDetector.d.ts.map +1 -0
  194. package/dist/runtime/capabilityDetector.js +443 -0
  195. package/dist/runtime/capabilityRoutes.d.ts +9 -0
  196. package/dist/runtime/capabilityRoutes.d.ts.map +1 -0
  197. package/dist/runtime/capabilityRoutes.js +45 -0
  198. package/dist/runtime/containerEngineDetector.d.ts +17 -0
  199. package/dist/runtime/containerEngineDetector.d.ts.map +1 -0
  200. package/dist/runtime/containerEngineDetector.js +222 -0
  201. package/dist/runtime/containerRoutes.d.ts +8 -0
  202. package/dist/runtime/containerRoutes.d.ts.map +1 -0
  203. package/dist/runtime/containerRoutes.js +207 -0
  204. package/dist/runtime/containerRunner-errors.d.ts +18 -0
  205. package/dist/runtime/containerRunner-errors.d.ts.map +1 -0
  206. package/dist/runtime/containerRunner-errors.js +42 -0
  207. package/dist/runtime/containerRunner-evidence.d.ts +24 -0
  208. package/dist/runtime/containerRunner-evidence.d.ts.map +1 -0
  209. package/dist/runtime/containerRunner-evidence.js +74 -0
  210. package/dist/runtime/containerRunner.d.ts +37 -0
  211. package/dist/runtime/containerRunner.d.ts.map +1 -0
  212. package/dist/runtime/containerRunner.js +443 -0
  213. package/dist/server.d.ts.map +1 -1
  214. package/dist/server.js +24 -4
  215. package/dist/store/db.d.ts.map +1 -1
  216. package/dist/store/db.js +2 -1
  217. package/dist/store/index.d.ts +1 -1
  218. package/dist/store/index.d.ts.map +1 -1
  219. package/dist/store/messages.d.ts +2 -1
  220. package/dist/store/messages.d.ts.map +1 -1
  221. package/dist/store/messages.js +46 -4
  222. package/dist/store/schema.d.ts +1 -1
  223. package/dist/store/schema.d.ts.map +1 -1
  224. package/dist/store/schema.js +68 -1
  225. package/dist/store/types.d.ts +3 -2
  226. package/dist/store/types.d.ts.map +1 -1
  227. package/dist/task-workspace/active-store.d.ts +21 -0
  228. package/dist/task-workspace/active-store.d.ts.map +1 -0
  229. package/dist/task-workspace/active-store.js +55 -0
  230. package/dist/task-workspace/authorization.d.ts +7 -0
  231. package/dist/task-workspace/authorization.d.ts.map +1 -0
  232. package/dist/task-workspace/authorization.js +54 -0
  233. package/dist/task-workspace/binding.d.ts +3 -0
  234. package/dist/task-workspace/binding.d.ts.map +1 -0
  235. package/dist/task-workspace/binding.js +22 -0
  236. package/dist/task-workspace/cleanup.d.ts +4 -0
  237. package/dist/task-workspace/cleanup.d.ts.map +1 -0
  238. package/dist/task-workspace/cleanup.js +428 -0
  239. package/dist/task-workspace/errors.d.ts +14 -0
  240. package/dist/task-workspace/errors.d.ts.map +1 -0
  241. package/dist/task-workspace/errors.js +81 -0
  242. package/dist/task-workspace/evidence.d.ts +32 -0
  243. package/dist/task-workspace/evidence.d.ts.map +1 -0
  244. package/dist/task-workspace/evidence.js +52 -0
  245. package/dist/task-workspace/field-safety.d.ts +3 -0
  246. package/dist/task-workspace/field-safety.d.ts.map +1 -0
  247. package/dist/task-workspace/field-safety.js +42 -0
  248. package/dist/task-workspace/health.d.ts +4 -0
  249. package/dist/task-workspace/health.d.ts.map +1 -0
  250. package/dist/task-workspace/health.js +163 -0
  251. package/dist/task-workspace/lifecycle.d.ts +3 -0
  252. package/dist/task-workspace/lifecycle.d.ts.map +1 -0
  253. package/dist/task-workspace/lifecycle.js +248 -0
  254. package/dist/task-workspace/locks.d.ts +13 -0
  255. package/dist/task-workspace/locks.d.ts.map +1 -0
  256. package/dist/task-workspace/locks.js +44 -0
  257. package/dist/task-workspace/managed-root.d.ts +7 -0
  258. package/dist/task-workspace/managed-root.d.ts.map +1 -0
  259. package/dist/task-workspace/managed-root.js +98 -0
  260. package/dist/task-workspace/mutex.d.ts +8 -0
  261. package/dist/task-workspace/mutex.d.ts.map +1 -0
  262. package/dist/task-workspace/mutex.js +82 -0
  263. package/dist/task-workspace/naming.d.ts +15 -0
  264. package/dist/task-workspace/naming.d.ts.map +1 -0
  265. package/dist/task-workspace/naming.js +0 -0
  266. package/dist/task-workspace/provisioning.d.ts +3 -0
  267. package/dist/task-workspace/provisioning.d.ts.map +1 -0
  268. package/dist/task-workspace/provisioning.js +528 -0
  269. package/dist/task-workspace/reconciliation.d.ts +15 -0
  270. package/dist/task-workspace/reconciliation.d.ts.map +1 -0
  271. package/dist/task-workspace/reconciliation.js +274 -0
  272. package/dist/task-workspace/repair.d.ts +3 -0
  273. package/dist/task-workspace/repair.d.ts.map +1 -0
  274. package/dist/task-workspace/repair.js +286 -0
  275. package/dist/task-workspace/routes.d.ts +19 -0
  276. package/dist/task-workspace/routes.d.ts.map +1 -0
  277. package/dist/task-workspace/routes.js +481 -0
  278. package/dist/task-workspace/store.d.ts +12 -0
  279. package/dist/task-workspace/store.d.ts.map +1 -0
  280. package/dist/task-workspace/store.js +128 -0
  281. package/dist/task-workspace/types.d.ts +170 -0
  282. package/dist/task-workspace/types.d.ts.map +1 -0
  283. package/dist/task-workspace/types.js +5 -0
  284. package/dist/voice-action-governance.d.ts +23 -0
  285. package/dist/voice-action-governance.d.ts.map +1 -0
  286. package/dist/voice-action-governance.js +126 -0
  287. package/dist/voice-handlers.d.ts +6 -0
  288. package/dist/voice-handlers.d.ts.map +1 -0
  289. package/dist/voice-handlers.js +570 -0
  290. package/dist/voice-realtime-grounded-tool.d.ts +31 -0
  291. package/dist/voice-realtime-grounded-tool.d.ts.map +1 -0
  292. package/dist/voice-realtime-grounded-tool.js +322 -0
  293. package/dist/voice-realtime.d.ts +69 -0
  294. package/dist/voice-realtime.d.ts.map +1 -0
  295. package/dist/voice-realtime.js +787 -0
  296. package/dist/workspace-state-handlers.d.ts +5 -0
  297. package/dist/workspace-state-handlers.d.ts.map +1 -0
  298. package/dist/workspace-state-handlers.js +106 -0
  299. package/package.json +20 -19
  300. package/dist/grounded-handoff.d.ts +0 -4
  301. package/dist/grounded-handoff.d.ts.map +0 -1
  302. package/dist/grounded-handoff.js +0 -445
@@ -0,0 +1,23 @@
1
+ import type { LspSpawnHandle } from "../lspTransport.js";
2
+ export type FakeLspBehavior = "normal" | "slow" | "oversized" | "ignore-shutdown" | "unresponsive";
3
+ export interface FakeLspSpawnHandle extends LspSpawnHandle {
4
+ kill(signal: NodeJS.Signals): void;
5
+ onExit(callback: (code: number | null, signal: NodeJS.Signals | null) => void): void;
6
+ onError(callback: (error: Error) => void): void;
7
+ }
8
+ export interface FakeLspOptions {
9
+ readonly behavior?: FakeLspBehavior;
10
+ readonly oversizedContentLength?: number;
11
+ readonly sentinel?: string;
12
+ readonly results?: Readonly<Record<string, unknown>>;
13
+ }
14
+ export interface FakeLspController {
15
+ readonly handle: FakeLspSpawnHandle;
16
+ emitStderr(text: string): void;
17
+ crash(code?: number): void;
18
+ emitLateExit(code?: number): void;
19
+ killed(): readonly NodeJS.Signals[];
20
+ exitEmitted(): boolean;
21
+ }
22
+ export declare function createFakeLspProcess(options?: FakeLspOptions): FakeLspController;
23
+ //# sourceMappingURL=fakeLspProcess.d.ts.map
@@ -0,0 +1 @@
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BAAoB,CAAC,OAAO,GAAE,cAAmB,GAAG,iBAAiB,CAqDpF"}
@@ -0,0 +1,132 @@
1
+ // Controllable in-memory fake LSP process (Issue #1381, Epic #1491, ADR-0069 D7). It satisfies the
2
+ // `LspSpawnHandle & kill/onExit/onError` shape via three PassThrough streams — NO real subprocess —
3
+ // so every manager branch (initialize, request, timeout, oversized frame, crash, ignore-shutdown) is
4
+ // exercised deterministically with an injected clock. This is the shared harness Stage C/D reuse; it
5
+ // is committed as a non-test module so other test files can import it without a `.test` collision.
6
+ import { PassThrough } from "node:stream";
7
+ import { createLspFrameReader, writeLspFrame } from "../lspFrameCodec.js";
8
+ export function createFakeLspProcess(options = {}) {
9
+ const stdin = new PassThrough();
10
+ const stdout = new PassThrough();
11
+ const stderr = new PassThrough();
12
+ const behavior = options.behavior ?? "normal";
13
+ const killedSignals = [];
14
+ const exitCallbacks = [];
15
+ let exitEmitted = false;
16
+ const emitExit = (code, signal) => {
17
+ if (exitEmitted)
18
+ return;
19
+ exitEmitted = true;
20
+ for (const callback of exitCallbacks)
21
+ callback(code, signal);
22
+ stdout.end();
23
+ stderr.end();
24
+ };
25
+ void runResponder(stdin, stdout, behavior, options, emitExit);
26
+ if (options.sentinel !== undefined && behavior !== "oversized") {
27
+ stderr.write(Buffer.from(options.sentinel, "utf8"));
28
+ }
29
+ const handle = {
30
+ stdin,
31
+ stdout,
32
+ stderr,
33
+ pid: 4242,
34
+ kill: (signal) => {
35
+ killedSignals.push(signal);
36
+ if (signal === "SIGKILL")
37
+ emitExit(null, "SIGKILL");
38
+ },
39
+ onExit: (callback) => {
40
+ exitCallbacks.push(callback);
41
+ },
42
+ onError: () => {
43
+ // The fake never emits a spawn-time error; SPAWN_FAILED is exercised via a throwing spawn fn.
44
+ },
45
+ };
46
+ return {
47
+ handle,
48
+ emitStderr: (text) => {
49
+ stderr.write(Buffer.from(text, "utf8"));
50
+ },
51
+ crash: (code = 1) => {
52
+ emitExit(code, null);
53
+ },
54
+ emitLateExit: (code = 1) => {
55
+ for (const callback of exitCallbacks)
56
+ callback(code, null);
57
+ },
58
+ killed: () => killedSignals,
59
+ exitEmitted: () => exitEmitted,
60
+ };
61
+ }
62
+ // Reads framed JSON-RPC requests from the client's stdin and replies on stdout per the behavior. It
63
+ // owns the `initialize`/`shutdown`/`exit` lifecycle plus arbitrary request echo for `normal`.
64
+ async function runResponder(stdin, stdout, behavior, options, emitExit) {
65
+ const reader = createLspFrameReader(stdin, 64 * 1024 * 1024);
66
+ try {
67
+ for await (const body of reader) {
68
+ handleRequest(parse(body), stdout, behavior, options, emitExit);
69
+ }
70
+ }
71
+ catch {
72
+ // Stream closed (dispose/crash); nothing further to read.
73
+ }
74
+ }
75
+ function handleRequest(message, stdout, behavior, options, emitExit) {
76
+ if (message?.method === undefined)
77
+ return;
78
+ if (message.method === "exit") {
79
+ // "unresponsive" never goes down on its own — it ignores `exit`, so only SIGKILL terminates it.
80
+ if (behavior !== "unresponsive")
81
+ emitExit(0, null);
82
+ return;
83
+ }
84
+ if (message.id === undefined)
85
+ return;
86
+ respond(message.id, message.method, stdout, behavior, options);
87
+ }
88
+ function respond(id, method, stdout, behavior, options) {
89
+ if (behavior === "slow")
90
+ return;
91
+ if (method === "shutdown" && (behavior === "ignore-shutdown" || behavior === "unresponsive")) {
92
+ return;
93
+ }
94
+ if (behavior === "oversized") {
95
+ writeOversizedFrame(stdout, options.oversizedContentLength ?? 64 * 1024 * 1024);
96
+ return;
97
+ }
98
+ writeLspFrame(stdout, JSON.stringify(buildResponse(id, method, options)));
99
+ }
100
+ function buildResponse(id, method, options) {
101
+ return { jsonrpc: "2.0", id, result: resultFor(method, options) };
102
+ }
103
+ function resultFor(method, options) {
104
+ if (method === "initialize") {
105
+ return { capabilities: {}, ...sentinelPayload(options) };
106
+ }
107
+ if (method === "shutdown") {
108
+ return null;
109
+ }
110
+ const fixed = options.results?.[method];
111
+ return fixed ?? { method, ...sentinelPayload(options) };
112
+ }
113
+ function sentinelPayload(options) {
114
+ return options.sentinel !== undefined ? { note: options.sentinel } : {};
115
+ }
116
+ // Writes a header declaring a body larger than the body actually sent: the manager's frame reader
117
+ // must reject on the declared Content-Length BEFORE reading the body (ADR-0069 I3), so the short body
118
+ // here is never consumed.
119
+ function writeOversizedFrame(stdout, contentLength) {
120
+ stdout.write(Buffer.from(`Content-Length: ${String(contentLength)}\r\n\r\n`, "ascii"));
121
+ }
122
+ function parse(body) {
123
+ try {
124
+ const parsed = JSON.parse(body.toString("utf8"));
125
+ if (typeof parsed !== "object" || parsed === null)
126
+ return null;
127
+ return parsed;
128
+ }
129
+ catch {
130
+ return null;
131
+ }
132
+ }
package/dist/files.d.ts CHANGED
@@ -35,6 +35,28 @@ export interface FilesTreeResponse {
35
35
  readonly entries: readonly FilesTreeEntry[];
36
36
  readonly truncated: boolean;
37
37
  }
38
+ export interface FilesSearchResult {
39
+ readonly root: string;
40
+ readonly path: string;
41
+ readonly name: string;
42
+ readonly directory: string;
43
+ readonly extension: string | null;
44
+ readonly sizeBytes: number;
45
+ readonly modifiedAt: number;
46
+ readonly fileRole: FilesSearchFileRole;
47
+ readonly matchQuality: FilesSearchMatchQuality;
48
+ readonly rootKind: FilesSearchRootKind;
49
+ }
50
+ export interface FilesSearchResponse {
51
+ readonly root: string;
52
+ readonly query: string;
53
+ readonly results: readonly FilesSearchResult[];
54
+ readonly truncated: boolean;
55
+ readonly scannedFileCount: number;
56
+ }
57
+ export type FilesSearchFileRole = "source" | "test" | "config" | "docs" | "generated" | "asset" | "other";
58
+ export type FilesSearchMatchQuality = "exact" | "strong" | "path" | "weak";
59
+ export type FilesSearchRootKind = "selected-root" | "nested-git-root";
38
60
  interface FilesPreviewBase {
39
61
  readonly root: string;
40
62
  readonly path: string;
@@ -77,6 +99,7 @@ export declare function runFilesHandler(work: () => Promise<RouteResult> | Route
77
99
  export declare function resolveRoot(store: UiStore, rootInput: string | null, redactor: FilesMetadataRedactor): Promise<ResolvedProjectRoot>;
78
100
  export declare function listFilesDirectories(store: UiStore, rootInput: string | null, pathInput?: string, redactor?: FilesMetadataRedactor): Promise<FilesDirectoryListing>;
79
101
  export declare function readFilesTree(store: UiStore, rootInput: string | null, pathInput: string | null, redactor?: FilesMetadataRedactor): Promise<FilesTreeResponse>;
102
+ export declare function searchFiles(store: UiStore, rootInput: string | null, queryInput: string | null, limitInput?: number, redactor?: FilesMetadataRedactor): Promise<FilesSearchResponse>;
80
103
  export declare function readJsonObject(req: IncomingMessage, maxBytes: number): Promise<Record<string, unknown> | RouteResult>;
81
104
  export declare function readFilesContent(store: UiStore, rootInput: string | null, pathInput: string | null, redactor?: FilesMetadataRedactor): Promise<FilesContentResponse>;
82
105
  export declare function writeFilesContent(args: {
@@ -88,10 +111,50 @@ export declare function writeFilesContent(args: {
88
111
  readonly baseVersion?: EditorDocumentVersion | undefined;
89
112
  readonly redactor?: FilesMetadataRedactor | undefined;
90
113
  }): Promise<FilesContentResponse>;
114
+ export interface FilesMutationResponse {
115
+ readonly root: string;
116
+ readonly path: string;
117
+ readonly previousPath?: string;
118
+ readonly kind: FilesEntryKind;
119
+ }
120
+ export declare function createFilesEntry(args: {
121
+ readonly store: UiStore;
122
+ readonly rootInput: string | null;
123
+ readonly pathInput: string | null;
124
+ readonly kind: FilesEntryKind;
125
+ readonly redactor?: FilesMetadataRedactor | undefined;
126
+ }): Promise<FilesMutationResponse>;
127
+ export declare function renameFilesEntry(args: {
128
+ readonly store: UiStore;
129
+ readonly rootInput: string | null;
130
+ readonly pathInput: string | null;
131
+ readonly newPathInput: string | null;
132
+ readonly baseVersion?: EditorDocumentVersion | undefined;
133
+ readonly redactor?: FilesMetadataRedactor | undefined;
134
+ }): Promise<FilesMutationResponse>;
135
+ export declare function deleteFilesEntry(args: {
136
+ readonly store: UiStore;
137
+ readonly rootInput: string | null;
138
+ readonly pathInput: string | null;
139
+ readonly baseVersion?: EditorDocumentVersion | undefined;
140
+ readonly redactor?: FilesMetadataRedactor | undefined;
141
+ }): Promise<FilesMutationResponse>;
142
+ export declare function copyFilesEntry(args: {
143
+ readonly store: UiStore;
144
+ readonly rootInput: string | null;
145
+ readonly sourcePathInput: string | null;
146
+ readonly destPathInput: string | null;
147
+ readonly redactor?: FilesMetadataRedactor | undefined;
148
+ }): Promise<FilesMutationResponse>;
91
149
  export declare function readFilesPreview(store: UiStore, rootInput: string | null, pathInput: string | null, redactor?: FilesMetadataRedactor): Promise<FilesPreviewResponse>;
92
150
  export declare function handleFilesDirectories(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
93
151
  export declare function handleFilesTree(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
152
+ export declare function handleFilesSearch(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
94
153
  export declare function handleFilesPreview(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
95
154
  export declare function handleFilesContent(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
155
+ export declare function handleFilesCreate(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
156
+ export declare function handleFilesRename(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
157
+ export declare function handleFilesDelete(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
158
+ export declare function handleFilesCopy(ctx: RouteContext, deps: UiHandlerDeps): Promise<RouteResult>;
96
159
  export {};
97
160
  //# sourceMappingURL=files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../src/files.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAgBjD,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC3B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAa,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC7E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAW,OAA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