@arcforge/err 2.0.158 → 2.0.159
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 +87 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcforge/err",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.159",
|
|
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.159"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@types/bun": "latest",
|
package/src/map.ts
CHANGED
|
@@ -126,16 +126,6 @@ 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
129
|
SUBAGENT_LINK_UNSUPPORTED: {
|
|
140
130
|
code: "AX-SCRIPT-004",
|
|
141
131
|
title: "Subagent Not Supported Over The Link",
|
|
@@ -549,6 +539,38 @@ export const errorMap = {
|
|
|
549
539
|
source: "manifest",
|
|
550
540
|
severity: "fatal",
|
|
551
541
|
},
|
|
542
|
+
BUNDLE_IMAGE_FAILED: {
|
|
543
|
+
code: "AX-PROJECT-039",
|
|
544
|
+
title: "Image Build Failed",
|
|
545
|
+
description: "`docker build` did not succeed. Its own output is above — that is the real diagnostic. Check that a Docker daemon is running, and that the base image can be pulled.",
|
|
546
|
+
source: "manifest",
|
|
547
|
+
severity: "fatal",
|
|
548
|
+
expected: true,
|
|
549
|
+
},
|
|
550
|
+
CONFIG_IMPORT_ESCAPES_ROOT: {
|
|
551
|
+
code: "AX-PROJECT-038",
|
|
552
|
+
title: "Config Imports Outside The Project",
|
|
553
|
+
description: "axon.config.ts imports a file from outside this project's directory. A bundle contains the project and nothing above it, so that file is not published with it — the agent loads locally and then fails at boot in the cloud, after provisioning has already been paid for. Move what it needs inside the project, or publish it and import it by name.",
|
|
554
|
+
source: "manifest",
|
|
555
|
+
severity: "fatal",
|
|
556
|
+
expected: true,
|
|
557
|
+
},
|
|
558
|
+
PUBLISH_NAMESPACE_DENIED: {
|
|
559
|
+
code: "AX-PROJECT-036",
|
|
560
|
+
title: "That Namespace Is Not Yours",
|
|
561
|
+
description: "Publishing writes to a scope you own. This package is named for a scope owned by someone else, or by an org you are not a member of — rename it in package.json to a scope you own, or switch to the account that owns this one.",
|
|
562
|
+
source: "cloud",
|
|
563
|
+
severity: "fatal",
|
|
564
|
+
expected: true,
|
|
565
|
+
},
|
|
566
|
+
PUBLISH_USERNAME_REQUIRED: {
|
|
567
|
+
code: "AX-PROJECT-037",
|
|
568
|
+
title: "A Username Is Required",
|
|
569
|
+
description: "A username owns your registry namespace, and nothing can be published until one is set. It is set once, on the account, and every package you publish is scoped under it.",
|
|
570
|
+
source: "cloud",
|
|
571
|
+
severity: "fatal",
|
|
572
|
+
expected: true,
|
|
573
|
+
},
|
|
552
574
|
PUBLISH_UNSUPPORTED_KIND: {
|
|
553
575
|
code: "AX-PROJECT-009",
|
|
554
576
|
title: "This Project Kind Cannot Publish",
|
|
@@ -1574,6 +1596,61 @@ export const errorMap = {
|
|
|
1574
1596
|
source: "tui",
|
|
1575
1597
|
severity: "fatal",
|
|
1576
1598
|
},
|
|
1599
|
+
AGENT_NAME_REQUIRED: {
|
|
1600
|
+
code: "AX-CLI-001",
|
|
1601
|
+
title: "A Name Is Required",
|
|
1602
|
+
description: "Scaffolding a project needs a name — it becomes the directory and the package name.",
|
|
1603
|
+
source: "cli",
|
|
1604
|
+
severity: "fatal",
|
|
1605
|
+
expected: true,
|
|
1606
|
+
},
|
|
1607
|
+
MODULE_SPECIFIER_REQUIRED: {
|
|
1608
|
+
code: "AX-CLI-002",
|
|
1609
|
+
title: "A Module Name Is Required",
|
|
1610
|
+
description: "The command needs at least one module to act on, named as a scoped registry package.",
|
|
1611
|
+
source: "cli",
|
|
1612
|
+
severity: "fatal",
|
|
1613
|
+
expected: true,
|
|
1614
|
+
},
|
|
1615
|
+
RUN_INSTRUCTION_REQUIRED: {
|
|
1616
|
+
code: "AX-CLI-006",
|
|
1617
|
+
title: "Nothing To Run",
|
|
1618
|
+
description: "The agent was named but not told what to do. A reference on its own opens the terminal on that agent; giving it work needs an instruction, a declared prompt, or a script.",
|
|
1619
|
+
source: "cli",
|
|
1620
|
+
severity: "fatal",
|
|
1621
|
+
expected: true,
|
|
1622
|
+
},
|
|
1623
|
+
BENCH_RUN_ID_REQUIRED: {
|
|
1624
|
+
code: "AX-CLI-003",
|
|
1625
|
+
title: "A Run Id Is Required",
|
|
1626
|
+
description: "Reading a benchmark result needs the id of the run to read.",
|
|
1627
|
+
source: "cli",
|
|
1628
|
+
severity: "fatal",
|
|
1629
|
+
expected: true,
|
|
1630
|
+
},
|
|
1631
|
+
PROFILE_INCOMPLETE: {
|
|
1632
|
+
code: "AX-CLI-004",
|
|
1633
|
+
title: "Profile Is Missing Its Identity",
|
|
1634
|
+
description: "Credentials are stored for this profile but no identity is, so there is nothing to report. Logging out and back in rewrites both.",
|
|
1635
|
+
source: "cli",
|
|
1636
|
+
severity: "fatal",
|
|
1637
|
+
expected: true,
|
|
1638
|
+
},
|
|
1639
|
+
BUNDLE_KIND_MISMATCH: {
|
|
1640
|
+
code: "AX-CLI-005",
|
|
1641
|
+
title: "Wrong Bundle Kind",
|
|
1642
|
+
description: "The bundler produced an artifact of a different kind than the command expected. This is a wiring fault in our own code, not something a project can cause.",
|
|
1643
|
+
source: "cli",
|
|
1644
|
+
severity: "fatal",
|
|
1645
|
+
},
|
|
1646
|
+
ATTACH_UNREACHABLE: {
|
|
1647
|
+
code: "AX-TUI-045",
|
|
1648
|
+
title: "Agent Not Reachable",
|
|
1649
|
+
description: "Nothing answered at that address. The agent may not be running, may be on a different port, or may be behind something that refused the connection. `axon dev` prints the address it bound to.",
|
|
1650
|
+
source: "tui",
|
|
1651
|
+
severity: "fatal",
|
|
1652
|
+
expected: true,
|
|
1653
|
+
},
|
|
1577
1654
|
ATTACH_URL_INVALID: {
|
|
1578
1655
|
code: "AX-TUI-049",
|
|
1579
1656
|
title: "Attach URL Invalid",
|