@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.
- package/CHANGELOG.md +143 -0
- package/README.md +50 -2
- package/SPEC.md +5 -5
- package/WRITING.md +510 -17
- package/bin/hyperspec.mjs +177 -2
- package/examples/writing/dna/essay-new-managers-teach/features.json +56 -0
- package/examples/writing/dna/essay-new-managers-teach/goldens/README.md +14 -0
- package/examples/writing/dna/essay-new-managers-teach/goldens/close.md +9 -0
- package/examples/writing/dna/essay-new-managers-teach/goldens/opening.md +9 -0
- package/examples/writing/dna/essay-new-managers-teach/goldens/status.md +10 -0
- package/examples/writing/dna/essay-new-managers-teach/scope.md +11 -0
- package/examples/writing/essay/claims.jsonl +9 -0
- package/examples/writing/essay/draft.md +82 -0
- package/examples/writing/essay/materials/interview-notes.md.segments.jsonl +2 -2
- package/examples/writing/essay.hyperspec.md +32 -13
- package/examples/writing/story/claims.jsonl +9 -0
- package/examples/writing/story/draft.md +267 -0
- package/examples/writing/story.hyperspec.md +20 -5
- package/package.json +1 -1
- package/src/check.mjs +245 -0
- package/src/dna.mjs +474 -0
- package/src/stations/claims.mjs +150 -0
- package/src/stations/dna.mjs +126 -0
- package/src/stations/form.mjs +115 -0
- package/src/stations/index.mjs +27 -0
- package/src/stations/links.mjs +275 -0
- package/src/stations/private.mjs +117 -0
- package/src/stations/quotes.mjs +168 -0
- package/src/stations/terms.mjs +131 -0
- package/src/stations/util.mjs +99 -0
- package/src/writing-exports.mjs +8 -3
- package/src/writing-fields.mjs +197 -1
- package/src/writing-template.mjs +8 -0
- package/examples/writing/essay/goldens/close.md +0 -2
- package/examples/writing/essay/goldens/opening.md +0 -2
package/src/writing-template.mjs
CHANGED
|
@@ -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
|