@supersuit/hyperspec 0.4.0 → 0.6.0

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 (35) hide show
  1. package/CHANGELOG.md +143 -0
  2. package/README.md +50 -2
  3. package/SPEC.md +5 -5
  4. package/WRITING.md +510 -17
  5. package/bin/hyperspec.mjs +177 -2
  6. package/examples/writing/dna/essay-new-managers-teach/features.json +56 -0
  7. package/examples/writing/dna/essay-new-managers-teach/goldens/README.md +14 -0
  8. package/examples/writing/dna/essay-new-managers-teach/goldens/close.md +9 -0
  9. package/examples/writing/dna/essay-new-managers-teach/goldens/opening.md +9 -0
  10. package/examples/writing/dna/essay-new-managers-teach/goldens/status.md +10 -0
  11. package/examples/writing/dna/essay-new-managers-teach/scope.md +11 -0
  12. package/examples/writing/essay/claims.jsonl +9 -0
  13. package/examples/writing/essay/draft.md +82 -0
  14. package/examples/writing/essay/materials/interview-notes.md.segments.jsonl +2 -2
  15. package/examples/writing/essay.hyperspec.md +32 -13
  16. package/examples/writing/story/claims.jsonl +9 -0
  17. package/examples/writing/story/draft.md +267 -0
  18. package/examples/writing/story.hyperspec.md +20 -5
  19. package/package.json +1 -1
  20. package/src/check.mjs +245 -0
  21. package/src/dna.mjs +474 -0
  22. package/src/stations/claims.mjs +150 -0
  23. package/src/stations/dna.mjs +126 -0
  24. package/src/stations/form.mjs +115 -0
  25. package/src/stations/index.mjs +27 -0
  26. package/src/stations/links.mjs +275 -0
  27. package/src/stations/private.mjs +117 -0
  28. package/src/stations/quotes.mjs +168 -0
  29. package/src/stations/terms.mjs +131 -0
  30. package/src/stations/util.mjs +99 -0
  31. package/src/writing-exports.mjs +8 -3
  32. package/src/writing-fields.mjs +197 -1
  33. package/src/writing-template.mjs +8 -0
  34. package/examples/writing/essay/goldens/close.md +0 -2
  35. package/examples/writing/essay/goldens/opening.md +0 -2
@@ -20,6 +20,13 @@
20
20
  // materials check.station is the marking station itself, since that check is the same for every
21
21
  // writing spec: the linter enforces it, and there is nothing for the operator to decide there.
22
22
  //
23
+ // dna.scope_dir is the one optional field shown, and it is a real `scope_dir: TODO` like every
24
+ // other placeholder here. scope_dir is optional, so str() blanking a bare TODO would read as
25
+ // "absent", and a spec filled in everywhere else would pass with the placeholder still sitting
26
+ // there. Its own check closes that hole (writing-dna-scope-dir, src/writing-fields.mjs): a
27
+ // scope_dir key that is PRESENT with a placeholder-ish value fails on its own, the same as every
28
+ // other field here, so the skeleton can show it the same way as every other field.
29
+ //
23
30
  // init with no --profile never imports or calls this file: template.mjs's own template() is
24
31
  // untouched, so a bare init is still byte-for-byte what it always was.
25
32
  import { scalar } from "./template.mjs";
@@ -110,6 +117,7 @@ writing:
110
117
  author: TODO
111
118
  dna:
112
119
  writer: TODO
120
+ scope_dir: TODO
113
121
  scope:
114
122
  form: TODO
115
123
  audience: TODO
@@ -1,2 +0,0 @@
1
- So write the three questions on a card. Ask the first one. Then wait, longer than feels polite,
2
- because the first answer is the one they rehearsed and the second one is the one you came for.
@@ -1,2 +0,0 @@
1
- Your first one-on-one with a new report is the only meeting on your calendar where they should
2
- set the agenda. Everything else you run. This one you hand over.