opencode-voice2text 0.1.0 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +12 -8
  2. package/package.json +5 -1
package/README.md CHANGED
@@ -177,6 +177,8 @@ npm run typecheck
177
177
 
178
178
  This repository now includes `.github/workflows/publish.yml`.
179
179
 
180
+ It is configured for npm trusted publishing with GitHub Actions OIDC, so you do not need to store a long-lived `NPM_TOKEN` in GitHub.
181
+
180
182
  Behavior:
181
183
 
182
184
  - every push to `master` runs typecheck and build
@@ -184,17 +186,17 @@ Behavior:
184
186
  - if that version is not published yet, it runs `npm publish`
185
187
  - if that version already exists, the workflow exits cleanly without failing
186
188
 
187
- Required GitHub secret:
189
+ Required npm setup:
188
190
 
189
- - `NPM_TOKEN`
191
+ - add this repository as a trusted publisher for the npm package
190
192
 
191
- Create an npm automation token, then add it in GitHub:
193
+ On npmjs.com, open the package settings for `opencode-voice2text`, then configure:
192
194
 
193
- - repository `Settings`
194
- - `Secrets and variables`
195
- - `Actions`
196
- - `New repository secret`
197
- - name: `NPM_TOKEN`
195
+ - Trusted Publisher
196
+ - provider: GitHub Actions
197
+ - owner: `chenxuan520`
198
+ - repository: `opencode-voice2text`
199
+ - workflow filename: `publish.yml`
198
200
 
199
201
  Important release rule:
200
202
 
@@ -221,6 +223,8 @@ npm publish
221
223
 
222
224
  `prepublishOnly` runs the build automatically.
223
225
 
226
+ For emergency manual publishing, use your local npm login or a short-lived bypass-2FA token locally. Do not store long-lived publish tokens in GitHub Actions when trusted publishing is enabled.
227
+
224
228
  ## Notes
225
229
 
226
230
  - The plugin uses Volcengine's websocket ASR protocol directly.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-voice2text",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "Streaming Volcengine speech-to-text plugin for the OpenCode TUI",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -29,6 +29,10 @@
29
29
  ".": {
30
30
  "types": "./dist/index.d.ts",
31
31
  "import": "./dist/index.js"
32
+ },
33
+ "./tui": {
34
+ "types": "./dist/index.d.ts",
35
+ "import": "./dist/index.js"
32
36
  }
33
37
  },
34
38
  "scripts": {