@arcforge/err 2.0.114 → 2.0.116

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 +42 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcforge/err",
3
- "version": "2.0.114",
3
+ "version": "2.0.116",
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.114"
18
+ "@arcforge/types": "2.0.116"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/bun": "latest",
package/src/map.ts CHANGED
@@ -67,6 +67,20 @@ export const errorMap = {
67
67
  source: "runtime",
68
68
  severity: "fatal",
69
69
  },
70
+ OUTPUT_INVALID: {
71
+ code: "AX-OUTPUT-001",
72
+ title: "Invalid Output Type",
73
+ description: "The `output` type passed to request() is not valid TypeScript, or references a type that does not exist. Checked before the model is called, so no inference was spent — fix the type string at the call site.",
74
+ source: "runtime",
75
+ severity: "fatal",
76
+ },
77
+ OUTPUT_UNSATISFIED: {
78
+ code: "AX-OUTPUT-002",
79
+ title: "Output Type Not Satisfied",
80
+ description: "The model could not produce a response matching the declared `output` type within its retry budget. The accumulated TypeScript diagnostics describe what it got wrong on each attempt.",
81
+ source: "runtime",
82
+ severity: "fatal",
83
+ },
70
84
  SCRIPT_NOT_FOUND: {
71
85
  code: "AX-SCRIPT-001",
72
86
  title: "Script Not Found",
@@ -1327,6 +1341,13 @@ export const errorMap = {
1327
1341
  source: "cli",
1328
1342
  severity: "fatal",
1329
1343
  },
1344
+ PROMPT_NOT_INSTALLABLE: {
1345
+ code: "AX-PROJECT-032",
1346
+ title: "Prompts Are Not Installed Into Agents",
1347
+ description: "A prompt is content, not a capability: it resolves from the global cache and renders on demand, so every agent can already use it without declaring anything. Installing one into an agent would put content through the code path — an ABI check, a node_modules link, an agent reload — for something that needs none of it.",
1348
+ source: "manifest",
1349
+ severity: "fatal",
1350
+ },
1330
1351
  PORT_UNAVAILABLE: {
1331
1352
  code: "AX-PROJECT-031",
1332
1353
  title: "No Free Port",
@@ -1460,6 +1481,27 @@ export const errorMap = {
1460
1481
  source: "cli",
1461
1482
  severity: "fatal",
1462
1483
  },
1484
+ NO_EDITOR_ATTACHED: {
1485
+ code: "AX-TUI-042",
1486
+ title: "No Editor Attached",
1487
+ description: "Opening a pane hands it to a connected editor, and none is listening. Open this project in an editor running the Axon Fleet extension — it dials each running TUI itself, so the connection appears on its own once the window is up.",
1488
+ source: "tui",
1489
+ severity: "fatal",
1490
+ },
1491
+ NO_SESSION_TO_OPEN: {
1492
+ code: "AX-TUI-043",
1493
+ title: "No Session To Open",
1494
+ description: "A runtime pane is a view of one conversation, and no agent is focused yet — so there is nothing to point it at. Start or focus an agent first.",
1495
+ source: "tui",
1496
+ severity: "fatal",
1497
+ },
1498
+ CLEAR_IMMUTABLE_DEPLOYED: {
1499
+ code: "AX-TUI-041",
1500
+ title: "Cannot Clear A Deployment's Conversation",
1501
+ description: "A deployed agent owns its own session in the cloud — the TUI attaches to whatever session it is already running, so there is no fresh one to start from here. Use `:close` to detach, or clear it on a local instance of the same agent.",
1502
+ source: "tui",
1503
+ severity: "fatal",
1504
+ },
1463
1505
  OLLAMA_PULL_FAILED: {
1464
1506
  code: "AX-TUI-040",
1465
1507
  title: "Model Download Failed",