@capyclaw/foundation 0.1.0 → 0.1.1

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 +3 -1
  2. package/runtime/index.mjs +17 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capyclaw/foundation",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "dsh 插件基石层:接口 ABI、插件加载器与内核服务 ctx.os。应用插件只声明接口,不写装配代码。",
5
5
  "type": "module",
6
6
  "main": "./lib/host.mjs",
@@ -8,6 +8,7 @@
8
8
  ".": "./lib/host.mjs",
9
9
  "./abi": "./abi/index.mjs",
10
10
  "./kit": "./kit/index.mjs",
11
+ "./runtime": "./runtime/index.mjs",
11
12
  "./package.json": "./package.json"
12
13
  },
13
14
  "engines": {
@@ -33,6 +34,7 @@
33
34
  "abi/",
34
35
  "lib/",
35
36
  "kit/",
37
+ "runtime/",
36
38
  "cordis.patch.yml",
37
39
  "README.md"
38
40
  ],
@@ -0,0 +1,17 @@
1
+ /**
2
+ * 宿主运行时入口:给 dsh 之外的宿主装配插件用。
3
+ *
4
+ * 适用:独立技能服务、构建工具、e2e 夹具。
5
+ * 不适用:应用插件。应用插件只允许 import `./abi` 与 `./kit`,
6
+ * 由准入闸(scripts/check-foundation-only.mjs)强制。
7
+ *
8
+ * 宿主的职责与 dsh 相同:提供 ctx 里真实存在的服务,内核据此探测能力表。
9
+ */
10
+ export {
11
+ createKernel,
12
+ detectCapabilities,
13
+ BASE_CAPABILITIES,
14
+ KERNEL_VERSION,
15
+ ABI_VERSION,
16
+ } from '../lib/kernel.mjs'
17
+ export * from '../abi/index.mjs'