@stringsync/splates 0.0.45 → 0.0.46

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 (254) hide show
  1. package/README.md +121 -9
  2. package/artifact.d.ts +3 -30
  3. package/budget.d.ts +3 -0
  4. package/coordinator.d.ts +3 -0
  5. package/creds.d.ts +3 -123
  6. package/flags.d.ts +37 -0
  7. package/index.js +729 -26375
  8. package/lane.d.ts +3 -55
  9. package/main.d.ts +6 -0
  10. package/package.json +3 -42
  11. package/projects.d.ts +3 -136
  12. package/queue.d.ts +3 -0
  13. package/setup.d.ts +16 -98
  14. package/slots.d.ts +3 -135
  15. package/splates.d.ts +1 -19
  16. package/todo.d.ts +3 -146
  17. package/{splates-tunnel.d.ts → tunnel.d.ts} +1 -1
  18. package/{splates-worker.d.ts → worker.d.ts} +1 -1
  19. package/acp-extensions.d.ts +0 -82
  20. package/add.d.ts +0 -53
  21. package/adherence.d.ts +0 -49
  22. package/age.d.ts +0 -2
  23. package/agent-connection.d.ts +0 -171
  24. package/agent-errors.d.ts +0 -2
  25. package/agent-process.d.ts +0 -65
  26. package/agent-stream.d.ts +0 -91
  27. package/agents.d.ts +0 -15
  28. package/artifact-room.d.ts +0 -47
  29. package/artifact-viewers.d.ts +0 -6
  30. package/artifacts.d.ts +0 -161
  31. package/asked.d.ts +0 -146
  32. package/asked.js +0 -7
  33. package/assumed.d.ts +0 -34
  34. package/attach.d.ts +0 -30
  35. package/attachments.d.ts +0 -43
  36. package/baselines.d.ts +0 -55
  37. package/claim.d.ts +0 -17
  38. package/cloudflare-api.d.ts +0 -25
  39. package/cloudflare-error.d.ts +0 -5
  40. package/cloudflared-tunnel-provider.d.ts +0 -27
  41. package/codex-limits.d.ts +0 -19
  42. package/compaction.d.ts +0 -17
  43. package/config-source.d.ts +0 -13
  44. package/config.d.ts +0 -98
  45. package/config.js +0 -7
  46. package/conversation-archive.d.ts +0 -6
  47. package/conversation-background.d.ts +0 -21
  48. package/conversation-choice.d.ts +0 -4
  49. package/conversation-files.d.ts +0 -51
  50. package/conversation-given.d.ts +0 -8
  51. package/conversation-host.d.ts +0 -102
  52. package/conversation-listing.d.ts +0 -15
  53. package/conversation-log.d.ts +0 -301
  54. package/conversation-messages.d.ts +0 -18
  55. package/conversation-name.d.ts +0 -28
  56. package/conversation-options.d.ts +0 -73
  57. package/conversation-reference.d.ts +0 -2
  58. package/conversation-state.d.ts +0 -472
  59. package/conversation-turns.d.ts +0 -115
  60. package/conversation.d.ts +0 -209
  61. package/conversations.d.ts +0 -140
  62. package/coordinator-state.d.ts +0 -28
  63. package/darwin-temperature.d.ts +0 -7
  64. package/decided.d.ts +0 -18
  65. package/demo.d.ts +0 -29
  66. package/dev/api.d.ts +0 -209
  67. package/dev/assets.d.ts +0 -24
  68. package/dev/conversation-address.d.ts +0 -47
  69. package/dev/conversation-feed.d.ts +0 -166
  70. package/dev/live-stream.d.ts +0 -29
  71. package/dev/worker.d.ts +0 -33
  72. package/dev-access.d.ts +0 -61
  73. package/dev-artifacts.d.ts +0 -22
  74. package/dev-budgets.d.ts +0 -18
  75. package/dev-conversation-events.d.ts +0 -39
  76. package/dev-conversation-routes.d.ts +0 -90
  77. package/dev-creds.d.ts +0 -17
  78. package/dev-dictation-connection.d.ts +0 -18
  79. package/dev-dictation.d.ts +0 -17
  80. package/dev-http.d.ts +0 -76
  81. package/dev-open.d.ts +0 -15
  82. package/dev-options.d.ts +0 -133
  83. package/dev-outcomes.d.ts +0 -21
  84. package/dev-pages.d.ts +0 -16
  85. package/dev-picker.d.ts +0 -57
  86. package/dev-port-socket.d.ts +0 -26
  87. package/dev-ports.d.ts +0 -11
  88. package/dev-project-watch.d.ts +0 -44
  89. package/dev-project.d.ts +0 -168
  90. package/dev-push.d.ts +0 -59
  91. package/dev-restart.d.ts +0 -141
  92. package/dev-servers.d.ts +0 -30
  93. package/dev-setup-native.d.ts +0 -23
  94. package/dev-setup-opencode.d.ts +0 -29
  95. package/dev-setup.d.ts +0 -16
  96. package/dev-shell.d.ts +0 -70
  97. package/dev-slot.d.ts +0 -28
  98. package/dev-sockets.d.ts +0 -13
  99. package/dev-task-ports.d.ts +0 -73
  100. package/dev-tasks.d.ts +0 -20
  101. package/dev-terminal-connection.d.ts +0 -19
  102. package/dev-terminal.d.ts +0 -42
  103. package/dev-todos.d.ts +0 -35
  104. package/dev-transcriber.d.ts +0 -15
  105. package/dev-tunnel.d.ts +0 -38
  106. package/dev-versions.d.ts +0 -53
  107. package/dev-workers.d.ts +0 -55
  108. package/dev.d.ts +0 -24
  109. package/diff.d.ts +0 -29
  110. package/dispatched.d.ts +0 -16
  111. package/editors.d.ts +0 -22
  112. package/escalate.d.ts +0 -27
  113. package/events.d.ts +0 -311
  114. package/everywhere.d.ts +0 -41
  115. package/exhibit.d.ts +0 -21
  116. package/exit.d.ts +0 -54
  117. package/fact-todos.d.ts +0 -18
  118. package/fake-agent.d.ts +0 -107
  119. package/fake-agent.js +0 -284
  120. package/finding-facts.d.ts +0 -38
  121. package/findings.d.ts +0 -84
  122. package/fold.d.ts +0 -43
  123. package/follow.d.ts +0 -41
  124. package/format.d.ts +0 -68
  125. package/git.d.ts +0 -112
  126. package/handed-out.d.ts +0 -79
  127. package/handoff.d.ts +0 -23
  128. package/heavy-run.d.ts +0 -12
  129. package/heavy.d.ts +0 -28
  130. package/heavy.js +0 -16
  131. package/held.d.ts +0 -22
  132. package/index-0tfvy823.js +0 -272
  133. package/index-43pq33n4.js +0 -157
  134. package/index-4776671w.js +0 -698
  135. package/index-d4hjrzaq.js +0 -464
  136. package/index-gcfq7awr.js +0 -740
  137. package/index-k73tsw5g.js +0 -101
  138. package/index-kaa44k7q.js +0 -59
  139. package/index-vcv9m93e.js +0 -1265
  140. package/index-xmfmy729.js +0 -249
  141. package/init.d.ts +0 -28
  142. package/journal.d.ts +0 -57
  143. package/landed.d.ts +0 -14
  144. package/lane-todos.d.ts +0 -44
  145. package/lanes-from-tags.d.ts +0 -17
  146. package/lanes.d.ts +0 -96
  147. package/legacy-names.d.ts +0 -70
  148. package/legacy-ps.d.ts +0 -31
  149. package/limits.d.ts +0 -32
  150. package/list.d.ts +0 -18
  151. package/load-config.d.ts +0 -44
  152. package/log.d.ts +0 -14
  153. package/machine.d.ts +0 -42
  154. package/merge.d.ts +0 -35
  155. package/migrate-config.d.ts +0 -31
  156. package/models.d.ts +0 -24
  157. package/needs.d.ts +0 -115
  158. package/notices.d.ts +0 -39
  159. package/offered.d.ts +0 -39
  160. package/opencode-usage.d.ts +0 -37
  161. package/outcomes.d.ts +0 -114
  162. package/path.d.ts +0 -13
  163. package/plan.d.ts +0 -236
  164. package/port-forward.d.ts +0 -22
  165. package/port-pipe.d.ts +0 -36
  166. package/ports-list.d.ts +0 -19
  167. package/probe-runtime.d.ts +0 -5
  168. package/probe-runtime.js +0 -13
  169. package/project-reaches.d.ts +0 -23
  170. package/prompts.d.ts +0 -128
  171. package/pty.d.ts +0 -39
  172. package/pulse.d.ts +0 -8
  173. package/recommend.d.ts +0 -31
  174. package/release.d.ts +0 -41
  175. package/remote-process.d.ts +0 -26
  176. package/remote-pty.d.ts +0 -29
  177. package/remote-worker.d.ts +0 -77
  178. package/remove.d.ts +0 -31
  179. package/repository.d.ts +0 -91
  180. package/retry.d.ts +0 -34
  181. package/roster.d.ts +0 -63
  182. package/saved-ports-host.d.ts +0 -25
  183. package/saved-tunnel.d.ts +0 -44
  184. package/server-worker-socket.d.ts +0 -21
  185. package/setup-areas.d.ts +0 -7
  186. package/setup-opencode-model-error.d.ts +0 -3
  187. package/setup-opencode-models.d.ts +0 -54
  188. package/setup-opencode-recipe.d.ts +0 -26
  189. package/setup-opencode.d.ts +0 -46
  190. package/shared-browser.d.ts +0 -50
  191. package/shell.d.ts +0 -17
  192. package/show.d.ts +0 -106
  193. package/skill-checks.d.ts +0 -73
  194. package/skill-checks.js +0 -10
  195. package/skills.d.ts +0 -16
  196. package/slot-tunnel.d.ts +0 -27
  197. package/snapshot.d.ts +0 -75
  198. package/splates-artifact.d.ts +0 -3
  199. package/splates-creds.d.ts +0 -3
  200. package/splates-dev.d.ts +0 -22
  201. package/splates-flags.d.ts +0 -34
  202. package/splates-lane.d.ts +0 -3
  203. package/splates-projects.d.ts +0 -3
  204. package/splates-setup.d.ts +0 -17
  205. package/splates-slots.d.ts +0 -3
  206. package/splates-todo.d.ts +0 -3
  207. package/stats.d.ts +0 -186
  208. package/supervise.d.ts +0 -50
  209. package/system-changes.d.ts +0 -67
  210. package/system.d.ts +0 -28
  211. package/systems.d.ts +0 -119
  212. package/systems.js +0 -21
  213. package/table.d.ts +0 -5
  214. package/task-log.d.ts +0 -35
  215. package/task-ports.d.ts +0 -25
  216. package/tell.d.ts +0 -47
  217. package/todo-edit.d.ts +0 -60
  218. package/todo-file.d.ts +0 -6
  219. package/todo-lanes.d.ts +0 -82
  220. package/todo-list.d.ts +0 -26
  221. package/todo-take.d.ts +0 -27
  222. package/todos.d.ts +0 -157
  223. package/tool-calls.d.ts +0 -18
  224. package/tunnel-provider.d.ts +0 -37
  225. package/tunnel-provider.js +0 -0
  226. package/tunnel-remove.d.ts +0 -28
  227. package/tunnel-setup.d.ts +0 -104
  228. package/unix-worker-listener.d.ts +0 -23
  229. package/unix-worker-socket.d.ts +0 -30
  230. package/update.d.ts +0 -29
  231. package/update.js +0 -10
  232. package/vocabulary.d.ts +0 -9
  233. package/wait.d.ts +0 -36
  234. package/watch.d.ts +0 -46
  235. package/watched.d.ts +0 -43
  236. package/websocket-worker-socket.d.ts +0 -18
  237. package/worker-call-host.d.ts +0 -51
  238. package/worker-channel.d.ts +0 -83
  239. package/worker-connection.d.ts +0 -24
  240. package/worker-daemon.d.ts +0 -64
  241. package/worker-git.d.ts +0 -18
  242. package/worker-list.d.ts +0 -49
  243. package/worker-machine.d.ts +0 -34
  244. package/worker-port-host.d.ts +0 -21
  245. package/worker-process-host.d.ts +0 -29
  246. package/worker-protocol.d.ts +0 -104
  247. package/worker-pty-host.d.ts +0 -34
  248. package/worker-registry.d.ts +0 -68
  249. package/worker-replay.d.ts +0 -25
  250. package/worker-run.d.ts +0 -20
  251. package/worker-session.d.ts +0 -189
  252. package/worker-socket.d.ts +0 -15
  253. package/worktree-service.d.ts +0 -113
  254. package/worktree.d.ts +0 -232
