@stringsync/splates 0.0.60 → 1.13.3

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 (734) hide show
  1. package/README.md +2 -2
  2. package/artifact.d.ts +2 -2
  3. package/blockers.d.ts +1 -1
  4. package/config.d.ts +12 -0
  5. package/config.js +0 -0
  6. package/creds.d.ts +2 -2
  7. package/evals.d.ts +2 -2
  8. package/flags.d.ts +4 -4
  9. package/handoff.d.ts +3 -4
  10. package/hook.d.ts +2 -2
  11. package/index.js +108 -108
  12. package/lane.d.ts +2 -2
  13. package/mirror.d.ts +14 -0
  14. package/mirror.js +22 -0
  15. package/package.json +12 -4
  16. package/projects.d.ts +2 -2
  17. package/queue.d.ts +2 -2
  18. package/replica.d.ts +2 -2
  19. package/server.d.ts +2 -2
  20. package/setup.d.ts +2 -2
  21. package/ship.d.ts +2 -2
  22. package/slots.d.ts +2 -2
  23. package/splates.d.ts +2 -2
  24. package/task.d.ts +2 -2
  25. package/tunnel.d.ts +2 -2
  26. package/vendor/@stringsync/splates-server/LICENSE +21 -0
  27. package/vendor/@stringsync/splates-server/age.d.ts +2 -0
  28. package/vendor/@stringsync/splates-server/agents/acp-extensions.d.ts +92 -0
  29. package/vendor/@stringsync/splates-server/agents/agents.d.ts +19 -0
  30. package/vendor/@stringsync/splates-server/agents/compaction.d.ts +17 -0
  31. package/vendor/@stringsync/splates-server/agents/connection.d.ts +191 -0
  32. package/vendor/@stringsync/splates-server/agents/errors.d.ts +8 -0
  33. package/vendor/@stringsync/splates-server/agents/fold.d.ts +45 -0
  34. package/vendor/@stringsync/splates-server/agents/index.d.ts +16 -0
  35. package/vendor/@stringsync/splates-server/agents/index.js +60 -0
  36. package/vendor/@stringsync/splates-server/agents/process.d.ts +67 -0
  37. package/vendor/@stringsync/splates-server/agents/scratch.d.ts +7 -0
  38. package/vendor/@stringsync/splates-server/agents/shared-browser.d.ts +47 -0
  39. package/vendor/@stringsync/splates-server/agents/start-lock.d.ts +24 -0
  40. package/vendor/@stringsync/splates-server/agents/stream.d.ts +91 -0
  41. package/vendor/@stringsync/splates-server/agents/tool-calls.d.ts +18 -0
  42. package/vendor/@stringsync/splates-server/agents/watch.d.ts +46 -0
  43. package/vendor/@stringsync/splates-server/agents/watched.d.ts +43 -0
  44. package/vendor/@stringsync/splates-server/artifacts/artifact.d.ts +33 -0
  45. package/vendor/@stringsync/splates-server/artifacts/artifacts.d.ts +162 -0
  46. package/vendor/@stringsync/splates-server/artifacts/attach.d.ts +31 -0
  47. package/vendor/@stringsync/splates-server/artifacts/attachments.d.ts +50 -0
  48. package/vendor/@stringsync/splates-server/artifacts/index.d.ts +8 -0
  49. package/vendor/@stringsync/splates-server/artifacts/index.js +38 -0
  50. package/vendor/@stringsync/splates-server/artifacts/room.d.ts +46 -0
  51. package/vendor/@stringsync/splates-server/artifacts/routes.d.ts +22 -0
  52. package/vendor/@stringsync/splates-server/artifacts/viewers.d.ts +6 -0
  53. package/vendor/@stringsync/splates-server/auto-pick/classes.d.ts +29 -0
  54. package/vendor/@stringsync/splates-server/auto-pick/classify.d.ts +60 -0
  55. package/vendor/@stringsync/splates-server/auto-pick/clef.d.ts +15 -0
  56. package/vendor/@stringsync/splates-server/auto-pick/decide.d.ts +78 -0
  57. package/vendor/@stringsync/splates-server/auto-pick/defaults.d.ts +3 -0
  58. package/vendor/@stringsync/splates-server/auto-pick/follow-up.d.ts +25 -0
  59. package/vendor/@stringsync/splates-server/auto-pick/index.d.ts +24 -0
  60. package/vendor/@stringsync/splates-server/auto-pick/jev.d.ts +38 -0
  61. package/vendor/@stringsync/splates-server/auto-pick/judge.d.ts +21 -0
  62. package/vendor/@stringsync/splates-server/auto-pick/judged.d.ts +33 -0
  63. package/vendor/@stringsync/splates-server/auto-pick/key.d.ts +6 -0
  64. package/vendor/@stringsync/splates-server/auto-pick/lift.d.ts +18 -0
  65. package/vendor/@stringsync/splates-server/auto-pick/queue.d.ts +30 -0
  66. package/vendor/@stringsync/splates-server/auto-pick/rank.d.ts +10 -0
  67. package/vendor/@stringsync/splates-server/auto-pick/record.d.ts +19 -0
  68. package/vendor/@stringsync/splates-server/auto-pick/routes.d.ts +25 -0
  69. package/vendor/@stringsync/splates-server/auto-pick/rule-names.d.ts +9 -0
  70. package/vendor/@stringsync/splates-server/auto-pick/rules-routes.d.ts +49 -0
  71. package/vendor/@stringsync/splates-server/auto-pick/rules.d.ts +97 -0
  72. package/vendor/@stringsync/splates-server/auto-pick/start.d.ts +79 -0
  73. package/vendor/@stringsync/splates-server/auto-pick/store.d.ts +25 -0
  74. package/vendor/@stringsync/splates-server/auto-pick/system-one.d.ts +60 -0
  75. package/vendor/@stringsync/splates-server/auto-pick/trial.d.ts +32 -0
  76. package/vendor/@stringsync/splates-server/board/backlog.d.ts +4 -0
  77. package/vendor/@stringsync/splates-server/board/blocked-warning.d.ts +7 -0
  78. package/vendor/@stringsync/splates-server/board/browser.d.ts +8 -0
  79. package/vendor/@stringsync/splates-server/board/change-lane.d.ts +12 -0
  80. package/vendor/@stringsync/splates-server/board/deferral.d.ts +87 -0
  81. package/vendor/@stringsync/splates-server/board/elsewhere-links.d.ts +26 -0
  82. package/vendor/@stringsync/splates-server/board/elsewhere.d.ts +119 -0
  83. package/vendor/@stringsync/splates-server/board/index.d.ts +21 -0
  84. package/vendor/@stringsync/splates-server/board/index.js +112 -0
  85. package/vendor/@stringsync/splates-server/board/lane.d.ts +69 -0
  86. package/vendor/@stringsync/splates-server/board/lanes-from-tags.d.ts +17 -0
  87. package/vendor/@stringsync/splates-server/board/lanes.d.ts +117 -0
  88. package/vendor/@stringsync/splates-server/board/routes.d.ts +54 -0
  89. package/vendor/@stringsync/splates-server/board/store.d.ts +74 -0
  90. package/vendor/@stringsync/splates-server/board/task-edit.d.ts +81 -0
  91. package/vendor/@stringsync/splates-server/board/task-file.d.ts +24 -0
  92. package/vendor/@stringsync/splates-server/board/task-journal.d.ts +9 -0
  93. package/vendor/@stringsync/splates-server/board/task-lanes.d.ts +95 -0
  94. package/vendor/@stringsync/splates-server/board/task-list.d.ts +40 -0
  95. package/vendor/@stringsync/splates-server/board/task.d.ts +301 -0
  96. package/vendor/@stringsync/splates-server/board/tasks.d.ts +172 -0
  97. package/vendor/@stringsync/splates-server/chunk-files-jkqj87yx.js +14 -0
  98. package/vendor/@stringsync/splates-server/chunk-maps-mnjqydx4.txt +1 -0
  99. package/vendor/@stringsync/splates-server/chunks-3jkzx1q9.txt +1 -0
  100. package/vendor/@stringsync/splates-server/comma-list.d.ts +2 -0
  101. package/vendor/@stringsync/splates-server/comma-list.js +6 -0
  102. package/vendor/@stringsync/splates-server/config/browser.d.ts +1 -0
  103. package/vendor/@stringsync/splates-server/config/config.d.ts +210 -0
  104. package/vendor/@stringsync/splates-server/config/index.d.ts +6 -0
  105. package/vendor/@stringsync/splates-server/config/index.js +42 -0
  106. package/vendor/@stringsync/splates-server/config/legacy-names.d.ts +70 -0
  107. package/vendor/@stringsync/splates-server/config/legacy-ps.d.ts +32 -0
  108. package/vendor/@stringsync/splates-server/config/load.d.ts +46 -0
  109. package/vendor/@stringsync/splates-server/config/source.d.ts +7 -0
  110. package/vendor/@stringsync/splates-server/config/type-config.d.ts +14 -0
  111. package/vendor/@stringsync/splates-server/conversations/answered.d.ts +7 -0
  112. package/vendor/@stringsync/splates-server/conversations/archive.d.ts +16 -0
  113. package/vendor/@stringsync/splates-server/conversations/background.d.ts +21 -0
  114. package/vendor/@stringsync/splates-server/conversations/browser.d.ts +12 -0
  115. package/vendor/@stringsync/splates-server/conversations/choice.d.ts +8 -0
  116. package/vendor/@stringsync/splates-server/conversations/compact.d.ts +6 -0
  117. package/vendor/@stringsync/splates-server/conversations/conversation.d.ts +420 -0
  118. package/vendor/@stringsync/splates-server/conversations/conversations.d.ts +181 -0
  119. package/vendor/@stringsync/splates-server/conversations/entry.d.ts +286 -0
  120. package/vendor/@stringsync/splates-server/conversations/events.d.ts +36 -0
  121. package/vendor/@stringsync/splates-server/conversations/files.d.ts +62 -0
  122. package/vendor/@stringsync/splates-server/conversations/given.d.ts +18 -0
  123. package/vendor/@stringsync/splates-server/conversations/heard.d.ts +8 -0
  124. package/vendor/@stringsync/splates-server/conversations/host.d.ts +176 -0
  125. package/vendor/@stringsync/splates-server/conversations/index.d.ts +22 -0
  126. package/vendor/@stringsync/splates-server/conversations/index.js +80 -0
  127. package/vendor/@stringsync/splates-server/conversations/listing.d.ts +15 -0
  128. package/vendor/@stringsync/splates-server/conversations/log.d.ts +117 -0
  129. package/vendor/@stringsync/splates-server/conversations/messages.d.ts +23 -0
  130. package/vendor/@stringsync/splates-server/conversations/name.d.ts +38 -0
  131. package/vendor/@stringsync/splates-server/conversations/options.d.ts +87 -0
  132. package/vendor/@stringsync/splates-server/conversations/outside.d.ts +14 -0
  133. package/vendor/@stringsync/splates-server/conversations/reference.d.ts +2 -0
  134. package/vendor/@stringsync/splates-server/conversations/routes.d.ts +109 -0
  135. package/vendor/@stringsync/splates-server/conversations/search.d.ts +15 -0
  136. package/vendor/@stringsync/splates-server/conversations/spent.d.ts +19 -0
  137. package/vendor/@stringsync/splates-server/conversations/state.d.ts +606 -0
  138. package/vendor/@stringsync/splates-server/conversations/stream.d.ts +34 -0
  139. package/vendor/@stringsync/splates-server/conversations/transcript.d.ts +9 -0
  140. package/vendor/@stringsync/splates-server/conversations/tree.d.ts +11 -0
  141. package/vendor/@stringsync/splates-server/conversations/turn-end.d.ts +30 -0
  142. package/vendor/@stringsync/splates-server/conversations/turns.d.ts +134 -0
  143. package/vendor/@stringsync/splates-server/conversations/updates.d.ts +21 -0
  144. package/vendor/@stringsync/splates-server/creds/creds.d.ts +86 -0
  145. package/vendor/@stringsync/splates-server/creds/index.d.ts +6 -0
  146. package/vendor/@stringsync/splates-server/creds/index.js +28 -0
  147. package/vendor/@stringsync/splates-server/creds/key-file.d.ts +21 -0
  148. package/vendor/@stringsync/splates-server/creds/requests.d.ts +54 -0
  149. package/vendor/@stringsync/splates-server/creds/routes.d.ts +16 -0
  150. package/vendor/@stringsync/splates-server/creds/stores.d.ts +37 -0
  151. package/vendor/@stringsync/splates-server/dictate/connection.d.ts +18 -0
  152. package/vendor/@stringsync/splates-server/dictate/dictate.d.ts +16 -0
  153. package/vendor/@stringsync/splates-server/dictate/index.d.ts +4 -0
  154. package/vendor/@stringsync/splates-server/dictate/personal.d.ts +26 -0
  155. package/vendor/@stringsync/splates-server/dictate/transcriber.d.ts +16 -0
  156. package/vendor/@stringsync/splates-server/dictate/vocabulary.d.ts +12 -0
  157. package/vendor/@stringsync/splates-server/evals/agents-routes.d.ts +27 -0
  158. package/vendor/@stringsync/splates-server/evals/agents.d.ts +25 -0
  159. package/vendor/@stringsync/splates-server/evals/contract.d.ts +73 -0
  160. package/vendor/@stringsync/splates-server/evals/done.d.ts +11 -0
  161. package/vendor/@stringsync/splates-server/evals/import.d.ts +10 -0
  162. package/vendor/@stringsync/splates-server/evals/index.d.ts +19 -0
  163. package/vendor/@stringsync/splates-server/evals/index.js +40 -0
  164. package/vendor/@stringsync/splates-server/evals/inspect.d.ts +66 -0
  165. package/vendor/@stringsync/splates-server/evals/launch-routes.d.ts +39 -0
  166. package/vendor/@stringsync/splates-server/evals/launch.d.ts +123 -0
  167. package/vendor/@stringsync/splates-server/evals/routes.d.ts +39 -0
  168. package/vendor/@stringsync/splates-server/evals/store.d.ts +17 -0
  169. package/vendor/@stringsync/splates-server/evals/target.d.ts +3 -0
  170. package/vendor/@stringsync/splates-server/evals/types.d.ts +105 -0
  171. package/vendor/@stringsync/splates-server/exit.d.ts +55 -0
  172. package/vendor/@stringsync/splates-server/exit.js +12 -0
  173. package/vendor/@stringsync/splates-server/git-identity.d.ts +17 -0
  174. package/vendor/@stringsync/splates-server/git-process.d.ts +8 -0
  175. package/vendor/@stringsync/splates-server/git.d.ts +168 -0
  176. package/vendor/@stringsync/splates-server/hooks/commands.d.ts +31 -0
  177. package/vendor/@stringsync/splates-server/hooks/edit.d.ts +24 -0
  178. package/vendor/@stringsync/splates-server/hooks/events.d.ts +20 -0
  179. package/vendor/@stringsync/splates-server/hooks/groomer.d.ts +8 -0
  180. package/vendor/@stringsync/splates-server/hooks/index.d.ts +17 -0
  181. package/vendor/@stringsync/splates-server/hooks/index.js +61 -0
  182. package/vendor/@stringsync/splates-server/hooks/now.d.ts +9 -0
  183. package/vendor/@stringsync/splates-server/hooks/routes.d.ts +39 -0
  184. package/vendor/@stringsync/splates-server/hooks/runner.d.ts +75 -0
  185. package/vendor/@stringsync/splates-server/hooks/runs.d.ts +38 -0
  186. package/vendor/@stringsync/splates-server/hooks/schedule.d.ts +10 -0
  187. package/vendor/@stringsync/splates-server/hooks/scheduler.d.ts +28 -0
  188. package/vendor/@stringsync/splates-server/hooks/store.d.ts +110 -0
  189. package/vendor/@stringsync/splates-server/index-01z7ycdk.js +6 -0
  190. package/vendor/@stringsync/splates-server/index-0jttnv86.js +1309 -0
  191. package/vendor/@stringsync/splates-server/index-5axhdy8c.js +692 -0
  192. package/vendor/@stringsync/splates-server/index-76t8y8h5.js +779 -0
  193. package/vendor/@stringsync/splates-server/index-7s01973c.js +2356 -0
  194. package/vendor/@stringsync/splates-server/index-acbcm66f.js +1468 -0
  195. package/vendor/@stringsync/splates-server/index-caep3sde.js +27140 -0
  196. package/vendor/@stringsync/splates-server/index-e9z7s5hh.js +641 -0
  197. package/vendor/@stringsync/splates-server/index-g18nxyn7.js +99 -0
  198. package/vendor/@stringsync/splates-server/index-kmzdvvt0.js +23 -0
  199. package/vendor/@stringsync/splates-server/index-raqrwzdq.js +952 -0
  200. package/vendor/@stringsync/splates-server/index-t9w5a8ed.js +60 -0
  201. package/vendor/@stringsync/splates-server/limited.d.ts +8 -0
  202. package/vendor/@stringsync/splates-server/log.d.ts +14 -0
  203. package/vendor/@stringsync/splates-server/log.js +32 -0
  204. package/vendor/@stringsync/splates-server/merge/attribution.d.ts +24 -0
  205. package/vendor/@stringsync/splates-server/merge/batch.d.ts +119 -0
  206. package/vendor/@stringsync/splates-server/merge/blame.d.ts +21 -0
  207. package/vendor/@stringsync/splates-server/merge/branches.d.ts +151 -0
  208. package/vendor/@stringsync/splates-server/merge/charge.d.ts +18 -0
  209. package/vendor/@stringsync/splates-server/merge/clear-gate.d.ts +7 -0
  210. package/vendor/@stringsync/splates-server/merge/cores.d.ts +60 -0
  211. package/vendor/@stringsync/splates-server/merge/estimates.d.ts +28 -0
  212. package/vendor/@stringsync/splates-server/merge/finish.d.ts +43 -0
  213. package/vendor/@stringsync/splates-server/merge/follow.d.ts +50 -0
  214. package/vendor/@stringsync/splates-server/merge/gate.d.ts +108 -0
  215. package/vendor/@stringsync/splates-server/merge/github-app.d.ts +99 -0
  216. package/vendor/@stringsync/splates-server/merge/github-refused.d.ts +5 -0
  217. package/vendor/@stringsync/splates-server/merge/groups.d.ts +8 -0
  218. package/vendor/@stringsync/splates-server/merge/index.d.ts +19 -0
  219. package/vendor/@stringsync/splates-server/merge/index.js +46 -0
  220. package/vendor/@stringsync/splates-server/merge/landed.d.ts +28 -0
  221. package/vendor/@stringsync/splates-server/merge/landing.d.ts +38 -0
  222. package/vendor/@stringsync/splates-server/merge/local-landing.d.ts +11 -0
  223. package/vendor/@stringsync/splates-server/merge/merge-state.d.ts +37 -0
  224. package/vendor/@stringsync/splates-server/merge/merge.d.ts +45 -0
  225. package/vendor/@stringsync/splates-server/merge/output.d.ts +19 -0
  226. package/vendor/@stringsync/splates-server/merge/phases.d.ts +27 -0
  227. package/vendor/@stringsync/splates-server/merge/pre-lock.d.ts +28 -0
  228. package/vendor/@stringsync/splates-server/merge/preflight.d.ts +16 -0
  229. package/vendor/@stringsync/splates-server/merge/queue-failures.d.ts +11 -0
  230. package/vendor/@stringsync/splates-server/merge/rebase.d.ts +34 -0
  231. package/vendor/@stringsync/splates-server/merge/recent-failures.d.ts +10 -0
  232. package/vendor/@stringsync/splates-server/merge/refusal.d.ts +58 -0
  233. package/vendor/@stringsync/splates-server/merge/split.d.ts +34 -0
  234. package/vendor/@stringsync/splates-server/merge/steps.d.ts +37 -0
  235. package/vendor/@stringsync/splates-server/merge/test-report.d.ts +29 -0
  236. package/vendor/@stringsync/splates-server/merge/timing.d.ts +20 -0
  237. package/vendor/@stringsync/splates-server/merge/trunk.d.ts +69 -0
  238. package/vendor/@stringsync/splates-server/models/codex-limits.d.ts +19 -0
  239. package/vendor/@stringsync/splates-server/models/effort.d.ts +22 -0
  240. package/vendor/@stringsync/splates-server/models/index.d.ts +13 -0
  241. package/vendor/@stringsync/splates-server/models/index.js +76 -0
  242. package/vendor/@stringsync/splates-server/models/kimi-limits.d.ts +37 -0
  243. package/vendor/@stringsync/splates-server/models/kimi-usage.d.ts +19 -0
  244. package/vendor/@stringsync/splates-server/models/kimi.d.ts +10 -0
  245. package/vendor/@stringsync/splates-server/models/limits.d.ts +32 -0
  246. package/vendor/@stringsync/splates-server/models/models.d.ts +36 -0
  247. package/vendor/@stringsync/splates-server/models/offered.d.ts +47 -0
  248. package/vendor/@stringsync/splates-server/models/opencode-usage.d.ts +37 -0
  249. package/vendor/@stringsync/splates-server/models/roster.d.ts +130 -0
  250. package/vendor/@stringsync/splates-server/plans/asked.d.ts +99 -0
  251. package/vendor/@stringsync/splates-server/plans/browser.d.ts +13 -0
  252. package/vendor/@stringsync/splates-server/plans/decided.d.ts +12 -0
  253. package/vendor/@stringsync/splates-server/plans/demo.d.ts +29 -0
  254. package/vendor/@stringsync/splates-server/plans/index.d.ts +16 -0
  255. package/vendor/@stringsync/splates-server/plans/index.js +137 -0
  256. package/vendor/@stringsync/splates-server/plans/needs.d.ts +131 -0
  257. package/vendor/@stringsync/splates-server/plans/permission.d.ts +64 -0
  258. package/vendor/@stringsync/splates-server/plans/plan.d.ts +223 -0
  259. package/vendor/@stringsync/splates-server/plans/prompts.d.ts +148 -0
  260. package/vendor/@stringsync/splates-server/plans/reply.d.ts +45 -0
  261. package/vendor/@stringsync/splates-server/plans/run-command.d.ts +21 -0
  262. package/vendor/@stringsync/splates-server/plans/store.d.ts +26 -0
  263. package/vendor/@stringsync/splates-server/plans/unanswered.d.ts +15 -0
  264. package/vendor/@stringsync/splates-server/ports/index.d.ts +8 -0
  265. package/vendor/@stringsync/splates-server/ports/index.js +36 -0
  266. package/vendor/@stringsync/splates-server/ports/list.d.ts +22 -0
  267. package/vendor/@stringsync/splates-server/ports/routes.d.ts +64 -0
  268. package/vendor/@stringsync/splates-server/ports/slot-tunnel.d.ts +24 -0
  269. package/vendor/@stringsync/splates-server/ports/slot.d.ts +28 -0
  270. package/vendor/@stringsync/splates-server/ports/slots.d.ts +150 -0
  271. package/vendor/@stringsync/splates-server/ports/socket.d.ts +26 -0
  272. package/vendor/@stringsync/splates-server/ports/task-ports.d.ts +39 -0
  273. package/vendor/@stringsync/splates-server/prices/index.d.ts +2 -0
  274. package/vendor/@stringsync/splates-server/prices/prices.d.ts +65 -0
  275. package/vendor/@stringsync/splates-server/projects/everywhere-routes.d.ts +110 -0
  276. package/vendor/@stringsync/splates-server/projects/everywhere.d.ts +43 -0
  277. package/vendor/@stringsync/splates-server/projects/general.d.ts +4 -0
  278. package/vendor/@stringsync/splates-server/projects/index.d.ts +10 -0
  279. package/vendor/@stringsync/splates-server/projects/index.js +36 -0
  280. package/vendor/@stringsync/splates-server/projects/init.d.ts +28 -0
  281. package/vendor/@stringsync/splates-server/projects/picker.d.ts +64 -0
  282. package/vendor/@stringsync/splates-server/projects/projects.d.ts +155 -0
  283. package/vendor/@stringsync/splates-server/projects/reaches.d.ts +26 -0
  284. package/vendor/@stringsync/splates-server/push/index.d.ts +2 -0
  285. package/vendor/@stringsync/splates-server/push/notices.d.ts +44 -0
  286. package/vendor/@stringsync/splates-server/push/push.d.ts +91 -0
  287. package/vendor/@stringsync/splates-server/queue/commands.d.ts +44 -0
  288. package/vendor/@stringsync/splates-server/queue/index.d.ts +7 -0
  289. package/vendor/@stringsync/splates-server/queue/index.js +44 -0
  290. package/vendor/@stringsync/splates-server/queue/moves.d.ts +15 -0
  291. package/vendor/@stringsync/splates-server/queue/name.d.ts +9 -0
  292. package/vendor/@stringsync/splates-server/queue/order.d.ts +50 -0
  293. package/vendor/@stringsync/splates-server/queue/runner.d.ts +129 -0
  294. package/vendor/@stringsync/splates-server/records/elsewhere.d.ts +27 -0
  295. package/vendor/@stringsync/splates-server/records/events.d.ts +556 -0
  296. package/vendor/@stringsync/splates-server/records/format.d.ts +92 -0
  297. package/vendor/@stringsync/splates-server/records/home.d.ts +72 -0
  298. package/vendor/@stringsync/splates-server/records/index.d.ts +10 -0
  299. package/vendor/@stringsync/splates-server/records/index.js +40 -0
  300. package/vendor/@stringsync/splates-server/records/journal.d.ts +65 -0
  301. package/vendor/@stringsync/splates-server/records/lease-lock.d.ts +29 -0
  302. package/vendor/@stringsync/splates-server/records/migration.d.ts +94 -0
  303. package/vendor/@stringsync/splates-server/records/one-task-store.d.ts +15 -0
  304. package/vendor/@stringsync/splates-server/records/repository.d.ts +137 -0
  305. package/vendor/@stringsync/splates-server/records/task-files.d.ts +8 -0
  306. package/vendor/@stringsync/splates-server/records/task-stages.d.ts +7 -0
  307. package/vendor/@stringsync/splates-server/records/to-sqlite.d.ts +3 -0
  308. package/vendor/@stringsync/splates-server/replica/aws-sign.d.ts +30 -0
  309. package/vendor/@stringsync/splates-server/replica/dir.d.ts +17 -0
  310. package/vendor/@stringsync/splates-server/replica/index.d.ts +14 -0
  311. package/vendor/@stringsync/splates-server/replica/index.js +29 -0
  312. package/vendor/@stringsync/splates-server/replica/layout.d.ts +45 -0
  313. package/vendor/@stringsync/splates-server/replica/place.d.ts +31 -0
  314. package/vendor/@stringsync/splates-server/replica/replica.d.ts +37 -0
  315. package/vendor/@stringsync/splates-server/replica/replicator.d.ts +102 -0
  316. package/vendor/@stringsync/splates-server/replica/restore.d.ts +40 -0
  317. package/vendor/@stringsync/splates-server/replica/s3.d.ts +45 -0
  318. package/vendor/@stringsync/splates-server/replica/shipped.d.ts +2 -0
  319. package/vendor/@stringsync/splates-server/replica/status.d.ts +18 -0
  320. package/vendor/@stringsync/splates-server/server/assets.d.ts +35 -0
  321. package/vendor/@stringsync/splates-server/server/automations.d.ts +26 -0
  322. package/vendor/@stringsync/splates-server/server/chunk-files.d.ts +4 -0
  323. package/vendor/@stringsync/splates-server/server/conflict-watch.d.ts +22 -0
  324. package/vendor/@stringsync/splates-server/server/early-warning.d.ts +7 -0
  325. package/vendor/@stringsync/splates-server/server/general.d.ts +53 -0
  326. package/vendor/@stringsync/splates-server/server/groomer.d.ts +53 -0
  327. package/vendor/@stringsync/splates-server/server/held.d.ts +10 -0
  328. package/vendor/@stringsync/splates-server/server/http.d.ts +76 -0
  329. package/vendor/@stringsync/splates-server/server/index.d.ts +16 -0
  330. package/vendor/@stringsync/splates-server/server/index.js +14342 -0
  331. package/vendor/@stringsync/splates-server/server/interrupt.d.ts +24 -0
  332. package/vendor/@stringsync/splates-server/server/loop-watch.d.ts +12 -0
  333. package/vendor/@stringsync/splates-server/server/migrations.d.ts +46 -0
  334. package/vendor/@stringsync/splates-server/server/options.d.ts +143 -0
  335. package/vendor/@stringsync/splates-server/server/pages.d.ts +35 -0
  336. package/vendor/@stringsync/splates-server/server/ports.d.ts +11 -0
  337. package/vendor/@stringsync/splates-server/server/premerge.d.ts +61 -0
  338. package/vendor/@stringsync/splates-server/server/project-watch.d.ts +94 -0
  339. package/vendor/@stringsync/splates-server/server/project.d.ts +239 -0
  340. package/vendor/@stringsync/splates-server/server/pulse.d.ts +8 -0
  341. package/vendor/@stringsync/splates-server/server/release.d.ts +41 -0
  342. package/vendor/@stringsync/splates-server/server/replicas.d.ts +23 -0
  343. package/vendor/@stringsync/splates-server/server/restart.d.ts +177 -0
  344. package/vendor/@stringsync/splates-server/server/runtime-deps.d.ts +19 -0
  345. package/vendor/@stringsync/splates-server/server/server.d.ts +19 -0
  346. package/vendor/@stringsync/splates-server/server/servers.d.ts +31 -0
  347. package/vendor/@stringsync/splates-server/server/serving.d.ts +28 -0
  348. package/vendor/@stringsync/splates-server/server/shared.d.ts +14 -0
  349. package/vendor/@stringsync/splates-server/server/skills.d.ts +16 -0
  350. package/vendor/@stringsync/splates-server/server/sockets.d.ts +13 -0
  351. package/vendor/@stringsync/splates-server/server/start-settings.d.ts +15 -0
  352. package/vendor/@stringsync/splates-server/server/start.d.ts +21 -0
  353. package/vendor/@stringsync/splates-server/server/suite-grant.d.ts +26 -0
  354. package/vendor/@stringsync/splates-server/server/supervise.d.ts +81 -0
  355. package/vendor/@stringsync/splates-server/server/ticketed-lock.d.ts +80 -0
  356. package/vendor/@stringsync/splates-server/server/update-records.d.ts +8 -0
  357. package/vendor/@stringsync/splates-server/server/update.d.ts +56 -0
  358. package/vendor/@stringsync/splates-server/server/versions.d.ts +53 -0
  359. package/vendor/@stringsync/splates-server/setup/area-auto-pick.d.ts +7 -0
  360. package/vendor/@stringsync/splates-server/setup/area-dictation.d.ts +3 -0
  361. package/vendor/@stringsync/splates-server/setup/area-droplet.d.ts +3 -0
  362. package/vendor/@stringsync/splates-server/setup/area-evals.d.ts +3 -0
  363. package/vendor/@stringsync/splates-server/setup/area-github.d.ts +8 -0
  364. package/vendor/@stringsync/splates-server/setup/area-native.d.ts +7 -0
  365. package/vendor/@stringsync/splates-server/setup/area-opencode.d.ts +5 -0
  366. package/vendor/@stringsync/splates-server/setup/area-remote.d.ts +3 -0
  367. package/vendor/@stringsync/splates-server/setup/area-replica.d.ts +3 -0
  368. package/vendor/@stringsync/splates-server/setup/area-workers.d.ts +5 -0
  369. package/vendor/@stringsync/splates-server/setup/areas.d.ts +7 -0
  370. package/vendor/@stringsync/splates-server/setup/checks.d.ts +8 -0
  371. package/vendor/@stringsync/splates-server/setup/fields.d.ts +69 -0
  372. package/vendor/@stringsync/splates-server/setup/index.d.ts +8 -0
  373. package/vendor/@stringsync/splates-server/setup/index.js +25 -0
  374. package/vendor/@stringsync/splates-server/setup/opencode-model-error.d.ts +3 -0
  375. package/vendor/@stringsync/splates-server/setup/opencode-models.d.ts +44 -0
  376. package/vendor/@stringsync/splates-server/setup/opencode-recipe.d.ts +33 -0
  377. package/vendor/@stringsync/splates-server/setup/opencode-routes.d.ts +17 -0
  378. package/vendor/@stringsync/splates-server/setup/opencode.d.ts +61 -0
  379. package/vendor/@stringsync/splates-server/setup/project.d.ts +10 -0
  380. package/vendor/@stringsync/splates-server/setup/routes.d.ts +31 -0
  381. package/vendor/@stringsync/splates-server/setup/setup.d.ts +235 -0
  382. package/vendor/@stringsync/splates-server/setup/step-problem.d.ts +3 -0
  383. package/vendor/@stringsync/splates-server/setup/undo.d.ts +80 -0
  384. package/vendor/@stringsync/splates-server/ship/approval-watch.d.ts +57 -0
  385. package/vendor/@stringsync/splates-server/ship/approval.d.ts +17 -0
  386. package/vendor/@stringsync/splates-server/ship/cascade-routes.d.ts +25 -0
  387. package/vendor/@stringsync/splates-server/ship/cascade.d.ts +70 -0
  388. package/vendor/@stringsync/splates-server/ship/commands.d.ts +26 -0
  389. package/vendor/@stringsync/splates-server/ship/git.d.ts +31 -0
  390. package/vendor/@stringsync/splates-server/ship/graph.d.ts +60 -0
  391. package/vendor/@stringsync/splates-server/ship/history.d.ts +51 -0
  392. package/vendor/@stringsync/splates-server/ship/index.d.ts +28 -0
  393. package/vendor/@stringsync/splates-server/ship/live.d.ts +40 -0
  394. package/vendor/@stringsync/splates-server/ship/mechanical.d.ts +30 -0
  395. package/vendor/@stringsync/splates-server/ship/npm-terminal.d.ts +14 -0
  396. package/vendor/@stringsync/splates-server/ship/plan.d.ts +90 -0
  397. package/vendor/@stringsync/splates-server/ship/progress.d.ts +3 -0
  398. package/vendor/@stringsync/splates-server/ship/published-notice.d.ts +29 -0
  399. package/vendor/@stringsync/splates-server/ship/record.d.ts +55 -0
  400. package/vendor/@stringsync/splates-server/ship/registry.d.ts +13 -0
  401. package/vendor/@stringsync/splates-server/ship/release-events.d.ts +47 -0
  402. package/vendor/@stringsync/splates-server/ship/release-steps.d.ts +66 -0
  403. package/vendor/@stringsync/splates-server/ship/routes.d.ts +14 -0
  404. package/vendor/@stringsync/splates-server/ship/run.d.ts +132 -0
  405. package/vendor/@stringsync/splates-server/ship/selection.d.ts +36 -0
  406. package/vendor/@stringsync/splates-server/ship/served.d.ts +4 -0
  407. package/vendor/@stringsync/splates-server/ship/stages.d.ts +69 -0
  408. package/vendor/@stringsync/splates-server/ship/steps.d.ts +69 -0
  409. package/vendor/@stringsync/splates-server/ship/token-request.d.ts +11 -0
  410. package/vendor/@stringsync/splates-server/ship/token.d.ts +21 -0
  411. package/vendor/@stringsync/splates-server/spend/adapters.d.ts +5 -0
  412. package/vendor/@stringsync/splates-server/spend/billing.d.ts +38 -0
  413. package/vendor/@stringsync/splates-server/spend/index.d.ts +15 -0
  414. package/vendor/@stringsync/splates-server/spend/plans.d.ts +45 -0
  415. package/vendor/@stringsync/splates-server/spend/providers.d.ts +45 -0
  416. package/vendor/@stringsync/splates-server/spend/rates.d.ts +23 -0
  417. package/vendor/@stringsync/splates-server/spend/report.d.ts +39 -0
  418. package/vendor/@stringsync/splates-server/spend/routes.d.ts +46 -0
  419. package/vendor/@stringsync/splates-server/spend/spend.d.ts +15 -0
  420. package/vendor/@stringsync/splates-server/spend/totals.d.ts +63 -0
  421. package/vendor/@stringsync/splates-server/spend/turn.d.ts +39 -0
  422. package/vendor/@stringsync/splates-server/stats/adherence.d.ts +40 -0
  423. package/vendor/@stringsync/splates-server/stats/baselines.d.ts +55 -0
  424. package/vendor/@stringsync/splates-server/stats/budget-routes.d.ts +21 -0
  425. package/vendor/@stringsync/splates-server/stats/fact-tasks.d.ts +19 -0
  426. package/vendor/@stringsync/splates-server/stats/finding-facts.d.ts +37 -0
  427. package/vendor/@stringsync/splates-server/stats/findings.d.ts +89 -0
  428. package/vendor/@stringsync/splates-server/stats/index.d.ts +12 -0
  429. package/vendor/@stringsync/splates-server/stats/index.js +30 -0
  430. package/vendor/@stringsync/splates-server/stats/landed.d.ts +14 -0
  431. package/vendor/@stringsync/splates-server/stats/outcomes.d.ts +207 -0
  432. package/vendor/@stringsync/splates-server/stats/overrides.d.ts +19 -0
  433. package/vendor/@stringsync/splates-server/stats/routes.d.ts +23 -0
  434. package/vendor/@stringsync/splates-server/stats/scry-models.d.ts +22 -0
  435. package/vendor/@stringsync/splates-server/stats/skill-checks.d.ts +59 -0
  436. package/vendor/@stringsync/splates-server/stats/stats.d.ts +176 -0
  437. package/vendor/@stringsync/splates-server/stats/task-log.d.ts +67 -0
  438. package/vendor/@stringsync/splates-server/storage/atomic.d.ts +13 -0
  439. package/vendor/@stringsync/splates-server/storage/collection.d.ts +30 -0
  440. package/vendor/@stringsync/splates-server/storage/document.d.ts +26 -0
  441. package/vendor/@stringsync/splates-server/storage/fs-collection.d.ts +26 -0
  442. package/vendor/@stringsync/splates-server/storage/fs-document.d.ts +16 -0
  443. package/vendor/@stringsync/splates-server/storage/fs-log.d.ts +31 -0
  444. package/vendor/@stringsync/splates-server/storage/fs.d.ts +48 -0
  445. package/vendor/@stringsync/splates-server/storage/index.d.ts +11 -0
  446. package/vendor/@stringsync/splates-server/storage/index.js +18 -0
  447. package/vendor/@stringsync/splates-server/storage/json.d.ts +10 -0
  448. package/vendor/@stringsync/splates-server/storage/key.d.ts +7 -0
  449. package/vendor/@stringsync/splates-server/storage/log.d.ts +60 -0
  450. package/vendor/@stringsync/splates-server/storage/schema.d.ts +7 -0
  451. package/vendor/@stringsync/splates-server/storage/sqlite-collection.d.ts +31 -0
  452. package/vendor/@stringsync/splates-server/storage/sqlite-db.d.ts +62 -0
  453. package/vendor/@stringsync/splates-server/storage/sqlite-document.d.ts +20 -0
  454. package/vendor/@stringsync/splates-server/storage/sqlite-import.d.ts +11 -0
  455. package/vendor/@stringsync/splates-server/storage/sqlite-keys.d.ts +17 -0
  456. package/vendor/@stringsync/splates-server/storage/sqlite-lock.d.ts +25 -0
  457. package/vendor/@stringsync/splates-server/storage/sqlite-log.d.ts +31 -0
  458. package/vendor/@stringsync/splates-server/storage/sqlite.d.ts +53 -0
  459. package/vendor/@stringsync/splates-server/storage/storage.d.ts +87 -0
  460. package/vendor/@stringsync/splates-server/table.d.ts +5 -0
  461. package/vendor/@stringsync/splates-server/tasks/add.d.ts +45 -0
  462. package/vendor/@stringsync/splates-server/tasks/browser.d.ts +5 -0
  463. package/vendor/@stringsync/splates-server/tasks/checkpoint.d.ts +39 -0
  464. package/vendor/@stringsync/splates-server/tasks/claim.d.ts +14 -0
  465. package/vendor/@stringsync/splates-server/tasks/conflicts.d.ts +19 -0
  466. package/vendor/@stringsync/splates-server/tasks/diff.d.ts +29 -0
  467. package/vendor/@stringsync/splates-server/tasks/dispatched.d.ts +15 -0
  468. package/vendor/@stringsync/splates-server/tasks/editors.d.ts +22 -0
  469. package/vendor/@stringsync/splates-server/tasks/finished.d.ts +81 -0
  470. package/vendor/@stringsync/splates-server/tasks/follow.d.ts +48 -0
  471. package/vendor/@stringsync/splates-server/tasks/index.d.ts +30 -0
  472. package/vendor/@stringsync/splates-server/tasks/index.js +90 -0
  473. package/vendor/@stringsync/splates-server/tasks/landings.d.ts +17 -0
  474. package/vendor/@stringsync/splates-server/tasks/list.d.ts +18 -0
  475. package/vendor/@stringsync/splates-server/tasks/merge-output.d.ts +13 -0
  476. package/vendor/@stringsync/splates-server/tasks/open.d.ts +15 -0
  477. package/vendor/@stringsync/splates-server/tasks/overlaps.d.ts +16 -0
  478. package/vendor/@stringsync/splates-server/tasks/path.d.ts +13 -0
  479. package/vendor/@stringsync/splates-server/tasks/recommend.d.ts +30 -0
  480. package/vendor/@stringsync/splates-server/tasks/remove.d.ts +47 -0
  481. package/vendor/@stringsync/splates-server/tasks/retry.d.ts +35 -0
  482. package/vendor/@stringsync/splates-server/tasks/routes.d.ts +23 -0
  483. package/vendor/@stringsync/splates-server/tasks/show.d.ts +137 -0
  484. package/vendor/@stringsync/splates-server/tasks/snapshot.d.ts +86 -0
  485. package/vendor/@stringsync/splates-server/tasks/started-records.d.ts +71 -0
  486. package/vendor/@stringsync/splates-server/tasks/wait.d.ts +47 -0
  487. package/vendor/@stringsync/splates-server/tasks/worktree-checkouts.d.ts +10 -0
  488. package/vendor/@stringsync/splates-server/tasks/worktree-service.d.ts +151 -0
  489. package/vendor/@stringsync/splates-server/tasks/worktree.d.ts +342 -0
  490. package/vendor/@stringsync/splates-server/terminal/connection.d.ts +19 -0
  491. package/vendor/@stringsync/splates-server/terminal/held.d.ts +22 -0
  492. package/vendor/@stringsync/splates-server/terminal/index.d.ts +7 -0
  493. package/vendor/@stringsync/splates-server/terminal/pty.d.ts +45 -0
  494. package/vendor/@stringsync/splates-server/terminal/remote-pty.d.ts +34 -0
  495. package/vendor/@stringsync/splates-server/terminal/shell.d.ts +70 -0
  496. package/vendor/@stringsync/splates-server/terminal/spawn.d.ts +22 -0
  497. package/vendor/@stringsync/splates-server/terminal/terminal.d.ts +52 -0
  498. package/vendor/@stringsync/splates-server/tunnel/access.d.ts +61 -0
  499. package/vendor/@stringsync/splates-server/tunnel/cloudflare-api.d.ts +25 -0
  500. package/vendor/@stringsync/splates-server/tunnel/cloudflare-error.d.ts +5 -0
  501. package/vendor/@stringsync/splates-server/tunnel/cloudflared.d.ts +43 -0
  502. package/vendor/@stringsync/splates-server/tunnel/index.d.ts +14 -0
  503. package/vendor/@stringsync/splates-server/tunnel/index.js +70 -0
  504. package/vendor/@stringsync/splates-server/tunnel/machine.d.ts +18 -0
  505. package/vendor/@stringsync/splates-server/tunnel/provider.d.ts +37 -0
  506. package/vendor/@stringsync/splates-server/tunnel/remove.d.ts +35 -0
  507. package/vendor/@stringsync/splates-server/tunnel/saved-ports-host.d.ts +26 -0
  508. package/vendor/@stringsync/splates-server/tunnel/saved.d.ts +63 -0
  509. package/vendor/@stringsync/splates-server/tunnel/setup.d.ts +123 -0
  510. package/vendor/@stringsync/splates-server/tunnel/tunnel.d.ts +38 -0
  511. package/vendor/@stringsync/splates-server/workers/admin.d.ts +37 -0
  512. package/vendor/@stringsync/splates-server/workers/call-host.d.ts +68 -0
  513. package/vendor/@stringsync/splates-server/workers/channel.d.ts +90 -0
  514. package/vendor/@stringsync/splates-server/workers/connection.d.ts +24 -0
  515. package/vendor/@stringsync/splates-server/workers/coordinator-state.d.ts +44 -0
  516. package/vendor/@stringsync/splates-server/workers/daemon.d.ts +128 -0
  517. package/vendor/@stringsync/splates-server/workers/darwin-footprint.d.ts +7 -0
  518. package/vendor/@stringsync/splates-server/workers/darwin-temperature.d.ts +7 -0
  519. package/vendor/@stringsync/splates-server/workers/frame-too-large.d.ts +5 -0
  520. package/vendor/@stringsync/splates-server/workers/git.d.ts +11 -0
  521. package/vendor/@stringsync/splates-server/workers/gone.d.ts +36 -0
  522. package/vendor/@stringsync/splates-server/workers/identity.d.ts +30 -0
  523. package/vendor/@stringsync/splates-server/workers/index.d.ts +40 -0
  524. package/vendor/@stringsync/splates-server/workers/index.js +90 -0
  525. package/vendor/@stringsync/splates-server/workers/lifecycle.d.ts +14 -0
  526. package/vendor/@stringsync/splates-server/workers/list.d.ts +93 -0
  527. package/vendor/@stringsync/splates-server/workers/load.d.ts +55 -0
  528. package/vendor/@stringsync/splates-server/workers/local-id.d.ts +11 -0
  529. package/vendor/@stringsync/splates-server/workers/local-update.d.ts +81 -0
  530. package/vendor/@stringsync/splates-server/workers/log-file.d.ts +24 -0
  531. package/vendor/@stringsync/splates-server/workers/machine.d.ts +47 -0
  532. package/vendor/@stringsync/splates-server/workers/orphan.d.ts +31 -0
  533. package/vendor/@stringsync/splates-server/workers/os-sensors.d.ts +49 -0
  534. package/vendor/@stringsync/splates-server/workers/placement.d.ts +39 -0
  535. package/vendor/@stringsync/splates-server/workers/process-host.d.ts +60 -0
  536. package/vendor/@stringsync/splates-server/workers/process.d.ts +33 -0
  537. package/vendor/@stringsync/splates-server/workers/protocol.d.ts +153 -0
  538. package/vendor/@stringsync/splates-server/workers/pty-host.d.ts +35 -0
  539. package/vendor/@stringsync/splates-server/workers/queue.d.ts +39 -0
  540. package/vendor/@stringsync/splates-server/workers/records.d.ts +43 -0
  541. package/vendor/@stringsync/splates-server/workers/registry.d.ts +101 -0
  542. package/vendor/@stringsync/splates-server/workers/replay.d.ts +25 -0
  543. package/vendor/@stringsync/splates-server/workers/routes.d.ts +119 -0
  544. package/vendor/@stringsync/splates-server/workers/run-options.d.ts +11 -0
  545. package/vendor/@stringsync/splates-server/workers/run.d.ts +10 -0
  546. package/vendor/@stringsync/splates-server/workers/scheduler.d.ts +171 -0
  547. package/vendor/@stringsync/splates-server/workers/server-of.d.ts +23 -0
  548. package/vendor/@stringsync/splates-server/workers/server-socket.d.ts +25 -0
  549. package/vendor/@stringsync/splates-server/workers/session.d.ts +240 -0
  550. package/vendor/@stringsync/splates-server/workers/socket.d.ts +21 -0
  551. package/vendor/@stringsync/splates-server/workers/unix-listener.d.ts +23 -0
  552. package/vendor/@stringsync/splates-server/workers/unix-socket.d.ts +30 -0
  553. package/vendor/@stringsync/splates-server/workers/websocket-socket.d.ts +24 -0
  554. package/vendor/@stringsync/splates-server/workers/worker.d.ts +98 -0
  555. package/vendor/core/LICENSE +21 -0
  556. package/vendor/core/abort/aborts.d.ts +10 -0
  557. package/vendor/core/abort/index.d.ts +1 -0
  558. package/vendor/core/abort/index.js +24 -0
  559. package/vendor/core/assert/assert-error.d.ts +4 -0
  560. package/vendor/core/assert/assert.d.ts +24 -0
  561. package/vendor/core/assert/ensure.d.ts +18 -0
  562. package/vendor/core/assert/index.d.ts +3 -0
  563. package/vendor/core/assert/index.js +75 -0
  564. package/vendor/core/cmd/cli.d.ts +70 -0
  565. package/vendor/core/cmd/command.d.ts +96 -0
  566. package/vendor/core/cmd/deps.d.ts +12 -0
  567. package/vendor/core/cmd/help.d.ts +16 -0
  568. package/vendor/core/cmd/index.d.ts +6 -0
  569. package/vendor/core/cmd/index.js +477 -0
  570. package/vendor/core/cmd/middleware.d.ts +15 -0
  571. package/vendor/core/cmd/timed.d.ts +15 -0
  572. package/vendor/core/creds/credential-proxy.d.ts +55 -0
  573. package/vendor/core/creds/credential-source.d.ts +19 -0
  574. package/vendor/core/creds/credentials.d.ts +28 -0
  575. package/vendor/core/creds/dotenv-file.d.ts +22 -0
  576. package/vendor/core/creds/environment.d.ts +18 -0
  577. package/vendor/core/creds/index.d.ts +8 -0
  578. package/vendor/core/creds/index.js +337 -0
  579. package/vendor/core/creds/memory-secret-store.d.ts +33 -0
  580. package/vendor/core/creds/secret-store.d.ts +14 -0
  581. package/vendor/core/creds/system-secret-store.d.ts +49 -0
  582. package/vendor/core/dictate/buffered-sink.d.ts +9 -0
  583. package/vendor/core/dictate/cue.d.ts +10 -0
  584. package/vendor/core/dictate/dictation-failure.d.ts +5 -0
  585. package/vendor/core/dictate/dictation-link.d.ts +18 -0
  586. package/vendor/core/dictate/dictation-message.d.ts +24 -0
  587. package/vendor/core/dictate/dictation-relay.d.ts +28 -0
  588. package/vendor/core/dictate/index.d.ts +10 -0
  589. package/vendor/core/dictate/index.js +132 -0
  590. package/vendor/core/dictate/microphone.d.ts +42 -0
  591. package/vendor/core/dictate/openai-transcriber.d.ts +22 -0
  592. package/vendor/core/dictate/openai-transcription.d.ts +27 -0
  593. package/vendor/core/dictate/pcm.d.ts +5 -0
  594. package/vendor/core/dictate/pcm16-encoder.d.ts +20 -0
  595. package/vendor/core/dictate/server.d.ts +1 -0
  596. package/vendor/core/dictate/server.js +153 -0
  597. package/vendor/core/dictate/transcriber.d.ts +23 -0
  598. package/vendor/core/disposable/async-disposer.d.ts +15 -0
  599. package/vendor/core/disposable/async-resource.d.ts +4 -0
  600. package/vendor/core/disposable/disposables.d.ts +8 -0
  601. package/vendor/core/disposable/disposer.d.ts +13 -0
  602. package/vendor/core/disposable/index.d.ts +5 -0
  603. package/vendor/core/disposable/index.js +96 -0
  604. package/vendor/core/disposable/resource.d.ts +4 -0
  605. package/vendor/core/events/dispatcher.d.ts +18 -0
  606. package/vendor/core/events/eventful.d.ts +7 -0
  607. package/vendor/core/events/events.d.ts +14 -0
  608. package/vendor/core/events/index.d.ts +4 -0
  609. package/vendor/core/events/index.js +75 -0
  610. package/vendor/core/events/noop-events.d.ts +6 -0
  611. package/vendor/core/id/counter-id-provider.d.ts +6 -0
  612. package/vendor/core/id/id-provider.d.ts +7 -0
  613. package/vendor/core/id/index.d.ts +3 -0
  614. package/vendor/core/id/index.js +17 -0
  615. package/vendor/core/id/uuid-provider.d.ts +11 -0
  616. package/vendor/core/index-qk5dj664.js +4 -0
  617. package/vendor/core/log/color.d.ts +22 -0
  618. package/vendor/core/log/composite-logger.d.ts +7 -0
  619. package/vendor/core/log/console-logger.d.ts +6 -0
  620. package/vendor/core/log/index.d.ts +8 -0
  621. package/vendor/core/log/index.js +154 -0
  622. package/vendor/core/log/level-prefix-logger.d.ts +12 -0
  623. package/vendor/core/log/logger.d.ts +12 -0
  624. package/vendor/core/log/mdc-logger.d.ts +14 -0
  625. package/vendor/core/log/memory-logger.d.ts +8 -0
  626. package/vendor/core/log/prefix-logger.d.ts +12 -0
  627. package/vendor/core/md/index.d.ts +2 -0
  628. package/vendor/core/md/index.js +182 -0
  629. package/vendor/core/md/markdown.d.ts +56 -0
  630. package/vendor/core/md/writer.d.ts +22 -0
  631. package/vendor/core/push/base64url.d.ts +2 -0
  632. package/vendor/core/push/encrypt.d.ts +12 -0
  633. package/vendor/core/push/index.d.ts +4 -0
  634. package/vendor/core/push/index.js +137 -0
  635. package/vendor/core/push/push-failure.d.ts +7 -0
  636. package/vendor/core/push/pusher.d.ts +24 -0
  637. package/vendor/core/push/vapid.d.ts +18 -0
  638. package/vendor/core/push/web-pusher.d.ts +20 -0
  639. package/vendor/core/ship/artifact/artifact.d.ts +52 -0
  640. package/vendor/core/ship/bundle/bun-bundle.d.ts +71 -0
  641. package/vendor/core/ship/bundle/bundle-artifact.d.ts +21 -0
  642. package/vendor/core/ship/bundle/bundle.d.ts +13 -0
  643. package/vendor/core/ship/bundle/published.d.ts +45 -0
  644. package/vendor/core/ship/bundle/reach.d.ts +43 -0
  645. package/vendor/core/ship/bundle/vendor-bundle.d.ts +47 -0
  646. package/vendor/core/ship/cut.d.ts +64 -0
  647. package/vendor/core/ship/dry-run.d.ts +63 -0
  648. package/vendor/core/ship/git/cli-git.d.ts +25 -0
  649. package/vendor/core/ship/git/git-artifact.d.ts +23 -0
  650. package/vendor/core/ship/git/git.d.ts +19 -0
  651. package/vendor/core/ship/github/cli-github.d.ts +31 -0
  652. package/vendor/core/ship/github/cli-workflows.d.ts +25 -0
  653. package/vendor/core/ship/github/github-artifact.d.ts +18 -0
  654. package/vendor/core/ship/github/github.d.ts +10 -0
  655. package/vendor/core/ship/github/login.d.ts +3 -0
  656. package/vendor/core/ship/github/workflows.d.ts +27 -0
  657. package/vendor/core/ship/index.d.ts +26 -0
  658. package/vendor/core/ship/index.js +3203 -0
  659. package/vendor/core/ship/mirror/agent-files.d.ts +6 -0
  660. package/vendor/core/ship/mirror/mirror-build.d.ts +63 -0
  661. package/vendor/core/ship/mirror/mirror-guard.d.ts +10 -0
  662. package/vendor/core/ship/mirror/mirror-options.d.ts +75 -0
  663. package/vendor/core/ship/mirror/mirror-step.d.ts +109 -0
  664. package/vendor/core/ship/mirror/mirror-tooling.d.ts +59 -0
  665. package/vendor/core/ship/mirror/source-manifest.d.ts +27 -0
  666. package/vendor/core/ship/order.d.ts +15 -0
  667. package/vendor/core/ship/publish-workflow.d.ts +32 -0
  668. package/vendor/core/ship/registry/github-actions.d.ts +76 -0
  669. package/vendor/core/ship/registry/npm-registry.d.ts +70 -0
  670. package/vendor/core/ship/registry/registry-artifact.d.ts +31 -0
  671. package/vendor/core/ship/registry/registry.d.ts +85 -0
  672. package/vendor/core/ship/release-file.d.ts +22 -0
  673. package/vendor/core/ship/release-options.d.ts +122 -0
  674. package/vendor/core/ship/release.d.ts +61 -0
  675. package/vendor/core/ship/releases.d.ts +119 -0
  676. package/vendor/core/ship/shipped.d.ts +54 -0
  677. package/vendor/core/ship/skill-artifact.d.ts +27 -0
  678. package/vendor/core/ship/step-events.d.ts +91 -0
  679. package/vendor/core/ship/step-runner.d.ts +16 -0
  680. package/vendor/core/ship/step.d.ts +49 -0
  681. package/vendor/core/ship/trust.d.ts +11 -0
  682. package/vendor/core/ship/version.d.ts +9 -0
  683. package/vendor/core/ship/workspace/manifest-workspace.d.ts +61 -0
  684. package/vendor/core/ship/workspace/workspace.d.ts +29 -0
  685. package/vendor/core/skills/index.d.ts +1 -0
  686. package/vendor/core/skills/index.js +77 -0
  687. package/vendor/core/skills/project-skills.d.ts +53 -0
  688. package/vendor/core/system/fs/fs.d.ts +58 -0
  689. package/vendor/core/system/fs/node-fs.d.ts +18 -0
  690. package/vendor/core/system/glob/glob.d.ts +11 -0
  691. package/vendor/core/system/glob/node-glob.d.ts +12 -0
  692. package/vendor/core/system/heavy/heavy-jobs.d.ts +84 -0
  693. package/vendor/core/system/host-mapper/file-host-mapper.d.ts +20 -0
  694. package/vendor/core/system/host-mapper/host-mapper.d.ts +11 -0
  695. package/vendor/core/system/host-mapper/noop-host-mapper.d.ts +4 -0
  696. package/vendor/core/system/index.d.ts +25 -0
  697. package/vendor/core/system/index.js +1385 -0
  698. package/vendor/core/system/ip-provider/darwin-ip-provider.d.ts +6 -0
  699. package/vendor/core/system/ip-provider/ip-provider.d.ts +8 -0
  700. package/vendor/core/system/ip-provider/linux-ip-provider.d.ts +6 -0
  701. package/vendor/core/system/ip-provider/platform-ip-provider.d.ts +6 -0
  702. package/vendor/core/system/ip-provider/sequential-ip-provider.d.ts +6 -0
  703. package/vendor/core/system/ip-provider/static-ip-provider.d.ts +8 -0
  704. package/vendor/core/system/ip-provider/win32-ip-provider.d.ts +6 -0
  705. package/vendor/core/system/lock/file-lock.d.ts +50 -0
  706. package/vendor/core/system/lock/lock.d.ts +11 -0
  707. package/vendor/core/system/lock/memory-lock.d.ts +13 -0
  708. package/vendor/core/system/port-provider/open-port-provider.d.ts +38 -0
  709. package/vendor/core/system/port-provider/port-provider.d.ts +14 -0
  710. package/vendor/core/system/process-like/process-like.d.ts +22 -0
  711. package/vendor/core/system/ps/file-process.d.ts +40 -0
  712. package/vendor/core/system/ps/listening.d.ts +20 -0
  713. package/vendor/core/system/ps/node-ps.d.ts +39 -0
  714. package/vendor/core/system/ps/ps.d.ts +161 -0
  715. package/vendor/core/system/ps/reap.d.ts +22 -0
  716. package/vendor/core/system/undumpable.d.ts +32 -0
  717. package/vendor/core/system/walk.d.ts +10 -0
  718. package/vendor/core/time/clock/clock.d.ts +5 -0
  719. package/vendor/core/time/clock/system-clock.d.ts +5 -0
  720. package/vendor/core/time/debouncer.d.ts +25 -0
  721. package/vendor/core/time/duration.d.ts +38 -0
  722. package/vendor/core/time/index.d.ts +13 -0
  723. package/vendor/core/time/index.js +271 -0
  724. package/vendor/core/time/sleep.d.ts +2 -0
  725. package/vendor/core/time/stopwatch.d.ts +34 -0
  726. package/vendor/core/time/throttler.d.ts +26 -0
  727. package/vendor/core/time/time-ago.d.ts +14 -0
  728. package/vendor/core/time/timeouts.d.ts +12 -0
  729. package/vendor/core/time/timer/system-timer.d.ts +7 -0
  730. package/vendor/core/time/timer/timer.d.ts +11 -0
  731. package/vendor/core/time/wall-clock/system-wall-clock.d.ts +4 -0
  732. package/vendor/core/time/wall-clock/wall-clock.d.ts +14 -0
  733. package/waiting.d.ts +2 -2
  734. package/worker.d.ts +2 -2
