@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.
Files changed (69) hide show
  1. package/dist/artifact/check.d.ts +54 -0
  2. package/dist/artifact/check.d.ts.map +1 -0
  3. package/dist/artifact/check.js +148 -0
  4. package/dist/artifact/check.js.map +1 -0
  5. package/dist/artifact/index.d.ts +5 -0
  6. package/dist/artifact/index.d.ts.map +1 -0
  7. package/dist/artifact/index.js +3 -0
  8. package/dist/artifact/index.js.map +1 -0
  9. package/dist/artifact/manifest.d.ts +148 -0
  10. package/dist/artifact/manifest.d.ts.map +1 -0
  11. package/dist/artifact/manifest.js +485 -0
  12. package/dist/artifact/manifest.js.map +1 -0
  13. package/dist/cli/index.d.ts +1 -1
  14. package/dist/cli/index.d.ts.map +1 -1
  15. package/dist/cli/index.js +12 -3
  16. package/dist/cli/index.js.map +1 -1
  17. package/dist/index.d.ts +4 -2
  18. package/dist/index.d.ts.map +1 -1
  19. package/dist/index.js +2 -1
  20. package/dist/index.js.map +1 -1
  21. package/dist/model.d.ts +39 -5
  22. package/dist/model.d.ts.map +1 -1
  23. package/dist/model.js +3 -2
  24. package/dist/model.js.map +1 -1
  25. package/dist/registry/definitions.d.ts.map +1 -1
  26. package/dist/registry/definitions.js +44 -17
  27. package/dist/registry/definitions.js.map +1 -1
  28. package/dist/render/evidence.d.ts +13 -3
  29. package/dist/render/evidence.d.ts.map +1 -1
  30. package/dist/render/evidence.js +60 -7
  31. package/dist/render/evidence.js.map +1 -1
  32. package/dist/render/html.d.ts +3 -3
  33. package/dist/render/html.d.ts.map +1 -1
  34. package/dist/render/html.js +42 -6
  35. package/dist/render/html.js.map +1 -1
  36. package/dist/render/markdown-table.d.ts +5 -0
  37. package/dist/render/markdown-table.d.ts.map +1 -0
  38. package/dist/render/markdown-table.js +9 -0
  39. package/dist/render/markdown-table.js.map +1 -0
  40. package/dist/render/md.d.ts +3 -3
  41. package/dist/render/md.d.ts.map +1 -1
  42. package/dist/render/md.js +34 -5
  43. package/dist/render/md.js.map +1 -1
  44. package/dist/render/presentation.d.ts +2 -2
  45. package/dist/render/presentation.d.ts.map +1 -1
  46. package/dist/render/presentation.js +2 -2
  47. package/dist/render/presentation.js.map +1 -1
  48. package/dist/render/terminal.d.ts +3 -3
  49. package/dist/render/terminal.d.ts.map +1 -1
  50. package/dist/render/terminal.js +28 -8
  51. package/dist/render/terminal.js.map +1 -1
  52. package/dist/track/index.js +3 -3
  53. package/dist/track/index.js.map +1 -1
  54. package/dist/validation/index.d.ts +18 -3
  55. package/dist/validation/index.d.ts.map +1 -1
  56. package/dist/validation/index.js +212 -14
  57. package/dist/validation/index.js.map +1 -1
  58. package/dist/validation/readability.d.ts +14 -2
  59. package/dist/validation/readability.d.ts.map +1 -1
  60. package/dist/validation/readability.js +232 -14
  61. package/dist/validation/readability.js.map +1 -1
  62. package/package.json +8 -3
  63. package/registry/entries.v1.json +45 -6
  64. package/schemas/decision-dossier-document.v1.0.schema.json +193 -0
  65. package/schemas/decision-dossier-document.v1.schema.json +31 -7
  66. package/schemas/decision-dossier-document.v2.0.schema.json +925 -0
  67. package/schemas/decision-dossier-document.v2.schema.json +156 -6
  68. package/schemas/report-document.v1.schema.json +1068 -0
  69. package/skills/focus/SKILL.md +24 -4
@@ -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.0.0`
14
- (`schemas/decision-dossier-document.v1.schema.json`). This instruction-only
15
- skill grants no tools or write authority.
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.0.0`. Omitting the discriminant
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