@skill-map/cli 0.53.4 → 0.53.6

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,6 @@
1
- # Part 7 (a): Extend skill-map - settings (step library, `settings-*` ids)
1
+ # Part 6 (a): Extend skill-map - settings (step library, `settings-*` ids)
2
2
 
3
- Step bodies for the settings chapters of Part 7 (config layers, the
3
+ Step bodies for the settings chapters of Part 6 (config layers, the
4
4
  `sm config` verbs, the active provider lens), plus the shared step
5
5
  `settings-6-contributions` that the plugin-authoring chapters reuse.
6
6
  The SKILL.md orchestrator dispatches each `settings-*` chapter id
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // cli/entry.ts
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="888d57e8-17f0-5013-89d1-f60f3ef2828b")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3bc438eb-6e57-550d-aab1-392242aca915")}catch(e){}}();
4
4
  import { existsSync as existsSync33 } from "fs";
5
5
  import { Builtins, Cli as Cli2 } from "clipanion";
6
6
 
@@ -246,7 +246,7 @@ function bucketByKind(kind, instance, bag) {
246
246
  // package.json
247
247
  var package_default = {
248
248
  name: "@skill-map/cli",
249
- version: "0.53.4",
249
+ version: "0.53.6",
250
250
  description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
251
251
  license: "MIT",
252
252
  type: "module",
@@ -14839,6 +14839,13 @@ var HELP_TEXTS = {
14839
14839
  * Tagline mirrors README.md "In a sentence", keep them in sync.
14840
14840
  */
14841
14841
  compactHeader: "{{binary}} {{version}}: the missing map for Markdown-based generative-AI ecosystems",
14842
+ /**
14843
+ * Tutorial call-to-action rendered at the very top of the compact
14844
+ * overview, directly under the header and above USAGE, to point new
14845
+ * users at `sm tutorial`. `{{glyph}}` is a green `▶` when color is on,
14846
+ * a bare `▶` otherwise.
14847
+ */
14848
+ compactTutorialCta: "{{glyph}} New to skill-map? Run `sm tutorial` for a hands-on, guided walkthrough.",
14842
14849
  compactUsageHeading: "USAGE",
14843
14850
  compactUsageLine: " sm <command> [options]",
14844
14851
  compactExamplesHeading: "EXAMPLES",
@@ -14916,9 +14923,16 @@ var HelpCommand = class extends Command15 {
14916
14923
  });
14917
14924
  verbParts = Option14.Rest({ required: 0 });
14918
14925
  format = Option14.String("--format", "human");
14926
+ // `HelpCommand` extends Clipanion's `Command` directly (see block
14927
+ // comment), so it does not inherit `SmCommand`'s `--no-color`. Declared
14928
+ // here because the human overview now emits a coloured tutorial glyph;
14929
+ // `ansiFor` still layers `NO_COLOR` / `FORCE_COLOR` / TTY on top.
14930
+ noColor = Option14.Boolean("--no-color", false, {
14931
+ description: "Disable ANSI color codes."
14932
+ });
14919
14933
  async execute() {
14920
14934
  const stderr = this.context.stderr;
14921
- const ansi = ansiFor({ isTTY: stderr.isTTY === true, noColorFlag: false });
14935
+ const ansi = ansiFor({ isTTY: stderr.isTTY === true, noColorFlag: this.noColor });
14922
14936
  const errGlyph = ansi.red("\u2715");
14923
14937
  const format = normalizeFormat(this.format);
14924
14938
  if (!format) {
@@ -14954,7 +14968,9 @@ var HelpCommand = class extends Command15 {
14954
14968
  return ExitCode.NotFound;
14955
14969
  }
14956
14970
  if (format === "human") {
14957
- this.context.stdout.write(renderCompactOverview(verbs));
14971
+ const stdout = this.context.stdout;
14972
+ const stdoutAnsi = ansiFor({ isTTY: stdout.isTTY === true, noColorFlag: this.noColor });
14973
+ this.context.stdout.write(renderCompactOverview(verbs, stdoutAnsi));
14958
14974
  return ExitCode.Ok;
14959
14975
  }
14960
14976
  const doc = {
@@ -15255,10 +15271,12 @@ function truncate2(text, width) {
15255
15271
  function padRight(value, width) {
15256
15272
  return value.length >= width ? value : value + " ".repeat(width - value.length);
15257
15273
  }
15258
- function renderCompactOverview(verbs) {
15274
+ function renderCompactOverview(verbs, ansi) {
15259
15275
  const lines = [];
15260
15276
  lines.push(tx(HELP_TEXTS.compactHeader, { binary: BINARY_LABEL, version: VERSION }));
15261
15277
  lines.push("");
15278
+ lines.push(tx(HELP_TEXTS.compactTutorialCta, { glyph: ansi.green("\u25B6") }));
15279
+ lines.push("");
15262
15280
  lines.push(HELP_TEXTS.compactUsageHeading);
15263
15281
  lines.push(HELP_TEXTS.compactUsageLine);
15264
15282
  lines.push("");
@@ -15303,9 +15321,17 @@ function renderCompactOverview(verbs) {
15303
15321
  }
15304
15322
  var RootHelpCommand = class extends Command15 {
15305
15323
  static paths = [["-h"], ["--help"]];
15324
+ // Mirrors `HelpCommand.noColor`: this command extends Clipanion's
15325
+ // `Command` directly, so the flag is declared here to gate the
15326
+ // coloured tutorial glyph in the overview.
15327
+ noColor = Option14.Boolean("--no-color", false, {
15328
+ description: "Disable ANSI color codes."
15329
+ });
15306
15330
  async execute() {
15307
15331
  const verbs = buildVerbCatalog(this.cli);
15308
- this.context.stdout.write(renderCompactOverview(verbs));
15332
+ const stdout = this.context.stdout;
15333
+ const ansi = ansiFor({ isTTY: stdout.isTTY === true, noColorFlag: this.noColor });
15334
+ this.context.stdout.write(renderCompactOverview(verbs, ansi));
15309
15335
  return ExitCode.Ok;
15310
15336
  }
15311
15337
  };
@@ -30251,4 +30277,4 @@ function resolveBareDefault() {
30251
30277
  process.exit(ExitCode.Error);
30252
30278
  }
30253
30279
  //# sourceMappingURL=cli.js.map
30254
- //# debugId=888d57e8-17f0-5013-89d1-f60f3ef2828b
30280
+ //# debugId=3bc438eb-6e57-550d-aab1-392242aca915
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // kernel/i18n/registry.texts.ts
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="66543317-554b-53e5-b2d4-5ed32dfdc81a")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e4042206-8e88-53b7-93f5-c2c9bbb77b3e")}catch(e){}}();
4
4
  var REGISTRY_TEXTS = {
5
5
  duplicateExtension: "Extension already registered: {{kind}}:{{qualifiedId}}",
6
6
  unknownKind: "Unknown extension kind: {{kind}}",
@@ -102,7 +102,7 @@ import { Tiktoken as Tiktoken2 } from "js-tiktoken/lite";
102
102
  // package.json
103
103
  var package_default = {
104
104
  name: "@skill-map/cli",
105
- version: "0.53.4",
105
+ version: "0.53.6",
106
106
  description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
107
107
  license: "MIT",
108
108
  type: "module",
@@ -3632,4 +3632,4 @@ export {
3632
3632
  runScanWithRenames
3633
3633
  };
3634
3634
  //# sourceMappingURL=index.js.map
3635
- //# debugId=66543317-554b-53e5-b2d4-5ed32dfdc81a
3635
+ //# debugId=e4042206-8e88-53b7-93f5-c2c9bbb77b3e
@@ -1,6 +1,6 @@
1
1
  // kernel/i18n/registry.texts.ts
2
2
 
3
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="3034c153-d87d-57ef-9e51-8770d99ad465")}catch(e){}}();
3
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="edd337e5-10f2-5ebc-92b6-0e1ea1dd4e3f")}catch(e){}}();
4
4
  var REGISTRY_TEXTS = {
5
5
  duplicateExtension: "Extension already registered: {{kind}}:{{qualifiedId}}",
6
6
  unknownKind: "Unknown extension kind: {{kind}}",
@@ -102,7 +102,7 @@ import { Tiktoken as Tiktoken2 } from "js-tiktoken/lite";
102
102
  // package.json
103
103
  var package_default = {
104
104
  name: "@skill-map/cli",
105
- version: "0.53.4",
105
+ version: "0.53.6",
106
106
  description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
107
107
  license: "MIT",
108
108
  type: "module",
@@ -3632,4 +3632,4 @@ export {
3632
3632
  runScanWithRenames
3633
3633
  };
3634
3634
  //# sourceMappingURL=index.js.map
3635
- //# debugId=3034c153-d87d-57ef-9e51-8770d99ad465
3635
+ //# debugId=edd337e5-10f2-5ebc-92b6-0e1ea1dd4e3f