@arcforge/err 2.0.116 → 2.0.118

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 +28 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcforge/err",
3
- "version": "2.0.116",
3
+ "version": "2.0.118",
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.116"
18
+ "@arcforge/types": "2.0.118"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/bun": "latest",
package/src/map.ts CHANGED
@@ -223,6 +223,13 @@ export const errorMap = {
223
223
  source: "cognet",
224
224
  severity: "recovered",
225
225
  },
226
+ COGNET_AMBIGUOUS: {
227
+ code: "AX-COGNET-015",
228
+ title: "Two Cognets Declared",
229
+ description: "The agent both declares `cognet:` in axon.config.ts and holds an inline cognet at `cognet/`. An agent has exactly one brain, and choosing between them silently would either ignore a directory of source or overrule what the author wrote. Keep one.",
230
+ source: "cognet",
231
+ severity: "fatal",
232
+ },
226
233
  COGNET_NOT_FOUND: {
227
234
  code: "AX-COGNET-013",
228
235
  title: "Cognet Not Found",
@@ -839,6 +846,13 @@ export const errorMap = {
839
846
  source: "thread",
840
847
  severity: "fatal",
841
848
  },
849
+ SENSORY_WRITE_FAILED: {
850
+ code: "AX-SESSION-004",
851
+ title: "Sensory Ring Write Failed",
852
+ description: "A dense sense entry (audio or visual) could not be written to the session's sensory ring — usually a full or read-only data directory. Delivery to the cognet is unaffected; the debug window for this session will have a gap.",
853
+ source: "runtime",
854
+ severity: "degraded",
855
+ },
842
856
 
843
857
  // ── Blueprint ─────────────────────────────────────────────────────────────
844
858
  NO_COGNET: {
@@ -1239,6 +1253,13 @@ export const errorMap = {
1239
1253
  source: "runtime",
1240
1254
  severity: "fatal",
1241
1255
  },
1256
+ MODULE_NOT_INSTALLED: {
1257
+ code: "AX-MODULE-003",
1258
+ title: "Module Not Installed",
1259
+ description: "A plugin asked for the options of a module this agent does not have installed — almost always a name mismatch between the plugin and the module that ships it. Reported rather than defaulted: handing back an empty options bag would let a hardware module open the wrong device and never say so.",
1260
+ source: "runtime",
1261
+ severity: "fatal",
1262
+ },
1242
1263
  MODULE_OPTIONS_INVALID: {
1243
1264
  code: "AX-MODULE-002",
1244
1265
  title: "Invalid Module Options",
@@ -1334,6 +1355,13 @@ export const errorMap = {
1334
1355
  source: "cli",
1335
1356
  severity: "fatal",
1336
1357
  },
1358
+ FRAME_MIGRATION_CONFLICT: {
1359
+ code: "AX-PROJECT-034",
1360
+ title: "Frame Migration Cannot Proceed Safely",
1361
+ description: "Runtime output exists in BOTH the old location and the new one, so migrating would have to merge or overwrite two sets of session history. Nothing was moved. Inspect both directories and remove or merge them by hand.",
1362
+ source: "cli",
1363
+ severity: "fatal",
1364
+ },
1337
1365
  CONFIG_EVALUATION_ESCAPED: {
1338
1366
  code: "AX-PROJECT-030",
1339
1367
  title: "defineAgent() Called Outside Config Evaluation",