dsh-cheso-design 0.1.1 → 0.1.3-rc.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 +7 -2
- package/README.zh.md +7 -2
- package/assets/shots/artifact-card-en.webp +0 -0
- package/assets/shots/question-card-en.webp +0 -0
- package/lib/client.js +255 -96
- package/lib/client.js.map +3 -3
- package/lib/index.js +578 -88
- package/lib/index.js.map +3 -3
- package/locale/de.json +3 -2
- package/locale/en.json +3 -2
- package/locale/es.json +3 -2
- package/locale/fr.json +3 -2
- package/locale/ja.json +3 -2
- package/locale/pt.json +3 -2
- package/locale/ru.json +3 -2
- package/locale/zh.json +3 -2
- package/package.json +3 -2
- package/screenshots.json +4 -0
package/README.md
CHANGED
|
@@ -16,6 +16,7 @@ This repository is the public home of the `dsh-cheso-design` plugin for [DeepSee
|
|
|
16
16
|
| --- | --- |
|
|
17
17
|
| `cheso_create` | Create a task and return its `task_id` immediately |
|
|
18
18
|
| `cheso_wait` | Wait for a task, pausing for your answers when needed, then return its artifact card |
|
|
19
|
+
| `cheso_stop` | Stop a running Cheso task |
|
|
19
20
|
| `cheso_project_files` | List an existing project's files by project id or link |
|
|
20
21
|
| `cheso_login` / `cheso_login_wait` | Show the authorization card, then poll the login state |
|
|
21
22
|
| `cheso_whoami` | Show the signed-in account and its credits |
|
|
@@ -43,6 +44,8 @@ The plugin activates through HMR; restart DSH if the host stops with `restart-re
|
|
|
43
44
|
|
|
44
45
|
If Cheso asks about style, an outline, or another choice, use the question card to answer or explicitly skip each question. The same task resumes automatically. If the question card is unavailable, open the Cheso project to answer there, then ask DeepSeek Harness to continue waiting.
|
|
45
46
|
|
|
47
|
+
While waiting, use **Steer** to send “Stop the current Cheso task.” The plugin sends a stop request to Cheso and checks the task status.
|
|
48
|
+
|
|
46
49
|
Cheso cards, preview controls and site settings follow the language selected in **Settings → General**. Available languages are Chinese, English, Japanese, Spanish, French, German, Russian and Brazilian Portuguese.
|
|
47
50
|
|
|
48
51
|
## Configuration
|
|
@@ -52,13 +55,13 @@ Cheso cards, preview controls and site settings follow the language selected in
|
|
|
52
55
|
| `site` | `configured` | `global` uses `https://cheso.ai`. `configured` uses `baseUrl` and `embedBaseUrl`. |
|
|
53
56
|
| `baseUrl` | `https://cheso.ai` | Site used for login and the project API |
|
|
54
57
|
| `embedBaseUrl` | empty (follows `baseUrl`) | Where the preview page is served; point it at a local Vite server while developing |
|
|
55
|
-
| `devSet` | empty | Optional Manager routing id
|
|
58
|
+
| `devSet` | empty | Optional Manager routing id sent as `X-Dev-Set` on file-detail requests from the preview route |
|
|
56
59
|
| `timeoutSec` | `540` | Default polling limit between questions or results, in seconds; time spent waiting for your answers does not count |
|
|
57
60
|
| `token` | empty | Optional API token for this `baseUrl`; otherwise the DSH credential store holds the site grant |
|
|
58
61
|
|
|
59
62
|
## What leaves your machine
|
|
60
63
|
|
|
61
|
-
- The prompt you send and the files you attach
|
|
64
|
+
- The prompt you send and the files you attach are uploaded to the selected Cheso site. For other local files, DSH asks you to approve the paths and destination before upload.
|
|
62
65
|
- The Cheso grant is stored in the DSH credential store, scoped to that site; `cheso_logout` revokes it.
|
|
63
66
|
- Previews are shown through a short-lived URL that the DSH host signs after checking that the caller is the instance owner. The URL stays in browser memory.
|
|
64
67
|
|
|
@@ -94,6 +97,8 @@ npm run release -- stable 0.1.1
|
|
|
94
97
|
|
|
95
98
|
Use `--dry-run` to preview either channel. The script type-checks, builds, runs tests, and writes the requested version to `package.json` in a temporary staging directory.
|
|
96
99
|
|
|
100
|
+
The checked-in `package.json` records the last released version: bump it and the lockfile in the same commit you tag, so the repository and npm never disagree.
|
|
101
|
+
|
|
97
102
|
### GitHub Actions
|
|
98
103
|
|
|
99
104
|
After merging [the publish workflow](.github/workflows/publish.yml), open the npm package settings and add a [GitHub Actions trusted publisher](https://docs.npmjs.com/trusted-publishers/#configuring-trusted-publishing). Enter `cheso-ai-platform` as the organization, `dsh-cheso-design` as the repository, and `publish.yml` as the workflow filename. Leave Environment blank and allow `npm publish`.
|
package/README.zh.md
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
| --- | --- |
|
|
17
17
|
| `cheso_create` | 创建任务,立即返回 `task_id` |
|
|
18
18
|
| `cheso_wait` | 等待任务;有提问时先等用户操作,完成后返回在线产物卡 |
|
|
19
|
+
| `cheso_stop` | 停止正在运行的 Cheso 任务 |
|
|
19
20
|
| `cheso_project_files` | 按项目 ID 或完整项目链接查询已有项目的文件 |
|
|
20
21
|
| `cheso_login` / `cheso_login_wait` | 显示授权卡,然后检查登录状态 |
|
|
21
22
|
| `cheso_whoami` | 查看已登录账号和积分 |
|
|
@@ -43,6 +44,8 @@ dsh plugin --profile web add dsh-cheso-design
|
|
|
43
44
|
|
|
44
45
|
如果 Cheso 询问风格、大纲或其他选项,请在问答卡上逐题回答或明确跳过。原任务会自动继续。问答卡不可用时,可以打开 Cheso 项目处理,再回到 DSH 让它继续等待。
|
|
45
46
|
|
|
47
|
+
等待期间,可以用「插话发送」说「停止当前 Cheso 任务」。插件会向 Cheso 请求停止,并检查任务状态。
|
|
48
|
+
|
|
46
49
|
Cheso 卡片、预览控件和站点设置跟随「设置 → 常规」中的界面语言,支持中文、英文、日语、西班牙语、法语、德语、俄语和巴西葡萄牙语。
|
|
47
50
|
|
|
48
51
|
## 配置
|
|
@@ -52,13 +55,13 @@ Cheso 卡片、预览控件和站点设置跟随「设置 → 常规」中的界
|
|
|
52
55
|
| `site` | `configured` | `global` 使用 `https://cheso.ai`,`configured` 使用 `baseUrl` 和 `embedBaseUrl` |
|
|
53
56
|
| `baseUrl` | `https://cheso.ai` | 登录和项目 API 使用的站点地址 |
|
|
54
57
|
| `embedBaseUrl` | 空(跟随 `baseUrl`) | 预览页所在站点;本地联调时可指向 Vite |
|
|
55
|
-
| `devSet` | 空 | 可选的 Manager
|
|
58
|
+
| `devSet` | 空 | 可选的 Manager 分流标识,预览路由查询文件详情时会发送 `X-Dev-Set` |
|
|
56
59
|
| `timeoutSec` | `540` | 每段任务轮询的默认上限(秒),不含用户回答时间 |
|
|
57
60
|
| `token` | 空 | 可选的 API token,对应上面的 `baseUrl`;否则使用 DSH 凭据服务保存的站点授权 |
|
|
58
61
|
|
|
59
62
|
## 会离开本机的数据
|
|
60
63
|
|
|
61
|
-
-
|
|
64
|
+
- 你发送的需求和附加的文件会上传到所选 Cheso 站点。上传其他本地文件前,DSH 会请你确认文件路径和目标站点。
|
|
62
65
|
- Cheso 授权保存在 DSH 凭据服务中,按站点区分;`cheso_logout` 会撤销该授权。
|
|
63
66
|
- 预览地址由 DSH 宿主在校验访问者为本实例所有者后签发,只在浏览器内存中使用。
|
|
64
67
|
|
|
@@ -94,6 +97,8 @@ npm run release -- stable 0.1.1
|
|
|
94
97
|
|
|
95
98
|
两个渠道均可用 `--dry-run` 预览。脚本会执行类型检查、构建和测试,并将指定版本写入临时打包目录中的 `package.json`。
|
|
96
99
|
|
|
100
|
+
仓库里的 `package.json` 记录最近一次发布的版本:打 tag 时在同一个提交里同步它和 lockfile,保证仓库与 npm 始终一致。
|
|
101
|
+
|
|
97
102
|
### GitHub Actions 自动发布
|
|
98
103
|
|
|
99
104
|
合并[发布工作流](.github/workflows/publish.yml)后,在 npm 包的设置里添加 [GitHub Actions Trusted Publisher](https://docs.npmjs.com/trusted-publishers/#configuring-trusted-publishing)。组织填 `cheso-ai-platform`,仓库填 `dsh-cheso-design`,工作流文件名填 `publish.yml`。Environment 留空,勾选允许 `npm publish`。
|
|
Binary file
|
|
Binary file
|