wicked-crew 0.18.18 → 0.18.20

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 (461) hide show
  1. package/README.md +9 -6
  2. package/dist/api/ask-paths.d.ts +2 -0
  3. package/dist/api/ask-paths.d.ts.map +1 -1
  4. package/dist/api/ask-paths.js +6 -0
  5. package/dist/api/ask-paths.js.map +1 -1
  6. package/dist/api/auth.d.ts +7 -5
  7. package/dist/api/auth.d.ts.map +1 -1
  8. package/dist/api/auth.js +23 -9
  9. package/dist/api/auth.js.map +1 -1
  10. package/dist/api/chat-attachments.d.ts.map +1 -1
  11. package/dist/api/chat-attachments.js +69 -19
  12. package/dist/api/chat-attachments.js.map +1 -1
  13. package/dist/api/chat-citations.d.ts.map +1 -1
  14. package/dist/api/chat-citations.js +22 -0
  15. package/dist/api/chat-citations.js.map +1 -1
  16. package/dist/api/chat-context.d.ts +4 -1
  17. package/dist/api/chat-context.d.ts.map +1 -1
  18. package/dist/api/chat-context.js +15 -9
  19. package/dist/api/chat-context.js.map +1 -1
  20. package/dist/api/chat-history.d.ts +13 -0
  21. package/dist/api/chat-history.d.ts.map +1 -1
  22. package/dist/api/chat-history.js +25 -0
  23. package/dist/api/chat-history.js.map +1 -1
  24. package/dist/api/chat-jobs.d.ts +15 -6
  25. package/dist/api/chat-jobs.d.ts.map +1 -1
  26. package/dist/api/chat-jobs.js +48 -19
  27. package/dist/api/chat-jobs.js.map +1 -1
  28. package/dist/api/chat-proposals.d.ts +36 -7
  29. package/dist/api/chat-proposals.d.ts.map +1 -1
  30. package/dist/api/chat-proposals.js +224 -52
  31. package/dist/api/chat-proposals.js.map +1 -1
  32. package/dist/api/chat-scope.d.ts +18 -9
  33. package/dist/api/chat-scope.d.ts.map +1 -1
  34. package/dist/api/chat-scope.js +62 -23
  35. package/dist/api/chat-scope.js.map +1 -1
  36. package/dist/api/cluster-status.js +1 -1
  37. package/dist/api/cluster-status.js.map +1 -1
  38. package/dist/api/codebase-archive.d.ts +4 -3
  39. package/dist/api/codebase-archive.d.ts.map +1 -1
  40. package/dist/api/codebase-archive.js +4 -3
  41. package/dist/api/codebase-archive.js.map +1 -1
  42. package/dist/api/delivery-index.d.ts.map +1 -1
  43. package/dist/api/delivery-index.js +13 -0
  44. package/dist/api/delivery-index.js.map +1 -1
  45. package/dist/api/gate-cache.d.ts +1 -0
  46. package/dist/api/gate-cache.d.ts.map +1 -1
  47. package/dist/api/gate-cache.js +19 -6
  48. package/dist/api/gate-cache.js.map +1 -1
  49. package/dist/api/governance-steering.d.ts +4 -4
  50. package/dist/api/mcp.d.ts +10 -2
  51. package/dist/api/mcp.d.ts.map +1 -1
  52. package/dist/api/mcp.js +54 -13
  53. package/dist/api/mcp.js.map +1 -1
  54. package/dist/api/needs.js +1 -1
  55. package/dist/api/needs.js.map +1 -1
  56. package/dist/api/product.d.ts +1 -1
  57. package/dist/api/proposal-onboard.d.ts +9 -1
  58. package/dist/api/proposal-onboard.d.ts.map +1 -1
  59. package/dist/api/proposal-onboard.js +41 -3
  60. package/dist/api/proposal-onboard.js.map +1 -1
  61. package/dist/api/recording.d.ts +1 -1
  62. package/dist/api/redeliver.d.ts +48 -0
  63. package/dist/api/redeliver.d.ts.map +1 -0
  64. package/dist/api/redeliver.js +178 -0
  65. package/dist/api/redeliver.js.map +1 -0
  66. package/dist/api/requirements.d.ts +2 -16
  67. package/dist/api/requirements.d.ts.map +1 -1
  68. package/dist/api/requirements.js.map +1 -1
  69. package/dist/api/retry-index.d.ts +2 -0
  70. package/dist/api/retry-index.d.ts.map +1 -1
  71. package/dist/api/retry-index.js +16 -8
  72. package/dist/api/retry-index.js.map +1 -1
  73. package/dist/api/roster-standing.d.ts +5 -1
  74. package/dist/api/roster-standing.d.ts.map +1 -1
  75. package/dist/api/roster-standing.js +10 -3
  76. package/dist/api/roster-standing.js.map +1 -1
  77. package/dist/api/routes.d.ts +31 -9
  78. package/dist/api/routes.d.ts.map +1 -1
  79. package/dist/api/routes.js +572 -181
  80. package/dist/api/routes.js.map +1 -1
  81. package/dist/api/run-base-notice.d.ts +5 -0
  82. package/dist/api/run-base-notice.d.ts.map +1 -0
  83. package/dist/api/run-base-notice.js +15 -0
  84. package/dist/api/run-base-notice.js.map +1 -0
  85. package/dist/api/run-documents.d.ts +9 -1
  86. package/dist/api/run-documents.d.ts.map +1 -1
  87. package/dist/api/run-documents.js +63 -5
  88. package/dist/api/run-documents.js.map +1 -1
  89. package/dist/api/run-timing-index.d.ts +2 -0
  90. package/dist/api/run-timing-index.d.ts.map +1 -1
  91. package/dist/api/run-timing-index.js +62 -86
  92. package/dist/api/run-timing-index.js.map +1 -1
  93. package/dist/api/seat-container-login.js +2 -2
  94. package/dist/api/seat-container-login.js.map +1 -1
  95. package/dist/api/seat-probe.d.ts +6 -5
  96. package/dist/api/seat-probe.d.ts.map +1 -1
  97. package/dist/api/seat-probe.js +11 -7
  98. package/dist/api/seat-probe.js.map +1 -1
  99. package/dist/api/seat-standing.js +4 -4
  100. package/dist/api/seat-standing.js.map +1 -1
  101. package/dist/api/server.d.ts.map +1 -1
  102. package/dist/api/server.js +92 -25
  103. package/dist/api/server.js.map +1 -1
  104. package/dist/api/stall-watchdog.d.ts +6 -0
  105. package/dist/api/stall-watchdog.d.ts.map +1 -1
  106. package/dist/api/stall-watchdog.js +28 -0
  107. package/dist/api/stall-watchdog.js.map +1 -1
  108. package/dist/api/system-snapshot.d.ts +5 -0
  109. package/dist/api/system-snapshot.d.ts.map +1 -1
  110. package/dist/api/system-snapshot.js +20 -9
  111. package/dist/api/system-snapshot.js.map +1 -1
  112. package/dist/api/testing.d.ts +2 -2
  113. package/dist/api/ui-text.js +2 -2
  114. package/dist/api/ui-text.js.map +1 -1
  115. package/dist/apps/actions/api-action.js +5 -2
  116. package/dist/apps/actions/api-action.js.map +1 -1
  117. package/dist/apps/actions/write-path.d.ts +9 -0
  118. package/dist/apps/actions/write-path.d.ts.map +1 -1
  119. package/dist/apps/actions/write-path.js +17 -9
  120. package/dist/apps/actions/write-path.js.map +1 -1
  121. package/dist/apps/exec/executor.d.ts +8 -15
  122. package/dist/apps/exec/executor.d.ts.map +1 -1
  123. package/dist/apps/exec/executor.js +10 -3
  124. package/dist/apps/exec/executor.js.map +1 -1
  125. package/dist/apps/exec/redescribe.d.ts +37 -0
  126. package/dist/apps/exec/redescribe.d.ts.map +1 -0
  127. package/dist/apps/exec/redescribe.js +86 -0
  128. package/dist/apps/exec/redescribe.js.map +1 -0
  129. package/dist/apps/exec/source-stage.d.ts +3 -1
  130. package/dist/apps/exec/source-stage.d.ts.map +1 -1
  131. package/dist/apps/exec/source-stage.js +13 -3
  132. package/dist/apps/exec/source-stage.js.map +1 -1
  133. package/dist/apps/exec/sources.d.ts +6 -0
  134. package/dist/apps/exec/sources.d.ts.map +1 -1
  135. package/dist/apps/exec/sources.js +8 -0
  136. package/dist/apps/exec/sources.js.map +1 -1
  137. package/dist/apps/publish/manifest.d.ts +6 -1
  138. package/dist/apps/publish/manifest.d.ts.map +1 -1
  139. package/dist/apps/publish/manifest.js +6 -0
  140. package/dist/apps/publish/manifest.js.map +1 -1
  141. package/dist/apps/publish/run.d.ts +4 -1
  142. package/dist/apps/publish/run.d.ts.map +1 -1
  143. package/dist/apps/publish/run.js +4 -1
  144. package/dist/apps/publish/run.js.map +1 -1
  145. package/dist/apps/routes.d.ts +1 -0
  146. package/dist/apps/routes.d.ts.map +1 -1
  147. package/dist/apps/routes.js +13 -0
  148. package/dist/apps/routes.js.map +1 -1
  149. package/dist/apps-server/Dockerfile +2 -2
  150. package/dist/apps-server/runners/sqlite-runner.mjs +28 -11
  151. package/dist/apps-server/server/lib/bundle/server.mjs +348 -150
  152. package/dist/cli/governance.d.ts +5 -2
  153. package/dist/cli/governance.d.ts.map +1 -1
  154. package/dist/cli/governance.js +8 -5
  155. package/dist/cli/governance.js.map +1 -1
  156. package/dist/cli/index.d.ts +1 -0
  157. package/dist/cli/index.d.ts.map +1 -1
  158. package/dist/cli/index.js +8 -5
  159. package/dist/cli/index.js.map +1 -1
  160. package/dist/cli/service.d.ts +12 -6
  161. package/dist/cli/service.d.ts.map +1 -1
  162. package/dist/cli/service.js +53 -23
  163. package/dist/cli/service.js.map +1 -1
  164. package/dist/core/adapter.d.ts +44 -23
  165. package/dist/core/adapter.d.ts.map +1 -1
  166. package/dist/core/adapter.js +158 -60
  167. package/dist/core/adapter.js.map +1 -1
  168. package/dist/core/assurance.d.ts +37 -44
  169. package/dist/core/assurance.d.ts.map +1 -1
  170. package/dist/core/assurance.js +53 -69
  171. package/dist/core/assurance.js.map +1 -1
  172. package/dist/core/bridge-reaper.d.ts +4 -3
  173. package/dist/core/bridge-reaper.d.ts.map +1 -1
  174. package/dist/core/bridge-reaper.js +24 -8
  175. package/dist/core/bridge-reaper.js.map +1 -1
  176. package/dist/core/deliver-exclusions.d.ts +5 -2
  177. package/dist/core/deliver-exclusions.d.ts.map +1 -1
  178. package/dist/core/deliver-exclusions.js +5 -2
  179. package/dist/core/deliver-exclusions.js.map +1 -1
  180. package/dist/core/deliver-text.d.ts +12 -0
  181. package/dist/core/deliver-text.d.ts.map +1 -1
  182. package/dist/core/deliver-text.js +40 -2
  183. package/dist/core/deliver-text.js.map +1 -1
  184. package/dist/core/deliver.d.ts +27 -0
  185. package/dist/core/deliver.d.ts.map +1 -1
  186. package/dist/core/deliver.js +162 -39
  187. package/dist/core/deliver.js.map +1 -1
  188. package/dist/core/engine-roster.d.ts +2 -0
  189. package/dist/core/engine-roster.d.ts.map +1 -1
  190. package/dist/core/engine-roster.js +13 -0
  191. package/dist/core/engine-roster.js.map +1 -1
  192. package/dist/core/estate-mcp-client.d.ts +13 -14
  193. package/dist/core/estate-mcp-client.d.ts.map +1 -1
  194. package/dist/core/estate-mcp-client.js +47 -62
  195. package/dist/core/estate-mcp-client.js.map +1 -1
  196. package/dist/core/pr-checks-helper.d.ts +8 -4
  197. package/dist/core/pr-checks-helper.d.ts.map +1 -1
  198. package/dist/core/pr-checks-helper.js +39 -17
  199. package/dist/core/pr-checks-helper.js.map +1 -1
  200. package/dist/core/redeliver.d.ts +16 -0
  201. package/dist/core/redeliver.d.ts.map +1 -0
  202. package/dist/core/redeliver.js +64 -0
  203. package/dist/core/redeliver.js.map +1 -0
  204. package/dist/core/repoPaths.d.ts +2 -4
  205. package/dist/core/repoPaths.d.ts.map +1 -1
  206. package/dist/core/repoPaths.js +4 -6
  207. package/dist/core/repoPaths.js.map +1 -1
  208. package/dist/core/threadpool.d.ts +3 -0
  209. package/dist/core/threadpool.d.ts.map +1 -0
  210. package/dist/core/threadpool.js +14 -0
  211. package/dist/core/threadpool.js.map +1 -0
  212. package/dist/core/types.d.ts.map +1 -1
  213. package/dist/core/types.js +2 -0
  214. package/dist/core/types.js.map +1 -1
  215. package/dist/decisions/rules-brief.d.ts +2 -0
  216. package/dist/decisions/rules-brief.d.ts.map +1 -1
  217. package/dist/decisions/rules-brief.js.map +1 -1
  218. package/dist/editors/csp.d.ts +6 -0
  219. package/dist/editors/csp.d.ts.map +1 -1
  220. package/dist/editors/csp.js +10 -0
  221. package/dist/editors/csp.js.map +1 -1
  222. package/dist/editors/pack-install.d.ts.map +1 -1
  223. package/dist/editors/pack-install.js +1 -0
  224. package/dist/editors/pack-install.js.map +1 -1
  225. package/dist/editors/registry.d.ts +5 -1
  226. package/dist/editors/registry.d.ts.map +1 -1
  227. package/dist/editors/registry.js +16 -3
  228. package/dist/editors/registry.js.map +1 -1
  229. package/dist/editors/routes.d.ts +4 -2
  230. package/dist/editors/routes.d.ts.map +1 -1
  231. package/dist/editors/routes.js +23 -6
  232. package/dist/editors/routes.js.map +1 -1
  233. package/dist/evals/shape-corrections.js +1 -1
  234. package/dist/evals/shape-corrections.js.map +1 -1
  235. package/dist/evals/workflow.d.ts.map +1 -1
  236. package/dist/evals/workflow.js +1 -0
  237. package/dist/evals/workflow.js.map +1 -1
  238. package/dist/governance/rule-revision.d.ts +7 -0
  239. package/dist/governance/rule-revision.d.ts.map +1 -0
  240. package/dist/governance/rule-revision.js +23 -0
  241. package/dist/governance/rule-revision.js.map +1 -0
  242. package/dist/insights/review-service.d.ts +2 -0
  243. package/dist/insights/review-service.d.ts.map +1 -1
  244. package/dist/insights/review-service.js +27 -0
  245. package/dist/insights/review-service.js.map +1 -1
  246. package/dist/interactive/bridge-pool.d.ts +2 -0
  247. package/dist/interactive/bridge-pool.d.ts.map +1 -1
  248. package/dist/interactive/bridge-pool.js +12 -4
  249. package/dist/interactive/bridge-pool.js.map +1 -1
  250. package/dist/interactive/chat-events.d.ts +3 -0
  251. package/dist/interactive/chat-events.d.ts.map +1 -1
  252. package/dist/interactive/chat-events.js +13 -4
  253. package/dist/interactive/chat-events.js.map +1 -1
  254. package/dist/interactive/council-outcome.js +1 -1
  255. package/dist/interactive/council-outcome.js.map +1 -1
  256. package/dist/interactive/doc-delete-routes.d.ts +1 -0
  257. package/dist/interactive/doc-delete-routes.d.ts.map +1 -1
  258. package/dist/interactive/doc-delete-routes.js +126 -123
  259. package/dist/interactive/doc-delete-routes.js.map +1 -1
  260. package/dist/interactive/draft-events.d.ts +8 -7
  261. package/dist/interactive/draft-events.d.ts.map +1 -1
  262. package/dist/interactive/draft-events.js +24 -14
  263. package/dist/interactive/draft-events.js.map +1 -1
  264. package/dist/interactive/proposal-create.d.ts +9 -11
  265. package/dist/interactive/proposal-create.d.ts.map +1 -1
  266. package/dist/interactive/proposal-create.js +27 -21
  267. package/dist/interactive/proposal-create.js.map +1 -1
  268. package/dist/interactive/proposal-refine.d.ts +4 -4
  269. package/dist/interactive/proposal-refine.d.ts.map +1 -1
  270. package/dist/interactive/proposal-refine.js +25 -7
  271. package/dist/interactive/proposal-refine.js.map +1 -1
  272. package/dist/interactive/proxy-routes.d.ts +10 -5
  273. package/dist/interactive/proxy-routes.d.ts.map +1 -1
  274. package/dist/interactive/proxy-routes.js +108 -11
  275. package/dist/interactive/proxy-routes.js.map +1 -1
  276. package/dist/interactive/source-packet.d.ts +5 -1
  277. package/dist/interactive/source-packet.d.ts.map +1 -1
  278. package/dist/interactive/source-packet.js +62 -29
  279. package/dist/interactive/source-packet.js.map +1 -1
  280. package/dist/knowledge/adapters/toolbox/memory.d.ts +2 -0
  281. package/dist/knowledge/adapters/toolbox/memory.d.ts.map +1 -0
  282. package/dist/knowledge/adapters/toolbox/memory.js +43 -0
  283. package/dist/knowledge/adapters/toolbox/memory.js.map +1 -0
  284. package/dist/knowledge/adapters/toolbox/supervisor.d.ts +9 -3
  285. package/dist/knowledge/adapters/toolbox/supervisor.d.ts.map +1 -1
  286. package/dist/knowledge/adapters/toolbox/supervisor.js +40 -6
  287. package/dist/knowledge/adapters/toolbox/supervisor.js.map +1 -1
  288. package/dist/knowledge/gate/gate.d.ts.map +1 -1
  289. package/dist/knowledge/gate/gate.js +4 -1
  290. package/dist/knowledge/gate/gate.js.map +1 -1
  291. package/dist/knowledge/gate/record.d.ts +15 -2
  292. package/dist/knowledge/gate/record.d.ts.map +1 -1
  293. package/dist/knowledge/gate/record.js +108 -29
  294. package/dist/knowledge/gate/record.js.map +1 -1
  295. package/dist/knowledge/registry/entry.d.ts +7 -0
  296. package/dist/knowledge/registry/entry.d.ts.map +1 -1
  297. package/dist/knowledge/registry/entry.js +4 -0
  298. package/dist/knowledge/registry/entry.js.map +1 -1
  299. package/dist/learn/scheduler.d.ts.map +1 -1
  300. package/dist/learn/scheduler.js +2 -1
  301. package/dist/learn/scheduler.js.map +1 -1
  302. package/dist/learnings/estate.d.ts.map +1 -1
  303. package/dist/learnings/estate.js +3 -14
  304. package/dist/learnings/estate.js.map +1 -1
  305. package/dist/learnings/extract.d.ts +7 -12
  306. package/dist/learnings/extract.d.ts.map +1 -1
  307. package/dist/learnings/extract.js +9 -40
  308. package/dist/learnings/extract.js.map +1 -1
  309. package/dist/learnings/service.d.ts +12 -15
  310. package/dist/learnings/service.d.ts.map +1 -1
  311. package/dist/learnings/service.js +23 -43
  312. package/dist/learnings/service.js.map +1 -1
  313. package/dist/mcp/broker.js +1 -1
  314. package/dist/mcp/broker.js.map +1 -1
  315. package/dist/mcp/env.d.ts +12 -4
  316. package/dist/mcp/env.d.ts.map +1 -1
  317. package/dist/mcp/env.js +27 -7
  318. package/dist/mcp/env.js.map +1 -1
  319. package/dist/mcp/estate-relay.d.ts.map +1 -1
  320. package/dist/mcp/estate-relay.js +2 -4
  321. package/dist/mcp/estate-relay.js.map +1 -1
  322. package/dist/mcp/invoke.d.ts.map +1 -1
  323. package/dist/mcp/invoke.js +4 -3
  324. package/dist/mcp/invoke.js.map +1 -1
  325. package/dist/mcp/probe.d.ts +14 -1
  326. package/dist/mcp/probe.d.ts.map +1 -1
  327. package/dist/mcp/probe.js +55 -10
  328. package/dist/mcp/probe.js.map +1 -1
  329. package/dist/mcp/registry-store.d.ts +12 -0
  330. package/dist/mcp/registry-store.d.ts.map +1 -1
  331. package/dist/mcp/registry-store.js +10 -0
  332. package/dist/mcp/registry-store.js.map +1 -1
  333. package/dist/mcp/registry.d.ts +13 -5
  334. package/dist/mcp/registry.d.ts.map +1 -1
  335. package/dist/mcp/registry.js +64 -12
  336. package/dist/mcp/registry.js.map +1 -1
  337. package/dist/mcp/rest.js +1 -1
  338. package/dist/mcp/rest.js.map +1 -1
  339. package/dist/mcp/secrets.d.ts +1 -1
  340. package/dist/mcp/secrets.d.ts.map +1 -1
  341. package/dist/mcp/secrets.js +10 -11
  342. package/dist/mcp/secrets.js.map +1 -1
  343. package/dist/mcp/upstream-error.d.ts +1 -1
  344. package/dist/mcp/upstream-error.d.ts.map +1 -1
  345. package/dist/projects/auto-refresh.d.ts +21 -0
  346. package/dist/projects/auto-refresh.d.ts.map +1 -1
  347. package/dist/projects/auto-refresh.js +55 -1
  348. package/dist/projects/auto-refresh.js.map +1 -1
  349. package/dist/projects/graph.d.ts +49 -2
  350. package/dist/projects/graph.d.ts.map +1 -1
  351. package/dist/projects/graph.js +334 -23
  352. package/dist/projects/graph.js.map +1 -1
  353. package/dist/projects/repo-watch.d.ts +2 -2
  354. package/dist/projects/repo-watch.d.ts.map +1 -1
  355. package/dist/projects/repo-watch.js +26 -9
  356. package/dist/projects/repo-watch.js.map +1 -1
  357. package/dist/projects/routes.d.ts +2 -0
  358. package/dist/projects/routes.d.ts.map +1 -1
  359. package/dist/projects/routes.js +50 -1
  360. package/dist/projects/routes.js.map +1 -1
  361. package/dist/projects/state-home-registry.d.ts.map +1 -1
  362. package/dist/projects/state-home-registry.js +3 -0
  363. package/dist/projects/state-home-registry.js.map +1 -1
  364. package/dist/projects/state-home.d.ts +7 -0
  365. package/dist/projects/state-home.d.ts.map +1 -1
  366. package/dist/projects/state-home.js +11 -0
  367. package/dist/projects/state-home.js.map +1 -1
  368. package/dist/qe/author-workflow.d.ts +4 -0
  369. package/dist/qe/author-workflow.d.ts.map +1 -1
  370. package/dist/qe/author-workflow.js +4 -0
  371. package/dist/qe/author-workflow.js.map +1 -1
  372. package/dist/qe/test-sets.d.ts +4 -5
  373. package/dist/qe/test-sets.d.ts.map +1 -1
  374. package/dist/qe/test-sets.js +2 -1
  375. package/dist/qe/test-sets.js.map +1 -1
  376. package/dist/schedules/scheduler.d.ts +40 -1
  377. package/dist/schedules/scheduler.d.ts.map +1 -1
  378. package/dist/schedules/scheduler.js +175 -13
  379. package/dist/schedules/scheduler.js.map +1 -1
  380. package/dist/schedules/store.d.ts +20 -0
  381. package/dist/schedules/store.d.ts.map +1 -1
  382. package/dist/schedules/store.js +17 -0
  383. package/dist/schedules/store.js.map +1 -1
  384. package/dist/sources/ask.d.ts.map +1 -1
  385. package/dist/sources/ask.js +12 -12
  386. package/dist/sources/ask.js.map +1 -1
  387. package/dist/sources/dialer.d.ts +6 -1
  388. package/dist/sources/dialer.d.ts.map +1 -1
  389. package/dist/sources/dialer.js +53 -31
  390. package/dist/sources/dialer.js.map +1 -1
  391. package/dist/sources/drivers/mysql.d.ts +2 -0
  392. package/dist/sources/drivers/mysql.d.ts.map +1 -1
  393. package/dist/sources/drivers/mysql.js +18 -2
  394. package/dist/sources/drivers/mysql.js.map +1 -1
  395. package/dist/sources/drivers/postgres.d.ts +2 -0
  396. package/dist/sources/drivers/postgres.d.ts.map +1 -1
  397. package/dist/sources/drivers/postgres.js +10 -3
  398. package/dist/sources/drivers/postgres.js.map +1 -1
  399. package/dist/sources/drivers/sqlite.d.ts +22 -5
  400. package/dist/sources/drivers/sqlite.d.ts.map +1 -1
  401. package/dist/sources/drivers/sqlite.js +10 -9
  402. package/dist/sources/drivers/sqlite.js.map +1 -1
  403. package/dist/sources/drivers/types.d.ts +3 -1
  404. package/dist/sources/drivers/types.d.ts.map +1 -1
  405. package/dist/sources/drivers/types.js +3 -1
  406. package/dist/sources/drivers/types.js.map +1 -1
  407. package/dist/sources/routes.js +1 -1
  408. package/dist/sources/routes.js.map +1 -1
  409. package/dist/sources/uploads.d.ts +2 -15
  410. package/dist/sources/uploads.d.ts.map +1 -1
  411. package/dist/sources/uploads.js +30 -440
  412. package/dist/sources/uploads.js.map +1 -1
  413. package/dist/standing-orders/history.d.ts +5 -3
  414. package/dist/standing-orders/history.d.ts.map +1 -1
  415. package/dist/standing-orders/history.js +6 -2
  416. package/dist/standing-orders/history.js.map +1 -1
  417. package/dist/standing-orders/parse.js +1 -1
  418. package/dist/standing-orders/parse.js.map +1 -1
  419. package/dist/studio/apps-standalone/fixture.js +3 -3
  420. package/dist/studio/apps-standalone/runtime.js +1 -1
  421. package/dist/studio/assets/{KnowledgeGraph-JfsMExo3.js → KnowledgeGraph-dfq7Flyj.js} +1 -1
  422. package/dist/studio/assets/index-Bame65hj.js +1108 -0
  423. package/dist/studio/assets/index-CtB1BJRI.css +32 -0
  424. package/dist/studio/editors/wicked-apps/editor.json +1 -1
  425. package/dist/studio/editors/wicked-apps/index.html +2 -2
  426. package/dist/studio/editors/wicked-deck/editor.json +1 -1
  427. package/dist/studio/editors/wicked-deck/index.html +14 -14
  428. package/dist/studio/editors/wicked-doc/editor.json +1 -1
  429. package/dist/studio/editors/wicked-doc/index.html +12 -12
  430. package/dist/studio/editors/wicked-insights/editor.json +1 -1
  431. package/dist/studio/editors/wicked-insights/index.html +2 -2
  432. package/dist/studio/editors/wicked-page/editor.json +1 -1
  433. package/dist/studio/editors/wicked-page/index.html +12 -12
  434. package/dist/studio/editors/wicked-video/editor.json +1 -1
  435. package/dist/studio/editors/wicked-video/index.html +10 -10
  436. package/dist/studio/index.html +2 -2
  437. package/dist/studio/testid-inventory.json +432 -11
  438. package/dist/team/routes.d.ts +11 -1
  439. package/dist/team/routes.d.ts.map +1 -1
  440. package/dist/team/routes.js +6 -3
  441. package/dist/team/routes.js.map +1 -1
  442. package/dist/workflow-catalog/catalog-data-v2.d.ts +6 -2
  443. package/dist/workflow-catalog/catalog-data-v2.d.ts.map +1 -1
  444. package/dist/workflow-catalog/catalog-data-v2.js.map +1 -1
  445. package/dist/workflow-catalog/shape.d.ts +1 -1
  446. package/dist/working-doc/event-lines.d.ts +11 -0
  447. package/dist/working-doc/event-lines.d.ts.map +1 -1
  448. package/dist/working-doc/event-lines.js +32 -5
  449. package/dist/working-doc/event-lines.js.map +1 -1
  450. package/dist/working-doc/notes-index.d.ts.map +1 -1
  451. package/dist/working-doc/notes-index.js +2 -2
  452. package/dist/working-doc/notes-index.js.map +1 -1
  453. package/endpoint-manifest.json +114 -6
  454. package/evals/corpora/shape-v1.json +1 -1
  455. package/package.json +4 -4
  456. package/runners/sqlite-runner.mjs +28 -11
  457. package/runners/upload-parse.d.mts +13 -0
  458. package/runners/upload-parse.mjs +364 -0
  459. package/workflows/distill-learnings.json +2 -2
  460. package/dist/studio/assets/index-CkosDNYp.css +0 -32
  461. package/dist/studio/assets/index-pq0QeOmo.js +0 -1109
