@arcforge/err 2.0.142 → 2.0.144
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/package.json +2 -2
- package/src/map.ts +53 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcforge/err",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.144",
|
|
4
4
|
"description": "Structured Axon errors — the code map every user-facing failure is rendered from.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"deploy": "echo \"This package is published ONLY by apps/tui/scripts/release.ts, which pins workspace:* deps to concrete versions first. Publishing it directly ships an unresolvable dependency.\" && exit 1"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@arcforge/types": "2.0.
|
|
18
|
+
"@arcforge/types": "2.0.144"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/bun": "latest",
|
package/src/map.ts
CHANGED
|
@@ -880,6 +880,13 @@ export const errorMap = {
|
|
|
880
880
|
severity: "fatal",
|
|
881
881
|
expected: true,
|
|
882
882
|
},
|
|
883
|
+
KNOWLEDGE_RECORD_FAILED: {
|
|
884
|
+
code: "AX-KERNEL-014",
|
|
885
|
+
title: "Knowledge Mutation Went Unrecorded",
|
|
886
|
+
description: "A knowledge write or remove succeeded on disk, but the session record of it could not be committed. The mutation is real and already visible to the agent; only its audit trail is missing, so this is reported rather than thrown — the caller cannot undo a completed write. It matters because 'the agent rewrote its own memory' is the fact you want weeks later when behaviour drifts, and here the ledger and the filesystem disagree.",
|
|
887
|
+
source: "kernel",
|
|
888
|
+
severity: "degraded",
|
|
889
|
+
},
|
|
883
890
|
KNOWLEDGE_ESCAPE: {
|
|
884
891
|
code: "AX-KERNEL-012",
|
|
885
892
|
title: "Knowledge Path Escapes Store",
|
|
@@ -1289,6 +1296,13 @@ export const errorMap = {
|
|
|
1289
1296
|
severity: "fatal",
|
|
1290
1297
|
expected: true,
|
|
1291
1298
|
},
|
|
1299
|
+
ATTACH_URL_REQUIRED: {
|
|
1300
|
+
code: "AX-TUI-048",
|
|
1301
|
+
title: "Attach URL Required",
|
|
1302
|
+
description: "`:attach` needs the address of a running agent — e.g. `:attach http://localhost:3010`. The agent must already be serving; attach binds to it and never boots anything.",
|
|
1303
|
+
source: "tui",
|
|
1304
|
+
severity: "fatal",
|
|
1305
|
+
},
|
|
1292
1306
|
DEPLOYMENT_NOT_CONNECTABLE: {
|
|
1293
1307
|
code: "AX-TUI-028",
|
|
1294
1308
|
title: "Deployment Not Connectable",
|
|
@@ -1392,6 +1406,13 @@ export const errorMap = {
|
|
|
1392
1406
|
source: "runtime",
|
|
1393
1407
|
severity: "fatal",
|
|
1394
1408
|
},
|
|
1409
|
+
MODULE_SOURCE_DECLARED: {
|
|
1410
|
+
code: "AX-MODULE-008",
|
|
1411
|
+
title: "Module Declared As Source",
|
|
1412
|
+
description: "Uninstall was asked to remove a module that axon.config.ts declares as an IMPORT rather than by registry name. The import statement is the author's own code, so uninstall does not rewrite it — and removing the dependency alone would leave the config importing a package that is no longer declared, with the agent still loading it. Nothing was changed: delete the import and its entry in modules: [...] by hand.",
|
|
1413
|
+
source: "cli",
|
|
1414
|
+
severity: "fatal",
|
|
1415
|
+
},
|
|
1395
1416
|
MODULE_NOT_INSTALLED: {
|
|
1396
1417
|
code: "AX-MODULE-003",
|
|
1397
1418
|
title: "Module Not Installed",
|
|
@@ -1913,6 +1934,38 @@ export const errorMap = {
|
|
|
1913
1934
|
severity: "degraded",
|
|
1914
1935
|
expected: true,
|
|
1915
1936
|
},
|
|
1937
|
+
COMPONENT_NAME_TAKEN: {
|
|
1938
|
+
code: "AX-EXT-030",
|
|
1939
|
+
title: "Component Already Registered",
|
|
1940
|
+
description: "Two sources registered the same line component name. The first one loaded keeps it — your own config beats any extension. A silently shadowed component would render someone else's value under your name, so the second registration fails instead. Component names are `provider:name`; pick a prefix of your own.",
|
|
1941
|
+
source: "tui",
|
|
1942
|
+
severity: "degraded",
|
|
1943
|
+
expected: true,
|
|
1944
|
+
},
|
|
1945
|
+
COMPONENT_UNKNOWN: {
|
|
1946
|
+
code: "AX-EXT-031",
|
|
1947
|
+
title: "No Such Component",
|
|
1948
|
+
description: "A line named a component that is not registered. Caught when the line is created rather than when it paints, because a missing component renders as an empty gap — which reads as a layout bug instead of a typo, and gives no clue which name was wrong. components.list() returns everything available.",
|
|
1949
|
+
source: "tui",
|
|
1950
|
+
severity: "degraded",
|
|
1951
|
+
expected: true,
|
|
1952
|
+
},
|
|
1953
|
+
LINE_NAME_TAKEN: {
|
|
1954
|
+
code: "AX-EXT-032",
|
|
1955
|
+
title: "Line Already Registered",
|
|
1956
|
+
description: "Two sources registered the same line name. The first one loaded keeps it, the same rule commands and key chords follow.",
|
|
1957
|
+
source: "tui",
|
|
1958
|
+
severity: "degraded",
|
|
1959
|
+
expected: true,
|
|
1960
|
+
},
|
|
1961
|
+
LINE_UNKNOWN: {
|
|
1962
|
+
code: "AX-EXT-033",
|
|
1963
|
+
title: "No Such Line",
|
|
1964
|
+
description: "lines.set(), move(), show(), hide() or toggle() named a line that is not registered. Doing nothing would be indistinguishable from a line that registered and then rendered empty, so this fails instead. lines.list() returns what exists.",
|
|
1965
|
+
source: "tui",
|
|
1966
|
+
severity: "degraded",
|
|
1967
|
+
expected: true,
|
|
1968
|
+
},
|
|
1916
1969
|
COMMAND_PATH_TAKEN: {
|
|
1917
1970
|
code: "AX-EXT-020",
|
|
1918
1971
|
title: "Command Already Registered",
|