@arcforge/err 2.0.124 → 2.0.126

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 +50 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcforge/err",
3
- "version": "2.0.124",
3
+ "version": "2.0.126",
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.124"
18
+ "@arcforge/types": "2.0.126"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/bun": "latest",
package/src/map.ts CHANGED
@@ -102,6 +102,14 @@ export const errorMap = {
102
102
  source: "runtime",
103
103
  severity: "fatal",
104
104
  },
105
+ OUTPUT_EMPTY: {
106
+ code: "AX-OUTPUT-003",
107
+ title: "Model Produced No Output Block",
108
+ description: "Every reply must wrap its content in a <template> or <script> block — text outside a block is discarded by the parser. The model replied with none, on every attempt in its retry budget, so there was nothing to render or run. Usually means the model is not following the block protocol rather than that anything is misconfigured: the reply itself is often correct, just unwrapped. Try a different model, or check that the protocol the cognet renders matches the one it parses with.",
109
+ source: "runtime",
110
+ severity: "fatal",
111
+ expected: true,
112
+ },
105
113
  SCRIPT_NOT_FOUND: {
106
114
  code: "AX-SCRIPT-001",
107
115
  title: "Script Not Found",
@@ -1164,6 +1172,22 @@ export const errorMap = {
1164
1172
  severity: "fatal",
1165
1173
  expected: true,
1166
1174
  },
1175
+ SESSION_NOT_FOUND: {
1176
+ code: "AX-SESSION-005",
1177
+ title: "Session Not Found",
1178
+ description: "No session log exists at that path. A session is a .jsonl file under the agent's frame (`.agent/data/sessions/`); it may have been deleted, or belong to an agent that has since been removed.",
1179
+ source: "runtime",
1180
+ severity: "fatal",
1181
+ expected: true,
1182
+ },
1183
+ SESSION_UNREADABLE: {
1184
+ code: "AX-SESSION-006",
1185
+ title: "Session Log Unreadable",
1186
+ description: "The session log does not begin with a `session:header` line, so it cannot be forked or renamed. Either the file is truncated, or it was written by a version predating the header — an older log can still be read and resumed, just not copied.",
1187
+ source: "runtime",
1188
+ severity: "fatal",
1189
+ expected: true,
1190
+ },
1167
1191
  SESSION_ALREADY_RUNNING: {
1168
1192
  code: "AX-TUI-005",
1169
1193
  title: "Session Is Already Running",
@@ -1214,10 +1238,34 @@ export const errorMap = {
1214
1238
  NO_MODULES_INSTALLED: {
1215
1239
  code: "AX-TUI-019",
1216
1240
  title: "No Modules Installed",
1217
- description: "The :uninstall command was opened with no modules resolved into the focused instance's blueprint.",
1241
+ description: "The `:module uninstall` command was opened with no modules resolved into the focused instance's blueprint.",
1218
1242
  source: "tui",
1219
1243
  severity: "fatal",
1220
1244
  },
1245
+ SETTINGS_NOT_WRITABLE: {
1246
+ code: "AX-EXT-027",
1247
+ title: "Settings Cannot Be Written",
1248
+ description: "A settings change was requested on a store with no profile config behind it — nobody is logged in, or this Store was built without one (tests). Settings live in `profile.config.ts`, so there is nowhere to write them; the change was refused rather than saved somewhere nothing reads back.",
1249
+ source: "tui",
1250
+ severity: "fatal",
1251
+ expected: true,
1252
+ },
1253
+ REGISTRY_EMPTY: {
1254
+ code: "AX-TUI-047",
1255
+ title: "Nothing To Install",
1256
+ description: "The install palette was opened with no rows to show — the catalogue is still loading, the registry could not be reached, or everything published for that kind is already installed. The row itself says which.",
1257
+ source: "tui",
1258
+ severity: "fatal",
1259
+ expected: true,
1260
+ },
1261
+ NO_EXTENSIONS_INSTALLED: {
1262
+ code: "AX-TUI-046",
1263
+ title: "No Extensions Installed",
1264
+ description: "The `:ext uninstall` command was opened with no extensions declared in the active profile's profile.config.ts.",
1265
+ source: "tui",
1266
+ severity: "fatal",
1267
+ expected: true,
1268
+ },
1221
1269
  DEPLOYMENT_NOT_CONNECTABLE: {
1222
1270
  code: "AX-TUI-028",
1223
1271
  title: "Deployment Not Connectable",
@@ -1780,7 +1828,7 @@ export const errorMap = {
1780
1828
  PROFILE_CONFIG_UNEDITABLE: {
1781
1829
  code: "AX-EXT-026",
1782
1830
  title: "profile.config.ts Could Not Be Edited",
1783
- description: "The `extensions` array could not be located, or editing it would have produced invalid TypeScript. Nothing was written — this file is yours, and a botched edit costs your whole TUI config. Add or remove the entry by hand.",
1831
+ description: "The `defineProfile({ ... })` call could not be located, or editing it would have produced invalid TypeScript. Nothing was written — this file is yours, and a botched edit costs your whole TUI config. Add or remove the entry by hand.",
1784
1832
  source: "tui",
1785
1833
  severity: "fatal",
1786
1834
  expected: true,