@capyclaw/works-suite 0.0.0-stage → 1.0.0

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
@@ -1,3 +1,50 @@
1
- # Temporary Holding Version
1
+ # capyclaw-works-suite
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 把**离线 ddr0**(`@capyclaw/offline-ddr0`)按 DSH 组合标准件打包,与 `ppt-suite` /
4
+ `canvas-suite` 同等地位。**零 agent 工具、零技能**——纯宿主 + 浏览器 UI 套件,
5
+ 不向 agent 暴露任何接口。
6
+
7
+ ## 结构
8
+
9
+ | 文件 | 作用 |
10
+ | --- | --- |
11
+ | `package.json` | 套件 bundle 身份(`dsh.bundle.patch` + `dsh.suite`),`private:true` |
12
+ | `dsh-suite.json` | 组合清单:packages(依赖 + 能力)/ rows / checks |
13
+ | `cordis.patch.yml` | 由 rows 生成(`dsh-suite compose`),只插入 `offline-ddr0` 一行 |
14
+ | `lib/index.mjs` | 套件壳(空 `apply`),功能行是 offline-ddr0 |
15
+
16
+ ## 公共基建复用
17
+
18
+ 服务提供者行(`ctx.provide`)由 `@capyclaw/core` 统一声明,standalone
19
+ `@capyclaw/work-store` 提供 `ctx.workStore`。本套件遵循同一约定:
20
+
21
+ - `packages` 里只**登记** foundation / service-host / asset-service / work-store
22
+ 的依赖与 `provides.capabilities`(provider 不带 `path`、不进 rows),不重复声明
23
+ 提供者行——避免卸载撞 bundle-in-use 守卫,也避免 row id 重复。
24
+ - 功能行只有 `offline-ddr0`(与单装时同 id,迁移零改路由)。
25
+ - **媒体仓**优先接共享 `ctx.assets`:有共享 store 直接用,否则用共享
26
+ `createFileStore` 工厂(内容寻址 sha256),都没有才退回插件私有仓——离线优先。
27
+ - **呈现面**走 `@capyclaw/suite-kit` 的 `attachSurface`:`GET /embed.js` +
28
+ `GET /api/surface` 嵌入握手,与 capyclaw/conductor 工作台一致。
29
+
30
+ > 需同一 profile 启用 `@capyclaw/core` 与 `@capyclaw/work-store`。
31
+
32
+ ## 校验 / 安装
33
+
34
+ ```bash
35
+ dsh-suite validate .
36
+ dsh-suite compose . --out .
37
+ dsh-suite doctor --profile desktop
38
+ ```
39
+
40
+ 安装到 desktop 时**必须与 capyclaw-suite、conductor-suite 一起 install**
41
+ (`installSuites` 会先剥离旧的 kit-managed 套件再写入新集合),并移除 standalone
42
+ `@capyclaw/offline-ddr0` bundle,避免与套件功能行重复 row id:
43
+
44
+ ```js
45
+ installSuites({
46
+ suiteInputs: [worksSuite, capyclawSuite, conductorSuite],
47
+ profile: 'desktop',
48
+ removeDependencies: ['@capyclaw/offline-ddr0'],
49
+ })
50
+ ```
@@ -0,0 +1,5 @@
1
+ # 由 @capyclaw/suite-kit 生成;改 dsh-suite.json 后重跑 compose。
2
+
3
+ - insert:
4
+ - id: offline-ddr0
5
+ name: "@capyclaw/offline-ddr0"
package/dsh-suite.json ADDED
@@ -0,0 +1,84 @@
1
+ {
2
+ "name": "capyclaw-works-suite",
3
+ "version": "1.0.0",
4
+ "title": "Works 作品库套件",
5
+ "description": "把离线 ddr0 按 DSH 组合标准件打包,与 ppt-suite/canvas-suite 同等地位。零 agent 工具、零技能:纯宿主 + 浏览器 UI。公共基建(foundation/service-host/asset-service/work-store)由 @capyclaw/core 与 standalone work-store 统一声明,本套件只在 packages 里登记依赖与能力、不重复声明提供者行;功能行只有 offline-ddr0。媒体仓优先接共享 ctx.assets,呈现面走 attachSurface 嵌入握手。",
6
+ "packages": {
7
+ "@capyclaw/offline-ddr0": {
8
+ "role": "runtime",
9
+ "version": "^1.9.0",
10
+ "requires": {
11
+ "capabilities": {
12
+ "host.http": "^1.0.0",
13
+ "workStore.store": "^1.2.0",
14
+ "assets.store": "^1.0.0"
15
+ }
16
+ },
17
+ "provides": {
18
+ "capabilities": {
19
+ "works.gallery": "1.0.0",
20
+ "works.offline": "1.0.0"
21
+ }
22
+ }
23
+ },
24
+ "@capyclaw/foundation": {
25
+ "role": "runtime",
26
+ "version": "^0.1.9"
27
+ },
28
+ "@capyclaw/service-host": {
29
+ "role": "provider",
30
+ "version": "^0.1.5",
31
+ "provides": {
32
+ "services": [
33
+ "serviceHost"
34
+ ],
35
+ "capabilities": {
36
+ "host.http": "1.0.0"
37
+ }
38
+ }
39
+ },
40
+ "@capyclaw/asset-service": {
41
+ "role": "provider",
42
+ "version": "^0.1.4",
43
+ "provides": {
44
+ "services": [
45
+ "assets"
46
+ ],
47
+ "capabilities": {
48
+ "assets.store": "1.0.0"
49
+ }
50
+ }
51
+ },
52
+ "@capyclaw/work-store": {
53
+ "role": "provider",
54
+ "version": "^0.3.0",
55
+ "provides": {
56
+ "services": [
57
+ "workStore"
58
+ ],
59
+ "capabilities": {
60
+ "workStore.store": "1.2.0",
61
+ "workStore.catalog": "1.2.0",
62
+ "workStore.versions": "1.2.0",
63
+ "workStore.query": "1.2.0",
64
+ "workStore.artifacts": "1.2.0"
65
+ }
66
+ }
67
+ },
68
+ "@capyclaw/plugin-kit": {
69
+ "role": "support",
70
+ "version": "^0.2.0"
71
+ },
72
+ "@capyclaw/suite-kit": {
73
+ "role": "support",
74
+ "version": "^0.2.0"
75
+ }
76
+ },
77
+ "rows": [
78
+ {
79
+ "id": "offline-ddr0",
80
+ "name": "@capyclaw/offline-ddr0"
81
+ }
82
+ ],
83
+ "checks": []
84
+ }
package/lib/index.mjs ADDED
@@ -0,0 +1,9 @@
1
+ /**
2
+ * capyclaw-works-suite 套件壳。
3
+ *
4
+ * 套件本身不承载运行时逻辑:功能行是 @capyclaw/offline-ddr0(见 dsh-suite.json
5
+ * 的 rows 与 cordis.patch.yml)。这里只导出组合标准件要求的 name/apply 空壳,
6
+ * 与 launch-engine-suite 等纯打包套件一致——零 agent 工具、零技能。
7
+ */
8
+ export const name = 'capyclaw-works-suite'
9
+ export function apply() {}
package/package.json CHANGED
@@ -1,6 +1,55 @@
1
1
  {
2
2
  "name": "@capyclaw/works-suite",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.0",
4
+ "description": "Works 作品库套件:把离线 ddr0(@capyclaw/offline-ddr0)按 DSH 组合标准件打包,与 ppt-suite/canvas-suite 同等地位。零 agent 工具、零技能——纯宿主 + 浏览器 UI 套件;公共基建(foundation/service-host/asset-service/work-store)由 @capyclaw/core 与 standalone work-store 统一提供,需同一 profile 启用。媒体仓优先接共享 ctx.assets,呈现面走 suite-kit attachSurface 嵌入握手。by CapyClaw",
5
+ "type": "module",
6
+ "main": "./lib/index.mjs",
7
+ "exports": {
8
+ ".": "./lib/index.mjs",
9
+ "./package.json": "./package.json"
10
+ },
11
+ "dependencies": {
12
+ "@capyclaw/foundation": "^0.1.1",
13
+ "@capyclaw/offline-ddr0": "^1.9.0"
14
+ },
15
+ "dsh": {
16
+ "bundle": {
17
+ "patch": "./cordis.patch.yml"
18
+ },
19
+ "suite": "./dsh-suite.json",
20
+ "category": "service",
21
+ "platform": "both"
22
+ },
23
+ "meta": {
24
+ "title": "Works 作品库套件",
25
+ "description": "离线 ddr0 按 DSH 组合标准件打包;零 agent 工具、零技能,纯宿主 + 浏览器 UI;公共基建由 @capyclaw/core 与 standalone work-store 统一提供"
26
+ },
27
+ "engines": {
28
+ "dsh": "^0.2.0-rc.2",
29
+ "node": ">=22"
30
+ },
31
+ "files": [
32
+ "lib/",
33
+ "dsh-suite.json",
34
+ "cordis.patch.yml",
35
+ "README.md"
36
+ ],
37
+ "license": "MIT",
38
+ "publishConfig": {
39
+ "access": "public"
40
+ },
41
+ "author": {
42
+ "name": "CapyClaw",
43
+ "url": "https://github.com/capyclaw",
44
+ "email": "support@capyclaw.dev"
45
+ },
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/Maple496/capyclaw.git",
49
+ "directory": "B/suites/capyclaw-works-suite"
50
+ },
51
+ "bugs": {
52
+ "url": "https://github.com/Maple496/capyclaw/issues"
53
+ },
54
+ "homepage": "https://github.com/capyclaw/dsh-plugins"
55
+ }