@duyquangnvx/create-agent-cli 0.2.0 → 0.2.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.
- package/CHANGELOG.md +7 -0
- package/dist/bin.js +2 -2
- package/package.json +2 -2
- package/template/AGENTS.md +9 -2
- package/template/CLAUDE.md +1 -0
- package/template/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@ What changed in each release of `@duyquangnvx/agent-cli` (the Runtime) and `@duy
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## v0.2.1 (2026-10-19)
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- The scaffolded template's devDependencies are `@duyquangnvx/harness` 0.3.1 and `@duyquangnvx/release` 0.2.0, whose `afterPublish` runs again on a rerun that ends `released`.
|
|
12
|
+
- The scaffolded project's `AGENTS.md` has the sections `harness doctor` checks for (`## Project status`, `## Commands`, `## Coding standards`, `## Agent skills`), and a `CLAUDE.md` holding only `@AGENTS.md`.
|
|
13
|
+
|
|
7
14
|
## v0.2.0 (2026-10-19)
|
|
8
15
|
|
|
9
16
|
### Changed
|
package/dist/bin.js
CHANGED
|
@@ -7428,7 +7428,7 @@ async function runProcess(cli) {
|
|
|
7428
7428
|
//#endregion
|
|
7429
7429
|
//#region src/build.ts
|
|
7430
7430
|
const build = {
|
|
7431
|
-
"sha": "
|
|
7431
|
+
"sha": "f35d0e3",
|
|
7432
7432
|
"dirty": false
|
|
7433
7433
|
};
|
|
7434
7434
|
//#endregion
|
|
@@ -7559,7 +7559,7 @@ async function writeTemplate(root, files, values) {
|
|
|
7559
7559
|
}
|
|
7560
7560
|
//#endregion
|
|
7561
7561
|
//#region src/version.ts
|
|
7562
|
-
const version = "0.2.
|
|
7562
|
+
const version = "0.2.1";
|
|
7563
7563
|
//#endregion
|
|
7564
7564
|
//#region src/create.ts
|
|
7565
7565
|
const PACKAGE_NAME = /^(?:@[a-z0-9][a-z0-9._-]*\/)?([a-z0-9][a-z0-9._-]*)$/;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duyquangnvx/create-agent-cli",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Creates a new Agent CLI repository wired to @duyquangnvx/agent-cli.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@duyquangnvx/agent-cli": "0.2.
|
|
22
|
+
"@duyquangnvx/agent-cli": "0.2.1",
|
|
23
23
|
"tsdown": "0.23.0",
|
|
24
24
|
"zod": "4.6.7"
|
|
25
25
|
},
|
package/template/AGENTS.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
{{description}} An Agent CLI: its main callers are LLM coding agents running it through a shell, so it never prompts, keeps output short, and tells the caller what to run next when something fails. It is built on [`@duyquangnvx/agent-cli`](https://www.npmjs.com/package/@duyquangnvx/agent-cli), the Runtime, which owns parsing, help, output, errors and exit codes.
|
|
4
4
|
|
|
5
|
+
## Project status
|
|
6
|
+
|
|
7
|
+
Greenfield with no deployments or users: change code directly. Breaking changes are welcome; no feature flags, shims, or backward compatibility.
|
|
8
|
+
|
|
5
9
|
## Commands
|
|
6
10
|
|
|
7
11
|
| | |
|
|
@@ -12,7 +16,7 @@
|
|
|
12
16
|
| `pnpm build` | bundles `dist/`, the `{{binName}}` bin, with the Runtime and the commit it is built from |
|
|
13
17
|
| `pnpm release` | publishes to npm through `@duyquangnvx/release`; run `pnpm release --dry-run` to check it |
|
|
14
18
|
|
|
15
|
-
##
|
|
19
|
+
## Coding standards
|
|
16
20
|
|
|
17
21
|
- Every Command is declared in `src/cli.ts` with `defineCommand`: a description, realistic examples, Zod schemas for args and options (with `.describe()` on each field), and its Effect.
|
|
18
22
|
- A Command never prints. A `read` Command returns data from `run` and turns it into short text in `render`. A `write` or `destructive` Command returns a Plan from `plan`, with no side effects, and performs it in `apply`; the Runtime adds `--dry-run`, and `--confirm` for a destructive one.
|
|
@@ -20,4 +24,7 @@
|
|
|
20
24
|
- A Command that lists many items declares its row schema as `rows` and returns `paginate(items, { limit, cursor })`; the Runtime adds `--limit`, `--cursor` and `--fields`.
|
|
21
25
|
- Tests drive the CLI through `runCli` and assert only stdout, stderr and the exit code, as `test/cli.test.ts` does.
|
|
22
26
|
- A change a user of `{{binName}}` would notice gets an entry under `## Unreleased` in `CHANGELOG.md`, in the format its opening paragraph states.
|
|
23
|
-
|
|
27
|
+
|
|
28
|
+
## Agent skills
|
|
29
|
+
|
|
30
|
+
`skills/{{binName}}/SKILL.md` is the agent skill: when to use `{{binName}}`, its workflows and how to recover from its errors. Update it with any change to those, and leave flag details to `--help`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@AGENTS.md
|
package/template/package.json
CHANGED
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@biomejs/biome": "2.5.15",
|
|
30
30
|
"@duyquangnvx/agent-cli": "{{runtimeVersion}}",
|
|
31
|
-
"@duyquangnvx/harness": "0.
|
|
32
|
-
"@duyquangnvx/release": "0.
|
|
31
|
+
"@duyquangnvx/harness": "0.3.1",
|
|
32
|
+
"@duyquangnvx/release": "0.2.0",
|
|
33
33
|
"@types/node": "^22.19.0",
|
|
34
34
|
"tsdown": "0.23.0",
|
|
35
35
|
"typescript": "7.0.2",
|