@duyquangnvx/create-agent-cli 0.20.0 → 0.22.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duyquangnvx/create-agent-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Creates a new Agent CLI repository wired to @duyquangnvx/agent-cli.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@duyquangnvx/agent-cli": "0.
|
|
24
|
+
"@duyquangnvx/agent-cli": "0.22.0",
|
|
25
25
|
"tsdown": "0.23.0",
|
|
26
26
|
"zod": "4.6.7"
|
|
27
27
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
This installs the CLI. The user has installed this skill already.
|
|
2
2
|
|
|
3
|
-
1. Run `node --version` and compare it with the range `npm view {{packageName}} engines.node` prints, which `doctor`'s `node` row also checks once the CLI is installed. Under nvm every Node version has its own global packages, so {{binName}} lands under the Node this shell runs. If that Node is too old, or is not the one the user's terminal runs, tell the user and let them choose before going on.
|
|
3
|
+
1. Run `node --version` and compare it with the range `npm view {{packageName}} engines.node` prints, which `doctor`'s `node` row also checks once the CLI is installed. Under nvm every Node version has its own global packages, so {{binName}} lands under the Node this shell runs. If that Node is too old, or is not the one the user's terminal runs, tell the user and let them choose before going on. That is also why a {{binName}} the user installed can be missing from this shell: ask which Node their terminal runs before installing again.
|
|
4
4
|
2. Hand the user the install line to type, as [Sandbox](#sandbox) says:
|
|
5
5
|
|
|
6
6
|
`! npm install --global {{packageName}}@latest`
|
|
@@ -7,7 +7,7 @@ metadata:
|
|
|
7
7
|
version: "0.0.0"
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
-
<!-- A skeleton to rewrite around {{binName}}'s real Commands. Leave flags out: `--help` is generated from the code and stays in sync with it, this file does not. -->
|
|
10
|
+
<!-- A skeleton to rewrite around {{binName}}'s real Commands. A line earns its place only when no `--help`, output, hint or `doctor` row tells the agent the same thing: write down what costs it turns to work out, such as a convention, a reason, a trap, or a step that needs the user's consent. Leave flags out: `--help` is generated from the code and stays in sync with it, this file does not. What {{binName}} is for, and the nearby tasks it is not for, go in the description, which the agent always sees. -->
|
|
11
11
|
|
|
12
12
|
# {{binName}}
|
|
13
13
|
|
|
@@ -19,13 +19,6 @@ metadata:
|
|
|
19
19
|
|
|
20
20
|
The line above should show 0.0.0, the version this skill describes. If it says {{binName}} is not installed or shows another version, read [setup](references/setup.md) before anything else.
|
|
21
21
|
|
|
22
|
-
## When to use
|
|
23
|
-
|
|
24
|
-
<!-- The tasks {{binName}} is for, and the nearby tasks it is not for. -->
|
|
25
|
-
|
|
26
|
-
- Greeting someone by name.
|
|
27
|
-
- Writing a greeting card to a file, in English for free or in another language at a cost.
|
|
28
|
-
|
|
29
22
|
## Workflows
|
|
30
23
|
|
|
31
24
|
<!-- Each main task as steps naming the Commands it runs, in order. Move a long workflow to a file under references/ and link it. -->
|
|
@@ -43,11 +36,9 @@ The line above should show 0.0.0, the version this skill describes. If it says {
|
|
|
43
36
|
|
|
44
37
|
To put a message under the greeting, pass `-` after the name and pipe the message in with a heredoc, so its quotes and newlines reach the card intact.
|
|
45
38
|
|
|
46
|
-
Pass `--json` whenever you parse the output: stdout then holds only the data. A Command that changes something takes `--dry-run`, which prints its Plan, the files it writes and its cost, and changes nothing: run it first when unsure. A destructive Command also needs `--confirm=<target>`, and its error's Next step gives the exact command.
|
|
47
|
-
|
|
48
39
|
## Recovering from errors
|
|
49
40
|
|
|
50
|
-
|
|
41
|
+
Do what the error's hint says, except for a code below:
|
|
51
42
|
|
|
52
43
|
| Code | What to do |
|
|
53
44
|
|---|---|
|
|
@@ -8,11 +8,9 @@ Work through a section in order and stop at a step that fails. Ask the user to d
|
|
|
8
8
|
|
|
9
9
|
## Check
|
|
10
10
|
|
|
11
|
-
Run `{{runAs}} doctor --json
|
|
11
|
+
Run `{{runAs}} doctor --json`, which changes nothing. Hand the user each line of its `next` to type with `!`, in order, then run `doctor` again.
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
- `next` lists every fix in order. Hand the user each one to type with `!`, then run `doctor` again.
|
|
15
|
-
- {{skillCheck}} If the session does not show it, ask the user to type `/reload-skills`, and failing that to restart Claude Code.
|
|
13
|
+
{{skillCheck}} If the session does not show it, ask the user to type `/reload-skills`, and failing that to restart Claude Code.
|
|
16
14
|
|
|
17
15
|
`{{runAs}} --version` names on its second line the `CHANGELOG.md` installed with the CLI. When the user asks what changed, read it from the top, newest first, down to the version in question.
|
|
18
16
|
|