@@ -14,9 +14,9 @@
14
14
  * of the daemon's other trail-hydrated indexes (`RunTimingIndex`, `GuidanceIndex`: every run, for the daemon's life);
15
15
  * a global eviction and read-back was tried and dropped in xreview r4 (it lost live answers and thrashed the trail).
16
16
  */
17
- import { NOTE_ACTIONS, personNotes } from './event-lines.js';
17
+ import { NOTE_ACTIONS, notedActor, personNotes } from './event-lines.js';
18
18
  export const NOTES_PER_RUN = 160;
19
- const relevant = (e) => typeof e.runId === 'string' && e.runId !== '' && e.actor?.kind === 'human' && NOTE_ACTIONS.has(e.action) && typeof e.ts === 'number';
19
+ const relevant = (e) => typeof e.runId === 'string' && e.runId !== '' && notedActor(e) && NOTE_ACTIONS.has(e.action) && typeof e.ts === 'number';
20
20
  /** One record's identity while the start-up read and live entries are merged (never kept after). */
21
21
  const keyOf = (e) => JSON.stringify([e.runId, e.ts, e.action, typeof e.actor?.id === 'string' ? e.actor.id : null, e.detail ?? null]);
22
22
  export class PersonNotesIndex {
@@ -1 +1 @@
1
- {"version":3,"file":"notes-index.js","sourceRoot":"","sources":["../../src/working-doc/notes-index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,YAAY,EAAE,WAAW,EAAmC,MAAM,kBAAkB,CAAC;AAE9F,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAC;AAEjC,MAAM,QAAQ,GAAG,CAAC,CAAY,EAAsC,EAAE,CACpE,OAAO,CAAC,CAAC,KAAK,KAAK,QAAQ,IAAI,CAAC,CAAC,KAAK,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,IAAI,KAAK,OAAO,IAAI,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,EAAE,KAAK,QAAQ,CAAC;AAEvI,oGAAoG;AACpG,MAAM,KAAK,GAAG,CAAC,CAAY,EAAU,EAAE,CACrC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC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AC,KAAK,CAAC,IAAI,EAAE,CAAC;IACrC,CAAC;IAEO,IAAI,CAAC,CAAgC;QAC3C,MAAM,KAAK,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,KAAK,CAAC;QACrC,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,IAAI,KAAK,SAAS;YAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;;YAClD,IAAI,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,CAAC;QACzB,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAE,CAAC;QACtC,IAAI,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM;YAAE,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;QACzE,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 1,
3
- "apiTypesVersion": "0.214.0",
3
+ "apiTypesVersion": "0.223.0",
4
4
  "endpoints": [
5
5
  {
6
6
  "method": "GET",
@@ -141,6 +141,18 @@
141
141
  503
142
142
  ]
143
143
  },
144
+ {
145
+ "method": "GET",
146
+ "path": "/api/v1/apps/:app/calls",
147
+ "requestType": null,
148
+ "responseType": "AppCallRecordsResponse",
149
+ "statusCodes": [
150
+ 200,
151
+ 403,
152
+ 404,
153
+ 501
154
+ ]
155
+ },
144
156
  {
145
157
  "method": "POST",
146
158
  "path": "/api/v1/apps/:app/edits",
@@ -423,6 +435,7 @@
423
435
  403,
424
436
  404,
425
437
  409,
438
+ 410,
426
439
  500,
427
440
  501
428
441
  ]
@@ -441,7 +454,8 @@
441
454
  "responseType": "ChatDetailResponse",
442
455
  "statusCodes": [
443
456
  200,
444
- 400
457
+ 400,
458
+ 404
445
459
  ]
446
460
  },
447
461
  {
@@ -466,6 +480,7 @@
466
480
  200,
467
481
  400,
468
482
  404,
483
+ 409,
469
484
  501,
470
485
  502
471
486
  ]
@@ -513,6 +528,7 @@
513
528
  403,
514
529
  404,
515
530
  409,
531
+ 422,
516
532
  502
517
533
  ]
518
534
  },
