@agdf/cli 0.3.5 → 0.4.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.
Files changed (2) hide show
  1. package/README.md +38 -14
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -13,21 +13,31 @@ GitHub Copilot and OpenCode.
13
13
 
14
14
  ## Quick Start
15
15
 
16
- Run commands inside the target Git repository:
16
+ Prepare one repository:
17
17
 
18
18
  ```bash
19
19
  npx --yes @agdf/cli@latest codex
20
- npx --yes @agdf/cli@latest opencode
20
+ npx --yes @agdf/cli@latest codex-repo
21
+ npx --yes @agdf/cli@latest claude
22
+ npx --yes @agdf/cli@latest opencode-repo
21
23
  npx --yes @agdf/cli@latest copilot
22
24
  ```
23
25
 
24
- Install globally when AGDF should be available as a regular command on your
25
- machine:
26
+ Install the user-wide OpenCode hook:
27
+
28
+ ```bash
29
+ npx --yes @agdf/cli@latest opencode
30
+ npx --yes @agdf/cli@latest opencode-status
31
+ ```
32
+
33
+ Install the AGDF CLI globally when `agdf` should be available as a regular
34
+ shell command on your machine:
26
35
 
27
36
  ```bash
28
37
  npm install -g @agdf/cli
29
38
  agdf init
30
39
  agdf doctor
40
+ agdf gate-check --status-card
31
41
  agdf gate-check --json
32
42
  ```
33
43
 
@@ -41,7 +51,7 @@ Use it to:
41
51
 
42
52
  - install AGDF instructions and skills into a target repository
43
53
  - initialize durable `.agdf/control` state when a repository should own it
44
- - run deterministic validators such as `doctor` and `gate-check --json`
54
+ - run compact interactive checks such as `gate-check --status-card` and deterministic validators such as `doctor` and `gate-check --json`
45
55
  - prepare Codex, GitHub Copilot and OpenCode surfaces from the same source of
46
56
  truth while keeping Claude Code installation explicitly separate
47
57
 
@@ -62,22 +72,31 @@ authoritative reusable format, not AGDF's internal project backlog.
62
72
 
63
73
  | Command | Purpose |
64
74
  | --- | --- |
65
- | `codex` | Add a repository-local Codex marketplace and AGDF plugin copy. |
66
- | `opencode` | Add OpenCode instructions, agents, permissions and the npm plugin entry. |
75
+ | `codex` | Install the AGDF plugin globally for Codex. |
76
+ | `codex-repo` | Add a repository-local Codex marketplace and AGDF plugin copy. |
77
+ | `claude` | Install the AGDF plugin globally for Claude Code. |
78
+ | `opencode` | Install the AGDF npm plugin as a user-wide OpenCode hook. |
79
+ | `opencode-status` | Report OpenCode global config, package loadability, session signals and repository surface presence. |
80
+ | `opencode-repo` | Add OpenCode repository instructions, subagents, permissions and control templates. |
67
81
  | `copilot` | Add `AGENTS.md`, Copilot instructions, skills and control templates. |
68
82
  | `both` | Prepare the repository-file and plugin surfaces together. |
69
83
  | `init` | Create durable `.agdf/control` files when repository-owned control state is required. |
70
84
  | `config --language de\|en` | Persist the project language without creating the full control scaffold. |
71
85
  | `doctor [--json]` | Check whether the durable control state is consistent and actionable. |
72
86
  | `gate-check [--json]` | Report the current gate, blockers and next permitted action. |
87
+ | `gate-check --status-card` | Print compact interactive gate status without full JSON. |
73
88
  | `delivery-map [--json]` | Report artefact relationships, evidence, risks and Context Graph effects. |
74
89
 
75
90
  Examples:
76
91
 
77
92
  ```bash
93
+ npx --yes @agdf/cli@latest opencode
94
+ npx --yes @agdf/cli@latest opencode-status --json
95
+ npx --yes @agdf/cli@latest opencode-repo
78
96
  npx --yes @agdf/cli@latest config --language en
79
97
  npx --yes @agdf/cli@latest init
80
98
  npx --yes @agdf/cli@latest doctor
99
+ npx --yes @agdf/cli@latest gate-check --status-card
81
100
  npx --yes @agdf/cli@latest gate-check --json
82
101
  npx --yes @agdf/cli@latest delivery-map --json
83
102
  ```
@@ -87,13 +106,18 @@ They do not replace AGDF skill judgement or user approvals.
87
106
 
88
107
  ## Surface Notes
89
108
 
90
- - **Codex:** `codex` prepares a repository-local marketplace. For a global
91
- installation, use the Codex plugin marketplace commands documented on the
92
- [AGDF website](https://agdf.iself.eu/#setup-codex).
93
- - **Claude Code:** install the AGDF plugin with the Claude Code CLI; this is not
94
- an `@agdf/cli` bootstrap target.
95
- - **OpenCode:** `opencode` writes the npm plugin entry together with the
96
- repository instructions, agents and permissions AGDF needs.
109
+ - **Codex:** `codex` installs the AGDF plugin globally for Codex, while
110
+ `codex-repo` prepares a repository-local marketplace for testing AGDF in one
111
+ repository.
112
+ - **Claude Code:** `claude` installs the AGDF plugin globally for Claude Code.
113
+ - **OpenCode:** `opencode` installs the user-wide npm plugin hook, while
114
+ `opencode-status` verifies global config, package loadability, session signals
115
+ and repository surface presence. `opencode-repo` writes the repository instructions, agents and permissions
116
+ AGDF needs. Repository instructions, generated agents and control files remain
117
+ the AGDF source of truth. The generated
118
+ OpenCode agents are intentional `mode: subagent` workflow controls, not
119
+ `.opencode/skills/` entries or primary menu agents; use `@agdf-gate-check`
120
+ as the visible entry point for new build/change intent.
97
121
  - **GitHub Copilot:** `copilot` writes repository instructions and skills. If
98
122
  `AGENTS.md` already exists, AGDF preserves it and writes `AGENTS.agdf.md` for
99
123
  manual merging.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agdf/cli",
3
- "version": "0.3.5",
3
+ "version": "0.4.1",
4
4
  "description": "Primary AGDF CLI for repository-local AI governance, delivery controls and agent setup.",
5
5
  "type": "module",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "smoke-test": "node ./scripts/smoke-test.js"
16
16
  },
17
17
  "dependencies": {
18
- "create-agdf": "0.3.5"
18
+ "create-agdf": "0.4.1"
19
19
  },
20
20
  "keywords": [
21
21
  "agdf",