package/index-k73tsw5g.js DELETED
@@ -1,101 +0,0 @@
1
- // legacy-names.ts
2
- import { existsSync } from "node:fs";
3
- import { symlink } from "node:fs/promises";
4
- import { basename } from "node:path";
5
- var LEGACY = "arbor";
6
- var NEW_ENV = "SPLATES_";
7
- var OLD_ENV = "ARBOR_";
8
- function legacyName(name) {
9
- return name.startsWith(NEW_ENV) ? `${OLD_ENV}${name.slice(NEW_ENV.length)}` : null;
10
- }
11
- function renamed(old) {
12
- return old.startsWith(OLD_ENV) ? `${NEW_ENV}${old.slice(OLD_ENV.length)}` : null;
13
- }
14
- var LEGACY_CONFIG_FILE = "arbor.config.ts";
15
- var LEGACY_SYSTEMS_FILE = "arbor.systems.ts";
16
- var LEGACY_PLAN_FILE = "ARBOR.md";
17
- var LEGACY_DIR = "arbor";
18
-
19
- class Warnings {
20
- #said = new Set;
21
- once(name, instead) {
22
- if (this.#said.has(name)) {
23
- return;
24
- }
25
- this.#said.add(name);
26
- process.stderr.write(`splates: ${name} is an old name, kept for one more release: use ${instead}
27
- `);
28
- }
29
- }
30
- var legacyWarnings = new Warnings;
31
- function unmigrated(next, old) {
32
- return !existsSync(next) && existsSync(old) ? old : next;
33
- }
34
- async function moveLegacyDir(old, next, { fs, log, link = symlink }) {
35
- if (await fs.exists(next) || !await fs.exists(old) || await fs.isSymlink(old)) {
36
- return false;
37
- }
38
- try {
39
- await fs.rename(old, next);
40
- } catch (error) {
41
- if (await fs.exists(next)) {
42
- return false;
43
- }
44
- throw error;
45
- }
46
- await link(basename(next), old);
47
- log.info(`moved ${old} to ${next}, left a link behind`);
48
- return true;
49
- }
50
- async function movePlan(tree, planFile, fs) {
51
- const old = `${tree}/${LEGACY_PLAN_FILE}`;
52
- const next = `${tree}/${planFile}`;
53
- if (await fs.exists(old) && !await fs.exists(next)) {
54
- await fs.rename(old, next);
55
- }
56
- }
57
- function movedPath(path) {
58
- return path.replace(`/.git/${LEGACY_DIR}/`, "/.git/splates/");
59
- }
60
- function legacyFile(file) {
61
- const old = {
62
- "splates.config.ts": LEGACY_CONFIG_FILE,
63
- "splates.systems.ts": LEGACY_SYSTEMS_FILE
64
- };
65
- return old[file] ?? null;
66
- }
67
- async function renameLegacyFiles({
68
- root,
69
- fs,
70
- ps,
71
- log
72
- }) {
73
- for (const next of ["splates.config.ts", "splates.systems.ts"]) {
74
- const old = legacyFile(next);
75
- if (old === null || !await fs.exists(`${root}/${old}`) || await fs.exists(`${root}/${next}`)) {
76
- continue;
77
- }
78
- const { exitCode } = await ps.spawnCapture(["git", "mv", old, next], {
79
- cwd: root
80
- });
81
- if (exitCode !== 0) {
82
- await fs.rename(`${root}/${old}`, `${root}/${next}`);
83
- }
84
- const path = `${root}/${next}`;
85
- await fs.write(path, (await fs.read(path)).replaceAll("@webappwiz/arbor", "@stringsync/splates"));
86
- log.info(`renamed ${old} to ${next}`);
87
- }
88
- const manifest = await fs.read(`${root}/package.json`).catch(() => "");
89
- if (manifest.includes('"@webappwiz/arbor"')) {
90
- log.info("package.json names @webappwiz/arbor: install @stringsync/splates in its place");
91
- }
92
- }
93
- async function removeLegacySkill(path, { fs, log }) {
94
- if (!await fs.exists(path) || await fs.isSymlink(path)) {
95
- return;
96
- }
97
- await fs.rm(path, { recursive: true });
98
- log.info(`removed arbor's skill at ${path}: the splates skill replaces it`);
99
- }
100
-
101
- export { LEGACY, legacyName, renamed, LEGACY_PLAN_FILE, LEGACY_DIR, legacyWarnings, unmigrated, moveLegacyDir, movePlan, movedPath, legacyFile, renameLegacyFiles, removeLegacySkill };
package/index-kaa44k7q.js DELETED
@@ -1,59 +0,0 @@
1
- // exit.ts
2
- var EXIT = {
3
- usage: 1,
4
- conflict: 2,
5
- tests_failed: 3,
6
- lease_lost: 4,
7
- budget_exhausted: 5,
8
- lease_held: 6,
9
- dirty: 7,
10
- not_found: 8,
11
- hook_failed: 9,
12
- exists: 10,
13
- orphaned: 11,
14
- merge_failed: 12,
15
- already_removed: 13,
16
- timeout: 14,
17
- blocked: 16,
18
- cycle: 18,
19
- outdated: 19,
20
- uninitialized: 20,
21
- too_large: 21,
22
- dismissed: 22,
23
- no_secret_store: 23,
24
- cloudflare: 24,
25
- requested: 25,
26
- slots_full: 26,
27
- slot_running: 27,
28
- not_granted: 28,
29
- agents_full: 29
30
- };
31
-
32
- class Exit extends Error {
33
- reason;
34
- data;
35
- constructor(reason, message, data = {}) {
36
- super(message);
37
- this.reason = reason;
38
- this.data = data;
39
- }
40
- }
41
- function fail(reason, message, data = {}) {
42
- throw new Exit(reason, message, data);
43
- }
44
- function exits() {
45
- return async (ctx, next) => {
46
- try {
47
- await next(ctx);
48
- } catch (e) {
49
- if (!(e instanceof Exit)) {
50
- throw e;
51
- }
52
- ctx.log.info(JSON.stringify({ reason: e.reason, ...e.data }));
53
- ctx.log.error(e.message);
54
- ctx.ps.exit(EXIT[e.reason]);
55
- }
56
- };
57
- }
58
-
59
- export { EXIT, Exit, fail, exits };