lazyopencode-core 0.0.2 → 0.0.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/ATTRIBUTION.md +1 -1
- package/README.md +41 -5
- package/dist/agents/index.js +1 -1
- package/dist/agents/librarian.d.ts +1 -1
- package/dist/agents/librarian.js +2 -2
- package/dist/agents/oracle.d.ts +1 -1
- package/dist/agents/oracle.js +7 -0
- package/dist/hooks/lazy-command.js +21 -2
- package/dist/hooks/messages-transform.js +5 -2
- package/dist/hooks/runtime.d.ts +39 -1
- package/dist/hooks/runtime.js +136 -2
- package/dist/hooks/system-transform.js +6 -12
- package/dist/index.d.ts +3 -2
- package/dist/index.js +39 -16
- package/dist/opencode-control-plane.d.ts +16 -2
- package/dist/opencode-control-plane.js +241 -68
- package/dist/skills/lazy/debug/SKILL.md +1 -1
- package/dist/v2.js +1 -1
- package/docs/desktop-distribution.md +2 -2
- package/docs/opencode-integration.md +24 -6
- package/docs/positioning.md +2 -2
- package/docs/product-audit.md +4 -4
- package/docs/user-manual.md +36 -8
- package/docs/work-plan.md +5 -5
- package/package.json +2 -2
package/docs/user-manual.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# LazyOpenCode User Manual
|
|
2
2
|
|
|
3
|
-
Version 0.0.
|
|
3
|
+
Version 0.0.4
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -31,7 +31,7 @@ Add to `opencode.json`:
|
|
|
31
31
|
|
|
32
32
|
```json
|
|
33
33
|
{
|
|
34
|
-
"plugin": ["
|
|
34
|
+
"plugin": ["lazyopencode-core"]
|
|
35
35
|
}
|
|
36
36
|
```
|
|
37
37
|
|
|
@@ -58,14 +58,16 @@ override with `just do it` to skip gating.
|
|
|
58
58
|
|-------|------|------|
|
|
59
59
|
| `lazy` | primary | Runtime coordinator — workflow governance |
|
|
60
60
|
| `lazy-explorer` | subagent | Fast codebase recon (glob, grep, AST) |
|
|
61
|
-
| `lazy-oracle` | subagent |
|
|
62
|
-
| `lazy-librarian` | subagent | External docs, API references, web research |
|
|
61
|
+
| `lazy-oracle` | subagent | Judgment-only escalation for architecture, debugging, review, simplification |
|
|
62
|
+
| `lazy-librarian` | subagent | External docs, API references, configured docs tools, web research |
|
|
63
63
|
| `lazy-fixer` | subagent | Bounded implementation, mechanical changes |
|
|
64
64
|
| `lazy-designer` | subagent | UI/UX design (temp 0.7) |
|
|
65
65
|
| `lazy-observer` | subagent | Image/screenshot analysis |
|
|
66
66
|
| `lazy-councillor` | subagent | Single-model judgment for council sessions |
|
|
67
67
|
|
|
68
68
|
The primary agent (`lazy`) is the entry point. It delegates to subagents as needed.
|
|
69
|
+
The oracle is not a second primary; it gives judgment when the primary escalates
|
|
70
|
+
high-risk, ambiguous, debug, architecture, review, or simplification questions.
|
|
69
71
|
|
|
70
72
|
### Agent Configuration
|
|
71
73
|
|
|
@@ -204,7 +206,7 @@ Complete `opencode.json` structure:
|
|
|
204
206
|
|
|
205
207
|
```jsonc
|
|
206
208
|
{
|
|
207
|
-
"plugin": ["
|
|
209
|
+
"plugin": ["lazyopencode-core"],
|
|
208
210
|
|
|
209
211
|
"lazyopencode": {
|
|
210
212
|
// OpenCode SDK surface
|
|
@@ -243,7 +245,23 @@ Complete `opencode.json` structure:
|
|
|
243
245
|
"todos": true,
|
|
244
246
|
"permissions": true,
|
|
245
247
|
"worktreeIsolation": "risky-only",
|
|
246
|
-
"revertCheckpoints": true
|
|
248
|
+
"revertCheckpoints": true,
|
|
249
|
+
"context7": "suggest",
|
|
250
|
+
"sdkControlPlane": true,
|
|
251
|
+
"sdkTelemetry": true,
|
|
252
|
+
"tuiNotifications": true
|
|
253
|
+
},
|
|
254
|
+
|
|
255
|
+
// Model assignment. Preserve means use the model selected in OpenCode.
|
|
256
|
+
"models": {
|
|
257
|
+
"mode": "preserve",
|
|
258
|
+
"primary": "openai/o3",
|
|
259
|
+
"defaultSubagent": "deepseek/ds-v4-flash-free-max",
|
|
260
|
+
"escalation": {
|
|
261
|
+
"oracle": "openai/o3",
|
|
262
|
+
"council": "deepseek/ds-v4-flash-free-max"
|
|
263
|
+
},
|
|
264
|
+
"byAgent": {}
|
|
247
265
|
},
|
|
248
266
|
|
|
249
267
|
// Close report collection
|
|
@@ -297,6 +315,16 @@ Complete `opencode.json` structure:
|
|
|
297
315
|
| `opencode.vcsDiff` | `true` | Collect diff summary when available |
|
|
298
316
|
| `opencode.todos` | `true` | Collect todo summary when available |
|
|
299
317
|
| `opencode.permissions` | `true` | Include pending permission state in status |
|
|
318
|
+
| `opencode.context7` | `"suggest"` | `"suggest"`, `"inject"`, or `"off"` for optional context7 MCP handling |
|
|
319
|
+
| `opencode.sdkControlPlane` | `true` | Use OpenCode SDK for status, doctor, close evidence, and model validation |
|
|
320
|
+
| `opencode.sdkTelemetry` | `true` | Use OpenCode app logging when available |
|
|
321
|
+
| `opencode.tuiNotifications` | `true` | Use OpenCode TUI notifications when available |
|
|
322
|
+
| `models.mode` | `"preserve"` | `"preserve"` keeps OpenCode's selected model; `"profile"` assigns models per lazy role |
|
|
323
|
+
| `models.primary` | unset | Model string for `lazy` when profile mode is enabled |
|
|
324
|
+
| `models.defaultSubagent` | unset | Model string for subagents when profile mode is enabled |
|
|
325
|
+
| `models.escalation.oracle` | unset | Optional oracle model override in profile mode |
|
|
326
|
+
| `models.escalation.council` | unset | Optional councillor model override in profile mode |
|
|
327
|
+
| `models.byAgent` | `{}` | Per-agent model overrides in profile mode |
|
|
300
328
|
| `closeReport.autoCollect` | `true` | Collect close evidence from tool results |
|
|
301
329
|
| `closeReport.maxItems` | `5` | Max remembered close evidence per section |
|
|
302
330
|
| `commands.lazy` | `true` | Enable `/lazy` commands |
|
|
@@ -374,8 +402,8 @@ To override a gate, say `just do it`.
|
|
|
374
402
|
### Plugin not loading
|
|
375
403
|
|
|
376
404
|
Check:
|
|
377
|
-
- Plugin name matches exactly: `"
|
|
378
|
-
- Package is installed (`ls node_modules
|
|
405
|
+
- Plugin name matches exactly: `"lazyopencode-core"`
|
|
406
|
+
- Package is installed (`ls node_modules/lazyopencode-core`)
|
|
379
407
|
- OpenCode version is compatible (requires SDK `^1.2.6`)
|
|
380
408
|
|
|
381
409
|
### Skills not found
|
package/docs/work-plan.md
CHANGED
|
@@ -12,7 +12,7 @@ same product.
|
|
|
12
12
|
Desktop is a later distribution stage. It should package and visualize the core,
|
|
13
13
|
not recreate core rules.
|
|
14
14
|
|
|
15
|
-
## Phase 0: 0.0.
|
|
15
|
+
## Phase 0: 0.0.4 Core Plugin Lock
|
|
16
16
|
|
|
17
17
|
Goal: ship the current core as a clean, zero-config OpenCode plugin.
|
|
18
18
|
|
|
@@ -34,7 +34,7 @@ Tasks:
|
|
|
34
34
|
- Keep agent names stable.
|
|
35
35
|
- Keep `/lazy` command namespace stable.
|
|
36
36
|
- Keep `LazyOpenCodePluginV1` named export for legacy hook loading.
|
|
37
|
-
- Keep default export on v2
|
|
37
|
+
- Keep default export on the legacy hook adapter until v2 can cover governance hooks.
|
|
38
38
|
|
|
39
39
|
Acceptance criteria:
|
|
40
40
|
|
|
@@ -123,7 +123,7 @@ Tasks:
|
|
|
123
123
|
|
|
124
124
|
1. Import or fork upstream OpenCode Desktop.
|
|
125
125
|
2. Add first-run config merge:
|
|
126
|
-
- add
|
|
126
|
+
- add `lazyopencode-core` if absent
|
|
127
127
|
- add `lazyopencode` defaults only when not user-set
|
|
128
128
|
- preserve provider, auth, model, MCP, project, and session settings
|
|
129
129
|
3. Add Lazy Health panel:
|
|
@@ -183,8 +183,8 @@ Acceptance criteria:
|
|
|
183
183
|
|
|
184
184
|
## Current Priority
|
|
185
185
|
|
|
186
|
-
Do not start Desktop until `0.0.
|
|
187
|
-
planned clearly.
|
|
186
|
+
Do not start Desktop until the `0.0.x` core plugin is locked and runtime deepening
|
|
187
|
+
is planned clearly.
|
|
188
188
|
|
|
189
189
|
The next best engineering task is Phase 1: split `LazyRuntime` into deeper
|
|
190
190
|
modules while preserving behavior and tests.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lazyopencode-core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "Governed team runtime for AI coding in OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
27
|
-
"url": "https://github.com/SisyphusZheng/lazyopencode"
|
|
27
|
+
"url": "git+https://github.com/SisyphusZheng/lazyopencode.git"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@opencode-ai/plugin": "^1.2.6"
|