fwdloop 0.11.0 → 0.13.0

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 (62) hide show
  1. package/bin/fwdloop +248 -27
  2. package/package.json +1 -1
  3. package/src/ask.js +3 -0
  4. package/src/authoring.js +103 -13
  5. package/src/books.js +23 -2
  6. package/src/canrun.js +36 -0
  7. package/src/config.js +256 -0
  8. package/src/declaration.js +72 -2
  9. package/src/drafter.js +53 -11
  10. package/src/draftspend.js +70 -0
  11. package/src/flow.js +43 -0
  12. package/src/keysfile.js +180 -0
  13. package/src/liveness.js +1 -1
  14. package/src/model-step.js +43 -8
  15. package/src/monthly.js +276 -0
  16. package/src/panel/author.js +482 -0
  17. package/src/panel/authorcard.js +297 -0
  18. package/src/panel/authorflows.js +312 -0
  19. package/src/panel/authorresume.js +149 -0
  20. package/src/panel/authorstart.js +257 -0
  21. package/src/panel/authorvalues.js +110 -0
  22. package/src/panel/data.js +228 -34
  23. package/src/panel/index.html +2073 -124
  24. package/src/panel/resume.js +14 -11
  25. package/src/panel/server.js +150 -117
  26. package/src/panel/settings.js +270 -0
  27. package/src/panel/spawn.js +77 -0
  28. package/src/provider.js +189 -43
  29. package/src/providershapes.js +19 -0
  30. package/src/runner.js +639 -85
  31. package/src/runvalues.js +178 -0
  32. package/src/send.js +10 -3
  33. package/src/setup.js +120 -0
  34. package/types/authoring.d.ts +24 -2
  35. package/types/books.d.ts +14 -2
  36. package/types/canrun.d.ts +32 -0
  37. package/types/config.d.ts +52 -0
  38. package/types/declaration.d.ts +9 -1
  39. package/types/drafter.d.ts +18 -2
  40. package/types/draftspend.d.ts +21 -0
  41. package/types/flow.d.ts +23 -0
  42. package/types/keysfile.d.ts +90 -0
  43. package/types/liveness.d.ts +2 -2
  44. package/types/model-step.d.ts +6 -2
  45. package/types/monthly.d.ts +130 -0
  46. package/types/panel/author.d.ts +335 -0
  47. package/types/panel/authorcard.d.ts +120 -0
  48. package/types/panel/authorflows.d.ts +175 -0
  49. package/types/panel/authorresume.d.ts +32 -0
  50. package/types/panel/authorstart.d.ts +115 -0
  51. package/types/panel/authorvalues.d.ts +62 -0
  52. package/types/panel/data.d.ts +103 -12
  53. package/types/panel/resume.d.ts +8 -1
  54. package/types/panel/server.d.ts +19 -33
  55. package/types/panel/settings.d.ts +23 -0
  56. package/types/panel/spawn.d.ts +30 -0
  57. package/types/provider.d.ts +123 -70
  58. package/types/providershapes.d.ts +11 -0
  59. package/types/runner.d.ts +120 -5
  60. package/types/runvalues.d.ts +97 -0
  61. package/types/send.d.ts +5 -1
  62. package/types/setup.d.ts +83 -0
