create-agdf 0.9.1 → 0.9.5
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 +33 -4
- package/bin/create-agdf.js +2 -3333
- package/generated/.agdf/control/templates/MASTER_BACKLOG.md +3 -3
- package/generated/.github/skills/agdf-gate-check/SKILL.md +5 -0
- package/generated/.github/skills/agdf-interaction-locales.json +36 -0
- package/generated/.github/skills/contracts/interaction.md +9 -1
- package/generated/.opencode/agdf-interaction-locales.json +36 -0
- package/generated/.opencode/contracts/interaction.md +9 -1
- package/generated/.opencode/skills/agdf-gate-check/SKILL.md +5 -0
- package/generated/plugins/agdf/.codex-plugin/plugin.json +1 -1
- package/generated/plugins/agdf/control/templates/MASTER_BACKLOG.md +3 -3
- package/generated/plugins/agdf/meta/agdf-interaction-locales.json +36 -0
- package/generated/plugins/agdf/meta/agdf-plugin.definition.json +1 -1
- package/generated/plugins/agdf/meta/contracts/interaction.md +9 -1
- package/generated/plugins/agdf/skills/gate-check/SKILL.md +5 -0
- package/lib/cli/application.js +342 -0
- package/lib/cli/command-registry.js +119 -0
- package/lib/cli/delivery-path-search-command.js +75 -0
- package/lib/cli/parse-args.js +150 -0
- package/lib/cli/runtime-context.js +83 -0
- package/lib/control-evaluation/delivery-map.js +291 -0
- package/lib/control-evaluation/doctor.js +265 -0
- package/lib/control-evaluation/gate-check.js +404 -0
- package/lib/control-evaluation/gate-policy.js +283 -0
- package/lib/control-evaluation/run-state.js +217 -0
- package/lib/control-evaluation/shared.js +344 -0
- package/lib/control-evaluation/verified-change.js +156 -0
- package/lib/installers/opencode.js +443 -0
- package/lib/installers/plugin-installers.js +99 -0
- package/lib/lifecycle/operations.js +177 -0
- package/lib/lifecycle/presentation.js +52 -0
- package/lib/lifecycle/result.js +69 -0
- package/lib/lifecycle/status.js +108 -0
- package/lib/scaffold/plan.js +278 -0
- package/lib/scaffold/presentation.js +98 -0
- package/lib/scaffold/write.js +45 -0
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -21,14 +21,14 @@ Use a different target when Codex is not your agent surface:
|
|
|
21
21
|
| Claude Code | `npx --yes @agdf/cli@latest claude` | The AGDF plugin for Claude Code. |
|
|
22
22
|
| OpenCode, user-wide discovery | `npx --yes @agdf/cli@latest opencode` | The npm plugin and global native skills; repository governance remains opt-in. |
|
|
23
23
|
| OpenCode, one repository | `npx --yes @agdf/cli@latest opencode-repo` | Repository instructions, native skills, permissions and control templates. |
|
|
24
|
-
| GitHub Copilot | `
|
|
24
|
+
| GitHub Copilot | `npx --yes @agdf/cli@latest copilot` | Repository instructions, visible skills and control templates. |
|
|
25
25
|
| Durable control state in an existing setup | `npx --yes @agdf/cli@latest init` | Live `.agdf/control/` state when the repository explicitly needs it. |
|
|
26
26
|
|
|
27
27
|
For prerequisites, all surface-specific flows and operational boundaries, use the authoritative [installation guide](../INSTALL.md). Do not run `init` merely to ask a fresh question: an agent can first clarify the request and ask for `Approval: UR` when durable control state is needed.
|
|
28
28
|
|
|
29
|
-
##
|
|
29
|
+
## Command overview
|
|
30
30
|
|
|
31
|
-
The
|
|
31
|
+
The Quick Start above is the recommended entry point. For the exact current command and option reference, run `npx --yes @agdf/cli@latest --help`; the groups below explain the supported surfaces, validation paths and canonical run lifecycle.
|
|
32
32
|
|
|
33
33
|
Preferred long-term CLI shape:
|
|
34
34
|
|
|
@@ -39,6 +39,9 @@ npx --yes @agdf/cli@latest claude
|
|
|
39
39
|
npx --yes @agdf/cli@latest opencode
|
|
40
40
|
npx --yes @agdf/cli@latest opencode-status
|
|
41
41
|
npx --yes @agdf/cli@latest opencode-repo
|
|
42
|
+
npx --yes @agdf/cli@latest status --surface codex
|
|
43
|
+
npx --yes @agdf/cli@latest disable --surface codex --scope repository
|
|
44
|
+
npx --yes @agdf/cli@latest uninstall --surface codex --scope global
|
|
42
45
|
npx --yes @agdf/cli@latest init
|
|
43
46
|
npx --yes @agdf/cli@latest config --language en
|
|
44
47
|
npx --yes @agdf/cli@latest doctor
|
|
@@ -46,6 +49,24 @@ npx --yes @agdf/cli@latest gate-check --status-card
|
|
|
46
49
|
npx --yes @agdf/cli@latest gate-check --json
|
|
47
50
|
```
|
|
48
51
|
|
|
52
|
+
Operational validation and bounded planning:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npx --yes @agdf/cli@latest delivery-map --json
|
|
56
|
+
npx --yes @agdf/cli@latest delivery-path-search --surface codex --json
|
|
57
|
+
npx --yes @agdf/cli@latest delivery-path-search --surface claude --json
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Canonical run lifecycle:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
npx --yes @agdf/cli@latest run-create --run <run_id>
|
|
64
|
+
npx --yes @agdf/cli@latest run-migrate [--run <run_id>]
|
|
65
|
+
npx --yes @agdf/cli@latest run-render-legacy --run <run_id>
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Advanced / Compatibility
|
|
69
|
+
|
|
49
70
|
Backward-compatible scaffold usage:
|
|
50
71
|
|
|
51
72
|
```bash
|
|
@@ -61,13 +82,18 @@ npm create agdf@latest -- init
|
|
|
61
82
|
npm create agdf@latest -- config --language en
|
|
62
83
|
npm create agdf@latest -- doctor
|
|
63
84
|
npm create agdf@latest -- gate-check
|
|
85
|
+
npm create agdf@latest -- delivery-map
|
|
86
|
+
npm create agdf@latest -- delivery-path-search --surface codex
|
|
87
|
+
npm create agdf@latest -- delivery-path-search --surface claude
|
|
64
88
|
```
|
|
65
89
|
|
|
66
90
|
Optional flags:
|
|
67
91
|
|
|
68
92
|
- `--dir <path>` write into a specific directory
|
|
69
93
|
- `--force` overwrite existing generated files
|
|
70
|
-
- `--language <
|
|
94
|
+
- `--language <tag>` or `--lang <tag>` persist a BCP 47 language tag such as `de`, `en` or `fr-CA`
|
|
95
|
+
- `--scope <repository|global>` select an explicit lifecycle mutation scope
|
|
96
|
+
- `--confirm` apply a global uninstall after reviewing the default non-mutating preview
|
|
71
97
|
|
|
72
98
|
If no language is provided, `create-agdf` derives the preference from the local system locale (`LC_ALL`, `LC_MESSAGES`, `LANG`, `LANGUAGE` or the Node.js runtime locale) and falls back to `en`.
|
|
73
99
|
|
|
@@ -79,6 +105,9 @@ If no language is provided, `create-agdf` derives the preference from the local
|
|
|
79
105
|
- `copilot` writes `AGENTS.md`, Copilot custom instructions under `.github/`, visible repository skills under `.github/skills/`, and AGDF control templates under `.agdf/control/`
|
|
80
106
|
- `opencode` installs the AGDF npm plugin and nine native skills as a user-wide OpenCode surface
|
|
81
107
|
- `opencode-status` reports OpenCode global config, package loadability, global native-skill completeness, session signals and repository surface presence
|
|
108
|
+
- `status` reports installation, repository activation and delivery separately without mutating state
|
|
109
|
+
- `disable` writes a supported repository-local opt-out while retaining global capability and durable control state
|
|
110
|
+
- `uninstall` previews and, only with `--confirm`, applies a selected global removal through supported native/owned operations
|
|
82
111
|
- `opencode-repo` writes `opencode.json`, `.opencode/AGDF.md`, prefixed native OpenCode skills under `.opencode/skills/`, explicit question/edit/bash/skill permissions, and AGDF control templates under `.agdf/control/`
|
|
83
112
|
- `both` writes the Codex repository-local marketplace plus the Copilot-facing repository files
|
|
84
113
|
- `config` writes or updates only `.agdf/control/config.json` for an already installed plugin or an existing repository
|