@duyquangnvx/create-agent-cli 0.22.0 → 0.24.0
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/CHANGELOG.md +37 -0
- package/README.md +2 -2
- package/dist/bin.js +1257 -1117
- package/package.json +2 -2
- package/partials/dependency/installSteps.md +1 -1
- package/partials/dependency/skillCheck.md +1 -1
- package/partials/dependency/updateSteps.md +2 -2
- package/partials/dependency/whenMissing.md +1 -0
- package/partials/global/installLines.md +3 -3
- package/partials/global/installSteps.md +5 -9
- package/partials/global/sandbox.md +1 -1
- package/partials/global/skillCheck.md +1 -1
- package/partials/global/updateSteps.md +2 -3
- package/partials/global/whenMissing.md +1 -0
- package/template/AGENTS.md +3 -1
- package/template/docs/cli/README.md +34 -0
- package/template/{skills/{{binName}}/references → docs/cli}/setup.md +1 -1
- package/template/package.json +3 -1
- package/template/scripts/release.ts +0 -1
- package/template/skills/{{binName}}/SKILL.md +4 -35
- package/template/src/bin.ts +20 -2
- package/template/src/cli.ts +2 -0
- package/template/test/cli.test.ts +15 -8
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,43 @@ What changed in each release of `@duyquangnvx/agent-cli` (the Runtime) and `@duy
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## v0.24.0 (2026-11-05)
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- A Global install of a CLI with several Commands has the Built-in `setup`, run as `npx -y <package>@latest setup` before the CLI is on the machine: it installs the latest release, copies the skill to `~/.claude/skills/<name>` and `~/.agents/skills/<name>`, and names the CLI docs. `setupLineOf` builds that line. It fails with the new `NOT_ON_PATH` (exit 2) when the global bin folder is off this shell's `PATH`.
|
|
12
|
+
- The Scaffolder's `bin` checks `engines.node` before it imports anything, and exits 2 naming the version needed. A CLI that exists already gets it by copying the template's `src/bin.ts`.
|
|
13
|
+
- `defineCli({ docs: "docs/cli" })` declares the CLI docs, a folder of pages shipped in the package, and `--version` prints `docs <path>` naming it, also when run from source.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- **Breaking:** `defineCli`'s `skill` is `{ folder, agents? }`, in place of `{ source }`, `{ add }` and `{ packaged }`: every skill ships in the package. It throws on a skill on a single-Command CLI, and on `agents` on a Global install.
|
|
18
|
+
- **Breaking:** `update` makes the home Skill copies match the release it leaves installed, and its `--json` gains `skill`.
|
|
19
|
+
- **Breaking:** on a Global install, `doctor`'s `install` row fix is the `setup` line, and its `skill` row looks under home only and reports a missing or stamped copy as an advisory problem whose fix is `<run-as> setup`. A CLI declaring no skill has that row skipped.
|
|
20
|
+
- **Breaking:** the Scaffolder always declares a skill, lists `skills` in `files`, refuses a name a skill cannot have, and opens a Global install's README with the sentence to paste.
|
|
21
|
+
- **Breaking:** the Scaffolder writes one kind of skill: a trigger with the description, the install line and a pointer to the `docs` line, stating no version. Workflows, the Recovering from errors table and the setup page move to a new `docs/cli/` folder, which `files` lists. `scripts/release.ts` names `skill` and `skillHub` together when there is a Hub and neither otherwise, on `@duyquangnvx/release` 0.9.0. Move a CLI's own skill to this shape: its `metadata.version` goes, and everything that changes with a release moves to CLI docs.
|
|
22
|
+
- **Breaking:** `doctor`'s `skill` row no longer compares versions. It reports whether a copy is there; a copy stating `metadata.version` gets `<run-as> setup`, or `<run-as> skill install` for a copy under the project. Under `--json` the row no longer carries `skill: { copy, copyVersion, packageVersion, home }`, and a copy under home is named in its message.
|
|
23
|
+
- **Breaking:** `skill install` always makes the copy match the package, and `--force` is gone: the project commits the copy, so git shows the change.
|
|
24
|
+
|
|
25
|
+
### Removed
|
|
26
|
+
|
|
27
|
+
- **Breaking:** the Scaffolder's `--skill-hub-git`, `--skill-hub-api` and `--skill-add`. A release that still wants a Skill Hub names `skill` and `skillHub` in `scripts/release.ts`.
|
|
28
|
+
- **Breaking:** `update`'s `next`, with the lines that brought Skill copies to a version.
|
|
29
|
+
- A Packaged skill's Notice before each Command, and the hint on `UNKNOWN_OPTION`, `UNKNOWN_COMMAND` and `INVALID_INPUT` naming a Skill copy of another version.
|
|
30
|
+
|
|
31
|
+
### Upgrade from v0.23.0
|
|
32
|
+
|
|
33
|
+
- Replace `skill: { source }`, `{ add }` or `{ packaged }` with `skill: { folder: "skills/<name>" }`, and on a Global install drop `agents`.
|
|
34
|
+
- List `skills` in `package.json` `files`.
|
|
35
|
+
- On a Global install, open the README with the sentence to paste, give the `setup` line in the skill and `docs/cli/setup.md`, and leave the skill's Hub install line out of them. `scripts/release.ts` may keep `skillHub`.
|
|
36
|
+
- A user's Skill copy from a Skill Hub is replaced by their next `setup` or `update`.
|
|
37
|
+
|
|
38
|
+
## v0.23.0 (2026-11-03)
|
|
39
|
+
|
|
40
|
+
### Added
|
|
41
|
+
|
|
42
|
+
- A Global install of a CLI with several Commands runs a Release check: at most once a day a run asks the Install registry, in a detached process, for the latest release, and later runs give the Notice ``<cli> X.Y.Z is out, this is A.B.C; run `<cli> update` `` while the CLI is behind. No run waits on it. `CI`, or `<NAME>_NO_RELEASE_CHECK=1` for one CLI, turns it off; it keeps its answer in `$XDG_CACHE_HOME/<name>/release-check.json`, by default under `~/.cache`.
|
|
43
|
+
|
|
7
44
|
## v0.22.0 (2026-11-02)
|
|
8
45
|
|
|
9
46
|
### Added
|
package/README.md
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Creates a new Agent CLI repository already wired to [`@duyquangnvx/agent-cli`](https://www.npmjs.com/package/@duyquangnvx/agent-cli):
|
|
4
4
|
|
|
5
5
|
```sh
|
|
6
|
-
pnpm create @duyquangnvx/agent-cli <name> --description "One line saying what it does"
|
|
6
|
+
pnpm create @duyquangnvx/agent-cli <name> --description "One line saying what it does"
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
The new repository has an Error table, a port, two example Commands (one writing a file at a cost) and their test, a bundled build that stamps the commit and build time into `--version`, CI, a release script, a CHANGELOG, an `AGENTS.md` whose Agents section points Coding agents at the Runtime's docs in `node_modules`,
|
|
9
|
+
The new repository has an Error table, a port, two example Commands (one writing a file at a cost) and their test, a bundled build that stamps the commit and build time into `--version`, CI, a release script, a CHANGELOG, an `AGENTS.md` whose Agents section points Coding agents at the Runtime's docs in `node_modules`, a thin skill for the new CLI, and the CLI docs it points at in `docs/cli/`, so a user pastes one sentence to their agent, whose `setup` installs the CLI and the skill, and a release moves one thing. `--dependency` instead starts a CLI each project pins as a devDependency, run as `npx -q --no-install <name>`, whose `skill install` copies the skill into the project. Pass `--dry-run` to see what it would write.
|
|
10
10
|
|
|
11
11
|
See the [repository](https://github.com/duyquangnvx/cli-for-agent) for an overview and the [Runtime's docs](https://github.com/duyquangnvx/cli-for-agent/blob/main/packages/agent-cli/docs/README.md) for how to build on it.
|