@guiho/runx 0.2.2 → 0.2.4

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.
@@ -1,6 +1,18 @@
1
1
  ---
2
2
  name: guiho-s-runx
3
+ purpose: Guide agents through safe inspection and execution of RunX command catalogs.
3
4
  description: Use when inspecting, creating, validating, organizing, documenting, or running a RunX `runx.yaml` command catalog. This includes listing available project commands, choosing a command by UID or selector, reviewing command descriptions, dry runs, confirmation-gated execution, and agent-safe project automation.
5
+ created: 2026-07-12
6
+ owner: guiho-s-runx
7
+ flags: []
8
+ tags:
9
+ - agents
10
+ - runx
11
+ keywords:
12
+ - runx
13
+ - citty
14
+ - command catalog
15
+ - dry run
4
16
  ---
5
17
 
6
18
  # GUIHO RunX
@@ -30,6 +42,8 @@ commands but does not make them inherently safe: a manifest is trusted code.
30
42
  guarantee. Read the command description and command text.
31
43
  - Do not add secrets to `runx.yaml`. Use the project's existing environment or
32
44
  secret-management workflow.
45
+ - Use `runx <command> --help` for command-specific Citty usage. `runx -h` and
46
+ `runx -v` are global operations and do not require a manifest.
33
47
 
34
48
  ## Maintain Manifests
35
49
 
@@ -47,6 +61,8 @@ commands but does not make them inherently safe: a manifest is trusted code.
47
61
 
48
62
  ```text
49
63
  runx Show the RunX home page and usage.
64
+ runx -h Show generated command help.
65
+ runx -v Show the installed version.
50
66
  runx list List the nearest manifest.
51
67
  runx describe <uid> Explain one command without execution.
52
68
  runx run <uid> --dry-run Inspect the execution plan.
@@ -1,17 +1,18 @@
1
1
  ---
2
2
  subject: guiho-s-runx
3
- description: Agent workflow for inspecting, validating, and safely executing RunX manifest commands.
3
+ description: Agent workflow for inspecting, validating, getting Citty usage for, and safely executing RunX manifest commands.
4
4
  parent: runx-skills
5
5
  children: []
6
6
  files:
7
- SKILL.md: RunX-specific agent instructions and safe execution workflow.
7
+ SKILL.md: RunX-specific agent instructions, help aliases, and safe execution workflow.
8
8
  documents:
9
- SKILL.md: RunX-specific agent instructions and safe execution workflow.
9
+ SKILL.md: RunX-specific agent instructions, Citty help/version guidance, and safe execution workflow.
10
10
  tags:
11
11
  - agents
12
12
  - runx
13
13
  keywords:
14
14
  - runx
15
+ - citty
15
16
  - command catalog
16
17
  - dry run
17
18
  flags: []
@@ -1,5 +0,0 @@
1
- import type { ParsedArgs } from './types.js';
2
- export declare const parseArgs: (args: string[]) => ParsedArgs;
3
- export declare const booleanFlag: (flags: ParsedArgs['flags'], name: string) => boolean;
4
- export declare const stringFlag: (flags: ParsedArgs['flags'], name: string) => string | undefined;
5
- //# sourceMappingURL=flags.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"flags.d.ts","sourceRoot":"","sources":["../source/flags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAI5C,eAAO,MAAM,SAAS,SAAU,MAAM,EAAE,KAAG,UA8B1C,CAAA;AAED,eAAO,MAAM,WAAW,UAAW,UAAU,CAAC,OAAO,CAAC,QAAQ,MAAM,KAAG,OAA+B,CAAA;AAEtG,eAAO,MAAM,UAAU,UAAW,UAAU,CAAC,OAAO,CAAC,QAAQ,MAAM,KAAG,MAAM,GAAG,SAG9E,CAAA"}
package/library/flags.js DELETED
@@ -1,32 +0,0 @@
1
- const booleanFlags = new Set(['help', 'helpTree', 'helpDocs', 'version', 'verbose', 'dryRun', 'yes']);
2
- export const parseArgs = (args) => {
3
- const positionals = [];
4
- const flags = {};
5
- for (let index = 0; index < args.length; index += 1) {
6
- const value = args[index];
7
- if (!value.startsWith('--')) {
8
- positionals.push(value);
9
- continue;
10
- }
11
- const [rawName, inlineValue] = value.slice(2).split('=', 2);
12
- const name = toCamelCase(rawName);
13
- if (inlineValue !== undefined) {
14
- flags[name] = inlineValue;
15
- continue;
16
- }
17
- const next = args[index + 1];
18
- if (!booleanFlags.has(name) && next && !next.startsWith('--')) {
19
- flags[name] = next;
20
- index += 1;
21
- continue;
22
- }
23
- flags[name] = true;
24
- }
25
- return { command: positionals.shift(), positionals, flags };
26
- };
27
- export const booleanFlag = (flags, name) => flags[name] === true;
28
- export const stringFlag = (flags, name) => {
29
- const value = flags[name];
30
- return typeof value === 'string' ? value : undefined;
31
- };
32
- const toCamelCase = (value) => value.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());