@arcforge/err 2.0.111 → 2.0.113

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 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcforge/err",
3
- "version": "2.0.111",
3
+ "version": "2.0.113",
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.111"
18
+ "@arcforge/types": "2.0.113"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/bun": "latest",
package/src/map.ts CHANGED
@@ -49,7 +49,7 @@ export const errorMap = {
49
49
  PROMPT_NOT_FOUND: {
50
50
  code: "AX-PROMPT-001",
51
51
  title: "Prompt Not Found",
52
- description: "The requested prompt was not found in the agent's blueprint. It may not be declared, or the agent needs to be re-prepared.",
52
+ description: "The requested prompt could not be resolved it is not declared by the agent, or the published package it names ships no prompt by that name.",
53
53
  source: "runtime",
54
54
  severity: "fatal",
55
55
  },
@@ -202,6 +202,13 @@ export const errorMap = {
202
202
  source: "cognet",
203
203
  severity: "fatal",
204
204
  },
205
+ COGNET_RUNTIME_UNAVAILABLE: {
206
+ code: "AX-COGNET-014",
207
+ title: "Cognet Runtime Temporarily Unavailable",
208
+ description: "The cognet runtime is declared but not present on disk — the dependency tree is mid-rewrite. Transient: the reload keeps the previous blueprint and picks the change up on the next watch event.",
209
+ source: "cognet",
210
+ severity: "recovered",
211
+ },
205
212
  COGNET_NOT_FOUND: {
206
213
  code: "AX-COGNET-013",
207
214
  title: "Cognet Not Found",
@@ -225,6 +232,13 @@ export const errorMap = {
225
232
  source: "manifest",
226
233
  severity: "fatal",
227
234
  },
235
+ CONFIG_ENGINE_UNPARSEABLE: {
236
+ code: "AX-PROJECT-033",
237
+ title: "Could Not Edit The Engine In axon.config.ts",
238
+ description: "The agent's `engine: X({ ... })` declaration could not be located or rewritten automatically — set the model by hand.",
239
+ source: "manifest",
240
+ severity: "fatal",
241
+ },
228
242
  MODULE_DEPENDENCY_INSTALL_FAILED: {
229
243
  code: "AX-PROJECT-004",
230
244
  title: "Module Dependencies Failed To Install",
@@ -327,6 +341,34 @@ export const errorMap = {
327
341
  source: "manifest",
328
342
  severity: "fatal",
329
343
  },
344
+ MODEL_SPECIFIER_INVALID: {
345
+ code: "AX-MODEL-001",
346
+ title: "Malformed Model Specifier",
347
+ 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.",
348
+ source: "manifest",
349
+ severity: "fatal",
350
+ },
351
+ MODEL_FETCH_FAILED: {
352
+ code: "AX-MODEL-002",
353
+ title: "Model Weights Could Not Be Fetched",
354
+ 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.",
355
+ source: "manifest",
356
+ severity: "fatal",
357
+ },
358
+ MODEL_HASH_MISMATCH: {
359
+ code: "AX-MODEL-003",
360
+ title: "Model Weights Failed Verification",
361
+ 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.",
362
+ source: "manifest",
363
+ severity: "fatal",
364
+ },
365
+ MODEL_NOT_CACHED: {
366
+ code: "AX-MODEL-004",
367
+ title: "Declared Model Is Not Cached",
368
+ description: "`--frozen` asserts the machine is already provisioned, so it will not fetch. Run `axon prepare` without --frozen to populate the model cache.",
369
+ source: "manifest",
370
+ severity: "fatal",
371
+ },
330
372
  PREPARE_FROZEN_DRIFT: {
331
373
  code: "AX-PROJECT-014",
332
374
  title: "Dependencies Drifted From The Lockfile",
@@ -1062,6 +1104,13 @@ export const errorMap = {
1062
1104
  source: "tui",
1063
1105
  severity: "fatal",
1064
1106
  },
1107
+ MODEL_IMMUTABLE_DEPLOYED: {
1108
+ code: "AX-TUI-006",
1109
+ title: "Cannot Change A Deployment's Model",
1110
+ 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.",
1111
+ source: "tui",
1112
+ severity: "fatal",
1113
+ },
1065
1114
  MODULE_INSTALL_FAILED: {
1066
1115
  code: "AX-TUI-018",
1067
1116
  title: "Module Install Failed",
@@ -1076,20 +1125,6 @@ export const errorMap = {
1076
1125
  source: "tui",
1077
1126
  severity: "fatal",
1078
1127
  },
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
1128
  DEPLOYMENT_NOT_CONNECTABLE: {
1094
1129
  code: "AX-TUI-028",
1095
1130
  title: "Deployment Not Connectable",