@skill-map/cli 0.16.3 → 0.16.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.
package/README.md CHANGED
@@ -37,7 +37,7 @@ claude # open Claude Code in the same dir
37
37
  ejecutá @sm-tutorial.md
38
38
  ```
39
39
 
40
- Claude loads the SKILL.md and runs the demo (~10 min): fixture, `sm init`, live UI, five sub-steps that show the watcher in action, plus the `.skillmapignore` hide-a-file flow. An optional deep-dive (~30-40 min) covers the rest of the CLI surface (`list`, `graph`, `export`, `check`, `plugins`).
40
+ Claude loads the SKILL.md and runs the demo (~10 min): fixture, `sm init`, live UI, five sub-steps that show the watcher in action, plus the `.skillmapignore` hide-a-file flow. An optional deep-dive (~20-30 min) covers the rest of the CLI surface (`list`, `graph`, `export`, `check`, `plugins`).
41
41
 
42
42
  The verb `sm tutorial` writes a single self-contained file; the SKILL.md ships inside this package, so no extra install needed.
43
43
 
@@ -6,7 +6,7 @@ description: |
6
6
  starts with a quick demo (~10 min) that showcases the live UI — the
7
7
  tester runs `sm`, opens the browser, and watches the UI update as
8
8
  the agent edits `.md` files — and at the end offers an optional
9
- deep-dive (~30-40 min) covering the rest of the CLI with flags and
9
+ deep-dive (~20-30 min) covering the rest of the CLI with flags and
10
10
  advanced verbs. The skill is invoked from an empty directory and
11
11
  lays the fixture and tutorial files there directly (no wrapper).
12
12
  State persists in `tutorial-state.yml` for pause/resume. Triggers:
@@ -24,7 +24,7 @@ type, and wait for the tester to run them and confirm.
24
24
 
25
25
  **Internal structure (do NOT mention this to the tester)**: the tutorial
26
26
  has a short first phase (~10 min) that demonstrates the live UI, and an
27
- optional second phase (~30-40 min) covering the rest of the CLI.
27
+ optional second phase (~20-30 min) covering the rest of the CLI.
28
28
 
29
29
  > ⚠️ For the tester this is **a single continuous flow**. Never use
30
30
  > "short path", "long path", "route", "phase 1" / "phase 2", or
@@ -73,7 +73,7 @@ optional second phase (~30-40 min) covering the rest of the CLI.
73
73
  meta-narration of your own plumbing. Pre-flight checks, file
74
74
  reads, `Bash ls`, `Write` of fixtures, state-file updates — all
75
75
  silent. The tester only hears from you when (a) you need them to
76
- do something, (b) a reveal landed and you want a confirm, or
76
+ do something, (b) a sub-step landed and you want a confirm, or
77
77
  (c) something failed and they need to know. Between those
78
78
  moments, work without commentary.
79
79
  - **Explain technical terms in parentheses the first time you
@@ -292,12 +292,26 @@ permissions issue. Suggest `node --version` and walk them through it.
292
292
 
293
293
  ### 3. Create the initial fixture (one node only)
294
294
 
295
+ Before you lay anything down, give the tester a one-shot heads-up.
296
+ **This is not interactive** — do NOT wait for a confirmation, do
297
+ NOT ask permission per file, do NOT enumerate the files. The
298
+ tester just needs to know scaffolding is starting so they're not
299
+ surprised when files appear; details (file list, cleanup) come
300
+ later when they're relevant. Keep it to a single short sentence:
301
+
302
+ > Quick heads-up before we start: I'm about to set up the
303
+ > tutorial scenario in this directory — that means creating a
304
+ > handful of files. Hold on while I finish.
305
+
306
+ Then proceed straight to the writes below — no pause, no "ready?"
307
+ prompt.
308
+
295
309
  The tutorial builds the graph **progressively** in five sub-steps during
296
310
  Step 2 (Live UI). Right now, in pre-flight, you only create **one
297
311
  file** — a single agent — so the tester's first look at the UI
298
312
  shows exactly one node. The other four kinds (skill, command, hook,
299
313
  note) and the connectors between all five are added later, one
300
- reveal at a time.
314
+ sub-step at a time.
301
315
 
302
316
  ```
303
317
  <cwd>/
@@ -309,7 +323,7 @@ reveal at a time.
309
323
  ```
310
324
 
311
325
  `.claude/agents/demo-agent.md` (no cross-fixture links yet — those
312
- arrive in the third reveal):
326
+ arrive in Step 2.4):
313
327
  ```markdown
314
328
  ---
315
329
  name: demo-agent
@@ -568,7 +582,7 @@ Create these four files (with `Write`), exactly in this order:
568
582
  # demo-skill
569
583
 
570
584
  This skill walks a file and returns a report. Will be wired up
571
- to the rest of the demo fixture in the next reveal.
585
+ to the rest of the demo fixture in the next sub-step.
572
586
 
