@sentropic/focus 0.5.0 → 0.6.0-rc.13
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/dist/artifact/check.d.ts +54 -0
- package/dist/artifact/check.d.ts.map +1 -0
- package/dist/artifact/check.js +148 -0
- package/dist/artifact/check.js.map +1 -0
- package/dist/artifact/index.d.ts +5 -0
- package/dist/artifact/index.d.ts.map +1 -0
- package/dist/artifact/index.js +3 -0
- package/dist/artifact/index.js.map +1 -0
- package/dist/artifact/manifest.d.ts +148 -0
- package/dist/artifact/manifest.d.ts.map +1 -0
- package/dist/artifact/manifest.js +485 -0
- package/dist/artifact/manifest.js.map +1 -0
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +12 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/model.d.ts +39 -5
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +3 -2
- package/dist/model.js.map +1 -1
- package/dist/registry/definitions.d.ts.map +1 -1
- package/dist/registry/definitions.js +44 -17
- package/dist/registry/definitions.js.map +1 -1
- package/dist/render/evidence.d.ts +13 -3
- package/dist/render/evidence.d.ts.map +1 -1
- package/dist/render/evidence.js +60 -7
- package/dist/render/evidence.js.map +1 -1
- package/dist/render/html.d.ts +3 -3
- package/dist/render/html.d.ts.map +1 -1
- package/dist/render/html.js +42 -6
- package/dist/render/html.js.map +1 -1
- package/dist/render/markdown-table.d.ts +5 -0
- package/dist/render/markdown-table.d.ts.map +1 -0
- package/dist/render/markdown-table.js +9 -0
- package/dist/render/markdown-table.js.map +1 -0
- package/dist/render/md.d.ts +3 -3
- package/dist/render/md.d.ts.map +1 -1
- package/dist/render/md.js +34 -5
- package/dist/render/md.js.map +1 -1
- package/dist/render/presentation.d.ts +2 -2
- package/dist/render/presentation.d.ts.map +1 -1
- package/dist/render/presentation.js +2 -2
- package/dist/render/presentation.js.map +1 -1
- package/dist/render/terminal.d.ts +3 -3
- package/dist/render/terminal.d.ts.map +1 -1
- package/dist/render/terminal.js +28 -8
- package/dist/render/terminal.js.map +1 -1
- package/dist/track/index.js +3 -3
- package/dist/track/index.js.map +1 -1
- package/dist/validation/index.d.ts +18 -3
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +212 -14
- package/dist/validation/index.js.map +1 -1
- package/dist/validation/readability.d.ts +14 -2
- package/dist/validation/readability.d.ts.map +1 -1
- package/dist/validation/readability.js +232 -14
- package/dist/validation/readability.js.map +1 -1
- package/package.json +8 -3
- package/registry/entries.v1.json +45 -6
- package/schemas/decision-dossier-document.v1.0.schema.json +193 -0
- package/schemas/decision-dossier-document.v1.schema.json +31 -7
- package/schemas/decision-dossier-document.v2.0.schema.json +925 -0
- package/schemas/decision-dossier-document.v2.schema.json +156 -6
- package/schemas/report-document.v1.schema.json +1068 -0
- package/skills/focus/SKILL.md +24 -4
package/skills/focus/SKILL.md
CHANGED
|
@@ -10,15 +10,17 @@ tools: []
|
|
|
10
10
|
|
|
11
11
|
Method capability: `sentropic.focus.decision-dossier`. Prepare a
|
|
12
12
|
`DecisionDossierDocument` using schema
|
|
13
|
-
`urn:sentropic:focus:DecisionDossierDocument:1.
|
|
14
|
-
(`schemas/decision-dossier-document.v1.schema.json`
|
|
15
|
-
|
|
13
|
+
`urn:sentropic:focus:DecisionDossierDocument:1.1.0`
|
|
14
|
+
(`schemas/decision-dossier-document.v1.schema.json`; historical `1.0.0` remains
|
|
15
|
+
pinned at `schemas/decision-dossier-document.v1.0.schema.json`). This
|
|
16
|
+
instruction-only skill grants no tools or write authority.
|
|
16
17
|
|
|
17
18
|
For supporting evidence, select the explicit v2 template with the freshly built
|
|
18
19
|
checkout CLI: `node packages/h2a/dist/bin.js focus template --evidence -o dossier.json`,
|
|
19
20
|
then `node packages/h2a/dist/bin.js focus build dossier.json -o dossier.html`.
|
|
20
21
|
It declares `schemaVersion: 2` and uses the separate schema
|
|
21
|
-
`urn:sentropic:focus:DecisionDossierDocument:2.
|
|
22
|
+
`urn:sentropic:focus:DecisionDossierDocument:2.1.0` (historical `2.0.0` remains
|
|
23
|
+
pinned at `schemas/decision-dossier-document.v2.0.schema.json`). Omitting the discriminant
|
|
22
24
|
selects unchanged v1. Old consumers refuse v2; never strip evidence to bypass that.
|
|
23
25
|
Store original bytes once in `sources` (canonical base64, original SHA-256 and byte
|
|
24
26
|
size). Origins are frozen provenance data, never URLs/paths fetched by the reader.
|
|
@@ -37,6 +39,7 @@ implementation within existing authority. Double review must find missing
|
|
|
37
39
|
context, hidden commitments and risks; it must also cut jargon and unnecessary
|
|
38
40
|
questions. It is not a reason to produce a longer dossier.
|
|
39
41
|
|
|
42
|
+
<!-- FOCUS-WRITING-START -->
|
|
40
43
|
## Prepare a dossier the owner can read on its own
|
|
41
44
|
|
|
42
45
|
- Write `title` and `subject` as non-empty single lines of at most 100
|
|
@@ -78,6 +81,22 @@ questions. It is not a reason to produce a longer dossier.
|
|
|
78
81
|
`readability.glossary` with a meaning the owner understands. The renderers show
|
|
79
82
|
this glossary. Each definition must stand alone in plain words, with no
|
|
80
83
|
self-reference or other code, even one defined elsewhere in the glossary.
|
|
84
|
+
- Enforce the 11/11 anti-wall-of-text rules: start every multi-sentence prose
|
|
85
|
+
block with an `En bref : ` (or `In short: `) takeaway sentence; keep each prose
|
|
86
|
+
cell or lead-and-bullet block, question block and option block to at most 60
|
|
87
|
+
words; keep each sentence to at most 22 words and one idea (no `;`, no `(...)`,
|
|
88
|
+
at most one `:`, and no inline enumeration); never place ULIDs, SHA hashes,
|
|
89
|
+
internal lot/AC codes or raw digit counts in prose, even if listed in
|
|
90
|
+
`glossary` (`ownerRequestQuote` is exempt as verbatim).
|
|
91
|
+
- On `prose` and `question` sections, optional `inputs[]` (`{ ref, kind, label? }`,
|
|
92
|
+
non-blank strings, `label` ≤ 12 words and ≤ 100 characters) declare prerequisite
|
|
93
|
+
artefacts with unique `ref` values (including across a linked `prose` and
|
|
94
|
+
`question` sharing `prose.questionId === question.id`), and optional
|
|
95
|
+
`completionCriterion` states a short verifiable exit condition (1 sentence, ≤ 22 words, ≤ 160 characters).
|
|
96
|
+
- A `diagram` section supports either inline mode (`syntax` + `source`, optional
|
|
97
|
+
`scene`) or reference mode (`sourceRef` + `renderComponent`, mutually exclusive
|
|
98
|
+
with `source`, `syntax` and `scene`). Reference diagrams are resolved by the
|
|
99
|
+
host `diagramResolver`; offline standalone exports bundle inline diagrams only.
|
|
81
100
|
|
|
82
101
|
Bad: “Ratify L06b under MH-L3? A: migrate, with a/b variants. B: defer.”
|
|
83
102
|
The request, stakes, consequences and recommendation are missing; several
|
|
@@ -96,6 +115,7 @@ option's id and reason, the literal quote and stakes, a declared stakes level,
|
|
|
96
115
|
and reading estimates. Let the renderer arrange the supplied questions/options;
|
|
97
116
|
never hand-author four parallel walls of text or imply that snapshot cards are
|
|
98
117
|
clickable.
|
|
118
|
+
<!-- FOCUS-WRITING-END -->
|
|
99
119
|
|
|
100
120
|
## Validate before presentation
|
|
101
121
|
|