opencode-planpilot 0.2.3 → 0.3.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 CHANGED
@@ -1,24 +1,55 @@
1
1
  # opencode-planpilot
2
2
 
3
- Planpilot for OpenCode. Provides plan/step/goal workflow with auto-continue for AI steps and a native `planpilot` tool.
3
+ Chinese version: [README.zh-CN.md](README.zh-CN.md)
4
4
 
5
- ## Features
6
- - Plan/step/goal hierarchy with status auto-propagation upward (goals -> steps -> plan)
7
- - SQLite storage with markdown plan snapshots
8
- - Native OpenCode tool for plan/step/goal operations
9
- - Auto-continue on `session.idle` when next step is assigned to `ai`
5
+ Planpilot adds a structured execution loop to OpenCode so multi-step work stays organized, visible, and easier to complete.
10
6
 
11
- ## Install
7
+ ## Why Teams Use Planpilot
12
8
 
13
- Add to `opencode.json`:
9
+ - Turn complex work into a clear `plan -> step -> goal` workflow.
10
+ - Keep momentum by auto-continuing when the next pending step is assigned to `ai`.
11
+ - Persist progress locally (database + markdown snapshots) so context is never lost.
12
+ - Keep collaboration natural: you describe intent in plain language, and Planpilot keeps execution structured.
14
13
 
15
- ```json
14
+ ## Installation
15
+
16
+ Add the plugin to your OpenCode config file `opencode.json`:
17
+
18
+ - Unix/macOS: `~/.config/opencode/opencode.json`
19
+ - Windows: `%USERPROFILE%\\.config\\opencode\\opencode.json` (for example: `C:\\Users\\<your-user>\\.config\\opencode\\opencode.json`)
20
+
21
+ ```jsonc
16
22
  {
17
23
  "plugin": ["opencode-planpilot"]
18
24
  }
19
25
  ```
20
26
 
21
- OpenCode installs npm plugins automatically at startup.
27
+ OpenCode installs npm plugins automatically when the session starts.
28
+
29
+ ## Quick Start with Natural Language
30
+
31
+ Example prompt:
32
+
33
+ ```text
34
+ Use planpilot.
35
+ ```
36
+
37
+ ## OpenCode Studio Experience
38
+
39
+ Planpilot ships first-class OpenCode Studio integration:
40
+
41
+ - Learn more: [opencode-studio](https://github.com/canxin121/opencode-studio)
42
+
43
+ - Runtime context in the Studio sidebar (active plan, next step, progress state).
44
+ - A Studio settings panel for Planpilot runtime and auto-continue controls.
45
+ - A Studio bridge for reading/writing runtime and configuration state.
46
+
47
+ If you already run multi-step work in OpenCode, using OpenCode Studio is the fastest way to monitor flow, tune behavior, and keep your team aligned from one UI.
48
+
49
+ ## Details
50
+
51
+ Detailed configuration schema, bridge actions, parameter-level behavior, and event/trigger rules are documented in `DETAIL.md`.
22
52
 
23
53
  ## License
54
+
24
55
  MIT
@@ -0,0 +1,55 @@
1
+ # opencode-planpilot
2
+
3
+ English version: [README.md](README.md)
4
+
5
+ Planpilot 为 OpenCode 提供结构化执行循环,让多步骤工作更有条理、更可追踪,也更容易持续推进。
6
+
7
+ ## 为什么选择 Planpilot
8
+
9
+ - 将复杂任务拆解为清晰的 `plan -> step -> goal` 流程。
10
+ - 当下一个待执行步骤归属 `ai` 时自动续跑,保持执行节奏。
11
+ - 本地持久化进度(数据库 + Markdown 快照),上下文不丢失。
12
+ - 你只需用自然语言下达目标,Planpilot 负责保持执行结构。
13
+
14
+ ## 安装
15
+
16
+ 在 OpenCode 配置文件 `opencode.json` 中添加插件:
17
+
18
+ - Unix/macOS: `~/.config/opencode/opencode.json`
19
+ - Windows: `%USERPROFILE%\\.config\\opencode\\opencode.json` (for example: `C:\\Users\\<your-user>\\.config\\opencode\\opencode.json`)
20
+
21
+ ```jsonc
22
+ {
23
+ "plugin": ["opencode-planpilot"]
24
+ }
25
+ ```
26
+
27
+ OpenCode 会在会话启动时自动安装 npm 插件。
28
+
29
+ ## 自然语言快速开始
30
+
31
+ 示例提示:
32
+
33
+ ```text
34
+ 使用 planpilot。
35
+ ```
36
+
37
+ ## OpenCode Studio 集成体验
38
+
39
+ Planpilot 提供一流的 OpenCode Studio 集成体验:
40
+
41
+ - 项目地址:[opencode-studio](https://github.com/canxin121/opencode-studio)
42
+
43
+ - 在 Studio 侧边栏查看运行态上下文(活动计划、下一步、进度状态)。
44
+ - 使用 Studio 设置面板调整运行态和自动续跑配置。
45
+ - 通过 Studio bridge 读取与写入运行态和配置状态。
46
+
47
+ 如果你已经在 OpenCode 中处理多步骤工作,OpenCode Studio 是最快的统一控制台,可用于监控流程、调优行为并保持团队协同。
48
+
49
+ ## 详细说明
50
+
51
+ 更细的配置结构、bridge action、参数级行为和触发规则,见 `DETAIL.zh-CN.md`。
52
+
53
+ ## 许可证
54
+
55
+ MIT
@@ -0,0 +1,5 @@
1
+ import { Plugin } from '@opencode-ai/plugin';
2
+
3
+ declare const PlanpilotPlugin: Plugin;
4
+
5
+ export { PlanpilotPlugin, PlanpilotPlugin as default };