@arcforge/core 2.0.171 → 2.0.173

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 +12 -12
  2. package/src/Axon.ts +21 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcforge/core",
3
- "version": "2.0.171",
3
+ "version": "2.0.173",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "exports": {
@@ -14,17 +14,17 @@
14
14
  "test:coverage": "bun test --coverage"
15
15
  },
16
16
  "dependencies": {
17
- "@arcforge/air": "2.0.171",
18
- "@arcforge/capsule": "2.0.171",
19
- "@arcforge/cloud": "2.0.171",
20
- "@arcforge/cognet": "2.0.171",
21
- "@arcforge/engines": "2.0.171",
22
- "@arcforge/err": "2.0.171",
23
- "@arcforge/kernel": "2.0.171",
24
- "@arcforge/link": "2.0.171",
25
- "@arcforge/session": "2.0.171",
26
- "@arcforge/types": "2.0.171",
27
- "@arcforge/vstr": "2.0.171",
17
+ "@arcforge/air": "2.0.173",
18
+ "@arcforge/capsule": "2.0.173",
19
+ "@arcforge/cloud": "2.0.173",
20
+ "@arcforge/cognet": "2.0.173",
21
+ "@arcforge/engines": "2.0.173",
22
+ "@arcforge/err": "2.0.173",
23
+ "@arcforge/kernel": "2.0.173",
24
+ "@arcforge/link": "2.0.173",
25
+ "@arcforge/session": "2.0.173",
26
+ "@arcforge/types": "2.0.173",
27
+ "@arcforge/vstr": "2.0.173",
28
28
  "crossws": "^0.3.5",
29
29
  "h3": "^1.13.0",
30
30
  "hookable": "^5.5.3",
package/src/Axon.ts CHANGED
@@ -200,7 +200,27 @@ export async function Axon(opts?: AxonOpts) {
200
200
  // to coincide with confinement. Anything booted without it loaded
201
201
  // ZERO tools, so a script run that way failed with "fs is not
202
202
  // defined" for a module its config plainly installed.
203
- const tools = Tools({ mediation: kernel.mediation })
203
+ const tools = Tools({
204
+ mediation: kernel.mediation,
205
+ /**
206
+ * A name two tools both export, reported on the durable record.
207
+ *
208
+ * Flat placement means the second one wins, and silence is how
209
+ * the previous behaviour hid: a capability the author declared
210
+ * was simply not there, with nothing anywhere saying which tool
211
+ * had taken the name. `build:warning` is the family for exactly
212
+ * this — its own doc names "a tool shadowed by one of the same
213
+ * name" — and it is recoverable rather than fatal, because an
214
+ * agent with one shadowed export still serves everything else.
215
+ */
216
+ onClash: ({ name, previous, next }) => {
217
+ void session.commit("build:warning", {
218
+ domain: "tools",
219
+ message: `\`${name}\` is exported by both \`${previous}\` and \`${next}\` — \`${next}\` wins.`
220
+ + " Rename one export, or call the shadowed one through axon.tools.",
221
+ })
222
+ },
223
+ })
204
224
  await tools.install(blueprint.tools)
205
225
 
206
226
  // user facing handle