@sentropic/focus 0.5.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/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 +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -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 +3 -2
- 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 +22 -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.
|
|
@@ -78,6 +80,22 @@ questions. It is not a reason to produce a longer dossier.
|
|
|
78
80
|
`readability.glossary` with a meaning the owner understands. The renderers show
|
|
79
81
|
this glossary. Each definition must stand alone in plain words, with no
|
|
80
82
|
self-reference or other code, even one defined elsewhere in the glossary.
|
|
83
|
+
- Enforce the 11/11 anti-wall-of-text rules: start every multi-sentence prose
|
|
84
|
+
block with an `En bref : ` (or `In short: `) takeaway sentence; keep each prose
|
|
85
|
+
cell or lead-and-bullet block, question block and option block to at most 60
|
|
86
|
+
words; keep each sentence to at most 22 words and one idea (no `;`, no `(...)`,
|
|
87
|
+
at most one `:`, and no inline enumeration); never place ULIDs, SHA hashes,
|
|
88
|
+
internal lot/AC codes or raw digit counts in prose, even if listed in
|
|
89
|
+
`glossary` (`ownerRequestQuote` is exempt as verbatim).
|
|
90
|
+
- On `prose` and `question` sections, optional `inputs[]` (`{ ref, kind, label? }`,
|
|
91
|
+
non-blank strings, `label` ≤ 12 words and ≤ 100 characters) declare prerequisite
|
|
92
|
+
artefacts with unique `ref` values (including across a linked `prose` and
|
|
93
|
+
`question` sharing `prose.questionId === question.id`), and optional
|
|
94
|
+
`completionCriterion` states a short verifiable exit condition (1 sentence, ≤ 22 words, ≤ 160 characters).
|
|
95
|
+
- A `diagram` section supports either inline mode (`syntax` + `source`, optional
|
|
96
|
+
`scene`) or reference mode (`sourceRef` + `renderComponent`, mutually exclusive
|
|
97
|
+
with `source`, `syntax` and `scene`). Reference diagrams are resolved by the
|
|
98
|
+
host `diagramResolver`; offline `h2a focus build` bundles inline diagrams only.
|
|
81
99
|
|
|
82
100
|
Bad: “Ratify L06b under MH-L3? A: migrate, with a/b variants. B: defer.”
|
|
83
101
|
The request, stakes, consequences and recommendation are missing; several
|