fwdloop 0.38.0 → 0.40.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.
- package/README.md +6 -9
- package/bin/fwdloop +21 -19
- package/package.json +1 -1
- package/src/ask.js +70 -148
- package/src/audit-fold.js +6 -5
- package/src/auditchecks.js +6 -4
- package/src/authoring.js +32 -60
- package/src/blockasks.js +2 -1
- package/src/blockassemble.js +15 -3
- package/src/blockdraft.js +2 -2
- package/src/blockpick.js +42 -16
- package/src/books.js +237 -12
- package/src/checkblock.js +24 -44
- package/src/checklistsign.js +25 -3
- package/src/checklook.js +3 -1
- package/src/checkpick.js +6 -77
- package/src/cited-source.js +4 -4
- package/src/citedcheck.js +6 -11
- package/src/citedwords.js +9 -8
- package/src/closers.js +9 -6
- package/src/declaration.js +14 -49
- package/src/diary.js +23 -1
- package/src/draft-steps.js +11 -1
- package/src/drafter.js +18 -12
- package/src/draftfiles.js +127 -0
- package/src/draftspend.js +165 -17
- package/src/flow.js +42 -87
- package/src/flowmodel.js +1 -1
- package/src/index.js +3 -2
- package/src/inside.js +106 -0
- package/src/jsonl-append.js +33 -1
- package/src/learn.js +1 -1
- package/src/learnstore.js +20 -22
- package/src/line-checks.js +1 -1
- package/src/liveness.js +3 -0
- package/src/mcp-use.js +8 -9
- package/src/memo.js +13 -16
- package/src/model-step.js +2 -2
- package/src/page-words.js +8 -0
- package/src/pageask.js +8 -3
- package/src/pagebits.js +8 -1
- package/src/pagedropwords.js +1 -1
- package/src/pagerules.js +6 -3
- package/src/panel/author.js +99 -75
- package/src/panel/authorcard.js +21 -8
- package/src/panel/authorflows.js +3 -3
- package/src/panel/authorresume.js +3 -3
- package/src/panel/authorstart.js +15 -16
- package/src/panel/authortrigger.js +43 -70
- package/src/panel/data.js +186 -188
- package/src/panel/index.html +139 -115
- package/src/panel/jobgrid.js +3 -7
- package/src/panel/result.js +7 -10
- package/src/panel/resume.js +4 -3
- package/src/panel/scheduler.js +9 -9
- package/src/panel/server.js +8 -4
- package/src/panel/spawn.js +22 -11
- package/src/panel/tickets.js +2 -2
- package/src/pickrecord.js +51 -31
- package/src/placerule.js +3 -4
- package/src/plain-checks.js +1 -1
- package/src/planrebuild.js +19 -19
- package/src/primitives.js +1 -1
- package/src/provider.js +1 -1
- package/src/reasons.js +25 -0
- package/src/runfile.js +26 -2
- package/src/runner.js +57 -105
- package/src/runvalues.js +47 -24
- package/src/schedule-choices.js +41 -0
- package/src/schedule-shape.js +39 -0
- package/src/schedule.js +9 -8
- package/src/setup.js +20 -36
- package/src/shaperows.js +2 -2
- package/src/sheetblock.js +2 -2
- package/src/sheetbuild.js +5 -5
- package/src/sheetrun.js +4 -5
- package/src/summary-words.js +2 -1
- package/src/thinking.js +5 -2
- package/src/ticketrows.js +7 -28
- package/src/trigger-clock.js +9 -23
- package/src/trigger-files.js +30 -22
- package/src/trigger-tickets.js +15 -14
- package/src/try-checks.js +2 -1
- package/src/types.js +2 -0
- package/types/ask.d.ts +25 -20
- package/types/authoring.d.ts +7 -42
- package/types/blockpick.d.ts +1 -1
- package/types/books.d.ts +380 -4
- package/types/checkblock.d.ts +1 -23
- package/types/checklist.d.ts +3 -3
- package/types/checklistsign.d.ts +7 -0
- package/types/checkpick.d.ts +0 -21
- package/types/citedwords.d.ts +7 -4
- package/types/closers.d.ts +1 -0
- package/types/declaration.d.ts +4 -14
- package/types/diary.d.ts +14 -1
- package/types/draft-steps.d.ts +7 -0
- package/types/drafter.d.ts +1 -1
- package/types/draftfiles.d.ts +89 -0
- package/types/draftspend.d.ts +74 -0
- package/types/flow.d.ts +32 -54
- package/types/index.d.ts +3 -3
- package/types/inside.d.ts +71 -0
- package/types/jsonl-append.d.ts +20 -0
- package/types/learnstore.d.ts +0 -2
- package/types/liveness.d.ts +1 -0
- package/types/page-words.d.ts +6 -0
- package/types/pageask.d.ts +2 -0
- package/types/pagebits.d.ts +3 -0
- package/types/pagerules.d.ts +1 -0
- package/types/panel/author.d.ts +7 -3
- package/types/panel/authorcard.d.ts +0 -6
- package/types/panel/authorflows.d.ts +4 -4
- package/types/panel/authortrigger.d.ts +16 -2
- package/types/panel/data.d.ts +50 -16
- package/types/panel/spawn.d.ts +18 -2
- package/types/pickrecord.d.ts +29 -0
- package/types/reasons.d.ts +23 -0
- package/types/runfile.d.ts +14 -0
- package/types/runner.d.ts +6 -38
- package/types/runvalues.d.ts +17 -2
- package/types/schedule-choices.d.ts +9 -0
- package/types/schedule-shape.d.ts +15 -0
- package/types/sheetbuild.d.ts +1 -1
- package/types/thinking.d.ts +1 -0
- package/types/ticketrows.d.ts +0 -9
- package/types/trigger-clock.d.ts +3 -2
- package/types/trigger-files.d.ts +15 -4
- package/types/types.d.ts +8 -0
package/types/books.d.ts
CHANGED
|
@@ -17,6 +17,31 @@ export function appendPidRow(runDir: string, row: {
|
|
|
17
17
|
* @returns {any[]}
|
|
18
18
|
*/
|
|
19
19
|
export function readPidRows(runDir: string): any[];
|
|
20
|
+
/**
|
|
21
|
+
* M20 am3b item 1: the ONE reader of a run's saved answer, `answer.json` (what `answerAsk` writes; the resume consumes it by renaming it away). Through the safe
|
|
22
|
+
* gateway (a symlink or a file outside the folder is refused). It parses nothing else's words: each caller keeps its own refusal sentence and reads these fields.
|
|
23
|
+
* `broken` = no JSON object, no `askId`, or no readable `answeredAt`: the file is not a usable answer for any ask. `value` is the parsed JSON as it is (any shape),
|
|
24
|
+
* `parseError` the parser's message when the text is not JSON, `isObject` says `value` is a plain JSON object. `decision` is the file's own word, not normalised.
|
|
25
|
+
* @param {string} runDir
|
|
26
|
+
* @returns {{ok: false, missing: boolean, red: string}
|
|
27
|
+
* | {ok: true, value: any, parseError: string|null, isObject: boolean, askId: string|null, decision: string|null, answeredAt: string|null, broken: boolean}}
|
|
28
|
+
*/
|
|
29
|
+
export function readSavedAnswer(runDir: string): {
|
|
30
|
+
ok: false;
|
|
31
|
+
missing: boolean;
|
|
32
|
+
red: string;
|
|
33
|
+
} | {
|
|
34
|
+
ok: true;
|
|
35
|
+
value: any;
|
|
36
|
+
parseError: string | null;
|
|
37
|
+
isObject: boolean;
|
|
38
|
+
askId: string | null;
|
|
39
|
+
decision: string | null;
|
|
40
|
+
answeredAt: string | null;
|
|
41
|
+
broken: boolean;
|
|
42
|
+
};
|
|
43
|
+
/** Has a process started on this run? (the run wrote its first pid row; a run with none is still starting, or never started) @param {string} runDir */
|
|
44
|
+
export function processStarted(runDir: string): boolean;
|
|
20
45
|
/**
|
|
21
46
|
* Raw read-back of one JSONL book, one writer's own sibling reader (M4a
|
|
22
47
|
* piece 2, docs/wiki/the-module-ladder.md M4a scope item 2: "one reader per
|
|
@@ -100,10 +125,20 @@ export function auditRowAt(row: Record<string, any>): {
|
|
|
100
125
|
* Read back every row `appendAudit` has written for one run, in file order
|
|
101
126
|
* (append order — never re-sorted). `[]` when the file doesn't exist yet
|
|
102
127
|
* (a run that hasn't made an attempt), never a thrown error.
|
|
128
|
+
* `{ strict: true }` is the one named mode for the money sum: `{ok:true, rows}` or `{ok:false, red}` on a torn line.
|
|
103
129
|
* @param {string} runDir
|
|
104
|
-
* @
|
|
130
|
+
* @param {{strict?: boolean}} [opts]
|
|
131
|
+
* @returns {any}
|
|
105
132
|
*/
|
|
106
|
-
export function readAudit(runDir: string
|
|
133
|
+
export function readAudit(runDir: string, { strict }?: {
|
|
134
|
+
strict?: boolean;
|
|
135
|
+
}): any;
|
|
136
|
+
/**
|
|
137
|
+
* The one reader of a run's `trigger.json` (why it started): an object, or `null` (a hand run, a missing, refused or unreadable file, a non-object).
|
|
138
|
+
* @param {string} runDir
|
|
139
|
+
* @returns {Record<string, any>|null}
|
|
140
|
+
*/
|
|
141
|
+
export function readTriggerRecord(runDir: string): Record<string, any> | null;
|
|
107
142
|
/**
|
|
108
143
|
* One row per run. `row` shape: `{ runId, at, outcome, spentUsd,
|
|
109
144
|
* spendComplete, capUsd, wallMs, signatureHash }`. Append-only, one writer.
|
|
@@ -120,6 +155,26 @@ export function appendHistory(flowDir: string, row: Record<string, any>): void;
|
|
|
120
155
|
* @returns {any[]}
|
|
121
156
|
*/
|
|
122
157
|
export function readHistory(flowDir: string): any[];
|
|
158
|
+
/**
|
|
159
|
+
* M20 am3g item 22: the ONE rule for why a run is red: the log's own `red` when it is a non-empty string, else the LAST red audit row as `<step>: <gap>` (a step can fail,
|
|
160
|
+
* redo and fail again differently; the most recent stop is where the run sits now), else null. The Run tab and the Result tab ask it and keep their own guards and words.
|
|
161
|
+
* @param {any} logJson the run's log.json (or null) @param {any[]} auditRows @returns {string|null}
|
|
162
|
+
*/
|
|
163
|
+
export function redWhyOf(logJson: any, auditRows: any[]): string | null;
|
|
164
|
+
/** the Runs list's bold word for an ending (`null` for none) @param {string} w @returns {string|null} */
|
|
165
|
+
export function endingWord(w: string): string | null;
|
|
166
|
+
/**
|
|
167
|
+
* M20 am9 / am9b: the ONE owner of an Audit row's sign, word and try mark. `closeClass`, `gap` and `human` (the row is the Ask's own, `isAskRow`) are its inputs: a `red` on a
|
|
168
|
+
* `hitl` step that the person wrote is their redo, no sign, "redo by you: <gap>" (mark ✗); the same red written by a model is a plain red, failed ✗. A verdict that is not a string reads "unknown" ✗; a verdict with no `audit` column (a run-only ending, or a word the table
|
|
169
|
+
* does not hold) reads failed ✗, as the page always drew it.
|
|
170
|
+
* @param {unknown} verdict @param {string|null|undefined} [closeClass] @param {string|null|undefined} [gap] @param {boolean} [human]
|
|
171
|
+
* @returns {{sign: '✓'|'✗'|'■'|null, word: string, mark: '✓'|'✗'|'·'|'■'}}
|
|
172
|
+
*/
|
|
173
|
+
export function auditSignWord(verdict: unknown, closeClass?: string | null | undefined, gap?: string | null | undefined, human?: boolean): {
|
|
174
|
+
sign: "\u2713" | "\u2717" | "\u25A0" | null;
|
|
175
|
+
word: string;
|
|
176
|
+
mark: "\u2713" | "\u2717" | "\u00B7" | "\u25A0";
|
|
177
|
+
};
|
|
123
178
|
/**
|
|
124
179
|
* The ONE rule for "how did this run end": the LAST history row of the run (a run that was stopped or cap-halted and
|
|
125
180
|
* continued has one row per leg; history stays append-only). `null` when the run has no row yet, and also while a
|
|
@@ -130,5 +185,326 @@ export function readHistory(flowDir: string): any[];
|
|
|
130
185
|
* @returns {any|null}
|
|
131
186
|
*/
|
|
132
187
|
export function endRow(historyRows: any[], runDir: string, runId: string): any | null;
|
|
133
|
-
/** The
|
|
134
|
-
export
|
|
188
|
+
/** The one place `halt.<n>.consumed.json` is named: how many a run holds, and the name the next continue renames halt.json to. @param {string} runDir */
|
|
189
|
+
export function haltConsumedCount(runDir: string): number;
|
|
190
|
+
/** @param {string} runDir */
|
|
191
|
+
export function nextHaltConsumedName(runDir: string): string;
|
|
192
|
+
/** The one reader of halt.json (the run is waiting = the file EXISTS, parse or not: see {@link haltFileExists}): `{ok:true, halt}`, `{ok:false, missing:true}` (not resumable), or `{ok:false, red}`. @param {string} runDir */
|
|
193
|
+
export function readHaltRecord(runDir: string): {
|
|
194
|
+
ok: boolean;
|
|
195
|
+
missing: boolean;
|
|
196
|
+
red?: undefined;
|
|
197
|
+
halt?: undefined;
|
|
198
|
+
} | {
|
|
199
|
+
ok: boolean;
|
|
200
|
+
red: string;
|
|
201
|
+
missing?: undefined;
|
|
202
|
+
halt?: undefined;
|
|
203
|
+
} | {
|
|
204
|
+
ok: boolean;
|
|
205
|
+
halt: any;
|
|
206
|
+
missing?: undefined;
|
|
207
|
+
red?: undefined;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* `writeLog`'s own sibling reader (M4a piece 2, docs/wiki/the-module-
|
|
211
|
+
* ladder.md M4a scope item 2: "one reader per book") — `null` when the run
|
|
212
|
+
* hasn't reached an exit path yet (still running, or parked before any
|
|
213
|
+
* halt/complete), or the file is present but not valid JSON (a torn write),
|
|
214
|
+
* never a thrown error.
|
|
215
|
+
* @param {string} runDir
|
|
216
|
+
* @returns {any|null}
|
|
217
|
+
*/
|
|
218
|
+
export function readLog(runDir: string): any | null;
|
|
219
|
+
/**
|
|
220
|
+
* `state.json`'s own sibling reader (same rule as {@link readLog}) — `null`
|
|
221
|
+
* when the run has never parked, or the file is present but not valid JSON. `{ strict: true }` (Resume) returns
|
|
222
|
+
* `{ok:true, state}`, `{ok:false, missing:true}` or `{ok:false, red}` instead.
|
|
223
|
+
* @param {string} runDir
|
|
224
|
+
* @param {{strict?: boolean}} [opts]
|
|
225
|
+
* @returns {any}
|
|
226
|
+
*/
|
|
227
|
+
export function readRunState(runDir: string, { strict }?: {
|
|
228
|
+
strict?: boolean;
|
|
229
|
+
}): any;
|
|
230
|
+
/**
|
|
231
|
+
* "Is this run waiting to be resumed?" as the panel's start watcher has always read it: a `halt.json` that EXISTS means
|
|
232
|
+
* waiting, even when it does not parse (unlike {@link readHaltRecord}, where a torn file is a red). One name for that rule.
|
|
233
|
+
* @param {string} runDir
|
|
234
|
+
*/
|
|
235
|
+
export function haltFileExists(runDir: string): boolean;
|
|
236
|
+
export function consumedAnswerName(askId: string): string;
|
|
237
|
+
export function askIdOfConsumedName(name: string): string | null;
|
|
238
|
+
export const HALT_FILE: "halt.json";
|
|
239
|
+
/**
|
|
240
|
+
* M20 am1 item 1: the ONE table of endings. Every history outcome and every audit verdict fwd writes is a key; the flags say what it
|
|
241
|
+
* means, and every reader asks a helper below (never its own list of words):
|
|
242
|
+
* good the run or try passed resumable `halt.json` is left, the run can be continued
|
|
243
|
+
* notFailed not a failure of the job (complete, a stop, a cap halt, a rerun, an expired ask, a skipped ticket)
|
|
244
|
+
* noise the instrument failed, not the work (learnings set the run aside)
|
|
245
|
+
* blocked a verdict that stopped a step, the Run tab's "blocked" line
|
|
246
|
+
* open the Audit's `·` mark: waiting / a human note, not yet resolved either way
|
|
247
|
+
* waiting a step whose last row is this is parked stopNote a Stop's own note row, never a try
|
|
248
|
+
* humanNo the human's own no (the ask fold's `✗`) redTry a try that said the output was wrong
|
|
249
|
+
* tryVerdict a step's try with a verdict on its output spendFloor a halt whose spend can be a floor
|
|
250
|
+
* draftRow a verdict a drafting row of the Audit can carry (anything else reads not-done)
|
|
251
|
+
* notRunEnd not an end of a run (a pause, a failed stop, a skipped ticket): learnings wait
|
|
252
|
+
* word the Runs list's bold word for it (`null` = none: a run the human ended with rerun)
|
|
253
|
+
* audit M20 am9: what an Audit row of this verdict shows: `sign` (`null` = none), `word` and the try `mark` it gives its try. The run's `word` and the Audit's
|
|
254
|
+
* differ (ask-expired reads "expired" on the run, "expired waiting for you" on the row), so they are two columns; read it through `auditSignWord`
|
|
255
|
+
* runOnly an ending of a run only, never a verdict of an Audit row (no `audit` column); `auditSignWord` treats it like a word the table does not hold: failed, ✗
|
|
256
|
+
* Outcome (history.jsonl) and verdict (audit.jsonl) are not split: one word means one thing on either book.
|
|
257
|
+
* Not here, by design: the scheduler's own words (busy, monthly-exhausted, refused fire), the closers' verdicts (done, crash,
|
|
258
|
+
* unparseable), and the Run tab's ending sentences (src/summary-words.js stays their one owner).
|
|
259
|
+
*/
|
|
260
|
+
export const ENDINGS: Readonly<{
|
|
261
|
+
complete: {
|
|
262
|
+
good: boolean;
|
|
263
|
+
notFailed: boolean;
|
|
264
|
+
word: string;
|
|
265
|
+
runOnly: boolean;
|
|
266
|
+
};
|
|
267
|
+
skipped: {
|
|
268
|
+
notFailed: boolean;
|
|
269
|
+
notRunEnd: boolean;
|
|
270
|
+
word: string;
|
|
271
|
+
runOnly: boolean;
|
|
272
|
+
};
|
|
273
|
+
stopped: {
|
|
274
|
+
resumable: boolean;
|
|
275
|
+
notFailed: boolean;
|
|
276
|
+
open: boolean;
|
|
277
|
+
humanNo: boolean;
|
|
278
|
+
word: string;
|
|
279
|
+
audit: {
|
|
280
|
+
sign: null;
|
|
281
|
+
word: string;
|
|
282
|
+
mark: string;
|
|
283
|
+
};
|
|
284
|
+
};
|
|
285
|
+
'cap-halt': {
|
|
286
|
+
resumable: boolean;
|
|
287
|
+
notFailed: boolean;
|
|
288
|
+
blocked: boolean;
|
|
289
|
+
spendFloor: boolean;
|
|
290
|
+
word: string;
|
|
291
|
+
audit: {
|
|
292
|
+
sign: string;
|
|
293
|
+
word: string;
|
|
294
|
+
mark: string;
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
rerun: {
|
|
298
|
+
notFailed: boolean;
|
|
299
|
+
word: null;
|
|
300
|
+
runOnly: boolean;
|
|
301
|
+
};
|
|
302
|
+
'ask-expired': {
|
|
303
|
+
notFailed: boolean;
|
|
304
|
+
blocked: boolean;
|
|
305
|
+
open: boolean;
|
|
306
|
+
word: string;
|
|
307
|
+
audit: {
|
|
308
|
+
sign: null;
|
|
309
|
+
word: string;
|
|
310
|
+
mark: string;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
'ask-timeout': {
|
|
314
|
+
blocked: boolean;
|
|
315
|
+
open: boolean;
|
|
316
|
+
word: string;
|
|
317
|
+
audit: {
|
|
318
|
+
sign: null;
|
|
319
|
+
word: string;
|
|
320
|
+
mark: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
refused: {
|
|
324
|
+
blocked: boolean;
|
|
325
|
+
open: boolean;
|
|
326
|
+
waiting: boolean;
|
|
327
|
+
word: string;
|
|
328
|
+
audit: {
|
|
329
|
+
sign: null;
|
|
330
|
+
word: string;
|
|
331
|
+
mark: string;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
red: {
|
|
335
|
+
blocked: boolean;
|
|
336
|
+
humanNo: boolean;
|
|
337
|
+
redTry: boolean;
|
|
338
|
+
tryVerdict: boolean;
|
|
339
|
+
draftRow: boolean;
|
|
340
|
+
word: string;
|
|
341
|
+
audit: {
|
|
342
|
+
sign: string;
|
|
343
|
+
word: string;
|
|
344
|
+
mark: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
'not-done': {
|
|
348
|
+
blocked: boolean;
|
|
349
|
+
redTry: boolean;
|
|
350
|
+
tryVerdict: boolean;
|
|
351
|
+
word: string;
|
|
352
|
+
audit: {
|
|
353
|
+
sign: string;
|
|
354
|
+
word: string;
|
|
355
|
+
mark: string;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
'provider-red': {
|
|
359
|
+
blocked: boolean;
|
|
360
|
+
noise: boolean;
|
|
361
|
+
spendFloor: boolean;
|
|
362
|
+
word: string;
|
|
363
|
+
audit: {
|
|
364
|
+
sign: string;
|
|
365
|
+
word: string;
|
|
366
|
+
mark: string;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
'pricing-red': {
|
|
370
|
+
blocked: boolean;
|
|
371
|
+
spendFloor: boolean;
|
|
372
|
+
word: string;
|
|
373
|
+
audit: {
|
|
374
|
+
sign: string;
|
|
375
|
+
word: string;
|
|
376
|
+
mark: string;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
'close-casualty': {
|
|
380
|
+
blocked: boolean;
|
|
381
|
+
noise: boolean;
|
|
382
|
+
word: string;
|
|
383
|
+
audit: {
|
|
384
|
+
sign: string;
|
|
385
|
+
word: string;
|
|
386
|
+
mark: string;
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
'preflight-red': {
|
|
390
|
+
word: string;
|
|
391
|
+
runOnly: boolean;
|
|
392
|
+
};
|
|
393
|
+
'struck-out': {
|
|
394
|
+
word: string;
|
|
395
|
+
runOnly: boolean;
|
|
396
|
+
};
|
|
397
|
+
'attempt-fallback': {
|
|
398
|
+
word: string;
|
|
399
|
+
runOnly: boolean;
|
|
400
|
+
};
|
|
401
|
+
'redo-halt': {
|
|
402
|
+
word: string;
|
|
403
|
+
runOnly: boolean;
|
|
404
|
+
};
|
|
405
|
+
'stop-failed': {
|
|
406
|
+
notRunEnd: boolean;
|
|
407
|
+
word: string;
|
|
408
|
+
runOnly: boolean;
|
|
409
|
+
};
|
|
410
|
+
green: {
|
|
411
|
+
good: boolean;
|
|
412
|
+
tryVerdict: boolean;
|
|
413
|
+
draftRow: boolean;
|
|
414
|
+
audit: {
|
|
415
|
+
sign: string;
|
|
416
|
+
word: string;
|
|
417
|
+
mark: string;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
hitl: {
|
|
421
|
+
good: boolean;
|
|
422
|
+
tryVerdict: boolean;
|
|
423
|
+
audit: {
|
|
424
|
+
sign: string;
|
|
425
|
+
word: string;
|
|
426
|
+
mark: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
softgreen: {
|
|
430
|
+
tryVerdict: boolean;
|
|
431
|
+
audit: {
|
|
432
|
+
sign: string;
|
|
433
|
+
word: string;
|
|
434
|
+
mark: string;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
paused: {
|
|
438
|
+
open: boolean;
|
|
439
|
+
waiting: boolean;
|
|
440
|
+
notRunEnd: boolean;
|
|
441
|
+
audit: {
|
|
442
|
+
sign: null;
|
|
443
|
+
word: string;
|
|
444
|
+
mark: string;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
'ask-reopened': {
|
|
448
|
+
open: boolean;
|
|
449
|
+
audit: {
|
|
450
|
+
sign: null;
|
|
451
|
+
word: string;
|
|
452
|
+
mark: string;
|
|
453
|
+
};
|
|
454
|
+
};
|
|
455
|
+
'lock-removed': {
|
|
456
|
+
open: boolean;
|
|
457
|
+
audit: {
|
|
458
|
+
sign: null;
|
|
459
|
+
word: string;
|
|
460
|
+
mark: string;
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
'stop-asked': {
|
|
464
|
+
open: boolean;
|
|
465
|
+
stopNote: boolean;
|
|
466
|
+
audit: {
|
|
467
|
+
sign: null;
|
|
468
|
+
word: string;
|
|
469
|
+
mark: string;
|
|
470
|
+
};
|
|
471
|
+
};
|
|
472
|
+
'stop-not-honoured': {
|
|
473
|
+
open: boolean;
|
|
474
|
+
stopNote: boolean;
|
|
475
|
+
audit: {
|
|
476
|
+
sign: null;
|
|
477
|
+
word: string;
|
|
478
|
+
mark: string;
|
|
479
|
+
};
|
|
480
|
+
};
|
|
481
|
+
'stale-answer-ignored': {
|
|
482
|
+
audit: {
|
|
483
|
+
sign: string;
|
|
484
|
+
word: string;
|
|
485
|
+
mark: string;
|
|
486
|
+
};
|
|
487
|
+
};
|
|
488
|
+
'answer-after-run': {
|
|
489
|
+
audit: {
|
|
490
|
+
sign: string;
|
|
491
|
+
word: string;
|
|
492
|
+
mark: string;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
}>;
|
|
496
|
+
export function isGoodEnding(w: unknown): boolean;
|
|
497
|
+
export function isFailedEnding(w: unknown): boolean;
|
|
498
|
+
export function isNoiseEnding(w: unknown): boolean;
|
|
499
|
+
export function isBlockedEnding(w: unknown): boolean;
|
|
500
|
+
export function isOpenEnding(w: unknown): boolean;
|
|
501
|
+
export function isWaitingEnding(w: unknown): boolean;
|
|
502
|
+
export function isStopNote(w: unknown): boolean;
|
|
503
|
+
export function isHumanNo(w: unknown): boolean;
|
|
504
|
+
export function isRedTry(w: unknown): boolean;
|
|
505
|
+
export function isTryVerdict(w: unknown): boolean;
|
|
506
|
+
export function isSpendFloorEnding(w: unknown): boolean;
|
|
507
|
+
export function isDraftRowVerdict(w: unknown): boolean;
|
|
508
|
+
export function isNotRunEnd(w: unknown): boolean;
|
|
509
|
+
export function isResumableEnding(w: unknown): boolean;
|
|
510
|
+
export function isAskRow(row: any): boolean;
|
package/types/checkblock.d.ts
CHANGED
|
@@ -31,29 +31,7 @@ export function choiceEntries(lines: {
|
|
|
31
31
|
/** what `setSheet` is given: code's build of a job's sheet checks, per sheet line @typedef {Awaited<ReturnType<typeof import('./sheetbuild.js').buildSheetChecks>>} SheetBuilt */
|
|
32
32
|
/** the four row edits an AI reply may hold */
|
|
33
33
|
export const EDIT_OPS: readonly string[];
|
|
34
|
-
|
|
35
|
-
export const REASON: Readonly<{
|
|
36
|
-
left: "You chose to leave it Not checked, so you judge it at Accept.";
|
|
37
|
-
nothingOnPage: "Your own words are on the line; the machine has no check for them, so you judge it at Accept.";
|
|
38
|
-
noRule: "No rule can check this, so you judge it at Accept.";
|
|
39
|
-
waitingPick: "waiting for your answer on the proposed check";
|
|
40
|
-
waitingReading: "waiting for your answer on the reading";
|
|
41
|
-
onePerLine: "this line finds facts, so it has no text to quote";
|
|
42
|
-
manyInputs: "the job has more than one input and code cannot pick which one the claims quote";
|
|
43
|
-
oneSidedTime: "a time limit the AI proposes must be a range, so you judge it at Accept.";
|
|
44
|
-
countNeedsFact: "a result count needs a fact to count; this line has none";
|
|
45
|
-
countNeedsSuggested: "a result count needs a fact to count; add the suggested fact on this line to count its results";
|
|
46
|
-
lookNoWords: "the page does not hold the words of the look's fact for this rule";
|
|
47
|
-
afterLast: "no more tries: Start over (rows are never changed by the AI after the last try)";
|
|
48
|
-
noPick: "No check was picked for it, so you judge it at Accept.";
|
|
49
|
-
itemCountByRule: "your rule on this line sets the item count";
|
|
50
|
-
negated: "it says what is not needed, so there is nothing to check";
|
|
51
|
-
dropped: "You dropped it.";
|
|
52
|
-
suggested: "Suggested: not in your job, so it is not checked unless you add it.";
|
|
53
|
-
sheetLine: "this line reads a sheet and its rules are checked by the sheet checks, so a row edit about it is not used";
|
|
54
|
-
sheetFacts: "this line reads a sheet, so it is checked by its sheet checks and not by page facts";
|
|
55
|
-
columnRule: "this rule only names a column; the agent's checks on this line use it";
|
|
56
|
-
}>;
|
|
34
|
+
export function isFactKind(kind: unknown): boolean;
|
|
57
35
|
export class CheckBlock {
|
|
58
36
|
/** @param {{texts: Record<string, string>, labels: string[], maxTries?: number, countScope?: (ruleText: string) => boolean, asks?: boolean, split?: boolean, cited?: boolean, repo?: {files: string[]|null, writeScope: string[]|null}|null}} o the frozen input texts, their labels, how many AI replies (tries) may still change a row, whether code scopes a counting `~` rule in (a pick is asked), and whether a person can be asked at all (`asks`: false = a rule code cannot settle is Not checked, a reading code proposes is built as the AI's proposal) */
|
|
59
37
|
constructor({ texts, labels, maxTries, countScope, asks, split, cited, repo }: {
|
package/types/checklist.d.ts
CHANGED
|
@@ -27,11 +27,11 @@ export function isEmptyList(rows: Row[]): boolean;
|
|
|
27
27
|
export function ledgerRecord(rows: Row[]): ({
|
|
28
28
|
key: string;
|
|
29
29
|
line: number;
|
|
30
|
-
rowKind: "
|
|
31
|
-
from: "default" | "agent" | "
|
|
30
|
+
rowKind: "count" | "floor" | "phrase" | "numbers" | "rule" | "fact" | "cited" | "note";
|
|
31
|
+
from: "default" | "agent" | "look" | "rule" | "pick";
|
|
32
32
|
by: "default" | "agent" | "you";
|
|
33
33
|
words: string[];
|
|
34
|
-
state: "
|
|
34
|
+
state: "built" | "dropped" | "not-checked" | "listed";
|
|
35
35
|
reason: string | null;
|
|
36
36
|
} | {
|
|
37
37
|
key: string;
|
package/types/checklistsign.d.ts
CHANGED
|
@@ -25,3 +25,10 @@ export function partByOf(declaration: any, line: number, idx: number): "you" | "
|
|
|
25
25
|
export function factByOf(declaration: any, line: number, name: string): "you" | "agent" | "default" | null;
|
|
26
26
|
/** who made the result count of a list line's quote check, else null @param {any} declaration @param {number} line @returns {'you'|'agent'|'default'|null} */
|
|
27
27
|
export function countByOf(declaration: any, line: number): "you" | "agent" | "default" | null;
|
|
28
|
+
/**
|
|
29
|
+
* The proof of a plan whose list has ticket rows (a plan with none is not examined): a built ticket row needs the declaration's field, and a field the declaration holds needs a built row for it.
|
|
30
|
+
* @param {any} declaration @returns {string[]}
|
|
31
|
+
*/
|
|
32
|
+
export function ticketListReds(declaration: any): string[];
|
|
33
|
+
/** @type {readonly ('ticketFilter'|'ticketWatch')[]} */
|
|
34
|
+
export const TICKET_FIELDS: readonly ("ticketFilter" | "ticketWatch")[];
|
package/types/checkpick.d.ts
CHANGED
|
@@ -20,19 +20,6 @@ export function scopedRules(lines: {
|
|
|
20
20
|
rule: number;
|
|
21
21
|
text: string;
|
|
22
22
|
}[];
|
|
23
|
-
/**
|
|
24
|
-
* Keep a suggestion only if its rule is on bareguard's list, it carries only that rule's own fields, every number in it is a number the guardrail names and
|
|
25
|
-
* every word in it is a word of the guardrail. Anything else is dropped, with the reason. `none` is a drop with the reason `none`.
|
|
26
|
-
* @param {string} guardrail @param {any} sug the model's entry for this guardrail
|
|
27
|
-
* @returns {{kept: true, check: Record<string, any>}|{kept: false, why: string}}
|
|
28
|
-
*/
|
|
29
|
-
export function keepOrDrop(guardrail: string, sug: any): {
|
|
30
|
-
kept: true;
|
|
31
|
-
check: Record<string, any>;
|
|
32
|
-
} | {
|
|
33
|
-
kept: false;
|
|
34
|
-
why: string;
|
|
35
|
-
};
|
|
36
23
|
/**
|
|
37
24
|
* The user message: the job's lines, and under a line only the guardrails this call settles, numbered by their rule number on the line.
|
|
38
25
|
* @param {{n: number, text: string}[]} lines @param {{line: number, rule: number, text: string}[]} scoped @returns {string}
|
|
@@ -62,13 +49,6 @@ export function rowsFromAnswer(scoped: {
|
|
|
62
49
|
check: Record<string, any> | null;
|
|
63
50
|
why: string | null;
|
|
64
51
|
}[];
|
|
65
|
-
/**
|
|
66
|
-
* The check CODE proposes for a count rule when the call yields none: a bullets / list-items / points count -> listItems N, a lines count -> maxLines N, ONE word number ->
|
|
67
|
-
* minWords N when the rule says "at least / minimum / more than", else maxWords N. A section count names no sections, so none is built; a rule naming two different counts is
|
|
68
|
-
* not built either; a rule with several word numbers or a range is not guessed. The result passes `keepOrDrop`, so every number is one the rule names.
|
|
69
|
-
* @param {string} text @returns {Record<string, any>|null}
|
|
70
|
-
*/
|
|
71
|
-
export function countCheck(text: string): Record<string, any> | null;
|
|
72
52
|
/**
|
|
73
53
|
* The asks for the rows: `Line n, guardrail "<…>": I propose <check in plain words>.` for a kept check, `Line n, guardrail "<…>": I can't check this. Your own words, or
|
|
74
54
|
* Not checked?` when nothing was kept. A proposal is not counted toward am1's cap; a can't-check ask is (am16 (5)).
|
|
@@ -139,7 +119,6 @@ export const SUGGEST_SCHEMA: Readonly<{
|
|
|
139
119
|
}>;
|
|
140
120
|
/** the can't-check ask, as the signed words say it */
|
|
141
121
|
export const CANT_CHECK_WORDS: "I can't check this. Your own words, or Not checked?";
|
|
142
|
-
export function HOW_TO_ANSWER(line: number, agree: boolean): string;
|
|
143
122
|
/**
|
|
144
123
|
* `check` = the check the person agreed to (null for their own words); `own` = their own words
|
|
145
124
|
*/
|
package/types/citedwords.d.ts
CHANGED
|
@@ -54,9 +54,10 @@ export function numberRuleReds({ part, jobLine }: {
|
|
|
54
54
|
/**
|
|
55
55
|
* Signed (am7 item 1): "List 3 ..." is the count, 3 results. A count the person never said as a bare number or a word number (not inside a time, a date or an
|
|
56
56
|
* amount) is refused. Same reader as the number rules.
|
|
57
|
-
*
|
|
57
|
+
* M20 am4: a number the person switched on with Add (`added`, src/pickrecord.js `addedCountsOf`: `<line>:min:<n>` / `<line>:max:<n>`) reads as said.
|
|
58
|
+
* @param {{part: any, jobLine: {n: number, text?: string, rule?: string, rules?: string[]}, added?: Set<string>}} o @returns {WordRed[]}
|
|
58
59
|
*/
|
|
59
|
-
export function countReds({ part, jobLine }: {
|
|
60
|
+
export function countReds({ part, jobLine, added }: {
|
|
60
61
|
part: any;
|
|
61
62
|
jobLine: {
|
|
62
63
|
n: number;
|
|
@@ -64,6 +65,7 @@ export function countReds({ part, jobLine }: {
|
|
|
64
65
|
rule?: string;
|
|
65
66
|
rules?: string[];
|
|
66
67
|
};
|
|
68
|
+
added?: Set<string>;
|
|
67
69
|
}): WordRed[];
|
|
68
70
|
/**
|
|
69
71
|
* R2c (am7 item 2): a place the page-read grew to phrases must have EVERY phrase as a phrase fact of the part, or a flipped route passes.
|
|
@@ -92,9 +94,9 @@ export function boundReds({ part, line, jobLine, look, }: {
|
|
|
92
94
|
}): WordRed[];
|
|
93
95
|
/**
|
|
94
96
|
* Every word red for one cited part, in the order a person fixes them.
|
|
95
|
-
* @param {{part: any, text: string|undefined, line: number, jobLine: any, look: {facts?: any[], dropped?: any[]}|null|undefined, doc?: boolean}} o @returns {WordRed[]}
|
|
97
|
+
* @param {{part: any, text: string|undefined, line: number, jobLine: any, look: {facts?: any[], dropped?: any[]}|null|undefined, doc?: boolean, added?: Set<string>}} o @returns {WordRed[]}
|
|
96
98
|
*/
|
|
97
|
-
export function citedWordReds({ part, text, line, jobLine, look, doc, }: {
|
|
99
|
+
export function citedWordReds({ part, text, line, jobLine, look, doc, added, }: {
|
|
98
100
|
part: any;
|
|
99
101
|
text: string | undefined;
|
|
100
102
|
line: number;
|
|
@@ -104,6 +106,7 @@ export function citedWordReds({ part, text, line, jobLine, look, doc, }: {
|
|
|
104
106
|
dropped?: any[];
|
|
105
107
|
} | null | undefined;
|
|
106
108
|
doc?: boolean;
|
|
109
|
+
added?: Set<string>;
|
|
107
110
|
}): WordRed[];
|
|
108
111
|
export type WordRed = {
|
|
109
112
|
code: string;
|
package/types/closers.d.ts
CHANGED
|
@@ -148,5 +148,6 @@ export function closeNumbers(step: any, artifact: unknown, from: number[], numbe
|
|
|
148
148
|
red: string | null;
|
|
149
149
|
text: string;
|
|
150
150
|
};
|
|
151
|
+
export function noJudgment(verdict: unknown): boolean;
|
|
151
152
|
export type CloseVerdict = import("./types.js").CloseVerdict;
|
|
152
153
|
import { createRubric } from 'bareguard';
|
package/types/declaration.d.ts
CHANGED
|
@@ -32,12 +32,6 @@ export function checkShapes(declaration: any): {
|
|
|
32
32
|
reds: any[];
|
|
33
33
|
shapedSteps: number;
|
|
34
34
|
};
|
|
35
|
-
/** Every whole-output word number in a guardrail ("3 sections, under 600 words, each heading at most 3 words" -> [600, 3]), in order; [] when
|
|
36
|
-
* there is none. Code does not decide which one is the limit: the AI picks `maxWords` and the validator checks the pick is one of these
|
|
37
|
-
* (M4e amendments 28 + 29). A "<n> words each" / "<n> words per section" is the per-section size (amendment 15), never listed here. */
|
|
38
|
-
export function guardrailWordNumbers(guardrail: any): number[];
|
|
39
|
-
/** M10 amendment 14 item 2: every standalone number in a guardrail's own text (digits not joined to letters: "P1" and "250ish" are not one; "1,000" and "2.5" are one number each). */
|
|
40
|
-
export function guardrailStandaloneNumbers(guardrail: any): number[];
|
|
41
35
|
/** M10 amendment 14 item 1: the send line (a signed send) is where the accepted result is written out and no AI runs, so a guardrail under it is refused at $0, naming the line.
|
|
42
36
|
* Pure; the card (src/panel/authorcard.js checkCard) and the drafter's pre-flight both call it. @param {any[]} lines `parseSignedText`'s lines @param {{sends?: {line: number}[]}} arbiter */
|
|
43
37
|
export function checkSendLineGuardrail(lines: any[], arbiter: {
|
|
@@ -45,12 +39,6 @@ export function checkSendLineGuardrail(lines: any[], arbiter: {
|
|
|
45
39
|
line: number;
|
|
46
40
|
}[];
|
|
47
41
|
}): string[];
|
|
48
|
-
/** M4e amendment 15 item 1: the "<n> words each" / "<n> words per section" size in a guardrail ("about 250 words each", "250ish each" -> 250), or null. */
|
|
49
|
-
export function guardrailWordsPerSection(guardrail: any): number | null;
|
|
50
|
-
/** M4e amendment 7 item 1: the first "<N> sections" in a guardrail (N digits, or the words one..ten), or null. */
|
|
51
|
-
export function guardrailSectionCount(guardrail: any): any;
|
|
52
|
-
/** M10 amendment 23: the first "<N> bullets / list items / items / lines / points" in a guardrail (N digits, or the words one..ten; not a price like "$5 per item"), or null. */
|
|
53
|
-
export function guardrailItemCount(guardrail: any): any;
|
|
54
42
|
/** M4e amendment 15 item 2: for each line whose guardrail gives a size for each section, a section count AND a word number,
|
|
55
43
|
* size x count more than the LARGEST word number (no possible pick fits) is a red naming the line and the numbers. $0; run before any model
|
|
56
44
|
* call, when there is no AI pick yet (amendment 29). After the draft the AI's `maxWords` is checked in checkShapeFitsJobLine. */
|
|
@@ -80,7 +68,7 @@ export function checkShapeFitsJobLine(step: any, i: any, lines: any, reds: any):
|
|
|
80
68
|
* `sheetWords` (optional; M10 am8 item 2): `{headers: {role: header names}, facts: the columns the sheet look kept}`. With `fitJobLine`, every column a step's `close.columns` names
|
|
81
69
|
* is proved a real column of its sheet, and a column the code kept for the step's line (an agreed one included) must be in it.
|
|
82
70
|
* `sheetWords.tables` (optional; M10b piece 1): `{role: bareguard table}` of the drafting copy. With it, every `close.sheet` check passes bareguard's sign-time test at $0.
|
|
83
|
-
* @param {{ arbiter?: unknown, lines?: unknown, catalogue?: unknown, wired?: Set<string>, verbatimGoals?: boolean, fitJobLine?: boolean, pageWords?: {texts: Record<string, string>, look: any, docs?: string[]}, sheetWords?: {headers: Record<string, string[]>, facts: any[], tables?: Record<string, {header: string[], rows: any[]}>} }} [context]
|
|
71
|
+
* @param {{ arbiter?: unknown, lines?: unknown, catalogue?: unknown, wired?: Set<string>, verbatimGoals?: boolean, fitJobLine?: boolean, addedCounts?: Set<string>, pageWords?: {texts: Record<string, string>, look: any, docs?: string[]}, sheetWords?: {headers: Record<string, string[]>, facts: any[], tables?: Record<string, {header: string[], rows: any[]}>} }} [context]
|
|
84
72
|
* @returns {ValidateDeclarationResult}
|
|
85
73
|
*/
|
|
86
74
|
export function validateDeclaration(declaration: unknown, context?: {
|
|
@@ -90,6 +78,7 @@ export function validateDeclaration(declaration: unknown, context?: {
|
|
|
90
78
|
wired?: Set<string>;
|
|
91
79
|
verbatimGoals?: boolean;
|
|
92
80
|
fitJobLine?: boolean;
|
|
81
|
+
addedCounts?: Set<string>;
|
|
93
82
|
pageWords?: {
|
|
94
83
|
texts: Record<string, string>;
|
|
95
84
|
look: any;
|
|
@@ -114,14 +103,15 @@ export function validateDeclaration(declaration: unknown, context?: {
|
|
|
114
103
|
export const DECLARATION_FIELDS: readonly string[];
|
|
115
104
|
/** M13 piece 4 (signed item 4): the job's flow type, set by code from the job card, signed with the job. */
|
|
116
105
|
export const FLOW_TYPES: readonly string[];
|
|
106
|
+
export function isFlowType(t: unknown): boolean;
|
|
117
107
|
/** The typed `close.shape` vocabulary, signed by hamr 2026-09-23 (v1):
|
|
118
108
|
* exactly these four top-level keys. Anything else inside `shape` reds by
|
|
119
109
|
* name. */
|
|
120
110
|
export const SHAPE_KEYS: readonly string[];
|
|
121
111
|
/** Shape keys only the MACHINE sets (M4e amendment 15): read from the line's guardrail, never offered to the drafter's model. */
|
|
122
112
|
export const MACHINE_SHAPE_KEYS: readonly string[];
|
|
123
|
-
export function isCountGuardrail(guardrail: any): boolean;
|
|
124
113
|
export type Arbiter = import("./types.js").Arbiter;
|
|
125
114
|
export type SignedLine = import("./types.js").SignedLine;
|
|
126
115
|
export type CatalogueEntry = import("./types.js").CatalogueEntry;
|
|
127
116
|
export type ValidateDeclarationResult = import("./types.js").ValidateDeclarationResult;
|
|
117
|
+
export { guardrailWordNumbers, guardrailStandaloneNumbers, guardrailWordsPerSection, guardrailSectionCount, guardrailItemCount } from "./blockpick.js";
|
package/types/diary.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* M20 am3g item 23: the ONE rule for a step's newest-try checks, over the run's `checks` rows (`readChecks`): a row of this step with a whole-number `try` and a `checks` list;
|
|
3
|
+
* the highest `try`, a tie going to the later row; the row, or null when the step has none. The Audit, the Result tab and the ticket grid ask it and keep their own words
|
|
4
|
+
* and tags; the Audit card's "checks on the last try" count asks it too (its per-try fold is another question).
|
|
5
|
+
* @param {any[]|null|undefined} diary @param {unknown} stepId @returns {any|null}
|
|
6
|
+
*/
|
|
7
|
+
export function newestChecksOf(diary: any[] | null | undefined, stepId: unknown): any | null;
|
|
1
8
|
export const DIARY_FILE: "diary.jsonl";
|
|
2
9
|
export function diaryPaths(runDir: string): string[];
|
|
3
10
|
export function appendCall(runDir: string, row: {
|
|
@@ -47,8 +54,14 @@ export function appendChecks(runDir: string, row: {
|
|
|
47
54
|
sha256: string;
|
|
48
55
|
} | null;
|
|
49
56
|
}): void;
|
|
57
|
+
export function appendTryStart(runDir: string, row: {
|
|
58
|
+
step: string | null;
|
|
59
|
+
try: number;
|
|
60
|
+
at: string;
|
|
61
|
+
}): void;
|
|
50
62
|
export function readCalls(runDir: string): any[];
|
|
51
63
|
export function readTools(runDir: string): any[];
|
|
52
64
|
export function readChecks(runDir: string): any[];
|
|
65
|
+
export function readTryStarts(runDir: string): any[];
|
|
53
66
|
export function nextRound(runDir: string, step: string | null): any;
|
|
54
|
-
export type DiaryKind = "call" | "tool" | "checks";
|
|
67
|
+
export type DiaryKind = "call" | "tool" | "checks" | "try-start";
|
package/types/draft-steps.d.ts
CHANGED
|
@@ -45,3 +45,10 @@ export function reviseStepList({ log, name }: {
|
|
|
45
45
|
details: string[];
|
|
46
46
|
note?: boolean;
|
|
47
47
|
}> | null;
|
|
48
|
+
/** a plan folder's card file: `card-<n>.json` (n = the redraft or revise number) */
|
|
49
|
+
export const CARD_RE: RegExp;
|
|
50
|
+
/** how much of the end of a child's log a person is shown when it stopped or refused */
|
|
51
|
+
export const LOG_TAIL_CHARS: 1500;
|
|
52
|
+
export function draftLogName(kind: string, n: number): string;
|
|
53
|
+
/** a name that is a revise's or a redraft's log */
|
|
54
|
+
export const DRAFT_LOG_RE: RegExp;
|