@@ -847,6 +863,7 @@
847
863
  "statusCodes": [
848
864
  200,
849
865
  400,
866
+ 409,
850
867
  501
851
868
  ]
852
869
  },
@@ -1074,6 +1091,25 @@
1074
1091
  400
1075
1092
  ]
1076
1093
  },
1094
+ {
1095
+ "method": "GET",
1096
+ "path": "/api/v1/maintenance",
1097
+ "requestType": null,
1098
+ "responseType": "MaintenanceState",
1099
+ "statusCodes": [
1100
+ 200
1101
+ ]
1102
+ },
1103
+ {
1104
+ "method": "POST",
1105
+ "path": "/api/v1/maintenance",
1106
+ "requestType": "MaintenanceRequest",
1107
+ "responseType": "MaintenanceState",
1108
+ "statusCodes": [
1109
+ 200,
1110
+ 400
1111
+ ]
1112
+ },
1077
1113
  {
1078
1114
  "method": "POST",
1079
1115
  "path": "/api/v1/mcp-inspect/sessions",
@@ -1321,6 +1357,7 @@
1321
1357
  "responseType": "McpServerTestResponse | McpServerTestAgentResponse",
1322
1358
  "statusCodes": [
1323
1359
  200,
1360
+ 403,
1324
1361
  404,
1325
1362
  409,
1326
1363
  503
@@ -1364,6 +1401,7 @@
1364
1401
  400,
1365
1402
  403,
1366
1403
  404,
1404
+ 409,
1367
1405
  503
1368
1406
  ]
1369
1407
  },
