@sentropic/track 0.98.6 → 0.98.7-rc.10

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 (163) hide show
  1. package/README.md +13 -0
  2. package/dist/cli/index.d.ts.map +1 -1
  3. package/dist/cli/index.js +95 -16
  4. package/dist/cli/index.js.map +1 -1
  5. package/dist/cli/install-skills.d.ts.map +1 -1
  6. package/dist/cli/install-skills.js +9 -3
  7. package/dist/cli/install-skills.js.map +1 -1
  8. package/dist/events/types.d.ts +1 -1
  9. package/dist/events/types.d.ts.map +1 -1
  10. package/dist/events/types.js +1 -0
  11. package/dist/events/types.js.map +1 -1
  12. package/dist/focus-vendor/editing/anchors.d.ts +20 -0
  13. package/dist/focus-vendor/editing/anchors.d.ts.map +1 -0
  14. package/dist/focus-vendor/editing/anchors.js +113 -0
  15. package/dist/focus-vendor/editing/anchors.js.map +1 -0
  16. package/dist/focus-vendor/editing/codec.d.ts +22 -0
  17. package/dist/focus-vendor/editing/codec.d.ts.map +1 -0
  18. package/dist/focus-vendor/editing/codec.js +143 -0
  19. package/dist/focus-vendor/editing/codec.js.map +1 -0
  20. package/dist/focus-vendor/editing/contract.d.ts +14 -0
  21. package/dist/focus-vendor/editing/contract.d.ts.map +1 -0
  22. package/dist/focus-vendor/editing/contract.js +76 -0
  23. package/dist/focus-vendor/editing/contract.js.map +1 -0
  24. package/dist/focus-vendor/editing/diff.d.ts +17 -0
  25. package/dist/focus-vendor/editing/diff.d.ts.map +1 -0
  26. package/dist/focus-vendor/editing/diff.js +125 -0
  27. package/dist/focus-vendor/editing/diff.js.map +1 -0
  28. package/dist/focus-vendor/editing/digest.d.ts +6 -0
  29. package/dist/focus-vendor/editing/digest.d.ts.map +1 -0
  30. package/dist/focus-vendor/editing/digest.js +56 -0
  31. package/dist/focus-vendor/editing/digest.js.map +1 -0
  32. package/dist/focus-vendor/editing/index.d.ts +7 -0
  33. package/dist/focus-vendor/editing/index.d.ts.map +1 -0
  34. package/dist/focus-vendor/editing/index.js +7 -0
  35. package/dist/focus-vendor/editing/index.js.map +1 -0
  36. package/dist/focus-vendor/editing/reconcile.d.ts +3 -0
  37. package/dist/focus-vendor/editing/reconcile.d.ts.map +1 -0
  38. package/dist/focus-vendor/editing/reconcile.js +167 -0
  39. package/dist/focus-vendor/editing/reconcile.js.map +1 -0
  40. package/dist/focus-vendor/editing/structure.d.ts +16 -0
  41. package/dist/focus-vendor/editing/structure.d.ts.map +1 -0
  42. package/dist/focus-vendor/editing/structure.js +71 -0
  43. package/dist/focus-vendor/editing/structure.js.map +1 -0
  44. package/dist/focus-vendor/index.d.ts +2 -0
  45. package/dist/focus-vendor/index.js +2 -0
  46. package/dist/focus-vendor/index.js.map +1 -1
  47. package/dist/focus-vendor/model.d.ts +1 -1
  48. package/dist/focus-vendor/model.d.ts.map +1 -1
  49. package/dist/focus-vendor/model.js +1 -1
  50. package/dist/focus-vendor/model.js.map +1 -1
  51. package/dist/focus-vendor/registry/definitions.d.ts +68 -0
  52. package/dist/focus-vendor/registry/definitions.d.ts.map +1 -0
  53. package/dist/focus-vendor/registry/definitions.js +509 -0
  54. package/dist/focus-vendor/registry/definitions.js.map +1 -0
  55. package/dist/focus-vendor/registry/entries.v1.json +140 -0
  56. package/dist/focus-vendor/render/evidence.d.ts +9 -0
  57. package/dist/focus-vendor/render/evidence.d.ts.map +1 -0
  58. package/dist/focus-vendor/render/evidence.js +37 -0
  59. package/dist/focus-vendor/render/evidence.js.map +1 -0
  60. package/dist/focus-vendor/render/html.d.ts.map +1 -1
  61. package/dist/focus-vendor/render/html.js +14 -1
  62. package/dist/focus-vendor/render/html.js.map +1 -1
  63. package/dist/focus-vendor/render/md.d.ts.map +1 -1
  64. package/dist/focus-vendor/render/md.js +15 -1
  65. package/dist/focus-vendor/render/md.js.map +1 -1
  66. package/dist/focus-vendor/render/presentation.d.ts +29 -0
  67. package/dist/focus-vendor/render/presentation.d.ts.map +1 -0
  68. package/dist/focus-vendor/render/presentation.js +25 -0
  69. package/dist/focus-vendor/render/presentation.js.map +1 -0
  70. package/dist/focus-vendor/render/terminal.d.ts.map +1 -1
  71. package/dist/focus-vendor/render/terminal.js +15 -1
  72. package/dist/focus-vendor/render/terminal.js.map +1 -1
  73. package/dist/focus-vendor/track/index.d.ts +23 -27
  74. package/dist/focus-vendor/track/index.d.ts.map +1 -1
  75. package/dist/focus-vendor/track/index.js +24 -10
  76. package/dist/focus-vendor/track/index.js.map +1 -1
  77. package/dist/focus-vendor/validation/evidence-bytes.d.ts +5 -0
  78. package/dist/focus-vendor/validation/evidence-bytes.d.ts.map +1 -0
  79. package/dist/focus-vendor/validation/evidence-bytes.js +57 -0
  80. package/dist/focus-vendor/validation/evidence-bytes.js.map +1 -0
  81. package/dist/focus-vendor/validation/evidence-shape.d.ts +11 -0
  82. package/dist/focus-vendor/validation/evidence-shape.d.ts.map +1 -0
  83. package/dist/focus-vendor/validation/evidence-shape.js +54 -0
  84. package/dist/focus-vendor/validation/evidence-shape.js.map +1 -0
  85. package/dist/focus-vendor/validation/evidence-sources.d.ts +6 -0
  86. package/dist/focus-vendor/validation/evidence-sources.d.ts.map +1 -0
  87. package/dist/focus-vendor/validation/evidence-sources.js +56 -0
  88. package/dist/focus-vendor/validation/evidence-sources.js.map +1 -0
  89. package/dist/focus-vendor/validation/evidence.d.ts +3 -0
  90. package/dist/focus-vendor/validation/evidence.d.ts.map +1 -0
  91. package/dist/focus-vendor/validation/evidence.js +131 -0
  92. package/dist/focus-vendor/validation/evidence.js.map +1 -0
  93. package/dist/focus-vendor/validation/index.d.ts +187 -0
  94. package/dist/focus-vendor/validation/index.d.ts.map +1 -0
  95. package/dist/focus-vendor/validation/index.js +500 -0
  96. package/dist/focus-vendor/validation/index.js.map +1 -0
  97. package/dist/focus-vendor/validation/readability.d.ts +22 -0
  98. package/dist/focus-vendor/validation/readability.d.ts.map +1 -0
  99. package/dist/focus-vendor/validation/readability.js +265 -0
  100. package/dist/focus-vendor/validation/readability.js.map +1 -0
  101. package/dist/model/decision.d.ts +19 -0
  102. package/dist/model/decision.d.ts.map +1 -1
  103. package/dist/model/decision.js.map +1 -1
  104. package/dist/model/index.d.ts +1 -0
  105. package/dist/model/index.d.ts.map +1 -1
  106. package/dist/model/index.js +1 -0
  107. package/dist/model/index.js.map +1 -1
  108. package/dist/model/item.d.ts +2 -0
  109. package/dist/model/item.d.ts.map +1 -1
  110. package/dist/model/item.js.map +1 -1
  111. package/dist/model/report-status.d.ts +53 -0
  112. package/dist/model/report-status.d.ts.map +1 -0
  113. package/dist/model/report-status.js +106 -0
  114. package/dist/model/report-status.js.map +1 -0
  115. package/dist/read/commands.d.ts +22 -2
  116. package/dist/read/commands.d.ts.map +1 -1
  117. package/dist/read/commands.js +134 -21
  118. package/dist/read/commands.js.map +1 -1
  119. package/dist/read/contract.d.ts.map +1 -1
  120. package/dist/read/contract.js +3 -1
  121. package/dist/read/contract.js.map +1 -1
  122. package/dist/report/audit.d.ts +68 -0
  123. package/dist/report/audit.d.ts.map +1 -1
  124. package/dist/report/audit.js +116 -0
  125. package/dist/report/audit.js.map +1 -1
  126. package/dist/report/build.d.ts +82 -1
  127. package/dist/report/build.d.ts.map +1 -1
  128. package/dist/report/build.js +85 -3
  129. package/dist/report/build.js.map +1 -1
  130. package/dist/report/directive.d.ts +5 -1
  131. package/dist/report/directive.d.ts.map +1 -1
  132. package/dist/report/directive.js +4 -0
  133. package/dist/report/directive.js.map +1 -1
  134. package/dist/report/format.d.ts +104 -3
  135. package/dist/report/format.d.ts.map +1 -1
  136. package/dist/report/format.js +251 -27
  137. package/dist/report/format.js.map +1 -1
  138. package/dist/report/index.d.ts +5 -2
  139. package/dist/report/index.d.ts.map +1 -1
  140. package/dist/report/index.js +6 -1
  141. package/dist/report/index.js.map +1 -1
  142. package/dist/report/stage-status-lexicon.d.ts +24 -0
  143. package/dist/report/stage-status-lexicon.d.ts.map +1 -0
  144. package/dist/report/stage-status-lexicon.js +96 -0
  145. package/dist/report/stage-status-lexicon.js.map +1 -0
  146. package/dist/report/stage-status.d.ts +31 -0
  147. package/dist/report/stage-status.d.ts.map +1 -0
  148. package/dist/report/stage-status.js +208 -0
  149. package/dist/report/stage-status.js.map +1 -0
  150. package/dist/state/fold.d.ts.map +1 -1
  151. package/dist/state/fold.js +11 -0
  152. package/dist/state/fold.js.map +1 -1
  153. package/dist/track.d.ts +3 -0
  154. package/dist/track.d.ts.map +1 -1
  155. package/dist/track.js +12 -1
  156. package/dist/track.js.map +1 -1
  157. package/package.json +2 -2
  158. package/skills/present-decision/SKILL.md +98 -95
  159. package/skills/present-decision/assets/dossier-template.md +35 -38
  160. package/skills/present-decision/assets/native-questions.md +18 -0
  161. package/skills/present-decision/assets/owner-criteria.template.md +11 -16
  162. package/skills/present-decision/assets/self-audit.md +26 -22
  163. package/skills/propose-workpackages/SKILL.md +20 -1
