@crazyhappyone/dsh-tui 0.1.0-alpha.2 → 0.1.0-alpha.4

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.i18n.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  # Bilingual-pair consistency record: both languages carry equal authority.
2
2
  # This source-only mirror has no DSH pairing runner. Recompute with:
3
3
  # git hash-object README.md README.zh.md
4
- README.md: 2732b96d4d727ea1ebc8f01fe60b7d5d433799b3
5
- README.zh.md: dedd7687b52c3e9b853edf10848333949bb0087b
4
+ README.md: 496d812168deb2af7d4a933f961b58c1cfd814cd
5
+ README.zh.md: 8474c7be4cf16c0d5123222bab95b5231f34e185
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "Installable source-runtime launcher and private source mirror for the DeepSeek Harness terminal interface."
2
+ description: "Installable source-runtime launcher and public source mirror for the DeepSeek Harness terminal interface."
3
3
  kind: "package-group"
4
4
  ---
5
5
 
@@ -7,12 +7,17 @@ kind: "package-group"
7
7
 
8
8
  English | [中文](README.zh.md)
9
9
 
10
+ [![CI](https://github.com/zhangyang-crazy-one/dsh-tui/actions/workflows/ci.yml/badge.svg)](https://github.com/zhangyang-crazy-one/dsh-tui/actions/workflows/ci.yml)
11
+ [![GitHub release](https://img.shields.io/github/v/release/zhangyang-crazy-one/dsh-tui?include_prereleases)](https://github.com/zhangyang-crazy-one/dsh-tui/releases)
12
+ [![npm next](https://img.shields.io/npm/v/%40crazyhappyone%2Fdsh-tui/next?label=npm%40next)](https://www.npmjs.com/package/@crazyhappyone/dsh-tui)
13
+
10
14
  ## Summary
11
15
 
12
- `@crazyhappyone/dsh-tui` provides the `dsh-tui` command for running and safely updating the DeepSeek Harness terminal interface. The launcher manages a dedicated DSH source checkout, so it never pulls, resets, stashes, or cleans a contributor's development checkout. This repository also mirrors the `packages/tui/` bundle and renderer sources for review. DSH continues to own agents, sessions, tools, persistence, providers, permissions, and profile assembly.
16
+ `@crazyhappyone/dsh-tui` provides the `dsh-tui` command for running and safely updating the DeepSeek Harness terminal interface. The launcher manages a dedicated DSH source checkout, so it never pulls, resets, stashes, or cleans a contributor's development checkout. This public repository also mirrors the `packages/tui/` bundle and renderer sources for review. DSH continues to own agents, sessions, tools, persistence, providers, permissions, and profile assembly.
13
17
 
14
18
  ## Table of Contents
15
19
 
20
+ - [Screenshots](#screenshots)
16
21
  - [Install the launcher](#install-the-launcher)
17
22
  - [Run and update](#run-and-update)
18
23
  - [Configure the source runtime](#configure-the-source-runtime)
@@ -25,6 +30,19 @@ English | [中文](README.zh.md)
25
30
 
26
31
  -----
27
32
 
33
+ <a id="screenshots"></a>
34
+ ## Screenshots
35
+
36
+ Idle home:
37
+
38
+ ![dsh-tui idle home](assets/screenshots/dsh-tui-home.png)
39
+
40
+ After sending `你好`:
41
+
42
+ ![dsh-tui response after sending hello](assets/screenshots/dsh-tui-hello.png)
43
+
44
+ -----
45
+
28
46
  <a id="install-the-launcher"></a>
29
47
  ## Install the launcher
30
48
 
@@ -132,30 +150,26 @@ The launcher runtime must remain separate from the development checkout. To test
132
150
  <a id="publish-the-npm-package"></a>
133
151
  ## Publish the npm package
134
152
 
135
- The operator authenticates through npm's browser flow and verifies the selected account:
136
-
137
- ```text
138
- npm config delete //registry.npmjs.org/:_authToken
139
- npm config set registry https://registry.npmjs.org/
140
- npm login --registry=https://registry.npmjs.org/ --auth-type=web
141
- npm whoami
142
- ```
143
-
144
- `npm whoami` must print `crazyhappyone`. Never place the password, OTP, or npm token in this repository, an issue, command output captured for review, or an AI conversation.
153
+ GitHub Actions tests every pull request and push to `main` on Node 22.19 and 24. Publishing starts only when a GitHub Release is published. The workflow rejects a release tag unless it equals `v` followed by the version in `package.json`; prereleases publish to npm's `next` tag and stable releases publish to `latest`.
145
154
 
146
- After tests and packed-install verification pass, publish a prerelease only with explicit operator approval:
155
+ Configure npm Trusted Publishing once after `publish.yml` is present on the default branch. npm CLI 11.5.1 or newer can register the GitHub workflow through an authenticated browser session. The command below runs a compatible npm 11 temporarily and does not replace the globally installed npm:
147
156
 
148
157
  ```text
149
- npm publish --access public --tag next
158
+ npx --yes npm@11 trust github @crazyhappyone/dsh-tui \
159
+ --file publish.yml \
160
+ --repository zhangyang-crazy-one/dsh-tui \
161
+ --allow-publish
150
162
  ```
151
163
 
152
- When npm requires two-factor authentication, the operator supplies the current code locally:
164
+ The equivalent npm website settings are organization or user `zhangyang-crazy-one`, repository `dsh-tui`, workflow filename `publish.yml`, with no environment restriction. The workflow uses GitHub OIDC and stores no npm token, password, or OTP.
165
+
166
+ For each release, bump `package.json`, merge the change after CI passes, then create a GitHub Release whose tag matches the package version:
153
167
 
154
168
  ```text
155
- npm publish --access public --tag next --otp=<six-digit-code>
169
+ gh release create v0.1.0-alpha.4 --prerelease --generate-notes
156
170
  ```
157
171
 
158
- Promotion to `latest` is a separate release decision. Local implementation and verification never create or change a registry package automatically.
172
+ The `Publish npm` workflow runs tests and packed-package verification again before publishing. Do not rerun an old release tag: npm versions are immutable. Promotion to stable is a new version and a non-prerelease GitHub Release.
159
173
 
160
174
  -----
161
175
 
package/README.zh.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "DeepSeek Harness 终端界面的可安装源码运行时 launcher 与 private 源码镜像。"
2
+ description: "DeepSeek Harness 终端界面的可安装源码运行时 launcher 与公开源码镜像。"
3
3
  kind: "package-group"
4
4
  ---
5
5
 
@@ -7,12 +7,17 @@ kind: "package-group"
7
7
 
8
8
  [English](README.md) | 中文
9
9
 
10
+ [![CI](https://github.com/zhangyang-crazy-one/dsh-tui/actions/workflows/ci.yml/badge.svg)](https://github.com/zhangyang-crazy-one/dsh-tui/actions/workflows/ci.yml)
11
+ [![GitHub release](https://img.shields.io/github/v/release/zhangyang-crazy-one/dsh-tui?include_prereleases)](https://github.com/zhangyang-crazy-one/dsh-tui/releases)
12
+ [![npm next](https://img.shields.io/npm/v/%40crazyhappyone%2Fdsh-tui/next?label=npm%40next)](https://www.npmjs.com/package/@crazyhappyone/dsh-tui)
13
+
10
14
  ## 概述
11
15
 
12
- `@crazyhappyone/dsh-tui` 提供 `dsh-tui` 命令,用于运行和安全更新 DeepSeek Harness 终端界面。Launcher 管理专用 DSH 源码 checkout,因此不会 pull、reset、stash 或 clean 贡献者的开发 checkout。本仓库还镜像 `packages/tui/` bundle 与 renderer 源码以供审查。Agent、会话、工具、持久化、provider、权限与 profile 组装仍由 DSH 拥有。
16
+ `@crazyhappyone/dsh-tui` 提供 `dsh-tui` 命令,用于运行和安全更新 DeepSeek Harness 终端界面。Launcher 管理专用 DSH 源码 checkout,因此不会 pull、reset、stash 或 clean 贡献者的开发 checkout。本公开仓库还镜像 `packages/tui/` bundle 与 renderer 源码以供审查。Agent、会话、工具、持久化、provider、权限与 profile 组装仍由 DSH 拥有。
13
17
 
14
18
  ## 目录
15
19
 
20
+ - [截图](#screenshots)
16
21
  - [安装 launcher](#install-the-launcher)
17
22
  - [运行与更新](#run-and-update)
18
23
  - [配置源码运行时](#configure-the-source-runtime)
@@ -25,6 +30,19 @@ kind: "package-group"
25
30
 
26
31
  -----
27
32
 
33
+ <a id="screenshots"></a>
34
+ ## 截图
35
+
36
+ 空闲首页:
37
+
38
+ ![dsh-tui 空闲首页](assets/screenshots/dsh-tui-home.png)
39
+
40
+ 发送 `你好` 后:
41
+
42
+ ![dsh-tui 发送你好后的响应](assets/screenshots/dsh-tui-hello.png)
43
+
44
+ -----
45
+
28
46
  <a id="install-the-launcher"></a>
29
47
  ## 安装 launcher
30
48
 
@@ -132,30 +150,26 @@ Launcher runtime 必须与开发 checkout 分离。要安全测试其他源码
132
150
  <a id="publish-the-npm-package"></a>
133
151
  ## 发布 npm 包
134
152
 
135
- Operator 通过 npm browser flow 认证,并验证所选账号:
136
-
137
- ```text
138
- npm config delete //registry.npmjs.org/:_authToken
139
- npm config set registry https://registry.npmjs.org/
140
- npm login --registry=https://registry.npmjs.org/ --auth-type=web
141
- npm whoami
142
- ```
143
-
144
- `npm whoami` 必须打印 `crazyhappyone`。绝不要把密码、OTP 或 npm token 放入本仓库、issue、供审查捕获的命令输出或 AI conversation。
153
+ GitHub Actions 会在每个 pull request 和向 `main` 的 push 上使用 Node 22.19 与 24 运行测试。只有发布 GitHub Release 才会启动 npm 发布。工作流要求 Release tag 等于 `v` 加 `package.json` 中的版本;prerelease 发布到 npm `next` tag,stable release 发布到 `latest`。
145
154
 
146
- 测试与 packed-install 验证通过后,仅在 operator 显式批准时发布 prerelease
155
+ `publish.yml` 进入默认分支后,一次性配置 npm Trusted Publishing。npm CLI 11.5.1 或更高版本可以通过已认证的 browser session 注册 GitHub workflow。下面的命令会临时运行兼容的 npm 11,不替换全局安装的 npm
147
156
 
148
157
  ```text
149
- npm publish --access public --tag next
158
+ npx --yes npm@11 trust github @crazyhappyone/dsh-tui \
159
+ --file publish.yml \
160
+ --repository zhangyang-crazy-one/dsh-tui \
161
+ --allow-publish
150
162
  ```
151
163
 
152
- npm 要求双因素认证时,operator 在本地提供当前验证码:
164
+ 对应的 npm 网站配置为:organization or user 填 `zhangyang-crazy-one`,repository 填 `dsh-tui`,workflow filename 填 `publish.yml`,environment 留空。工作流使用 GitHub OIDC,不保存 npm token、密码或 OTP。
165
+
166
+ 每次发布时,先提升 `package.json` 版本,等待 CI 通过并合并,然后创建 tag 与 package version 一致的 GitHub Release:
153
167
 
154
168
  ```text
155
- npm publish --access public --tag next --otp=<six-digit-code>
169
+ gh release create v0.1.0-alpha.4 --prerelease --generate-notes
156
170
  ```
157
171
 
158
- 提升到 `latest` 是单独的 release 决策。本地实现与验证绝不会自动创建或更改 registry package
172
+ `Publish npm` workflow 会在发布前再次运行测试与 packed-package 验证。不要重新运行旧的 release tag:npm version 不可覆盖。提升到 stable 必须使用新版本并发布 non-prerelease GitHub Release
159
173
 
160
174
  -----
161
175
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crazyhappyone/dsh-tui",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.4",
4
4
  "description": "Source-runtime launcher for the DeepSeek Harness terminal interface",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -8,6 +8,7 @@
8
8
  "dsh-tui": "bin/dsh-tui.js"
9
9
  },
10
10
  "files": [
11
+ "assets/screenshots/*.png",
11
12
  "bin/dsh-tui.js",
12
13
  "src/**/*.js",
13
14
  "README.md",