@@ -0,0 +1,120 @@
1
+ /**
2
+ * The job box (M4e amendment 2 item 1), a pure function of its text. One non-empty line is one step; a line starting with `~` is a
3
+ * guardrail of the step above; `Ask:` / `Ask 2h:` (case-insensitive) is an ask with the card's wait / its own wait; empty lines are
4
+ * dropped. A refusal is `{ line, say }`, `line` = the 1-based line of the box (blank lines count, so the human can find it).
5
+ * @param {string} text
6
+ * @returns {{ steps: { n: number, text: string, ask: null | { wait: string|null, question: string }, guardrails: string[] }[], refusals: { line: number, say: string }[] }}
7
+ */
8
+ export function parseJobBox(text: string): {
9
+ steps: {
10
+ n: number;
11
+ text: string;
12
+ ask: null | {
13
+ wait: string | null;
14
+ question: string;
15
+ };
16
+ guardrails: string[];
17
+ }[];
18
+ refusals: {
19
+ line: number;
20
+ say: string;
21
+ }[];
22
+ };
23
+ /** The job file lines (`N. text`, ` guardrail: text`, `N. ask <wait>: question`) for parsed steps; the wait is ALWAYS written out. @param {ReturnType<typeof parseJobBox>['steps']} steps @param {string} askWait */
24
+ export function jobFileLines(steps: ReturnType<typeof parseJobBox>["steps"], askWait: string): string[];
25
+ /**
26
+ * The inputs box (amendment 2 item 2): one `name: path` per non-empty line, split at the FIRST colon. `line` is the line's own number
27
+ * as the box shows it (empty lines are skipped and not numbered). A line with no colon is flagged `noColon`.
28
+ * @param {string} text
29
+ * @returns {{ line: number, role: string, path: string, noColon?: true }[]}
30
+ */
31
+ export function parseInputLines(text: string): {
32
+ line: number;
33
+ role: string;
34
+ path: string;
35
+ noColon?: true;
36
+ }[];
37
+ /**
38
+ * Normalise what the page sent into the typed card (one reader of the request body's shape). Unknown fields are
39
+ * dropped; nothing here judges a value. `inputs` is the inputs box's TEXT (`name: path` per line); `destination` is the folder.
40
+ * @param {any} body
41
+ */
42
+ export function cardFields(body: any): {
43
+ flowName: string;
44
+ job: string;
45
+ destination: string;
46
+ inputs: string;
47
+ capUsd: any;
48
+ askWait: string;
49
+ };
50
+ /** The Run-a-signed-flow door's rows (a role is fixed by the signed flow): what the page sent, as `{role, path}`. @param {any} v */
51
+ export function runInputRows(v: any): {
52
+ role: string;
53
+ path: string;
54
+ }[];
55
+ /**
56
+ * The prose file text for a card whose fields already passed {@link checkCard}. The job lines come first (the job box's steps as the
57
+ * job file); the arbiter block is built only from the card's own fields. The ONE card -> prose function.
58
+ * @param {ReturnType<typeof cardFields>} card
59
+ * @returns {string}
60
+ */
61
+ export function cardToProse(card: ReturnType<typeof cardFields>): string;
62
+ /**
63
+ * The $0 check of the input rows, shared by the card (draft door) and the Run-a-signed-flow door: a role and a path on every row,
64
+ * a role shape the signed-text parser accepts and used once, each path a full path to a readable regular file (realpath at the
65
+ * click). Never reads a file's contents. A row from the card's inputs box carries its `line`: its refusal is field `inputs` and its
66
+ * sentence starts "Line N:". A Run-door row has no line: its refusal is field `inputs.<n>`.
67
+ * @param {{role: string, path: string, line?: number, noColon?: true}[]} rows
68
+ * @returns {{field: string, say: string}[]} one refusal per bad row
69
+ */
70
+ export function checkInputRows(rows: {
71
+ role: string;
72
+ path: string;
73
+ line?: number;
74
+ noColon?: true;
75
+ }[]): {
76
+ field: string;
77
+ say: string;
78
+ }[];
79
+ /**
80
+ * M4e amendment 4 item 2: the smallest per-run cap that funds ONE round of the first model step. The runner halts a step when
81
+ * `spent + ceiling > cap` (`runStepRalph`), and every ordinary (non-ask) step is a model step, so the floor is the runner's own
82
+ * per-round ceiling (`resolveCeilingUsd`) as soon as the job has one such line; a job of only asks spends nothing before its stop.
83
+ * ONE function: the card's Draft check, Sign, and the page's note all read it. Returns 0 when no step needs a round.
84
+ * @param {string} jobText
85
+ */
86
+ export function capFloorUsd(jobText: string): any;
87
+ /** The floor itself, for a caller that already knows whether the job has a step that is not an ask (a signed flow: any step off an ask line). @param {boolean} hasRoundStep */
88
+ export function capFloorFor(hasRoundStep: boolean): any;
89
+ /** The one sentence for a cap under the floor (red under Cap, and the Draft / sign refusal). @param {number} floorUsd */
90
+ export function capFloorText(floorUsd: number): string;
91
+ /**
92
+ * Amendment 1's destination checks, in ONE place: the New job card and the per-run destination of amendment 5 both ask it. `null` = fine,
93
+ * else the sentence (a folder that is the run folder, a flow folder, the root, `.drafts`, `.starts`, the config folder, a file, a missing
94
+ * folder, a path with a control character). Never overwrite is the send's own rule at write time.
95
+ * @param {string} dest the folder as typed @param {string} root the flows root
96
+ * @returns {string|null}
97
+ */
98
+ export function destinationRefusal(dest: string, root: string): string | null;
99
+ /**
100
+ * Every $0 check on the card, before any spawn (scope 6). Collects all refusals so the page can name every box.
101
+ * @param {ReturnType<typeof cardFields>} card
102
+ * @param {{ root: string, env?: Record<string, string|undefined> }} ctx `env` = the merged keys env: a key value typed into any box is refused
103
+ * @returns {{ ok: true, prose: string }|{ ok: false, refusals: {field: string, say: string}[] }}
104
+ */
105
+ export function checkCard(card: ReturnType<typeof cardFields>, { root, env }: {
106
+ root: string;
107
+ env?: Record<string, string | undefined>;
108
+ }): {
109
+ ok: true;
110
+ prose: string;
111
+ } | {
112
+ ok: false;
113
+ refusals: {
114
+ field: string;
115
+ say: string;
116
+ }[];
117
+ };
118
+ /** The heading line the prose files use (flows/job2-m6a-3/prose.txt); the parser matches `/^arbiter guardrails\b/i`. */
119
+ export const ARBITER_HEADING: "Arbiter guardrails (belong to no line; human-signed, tighten-only \u2014 never authored or claimed by the drafter):";
120
+ export function isAskWait(t: string): boolean;
@@ -0,0 +1,175 @@
1
+ /**
2
+ * What the Run / Resume forms show of a signed flow (read from its own files, never from a model): the job lines as the signed text has them
3
+ * (an ask line carries its question and its wait), the values the open boxes start from, and the cap floor. Amendment 5 item 2: all the rest is dimmed.
4
+ * @param {any} read `readFlow`'s ok result
5
+ */
6
+ export function formFacts(read: any): {
7
+ values: {
8
+ capUsd: number;
9
+ destination: string | null;
10
+ askWaits: Record<string, string>;
11
+ };
12
+ jobLines: any;
13
+ hasSend: boolean;
14
+ capFloorUsd: any;
15
+ floorText: string;
16
+ };
17
+ /**
18
+ * @param {{ root: string, home?: string, skipMonthly?: boolean, loadEnv: () => { ok: boolean, env: Record<string, string|undefined>, refusal: string|null }, starter: ReturnType<typeof import('./authorstart.js').createStarter>, monthlyClaim: (usd: number) => any }} opts
19
+ */
20
+ export function createFlowsDoor(opts: {
21
+ root: string;
22
+ home?: string;
23
+ skipMonthly?: boolean;
24
+ loadEnv: () => {
25
+ ok: boolean;
26
+ env: Record<string, string | undefined>;
27
+ refusal: string | null;
28
+ };
29
+ starter: ReturnType<typeof import("./authorstart.js").createStarter>;
30
+ monthlyClaim: (usd: number) => any;
31
+ }): {
32
+ /** `GET /api/author/flows`. */
33
+ flows(): {
34
+ status: number;
35
+ body: {
36
+ ok: boolean;
37
+ flows: never[];
38
+ leftThisMonth?: undefined;
39
+ };
40
+ } | {
41
+ status: number;
42
+ body: {
43
+ ok: boolean;
44
+ flows: {
45
+ values: {
46
+ capUsd: number;
47
+ destination: string | null;
48
+ askWaits: Record<string, string>;
49
+ };
50
+ jobLines: any;
51
+ hasSend: boolean;
52
+ capFloorUsd: any;
53
+ floorText: string;
54
+ flow: string;
55
+ capUsd: any;
56
+ roles: any;
57
+ nextRunId: string;
58
+ lastRunId: string | null;
59
+ lastSources: Record<string, string>;
60
+ leftThisMonth: any;
61
+ runs: {
62
+ sources: Record<string, string>;
63
+ values: {
64
+ capUsd: number;
65
+ destination: string | null;
66
+ askWaits: Record<string, string>;
67
+ };
68
+ runId: string;
69
+ }[];
70
+ stats: {
71
+ steps: any;
72
+ asks: number;
73
+ green: number;
74
+ notGreen: number;
75
+ avgSpendUsd: number | null;
76
+ avgWallMs: number | null;
77
+ };
78
+ }[];
79
+ leftThisMonth: {
80
+ limitUsd: null;
81
+ leftUsd: null;
82
+ atLeast: boolean;
83
+ say: string;
84
+ } | {
85
+ limitUsd: any;
86
+ leftUsd: number;
87
+ atLeast: any;
88
+ say: string;
89
+ };
90
+ };
91
+ };
92
+ /**
93
+ * `GET /api/author/run-again?flow=&runId=` (amendment 7 item 6): the Signed flow form for ONE run of a signed flow, any outcome, with that
94
+ * run's values and input paths as `pick`. The list's rule (passed run, preflight accepts) does not apply here; a flow the run's own
95
+ * preflight would refuse says why, in the preflight's words. Reads only.
96
+ * @param {string|null} flow @param {string|null} runId
97
+ */
98
+ runAgain(flow: string | null, runId: string | null): {
99
+ status: any;
100
+ body: {
101
+ ok: boolean;
102
+ refused: string;
103
+ say: any;
104
+ };
105
+ } | {
106
+ status: number;
107
+ body: {
108
+ ok: boolean;
109
+ flow: {
110
+ values: {
111
+ capUsd: number;
112
+ destination: string | null;
113
+ askWaits: Record<string, string>;
114
+ };
115
+ jobLines: any;
116
+ hasSend: boolean;
117
+ capFloorUsd: any;
118
+ floorText: string;
119
+ flow: string;
120
+ capUsd: any;
121
+ roles: any;
122
+ nextRunId: string;
123
+ lastRunId: string | null;
124
+ lastSources: Record<string, string>;
125
+ leftThisMonth: any;
126
+ runs: {
127
+ sources: Record<string, string>;
128
+ values: {
129
+ capUsd: number;
130
+ destination: string | null;
131
+ askWaits: Record<string, string>;
132
+ };
133
+ runId: string;
134
+ }[];
135
+ stats: {
136
+ steps: any;
137
+ asks: number;
138
+ green: number;
139
+ notGreen: number;
140
+ avgSpendUsd: number | null;
141
+ avgWallMs: number | null;
142
+ };
143
+ };
144
+ pick: {
145
+ sources: Record<string, string>;
146
+ values: {
147
+ capUsd: number;
148
+ destination: string | null;
149
+ askWaits: Record<string, string>;
150
+ };
151
+ runId: string;
152
+ };
153
+ };
154
+ };
155
+ /**
156
+ * `POST /api/author/run-prepare` (the first click of "Sign & run"): the same $0 checks as `run`, never starts anything and writes nothing.
157
+ * `needsSign` = the Destination, Cap $ or an ask wait differs from the flow's signed value, so the start needs the human's second click
158
+ * carrying `hash` (amendment 5 item 3); false = a plain Run (one click).
159
+ * @param {any} body
160
+ */
161
+ runPrepare(body: any): {
162
+ status: any;
163
+ body: any;
164
+ };
165
+ /**
166
+ * `POST /api/author/run`: $0 checks -> the one start. A refusal names the box, spends $0 and creates nothing. A run whose Destination, Cap $
167
+ * or ask wait differs from the flow's signed values starts only with the `hash` of those values (the human's second click, like page
168
+ * sign): none or a stale one signs nothing and starts nothing. The signed values are written once into the run's own folder first.
169
+ * @param {any} body
170
+ */
171
+ run(body: any): {
172
+ status: any;
173
+ body: any;
174
+ };
175
+ };
@@ -0,0 +1,32 @@
1
+ /**
2
+ * @param {{ root: string, loadEnv: () => { ok: boolean, env: Record<string, string|undefined>, refusal: string|null }, monthlyClaim: (usd: number) => any, starter: ReturnType<typeof import('./authorstart.js').createStarter> }} opts
3
+ */
4
+ export function createResumeDoor(opts: {
5
+ root: string;
6
+ loadEnv: () => {
7
+ ok: boolean;
8
+ env: Record<string, string | undefined>;
9
+ refusal: string | null;
10
+ };
11
+ monthlyClaim: (usd: number) => any;
12
+ starter: ReturnType<typeof import("./authorstart.js").createStarter>;
13
+ }): {
14
+ /**
15
+ * `GET /api/author/resume-form?flow=&runId=`: what the "Resume run-<n>" form shows — the same locating checks as the clicks (a run that is not
16
+ * stopped or cap-halted gets the same refusal), then the values in force (dimmed on the form except the cap), what the run has spent, the
17
+ * job lines as signed and the files it froze. Writes nothing.
18
+ * @param {string|null} flow @param {string|null} runId
19
+ */
20
+ form(flow: string | null, runId: string | null): {
21
+ status: any;
22
+ body: any;
23
+ };
24
+ /** `POST /api/author/resume-prepare`: the first click. Writes nothing. @param {any} body */
25
+ prepare(body: any): any;
26
+ /**
27
+ * `POST /api/author/resume`: the second click. The hash must be the one the disk gives now (a changed run, a changed cap, a newer version
28
+ * all make it stale); then the new version is written once and the continue is started. Anything else signs nothing, writes nothing.
29
+ * @param {any} body
30
+ */
31
+ resume(body: any): any;
32
+ };
@@ -0,0 +1,115 @@
1
+ /**
2
+ * @param {{ root: string, bin?: string }} opts
3
+ */
4
+ export function createStarter(opts: {
5
+ root: string;
6
+ bin?: string;
7
+ }): {
8
+ checkRun: (flow: string, runId: unknown) => {
9
+ ok: boolean;
10
+ say: string;
11
+ runDir?: undefined;
12
+ } | {
13
+ ok: boolean;
14
+ runDir: string;
15
+ say?: undefined;
16
+ };
17
+ /**
18
+ * Start `fwdloop run` for a flow whose every $0 check already passed at the calling door. Re-checks the run id here (nothing
19
+ * awaits between this check and the spawn). 202 { startId, runId } or a refusal; a refusal creates nothing.
20
+ * `runId` '' = no typed id: the start CLAIMS the next `run-<n>` itself (claimRunId, folder created exclusively; amendment 3).
21
+ * `values` (M4e amendment 5 item 3): the human's signed values for THIS run (the page's second click), written once into the run's own
22
+ * folder as `signed-values.json` BEFORE the spawn; the run then uses them (`pickRunValues`). None = the flow's own.
23
+ * @param {{ kind: 'run'|'sign', flow: string, runId: string, sources: {role: string, path: string}[], values?: any }} a
24
+ * @param {Record<string, string|undefined>} env the merged keys env: the child's env AND the scrub list
25
+ * @returns {{ status: number, body: any }}
26
+ */
27
+ start({ kind, flow, runId, sources, values, }: {
28
+ kind: "run" | "sign";
29
+ flow: string;
30
+ runId: string;
31
+ sources: {
32
+ role: string;
33
+ path: string;
34
+ }[];
35
+ values?: any;
36
+ }, env: Record<string, string | undefined>): {
37
+ status: number;
38
+ body: any;
39
+ };
40
+ /**
41
+ * Start `fwdloop continue <runId>` (M4e amendment 4 item 4): Resume of a stopped or cap-halted run, after the door wrote the run's new
42
+ * signed values version. The same detached-child shape as `start`; the start folder reads as `starting` until the child consumes
43
+ * `halt.json`, then `started`; a child that died with `halt.json` still there is `refused` with its own sentence. One start at a time per flow.
44
+ * @param {{ flow: string, runId: string, version: number }} a @param {Record<string, string|undefined>} env the merged keys env
45
+ * @returns {{ status: number, body: any }}
46
+ */
47
+ startContinue({ flow, runId, version }: {
48
+ flow: string;
49
+ runId: string;
50
+ version: number;
51
+ }, env: Record<string, string | undefined>): {
52
+ status: number;
53
+ body: any;
54
+ };
55
+ /**
56
+ * The newest start the human has not cleared, for a page that was reloaded: `starting` (re-attach the poll) or `refused` (show the
57
+ * CLI's sentence). Null when that start began (`started`: the run is in Runs) or there is none.
58
+ * @param {string[]} keys
59
+ */
60
+ newestOpen(keys: string[]): {
61
+ phase: string;
62
+ startId: string;
63
+ kind: any;
64
+ flow: any;
65
+ runId: any;
66
+ } | null;
67
+ /**
68
+ * `POST /api/author/start/:startId/clear`: the human dismisses a REFUSED start. Writes `cleared.json` once; any other phase is refused.
69
+ * @param {string} id @param {string[]} keys
70
+ */
71
+ clear(id: string, keys: string[]): {
72
+ status: number;
73
+ body: {
74
+ ok: boolean;
75
+ refused: string;
76
+ say?: undefined;
77
+ startId?: undefined;
78
+ };
79
+ } | {
80
+ status: number;
81
+ body: {
82
+ ok: boolean;
83
+ refused: string;
84
+ say: string;
85
+ startId?: undefined;
86
+ };
87
+ } | {
88
+ status: number;
89
+ body: {
90
+ ok: boolean;
91
+ startId: string;
92
+ refused?: undefined;
93
+ say?: undefined;
94
+ };
95
+ };
96
+ /** `GET /api/author/start/:startId`. @param {string} id @param {string[]} keys */
97
+ get(id: string, keys: string[]): {
98
+ status: number;
99
+ body: {
100
+ ok: boolean;
101
+ refused: string;
102
+ };
103
+ } | {
104
+ status: number;
105
+ body: {
106
+ phase: string;
107
+ startId: string;
108
+ kind: any;
109
+ flow: any;
110
+ runId: any;
111
+ ok: boolean;
112
+ refused?: undefined;
113
+ };
114
+ };
115
+ };
@@ -0,0 +1,62 @@
1
+ /**
2
+ * The smallest cap a Resume accepts: the next whole cent above what is spent, but never under the cap floor. ONE function for the
3
+ * door's refusal and the page's note, so the "at least $X" it names is itself accepted.
4
+ * @param {number} spentUsd @param {number} floorUsd
5
+ */
6
+ export function leastResumeCapUsd(spentUsd: number, floorUsd: number): number;
7
+ /**
8
+ * @param {object} a
9
+ * @param {string[]} a.allowedKeys the body keys this door takes; any other key is refused by name
10
+ * @param {any} a.body
11
+ * @param {{capUsd: number, destination: string|null, askWaits: Record<string,string>}} a.base the values in force now (the flow's own, or the run's newest signed version)
12
+ * @param {string} a.realRoot the flows root (real path)
13
+ * @param {boolean} a.capOnly Resume: destination and waits are never read from the body
14
+ * @param {number} a.floorUsd the smallest cap that funds one round of a step (amendment 4 item 2); 0 = none
15
+ * @param {number} [a.spentUsd] what the run has already spent (Resume): the cap must be above it
16
+ * @param {boolean} [a.always] Resume: the floor and the monthly check always apply. A Run applies them only when its cap differs from the
17
+ * flow's own (a plain Run keeps the CLI's own gate, as it always did), so an old flow signed below today's floor still runs plain.
18
+ * @param {(remainingUsd: number) => null | { problem: string } | { ok: boolean, room: any }} a.monthlyClaim the one monthly check
19
+ * @returns {{ ok: true, values: {capUsd: number, destination: string|null, askWaits: Record<string,string>}, differs: boolean, remainingUsd: number } | { ok: false, status: number, refusals: {field: string, say: string}[], refused?: string, say?: string }}
20
+ */
21
+ export function checkValues({ allowedKeys, body, base, realRoot, capOnly, floorUsd, spentUsd, monthlyClaim, always, }: {
22
+ allowedKeys: string[];
23
+ body: any;
24
+ base: {
25
+ capUsd: number;
26
+ destination: string | null;
27
+ askWaits: Record<string, string>;
28
+ };
29
+ realRoot: string;
30
+ capOnly: boolean;
31
+ floorUsd: number;
32
+ spentUsd?: number | undefined;
33
+ always?: boolean | undefined;
34
+ monthlyClaim: (remainingUsd: number) => null | {
35
+ problem: string;
36
+ } | {
37
+ ok: boolean;
38
+ room: any;
39
+ };
40
+ }): {
41
+ ok: true;
42
+ values: {
43
+ capUsd: number;
44
+ destination: string | null;
45
+ askWaits: Record<string, string>;
46
+ };
47
+ differs: boolean;
48
+ remainingUsd: number;
49
+ } | {
50
+ ok: false;
51
+ status: number;
52
+ refusals: {
53
+ field: string;
54
+ say: string;
55
+ }[];
56
+ refused?: string;
57
+ say?: string;
58
+ };
59
+ export const NEW_FLOW_SAY: "Only the files, the destination, the money cap and an ask's wait can change from one run to the next. A change to a job line, an ask's words or the steps is a new flow: use New job.";
60
+ export const RESUME_ONLY_CAP_SAY: "A resume changes only the cap. New files or a new destination or ask wait is a new run of this flow (Run a signed flow); a change to a job line or an ask is a new flow (New job).";
61
+ export { valuesHash };
62
+ import { valuesHash } from '../runvalues.js';