opencode-prompt-expand 0.1.0 → 0.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.1
4
+
5
+ - Fix the npm package README so the English README is primary.
6
+ - Move the Chinese README to `docs/README.zh-CN.md`.
7
+ - Update the npm install instructions after the first publish.
8
+
3
9
  ## 0.1.0
4
10
 
5
11
  - Initial OpenCode Desktop GUI plugin.
package/README.md CHANGED
@@ -6,9 +6,9 @@ Expand a rough draft in the **OpenCode Desktop** composer into a structured prom
6
6
 
7
7
  The plugin is a small OpenCode Desktop extension: it reads the current draft, asks your own connected model to expand it, writes the result back into the composer, and leaves the send action to you. It never sends a message, never writes session history, and never proxies model credentials.
8
8
 
9
- **Status:** `v0.1.0` experimental. The OpenCode Desktop GUI plugin API is still marked experimental upstream; pin the OpenCode version you test against.
9
+ **Status:** `v0.1.1` experimental. The package is published on npm. The OpenCode Desktop GUI plugin API is still marked experimental upstream; pin the OpenCode version you test against.
10
10
 
11
- [中文说明](README.zh-CN.md)
11
+ [中文说明](docs/README.zh-CN.md)
12
12
 
13
13
  **Who it is for:** OpenCode Desktop users who write natural-language prompts and want a more structured first draft without leaving the composer. It is not a TUI plugin and it does not send messages for you.
14
14
 
@@ -93,7 +93,7 @@ Confirm the install:
93
93
 
94
94
  ### Install from npm
95
95
 
96
- Once the package is published, install it with the OpenCode CLI:
96
+ Install it with the OpenCode CLI:
97
97
 
98
98
  ```bash
99
99
  opencode plugin add opencode-prompt-expand
@@ -102,7 +102,7 @@ opencode plugin add opencode-prompt-expand
102
102
  Pin a specific version when needed:
103
103
 
104
104
  ```bash
105
- opencode plugin add opencode-prompt-expand@0.1.0
105
+ opencode plugin add opencode-prompt-expand@0.1.1
106
106
  ```
107
107
 
108
108
  Then verify it is configured:
@@ -111,7 +111,7 @@ Then verify it is configured:
111
111
  opencode plugin list
112
112
  ```
113
113
 
114
- The package name is `opencode-prompt-expand`. It has not been published to npm in this release yet; until it is, use the local-directory install above.
114
+ Package page: https://www.npmjs.com/package/opencode-prompt-expand
115
115
 
116
116
  ## Usage
117
117
 
@@ -1,12 +1,12 @@
1
- # opencode-prompt-expand
1
+ # opencode-prompt-expand
2
2
 
3
- [English README](README.md)
3
+ [English README](../README.md)
4
4
 
5
- ![opencode-prompt-expand](assets/featured.png)
5
+ ![opencode-prompt-expand](../assets/featured.png)
6
6
 
7
7
  在 **OpenCode Desktop** 的 composer 里,把粗糙草稿扩展成结构化提示词,并原地写回。
8
8
 
9
- **状态:** `v0.1.0` 实验版。OpenCode Desktop 的 GUI 插件 API 仍是 experimental,请锁定你测试的 OpenCode 版本。
9
+ **状态:** `v0.1.1` 实验版,已发布到 npm。OpenCode Desktop 的 GUI 插件 API 仍是 experimental,请锁定你测试的 OpenCode 版本。
10
10
 
11
11
  ## 适合谁
12
12
 
@@ -34,6 +34,15 @@
34
34
 
35
35
  ## 安装
36
36
 
37
+ ### 从 npm
38
+
39
+ ```bash
40
+ opencode plugin add opencode-prompt-expand
41
+ opencode plugin list
42
+ ```
43
+
44
+ npm 页面:https://www.npmjs.com/package/opencode-prompt-expand
45
+
37
46
  ### 从 GitHub 构建
38
47
 
39
48
  ```bash
@@ -75,15 +84,6 @@ Windows 路径示例:
75
84
  重载 Desktop 窗口,或重启 OpenCode Desktop。
76
85
  检查 **Settings > Extensions > Plugins** 中是否出现 `prompt-expand`。
77
86
 
78
- ### npm
79
-
80
- npm 包名是 `opencode-prompt-expand`,当前尚未发布。发布后可使用:
81
-
82
- ```bash
83
- opencode plugin add opencode-prompt-expand
84
- opencode plugin list
85
- ```
86
-
87
87
  ## 使用
88
88
 
89
89
  1. 在 composer 写草稿,例如:`帮我做一个数据看板,包含筛选和导出`
@@ -168,7 +168,7 @@ Home / draft 没有官方 composer API。插件在底部提供 `⚡ Expand Promp
168
168
 
169
169
  [buymeacoffee.com/connory](https://buymeacoffee.com/connory)
170
170
 
171
- [![Buy Me a Coffee QR code](assets/bmc-qr.png)](https://buymeacoffee.com/connory)
171
+ [![Buy Me a Coffee QR code](../assets/bmc-qr.png)](https://buymeacoffee.com/connory)
172
172
 
173
173
  赞助是可选的,插件保持 MIT License。
174
174
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-prompt-expand",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Expand rough prompts into structured prompts inside the OpenCode Desktop composer.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "dist",
31
31
  "assets",
32
32
  "CHANGELOG.md",
33
- "README.zh-CN.md"
33
+ "docs/README.zh-CN.md"
34
34
  ],
35
35
  "scripts": {
36
36
  "build": "npm run build:server && npm run build:gui",