cann-workbench 0.0.1-alpha → 0.0.2-alpha
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 +26 -0
- package/cordis.patch.yml +1 -1
- package/lib/client.js +6 -6
- package/package.json +51 -52
package/README.md
CHANGED
|
@@ -156,3 +156,29 @@ pnpm test:e2e # 构建 + Chrome 浏览器端到端测试
|
|
|
156
156
|
```
|
|
157
157
|
|
|
158
158
|
浏览器测试默认使用本机 Chrome;也可在 `playwright.config.ts` 去掉 `channel: 'chrome'` 后执行 `pnpm exec playwright install chromium`。测试使用隔离临时数据和明确标记的合成报告,不改正在使用的 DSH profile。完整能力对照与测试边界见 [集成验证报告](../../docs/verification/cann-doctor-integration.md)。
|
|
159
|
+
|
|
160
|
+
### 发布到 npm
|
|
161
|
+
|
|
162
|
+
本目录发布为 `cann-workbench`。发布前执行完整检查并预览 tarball:
|
|
163
|
+
|
|
164
|
+
```sh
|
|
165
|
+
pnpm install --frozen-lockfile
|
|
166
|
+
pnpm check
|
|
167
|
+
npm pack --dry-run
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
通过临时 npm 用户配置使用 `NPM_TOKEN` 发布,命令结束后配置文件会删除:
|
|
171
|
+
|
|
172
|
+
```sh
|
|
173
|
+
tmp_npmrc="$(mktemp)"
|
|
174
|
+
trap 'rm -f "$tmp_npmrc"' EXIT
|
|
175
|
+
chmod 600 "$tmp_npmrc"
|
|
176
|
+
{
|
|
177
|
+
printf '%s\n' 'registry=https://registry.npmjs.org/'
|
|
178
|
+
printf '//registry.npmjs.org/:_authToken=%s\n' "$NPM_TOKEN"
|
|
179
|
+
} > "$tmp_npmrc"
|
|
180
|
+
NPM_CONFIG_USERCONFIG="$tmp_npmrc" npm publish --tag alpha --registry=https://registry.npmjs.org/
|
|
181
|
+
NPM_CONFIG_USERCONFIG="$tmp_npmrc" npm view cann-workbench@0.0.2-alpha version engines dist.tarball --json --registry=https://registry.npmjs.org/
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
`0.0.1-alpha` 要求 DSH `>=0.2.2-rc.1 <0.2.3`。如果当前运行时是 DSH `0.2.1-rc.5`,请安装 `cann-workbench@0.0.2-alpha`。后续版本按 `0.0.3-alpha`、`0.0.4-alpha` 依次递增,不能复用已发布版本,也不能通过单独放宽 `engines.dsh` 强行运行。
|
package/cordis.patch.yml
CHANGED
package/lib/client.js
CHANGED
|
@@ -1229,7 +1229,7 @@ window.__ModuleLoader__.load({
|
|
|
1229
1229
|
return copy;
|
|
1230
1230
|
}
|
|
1231
1231
|
var produce = new Immer2().produce;
|
|
1232
|
-
// node_modules/.pnpm/@deepseek-ai+dsh-client-store@0.2.
|
|
1232
|
+
// node_modules/.pnpm/@deepseek-ai+dsh-client-store@0.2.1-rc.5_@deepseek-ai+cordis@4.0.5-alpha.1/node_modules/@deepseek-ai/dsh-client-store/lib/index.js
|
|
1233
1233
|
/**
|
|
1234
1234
|
* React-free snapshot store engine (zustand vanilla + immer + subscribeWithSelector +
|
|
1235
1235
|
* rafFlush middleware + opt-in persist + dev freeze) plus the declarative
|
|
@@ -40325,8 +40325,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
40325
40325
|
mode,
|
|
40326
40326
|
text: naturalLanguage,
|
|
40327
40327
|
attachments: [],
|
|
40328
|
-
|
|
40329
|
-
record.accepted = true;
|
|
40328
|
+
onRetire: (retirement) => {
|
|
40329
|
+
if (retirement.reason === "observed") record.accepted = true;
|
|
40330
40330
|
}
|
|
40331
40331
|
});
|
|
40332
40332
|
attempt = Object.assign(record, {
|
|
@@ -93021,7 +93021,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
93021
93021
|
transport: _enum(["http", "stdio"])
|
|
93022
93022
|
}))
|
|
93023
93023
|
});
|
|
93024
|
-
// node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.
|
|
93024
|
+
// node_modules/.pnpm/@deepseek-ai+dsh-typert-protocol@0.2.1-rc.5_@deepseek-ai+cordis@4.0.5-alpha.1/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/remote-info.js
|
|
93025
93025
|
/** Lazy assembly of generated Remote definitions using caller-supplied Zod; no runtime imports. */
|
|
93026
93026
|
/**
|
|
93027
93027
|
* Retain one generated definition per endpoint without constructing parsers or projections.
|
|
@@ -94319,8 +94319,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
94319
94319
|
mode: "queue",
|
|
94320
94320
|
text,
|
|
94321
94321
|
attachments: [],
|
|
94322
|
-
|
|
94323
|
-
accepted = true;
|
|
94322
|
+
onRetire: (retirement) => {
|
|
94323
|
+
if (retirement.reason === "observed") accepted = true;
|
|
94324
94324
|
}
|
|
94325
94325
|
});
|
|
94326
94326
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cann-workbench",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2-alpha",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -67,56 +67,55 @@
|
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
|
69
69
|
"node": ">=22.19",
|
|
70
|
-
"dsh": ">=0.2.
|
|
70
|
+
"dsh": ">=0.2.1-rc.5 <0.2.2"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@deepseek-ai/cordis": ">=4.0.5-alpha.1 <5",
|
|
74
|
-
"@deepseek-ai/dsh-api-session-controller": ">=0.2.
|
|
75
|
-
"@deepseek-ai/dsh-api-workspace-controller": ">=0.2.
|
|
76
|
-
"@deepseek-ai/dsh-api-workspace-files": ">=0.2.
|
|
77
|
-
"@deepseek-ai/dsh-client-locale": ">=0.2.
|
|
78
|
-
"@deepseek-ai/dsh-client-ui-chat": ">=0.2.
|
|
79
|
-
"@deepseek-ai/dsh-client-ui-conversation": ">=0.2.
|
|
80
|
-
"@deepseek-ai/dsh-client-ui-layout": ">=0.2.
|
|
81
|
-
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.
|
|
82
|
-
"@deepseek-ai/dsh-client-ui-renderer": ">=0.2.
|
|
83
|
-
"@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.
|
|
84
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": ">=0.2.
|
|
85
|
-
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.
|
|
86
|
-
"@deepseek-ai/dsh-client-ui-tool": ">=0.2.
|
|
87
|
-
"@deepseek-ai/dsh-commands": ">=0.2.
|
|
74
|
+
"@deepseek-ai/dsh-api-session-controller": ">=0.2.1-rc.5 <0.2.2",
|
|
75
|
+
"@deepseek-ai/dsh-api-workspace-controller": ">=0.2.1-rc.5 <0.2.2",
|
|
76
|
+
"@deepseek-ai/dsh-api-workspace-files": ">=0.2.1-rc.5 <0.2.2",
|
|
77
|
+
"@deepseek-ai/dsh-client-locale": ">=0.2.1-rc.5 <0.2.2",
|
|
78
|
+
"@deepseek-ai/dsh-client-ui-chat": ">=0.2.1-rc.5 <0.2.2",
|
|
79
|
+
"@deepseek-ai/dsh-client-ui-conversation": ">=0.2.1-rc.5 <0.2.2",
|
|
80
|
+
"@deepseek-ai/dsh-client-ui-layout": ">=0.2.1-rc.5 <0.2.2",
|
|
81
|
+
"@deepseek-ai/dsh-client-ui-primitives": ">=0.2.1-rc.5 <0.2.2",
|
|
82
|
+
"@deepseek-ai/dsh-client-ui-renderer": ">=0.2.1-rc.5 <0.2.2",
|
|
83
|
+
"@deepseek-ai/dsh-client-ui-sidebar": ">=0.2.1-rc.5 <0.2.2",
|
|
84
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": ">=0.2.1-rc.5 <0.2.2",
|
|
85
|
+
"@deepseek-ai/dsh-client-ui-slots": ">=0.2.1-rc.5 <0.2.2",
|
|
86
|
+
"@deepseek-ai/dsh-client-ui-tool": ">=0.2.1-rc.5 <0.2.2",
|
|
87
|
+
"@deepseek-ai/dsh-commands": ">=0.2.1-rc.5 <0.2.2"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@deepseek-ai/cordis": "4.0.5-alpha.1",
|
|
91
|
-
"@deepseek-ai/dsh-api-gateway": "0.2.
|
|
92
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.
|
|
93
|
-
"@deepseek-ai/dsh-api-workspace-controller": "0.2.
|
|
94
|
-
"@deepseek-ai/dsh-api-workspace-files": "0.2.
|
|
95
|
-
"@deepseek-ai/dsh-brand": "0.2.
|
|
96
|
-
"@deepseek-ai/dsh-client-locale": "0.2.
|
|
97
|
-
"@deepseek-ai/dsh-client-product-analytics": "0.2.
|
|
98
|
-
"@deepseek-ai/dsh-client-shortcuts": "0.2.
|
|
99
|
-
"@deepseek-ai/dsh-client-store": "0.2.
|
|
100
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.2.
|
|
101
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.
|
|
102
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.
|
|
103
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.
|
|
104
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.
|
|
105
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.
|
|
106
|
-
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.
|
|
107
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.
|
|
108
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.
|
|
109
|
-
"@deepseek-ai/dsh-client-ui-theme": "0.2.
|
|
110
|
-
"@deepseek-ai/dsh-client-ui-tool": "0.2.
|
|
111
|
-
"@deepseek-ai/dsh-commands": "0.2.
|
|
112
|
-
"@deepseek-ai/dsh-fs": "0.2.
|
|
113
|
-
"@deepseek-ai/dsh-package-manifest": "0.2.
|
|
114
|
-
"@deepseek-ai/dsh-skill": "0.2.
|
|
115
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.
|
|
116
|
-
"@deepseek-ai/dsh-typert-registry": "0.2.
|
|
117
|
-
"@deepseek-ai/dsh-util-code-language": "0.2.
|
|
118
|
-
"@deepseek-ai/dsh-util-
|
|
119
|
-
"@deepseek-ai/dsh-util-workspace-path": "0.2.2-alpha.2",
|
|
91
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.1-rc.5",
|
|
92
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.5",
|
|
93
|
+
"@deepseek-ai/dsh-api-workspace-controller": "0.2.1-rc.5",
|
|
94
|
+
"@deepseek-ai/dsh-api-workspace-files": "0.2.1-rc.5",
|
|
95
|
+
"@deepseek-ai/dsh-brand": "0.2.1-rc.5",
|
|
96
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.5",
|
|
97
|
+
"@deepseek-ai/dsh-client-product-analytics": "0.2.1-rc.5",
|
|
98
|
+
"@deepseek-ai/dsh-client-shortcuts": "0.2.1-rc.5",
|
|
99
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.5",
|
|
100
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.1-rc.5",
|
|
101
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.5",
|
|
102
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.5",
|
|
103
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.5",
|
|
104
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.5",
|
|
105
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.5",
|
|
106
|
+
"@deepseek-ai/dsh-client-ui-sidebar": "0.2.1-rc.5",
|
|
107
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.1-rc.5",
|
|
108
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.5",
|
|
109
|
+
"@deepseek-ai/dsh-client-ui-theme": "0.2.1-rc.5",
|
|
110
|
+
"@deepseek-ai/dsh-client-ui-tool": "0.2.1-rc.5",
|
|
111
|
+
"@deepseek-ai/dsh-commands": "0.2.1-rc.5",
|
|
112
|
+
"@deepseek-ai/dsh-fs": "0.2.1-rc.5",
|
|
113
|
+
"@deepseek-ai/dsh-package-manifest": "0.2.1-rc.5",
|
|
114
|
+
"@deepseek-ai/dsh-skill": "0.2.1-rc.5",
|
|
115
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.5",
|
|
116
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.1-rc.5",
|
|
117
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.1-rc.5",
|
|
118
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.1-rc.5",
|
|
120
119
|
"@playwright/test": "1.58.2",
|
|
121
120
|
"@shikijs/langs": "4.4.3",
|
|
122
121
|
"@testing-library/react": "16.3.3",
|
|
@@ -154,13 +153,13 @@
|
|
|
154
153
|
"zustand": "5.0.8"
|
|
155
154
|
},
|
|
156
155
|
"dependencies": {
|
|
157
|
-
"@deepseek-ai/dsh-llm": "0.2.
|
|
158
|
-
"@deepseek-ai/dsh-session": "0.2.
|
|
159
|
-
"@deepseek-ai/dsh-session-projection": "0.2.
|
|
160
|
-
"@deepseek-ai/dsh-tools": "0.2.
|
|
161
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.
|
|
162
|
-
"@deepseek-ai/dsh-util-values": "0.2.
|
|
163
|
-
"@deepseek-ai/dsh-workspace": "0.2.
|
|
156
|
+
"@deepseek-ai/dsh-llm": "0.2.1-rc.5",
|
|
157
|
+
"@deepseek-ai/dsh-session": "0.2.1-rc.5",
|
|
158
|
+
"@deepseek-ai/dsh-session-projection": "0.2.1-rc.5",
|
|
159
|
+
"@deepseek-ai/dsh-tools": "0.2.1-rc.5",
|
|
160
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.5",
|
|
161
|
+
"@deepseek-ai/dsh-util-values": "0.2.1-rc.5",
|
|
162
|
+
"@deepseek-ai/dsh-workspace": "0.2.1-rc.5",
|
|
164
163
|
"@deepseek-ai/schemastery": "3.18.5-alpha.1",
|
|
165
164
|
"ajv": "8.17.1",
|
|
166
165
|
"ajv-formats": "3.0.1",
|