gm-oc 2.0.1059 → 2.0.1061
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 +38 -17
- package/agents/gm.md +1 -1
- package/bin/bootstrap.js +895 -0
- package/bin/plugkit.js +110 -0
- package/bin/plugkit.sha256 +6 -0
- package/bin/plugkit.version +1 -0
- package/bin/rtk.sha256 +6 -0
- package/bin/rtk.version +1 -0
- package/cli.js +16 -10
- package/gm-oc.mjs +33 -50
- package/install.js +5 -1
- package/package.json +2 -4
- package/skills/gm/SKILL.md +0 -11
- package/skills/gm-cc/SKILL.md +0 -2
- package/skills/gm-codex/SKILL.md +0 -2
- package/skills/gm-copilot-cli/SKILL.md +0 -2
- package/skills/gm-cursor/SKILL.md +0 -2
- package/skills/gm-gc/SKILL.md +0 -2
- package/skills/gm-jetbrains/SKILL.md +0 -2
- package/skills/gm-kilo/SKILL.md +0 -2
- package/skills/gm-oc/SKILL.md +0 -2
- package/skills/gm-vscode/SKILL.md +0 -2
- package/skills/gm-zed/SKILL.md +0 -2
package/README.md
CHANGED
|
@@ -4,38 +4,59 @@
|
|
|
4
4
|
|
|
5
5
|
### One-liner (recommended)
|
|
6
6
|
|
|
7
|
-
Install directly from npm
|
|
7
|
+
Install directly from npm:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
bun x gm-oc@latest
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
This
|
|
13
|
+
This copies the plugin to `~/.config/opencode/` and registers it in your config. Restart OpenCode to activate.
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Via npm install
|
|
16
16
|
|
|
17
|
-
**Windows and Unix:**
|
|
18
17
|
```bash
|
|
19
|
-
|
|
18
|
+
npm install -g gm-oc
|
|
19
|
+
gm-oc
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
```powershell
|
|
24
|
-
git clone https://github.com/AnEntrypoint/gm-oc "\$env:APPDATA\opencode\plugin" && cd "\$env:APPDATA\opencode\plugin" && bun install
|
|
25
|
-
```
|
|
22
|
+
### Manual installation
|
|
26
23
|
|
|
27
|
-
|
|
24
|
+
Clone to the global plugin directory:
|
|
28
25
|
|
|
29
|
-
**Windows and Unix:**
|
|
30
26
|
```bash
|
|
31
|
-
git clone https://github.com/AnEntrypoint/gm-oc
|
|
27
|
+
git clone https://github.com/AnEntrypoint/gm-oc ~/.config/opencode/plugin
|
|
32
28
|
```
|
|
33
29
|
|
|
34
30
|
## Features
|
|
35
31
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
32
|
+
- **State machine agent** — PLAN→EXECUTE→EMIT→VERIFY→COMPLETE orchestration
|
|
33
|
+
- **Skill chain** — gm, planning, gm-execute, gm-emit, gm-complete, update-docs
|
|
34
|
+
- **exec: dispatch** — code execution via spool watcher (nodejs, python, bash, typescript, go, rust)
|
|
35
|
+
- **Code search** — semantic codebase exploration via exec:codesearch
|
|
36
|
+
- **Git enforcement** — blocks session end with uncommitted changes or unpushed commits
|
|
37
|
+
- **Memory** — rs-learn integration for cross-session knowledge retention
|
|
38
|
+
|
|
39
|
+
## How it works
|
|
40
|
+
|
|
41
|
+
The plugin installs:
|
|
42
|
+
- **Agent** (`agents/gm.md`) — primary orchestrator with skill-chain instructions
|
|
43
|
+
- **Skills** (`skills/`) — PLAN, EXECUTE, EMIT, VERIFY, UPDATE-DOCS skill definitions
|
|
44
|
+
- **Plugin** (`plugins/gm-oc.mjs`) — hooks for session lifecycle, tool gating, exec: dispatch
|
|
45
|
+
- **Lang runners** (`lang/`) — language-specific execution plugins
|
|
46
|
+
|
|
47
|
+
All exec: commands route through the spool watcher at `.gm/exec-spool/` for session-isolated task execution.
|
|
48
|
+
|
|
49
|
+
## Troubleshooting
|
|
50
|
+
|
|
51
|
+
**Plugin not loading:**
|
|
52
|
+
- Verify `~/.config/opencode/plugins/gm-oc.mjs` exists
|
|
53
|
+
- Check `opencode.json` has the plugin path in the `plugin` array
|
|
54
|
+
- Restart OpenCode completely
|
|
55
|
+
|
|
56
|
+
**Skills not appearing:**
|
|
57
|
+
- Verify `~/.config/opencode/skills/` contains skill directories with SKILL.md files
|
|
58
|
+
- Skill names must be lowercase with hyphens (e.g., `gm`, `gm-execute`)
|
|
40
59
|
|
|
41
|
-
|
|
60
|
+
**exec: commands failing:**
|
|
61
|
+
- Check `.gm/exec-spool/` directory exists in your project
|
|
62
|
+
- Verify plugkit binary is present at `~/.config/opencode/bin/`
|