@sentropic/focus 0.6.1-rc.17 → 0.6.1-rc.3
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.map +1 -1
- package/dist/cli/index.js +1 -14
- 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 +2 -8
- package/dist/model.d.ts.map +1 -1
- package/dist/model.js +0 -13
- package/dist/model.js.map +1 -1
- package/dist/render/evidence.d.ts.map +1 -1
- package/dist/render/evidence.js +3 -2
- package/dist/render/evidence.js.map +1 -1
- package/dist/render/hooks.d.ts +1 -0
- package/dist/render/hooks.d.ts.map +1 -1
- package/dist/render/html.d.ts +3 -1
- package/dist/render/html.d.ts.map +1 -1
- package/dist/render/html.js +11 -17
- package/dist/render/html.js.map +1 -1
- package/dist/render/md.js +1 -1
- package/dist/render/md.js.map +1 -1
- package/dist/render/presentation.d.ts +2 -1
- 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/prose.d.ts +35 -0
- package/dist/render/prose.d.ts.map +1 -0
- package/dist/render/prose.js +134 -0
- package/dist/render/prose.js.map +1 -0
- package/dist/render/terminal.d.ts +2 -0
- package/dist/render/terminal.d.ts.map +1 -1
- package/dist/render/terminal.js +1 -1
- package/dist/render/terminal.js.map +1 -1
- package/dist/validation/index.d.ts +7 -7
- package/dist/validation/index.d.ts.map +1 -1
- package/dist/validation/index.js +14 -17
- package/dist/validation/index.js.map +1 -1
- package/dist/validation/readability.d.ts +24 -3
- package/dist/validation/readability.d.ts.map +1 -1
- package/dist/validation/readability.js +127 -157
- package/dist/validation/readability.js.map +1 -1
- package/package.json +2 -2
- package/registry/entries.v1.json +7 -7
- package/schemas/decision-dossier-document.v1.schema.json +1 -2
- package/schemas/decision-dossier-document.v2.schema.json +1 -15
- package/schemas/report-document.v1.schema.json +1 -15
- package/skills/focus/SKILL.md +45 -38
|
@@ -474,20 +474,6 @@
|
|
|
474
474
|
"targetRef": {
|
|
475
475
|
"type": "string"
|
|
476
476
|
},
|
|
477
|
-
"diagramType": {
|
|
478
|
-
"enum": [
|
|
479
|
-
"architecture",
|
|
480
|
-
"workflow",
|
|
481
|
-
"sequence",
|
|
482
|
-
"dataflow",
|
|
483
|
-
"lifecycle",
|
|
484
|
-
"erd",
|
|
485
|
-
"class",
|
|
486
|
-
"tree",
|
|
487
|
-
"timeline",
|
|
488
|
-
"waterfall"
|
|
489
|
-
]
|
|
490
|
-
},
|
|
491
477
|
"syntax": {
|
|
492
478
|
"enum": [
|
|
493
479
|
"mermaid",
|
|
@@ -512,7 +498,7 @@
|
|
|
512
498
|
},
|
|
513
499
|
"scene": {
|
|
514
500
|
"type": "object",
|
|
515
|
-
"description": "diagram-core SemanticDocument
|
|
501
|
+
"description": "diagram-core SemanticDocument without views or geometry. The DS validates the profile and its extensions."
|
|
516
502
|
},
|
|
517
503
|
"citationRefs": {
|
|
518
504
|
"type": "array",
|
|
@@ -467,20 +467,6 @@
|
|
|
467
467
|
"targetRef": {
|
|
468
468
|
"type": "string"
|
|
469
469
|
},
|
|
470
|
-
"diagramType": {
|
|
471
|
-
"enum": [
|
|
472
|
-
"architecture",
|
|
473
|
-
"workflow",
|
|
474
|
-
"sequence",
|
|
475
|
-
"dataflow",
|
|
476
|
-
"lifecycle",
|
|
477
|
-
"erd",
|
|
478
|
-
"class",
|
|
479
|
-
"tree",
|
|
480
|
-
"timeline",
|
|
481
|
-
"waterfall"
|
|
482
|
-
]
|
|
483
|
-
},
|
|
484
470
|
"syntax": {
|
|
485
471
|
"enum": [
|
|
486
472
|
"mermaid",
|
|
@@ -505,7 +491,7 @@
|
|
|
505
491
|
},
|
|
506
492
|
"scene": {
|
|
507
493
|
"type": "object",
|
|
508
|
-
"description": "diagram-core SemanticDocument
|
|
494
|
+
"description": "diagram-core SemanticDocument without views or geometry. The DS validates the profile and its extensions."
|
|
509
495
|
},
|
|
510
496
|
"citationRefs": {
|
|
511
497
|
"type": "array",
|
package/skills/focus/SKILL.md
CHANGED
|
@@ -81,48 +81,55 @@ questions. It is not a reason to produce a longer dossier.
|
|
|
81
81
|
`readability.glossary` with a meaning the owner understands. The renderers show
|
|
82
82
|
this glossary. Each definition must stand alone in plain words, with no
|
|
83
83
|
self-reference or other code, even one defined elsewhere in the glossary.
|
|
84
|
-
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
84
|
+
- Give each section a descriptive Markdown heading. Use a short subheading or
|
|
85
|
+
a bold lead when a paragraph needs a title. Develop one point across 2
|
|
86
|
+
connected sentences, with a 3rd when it adds a condition or consequence.
|
|
87
|
+
Use bullets for distinct items and bold for the fact or choice to find again.
|
|
88
|
+
- Write quantities, dates, durations and percentages in digits, with units.
|
|
89
|
+
Put the essential point first in your own words. Choose headings and leads
|
|
90
|
+
for the subject. No opening label is required.
|
|
91
|
+
- Focus's mobile profile C allows 20 words per sentence, 60 per paragraph
|
|
92
|
+
or individual list item and 3 sentences per paragraph. Aim for 2 sentences.
|
|
93
|
+
An introductory paragraph and each bullet have independent budgets. Use
|
|
94
|
+
profile B in explanatory annexes (25 words per sentence, 80 per block,
|
|
95
|
+
3 sentences per paragraph, aim for 20 words per sentence). Table cells
|
|
96
|
+
each have their own budget. Keep conditions that affect the choice beside it.
|
|
97
|
+
- Choose punctuation for meaning. Keep opaque identifiers and hashes in
|
|
98
|
+
structured references. Preserve the owner's quotation exactly.
|
|
91
99
|
- On `prose` and `question` sections, optional `inputs[]` (`{ ref, kind, label? }`,
|
|
92
100
|
non-blank strings, `label` ≤ 12 words and ≤ 100 characters) declare prerequisite
|
|
93
101
|
artefacts with unique `ref` values (including across a linked `prose` and
|
|
94
102
|
`question` sharing `prose.questionId === question.id`), and optional
|
|
95
|
-
`completionCriterion` states a short verifiable exit condition (1 sentence
|
|
96
|
-
-
|
|
97
|
-
`
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
###
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
5. Write a standalone single-sentence `alt` description and never encode states by color alone.
|
|
103
|
+
`completionCriterion` states a short verifiable exit condition (1 sentence within the active limit, ≤ 160 characters).
|
|
104
|
+
- In a portable `diagram` section, supply `kind`, `id`, `targetRef`, a one-sentence
|
|
105
|
+
`alt`, and a diagram-core semantic document in `scene`. The Focus 0.6 inline
|
|
106
|
+
envelope also requires `syntax: "mermaid"` and a non-empty `source`. Use a
|
|
107
|
+
textual fallback for other readers. The portable renderer reads `scene`.
|
|
108
|
+
A host can resolve a reference section with `sourceRef` and `renderComponent`.
|
|
109
|
+
|
|
110
|
+
### Author a diagram-core scene
|
|
111
|
+
|
|
112
|
+
- Set `documentId` to `document:<id>`, `schemaVersion` to
|
|
113
|
+
`{ "major": 1, "minor": 1 }`, and `revision` to a nonnegative integer.
|
|
114
|
+
Declare the profile in `profileRefs`. Supply maps for `entities`, `relations`,
|
|
115
|
+
`ports`, `typeDefinitions` and `resources`, and an `extensions` array.
|
|
116
|
+
Leave unused maps empty. Omit views, positions, sizes and route coordinates.
|
|
117
|
+
- Key entities by `entity:<id>` and relations by `relation:<id>`. Each record
|
|
118
|
+
carries its matching `id`, `profile`, `type` and typed `attributes`. For
|
|
119
|
+
example, use `{ "kind": "text", "value": "Reader" }` for the `name` attribute.
|
|
120
|
+
A relation adds `endpoints` whose `role` and `target` follow its profile.
|
|
121
|
+
- Use `generic@1` for nodes and explicit containers. A `contains` relation
|
|
122
|
+
uses `parent` and `child`, and a `link` uses `source` and `target`.
|
|
123
|
+
Use `process@1` for steps and transitions, `erd@1` for tables and
|
|
124
|
+
relationships, and `generic@2` or `archimate@2` for architecture. The
|
|
125
|
+
architecture profiles can be combined and support optional
|
|
126
|
+
`diagram-presentation@2` and `ds-layout-hints@2` document extensions.
|
|
127
|
+
- Follow the [diagram-core profiles](https://github.com/rhanka/sent-tech-design-system/tree/69769139/packages/diagram-core/src/profiles)
|
|
128
|
+
for entity and relation types, endpoint roles, and typed attributes. Use
|
|
129
|
+
`buildDossierViews` from `@sentropic/design-system-elements/dossier-views`
|
|
130
|
+
to validate and lay out the scenes. Use `mountDossier` or
|
|
131
|
+
`assembleStandaloneDossier` from the same package for live folding.
|
|
132
|
+
Use short labels and check the rendered result in the intended surface.
|
|
126
133
|
|
|
127
134
|
Bad: “Ratify L06b under MH-L3? A: migrate, with a/b variants. B: defer.”
|
|
128
135
|
The request, stakes, consequences and recommendation are missing; several
|