@darkrymit/crunes-cli 0.7.1 → 0.7.2
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/dist/chunks/{chunk-BVY5LN7X.js → chunk-5RGDIMK6.js} +6 -3
- package/dist/chunks/{chunk-HOH7WZX4.js → chunk-BEVULQIG.js} +7 -0
- package/dist/chunks/{intro-RFWW5HIO.js → intro-QVSLNH4R.js} +2 -2
- package/dist/chunks/{rune-D2FL547U.js → rune-ZYEVEYID.js} +1 -1
- package/dist/chunks/{utils-PO3ZK53L.js → utils-JKGIWZTS.js} +1 -1
- package/dist/chunks/{version-V67W66HQ.js → version-OPTLR63W.js} +1 -1
- package/dist/cli.js +5 -5
- package/package.json +1 -1
|
@@ -11682,7 +11682,7 @@ var utils_api_default = {
|
|
|
11682
11682
|
},
|
|
11683
11683
|
{
|
|
11684
11684
|
kind: "code",
|
|
11685
|
-
text: "`
|
|
11685
|
+
text: "`null`"
|
|
11686
11686
|
},
|
|
11687
11687
|
{
|
|
11688
11688
|
kind: "text",
|
|
@@ -11691,8 +11691,11 @@ var utils_api_default = {
|
|
|
11691
11691
|
]
|
|
11692
11692
|
},
|
|
11693
11693
|
type: {
|
|
11694
|
-
type: "
|
|
11695
|
-
|
|
11694
|
+
type: "array",
|
|
11695
|
+
elementType: {
|
|
11696
|
+
type: "intrinsic",
|
|
11697
|
+
name: "string"
|
|
11698
|
+
}
|
|
11696
11699
|
}
|
|
11697
11700
|
}
|
|
11698
11701
|
]
|
|
@@ -13,6 +13,13 @@ function formatCommands(commands, depth = 0) {
|
|
|
13
13
|
const posSpecs = (cmd.positionals ?? []).map((p) => p.spec).join(" ");
|
|
14
14
|
const cmdStr = `${cmd.name}${posSpecs ? " " + posSpecs : ""}`;
|
|
15
15
|
lines.push(`${indent}${cmdStr.padEnd(30 - depth * 2)} ${cmd.description ?? ""}`.trimEnd());
|
|
16
|
+
const cmdPos = cmd.positionals ?? [];
|
|
17
|
+
if (cmdPos.length > 0) {
|
|
18
|
+
lines.push(`${childIndent}Positionals:`);
|
|
19
|
+
for (const p of cmdPos) {
|
|
20
|
+
lines.push(`${detailIndent}${p.spec.padEnd(26)} ${p.description ?? ""}`.trimEnd());
|
|
21
|
+
}
|
|
22
|
+
}
|
|
16
23
|
const cmdOpts = cmd.options ?? [];
|
|
17
24
|
if (cmdOpts.length > 0) {
|
|
18
25
|
lines.push(`${childIndent}Options:`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
utils_api_default
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5RGDIMK6.js";
|
|
4
4
|
import {
|
|
5
5
|
globals_api_default
|
|
6
6
|
} from "./chunk-UGN3FFEF.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from "./chunk-XIXND2M4.js";
|
|
12
12
|
import {
|
|
13
13
|
formatHelp
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BEVULQIG.js";
|
|
15
15
|
import {
|
|
16
16
|
computeEffectivePermissions,
|
|
17
17
|
getArgsSchema
|
package/dist/cli.js
CHANGED
|
@@ -3396,7 +3396,7 @@ var program = new Command();
|
|
|
3396
3396
|
// src/cli/program.js
|
|
3397
3397
|
function buildProgram() {
|
|
3398
3398
|
const program3 = new Command();
|
|
3399
|
-
program3.name("crunes").description("CLI tool for managing context runes").version("0.7.
|
|
3399
|
+
program3.name("crunes").description("CLI tool for managing context runes").version("0.7.2", "-v, --version").enablePositionalOptions().option("-y, --yes", "assume yes to all prompts and skip interactive mode (also auto-detected in non-TTY environments)").option("-p, --plain", "plain output: no colors, no box-drawing, plain symbols \u2014 optimised for AI/pipe use").option("--cwd <path>", "project root to use instead of the current working directory").option("--ccd <path>", "config directory \u2014 where .crunes/config.json and local rune files live (default: --cwd)").option("--verbose", "print full error stack traces and other verbose output");
|
|
3400
3400
|
program3.hook("preAction", (_thisCommand, actionCommand) => {
|
|
3401
3401
|
configure({ plain: !!program3.opts().plain, verbose: !!program3.opts().verbose });
|
|
3402
3402
|
if (program3.opts().verbose) {
|
|
@@ -3421,11 +3421,11 @@ function buildProgram() {
|
|
|
3421
3421
|
});
|
|
3422
3422
|
const helpGroup = program3.command("docs").description("Show documentation for runes and other resources");
|
|
3423
3423
|
helpGroup.command("rune <rune...>").description("Show usage, argument schema, and examples for one or more runes").addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).action(async (keys, opts) => {
|
|
3424
|
-
const { handler } = await import("./chunks/rune-
|
|
3424
|
+
const { handler } = await import("./chunks/rune-ZYEVEYID.js");
|
|
3425
3425
|
await handler({ keys, format: opts.format, projectRoot: projectRoot(), configRoot: configRoot() });
|
|
3426
3426
|
});
|
|
3427
3427
|
helpGroup.command("utils [namespaces...]").description("Show function signatures and parameter docs for utils.* namespaces").addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).action(async (namespaces, opts) => {
|
|
3428
|
-
const { handler } = await import("./chunks/utils-
|
|
3428
|
+
const { handler } = await import("./chunks/utils-JKGIWZTS.js");
|
|
3429
3429
|
await handler({ namespaces, format: opts.format });
|
|
3430
3430
|
});
|
|
3431
3431
|
helpGroup.command("globals").description("Show injected sandbox globals and ES2020 builtins available in rune scripts").addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).action(async (opts) => {
|
|
@@ -3433,7 +3433,7 @@ function buildProgram() {
|
|
|
3433
3433
|
await handler({ format: opts.format });
|
|
3434
3434
|
});
|
|
3435
3435
|
helpGroup.command("intro").description("Generate a comprehensive introduction and context document for Crunes and the active project").option("-g, --global", "generate a global, pure-ecosystem guide (skip local project context)").option("--out <path>", "output file path (defaults to stdout)").addOption(new Option("--format <format>", "output format").choices(["text", "json"]).default("text")).action(async (opts) => {
|
|
3436
|
-
const { handler } = await import("./chunks/intro-
|
|
3436
|
+
const { handler } = await import("./chunks/intro-QVSLNH4R.js");
|
|
3437
3437
|
await handler({
|
|
3438
3438
|
global: !!opts.global,
|
|
3439
3439
|
out: opts.out,
|
|
@@ -3451,7 +3451,7 @@ function buildProgram() {
|
|
|
3451
3451
|
await handler();
|
|
3452
3452
|
});
|
|
3453
3453
|
program3.command("version").description("Print the installed version and check for updates").option("--no-check", "skip the npm update check").action(async (opts) => {
|
|
3454
|
-
const { handler } = await import("./chunks/version-
|
|
3454
|
+
const { handler } = await import("./chunks/version-OPTLR63W.js");
|
|
3455
3455
|
await handler({ check: opts.check, plain: !!program3.opts().plain });
|
|
3456
3456
|
});
|
|
3457
3457
|
program3.command("doctor").description("Verify environment and project setup").action(async () => {
|