@arcforge/err 2.0.110 → 2.0.112
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 +42 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcforge/err",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.112",
|
|
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.112"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/bun": "latest",
|
package/src/map.ts
CHANGED
|
@@ -225,6 +225,13 @@ export const errorMap = {
|
|
|
225
225
|
source: "manifest",
|
|
226
226
|
severity: "fatal",
|
|
227
227
|
},
|
|
228
|
+
CONFIG_ENGINE_UNPARSEABLE: {
|
|
229
|
+
code: "AX-PROJECT-033",
|
|
230
|
+
title: "Could Not Edit The Engine In axon.config.ts",
|
|
231
|
+
description: "The agent's `engine: X({ ... })` declaration could not be located or rewritten automatically — set the model by hand.",
|
|
232
|
+
source: "manifest",
|
|
233
|
+
severity: "fatal",
|
|
234
|
+
},
|
|
228
235
|
MODULE_DEPENDENCY_INSTALL_FAILED: {
|
|
229
236
|
code: "AX-PROJECT-004",
|
|
230
237
|
title: "Module Dependencies Failed To Install",
|
|
@@ -327,6 +334,34 @@ export const errorMap = {
|
|
|
327
334
|
source: "manifest",
|
|
328
335
|
severity: "fatal",
|
|
329
336
|
},
|
|
337
|
+
MODEL_SPECIFIER_INVALID: {
|
|
338
|
+
code: "AX-MODEL-001",
|
|
339
|
+
title: "Malformed Model Specifier",
|
|
340
|
+
description: "A `models:` entry in cognet.config.ts could not be parsed. The short form is `hf:owner/repo/path/to/file` — a repo alone is ambiguous, since one repo holds many weights.",
|
|
341
|
+
source: "manifest",
|
|
342
|
+
severity: "fatal",
|
|
343
|
+
},
|
|
344
|
+
MODEL_FETCH_FAILED: {
|
|
345
|
+
code: "AX-MODEL-002",
|
|
346
|
+
title: "Model Weights Could Not Be Fetched",
|
|
347
|
+
description: "A declared model could not be downloaded. Check the repo, file path and revision, and that the machine can reach the registry. A brain without its weights is broken rather than degraded, so this fails at prepare instead of at first inference.",
|
|
348
|
+
source: "manifest",
|
|
349
|
+
severity: "fatal",
|
|
350
|
+
},
|
|
351
|
+
MODEL_HASH_MISMATCH: {
|
|
352
|
+
code: "AX-MODEL-003",
|
|
353
|
+
title: "Model Weights Failed Verification",
|
|
354
|
+
description: "Downloaded bytes did not hash to the expected value — the upstream file changed, or the download was corrupted. Nothing is cached: storing unverified weights would make every later run trust them.",
|
|
355
|
+
source: "manifest",
|
|
356
|
+
severity: "fatal",
|
|
357
|
+
},
|
|
358
|
+
MODEL_NOT_CACHED: {
|
|
359
|
+
code: "AX-MODEL-004",
|
|
360
|
+
title: "Declared Model Is Not Cached",
|
|
361
|
+
description: "`--frozen` asserts the machine is already provisioned, so it will not fetch. Run `axon prepare` without --frozen to populate the model cache.",
|
|
362
|
+
source: "manifest",
|
|
363
|
+
severity: "fatal",
|
|
364
|
+
},
|
|
330
365
|
PREPARE_FROZEN_DRIFT: {
|
|
331
366
|
code: "AX-PROJECT-014",
|
|
332
367
|
title: "Dependencies Drifted From The Lockfile",
|
|
@@ -1062,6 +1097,13 @@ export const errorMap = {
|
|
|
1062
1097
|
source: "tui",
|
|
1063
1098
|
severity: "fatal",
|
|
1064
1099
|
},
|
|
1100
|
+
MODEL_IMMUTABLE_DEPLOYED: {
|
|
1101
|
+
code: "AX-TUI-006",
|
|
1102
|
+
title: "Cannot Change A Deployment's Model",
|
|
1103
|
+
description: "A deployed agent's config lives in the cloud, not on this machine — its model is fixed at deploy time. Change it in the local project and deploy again.",
|
|
1104
|
+
source: "tui",
|
|
1105
|
+
severity: "fatal",
|
|
1106
|
+
},
|
|
1065
1107
|
MODULE_INSTALL_FAILED: {
|
|
1066
1108
|
code: "AX-TUI-018",
|
|
1067
1109
|
title: "Module Install Failed",
|
|
@@ -1076,20 +1118,6 @@ export const errorMap = {
|
|
|
1076
1118
|
source: "tui",
|
|
1077
1119
|
severity: "fatal",
|
|
1078
1120
|
},
|
|
1079
|
-
BASE_UNMANAGED: {
|
|
1080
|
-
code: "AX-TUI-006",
|
|
1081
|
-
title: "Base Config Not Platform-Managed",
|
|
1082
|
-
description: "The managed base workspace's config exists on disk but carries no platform manifest — it wasn't created by the platform and won't be overwritten automatically.",
|
|
1083
|
-
source: "tui",
|
|
1084
|
-
severity: "fatal",
|
|
1085
|
-
},
|
|
1086
|
-
BASE_CONFIG_MODIFIED: {
|
|
1087
|
-
code: "AX-TUI-007",
|
|
1088
|
-
title: "Base Config Edited By Hand",
|
|
1089
|
-
description: "The managed base workspace's config no longer matches the hash the platform recorded — someone edited it directly, so the platform refuses to overwrite it.",
|
|
1090
|
-
source: "tui",
|
|
1091
|
-
severity: "fatal",
|
|
1092
|
-
},
|
|
1093
1121
|
DEPLOYMENT_NOT_CONNECTABLE: {
|
|
1094
1122
|
code: "AX-TUI-028",
|
|
1095
1123
|
title: "Deployment Not Connectable",
|