approval-md 0.4.3 → 0.4.5
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/dist/src/cli/wordmark.d.ts +2 -2
- package/dist/src/cli/wordmark.js +2 -2
- package/dist/src/core/command-class.d.ts +19 -0
- package/dist/src/core/command-class.js +492 -15
- package/dist/src/core/command-class.js.map +1 -1
- package/dist/src/core/date-argv.d.ts +83 -0
- package/dist/src/core/date-argv.js +212 -0
- package/dist/src/core/date-argv.js.map +1 -0
- package/dist/src/core/read-scope.js +1 -0
- package/dist/src/core/read-scope.js.map +1 -1
- package/dist/src/core/sysinfo-argv.d.ts +48 -0
- package/dist/src/core/sysinfo-argv.js +340 -0
- package/dist/src/core/sysinfo-argv.js.map +1 -0
- package/dist/src/daemon/git-evidence.d.ts +2 -2
- package/dist/src/daemon/git-evidence.js +1 -1
- package/package.json +2 -2
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* half-blocks, no box-drawing, no emoji, because those are the characters that
|
|
11
11
|
* break in Terminal.app's default font and in every CI log. And it DEGRADES —
|
|
12
12
|
* with colour off it collapses to a single line, so a pipe, a `NO_COLOR`
|
|
13
|
-
* terminal or an ASCII locale gets `approval.md v0.4.
|
|
13
|
+
* terminal or an ASCII locale gets `approval.md v0.4.5` and no decoration at
|
|
14
14
|
* all. The banner is ornament; the name and the version are the information,
|
|
15
15
|
* and only the information survives the degradation.
|
|
16
16
|
*/
|
|
17
17
|
import { type Style } from "./style.js";
|
|
18
18
|
/** Kept in step with package.json by a test rather than by memory. */
|
|
19
|
-
export declare const VERSION = "0.4.
|
|
19
|
+
export declare const VERSION = "0.4.5";
|
|
20
20
|
export declare const TAGLINE = "human approval for agent actions";
|
|
21
21
|
/** The one-line form, and the only form a pipe ever sees. */
|
|
22
22
|
export declare function plainWordmark(): string;
|
package/dist/src/cli/wordmark.js
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* half-blocks, no box-drawing, no emoji, because those are the characters that
|
|
11
11
|
* break in Terminal.app's default font and in every CI log. And it DEGRADES —
|
|
12
12
|
* with colour off it collapses to a single line, so a pipe, a `NO_COLOR`
|
|
13
|
-
* terminal or an ASCII locale gets `approval.md v0.4.
|
|
13
|
+
* terminal or an ASCII locale gets `approval.md v0.4.5` and no decoration at
|
|
14
14
|
* all. The banner is ornament; the name and the version are the information,
|
|
15
15
|
* and only the information survives the degradation.
|
|
16
16
|
*/
|
|
17
17
|
import { style as processStyle } from "./style.js";
|
|
18
18
|
/** Kept in step with package.json by a test rather than by memory. */
|
|
19
|
-
export const VERSION = "0.4.
|
|
19
|
+
export const VERSION = "0.4.5";
|
|
20
20
|
export const TAGLINE = "human approval for agent actions";
|
|
21
21
|
/**
|
|
22
22
|
* The six-line form. Written as a raw array so no editor reflows it: every
|
|
@@ -401,6 +401,12 @@ interface LexSegment {
|
|
|
401
401
|
text: string;
|
|
402
402
|
words: LexWord[];
|
|
403
403
|
redirects: LexRedirect[];
|
|
404
|
+
/**
|
|
405
|
+
* The `$(…)` found in the bodies of unquoted heredocs consumed on this
|
|
406
|
+
* segment's line (APRV-504, folded into APRV-508). The shell expands them
|
|
407
|
+
* when the body is read, so they are classified like any other.
|
|
408
|
+
*/
|
|
409
|
+
bodySubstitutions: string[];
|
|
404
410
|
/** Set when the segment contains a construct whose effect cannot be read. */
|
|
405
411
|
opaque: string | null;
|
|
406
412
|
}
|
|
@@ -552,6 +558,19 @@ export interface CommandRule {
|
|
|
552
558
|
* than being refined into some other refusal.
|
|
553
559
|
*/
|
|
554
560
|
skillScript?: boolean;
|
|
561
|
+
/**
|
|
562
|
+
* Match only an argv this predicate accepts (APRV-508).
|
|
563
|
+
*
|
|
564
|
+
* The general form of `probe` and `skillScript`: the row is a SHAPE, and an
|
|
565
|
+
* argv outside it does not match the row at all, so the segment keeps the
|
|
566
|
+
* answer it had before the row existed (`unclassified`, for a binary no other
|
|
567
|
+
* row names). Before the predicate is asked, a shape row is declined by a
|
|
568
|
+
* substituted word (its text is a hole) and by a binary spelled with a path
|
|
569
|
+
* outside the system directories ({@link isSystemBinWord}: `./date` is
|
|
570
|
+
* whatever program sits in the working directory). `assignments` are the
|
|
571
|
+
* `NAME=value` words in front of the binary, verbatim.
|
|
572
|
+
*/
|
|
573
|
+
shape?: (args: readonly string[], assignments: readonly string[]) => boolean;
|
|
555
574
|
}
|
|
556
575
|
/**
|
|
557
576
|
* The suffix that marks a Muse model as training on what it is shown.
|