@arcforge/err 2.0.155 → 2.0.157
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 +108 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcforge/err",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.157",
|
|
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.157"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/bun": "latest",
|
package/src/map.ts
CHANGED
|
@@ -126,6 +126,114 @@ export const errorMap = {
|
|
|
126
126
|
severity: "fatal",
|
|
127
127
|
expected: true,
|
|
128
128
|
},
|
|
129
|
+
SCRIPT_AGENT_NOT_LOCAL: {
|
|
130
|
+
code: "AX-SCRIPT-003",
|
|
131
|
+
title: "Script Agent Is Not In-Process",
|
|
132
|
+
description: "A script's agent must run in the same process as the script. Scripts() booted a linked (confined) agent instead, so there is no in-heap runtime for the script's proxy to forward to. This is a wiring fault, not a user error.",
|
|
133
|
+
source: "runtime",
|
|
134
|
+
severity: "fatal",
|
|
135
|
+
// No `expected` — this is a WIRING fault in our own code, not
|
|
136
|
+
// something a user did, so the full internals are exactly what a
|
|
137
|
+
// reader needs to see.
|
|
138
|
+
},
|
|
139
|
+
SUBAGENT_LINK_UNSUPPORTED: {
|
|
140
|
+
code: "AX-SCRIPT-004",
|
|
141
|
+
title: "Subagent Not Supported Over The Link",
|
|
142
|
+
description: "An agent asked to spawn a subagent whose child runs as a confined process. `axon.request()` returns a wake's collected entries, while the link's `stimulus` verb returns only admission — the supervisor needs a verb that collects a wake and answers when it settles. Until that exists this fails rather than returning an admission receipt the caller would read as a result.",
|
|
143
|
+
source: "runtime",
|
|
144
|
+
severity: "fatal",
|
|
145
|
+
},
|
|
146
|
+
AGENT_BOOT_FAILED: {
|
|
147
|
+
code: "AX-AGENT-006",
|
|
148
|
+
title: "Agent Failed To Boot",
|
|
149
|
+
description: "The agent process exited before it connected to its supervisor. Its own stderr is carried as the detail — the agent usually knows exactly what went wrong (a missing cognet, a tool that would not compile), and without this that diagnosis died in a pipe while the supervisor reported only a closed socket.",
|
|
150
|
+
source: "runtime",
|
|
151
|
+
severity: "fatal",
|
|
152
|
+
},
|
|
153
|
+
LINK_NO_HANDLER: {
|
|
154
|
+
code: "AX-LINK-001",
|
|
155
|
+
title: "No Handler For Link Verb",
|
|
156
|
+
description: "The peer sent a verb this side does not implement. Both ends speak a versioned contract, so this means they disagree about it — a wiring fault, not something a user did.",
|
|
157
|
+
source: "runtime",
|
|
158
|
+
severity: "fatal",
|
|
159
|
+
},
|
|
160
|
+
LINK_PEER_CLOSED: {
|
|
161
|
+
code: "AX-LINK-002",
|
|
162
|
+
title: "Agent Disconnected",
|
|
163
|
+
description: "The agent process closed its side of the link. Every call still in flight is rejected rather than left hanging — a dead peer must be an error, never a wait that never ends.",
|
|
164
|
+
source: "runtime",
|
|
165
|
+
severity: "fatal",
|
|
166
|
+
},
|
|
167
|
+
LINK_CLOSED: {
|
|
168
|
+
code: "AX-LINK-003",
|
|
169
|
+
title: "Link Closed",
|
|
170
|
+
description: "The link to the agent was torn down by this side — a shutdown, a dispose, or a failed boot. Outstanding calls are rejected with this rather than hanging.",
|
|
171
|
+
source: "runtime",
|
|
172
|
+
severity: "fatal",
|
|
173
|
+
},
|
|
174
|
+
LINK_FRAME_TOO_LARGE: {
|
|
175
|
+
code: "AX-LINK-004",
|
|
176
|
+
title: "Link Frame Too Large",
|
|
177
|
+
description: "A message on the link exceeded the maximum frame size, or a length prefix declared one that did. The prefix is peer-controlled input, so an oversized declaration is refused rather than allocated — a desynchronised stream cannot be recovered by reading past it.",
|
|
178
|
+
source: "runtime",
|
|
179
|
+
severity: "fatal",
|
|
180
|
+
},
|
|
181
|
+
LINK_UNKNOWN_PROMPT_ACTION: {
|
|
182
|
+
code: "AX-LINK-005",
|
|
183
|
+
title: "Unknown Prompt Action",
|
|
184
|
+
description: "The prompt verb was called with an action this side does not know. Loud rather than silent: an unrecognised action would otherwise return undefined, which a caller renders as an empty prompt list.",
|
|
185
|
+
source: "runtime",
|
|
186
|
+
severity: "fatal",
|
|
187
|
+
},
|
|
188
|
+
AGENT_LINK_MISSING: {
|
|
189
|
+
code: "AX-AGENT-001",
|
|
190
|
+
title: "Agent Started Without A Supervisor",
|
|
191
|
+
description: "An agent process was started with no link paths in its environment, which means nothing is supervising it. It cannot guess a socket path — doing so risks connecting to a different agent's supervisor entirely.",
|
|
192
|
+
source: "runtime",
|
|
193
|
+
severity: "fatal",
|
|
194
|
+
},
|
|
195
|
+
AGENT_LINK_MALFORMED: {
|
|
196
|
+
code: "AX-AGENT-002",
|
|
197
|
+
title: "Malformed Agent Link",
|
|
198
|
+
description: "The link carrier in the agent's environment is not valid JSON, or does not name both a control and a data socket. Both are required — an agent with only one connected can accept work it has no way to answer.",
|
|
199
|
+
source: "runtime",
|
|
200
|
+
severity: "fatal",
|
|
201
|
+
},
|
|
202
|
+
AGENT_BLUEPRINT_MISSING: {
|
|
203
|
+
code: "AX-AGENT-003",
|
|
204
|
+
title: "Agent Started Without A Blueprint",
|
|
205
|
+
description: "An agent process was started with no blueprint path in its environment. The supervisor writes the blueprint beside the sockets before spawning; its absence means the spawn path is broken.",
|
|
206
|
+
source: "runtime",
|
|
207
|
+
severity: "fatal",
|
|
208
|
+
},
|
|
209
|
+
AGENT_NOT_READY: {
|
|
210
|
+
code: "AX-AGENT-004",
|
|
211
|
+
title: "Agent Still Booting",
|
|
212
|
+
description: "A verb arrived before the agent's runtime finished booting. The link connects first so that boot failures are reportable, which leaves a brief window where the agent can be addressed but cannot answer.",
|
|
213
|
+
source: "runtime",
|
|
214
|
+
severity: "fatal",
|
|
215
|
+
},
|
|
216
|
+
CLI_AGENT_NOT_LOCAL: {
|
|
217
|
+
code: "AX-AGENT-005",
|
|
218
|
+
title: "Command Needs An In-Process Agent",
|
|
219
|
+
description: "A headless CLI command booted an agent that runs as a separate process, but the command reaches into the runtime directly. This is a wiring fault: the command needs either an in-process agent or a link verb.",
|
|
220
|
+
source: "runtime",
|
|
221
|
+
severity: "fatal",
|
|
222
|
+
},
|
|
223
|
+
ENGINE_ROLE_UNBOUND_LINK: {
|
|
224
|
+
code: "AX-ENGINE-010",
|
|
225
|
+
title: "No Engine For Role",
|
|
226
|
+
description: "A confined agent asked for inference on a role the supervisor has no engine bound to. Roles are resolved on the supervisor's side before the agent starts, so an unbound one here means resolution and the cognet's declaration disagree.",
|
|
227
|
+
source: "runtime",
|
|
228
|
+
severity: "fatal",
|
|
229
|
+
},
|
|
230
|
+
ENGINE_KIND_MISMATCH_LINK: {
|
|
231
|
+
code: "AX-ENGINE-011",
|
|
232
|
+
title: "Engine Kind Mismatch",
|
|
233
|
+
description: "A role bound to a transform or session engine was asked to serve a generate call. Resolution already matched the declared type, so reaching here means a provider's create() disagreed with the capability it was handed.",
|
|
234
|
+
source: "runtime",
|
|
235
|
+
severity: "fatal",
|
|
236
|
+
},
|
|
129
237
|
ENGINE_MISSING: {
|
|
130
238
|
code: "AX-ENGINE-001",
|
|
131
239
|
title: "No Engine Configured",
|