@fungi.computer/parakeet 0.11.24 → 0.11.25
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.
|
@@ -55,13 +55,11 @@ export type ApprovalReview = Readonly<{
|
|
|
55
55
|
argv?: readonly string[];
|
|
56
56
|
/** The command words an Always-allow rule would match. */
|
|
57
57
|
prefix?: readonly string[];
|
|
58
|
-
/** A warning shown when no rule is offered. */
|
|
59
|
-
warning?: string;
|
|
60
58
|
/** Everything an Always-allow rule would cover. */
|
|
61
59
|
alwaysAllowCoverage?: string;
|
|
62
60
|
/** Why no Always-allow rule is offered. */
|
|
63
61
|
alwaysAllowUnavailableReason?: string;
|
|
64
|
-
/** What a reusable rule risks. */
|
|
62
|
+
/** What running this command, or a reusable rule for it, risks. */
|
|
65
63
|
risk?: Readonly<{
|
|
66
64
|
/** The risk in one sentence, named once above the confirmation. */
|
|
67
65
|
summary: string;
|
|
@@ -89,8 +89,9 @@ function escapeCard(view, review, width, home, now) {
|
|
|
89
89
|
"Scope",
|
|
90
90
|
lead(review.alwaysAllowCoverage, Math.max(8, width - 12)),
|
|
91
91
|
]);
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
// An offered rule names its risk once, above the confirmation instead.
|
|
93
|
+
if (!offered && review.risk !== undefined)
|
|
94
|
+
facts.push(["Risk", review.risk.summary]);
|
|
94
95
|
const always = !offered
|
|
95
96
|
? undefined
|
|
96
97
|
: `Always allow “${shorten(prefix, Math.max(8, width - 5 - "Always allow “” in this project…".length))}” in this project…`;
|
|
@@ -109,13 +110,10 @@ function escapeCard(view, review, width, home, now) {
|
|
|
109
110
|
]);
|
|
110
111
|
if (review.alwaysAllowCoverage !== undefined)
|
|
111
112
|
details.push(["Coverage", review.alwaysAllowCoverage]);
|
|
112
|
-
if (review.risk !== undefined)
|
|
113
|
-
details.push(["Risk", review.risk.detail]);
|
|
114
113
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
details.push(["Warning", review.warning]);
|
|
114
|
+
// Details replace the preview by label, so the risk shows once.
|
|
115
|
+
if (review.risk !== undefined)
|
|
116
|
+
details.push(["Risk", review.risk.detail]);
|
|
119
117
|
details.push(...recordDetails(view, now));
|
|
120
118
|
return {
|
|
121
119
|
content: {
|
package/docs/api/headless.md
CHANGED
|
@@ -500,7 +500,6 @@ type ApprovalReview = Readonly<{
|
|
|
500
500
|
kind: "exec" | "extension-install";
|
|
501
501
|
argv?: readonly string[];
|
|
502
502
|
prefix?: readonly string[];
|
|
503
|
-
warning?: string;
|
|
504
503
|
alwaysAllowCoverage?: string;
|
|
505
504
|
alwaysAllowUnavailableReason?: string;
|
|
506
505
|
risk?: Readonly<{
|
|
@@ -1818,11 +1817,11 @@ shortens paths inside it to `~`; `now` dates the expiry.
|
|
|
1818
1817
|
|
|
1819
1818
|
#### Parameters
|
|
1820
1819
|
|
|
1821
|
-
| Parameter | Type
|
|
1822
|
-
| --------- |
|
|
1823
|
-
| `view` | [`ApprovalFacts`](#approvalfacts)
|
|
1824
|
-
| `review` | \| `Readonly`\<\{ `command`: `string`; `cwd`: `string`; `justification`: `string`; `form`: `"direct"` \| `"shell"`; `kind`: `"exec"` \| `"extension-install"`; `argv?`: readonly `string`[]; `prefix?`: readonly `string`[]; `
|
|
1825
|
-
| `options` | `Readonly`\<\{ `width`: `number`; `home`: `string`; `now`: `number`; \}\>
|
|
1820
|
+
| Parameter | Type |
|
|
1821
|
+
| --------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1822
|
+
| `view` | [`ApprovalFacts`](#approvalfacts) |
|
|
1823
|
+
| `review` | \| `Readonly`\<\{ `command`: `string`; `cwd`: `string`; `justification`: `string`; `form`: `"direct"` \| `"shell"`; `kind`: `"exec"` \| `"extension-install"`; `argv?`: readonly `string`[]; `prefix?`: readonly `string`[]; `alwaysAllowCoverage?`: `string`; `alwaysAllowUnavailableReason?`: `string`; `risk?`: `Readonly`\<\{ `summary`: `string`; `detail`: `string`; \}\>; \}\> \| `undefined` |
|
|
1824
|
+
| `options` | `Readonly`\<\{ `width`: `number`; `home`: `string`; `now`: `number`; \}\> |
|
|
1826
1825
|
|
|
1827
1826
|
#### Returns
|
|
1828
1827
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/parakeet",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.25",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Standalone React composer for a typed Shiitake Session",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@earendil-works/pi-ai": "1.3.0",
|
|
63
|
-
"@fungi.computer/agar": "0.12.
|
|
63
|
+
"@fungi.computer/agar": "0.12.1",
|
|
64
64
|
"@fungi.computer/bird-dog": "0.3.6",
|
|
65
65
|
"@fungi.computer/cairn": "0.1.0",
|
|
66
66
|
"@fungi.computer/caps": "0.11.3",
|
|
67
67
|
"@fungi.computer/gills": "0.3.0",
|
|
68
|
-
"@fungi.computer/knapsack": "0.4.
|
|
69
|
-
"@fungi.computer/shiitake": "0.
|
|
68
|
+
"@fungi.computer/knapsack": "0.4.11",
|
|
69
|
+
"@fungi.computer/shiitake": "0.15.0",
|
|
70
70
|
"@fungi.computer/sigils": "0.3.1",
|
|
71
71
|
"@fungi.computer/sprite": "0.2.2",
|
|
72
72
|
"@fungi.computer/sprite-zdog": "0.3.2",
|