@@ -1632,6 +1670,31 @@
1632
1670
  503
1633
1671
  ]
1634
1672
  },
1673
+ {
1674
+ "method": "GET",
1675
+ "path": "/api/v1/projects/:id/graph/boundaries",
1676
+ "requestType": null,
1677
+ "responseType": "ProjectGraphBoundaries",
1678
+ "statusCodes": [
1679
+ 200,
1680
+ 404,
1681
+ 501,
1682
+ 503
1683
+ ]
1684
+ },
1685
+ {
1686
+ "method": "GET",
1687
+ "path": "/api/v1/projects/:id/graph/path",
1688
+ "requestType": null,
1689
+ "responseType": "ProjectGraphPath",
1690
+ "statusCodes": [
1691
+ 200,
1692
+ 400,
1693
+ 404,
1694
+ 501,
1695
+ 503
1696
+ ]
1697
+ },
1635
1698
  {
1636
1699
  "method": "POST",
1637
1700
  "path": "/api/v1/projects/:id/graph/refresh",
@@ -1910,6 +1973,18 @@
1910
1973
  503
1911
1974
  ]
1912
1975
  },
1976
+ {
1977
+ "method": "DELETE",
1978
+ "path": "/api/v1/repos/:id",
1979
+ "requestType": null,
1980
+ "responseType": "UnregisterRepoResponse",
1981
+ "statusCodes": [
1982
+ 200,
1983
+ 404,
1984
+ 409,
1985
+ 501
1986
+ ]
1987
+ },
1913
1988
  {
1914
1989
  "method": "GET",
1915
1990
  "path": "/api/v1/repos/:id/contributors",
@@ -2075,7 +2150,8 @@
2075
2150
  404,
2076
2151
  409,
2077
2152
  422,
2078
- 501
2153
+ 501,
2154
+ 503
2079
2155
  ]
