gm-copilot-cli 2.0.235 → 2.0.237
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/copilot-profile.md +1 -1
- package/hooks/session-end-hook.js +4 -8
- package/index.html +1 -1
- package/manifest.yml +1 -1
- package/package.json +1 -1
- package/skills/gm/SKILL.md +1 -1
- package/skills/gm-complete/SKILL.md +1 -1
- package/skills/planning/SKILL.md +23 -17
- package/tools.json +1 -1
package/copilot-profile.md
CHANGED
|
@@ -22,14 +22,10 @@ const run = () => {
|
|
|
22
22
|
if (fs.existsSync(prdFile)) {
|
|
23
23
|
const prdContent = fs.readFileSync(prdFile, 'utf-8').trim();
|
|
24
24
|
if (prdContent.length > 0) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
ok: false,
|
|
30
|
-
reason: `Work items remain in ${prdFile}. Remove completed items as they finish. Current items:\n\n${prdContent}`
|
|
31
|
-
};
|
|
32
|
-
}
|
|
25
|
+
return {
|
|
26
|
+
ok: false,
|
|
27
|
+
reason: `Work items remain in ${prdFile}. Remove completed items as they finish. Delete the file when all items are done.\n\n${prdContent}`
|
|
28
|
+
};
|
|
33
29
|
}
|
|
34
30
|
}
|
|
35
31
|
return { ok: true };
|
package/index.html
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<script type="module">
|
|
19
19
|
import { createElement as h, applyDiff, Fragment } from "webjsx";
|
|
20
20
|
const PLATFORM_NAME="Copilot CLI",PLATFORM_TYPE="CLI Tool",PLATFORM_TYPE_COLOR="#3b82f6";
|
|
21
|
-
const DESCRIPTION="State machine agent with hooks, skills, and automated git enforcement",VERSION="2.0.
|
|
21
|
+
const DESCRIPTION="State machine agent with hooks, skills, and automated git enforcement",VERSION="2.0.237";
|
|
22
22
|
const GITHUB_URL="https://github.com/AnEntrypoint/gm-copilot-cli",BADGE_LABEL="copilot-cli";
|
|
23
23
|
const FEATURES=[{"title":"State Machine","desc":"Immutable PLAN→EXECUTE→EMIT→VERIFY→COMPLETE phases with full mutable tracking"},{"title":"Semantic Search","desc":"Natural language codebase exploration via codesearch skill — no grep needed"},{"title":"Hooks","desc":"Pre-tool, session-start, prompt-submit, and stop hooks for full lifecycle control"},{"title":"Agents","desc":"gm, codesearch, and websearch agents pre-configured and ready to use"},{"title":"MCP Integration","desc":"Model Context Protocol server support built in"},{"title":"Auto-Recovery","desc":"Supervisor hierarchy ensures the system never crashes"}],INSTALL_STEPS=[{"desc":"Install via GitHub CLI","cmd":"gh extension install AnEntrypoint/gm-copilot-cli"},{"desc":"Restart your terminal — activates automatically"}];
|
|
24
24
|
const CURRENT_PLATFORM="gm-copilot-cli";
|
package/manifest.yml
CHANGED
package/package.json
CHANGED
package/skills/gm/SKILL.md
CHANGED
|
@@ -10,7 +10,7 @@ You think in state, not prose. You are the root orchestrator of all work in this
|
|
|
10
10
|
|
|
11
11
|
**GRAPH POSITION**: `[ROOT ORCHESTRATOR]`
|
|
12
12
|
- **Entry**: The prompt-submit hook always invokes `gm` skill first.
|
|
13
|
-
- **Shared state**: .prd file on disk + witnessed execution output only. Nothing persists between skills.
|
|
13
|
+
- **Shared state**: .prd file (markdown format) on disk + witnessed execution output only. Nothing persists between skills. Delete .prd when empty — do not leave an empty file.
|
|
14
14
|
- **First action**: Invoke `planning` skill immediately.
|
|
15
15
|
|
|
16
16
|
## THE STATE MACHINE
|
|
@@ -31,7 +31,7 @@ You are in the **VERIFY → COMPLETE** phase. Files are written. Prove the whole
|
|
|
31
31
|
- `witnessed_e2e=UNKNOWN` until real end-to-end run produces witnessed output
|
|
32
32
|
- `git_clean=UNKNOWN` until `exec:bash\ngit status --porcelain` returns empty
|
|
33
33
|
- `git_pushed=UNKNOWN` until `exec:bash\ngit rev-list --count @{u}..HEAD` returns 0
|
|
34
|
-
- `prd_empty=UNKNOWN` until .prd
|
|
34
|
+
- `prd_empty=UNKNOWN` until .prd file is deleted (not just empty — file must not exist)
|
|
35
35
|
|
|
36
36
|
All four must resolve to KNOWN before COMPLETE. Any UNKNOWN = absolute barrier.
|
|
37
37
|
|
package/skills/planning/SKILL.md
CHANGED
|
@@ -39,28 +39,34 @@ Planning = exhaustive mutable discovery. For every aspect of the task ask:
|
|
|
39
39
|
|
|
40
40
|
Categories of unknowns to enumerate: file existence | API shape | data format | dependency versions | runtime behavior | environment differences | error conditions | concurrency | integration points | backwards compatibility | rollback paths | deployment steps | verification criteria
|
|
41
41
|
|
|
42
|
-
## .PRD
|
|
43
|
-
|
|
44
|
-
Path: exactly `./.prd` in current working directory.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
42
|
+
## .PRD FORMAT
|
|
43
|
+
|
|
44
|
+
Path: exactly `./.prd` in current working directory. **Markdown format** (`.md` content, no extension).
|
|
45
|
+
|
|
46
|
+
**Delete the file when empty.** Do not leave an empty `.prd` on disk — remove it entirely when all items are completed.
|
|
47
|
+
|
|
48
|
+
```markdown
|
|
49
|
+
# .prd
|
|
50
|
+
|
|
51
|
+
## pending: descriptive-kebab-id
|
|
52
|
+
**Subject:** Imperative verb phrase — what must be true when done
|
|
53
|
+
**Status:** pending
|
|
54
|
+
**Description:** Precise completion criterion
|
|
55
|
+
**Effort:** small|medium|large
|
|
56
|
+
**Category:** feature|bug|refactor|infra
|
|
57
|
+
**Blocking:** id-a, id-b
|
|
58
|
+
**Blocked by:** id-c
|
|
59
|
+
**Acceptance:**
|
|
60
|
+
- measurable, binary criterion 1
|
|
61
|
+
- measurable, binary criterion 2
|
|
62
|
+
**Edge cases:**
|
|
63
|
+
- known failure mode 1
|
|
59
64
|
```
|
|
60
65
|
|
|
61
66
|
**Status flow**: `pending` → `in_progress` → `completed` (completed items are removed from file).
|
|
62
67
|
**Effort**: `small` = single execution, under 15min | `medium` = 2-3 rounds, under 45min | `large` = multiple rounds, over 1h.
|
|
63
68
|
**blocking/blockedBy**: always bidirectional. Every dependency must be explicit in both directions.
|
|
69
|
+
**Deletion rule**: when the last item is completed and removed, delete the `.prd` file. An empty file is a violation.
|
|
64
70
|
|
|
65
71
|
## EXECUTION WAVES
|
|
66
72
|
|