@arcforge/err 2.0.143 → 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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/map.ts +21 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcforge/err",
3
- "version": "2.0.143",
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.143"
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",