573
587
  ## Steps
574
588
  1. Read the `target`.
@@ -596,7 +610,7 @@ Create these four files (with `Write`), exactly in this order:
596
610
  # demo-command
597
611
 
598
612
  Quick keyboard entry point for running the demo flow on a
599
- target file. Connectors land in the next reveal.
613
+ target file. Connectors land in the next sub-step.
600
614
  ```
601
615
 
602
616
  3. `.claude/hooks/demo-hook.md` (kind: hook — **don't skip this
@@ -627,7 +641,7 @@ Create these four files (with `Write`), exactly in this order:
627
641
  description: |
628
642
  Live list of things to review in the demo. Will become the
629
643
  hub between skill / agent / command / hook in the next
630
- reveal.
644
+ sub-step.
631
645
  tags: [notes, demo]
632
646
  metadata:
633
647
  version: "1.0.0"
@@ -851,7 +865,7 @@ Mark `2-ui-live: done`.
851
865
  >
852
866
  > If you want, **we can keep going deeper**: I'll walk you through
853
867
  > the CLI verbs and flags (`list`, `graph`, `export`, `orphans`,
854
- > `plugins`, `db ops`, etc.). About ~30-40 min more, pausable
868
+ > `plugins`, `db ops`, etc.). About ~20-30 min more, pausable
855
869
  > whenever.
856
870
  >
857
871
  > 1. **Yes, let's continue**
@@ -870,7 +884,7 @@ If they say **1**:
870
884
 
871
885
  ---
872
886
 
873
- ## DEEP-DIVE (~30-40 min) — opt-in
887
+ ## DEEP-DIVE (~20-30 min) — opt-in
874
888
 
875
889
  Strictly new steps. Does not re-expand demo steps.
876
890
 
package/dist/cli.js CHANGED
@@ -7374,7 +7374,7 @@ import { Command as Command8, Option as Option8 } from "clipanion";
7374
7374
  // package.json
7375
7375
  var package_default = {
7376
7376
  name: "@skill-map/cli",
7377
- version: "0.16.3",
7377
+ version: "0.16.4",
7378
7378
  description: "skill-map reference implementation \u2014 kernel + CLI + adapters.",
7379
7379
  license: "MIT",
7380
7380
  type: "module",
@@ -7425,6 +7425,10 @@ var package_default = {
7425
7425
  typecheck: "tsc --noEmit",
7426
7426
  lint: "eslint .",
7427
7427
  "lint:fix": "eslint . --fix",
7428
+ pretest: "tsup",
7429
+ "pretest:ci": "tsup",
7430
+ "pretest:coverage": "tsup",
7431
+ "pretest:coverage:html": "tsup",
7428
7432
  test: "tsc --noEmit && node --import tsx --test --test-reporter=spec 'test/**/*.test.ts' 'built-in-plugins/**/*.test.ts' 'kernel/**/*.test.ts'",
7429
7433
  "test:ci": "tsc --noEmit && node --import tsx --test 'test/**/*.test.ts' 'built-in-plugins/**/*.test.ts' 'kernel/**/*.test.ts'",
7430
7434
  "test:coverage": "tsc --noEmit && SKILL_MAP_SKIP_BENCHMARK=1 node --experimental-default-config-file --import tsx --test --experimental-test-coverage 'test/**/*.test.ts' 'built-in-plugins/**/*.test.ts' 'kernel/**/*.test.ts'",
@@ -14577,7 +14581,12 @@ import { Command as Command22, Option as Option22 } from "clipanion";
14577
14581
  // cli/i18n/tutorial.texts.ts
14578
14582
  var TUTORIAL_TEXTS = {
14579
14583
  // Success — written to stdout after `<cwd>/sm-tutorial.md` is created.
14580
- written: 'Done. sm-tutorial.md created at {{cwd}}. Open Claude Code here and tell it "run @sm-tutorial.md" to start the interactive tutorial.\n',
14584
+ // Multi-line layout: the two trigger phrases (English / Spanish) are
14585
+ // indented and labelled so they're the most visible part of the
14586
+ // output. The reminder above them surfaces the SKILL's language
14587
+ // policy: the first message the tester writes to Claude sets the
14588
+ // tutorial language for the rest of the session.
14589
+ written: "Done. sm-tutorial.md created at {{cwd}}\n\nOpen Claude Code here. Write to it in the language you want the tutorial in \u2014 the first message sets the language for the rest of the session:\n\n English: run @sm-tutorial.md\n Espa\xF1ol: ejecut\xE1 @sm-tutorial.md\n",
14581
14590
  // Refusal — `sm-tutorial.md` already exists and `--force` was not set.
14582
14591
  // Goes to stderr, exit code 2 (operational error per spec § Exit codes).
14583
14592
  alreadyExists: "sm tutorial: sm-tutorial.md already exists at {{cwd}}. Pass `--force` to overwrite.\n",