2080
2156
  },
2081
2157
  {
@@ -2283,7 +2359,8 @@
2283
2359
  400,
2284
2360
  404,
2285
2361
  409,
2286
- 501
2362
+ 501,
2363
+ 503
2287
2364
  ]
2288
2365
  },
2289
2366
  {
@@ -2360,6 +2437,18 @@
2360
2437
  "responseType": null,
2361
2438
  "statusCodes": []
2362
2439
  },
2440
+ {
2441
+ "method": "GET",
2442
+ "path": "/api/v1/runs/:id/pr",
2443
+ "requestType": null,
2444
+ "responseType": "RunPullRequest",
2445
+ "statusCodes": [
2446
+ 200,
2447
+ 404,
2448
+ 409,
2449
+ 500
2450
+ ]
2451
+ },
2363
2452
  {
2364
2453
  "method": "POST",
2365
2454
  "path": "/api/v1/runs/:id/reassign",
@@ -2372,6 +2461,19 @@
2372
2461
  409
2373
2462
  ]
2374
2463
  },
2464
+ {
2465
+ "method": "POST",
2466
+ "path": "/api/v1/runs/:id/redeliver",
2467
+ "requestType": null,
2468
+ "responseType": "RedeliverRunResult",
2469
+ "statusCodes": [
2470
+ 200,
2471
+ 404,
2472
+ 409,
2473
+ 500,
2474
+ 501
2475
+ ]
2476
+ },
2375
2477
  {
2376
2478
  "method": "POST",
2377
2479
  "path": "/api/v1/runs/:id/reshape",
@@ -2402,9 +2504,15 @@
2402
2504
  {
2403
2505
  "method": "POST",
2404
2506
  "path": "/api/v1/runs/:id/resume",
2405
- "requestType": null,
2507
+ "requestType": "ResumeRequest",
2406
2508
  "responseType": null,
2407
- "statusCodes": []
2509
+ "statusCodes": [
2510
+ 200,
2511
+ 400,
2512
+ 404,
2513
+ 409,
2514
+ 503
2515
+ ]
2408
2516
  },
2409
2517
  {
2410
2518
  "method": "POST",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$comment": "DES-CATALOG-002 §9 detection corpus v1 (synthetic, real-looking; no client content). expect.card[:option] is the shape a person would launch; expect.ask lists the acceptable shapes when the right answer is to ask ONE question; expect.coming names a coming card and expect.nearest the card offered today. kind: clear | variant | combined | ambiguous | coming | depth | context | adversarial. expect.depth is scored apart (depth is a brief line, never a plan change). adversarial cases carry an instruction aimed at the classifier inside the person's words; the expected shape is the real ask. The nearest card for a coming card is catalog data (cards.json `nearest`), not a detection output. planChanging marks a case whose variant selects a different preset (a wrong option there is a wrong plan, not a wrong brief line). Lane D (cat2-crew-detect) adds w1-w15 (every option at least 2 cases) and z5-z8 (adversarial: an option substituted within a card; an instruction inside quoted chat or a pasted document); their seat answers were recorded the same way as spike 2's (prompt2's header, pi, no tools, high thinking, blind). w16-w19 (review round 1): an outcome asked of another job's subject (a plan of an upgrade, a review of a migration, an explanation) and a depth stated in words; recorded the same way. w20 (review round 2): a plan asked of a review, recorded the same way. CS8 (DES-CATALOG-002 rev 8, the catalog flip): the coming cases are relabelled to the live cards (i8, i9, i10, a10, j15, c17, c18, c19, e1, e2); sp3 becomes ambiguous, because the phase option is now a Job details section and a custom step that runs a check is post-mvp; x10 names Rework's re-audience option; v12 stays coming (tune is deferred). y1-y31 cover the newly launchable cards and options (>= 3 cases a card, >= 2 an option, an ambiguous case for respond and studio-plugin). Their seat answers, and the relabelled cases', were recorded the same way as spike 2's (prompt2's header with the flipped catalog; pi, no tools, high thinking, blind). rc1-rc8 (fix-catalog, e2e-1105 CJ7): a cost question routes to the run cost model, not to the work it names; rc6 and rc7 keep a bug whose subject is a cost a bug, and rc8 keeps past spend with Review recent work.",
2
+ "$comment": "DES-CATALOG-002 §9 detection corpus v1 (synthetic, real-looking; no client content). expect.card[:option] is the shape a person would launch; expect.ask lists the acceptable shapes when the right answer is to ask ONE question; expect.coming names a coming card and expect.nearest the card offered today. kind: clear | variant | combined | ambiguous | coming | depth | context | adversarial. expect.depth is scored apart (depth is a brief line, never a plan change). adversarial cases carry an instruction aimed at the classifier inside the person's words; the expected shape is the real ask. The nearest card for a coming card is catalog data (catalog-data-v2.ts `nearest`), not a detection output. planChanging marks a case whose variant selects a different preset (a wrong option there is a wrong plan, not a wrong brief line). Lane D (cat2-crew-detect) adds w1-w15 (every option at least 2 cases) and z5-z8 (adversarial: an option substituted within a card; an instruction inside quoted chat or a pasted document); their seat answers were recorded the same way as spike 2's (prompt2's header, pi, no tools, high thinking, blind). w16-w19 (review round 1): an outcome asked of another job's subject (a plan of an upgrade, a review of a migration, an explanation) and a depth stated in words; recorded the same way. w20 (review round 2): a plan asked of a review, recorded the same way. CS8 (DES-CATALOG-002 rev 8, the catalog flip): the coming cases are relabelled to the live cards (i8, i9, i10, a10, j15, c17, c18, c19, e1, e2); sp3 becomes ambiguous, because the phase option is now a Job details section and a custom step that runs a check is post-mvp; x10 names Rework's re-audience option; v12 stays coming (tune is deferred). y1-y31 cover the newly launchable cards and options (>= 3 cases a card, >= 2 an option, an ambiguous case for respond and studio-plugin). Their seat answers, and the relabelled cases', were recorded the same way as spike 2's (prompt2's header with the flipped catalog; pi, no tools, high thinking, blind). rc1-rc8 (fix-catalog, e2e-1105 CJ7): a cost question routes to the run cost model, not to the work it names; rc6 and rc7 keep a bug whose subject is a cost a bug, and rc8 keeps past spend with Review recent work.",
3
3
  "cases": [
4
4
  {
5
5
  "id": "p1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-crew",
3
- "version": "0.18.18",
3
+ "version": "0.18.20",
4
4
  "description": "The harness for the coding agents you already use: runs Claude Code, Codex, GitHub Copilot, OpenCode and Pi in sandboxes. By default a different agent reviews the work, and built-in feature, bug-fix, migration, MCP-server and editor-plugin jobs are acceptance-tested before delivery unless a labelled waiver or skip says otherwise. It also connects your databases, files, APIs and issue trackers for apps you build by chat, and agents read a database only through one data gate.",
5
5
  "keywords": [
6
6
  "coding-agents",
@@ -64,7 +64,7 @@
64
64
  "mysql2": "^3.24.6",
65
65
  "postgres": "^3.4.9",
66
66
  "smol-toml": "^1.9.1",
67
- "wicked-core-ts": "^0.15.46",
67
+ "wicked-core-ts": "^0.15.48",
68
68
  "wicked-ledger": "^0.6.1",
69
69
  "wicked-vault": "^0.8.0",
70
70
  "yaml": "^2.4.2",
@@ -81,8 +81,8 @@
81
81
  "undici": "^6.28.1",
82
82
  "vitest": "^5.0.2",
83
83
  "wicked-bus": "^2.5.0",
84
- "wicked-crew-api-types": "^0.214.0",
85
- "wicked-studio": "^0.16.14"
84
+ "wicked-crew-api-types": "^0.223.0",
85
+ "wicked-studio": "^0.16.16"
86
86
  },
87
87
  "engines": {
88
88
  "node": ">=22.12.0"
@@ -1,9 +1,11 @@
1
1
  // The SQLite snapshot runner (DES-APPS-001 §5.1, §5.3, §7.5): one JSON request on stdin, one JSON
2
2
  // answer on stdout. crew starts it as a CHILD PROCESS (packages/crew/src/sources/drivers/sqlite.ts):
3
3
  // the daemon itself never loads a SQLite library (wicked-core#631), and a statement past its deadline
4
- // is stopped by ending this process (node:sqlite has no interrupt). Plain ESM, no imports but node:sqlite.
4
+ // is stopped by ending this process (node:sqlite has no interrupt). Plain ESM outside the daemon.
5
5
  // It lives outside src/ on purpose: it is not daemon code, and the daemon's SQLite guards scan src/.
6
6
  import { DatabaseSync, constants } from 'node:sqlite';
7
+ import { readFile } from 'node:fs/promises';
8
+ import { parseCsv, parseXlsx, detectHeader, columnNames, inferType, tableNameFor } from './upload-parse.mjs';
7
9
  // One UTF-8 decoder for the whole request: a character split across two pipe chunks stays one.
8
10
  process.stdin.setEncoding('utf8');
9
11
  let input = '';
@@ -16,21 +18,33 @@ try {
16
18
  if (typeof DatabaseSync.prototype.setAuthorizer !== 'function' || typeof DatabaseSync.prototype.enableDefensive !== 'function') {
17
19
  throw new Error('SQLite sources need Node.js 24.12, 25.1 or later (the authorizer and defensive mode)');
18
20
  }
19
- if (req.op === 'create') {
20
- // A new snapshot from parsed rows (uploads.ts): one table, typed columns, one transaction.
21
+ if (req.op === 'ingest') {
22
+ // Parsing and inference share the snapshot writer's killable process (crew#1289).
23
+ const data = await readFile(req.input);
24
+ const rows = req.kind === 'xlsx' ? parseXlsx(data, req.limits) : parseCsv(data.toString('utf8').replace(/^/, ''), req.limits);
25
+ if (rows.length === 0) throw { code: 'empty', message: 'the file has no rows' };
26
+ const detected = detectHeader(rows, req.header);
27
+ const width = rows.reduce((w, r) => Math.max(w, r.length), 0);
28
+ const names = columnNames(rows[0], width, detected);
29
+ const body = detected ? rows.slice(1) : rows;
30
+ if (body.length > req.limits.rows) throw { code: 'too_many_rows', message: `the file has more than ${req.limits.rows} rows` };
31
+ const types = names.map((_n, i) => inferType((function* () {
32
+ for (const r of body) yield r[i] ?? '';
33
+ })()));
34
+ const table = tableNameFor(req.filename);
21
35
  const quote = (n) => '"' + String(n).replace(/"/g, '""') + '"';
22
36
  const w = new DatabaseSync(req.path, { enableForeignKeyConstraints: false, enableDoubleQuotedStringLiterals: false, allowExtension: false });
23
37
  try {
24
- w.exec('CREATE TABLE ' + quote(req.table) + ' (' + req.names.map((n, i) => quote(n) + ' ' + req.types[i]).join(', ') + ')');
25
- const ins = w.prepare('INSERT INTO ' + quote(req.table) + ' VALUES (' + req.names.map(() => '?').join(', ') + ')');
38
+ w.exec('CREATE TABLE ' + quote(table) + ' (' + names.map((n, i) => quote(n) + ' ' + types[i]).join(', ') + ')');
39
+ const ins = w.prepare('INSERT INTO ' + quote(table) + ' VALUES (' + names.map(() => '?').join(', ') + ')');
26
40
  w.exec('BEGIN');
27
- for (const r of req.rows) {
28
- ins.run(...req.names.map((_n, i) => {
41
+ for (const r of body) {
42
+ ins.run(...names.map((_n, i) => {
29
43
  const raw = r[i] ?? '';
30
44
  const v = raw.trim();
31
45
  if (v === '') return null;
32
- if (req.types[i] === 'INTEGER') return BigInt(v);
33
- if (req.types[i] === 'REAL') return Number(v);
46
+ if (types[i] === 'INTEGER') return BigInt(v);
47
+ if (types[i] === 'REAL') return Number(v);
34
48
  return raw;
35
49
  }));
36
50
  }
@@ -38,7 +52,9 @@ try {
38
52
  } finally {
39
53
  w.close();
40
54
  }
41
- out({ ok: true });
55
+ // Exit only once the answer is written: a pipe write is async on macOS, and an exit before it drains cuts
56
+ // anything past 64 KiB (a wide 20-row preview) (crew#1721 coord r1).
57
+ await new Promise((done) => process.stdout.write(JSON.stringify({ ok: true, table, header: { detected, columns: names }, sample: body.slice(0, req.limits.sampleRows).map((r) => names.map((_n, i) => r[i] ?? '')) }), done));
42
58
  process.exit(0);
43
59
  }
44
60
  const db = new DatabaseSync(req.uri, { readOnly: true, enableForeignKeyConstraints: false, enableDoubleQuotedStringLiterals: false, allowExtension: false });
@@ -106,5 +122,6 @@ try {
106
122
  }
107
123
  }
108
124
  } catch (e) {
109
- out({ ok: false, error: String(e && e.message || e) });
125
+ const refused = !(e instanceof Error) && typeof e?.code === 'string';
126
+ out({ ok: false, ...(refused ? { refused: true, code: e.code } : {}), error: String(e && e.message || e) });
110
127
  }
@@ -0,0 +1,13 @@
1
+ /** Limits are supplied by the daemon's UPLOAD_LIMITS (crew#1289). */
2
+ export interface UploadParseLimits {
3
+ readonly expandedBytes: number;
4
+ readonly rows: number;
5
+ readonly columns: number;
6
+ }
7
+ export function parseCsv(text: string, limits: UploadParseLimits): string[][];
8
+ export function parseXlsx(data: Buffer, limits: UploadParseLimits): string[][];
9
+ export function detectHeader(rows: readonly string[][], choice: 'yes' | 'no' | null): boolean;
10
+ export function looksLikeHeader(first: readonly string[]): boolean;
11
+ export function columnNames(first: readonly string[], width: number, header: boolean): string[];
12
+ export function inferType(values: Iterable<string>): 'INTEGER' | 'REAL' | 'TEXT';
13
+ export function tableNameFor(filename: string): string;