@arcforge/err 2.0.101 → 2.0.103
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 +114 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcforge/err",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.103",
|
|
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.103"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/bun": "latest",
|
package/src/map.ts
CHANGED
|
@@ -281,7 +281,14 @@ export const errorMap = {
|
|
|
281
281
|
PROJECT_NOT_FOUND: {
|
|
282
282
|
code: "AX-PROJECT-005",
|
|
283
283
|
title: "Project Not Found",
|
|
284
|
-
description: "No axon.config.ts, module.config.ts, or
|
|
284
|
+
description: "No axon.config.ts, module.config.ts, cognet.config.ts, bench.config.ts, or prompt.config.ts was found at this path — it isn't a recognized project directory.",
|
|
285
|
+
source: "manifest",
|
|
286
|
+
severity: "fatal",
|
|
287
|
+
},
|
|
288
|
+
PROJECT_WRONG_KIND: {
|
|
289
|
+
code: "AX-PROJECT-011",
|
|
290
|
+
title: "Wrong Project Kind",
|
|
291
|
+
description: "This command targets one project kind, and the directory holds another — run the command that matches what is actually here.",
|
|
285
292
|
source: "manifest",
|
|
286
293
|
severity: "fatal",
|
|
287
294
|
},
|
|
@@ -490,7 +497,7 @@ export const errorMap = {
|
|
|
490
497
|
source: "bench",
|
|
491
498
|
severity: "fatal",
|
|
492
499
|
},
|
|
493
|
-
|
|
500
|
+
BENCH_AXIS_UNKNOWN: {
|
|
494
501
|
code: "AX-BENCH-018",
|
|
495
502
|
title: "Unknown Bench Factor",
|
|
496
503
|
description: "Something referenced a factor id the running bench's coordinate never assigned a value to.",
|
|
@@ -511,42 +518,70 @@ export const errorMap = {
|
|
|
511
518
|
source: "bench",
|
|
512
519
|
severity: "fatal",
|
|
513
520
|
},
|
|
514
|
-
|
|
521
|
+
BENCH_SCHEMA_UNREADABLE: {
|
|
522
|
+
code: "AX-BENCH-030",
|
|
523
|
+
title: "Bench Schema Unreadable",
|
|
524
|
+
description: "bench.config.ts could not be parsed while extracting the measurement schema.",
|
|
525
|
+
source: "bench",
|
|
526
|
+
severity: "fatal",
|
|
527
|
+
},
|
|
528
|
+
BENCH_SCHEMA_EMPTY: {
|
|
529
|
+
code: "AX-BENCH-031",
|
|
530
|
+
title: "Bench Schema Empty",
|
|
531
|
+
description: "defineBench<Schema> was given a type with no properties — an empty schema and a failed extraction must never look alike.",
|
|
532
|
+
source: "bench",
|
|
533
|
+
severity: "fatal",
|
|
534
|
+
},
|
|
535
|
+
BENCH_SCHEMA_UNSUPPORTED_TYPE: {
|
|
536
|
+
code: "AX-BENCH-032",
|
|
537
|
+
title: "Bench Measurement Type Unsupported",
|
|
538
|
+
description: "A measurement is not a boolean, number, union of string literals, or string.",
|
|
539
|
+
source: "bench",
|
|
540
|
+
severity: "fatal",
|
|
541
|
+
},
|
|
542
|
+
BENCH_SCHEMA_EXTRACTION_FAILED: {
|
|
543
|
+
code: "AX-BENCH-033",
|
|
544
|
+
title: "Bench Schema Extraction Failed",
|
|
545
|
+
description: "The schema worker did not return a schema. Prepare fails rather than continuing with an empty one, which would silently make every measurement undeclared.",
|
|
546
|
+
source: "bench",
|
|
547
|
+
severity: "fatal",
|
|
548
|
+
},
|
|
549
|
+
BENCH_AXIS_NOT_FOUND: {
|
|
515
550
|
code: "AX-BENCH-021",
|
|
516
|
-
title: "Bench
|
|
517
|
-
description: "The bench config has no
|
|
551
|
+
title: "Bench Axis Not Found",
|
|
552
|
+
description: "The bench config's matrix has no axis with this key.",
|
|
518
553
|
source: "bench",
|
|
519
554
|
severity: "fatal",
|
|
520
555
|
},
|
|
521
|
-
|
|
556
|
+
BENCH_AXIS_VALUE_NOT_FOUND: {
|
|
522
557
|
code: "AX-BENCH-022",
|
|
523
|
-
title: "Bench
|
|
524
|
-
description: "The bench config's
|
|
558
|
+
title: "Bench Axis Value Not Found",
|
|
559
|
+
description: "The bench config's matrix axis has no declared value with this id.",
|
|
525
560
|
source: "bench",
|
|
526
561
|
severity: "fatal",
|
|
527
562
|
},
|
|
528
|
-
|
|
563
|
+
BENCH_WORKSPACE_ESCAPE: {
|
|
529
564
|
code: "AX-BENCH-023",
|
|
530
|
-
title: "Bench
|
|
531
|
-
description: "A workspace
|
|
565
|
+
title: "Bench Workspace Path Escapes Root",
|
|
566
|
+
description: "A workspace source entry resolved to a path outside the workspace directory — refused rather than materialized.",
|
|
532
567
|
source: "bench",
|
|
533
568
|
severity: "fatal",
|
|
534
569
|
},
|
|
535
|
-
|
|
570
|
+
BENCH_WORKSPACE_SYMLINK_UNSUPPORTED: {
|
|
536
571
|
code: "AX-BENCH-024",
|
|
537
|
-
title: "Bench
|
|
538
|
-
description: "A workspace
|
|
572
|
+
title: "Bench Workspace Symlinks Unsupported",
|
|
573
|
+
description: "A workspace source contains a symlink — not supported when materializing a bench workspace.",
|
|
539
574
|
source: "bench",
|
|
540
575
|
severity: "fatal",
|
|
541
576
|
},
|
|
542
|
-
|
|
577
|
+
BENCH_WORKSPACE_OUTSIDE_ROOT: {
|
|
543
578
|
code: "AX-BENCH-025",
|
|
544
579
|
title: "Bench Template Outside Root",
|
|
545
580
|
description: "A workspace template's declared source path resolves outside the bench project root.",
|
|
546
581
|
source: "bench",
|
|
547
582
|
severity: "fatal",
|
|
548
583
|
},
|
|
549
|
-
|
|
584
|
+
BENCH_WORKSPACE_SOURCE_NOT_FOUND: {
|
|
550
585
|
code: "AX-BENCH-026",
|
|
551
586
|
title: "Bench Template Not Found",
|
|
552
587
|
description: "A workspace template's declared source path isn't a real directory.",
|
|
@@ -724,6 +759,13 @@ export const errorMap = {
|
|
|
724
759
|
source: "runtime",
|
|
725
760
|
severity: "fatal",
|
|
726
761
|
},
|
|
762
|
+
BUS_HANDLER_FAILED: {
|
|
763
|
+
code: "AX-RUNTIME-004",
|
|
764
|
+
title: "Bus Handler Failed",
|
|
765
|
+
description: "A handler subscribed to a runtime bus event threw. Handler failures are non-fatal by design — the remaining handlers still run — but they are recorded rather than swallowed, since plugins and modules register handlers and a silently-broken one is invisible rot.",
|
|
766
|
+
source: "runtime",
|
|
767
|
+
severity: "degraded",
|
|
768
|
+
},
|
|
727
769
|
TOOL_CALL_FAILED: {
|
|
728
770
|
code: "AX-RUNTIME-003",
|
|
729
771
|
title: "Tool Call Failed",
|
|
@@ -824,6 +866,62 @@ export const errorMap = {
|
|
|
824
866
|
source: "capsule",
|
|
825
867
|
severity: "fatal",
|
|
826
868
|
},
|
|
869
|
+
CAPSULE_CRASHED: {
|
|
870
|
+
code: "AX-CAPSULE-015",
|
|
871
|
+
title: "Capsule Crashed",
|
|
872
|
+
description: "An unhandled error escaped inside the sandbox subprocess. The capsule reports it on the wire and exits immediately — after an unhandled throw the sandbox's state is unknown, and a capsule that keeps serving is worse than one that dies loudly.",
|
|
873
|
+
source: "capsule",
|
|
874
|
+
severity: "fatal",
|
|
875
|
+
},
|
|
876
|
+
CAPSULE_DEAD: {
|
|
877
|
+
code: "AX-CAPSULE-016",
|
|
878
|
+
title: "Capsule Dead",
|
|
879
|
+
description: "The capsule subprocess is gone and supervision gave up restarting it. Every subsequent execution request fails until a new capsule is booted.",
|
|
880
|
+
source: "capsule",
|
|
881
|
+
severity: "fatal",
|
|
882
|
+
},
|
|
883
|
+
CAPSULE_PARSE_ERROR: {
|
|
884
|
+
code: "AX-CAPSULE-017",
|
|
885
|
+
title: "Capsule Wire Parse Error",
|
|
886
|
+
description: "A line arriving from the sandbox was not a valid protocol event. The sandbox is speaking garbage — a protocol mismatch or corrupted output — and the line is dropped rather than acted on, never silently.",
|
|
887
|
+
source: "capsule",
|
|
888
|
+
severity: "degraded",
|
|
889
|
+
},
|
|
890
|
+
CAPSULE_CMD_FAILED: {
|
|
891
|
+
code: "AX-CAPSULE-018",
|
|
892
|
+
title: "Capsule Command Failed",
|
|
893
|
+
description: "Code executed in the sandbox threw. This is the ordinary failure path for an agent-emitted block or a script-land run() — the error is the sandboxed code's own, surfaced verbatim.",
|
|
894
|
+
source: "capsule",
|
|
895
|
+
severity: "degraded",
|
|
896
|
+
},
|
|
897
|
+
CAPSULE_FN_FAILED: {
|
|
898
|
+
code: "AX-CAPSULE-019",
|
|
899
|
+
title: "Tool Call Threw",
|
|
900
|
+
description: "A mediated tool function threw inside the sandbox. The failure is the tool's own; it propagates to the calling code unchanged and is recorded as the closing half of the call's span.",
|
|
901
|
+
source: "capsule",
|
|
902
|
+
severity: "degraded",
|
|
903
|
+
},
|
|
904
|
+
CAPSULE_PROC_DENIED: {
|
|
905
|
+
code: "AX-CAPSULE-020",
|
|
906
|
+
title: "Process Spawn Denied",
|
|
907
|
+
description: "A process the sandbox tried to start was refused — denied by policy, killed before it could spawn, or the spawn itself failed. No process was created.",
|
|
908
|
+
source: "capsule",
|
|
909
|
+
severity: "degraded",
|
|
910
|
+
},
|
|
911
|
+
CAPSULE_PROC_FAILED: {
|
|
912
|
+
code: "AX-CAPSULE-022",
|
|
913
|
+
title: "Managed Process Failed",
|
|
914
|
+
description: "A spawned child process errored without ever producing an exit code — an exec failure or a broken IPC channel. Distinct from a non-zero exit, which is the process running correctly and reporting a result.",
|
|
915
|
+
source: "capsule",
|
|
916
|
+
severity: "degraded",
|
|
917
|
+
},
|
|
918
|
+
CAPSULE_PROC_STDIN_FAILED: {
|
|
919
|
+
code: "AX-CAPSULE-021",
|
|
920
|
+
title: "Process Stdin Write Failed",
|
|
921
|
+
description: "Writing to a managed child process's stdin failed — the process is no longer running, or its stdin has already closed.",
|
|
922
|
+
source: "capsule",
|
|
923
|
+
severity: "degraded",
|
|
924
|
+
},
|
|
827
925
|
|
|
828
926
|
// ── TUI (useAgents.ts / platform/build/agent / platform/store / platform/services/cloud) ──
|
|
829
927
|
NOT_BOOTED: {
|