@isomorph.ai/cli 0.5.0 → 0.5.2
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.
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
export const PUBLISHED_KIT_BUNDLE = {
|
|
2
2
|
"schema": "isomorph.kit-bundle/1.0",
|
|
3
|
-
"kitVersion": "0.5.
|
|
3
|
+
"kitVersion": "0.5.1",
|
|
4
4
|
"sdk": {
|
|
5
5
|
"package": "@isomorph.ai/app-sdk",
|
|
6
|
-
"version": "1.2.
|
|
7
|
-
"tarballSha256": "
|
|
8
|
-
"url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:
|
|
6
|
+
"version": "1.2.1",
|
|
7
|
+
"tarballSha256": "607e3896aa4116d82d0473677d38a68fecd4855a250cd44e038780290c335c67",
|
|
8
|
+
"url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:607e3896aa4116d82d0473677d38a68fecd4855a250cd44e038780290c335c67"
|
|
9
9
|
},
|
|
10
10
|
"images": {
|
|
11
|
-
"appGateway": "public.ecr.aws/y6t4p3i8/harbour-app-gateway@sha256:
|
|
12
|
-
"sessionFixture": "public.ecr.aws/y6t4p3i8/harbour-session-fixture@sha256:
|
|
11
|
+
"appGateway": "public.ecr.aws/y6t4p3i8/harbour-app-gateway@sha256:558e3aa74f315a8bf2ae18f1344be3b8fad0203286f43d14d411a4a1f3e15dc0",
|
|
12
|
+
"sessionFixture": "public.ecr.aws/y6t4p3i8/harbour-session-fixture@sha256:578cc8d98ca687dc79d8567f46abc636db2df0b3d8a01ccf38b30d5932c43353"
|
|
13
13
|
},
|
|
14
14
|
"nativeRuntime": {
|
|
15
15
|
"darwinArm64": {
|
|
16
|
-
"url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:
|
|
17
|
-
"sha256": "
|
|
16
|
+
"url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:e36aeea224867ebd7ae4a609284393460f707eaf6c50cb5f8ea1596926bae04b",
|
|
17
|
+
"sha256": "e36aeea224867ebd7ae4a609284393460f707eaf6c50cb5f8ea1596926bae04b"
|
|
18
18
|
},
|
|
19
19
|
"linuxX64": {
|
|
20
|
-
"url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:
|
|
21
|
-
"sha256": "
|
|
20
|
+
"url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:0673c75610f7fc8a5f1dbc1ec39570eee2278301430e7bbd4b4323319e7a1e6e",
|
|
21
|
+
"sha256": "0673c75610f7fc8a5f1dbc1ec39570eee2278301430e7bbd4b4323319e7a1e6e"
|
|
22
22
|
},
|
|
23
23
|
"windowsX64": {
|
|
24
|
-
"url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:
|
|
25
|
-
"sha256": "
|
|
24
|
+
"url": "https://public.ecr.aws/v2/y6t4p3i8/harbour-kit-bundle/blobs/sha256:8c1fc2e83d6b4cfd056b5252b9676a32e1e49e0596bb072f2c33faef63781aab",
|
|
25
|
+
"sha256": "8c1fc2e83d6b4cfd056b5252b9676a32e1e49e0596bb072f2c33faef63781aab"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"brief": {
|
|
@@ -26,7 +26,13 @@ export function safeError(error) {
|
|
|
26
26
|
const paths = error instanceof CliError && error.paths?.length ? error.paths : undefined;
|
|
27
27
|
// Structured, so it is neither bounded nor redacted: a command's choices are its commands, and a refusal's blockers are what the reader acts on.
|
|
28
28
|
const details = error instanceof CliError && error.details && Object.keys(error.details).length ? error.details : undefined;
|
|
29
|
-
|
|
29
|
+
// A refusal another layer authored — the gate, governance, the pipeline — is
|
|
30
|
+
// the whole answer and is already bounded where it was written; cutting it
|
|
31
|
+
// here deleted the table name from a pipeline refusal on 2026-09-16 (the cut
|
|
32
|
+
// fell exactly on "No journey was generated for `notes`"). Only this CLI's
|
|
33
|
+
// own prose keeps the cap.
|
|
34
|
+
const message = (layer === "cli" ? redact(raw) : scrub(raw)) || NO_DETAIL;
|
|
35
|
+
return { code, layer, message, ...(hint ? { remediationHint: hint } : {}), ...(paths ? { paths } : {}), ...(details ? { details } : {}) };
|
|
30
36
|
}
|
|
31
37
|
/** Anything that must never reach a terminal, a log or an envelope. */
|
|
32
38
|
const SECRETS = /https?:\/\/\S+|Bearer\s+\S+|(?:x-harbour|authorization|content-type)[^\n]*/gi;
|
|
@@ -70,8 +76,12 @@ const ELISION = " \u2026 ";
|
|
|
70
76
|
* phrasings, it deletes words the server actually said, and it is the kind of
|
|
71
77
|
* meaning-guessing the classifier deleted above was deleted for.
|
|
72
78
|
*/
|
|
79
|
+
/** Redacted and whitespace-folded, never bounded: what a server-authored refusal reaches the reader as. */
|
|
80
|
+
function scrub(value) {
|
|
81
|
+
return value.replace(SECRETS, "").replace(/\s+/g, " ").trim();
|
|
82
|
+
}
|
|
73
83
|
function redact(value) {
|
|
74
|
-
const said = value
|
|
84
|
+
const said = scrub(value);
|
|
75
85
|
if (said.length <= DETAIL_BOUND)
|
|
76
86
|
return said;
|
|
77
87
|
const keep = DETAIL_BOUND - ELISION.length;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isomorph.ai/cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Isomorph development kit CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"harbour": {
|
|
38
38
|
"kitBundle": {
|
|
39
39
|
"repository": "public.ecr.aws/y6t4p3i8/harbour-kit-bundle",
|
|
40
|
-
"version": "0.5.
|
|
40
|
+
"version": "0.5.1"
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|