@capyclaw/foundation 0.1.0 → 0.1.2

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/README.md CHANGED
@@ -21,12 +21,14 @@ export const { name, inject, apply } = createPlugin({
21
21
  | `.` | Cordis 插件,产出 `ctx.os` | dsh profile |
22
22
  | `./abi` | 描述符构建器、加载器、错误码、版本工具 | 应用插件 |
23
23
  | `./kit` | 纯函数基建(迁移期复用 plugin-kit) | 应用插件 |
24
+ | `./runtime` | `createKernel` 等宿主 API | dsh 之外的宿主(独立技能服务、测试夹具) |
24
25
 
25
26
  ## 状态
26
27
 
28
+ - 已发布 `0.1.1`,并登记进 `capyclaw-registry.json`。
27
29
  - ABI v1,六个接口适配器全部可用:`skill-provider` / `tool-provider` / `runtime-driver` /
28
30
  `http-router` / `ui-panel` / `lifecycle-hook`,另有逃生舱 `raw@1`。
29
31
  - 能力表按 `ctx` 实际服务探测(见 `lib/kernel.mjs` 的 `detectCapabilities`),不做空头承诺。
30
- - 包当前为 `private`,未进入 registry;完成存量插件迁移后去掉并登记。
32
+ - 15 个 skill 包已迁移到本 ABI;其余插件在豁免表中按批次迁移。
31
33
 
32
34
  设计规范见 `docs/spec/plugin-abi.md`,强制规则见 `docs/POLICY.md`。
package/cordis.patch.yml CHANGED
@@ -1,7 +1,5 @@
1
- <!--
2
- @capyclaw/foundation 的 bundle patch:在 Cordis 树里登记内核,产出 ctx.os。
3
- 应用插件由 loader 在各自的 apply 里挂载,不再单独产生 patch 行。
4
- -->
1
+ # @capyclaw/foundation 的 bundle patch:在 Cordis 树里登记内核,产出 ctx.os。
2
+ # 应用插件由 loader 在各自的 apply 里挂载,不再单独产生 patch 行。
5
3
  - insert:
6
4
  - id: capyclaw-foundation
7
5
  name: '@capyclaw/foundation'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capyclaw/foundation",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
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'