flagstaff 1.2.3 → 1.2.5

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/README.md +38 -25
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -37,18 +37,21 @@
37
37
  Migrating from: <a href="https://flagstaff.interlace.tools/docs/coming-from/ora">ora</a> · <a href="https://flagstaff.interlace.tools/docs/coming-from/log-update">log-update</a> · <a href="https://flagstaff.interlace.tools/docs/coming-from/boxen">boxen</a> · <a href="https://flagstaff.interlace.tools/docs/coming-from/cli-table3">cli-table3</a>
38
38
  </p>
39
39
 
40
+ **flagstaff** is a terminal frame loop: it hoists a component, holds it, changes it and
41
+ lowers it. Every mode but the terminal gets a **static projection** — one line per state on a
42
+ pipe, one event per transition under `--json`, plain text for a screen reader — so no state is
43
+ lost to the log an agent reads back. Plugins are data. No layout engine, and no dependency
44
+ outside the burgee family.
45
+
46
+ Drop-in for **ora**, **log-update**, **boxen** and **cli-table3**: `npx burgee migrate` moves
47
+ the imports, each path graded by the incumbent's own suite — see [Migrating](#migrating).
48
+
40
49
  ora animates a spinner on a terminal and, off one, writes the line it started with and the
41
- line it stopped with — every state in between is lost to the log an agent reads back. Ink fixes the terminal by shipping React and a layout engine.
42
- **flagstaff** is the staff the flag flies from: a frame loop that hoists a component, holds
43
- it, changes it and lowers it, and a **static projection** that is what every mode but the
44
- terminal gets — one line per state on a pipe, one event per transition under `--json`,
45
- plain text for a screen reader. Plugins are data. No layout engine. Four dependencies, all
46
- from this repository: [roundel](https://github.com/ofri-peretz/burgee/blob/main/packages/roundel/README.md), [paratext](https://github.com/ofri-peretz/burgee/blob/main/packages/paratext/README.md),
50
+ line it stopped with — every state in between is lost. Ink fixes the terminal by shipping
51
+ React and a layout engine. flagstaff takes four dependencies, all from this repository:
52
+ [roundel](https://github.com/ofri-peretz/burgee/blob/main/packages/roundel/README.md), [paratext](https://github.com/ofri-peretz/burgee/blob/main/packages/paratext/README.md),
47
53
  [linegauge](https://github.com/ofri-peretz/burgee/blob/main/packages/linegauge/README.md) and [closeout](https://github.com/ofri-peretz/burgee/blob/main/packages/closeout/README.md).
48
54
 
49
- It replaces **ora**, **log-update**, **boxen** and **cli-table3**, each through a drop-in path
50
- graded by the incumbent's own suite — see [Migrating](#migrating).
51
-
52
55
  A **flagstaff** is the simplest part of the whole apparatus and the only one that is always
53
56
  in view: a flag is hoisted on it, held there, changed, and lowered when it is done. That is a
54
57
  terminal render loop — the place frames are hoisted, held, changed and lowered, in view of
@@ -499,15 +502,12 @@ Every component, every registered plugin and every border is on the
499
502
  which is generated by running them — the static projection beside the animation, in all
500
503
  five modes.
501
504
 
502
- ## Following along
505
+ ## Design documents
503
506
 
504
- The intent and design are committed before the code is, so you can read what it will be —
505
- and argue with it — before it exists:
506
-
507
- - [`.sdlc/intents/flagstaff/`](https://github.com/ofri-peretz/burgee/tree/main/.sdlc/intents/flagstaff)
508
- — the intent and the design.
509
- - [Open an issue](https://github.com/ofri-peretz/burgee/issues) if your CLI needs something
510
- this list does not cover. That is the cheapest time to say so.
507
+ The intent and the design are committed beside the code, with the status of every
508
+ requirement: [`.sdlc/intents/flagstaff/`](https://github.com/ofri-peretz/burgee/tree/main/.sdlc/intents/flagstaff).
509
+ If your CLI needs a component the [gallery](https://burgee.interlace.tools/docs/gallery) does
510
+ not show, [open an issue](https://github.com/ofri-peretz/burgee/issues).
511
511
 
512
512
  ## API
513
513
 
@@ -522,22 +522,35 @@ Plugins register under the `tokens`, `glyphs`, `spinners`, `borders`, `component
522
522
 
523
523
  ## The family
524
524
 
525
- Ten packages, one repository, one release pipeline. A CLI on burgee declares what it is, roundel
526
- carries its colours, flagstaff flies it and caique answers back; each installs on its own, and none
527
- takes a dependency from outside the family.
525
+ Ten packages, one repository, one release pipeline. Each installs and works on its own, and each
526
+ owns one job. Six of them — `bellpull`, `closeout`, `linegauge`, `paratext`, `roundel`, `seniority`
527
+ — depend on nothing; the others depend only on packages in this table, and every dependency points
528
+ one way, down the [layers](https://burgee.interlace.tools/docs/concepts/family).
529
+
530
+ No package declares a dependency from outside the family; `react` and `react-reconciler` are
531
+ optional peers of `controlroom`, which npm does not install.
532
+ [`package-shape-lock`](https://github.com/ofri-peretz/burgee/blob/main/scripts/package-shape-lock.test.ts)
533
+ holds that for every manifest, and
534
+ [`independence-install-lock`](https://github.com/ofri-peretz/burgee/blob/main/scripts/independence-install-lock.test.ts)
535
+ installs each package alone and finds nothing but the family packages it declares.
536
+
537
+ Releases are published by one workflow through npm trusted publishing: no npm token is used, and
538
+ each release carries SLSA provenance, which `npm view <package> dist.attestations` shows.
539
+ [`trusted-publishing-lock`](https://github.com/ofri-peretz/burgee/blob/main/scripts/trusted-publishing-lock.test.ts)
540
+ keeps both true.
528
541
 
529
- | Package | What it is | Replaces |
542
+ | Package | What it is | Migrates from |
530
543
  | :-- | :-- | :-- |
531
- | [burgee](https://burgee.interlace.tools/docs/packages/burgee) | The CLI framework: one declaration, every surface | commander and yargs |
544
+ | [burgee](https://burgee.interlace.tools/docs/packages/burgee) | The CLI framework: one declaration, every surface | commander, yargs and meow |
532
545
  | [roundel](https://roundel.interlace.tools/docs) | Colour: one output policy, semantic tokens, a theme | chalk |
533
546
  | **flagstaff** (this package) | The frame loop: spinners, progress, boxes and tables | ora, log-update, boxen and cli-table3 |
534
- | [caique](https://caique.interlace.tools/docs) | Prompts that are flags first, and never hang | inquirer and clack |
547
+ | [caique](https://caique.interlace.tools/docs) | Prompts that are flags first, and never hang | @inquirer/core |
535
548
  | [linegauge](https://linegauge.interlace.tools/docs) | Measuring, wrapping, truncating and slicing styled text | string-width, wrap-ansi, strip-ansi and slice-ansi |
536
549
  | [paratext](https://paratext.interlace.tools/docs) | Hyperlinks, images, title, clipboard and notifications | ansi-escapes, terminal-link and term-img |
537
- | [seniority](https://seniority.interlace.tools/docs) | Configuration precedence and discovery, with provenance | cosmiconfig, dotenv and rc |
550
+ | [seniority](https://seniority.interlace.tools/docs) | Configuration precedence and discovery, with provenance | cosmiconfig, lilconfig, dotenv and rc |
538
551
  | [closeout](https://closeout.interlace.tools/docs) | Exit handlers, terminal restore and a bounded shutdown | signal-exit, exit-hook and restore-cursor |
539
552
  | [bellpull](https://bellpull.interlace.tools/docs) | Subprocesses, and which executable actually ran | cross-spawn and which |
540
- | [controlroom](https://controlroom.interlace.tools/docs) | Full-screen, keyboard-driven terminal screens | ink, graded by ink's own suite |
553
+ | [controlroom](https://controlroom.interlace.tools/docs) | Keyboard-driven terminal screens, inline or full-screen | ink |
541
554
 
542
555
  Every migration guide, and the family-wide [compatibility](https://burgee.interlace.tools/docs/compatibility)
543
556
  and [benchmarks](https://burgee.interlace.tools/docs/benchmarks) pages, are on
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flagstaff",
3
- "version": "1.2.3",
4
- "description": "The staff the flag flies from. A terminal frame loop with a static projection for agents and screen readers, and a plugin host for spinners, progress, boxes and tables. Drop-in paths for ora, log-update, boxen and cli-table3. No dependency outside the burgee family.",
3
+ "version": "1.2.5",
4
+ "description": "Spinners, progress, boxes and tables on one terminal frame loop, with a static projection for pipes, screen readers and agents, and a plugin host. No dependency outside the burgee family. Drop-in paths for ora, log-update, boxen and cli-table3.",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "sideEffects": ["./dist/cli.js", "./dist/log-tail.js", "./dist/tab-bar.js"],
@@ -141,10 +141,10 @@
141
141
  "json"
142
142
  ],
143
143
  "dependencies": {
144
- "closeout": "^1.0.2",
145
- "linegauge": "^1.0.6",
146
- "paratext": "^1.0.2",
147
- "roundel": "^1.0.2"
144
+ "closeout": "^1.0.4",
145
+ "linegauge": "^1.0.8",
146
+ "paratext": "^1.0.4",
147
+ "roundel": "^1.0.4"
148
148
  },
149
149
  "devDependencies": {
150
150
  "fast-check": "^4.10.2",