@@ -0,0 +1,187 @@
1
+ /** Stable schema ID of the published DecisionDossierDocument asset. */
2
+ export const DOSSIER_SCHEMA_ID: "urn:sentropic:focus:DecisionDossierDocument:1.0.0";
3
+ /** Version of the dossier schema, independent of the package version. */
4
+ export const DOSSIER_SCHEMA_VERSION: "1.0.0";
5
+ /** Thrown by {@link assertDecisionDossierDocument} on an invalid dossier. */
6
+ export class DecisionDossierValidationError extends Error {
7
+ constructor(issues: any);
8
+ issues: any;
9
+ }
10
+ export function validateDecisionDossierStructure(value: any): {
11
+ ok: boolean;
12
+ issues: any[];
13
+ value?: never;
14
+ } | {
15
+ ok: boolean;
16
+ value: {
17
+ readability?: {
18
+ glossary?: any[];
19
+ readingBudgetMinutes?: number;
20
+ stakesLevel?: any;
21
+ stakes?: string;
22
+ noOwnerRequest?: boolean;
23
+ ownerRequestQuote?: string;
24
+ };
25
+ ref: string;
26
+ subject: string;
27
+ title: string;
28
+ hash: string;
29
+ cursor: string;
30
+ sections: any[];
31
+ interactions: any[];
32
+ provenance: {
33
+ comprehensionEvidence?: {
34
+ signature?: string;
35
+ subject: any;
36
+ dossierHash: any;
37
+ };
38
+ source: any;
39
+ readAt: any;
40
+ };
41
+ amendmentTrace: any[];
42
+ };
43
+ issues?: never;
44
+ } | import("./index.js").ValidationResult<import("../model.js").DecisionDossierDocumentV2>;
45
+ export function validateDecisionDossierSemantics(doc: any): {
46
+ path: any;
47
+ code: any;
48
+ message: any;
49
+ }[];
50
+ export function validateDecisionDossierDocument(value: any): {
51
+ readonly ok: false;
52
+ readonly issues: readonly import("./index.js").ValidationIssue[];
53
+ } | {
54
+ ok: boolean;
55
+ issues: any[];
56
+ value?: never;
57
+ } | {
58
+ ok: boolean;
59
+ value: {
60
+ readability?: {
61
+ glossary?: any[];
62
+ readingBudgetMinutes?: number;
63
+ stakesLevel?: any;
64
+ stakes?: string;
65
+ noOwnerRequest?: boolean;
66
+ ownerRequestQuote?: string;
67
+ };
68
+ ref: string;
69
+ subject: string;
70
+ title: string;
71
+ hash: string;
72
+ cursor: string;
73
+ sections: any[];
74
+ interactions: any[];
75
+ provenance: {
76
+ comprehensionEvidence?: {
77
+ signature?: string;
78
+ subject: any;
79
+ dossierHash: any;
80
+ };
81
+ source: any;
82
+ readAt: any;
83
+ };
84
+ amendmentTrace: any[];
85
+ };
86
+ issues?: never;
87
+ } | {
88
+ readonly ok: true;
89
+ readonly value: import("../model.js").DecisionDossierDocumentV2;
90
+ };
91
+ export function assertDecisionDossierDocument(value: any): import("../model.js").DecisionDossierDocumentV2 | {
92
+ readability?: {
93
+ glossary?: any[];
94
+ readingBudgetMinutes?: number;
95
+ stakesLevel?: any;
96
+ stakes?: string;
97
+ noOwnerRequest?: boolean;
98
+ ownerRequestQuote?: string;
99
+ };
100
+ ref: string;
101
+ subject: string;
102
+ title: string;
103
+ hash: string;
104
+ cursor: string;
105
+ sections: any[];
106
+ interactions: any[];
107
+ provenance: {
108
+ comprehensionEvidence?: {
109
+ signature?: string;
110
+ subject: any;
111
+ dossierHash: any;
112
+ };
113
+ source: any;
114
+ readAt: any;
115
+ };
116
+ amendmentTrace: any[];
117
+ } | undefined;
118
+ export function validateDecisionDossierForPresentation(value: any): {
119
+ readonly ok: false;
120
+ readonly issues: readonly import("./index.js").ValidationIssue[];
121
+ } | {
122
+ ok: boolean;
123
+ issues: any[];
124
+ value?: never;
125
+ } | {
126
+ ok: boolean;
127
+ value: {
128
+ readability?: {
129
+ glossary?: any[];
130
+ readingBudgetMinutes?: number;
131
+ stakesLevel?: any;
132
+ stakes?: string;
133
+ noOwnerRequest?: boolean;
134
+ ownerRequestQuote?: string;
135
+ };
136
+ ref: string;
137
+ subject: string;
138
+ title: string;
139
+ hash: string;
140
+ cursor: string;
141
+ sections: any[];
142
+ interactions: any[];
143
+ provenance: {
144
+ comprehensionEvidence?: {
145
+ signature?: string;
146
+ subject: any;
147
+ dossierHash: any;
148
+ };
149
+ source: any;
150
+ readAt: any;
151
+ };
152
+ amendmentTrace: any[];
153
+ };
154
+ issues?: never;
155
+ } | {
156
+ readonly ok: true;
157
+ readonly value: import("../model.js").DecisionDossierDocumentV2;
158
+ };
159
+ export function assertDecisionDossierForPresentation(value: any): import("../model.js").DecisionDossierDocumentV2 | {
160
+ readability?: {
161
+ glossary?: any[];
162
+ readingBudgetMinutes?: number;
163
+ stakesLevel?: any;
164
+ stakes?: string;
165
+ noOwnerRequest?: boolean;
166
+ ownerRequestQuote?: string;
167
+ };
168
+ ref: string;
169
+ subject: string;
170
+ title: string;
171
+ hash: string;
172
+ cursor: string;
173
+ sections: any[];
174
+ interactions: any[];
175
+ provenance: {
176
+ comprehensionEvidence?: {
177
+ signature?: string;
178
+ subject: any;
179
+ dossierHash: any;
180
+ };
181
+ source: any;
182
+ readAt: any;
183
+ };
184
+ amendmentTrace: any[];
185
+ } | undefined;
186
+ export { READABILITY_LIMITS, READABILITY_BUDGETS, validateDecisionDossierReadability } from "./readability.js";
187
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/focus-vendor/validation/index.js"],"names":[],"mappings":"AAsBA,uEAAuE;AACvE,gCAAiC,mDAAmD,CAAC;AACrF,yEAAyE;AACzE,qCAAsC,OAAO,CAAC;AAC9C,6EAA6E;AAC7E;IAEI,yBAMC;IAPD,YAAO;CAQV;AAoXM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2FAON;AAEM;;;;IAiDN;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQN;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;cAKN;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMN;AAEM;;;;;;;;;;;;;;;;;;;;;;;;;;cAKN"}