@arcforge/kernel 2.0.170 → 2.0.171
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 +8 -8
- package/src/scope.ts +16 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcforge/kernel",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.171",
|
|
4
4
|
"description": "The Axon kernel — ring 0. Owns resources and execution, enforces policy, and is the only constructor of the unprivileged capsule.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -15,13 +15,13 @@
|
|
|
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/air": "2.0.
|
|
19
|
-
"@arcforge/engines": "2.0.
|
|
20
|
-
"@arcforge/err": "2.0.
|
|
21
|
-
"@arcforge/session": "2.0.
|
|
22
|
-
"@arcforge/types": "2.0.
|
|
23
|
-
"@arcforge/cloud": "2.0.
|
|
24
|
-
"@arcforge/capsule": "2.0.
|
|
18
|
+
"@arcforge/air": "2.0.171",
|
|
19
|
+
"@arcforge/engines": "2.0.171",
|
|
20
|
+
"@arcforge/err": "2.0.171",
|
|
21
|
+
"@arcforge/session": "2.0.171",
|
|
22
|
+
"@arcforge/types": "2.0.171",
|
|
23
|
+
"@arcforge/cloud": "2.0.171",
|
|
24
|
+
"@arcforge/capsule": "2.0.171"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/bun": "latest",
|
package/src/scope.ts
CHANGED
|
@@ -39,11 +39,22 @@ export function toScopeModule(tool: AxonTool): AxonScopeModule {
|
|
|
39
39
|
...(tool.description ? { description: tool.description } : {}),
|
|
40
40
|
members: tool.fns,
|
|
41
41
|
...(tool.ambientTypes ? { ambientTypes: tool.ambientTypes } : {}),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
/**
|
|
43
|
+
* There is NO placement decision here any more.
|
|
44
|
+
*
|
|
45
|
+
* `flat` used to be derived from origin, and three surfaces spelled it
|
|
46
|
+
* — the model's `<scope>`, the editor's `.d.ts`, and the runtime's
|
|
47
|
+
* actual globals. Carrying the decision was meant to stop them
|
|
48
|
+
* disagreeing; it could not, because it is one more thing to keep in
|
|
49
|
+
* step and it drifted anyway: the renderers wrapped a module's tools
|
|
50
|
+
* in a namespace the runtime did not install, so a model called what
|
|
51
|
+
* its own scope promised and found nothing there.
|
|
52
|
+
*
|
|
53
|
+
* Every tool is now placed flat, unconditionally. A tool exporting an
|
|
54
|
+
* object is already its own namespace, and a name two tools both claim
|
|
55
|
+
* is reported (Tools.onClash) rather than resolved by silently
|
|
56
|
+
* renaming one — which is the author's call, not the runtime's.
|
|
57
|
+
*/
|
|
47
58
|
}
|
|
48
59
|
}
|
|
49
60
|
|