@@ -0,0 +1,168 @@
1
+ import { type Fs, type Ps } from "../../core/system/index.js";
2
+ import { type Author, type GitIdentity } from "./git-identity";
3
+ export interface GitResult {
4
+ code: number;
5
+ stdout: string;
6
+ stderr: string;
7
+ }
8
+ /** Run Git in a checkout on this machine or a worker, preserving untrimmed output. */
9
+ export interface GitRunner {
10
+ git(cwd: string, args: string[], env?: Record<string, string>): Promise<GitResult>;
11
+ }
12
+ /** The files a `Git` reads itself rather than asking git. */
13
+ export type GitFiles = Pick<Fs, "exists" | "read">;
14
+ /** What a `Git` works through; the real ones by default. */
15
+ export interface GitOptions {
16
+ ps?: Ps;
17
+ /** Where a worktree's git directory is read, on the machine git runs on. */
18
+ fs?: GitFiles;
19
+ /** Where git runs; a process through `ps` by default. */
20
+ run?: GitRunner;
21
+ /** Whose author commits are signed as where the machine git runs on has none of its own; `splates` without. */
22
+ identity?: Author;
23
+ }
24
+ export declare class Git {
25
+ /** The main worktree, where trunk lives. */
26
+ readonly root: string;
27
+ private readonly fs;
28
+ private readonly runner;
29
+ private readonly identity;
30
+ constructor(
31
+ /** The main worktree, where trunk lives. */
32
+ root: string, opts?: GitOptions);
33
+ /** Who this machine's git commits as, from its config; null unless both name and email are set. */
34
+ author(): Promise<GitIdentity | null>;
35
+ /**
36
+ * The same repository's git, run the same way, as rooted at `root`: a
37
+ * clone's own, whose branches its main tree does not have.
38
+ */
39
+ at(root: string): Git;
40
+ run(cwd: string, ...args: string[]): Promise<GitResult>;
41
+ /** Run Git with additional environment variables. Pass credentials in `env`, never in arguments. */
42
+ runWith(cwd: string, args: string[], env: Record<string, string>): Promise<GitResult>;
43
+ out(cwd: string, ...args: string[]): Promise<string>;
44
+ branchExists(branch: string): Promise<boolean>;
45
+ /**
46
+ * The branch `origin/HEAD` points at, or null when the repo has no such ref:
47
+ * no remote, or a clone that never fetched it.
48
+ */
49
+ defaultBranch(): Promise<string | null>;
50
+ /**
51
+ * The branch checked out at `cwd`, or null where there is none: a detached
52
+ * HEAD, or a directory outside any repository. Any other failure throws, so
53
+ * it is not mistaken for being off a task's branch.
54
+ */
55
+ currentBranch(cwd: string): Promise<string | null>;
56
+ head(cwd: string): Promise<string>;
57
+ shortHead(cwd: string): Promise<string>;
58
+ porcelain(cwd: string): Promise<string[]>;
59
+ conflictedPaths(cwd: string): Promise<string[]>;
60
+ commitsAhead(trunk: string, branch: string): Promise<number | null>;
61
+ /** When `ref`'s latest commit was committed, as ISO 8601; null when git cannot say. */
62
+ committedAt(ref: string): Promise<string | null>;
63
+ /**
64
+ * The message of each commit on `branch` since it left `trunk`, oldest
65
+ * first; null when git cannot say.
66
+ */
67
+ commitMessages(trunk: string, branch: string): Promise<string[] | null>;
68
+ /**
69
+ * What `branch` changed since it left `trunk`, as a unified diff, along
70
+ * with all the work still uncommitted in `worktree` when there is one, new
71
+ * files git does not track yet among it; `uncommitted` names the paths
72
+ * that have some. Untrimmed, since a diff's lines keep their leading spaces.
73
+ */
74
+ diff(trunk: string, branch: string, worktree: string | null): Promise<{
75
+ text: string;
76
+ uncommitted: string[];
77
+ } | null>;
78
+ /**
79
+ * Every path `branch` touches since it left `trunk`, plus what is still
80
+ * uncommitted in `worktree` when there is one: an agent mid-task has usually
81
+ * committed nothing yet, and its edits are the overlap that matters most.
82
+ */
83
+ changedFiles(trunk: string, branch: string, worktree: string | null): Promise<string[] | null>;
84
+ /**
85
+ * Every path a person might point an agent at in the tree at `cwd`: the
86
+ * files git tracks, the new ones it does not ignore, and each directory
87
+ * above them, which ends in `/`. Sorted, relative to the tree's root.
88
+ */
89
+ paths(cwd: string): Promise<string[]>;
90
+ /**
91
+ * The latest `count` commits on `ref`, newest first, each with the paths
92
+ * it changed. Empty when `ref` names nothing, as in a repo with no commit.
93
+ */
94
+ log(ref: string, count: number): Promise<Commit[]>;
95
+ /** Every path git tracks at `ref`, or none when `ref` names nothing. */
96
+ files(ref: string): Promise<string[]>;
97
+ rebase(cwd: string, onto: string): Promise<GitResult>;
98
+ resetHard(cwd: string, commit: string): Promise<GitResult>;
99
+ checkout(branch: string): Promise<GitResult>;
100
+ mergeFfOnly(cwd: string, branch: string): Promise<GitResult>;
101
+ /**
102
+ * The worktree with `branch` checked out, or null when no worktree has it.
103
+ * Git allows one worktree per branch and that is the only place the branch
104
+ * can be advanced, so this is where a fast-forward has to happen.
105
+ */
106
+ worktreeFor(branch: string): Promise<string | null>;
107
+ addWorktree(branch: string, path: string, from: string): Promise<GitResult>;
108
+ removeWorktree(path: string): Promise<GitResult>;
109
+ /** Drops metadata for worktrees whose directories are gone. */
110
+ pruneWorktrees(): Promise<GitResult>;
111
+ deleteBranch(branch: string): Promise<GitResult>;
112
+ /**
113
+ * Commits everything in the tree at `cwd`, new files git does not ignore
114
+ * among it, as `message`, skipping the repo's commit hooks: a checkpoint
115
+ * saves work as it stands, finished or not.
116
+ */
117
+ commitAll(cwd: string, message: string): Promise<GitResult>;
118
+ /**
119
+ * `git commit` with `args`, signed as `splates` when the machine has no
120
+ * identity of its own, as a worker made fresh has none: a configured one
121
+ * is never overridden.
122
+ */
123
+ private commit;
124
+ /**
125
+ * Folds every commit the branch at `cwd` has that `base` lacks into one,
126
+ * `message`, running the repo's commit hooks as any commit does. Null when
127
+ * it has none to fold; on a failed commit, the branch is put back as it was.
128
+ */
129
+ squash(cwd: string, base: string, message: string): Promise<GitResult | null>;
130
+ /** The URL `remote` fetches from, or null when there is no such remote. */
131
+ remoteUrl(remote: string): Promise<string | null>;
132
+ /** Which of `paths` git tracks at `ref`. */
133
+ tracked(ref: string, paths: string[]): Promise<string[]>;
134
+ /** Push refs with additional arguments and environment variables; fails if credentials are missing. */
135
+ push(cwd: string, args: string[], env?: Record<string, string>): Promise<GitResult>;
136
+ /** `git fetch` with `args`, signing in as `push` does. */
137
+ fetch(cwd: string, args: string[], env?: Record<string, string>): Promise<GitResult>;
138
+ /**
139
+ * The commit each of `refs` is at on `remote`, by ref, leaving out those
140
+ * it lacks; null when the remote cannot be read.
141
+ */
142
+ remoteHeads(remote: string, refs: string[]): Promise<Map<string, string> | null>;
143
+ /** Whether `ancestor` is `commit` or reached from it. */
144
+ isAncestor(ancestor: string, commit: string): Promise<boolean>;
145
+ /** Whether this repository has `commit`'s object. */
146
+ hasCommit(commit: string): Promise<boolean>;
147
+ /** The one `.git` every worktree of this repo shares. */
148
+ commonDir(): Promise<string>;
149
+ /**
150
+ * The git directory belonging to a worktree, or null if it has none: the
151
+ * one a linked worktree's `.git` file points at, or a clone's own `.git`.
152
+ */
153
+ worktreeGitDir(worktree: string): Promise<string | null>;
154
+ /** Half-finished merges and rebases a resuming agent is standing in. */
155
+ interruptedOps(worktree: string): Promise<string[]>;
156
+ }
157
+ /** One commit as `Git.log` reads it. */
158
+ export interface Commit {
159
+ hash: string;
160
+ /** When it was written, as ISO 8601. */
161
+ at: string;
162
+ author: string;
163
+ /** Its message's first line. */
164
+ subject: string;
165
+ /** The paths it changed, repo-relative. */
166
+ files: string[];
167
+ }
168
+ export { processGit, sshUrl } from "./git-process";
@@ -0,0 +1,31 @@
1
+ import { type Logger } from "../../../core/log/index.js";
2
+ import { type AgentPick } from "../models";
3
+ import { type HookChange } from "./edit";
4
+ import type { Automation, Hook, HookStore, Trigger } from "./store";
5
+ /** What the hook commands work with. */
6
+ export interface HookDeps {
7
+ hooks: HookStore;
8
+ log: Logger;
9
+ }
10
+ /** Every automation set for this project, by number. */
11
+ export declare function hookList({ hooks, log }: HookDeps, { json }?: {
12
+ json?: boolean;
13
+ }): Promise<void>;
14
+ /** Adds `hook` on `trigger`, then says what it set. */
15
+ export declare function hookAdd({ hooks, log }: HookDeps, trigger: Trigger, hook: Hook): Promise<void>;
16
+ /** Makes `change` to the person's automation numbered `id`, then says what it set. */
17
+ export declare function hookEdit({ hooks, log }: HookDeps, id: string, change: HookChange): Promise<void>;
18
+ /** Takes away the automation numbered `id`, or every one on the event `id` names. */
19
+ export declare function hookRemove({ hooks, log }: HookDeps, id: string): Promise<void>;
20
+ /** Turns the groomer on as `pick`, or off for null, then says so. */
21
+ export declare function hookGroomer({ hooks, log }: HookDeps, pick: AgentPick | null): Promise<void>;
22
+ /** Pauses the automation numbered `id`, or lets it run again. */
23
+ export declare function hookPause({ hooks, log }: HookDeps, id: string, paused: boolean): Promise<void>;
24
+ /** Asks for the automation numbered `id` to run now, which `splates server` does at once. */
25
+ export declare function hookRun({ hooks, log }: HookDeps, id: string): Promise<void>;
26
+ /** `automation` in a line: its number, trigger and what it runs. */
27
+ export declare function described(automation: Automation): string;
28
+ /** `trigger` in a few words, as `task.created in backlog, lane 3` or `every 1h`. */
29
+ export declare function triggerLabel(trigger: Trigger): string;
30
+ /** `hook` in a few words. */
31
+ export declare function hookLabel(hook: Hook): string;
@@ -0,0 +1,24 @@
1
+ import type { AgentPick } from "../models";
2
+ import { type Automation, type Hook, type Trigger } from "./store";
3
+ /**
4
+ * What `splates hook edit` changes of an automation, each "" to leave it as
5
+ * it is: a new trigger from `event`, `every` or `cron`; its event narrowed
6
+ * anew by `stage` or `lane`, `any` for no narrowing; what an agent is told;
7
+ * or a shell command in place of what runs.
8
+ */
9
+ export interface HookChange {
10
+ event: string;
11
+ every: string;
12
+ cron: string;
13
+ stage: string;
14
+ lane: string;
15
+ prompt: string;
16
+ run: string;
17
+ /** The agent to run in place of the one it runs, when given. */
18
+ pick?: AgentPick;
19
+ }
20
+ /** `automation`'s trigger and hook with `change` made, refusing one that will not fit. */
21
+ export declare function changed(automation: Automation, change: HookChange): {
22
+ trigger: Trigger;
23
+ hook: Hook;
24
+ };
@@ -0,0 +1,20 @@
1
+ import type { Event } from "../records";
2
+ /** Each event a task's life gives, in the order a task usually gives them. */
3
+ export declare const TASK_EVENTS: readonly ["task.created", "task.updated", "task.ready", "task.queued", "task.started", "task.done", "task.dropped"];
4
+ export type TaskEventName = (typeof TASK_EVENTS)[number];
5
+ /** One change in a task's life, as hooks hear of it. */
6
+ export interface TaskEvent {
7
+ name: TaskEventName;
8
+ /** The journal event it came from, so a follower takes each once. */
9
+ from: string;
10
+ at: string;
11
+ /** The tasks it is about, by number; none for a started one numbered off the list. */
12
+ numbers: number[];
13
+ /** The started task it is about, by name; null for one not started. */
14
+ task: string | null;
15
+ }
16
+ /**
17
+ * The task events journal event `event` gives: none for a refused command,
18
+ * or one that is no change in a task's life.
19
+ */
20
+ export declare function taskEventsOf(event: Event): TaskEvent[];
@@ -0,0 +1,8 @@
1
+ import type { Trigger } from "./store";
2
+ /** The built-in automation the groomer runs as, once turned on from the Automations page. */
3
+ export declare const GROOMER_AUTOMATION = "groomer";
4
+ /**
5
+ * What wakes the groomer: a task added, to the backlog for grooming, or
6
+ * ready and Untriaged for a lane.
7
+ */
8
+ export declare const GROOMER_TRIGGER: Trigger;
@@ -0,0 +1,17 @@
1
+ export type { HookDeps } from "./commands";
2
+ export { described, hookAdd, hookEdit, hookGroomer, hookLabel, hookList, hookPause, hookRemove, hookRun, triggerLabel, } from "./commands";
3
+ export type { HookChange } from "./edit";
4
+ export type { TaskEvent, TaskEventName } from "./events";
5
+ export { TASK_EVENTS, taskEventsOf } from "./events";
6
+ export { GROOMER_AUTOMATION, GROOMER_TRIGGER } from "./groomer";
7
+ export { BY_HAND, runsNow } from "./now";
8
+ export type { AutomationRow } from "./routes";
9
+ export { AutomationRoutes } from "./routes";
10
+ export type { FireDeps, Fired, HookActions, HookRunnerDeps } from "./runner";
11
+ export { HookRunner } from "./runner";
12
+ export type { AutomationRun, AutomationRuns } from "./runs";
13
+ export { RunStore } from "./runs";
14
+ export type { SchedulerDeps } from "./scheduler";
15
+ export { Scheduler } from "./scheduler";
16
+ export type { Automation, Hook, Hooks, TaskFilter, Trigger } from "./store";
17
+ export { eventNamed, fromHooks, HookStore, lanesNamed, stagesNamed, } from "./store";
@@ -0,0 +1,61 @@
1
+ import {
2
+ TASK_EVENTS2,
3
+ taskEventsOf2,
4
+ GROOMER_AUTOMATION2,
5
+ GROOMER_TRIGGER2,
6
+ BY_HAND2,
7
+ runsNow2,
8
+ HookStore2,
9
+ fromHooks2,
10
+ eventNamed2,
11
+ stagesNamed2,
12
+ lanesNamed2,
13
+ hookList2,
14
+ hookAdd2,
15
+ hookEdit2,
16
+ hookRemove2,
17
+ hookGroomer2,
18
+ hookPause2,
19
+ hookRun2,
20
+ described2,
21
+ triggerLabel2,
22
+ hookLabel2,
23
+ AutomationRoutes2,
24
+ HookRunner2,
25
+ RunStore2,
26
+ Scheduler2
27
+ } from "../index-76t8y8h5.js";
28
+ import"../index-caep3sde.js";
29
+ import"../index-01z7ycdk.js";
30
+ import"../index-e9z7s5hh.js";
31
+ import"../index-kmzdvvt0.js";
32
+ import"../index-t9w5a8ed.js";
33
+ import"../index-0jttnv86.js";
34
+ import"../index-g18nxyn7.js";
35
+ export {
36
+ AutomationRoutes2 as AutomationRoutes,
37
+ BY_HAND2 as BY_HAND,
38
+ GROOMER_AUTOMATION2 as GROOMER_AUTOMATION,
39
+ GROOMER_TRIGGER2 as GROOMER_TRIGGER,
40
+ HookRunner2 as HookRunner,
41
+ HookStore2 as HookStore,
42
+ RunStore2 as RunStore,
43
+ Scheduler2 as Scheduler,
44
+ TASK_EVENTS2 as TASK_EVENTS,
45
+ described2 as described,
46
+ eventNamed2 as eventNamed,
47
+ fromHooks2 as fromHooks,
48
+ hookAdd2 as hookAdd,
49
+ hookEdit2 as hookEdit,
50
+ hookGroomer2 as hookGroomer,
51
+ hookLabel2 as hookLabel,
52
+ hookList2 as hookList,
53
+ hookPause2 as hookPause,
54
+ hookRemove2 as hookRemove,
55
+ hookRun2 as hookRun,
56
+ lanesNamed2 as lanesNamed,
57
+ runsNow2 as runsNow,
58
+ stagesNamed2 as stagesNamed,
59
+ taskEventsOf2 as taskEventsOf,
60
+ triggerLabel2 as triggerLabel
61
+ };
@@ -0,0 +1,9 @@
1
+ import type { Automation } from "./store";
2
+ /** What a run the person asked for was set off by, as its run lists it. */
3
+ export declare const BY_HAND = "by hand";
4
+ /**
5
+ * Whether `automation` can be run at once by hand: one on a schedule, or the
6
+ * groomer, which grooms the backlog as it stands. One on any other task
7
+ * event needs the event's tasks, so it runs only on that event.
8
+ */
9
+ export declare function runsNow({ trigger, hook, }: Pick<Automation, "trigger" | "hook">): boolean;
@@ -0,0 +1,39 @@
1
+ import type { AutomationRun, RunStore } from "./runs";
2
+ import { type Automation, type HookStore } from "./store";
3
+ /** One automation as the Automations page lists it. */
4
+ export interface AutomationRow extends Automation {
5
+ /** Its trigger in a few words, as `task.created in backlog`. */
6
+ when: string;
7
+ /** What it runs in a few words. */
8
+ does: string;
9
+ /** Its latest runs, the latest last. */
10
+ runs: AutomationRun[];
11
+ }
12
+ /**
13
+ * The routes the Automations page reads and changes the person's
14
+ * automations through, each answering with every automation as it now
15
+ * stands. Spread one into a project's routes.
16
+ */
17
+ export declare class AutomationRoutes {
18
+ #private;
19
+ constructor(store: HookStore, runs: RunStore,
20
+ /** Every automation, the project's checked-in ones too. */
21
+ all: () => Promise<Automation[]>,
22
+ /** Told once one is added, edited, removed, paused or resumed here. */
23
+ changed?: () => void,
24
+ /** Runs each automation asked to run now; settles once they started. */
25
+ run?: () => Promise<void>);
26
+ readonly listAutomations: () => Promise<Response>;
27
+ readonly addAutomation: (request: Request) => Promise<Response>;
28
+ /**
29
+ * Edits one of the person's automations or, named `groomer`, sets the
30
+ * agent the groomer runs as, turning it on when it is off: its trigger
31
+ * and its prompt are splates's own.
32
+ */
33
+ readonly editAutomation: (request: Request) => Promise<Response>;
34
+ readonly removeAutomation: (request: Request) => Promise<Response>;
35
+ readonly pauseAutomation: (request: Request) => Promise<Response>;
36
+ readonly resumeAutomation: (request: Request) => Promise<Response>;
37
+ /** Runs one at once, answering once it started, its run listed. */
38
+ readonly runAutomation: (request: Request) => Promise<Response>;
39
+ }
@@ -0,0 +1,75 @@
1
+ import type { Resource } from "../../../core/disposable/index.js";
2
+ import type { Logger } from "../../../core/log/index.js";
3
+ import { type Timer } from "../../../core/time/index.js";
4
+ import type { TaskStage } from "../board";
5
+ import type { Journal } from "../records";
6
+ import type { Storage } from "../storage";
7
+ import { type TaskEvent } from "./events";
8
+ import type { RunStore } from "./runs";
9
+ import type { Automation, Hook } from "./store";
10
+ /**
11
+ * What set an automation off: a task event, or its schedule coming due, or
12
+ * the person asking it to run now, which runs as its schedule would.
13
+ */
14
+ export type Fired = {
15
+ event: TaskEvent;
16
+ } | {
17
+ schedule: string;
18
+ byHand?: true;
19
+ };
20
+ /** What a hook does, by kind. */
21
+ export interface HookActions {
22
+ run(command: string, fired: Fired): Promise<void>;
23
+ /** Starts an agent for automation `id` as `hook` says. */
24
+ agent(hook: Extract<Hook, {
25
+ kind: "agent";
26
+ }>, fired: Fired, id: string): Promise<void>;
27
+ /** Wakes the project's groomer, which the state, not `fired`, tells what to groom. */
28
+ groom(hook: Extract<Hook, {
29
+ kind: "groom";
30
+ }>): Promise<void>;
31
+ }
32
+ /** Runs `automation`'s hook for `fired`, keeping the run, and logging a failure rather than throwing it. */
33
+ export declare function fire(automation: Automation, fired: Fired, { actions, runs, log, now }: FireDeps): Promise<void>;
34
+ /** What `fire` works with. */
35
+ export interface FireDeps {
36
+ actions: HookActions;
37
+ runs: RunStore;
38
+ log: Logger;
39
+ /** The time now, as an ISO string. */
40
+ now: () => string;
41
+ }
42
+ /**
43
+ * Runs the hooks set for each task event as the journal takes it, in the
44
+ * order it took them. Where it got to is kept in `seen`, so after a restart
45
+ * it catches up on what it missed; the first time, it starts from now
46
+ * rather than run hooks for the whole past.
47
+ */
48
+ export declare class HookRunner implements Resource {
49
+ #private;
50
+ private readonly deps;
51
+ private constructor();
52
+ /** Runs hooks for each task event from where it got to, then follows the journal for more. */
53
+ static follow({ timer, ...deps }: HookRunnerDeps & {
54
+ timer?: Timer;
55
+ }): Promise<HookRunner>;
56
+ /** Runs hooks for what the journal took since the last look; settles once they ran. */
57
+ changed(): Promise<void>;
58
+ dispose(): void;
59
+ }
60
+ /** What a `HookRunner` works with. */
61
+ export interface HookRunnerDeps extends FireDeps {
62
+ journal: Journal;
63
+ /**
64
+ * The project's, where the journal writes, watched for more, and where
65
+ * `hooks-seen.json` keeps how far it got, past a restart.
66
+ */
67
+ storage: Storage;
68
+ /** Every automation set now: the person's, and the shell hooks the project checks in. */
69
+ automations: () => Promise<Automation[]>;
70
+ /** Queued task `id`'s stage and lane now, or null for one off the list, for filters. */
71
+ task: (id: number) => Promise<{
72
+ stage: TaskStage;
73
+ lane: number | null;
74
+ } | null>;
75
+ }
@@ -0,0 +1,38 @@
1
+ import type { Storage } from "../storage";
2
+ /** One time an automation ran, as its page lists it. */
3
+ export interface AutomationRun {
4
+ at: string;
5
+ /** What set it off: an event and its tasks, as `task.created #3`, `schedule`, or `by hand` when the person asked it to run now. */
6
+ on: string;
7
+ /** Why it failed, or null when it ran. */
8
+ error: string | null;
9
+ }
10
+ /** What is kept of each automation's runs, by its id. */
11
+ export type AutomationRuns = Record<string, {
12
+ /** The latest last, at most `KEPT`. */
13
+ runs: AutomationRun[];
14
+ /** When its schedule last came due, so a restart runs a missed one once. */
15
+ scheduledAt?: string;
16
+ /** The automation's latest `requestedAt` it ran for, so each request runs once. */
17
+ requestedAt?: string;
18
+ }>;
19
+ /** How many runs each automation keeps. */
20
+ export declare const KEPT = 5;
21
+ /**
22
+ * The last runs of each automation, in `.git/splates/hooks-runs.json`. Only
23
+ * `splates server` writes it, one run at a time, so it takes no lock.
24
+ */
25
+ export declare class RunStore {
26
+ #private;
27
+ constructor(
28
+ /** The project's, holding `hooks-runs.json`. */
29
+ storage: Storage);
30
+ /** Every automation's runs; none when the file is missing or will not parse. */
31
+ read(): Promise<AutomationRuns>;
32
+ /** Keeps that automation `id` ran, dropping its oldest past `KEPT`. */
33
+ ran(id: string, run: AutomationRun): Promise<void>;
34
+ /** Keeps that automation `id`'s schedule came due at `at`. */
35
+ scheduled(id: string, at: string): Promise<void>;
36
+ /** Keeps that automation `id` ran for the request made at `at`. */
37
+ requested(id: string, at: string): Promise<void>;
38
+ }
@@ -0,0 +1,10 @@
1
+ /** When a schedule runs next after a time, in epoch milliseconds. */
2
+ export interface Schedule {
3
+ nextAfter(at: number): number;
4
+ }
5
+ /** A trigger's schedule, refusing one that will not read. */
6
+ export declare function scheduleOf(trigger: {
7
+ every: string;
8
+ } | {
9
+ cron: string;
10
+ }): Schedule;
@@ -0,0 +1,28 @@
1
+ import type { Resource } from "../../../core/disposable/index.js";
2
+ import { type Timer, type WallClock } from "../../../core/time/index.js";
3
+ import { type FireDeps } from "./runner";
4
+ import type { Automation } from "./store";
5
+ /**
6
+ * Runs each scheduled automation as it comes due, looking once a minute.
7
+ * When it came due more than once since its last run, as while
8
+ * `splates server` was down, it runs once, not once per miss. One the
9
+ * person asked to run now runs once for each request, its schedule left be.
10
+ */
11
+ export declare class Scheduler implements Resource {
12
+ #private;
13
+ private readonly deps;
14
+ private constructor();
15
+ /** Runs what came due while it was down, then looks again each minute. */
16
+ static start({ timer, ...deps }: SchedulerDeps & {
17
+ timer?: Timer;
18
+ }): Promise<Scheduler>;
19
+ /** Runs each automation due now; settles once they ran. */
20
+ look(): Promise<void>;
21
+ dispose(): void;
22
+ }
23
+ /** What a `Scheduler` works with. */
24
+ export interface SchedulerDeps extends FireDeps {
25
+ /** Every automation set now. */
26
+ automations: () => Promise<Automation[]>;
27
+ clock: WallClock;
28
+ }
@@ -0,0 +1,110 @@
1
+ import type { TaskStage } from "../board";
2
+ import type { AgentPick } from "../models";
3
+ import type { Storage } from "../storage";
4
+ import { type TaskEventName } from "./events";
5
+ /**
6
+ * What runs on a trigger: an agent told of it with a prompt, or a shell
7
+ * command.
8
+ */
9
+ export type Hook = ({
10
+ kind: "agent";
11
+ prompt: string;
12
+ } & AgentPick) | {
13
+ kind: "run";
14
+ command: string;
15
+ }
16
+ /** The project's groomer, told to groom the backlog, as built-in automation `groomer` runs. */
17
+ | ({
18
+ kind: "groom";
19
+ } & AgentPick);
20
+ /** Which tasks an event hook fires for; a field left out matches any. */
21
+ export interface TaskFilter {
22
+ /** The stages the task stands in. */
23
+ stages?: TaskStage[];
24
+ /** The lanes it is in, by number. */
25
+ lanes?: number[];
26
+ }
27
+ /**
28
+ * What sets an automation off: a task event, narrowed by a filter; or a
29
+ * time, every so often (`30m`, `2h`, `1d`) or on a five-field cron.
30
+ */
31
+ export type Trigger = {
32
+ event: TaskEventName;
33
+ filter?: TaskFilter;
34
+ } | {
35
+ every: string;
36
+ } | {
37
+ cron: string;
38
+ };
39
+ /** One thing that runs on a trigger, as the Automations page lists it. */
40
+ export interface Automation {
41
+ /** Its number among the person's, or a name for one splates or the project sets. */
42
+ id: string;
43
+ trigger: Trigger;
44
+ hook: Hook;
45
+ /** Set while the person has it paused: it keeps its place and runs nothing. */
46
+ paused?: boolean;
47
+ /** When it was set, which a schedule counts its first run from. */
48
+ createdAt: string;
49
+ /** When its trigger last changed: its schedule counts from then, not from a run before. */
50
+ editedAt?: string;
51
+ /** When the person last asked it to run at once, which `splates server` runs it for once. */
52
+ requestedAt?: string;
53
+ /** Where it comes from: the person, by default; the project's config, or splates itself. */
54
+ source?: "config" | "builtin";
55
+ }
56
+ /**
57
+ * The automations one person set for one project, in
58
+ * `.git/splates/hooks.json`: never checked in, since an agent hook spends
59
+ * its person's tokens. None set, nothing runs.
60
+ */
61
+ export declare class HookStore {
62
+ #private;
63
+ constructor(
64
+ /** The project's, holding `hooks.json`. */
65
+ storage: Storage);
66
+ /**
67
+ * Every automation set; none when the file is missing or will not parse.
68
+ * A file of the old form, each event's hooks, reads as one automation per
69
+ * hook, numbered in event order.
70
+ */
71
+ read(): Promise<Automation[]>;
72
+ /** Adds an automation of `hook` on `trigger`, numbered after the others. */
73
+ add(trigger: Trigger, hook: Hook): Promise<Automation>;
74
+ /**
75
+ * Takes away the automation numbered `id`, or, given an event's name,
76
+ * every one on that event; refuses one there is none of.
77
+ */
78
+ remove(id: string): Promise<Automation[]>;
79
+ /**
80
+ * Turns the groomer on, running as `pick`, or off for null: built-in
81
+ * automation `groomer`, which keeps its pause through a change of pick.
82
+ * Its trigger and what it is told are splates's own.
83
+ */
84
+ groomer(pick: AgentPick | null): Promise<Automation | null>;
85
+ /**
86
+ * Sets what sets the person's automation `id` off and what it runs, keeping
87
+ * its number, its pause and its runs; refuses one there is none of. A
88
+ * changed trigger is stamped, so its schedule counts from now.
89
+ */
90
+ edit(id: string, trigger: Trigger, hook: Hook): Promise<Automation>;
91
+ /** Pauses the automation numbered `id`, or lets it run again. */
92
+ pause(id: string, paused: boolean): Promise<Automation>;
93
+ /**
94
+ * Asks for the automation `id` to run at once, as `splates server` runs it
95
+ * for the request, its schedule left as it was; refuses one there is none
96
+ * of, or one that runs only on a task event.
97
+ */
98
+ request(id: string): Promise<Automation>;
99
+ private change;
100
+ }
101
+ /** Each event's hooks, in the order they run: the store's form before automations. */
102
+ export type Hooks = Partial<Record<TaskEventName, Hook[]>>;
103
+ /** The old form's hooks as automations, numbered in event order. */
104
+ export declare function fromHooks(hooks: Hooks, source?: Automation["source"]): Automation[];
105
+ /** `name` as a task event, refusing one that is none. */
106
+ export declare function eventNamed(name: string): TaskEventName;
107
+ /** `names` as task stages, refusing one that is none. */
108
+ export declare function stagesNamed(names: readonly string[]): TaskStage[];
109
+ /** `text` as lane numbers, comma separated, refusing what is none. */
110
+ export declare function lanesNamed(text: string): number[];
@@ -0,0 +1,6 @@
1
+ // comma-list.ts
2
+ function commaList2(raw) {
3
+ return raw.split(",").map((value) => value.trim()).filter(Boolean);
4
+ }
5
+
6
+ export { commaList2 };