@stringsync/splates 0.0.53 → 0.0.54

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 (60) hide show
  1. package/artifact.d.ts +3 -0
  2. package/budget.d.ts +3 -0
  3. package/creds.d.ts +3 -0
  4. package/flags.d.ts +37 -0
  5. package/hook.d.ts +3 -0
  6. package/index.d.ts +2 -0
  7. package/index.js +1802 -0
  8. package/infra.d.ts +3 -0
  9. package/lane.d.ts +3 -0
  10. package/notes.d.ts +4 -0
  11. package/package.json +12 -14
  12. package/projects.d.ts +3 -0
  13. package/queue.d.ts +3 -0
  14. package/server.d.ts +7 -0
  15. package/setup.d.ts +22 -0
  16. package/slots.d.ts +3 -0
  17. package/splates.d.ts +10 -0
  18. package/task.d.ts +3 -0
  19. package/tunnel.d.ts +3 -0
  20. package/waiting.d.ts +3 -0
  21. package/worker.d.ts +3 -0
  22. package/artifact.ts +0 -120
  23. package/budget.ts +0 -117
  24. package/checkout.ts +0 -8
  25. package/creds.test.ts +0 -336
  26. package/creds.ts +0 -144
  27. package/dev/dev.ts +0 -86
  28. package/dev/eval.ts +0 -21
  29. package/dev/fix.ts +0 -63
  30. package/dev/index.ts +0 -1
  31. package/dev/prove.ts +0 -38
  32. package/dev/root.ts +0 -7
  33. package/dev/ship.ts +0 -46
  34. package/dev/test.ts +0 -154
  35. package/e2e.test.ts +0 -472
  36. package/flags.ts +0 -157
  37. package/hook.ts +0 -328
  38. package/index.ts +0 -18
  39. package/infra.ts +0 -107
  40. package/lane.test.ts +0 -29
  41. package/lane.ts +0 -172
  42. package/notes.ts +0 -19
  43. package/projects.test.ts +0 -191
  44. package/projects.ts +0 -37
  45. package/queue.ts +0 -82
  46. package/screenshots/annotate.png +0 -0
  47. package/screenshots/demo.png +0 -0
  48. package/screenshots/parallel.png +0 -0
  49. package/screenshots/questions.png +0 -0
  50. package/server.ts +0 -287
  51. package/setup.ts +0 -233
  52. package/slots.ts +0 -65
  53. package/splates.test.ts +0 -338
  54. package/splates.ts +0 -567
  55. package/task.ts +0 -354
  56. package/tunnel.ts +0 -106
  57. package/wait-journal.test.ts +0 -96
  58. package/waiting.ts +0 -59
  59. package/worker-relay.test.ts +0 -233
  60. package/worker.ts +0 -300
package/artifact.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { SplatesDeps } from "@stringsync/splates-server/server";
2
+ /** `splates artifact`, which the root cli mounts after `splates attach`. */
3
+ export declare const splatesArtifact: import("webappwiz/cmd").Cli<SplatesDeps, SplatesDeps>;
package/budget.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { SplatesDeps } from "@stringsync/splates-server/server";
2
+ /** `splates budget`, which the root cli mounts beside `splates worker`. */
3
+ export declare const splatesBudget: import("webappwiz/cmd").Cli<SplatesDeps, SplatesDeps>;
package/creds.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { SplatesDeps } from "@stringsync/splates-server/server";
2
+ /** `splates creds`, which the root cli mounts after `splates lane`. */
3
+ export declare const splatesCreds: import("webappwiz/cmd").Cli<SplatesDeps, SplatesDeps>;
package/flags.d.ts ADDED
@@ -0,0 +1,37 @@
1
+ import { type AgentPick, Offered, type RosterAgent } from "@stringsync/splates-server/models";
2
+ import type { Repository } from "@stringsync/splates-server/records";
3
+ import type { SplatesDeps } from "@stringsync/splates-server/server";
4
+ import { SavedTunnel } from "@stringsync/splates-server/tunnel";
5
+ import { z } from "zod";
6
+ /** A place in the queue, 1 at the top; absent leaves it to the command. */
7
+ export declare const position: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
8
+ /**
9
+ * The agent `--agent`, `--model` and `--effort` name off the roster:
10
+ * undefined when none is given, null for `--agent none`.
11
+ */
12
+ export declare function assigneeIn(deps: SplatesDeps, agent: string, model: string, effort: string): Promise<AgentPick | null | undefined>;
13
+ /**
14
+ * `agent` on `model` off `agents`, at the thinking level `effort` names
15
+ * among those it offers, each left out when empty.
16
+ */
17
+ export declare function pickIn(deps: SplatesDeps, agents: RosterAgent[], agent: string, model: string, effort: string, data?: Record<string, unknown>): Promise<AgentPick>;
18
+ /**
19
+ * `{ effort }` for the thinking level `effort` names among those `agent`
20
+ * offered when last started, or nothing when it is empty.
21
+ */
22
+ export declare function effortIn(deps: SplatesDeps, agent: string, effort: string, data?: Record<string, unknown>): Promise<{
23
+ effort?: string;
24
+ }>;
25
+ /** The settings each agent offered when last started, from any project. */
26
+ export declare function offeredOf({ ps, fs }: SplatesDeps): Offered;
27
+ /** The tunnel each slot's home may have saved, for every word of the pool. */
28
+ export declare function slotTunnelsOf({ ps, fs, secrets, }: SplatesDeps): SavedTunnel[];
29
+ /** `--lane 3`, `new` or `none` as a lane; absent leaves it to the command. */
30
+ export declare function laneIn(raw: string): number | "new" | null | undefined;
31
+ /** `--task 3,5` as task numbers, refusing anything that is not one. */
32
+ export declare function taskIds(raw: string): number[];
33
+ /**
34
+ * Which task a command that takes no task name is about, so the journal can
35
+ * name it. `merge` reads it off the current branch.
36
+ */
37
+ export declare function here({ service, git, ps, project, }: SplatesDeps & Repository): Promise<string | null>;
package/hook.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import type { SplatesDeps } from "@stringsync/splates-server/server";
2
+ /** `splates hook`, which the root cli mounts beside `splates queue`. */
3
+ export declare const splatesHook: import("webappwiz/cmd").Cli<SplatesDeps, SplatesDeps>;
package/index.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env bun
2
+ export {};