@zenera/cli 1.1.15 → 1.1.16
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 +183 -119
- package/dist/banner.d.ts +5 -1
- package/dist/banner.js +2 -2
- package/dist/command.d.ts +5 -0
- package/dist/main.js +10 -6
- package/package.json +2 -2
- package/templates/editor/.github/copilot-instructions.md +253 -218
- package/templates/editor/.github/prompts/new-agent.prompt.md +6 -6
- package/templates/editor/.github/prompts/new-skill.prompt.md +7 -7
- package/templates/editor/.github/prompts/review-project.prompt.md +1 -1
- package/templates/editor/.github/prompts/sync-with-spec.prompt.md +26 -26
- package/templates/editor/.github/skills/zen-cli/SKILL.md +62 -6
- package/templates/editor/.github/skills/zen-cli/references/check.md +3 -3
- package/templates/editor/.github/skills/zen-cli/references/faker.md +14 -14
- package/templates/editor/.github/skills/zen-cli/references/frame.md +6 -6
- package/templates/editor/.github/skills/zen-cli/references/inspect.md +3 -3
- package/templates/editor/.github/skills/zen-cli/references/keys.md +9 -9
- package/templates/editor/.github/skills/zen-cli/references/memory.md +11 -11
- package/templates/editor/.github/skills/zen-cli/references/models.md +8 -8
- package/templates/editor/.github/skills/zen-cli/references/projects.md +3 -3
- package/templates/editor/.github/skills/zen-cli/references/rag.md +191 -56
- package/templates/editor/.github/skills/zen-cli/references/run.md +3 -3
- package/templates/editor/.github/skills/zen-cli/references/sandbox.md +8 -8
- package/templates/editor/.github/skills/zen-memory/SKILL.md +50 -50
- package/templates/editor/.github/skills/zen-rag-docs/SKILL.md +71 -48
- package/templates/editor/.github/skills/zen-rag-schema/SKILL.md +67 -67
- package/templates/editor/.vscode/settings.json +5 -2
- package/templates/project/INSTRUCTIONS.md +1 -1
- package/templates/project/assets/README.md +1 -1
- package/templates/project/sandbox/Dockerfile.tmpl +3 -0
package/dist/banner.d.ts
CHANGED
|
@@ -6,8 +6,12 @@ export interface BannerText {
|
|
|
6
6
|
/** the line underneath, dim */
|
|
7
7
|
subtitle: string;
|
|
8
8
|
}
|
|
9
|
+
export interface PrintBannerOptions {
|
|
10
|
+
/** Render the block face even when the terminal is narrower than it. */
|
|
11
|
+
readonly full?: boolean;
|
|
12
|
+
}
|
|
9
13
|
export declare const NEO_BANNER: BannerText;
|
|
10
14
|
export declare function bannerLines(text: BannerText, columns?: number): string[];
|
|
11
15
|
/** Narration, and only for someone watching. */
|
|
12
|
-
export declare function printBanner(text: BannerText): void;
|
|
16
|
+
export declare function printBanner(text: BannerText, options?: PrintBannerOptions): void;
|
|
13
17
|
//# sourceMappingURL=banner.d.ts.map
|
package/dist/banner.js
CHANGED
|
@@ -112,12 +112,12 @@ export function bannerLines(text, columns = process.stderr.columns || 80) {
|
|
|
112
112
|
return lines;
|
|
113
113
|
}
|
|
114
114
|
/** Narration, and only for someone watching. */
|
|
115
|
-
export function printBanner(text) {
|
|
115
|
+
export function printBanner(text, options = {}) {
|
|
116
116
|
if (!process.stderr.isTTY) {
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
119
|
note('');
|
|
120
|
-
for (const line of bannerLines(text)) {
|
|
120
|
+
for (const line of bannerLines(text, options.full ? Infinity : undefined)) {
|
|
121
121
|
note(line);
|
|
122
122
|
}
|
|
123
123
|
note('');
|
package/dist/command.d.ts
CHANGED
|
@@ -9,6 +9,11 @@ export interface Command {
|
|
|
9
9
|
readonly usage: string;
|
|
10
10
|
/** lines printed under the usage line by `zen help <command>` */
|
|
11
11
|
readonly details?: readonly string[];
|
|
12
|
+
/**
|
|
13
|
+
* Answers `--help` itself, for a command whose arguments select a page the
|
|
14
|
+
* frame cannot see. Without it the frame prints this command's own page.
|
|
15
|
+
*/
|
|
16
|
+
help?(ctx: Context): Promise<void> | void;
|
|
12
17
|
run(ctx: Context): Promise<void>;
|
|
13
18
|
}
|
|
14
19
|
//# sourceMappingURL=command.d.ts.map
|
package/dist/main.js
CHANGED
|
@@ -57,9 +57,11 @@ async function main(argv) {
|
|
|
57
57
|
// Narration, so `--json` and every pipe are untouched by it. A command
|
|
58
58
|
// living in another package brings its own brand, but only once it is
|
|
59
59
|
// actually there — a banner over "not installed" is a claim about nothing.
|
|
60
|
-
|
|
60
|
+
const ragSearch = name === 'rag' && ['docs', 'schema'].includes(rest[0]) && rest[1] === 'search';
|
|
61
|
+
const interactive = rest.includes('--interactive');
|
|
62
|
+
if (!json && (!ragSearch || interactive)) {
|
|
61
63
|
const brand = external && hasExternal(external) ? external.banner : undefined;
|
|
62
|
-
printBanner(brand ?? NEO_BANNER);
|
|
64
|
+
printBanner(brand ?? NEO_BANNER, { full: ragSearch && interactive });
|
|
63
65
|
}
|
|
64
66
|
if (parts.name === 'help') {
|
|
65
67
|
await usage(rest[0]);
|
|
@@ -73,15 +75,17 @@ async function main(argv) {
|
|
|
73
75
|
fail(`unknown command "${parts.name}"`, `run ${bold(`${NAME} --help`)} for the list`);
|
|
74
76
|
return EXIT.usage;
|
|
75
77
|
}
|
|
76
|
-
if (values.help) {
|
|
77
|
-
await usage(name);
|
|
78
|
-
return EXIT.ok;
|
|
79
|
-
}
|
|
80
78
|
// `-C` is consumed here so no command ever reads `process.cwd()` itself,
|
|
81
79
|
// and every relative path in every command means the same thing.
|
|
82
80
|
const cwd = resolve(values.directory ?? process.cwd());
|
|
83
81
|
try {
|
|
84
82
|
const one = command ?? (await loadExternal(name, external));
|
|
83
|
+
if (values.help) {
|
|
84
|
+
// A command that nests its own pages answers for them; the frame
|
|
85
|
+
// only knows the one page it printed the command's name on.
|
|
86
|
+
await (one.help ? one.help({ args: rest, json, cwd }) : usage(name));
|
|
87
|
+
return EXIT.ok;
|
|
88
|
+
}
|
|
85
89
|
await one.run({ args: rest, json, cwd });
|
|
86
90
|
return EXIT.ok;
|
|
87
91
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenera/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.16",
|
|
4
4
|
"description": "Command-line front end for @zenera/neo: agentic projects you can run, share and commit.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agents",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@inkjs/ui": "^2.0.0",
|
|
52
52
|
"ink": "^7.1.1",
|
|
53
53
|
"react": "^19.2.8",
|
|
54
|
-
"@zenera/neo": "^1.1.
|
|
54
|
+
"@zenera/neo": "^1.1.16",
|
|
55
55
|
"@anthropic-ai/sdk": "^0.120.0",
|
|
56
56
|
"@google/genai": "^2.18.0",
|
|
57
57
|
"@openrouter/sdk": "^1.2.80",
|