@darkrymit/crunes-cli 0.5.3 → 0.5.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.
Files changed (2) hide show
  1. package/dist/cli.js +14 -5
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -86541,15 +86541,24 @@ function walkFunction(child) {
86541
86541
  returns
86542
86542
  };
86543
86543
  }
86544
- function walkNamespace(child) {
86544
+ function walkNamespace(child, prefix = "") {
86545
86545
  const functions = [];
86546
86546
  const types2 = {};
86547
86547
  for (const c of child.children ?? []) {
86548
86548
  if (c.kind === KIND_FUNCTION) {
86549
86549
  const fn2 = walkFunction(c);
86550
- if (fn2) functions.push(fn2);
86550
+ if (fn2) {
86551
+ if (prefix) {
86552
+ fn2.name = `${prefix}.${fn2.name}`;
86553
+ }
86554
+ functions.push(fn2);
86555
+ }
86551
86556
  } else if (c.kind === KIND_INTERFACE) {
86552
86557
  types2[c.name] = walkInterface(c);
86558
+ } else if (c.kind === KIND_NAMESPACE) {
86559
+ const subNs = walkNamespace(c, prefix ? `${prefix}.${c.name}` : c.name);
86560
+ functions.push(...subNs.functions);
86561
+ Object.assign(types2, subNs.types);
86553
86562
  }
86554
86563
  }
86555
86564
  return {
@@ -86564,7 +86573,7 @@ function walkUtilsDocs(typedocJson) {
86564
86573
  const candidates = topChildren.flatMap(
86565
86574
  (c) => c.kind === KIND_MODULE ? c.children ?? [] : [c]
86566
86575
  );
86567
- return candidates.filter((c) => c.kind === KIND_NAMESPACE || c.kind === KIND_FUNCTION).map(walkNamespace);
86576
+ return candidates.filter((c) => c.kind === KIND_NAMESPACE || c.kind === KIND_FUNCTION).map((c) => walkNamespace(c));
86568
86577
  }
86569
86578
  var KIND_MODULE, KIND_NAMESPACE, KIND_FUNCTION, KIND_INTERFACE, KIND_PROPERTY, KIND_METHOD;
86570
86579
  var init_utils_walker = __esm({
@@ -87017,7 +87026,7 @@ var init_package = __esm({
87017
87026
  "package.json"() {
87018
87027
  package_default = {
87019
87028
  name: "@darkrymit/crunes-cli",
87020
- version: "0.5.3",
87029
+ version: "0.5.4",
87021
87030
  description: "CLI tool for querying crunes enrichers",
87022
87031
  type: "module",
87023
87032
  bin: {
@@ -92477,7 +92486,7 @@ var {
92477
92486
  init_output();
92478
92487
  function buildProgram() {
92479
92488
  const program3 = new Command();
92480
- program3.name("crunes").description("CLI tool for managing context runes").version("0.5.3", "-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");
92489
+ program3.name("crunes").description("CLI tool for managing context runes").version("0.5.4", "-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");
92481
92490
  program3.hook("preAction", (_thisCommand, actionCommand) => {
92482
92491
  configure({ plain: !!program3.opts().plain, verbose: !!program3.opts().verbose });
92483
92492
  if (program3.opts().verbose) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@darkrymit/crunes-cli",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "CLI tool for querying crunes enrichers",
5
5
  "type": "module",
6
6
  "bin": {