@agentic-sdlc-kit/contracts 0.8.0 → 1.0.1

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 (198) hide show
  1. package/dist/agent/events.d.ts +18 -18
  2. package/dist/agent/execution.d.ts +22 -22
  3. package/dist/agent-tools/index.d.ts +85 -0
  4. package/dist/agent-tools/index.d.ts.map +1 -0
  5. package/dist/agent-tools/index.js +60 -0
  6. package/dist/agent-tools/index.js.map +1 -0
  7. package/dist/application/application-context.d.ts +194 -60
  8. package/dist/application/application-context.d.ts.map +1 -1
  9. package/dist/application/application-persistence.d.ts +276 -114
  10. package/dist/application/application-persistence.d.ts.map +1 -1
  11. package/dist/application/application-state.d.ts +18 -18
  12. package/dist/architecture/api-contract.d.ts +18 -18
  13. package/dist/architecture/architecture-options.d.ts +6 -6
  14. package/dist/architecture/component-map.d.ts +6 -6
  15. package/dist/architecture/data-model.d.ts +6 -6
  16. package/dist/architecture/operational-design.d.ts +6 -6
  17. package/dist/benchmark/bench.d.ts +330 -0
  18. package/dist/benchmark/bench.d.ts.map +1 -0
  19. package/dist/benchmark/bench.js +69 -0
  20. package/dist/benchmark/bench.js.map +1 -0
  21. package/dist/benchmark/index.d.ts +2 -0
  22. package/dist/benchmark/index.d.ts.map +1 -0
  23. package/dist/benchmark/index.js +2 -0
  24. package/dist/benchmark/index.js.map +1 -0
  25. package/dist/constitution/cli-output.d.ts +706 -0
  26. package/dist/constitution/cli-output.d.ts.map +1 -0
  27. package/dist/constitution/cli-output.js +37 -0
  28. package/dist/constitution/cli-output.js.map +1 -0
  29. package/dist/constitution/index.d.ts +4 -0
  30. package/dist/constitution/index.d.ts.map +1 -0
  31. package/dist/constitution/index.js +4 -0
  32. package/dist/constitution/index.js.map +1 -0
  33. package/dist/constitution/result.d.ts +112 -0
  34. package/dist/constitution/result.d.ts.map +1 -0
  35. package/dist/constitution/result.js +67 -0
  36. package/dist/constitution/result.js.map +1 -0
  37. package/dist/constitution/rule.d.ts +488 -0
  38. package/dist/constitution/rule.d.ts.map +1 -0
  39. package/dist/constitution/rule.js +164 -0
  40. package/dist/constitution/rule.js.map +1 -0
  41. package/dist/context/index.d.ts +2 -0
  42. package/dist/context/index.d.ts.map +1 -0
  43. package/dist/context/index.js +2 -0
  44. package/dist/context/index.js.map +1 -0
  45. package/dist/context/project-context.d.ts +275 -0
  46. package/dist/context/project-context.d.ts.map +1 -0
  47. package/dist/context/project-context.js +56 -0
  48. package/dist/context/project-context.js.map +1 -0
  49. package/dist/evaluation/benchmark.d.ts +12 -12
  50. package/dist/evaluation/metrics.d.ts +4 -4
  51. package/dist/evolution/improvement-hypothesis.d.ts +10 -10
  52. package/dist/execution/execution-profile.d.ts +130 -0
  53. package/dist/execution/execution-profile.d.ts.map +1 -0
  54. package/dist/execution/execution-profile.js +44 -0
  55. package/dist/execution/execution-profile.js.map +1 -0
  56. package/dist/execution/index.d.ts +2 -0
  57. package/dist/execution/index.d.ts.map +1 -0
  58. package/dist/execution/index.js +2 -0
  59. package/dist/execution/index.js.map +1 -0
  60. package/dist/index.d.ts +6 -0
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +11 -0
  63. package/dist/index.js.map +1 -1
  64. package/dist/installer/install-plan.d.ts +16 -16
  65. package/dist/installer/ownership-manifest.d.ts +10 -2
  66. package/dist/installer/ownership-manifest.d.ts.map +1 -1
  67. package/dist/installer/ownership-manifest.js +4 -0
  68. package/dist/installer/ownership-manifest.js.map +1 -1
  69. package/dist/installer/package-manifest.d.ts +6 -6
  70. package/dist/learning/engineering-lesson.d.ts +14 -14
  71. package/dist/learning/engineering-memory.d.ts +20 -2
  72. package/dist/learning/engineering-memory.d.ts.map +1 -1
  73. package/dist/learning/engineering-memory.js +2 -0
  74. package/dist/learning/engineering-memory.js.map +1 -1
  75. package/dist/learning/experience-episode.d.ts +14 -14
  76. package/dist/learning/experience.d.ts +8 -8
  77. package/dist/learning/index.d.ts +1 -0
  78. package/dist/learning/index.d.ts.map +1 -1
  79. package/dist/learning/index.js +1 -0
  80. package/dist/learning/index.js.map +1 -1
  81. package/dist/learning/learning-event.d.ts +78 -0
  82. package/dist/learning/learning-event.d.ts.map +1 -0
  83. package/dist/learning/learning-event.js +37 -0
  84. package/dist/learning/learning-event.js.map +1 -0
  85. package/dist/learning/memory.d.ts +2 -2
  86. package/dist/maintenance/bug-fix-workflow.d.ts +4 -4
  87. package/dist/maintenance/bug-report.d.ts +6 -6
  88. package/dist/maintenance/refactor-contract.d.ts +8 -8
  89. package/dist/maintenance/refactor-workflow.d.ts +4 -4
  90. package/dist/observer/event-schema.d.ts +6 -6
  91. package/dist/observer/journal.d.ts +10 -10
  92. package/dist/observer/journal.d.ts.map +1 -1
  93. package/dist/observer/journal.js +7 -0
  94. package/dist/observer/journal.js.map +1 -1
  95. package/dist/observer/run-summary.d.ts +12 -12
  96. package/dist/onboard/index.d.ts +2 -0
  97. package/dist/onboard/index.d.ts.map +1 -0
  98. package/dist/onboard/index.js +2 -0
  99. package/dist/onboard/index.js.map +1 -0
  100. package/dist/onboard/onboard-report.d.ts +349 -0
  101. package/dist/onboard/onboard-report.d.ts.map +1 -0
  102. package/dist/onboard/onboard-report.js +96 -0
  103. package/dist/onboard/onboard-report.js.map +1 -0
  104. package/dist/patterns/pattern.d.ts +2 -2
  105. package/dist/planning/task.d.ts +36 -36
  106. package/dist/policy/policy.d.ts +8 -8
  107. package/dist/product/product-brief.d.ts +6 -6
  108. package/dist/product/requirements.d.ts +48 -48
  109. package/dist/project/project-profile.d.ts +113 -2
  110. package/dist/project/project-profile.d.ts.map +1 -1
  111. package/dist/project/project-profile.js +17 -2
  112. package/dist/project/project-profile.js.map +1 -1
  113. package/dist/routing/index.d.ts +1 -0
  114. package/dist/routing/index.d.ts.map +1 -1
  115. package/dist/routing/index.js +1 -0
  116. package/dist/routing/index.js.map +1 -1
  117. package/dist/routing/measured-routing.d.ts +41 -0
  118. package/dist/routing/measured-routing.d.ts.map +1 -0
  119. package/dist/routing/measured-routing.js +24 -0
  120. package/dist/routing/measured-routing.js.map +1 -0
  121. package/dist/routing/routing-policy.d.ts +20 -20
  122. package/dist/routing/routing-request.d.ts +2 -2
  123. package/dist/runtime-guard/action-classification.d.ts +2 -2
  124. package/dist/runtime-guard/audit-event.d.ts +8 -8
  125. package/dist/runtime-guard/policy-schema.d.ts +4 -4
  126. package/dist/scaffolding/scaffold-contract.d.ts +59 -59
  127. package/dist/scaffolding/template-manifest.d.ts +15 -15
  128. package/dist/secret-guard/detection-rule.d.ts +5 -5
  129. package/dist/secret-guard/detection-rule.d.ts.map +1 -1
  130. package/dist/secret-guard/detection-rule.js +44 -0
  131. package/dist/secret-guard/detection-rule.js.map +1 -1
  132. package/dist/secret-guard/finding.d.ts +12 -12
  133. package/dist/secret-guard/finding.d.ts.map +1 -1
  134. package/dist/secret-guard/finding.js +2 -0
  135. package/dist/secret-guard/finding.js.map +1 -1
  136. package/dist/secret-guard/scanner-failure.d.ts +4 -4
  137. package/dist/specification/specification.d.ts +8 -8
  138. package/dist/stack-pack/manifest.d.ts +33 -4
  139. package/dist/stack-pack/manifest.d.ts.map +1 -1
  140. package/dist/stack-pack/manifest.js +22 -2
  141. package/dist/stack-pack/manifest.js.map +1 -1
  142. package/dist/verification/index.d.ts +1 -0
  143. package/dist/verification/index.d.ts.map +1 -1
  144. package/dist/verification/index.js +1 -0
  145. package/dist/verification/index.js.map +1 -1
  146. package/dist/verification/report.d.ts +118 -12
  147. package/dist/verification/report.d.ts.map +1 -1
  148. package/dist/verification/report.js +4 -0
  149. package/dist/verification/report.js.map +1 -1
  150. package/dist/verification/strength.d.ts +270 -0
  151. package/dist/verification/strength.d.ts.map +1 -0
  152. package/dist/verification/strength.js +168 -0
  153. package/dist/verification/strength.js.map +1 -0
  154. package/dist/workflow/next-action.d.ts +67 -6
  155. package/dist/workflow/next-action.d.ts.map +1 -1
  156. package/dist/workflow/next-action.js +23 -0
  157. package/dist/workflow/next-action.js.map +1 -1
  158. package/dist/workflow/workflow.d.ts +9 -8
  159. package/dist/workflow/workflow.d.ts.map +1 -1
  160. package/package.json +6 -1
  161. package/src/agent-tools/index.ts +81 -0
  162. package/src/benchmark/bench.ts +83 -0
  163. package/src/benchmark/index.ts +1 -0
  164. package/src/constitution/cli-output.ts +44 -0
  165. package/src/constitution/index.ts +3 -0
  166. package/src/constitution/result.test.ts +69 -0
  167. package/src/constitution/result.ts +74 -0
  168. package/src/constitution/rule-origin.test.ts +36 -0
  169. package/src/constitution/rule-path.test.ts +15 -0
  170. package/src/constitution/rule.test.ts +209 -0
  171. package/src/constitution/rule.ts +192 -0
  172. package/src/context/index.ts +1 -0
  173. package/src/context/project-context.ts +63 -0
  174. package/src/execution/execution-profile.ts +50 -0
  175. package/src/execution/index.ts +1 -0
  176. package/src/index.ts +16 -0
  177. package/src/installer/ownership-manifest.ts +4 -0
  178. package/src/learning/engineering-memory.ts +2 -0
  179. package/src/learning/index.ts +1 -0
  180. package/src/learning/learning-event.ts +42 -0
  181. package/src/observer/journal.ts +7 -0
  182. package/src/onboard/index.ts +1 -0
  183. package/src/onboard/onboard-report.test.ts +92 -0
  184. package/src/onboard/onboard-report.ts +115 -0
  185. package/src/project/project-profile.ts +19 -2
  186. package/src/routing/index.ts +1 -0
  187. package/src/routing/measured-routing.ts +27 -0
  188. package/src/secret-guard/detection-rule.ts +53 -0
  189. package/src/secret-guard/finding.ts +2 -0
  190. package/src/stack-pack/manifest.test.ts +45 -0
  191. package/src/stack-pack/manifest.ts +24 -2
  192. package/src/verification/index.ts +1 -0
  193. package/src/verification/report.ts +4 -0
  194. package/src/verification/strength.test.ts +160 -0
  195. package/src/verification/strength.ts +189 -0
  196. package/src/workflow/next-action.test.ts +25 -0
  197. package/src/workflow/next-action.ts +25 -0
  198. package/src/workflow/workflow.ts +1 -0
@@ -6,4 +6,5 @@ export * from './promotion.js';
6
6
  export * from './experience-episode.js';
7
7
  export * from './engineering-memory.js';
8
8
  export * from './engineering-lesson.js';
9
+ export * from './learning-event.js';
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/learning/index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/learning/index.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,78 @@
1
+ import { z } from 'zod';
2
+ export declare const LEARNING_EVENT_SCHEMA_VERSION: 1;
3
+ export declare const LearningTaskTypeSchema: z.ZodEnum<["feature", "fix", "refactor", "review", "verify"]>;
4
+ export declare const LearningOutcomeSchema: z.ZodEnum<["passed", "failed", "blocked", "cancelled"]>;
5
+ export declare const LearningEventSchema: z.ZodObject<{
6
+ schemaVersion: z.ZodLiteral<1>;
7
+ id: z.ZodString;
8
+ occurredAt: z.ZodString;
9
+ runId: z.ZodString;
10
+ taskType: z.ZodEnum<["feature", "fix", "refactor", "review", "verify"]>;
11
+ outcome: z.ZodEnum<["passed", "failed", "blocked", "cancelled"]>;
12
+ stacks: z.ZodArray<z.ZodString, "many">;
13
+ affectedFiles: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
14
+ ruleViolations: z.ZodArray<z.ZodObject<{
15
+ ruleId: z.ZodString;
16
+ path: z.ZodEffects<z.ZodString, string, string>;
17
+ }, "strict", z.ZodTypeAny, {
18
+ path: string;
19
+ ruleId: string;
20
+ }, {
21
+ path: string;
22
+ ruleId: string;
23
+ }>, "many">;
24
+ verification: z.ZodObject<{
25
+ passed: z.ZodNumber;
26
+ failed: z.ZodNumber;
27
+ skipped: z.ZodNumber;
28
+ }, "strict", z.ZodTypeAny, {
29
+ passed: number;
30
+ failed: number;
31
+ skipped: number;
32
+ }, {
33
+ passed: number;
34
+ failed: number;
35
+ skipped: number;
36
+ }>;
37
+ durationMs: z.ZodNumber;
38
+ }, "strict", z.ZodTypeAny, {
39
+ schemaVersion: 1;
40
+ durationMs: number;
41
+ verification: {
42
+ passed: number;
43
+ failed: number;
44
+ skipped: number;
45
+ };
46
+ stacks: string[];
47
+ id: string;
48
+ outcome: "passed" | "failed" | "blocked" | "cancelled";
49
+ runId: string;
50
+ occurredAt: string;
51
+ taskType: "review" | "feature" | "fix" | "refactor" | "verify";
52
+ affectedFiles: string[];
53
+ ruleViolations: {
54
+ path: string;
55
+ ruleId: string;
56
+ }[];
57
+ }, {
58
+ schemaVersion: 1;
59
+ durationMs: number;
60
+ verification: {
61
+ passed: number;
62
+ failed: number;
63
+ skipped: number;
64
+ };
65
+ stacks: string[];
66
+ id: string;
67
+ outcome: "passed" | "failed" | "blocked" | "cancelled";
68
+ runId: string;
69
+ occurredAt: string;
70
+ taskType: "review" | "feature" | "fix" | "refactor" | "verify";
71
+ affectedFiles: string[];
72
+ ruleViolations: {
73
+ path: string;
74
+ ruleId: string;
75
+ }[];
76
+ }>;
77
+ export type LearningEvent = z.infer<typeof LearningEventSchema>;
78
+ //# sourceMappingURL=learning-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"learning-event.d.ts","sourceRoot":"","sources":["../../src/learning/learning-event.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,6BAA6B,EAAG,CAAU,CAAC;AAOxD,eAAO,MAAM,sBAAsB,+DAA6D,CAAC;AACjG,eAAO,MAAM,qBAAqB,yDAAuD,CAAC;AAE1F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBrB,CAAC;AACZ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -0,0 +1,37 @@
1
+ // packages/contracts/src/learning/learning-event.ts
2
+ //
3
+ // One privacy-safe outcome of a workflow run (platform roadmap Phase 6). The schema is strict and
4
+ // carries no free text: only enumerations, identifiers, repository-relative paths and counts. A
5
+ // prompt, a model reply, a source excerpt or a log line cannot be represented, so it cannot be
6
+ // stored by accident.
7
+ import { z } from 'zod';
8
+ import { isRepoRelativePath } from '../constitution/rule.js';
9
+ export const LEARNING_EVENT_SCHEMA_VERSION = 1;
10
+ const KEBAB = /^[a-z][a-z0-9-]*$/;
11
+ const RULE_ID = /^[A-Z][A-Z0-9]*(-[A-Z0-9]+)*-\d{3}$/;
12
+ const RUN_ID = /^[A-Za-z0-9][A-Za-z0-9_.-]{0,95}$/;
13
+ const repoPath = z.string().min(1).max(512).refine(isRepoRelativePath, 'path must be repository-relative');
14
+ export const LearningTaskTypeSchema = z.enum(['feature', 'fix', 'refactor', 'review', 'verify']);
15
+ export const LearningOutcomeSchema = z.enum(['passed', 'failed', 'blocked', 'cancelled']);
16
+ export const LearningEventSchema = z
17
+ .object({
18
+ schemaVersion: z.literal(LEARNING_EVENT_SCHEMA_VERSION),
19
+ id: z.string().regex(RUN_ID),
20
+ occurredAt: z.string().datetime(),
21
+ runId: z.string().regex(RUN_ID),
22
+ taskType: LearningTaskTypeSchema,
23
+ outcome: LearningOutcomeSchema,
24
+ stacks: z.array(z.string().regex(KEBAB)).max(10),
25
+ affectedFiles: z.array(repoPath).max(200),
26
+ ruleViolations: z.array(z.object({ ruleId: z.string().regex(RULE_ID), path: repoPath }).strict()).max(200),
27
+ verification: z
28
+ .object({
29
+ passed: z.number().int().nonnegative(),
30
+ failed: z.number().int().nonnegative(),
31
+ skipped: z.number().int().nonnegative(),
32
+ })
33
+ .strict(),
34
+ durationMs: z.number().int().nonnegative(),
35
+ })
36
+ .strict();
37
+ //# sourceMappingURL=learning-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"learning-event.js","sourceRoot":"","sources":["../../src/learning/learning-event.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,EAAE;AACF,kGAAkG;AAClG,gGAAgG;AAChG,+FAA+F;AAC/F,sBAAsB;AAEtB,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAU,CAAC;AAExD,MAAM,KAAK,GAAG,mBAAmB,CAAC;AAClC,MAAM,OAAO,GAAG,qCAAqC,CAAC;AACtD,MAAM,MAAM,GAAG,mCAAmC,CAAC;AACnD,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,kBAAkB,EAAE,kCAAkC,CAAC,CAAC;AAE3G,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjG,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;AAE1F,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IACvD,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;IAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;IAC/B,QAAQ,EAAE,sBAAsB;IAChC,OAAO,EAAE,qBAAqB;IAC9B,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;IAChD,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACzC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC1G,YAAY,EAAE,CAAC;SACZ,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACtC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;KACxC,CAAC;SACD,MAAM,EAAE;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC3C,CAAC;KACD,MAAM,EAAE,CAAC"}
@@ -15,8 +15,8 @@ export declare const MemoryEntrySchema: z.ZodObject<{
15
15
  updatedAt: z.ZodString;
16
16
  }, "strip", z.ZodTypeAny, {
17
17
  type: "episodic" | "semantic" | "procedural";
18
- id: string;
19
18
  summary: string;
19
+ id: string;
20
20
  confidence: number;
21
21
  domain: string;
22
22
  content: string;
@@ -27,8 +27,8 @@ export declare const MemoryEntrySchema: z.ZodObject<{
27
27
  updatedAt: string;
28
28
  }, {
29
29
  type: "episodic" | "semantic" | "procedural";
30
- id: string;
31
30
  summary: string;
31
+ id: string;
32
32
  confidence: number;
33
33
  domain: string;
34
34
  content: string;
@@ -20,10 +20,10 @@ export declare const BugFixStateSchema: z.ZodObject<{
20
20
  status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
21
21
  schemaVersion: 1;
22
22
  runId: string;
23
- stage: "discovery" | "review" | "report" | "reproduction" | "root-cause" | "regression-test" | "minimal-fix" | "focused-verify" | "regression-verify" | "completion";
23
+ affectedFiles: string[];
24
+ stage: "review" | "discovery" | "report" | "reproduction" | "root-cause" | "regression-test" | "minimal-fix" | "focused-verify" | "regression-verify" | "completion";
24
25
  bugId: string;
25
26
  verificationReportIds: string[];
26
- affectedFiles: string[];
27
27
  startedAt?: string | undefined;
28
28
  rootCauseSummary?: string | undefined;
29
29
  regressionTestPath?: string | undefined;
@@ -31,13 +31,13 @@ export declare const BugFixStateSchema: z.ZodObject<{
31
31
  status: "failed" | "blocked" | "pending" | "in_progress" | "completed";
32
32
  schemaVersion: 1;
33
33
  runId: string;
34
- stage: "discovery" | "review" | "report" | "reproduction" | "root-cause" | "regression-test" | "minimal-fix" | "focused-verify" | "regression-verify" | "completion";
34
+ stage: "review" | "discovery" | "report" | "reproduction" | "root-cause" | "regression-test" | "minimal-fix" | "focused-verify" | "regression-verify" | "completion";
35
35
  bugId: string;
36
36
  startedAt?: string | undefined;
37
+ affectedFiles?: string[] | undefined;
37
38
  rootCauseSummary?: string | undefined;
38
39
  regressionTestPath?: string | undefined;
39
40
  verificationReportIds?: string[] | undefined;
40
- affectedFiles?: string[] | undefined;
41
41
  }>;
42
42
  export type BugFixState = z.infer<typeof BugFixStateSchema>;
43
43
  export declare const BUG_FIX_STAGE_ORDER: ReadonlyArray<BugFixStage>;
@@ -25,25 +25,25 @@ export declare const BugReportSchema: z.ZodObject<{
25
25
  reproductionStatus: z.ZodDefault<z.ZodEnum<["not-attempted", "reproduced", "not-reproducible", "intermittent"]>>;
26
26
  }, "strict", z.ZodTypeAny, {
27
27
  id: string;
28
+ title: string;
29
+ environment: {
30
+ value: string;
31
+ key: string;
32
+ }[];
28
33
  severity: "low" | "medium" | "high" | "critical";
29
34
  description: string;
30
- title: string;
31
35
  reportedAt: string;
32
36
  reportedBy: string;
33
37
  category: "functional" | "other" | "regression" | "data" | "security" | "performance" | "ui";
34
38
  reportedSteps: string[];
35
39
  expectedBehavior: string;
36
40
  actualBehavior: string;
37
- environment: {
38
- value: string;
39
- key: string;
40
- }[];
41
41
  reproductionStatus: "not-attempted" | "reproduced" | "not-reproducible" | "intermittent";
42
42
  }, {
43
43
  id: string;
44
+ title: string;
44
45
  severity: "low" | "medium" | "high" | "critical";
45
46
  description: string;
46
- title: string;
47
47
  reportedAt: string;
48
48
  reportedBy: string;
49
49
  category: "functional" | "other" | "regression" | "data" | "security" | "performance" | "ui";
@@ -6,14 +6,14 @@ export declare const PublicContractSchema: z.ZodObject<{
6
6
  description: z.ZodString;
7
7
  characterizationTestPath: z.ZodOptional<z.ZodString>;
8
8
  }, "strip", z.ZodTypeAny, {
9
+ kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
9
10
  id: string;
10
11
  description: string;
11
- kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
12
12
  characterizationTestPath?: string | undefined;
13
13
  }, {
14
+ kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
14
15
  id: string;
15
16
  description: string;
16
- kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
17
17
  characterizationTestPath?: string | undefined;
18
18
  }>;
19
19
  export declare const RefactorContractSchema: z.ZodEffects<z.ZodObject<{
@@ -29,14 +29,14 @@ export declare const RefactorContractSchema: z.ZodEffects<z.ZodObject<{
29
29
  description: z.ZodString;
30
30
  characterizationTestPath: z.ZodOptional<z.ZodString>;
31
31
  }, "strip", z.ZodTypeAny, {
32
+ kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
32
33
  id: string;
33
34
  description: string;
34
- kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
35
35
  characterizationTestPath?: string | undefined;
36
36
  }, {
37
+ kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
37
38
  id: string;
38
39
  description: string;
39
- kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
40
40
  characterizationTestPath?: string | undefined;
41
41
  }>, "many">;
42
42
  candidatePatterns: z.ZodDefault<z.ZodArray<z.ZodObject<{
@@ -67,9 +67,9 @@ export declare const RefactorContractSchema: z.ZodEffects<z.ZodObject<{
67
67
  goal: "other" | "reduce-coupling" | "improve-testability" | "improve-readability" | "extract-module" | "extract-component" | "simplify-control-flow" | "introduce-pattern" | "remove-dead-code" | "modernize-syntax";
68
68
  targetStructure: string;
69
69
  publicContracts: {
70
+ kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
70
71
  id: string;
71
72
  description: string;
72
- kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
73
73
  characterizationTestPath?: string | undefined;
74
74
  }[];
75
75
  candidatePatterns: {
@@ -90,9 +90,9 @@ export declare const RefactorContractSchema: z.ZodEffects<z.ZodObject<{
90
90
  goal: "other" | "reduce-coupling" | "improve-testability" | "improve-readability" | "extract-module" | "extract-component" | "simplify-control-flow" | "introduce-pattern" | "remove-dead-code" | "modernize-syntax";
91
91
  targetStructure: string;
92
92
  publicContracts: {
93
+ kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
93
94
  id: string;
94
95
  description: string;
95
- kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
96
96
  characterizationTestPath?: string | undefined;
97
97
  }[];
98
98
  inScopePaths: string[];
@@ -113,9 +113,9 @@ export declare const RefactorContractSchema: z.ZodEffects<z.ZodObject<{
113
113
  goal: "other" | "reduce-coupling" | "improve-testability" | "improve-readability" | "extract-module" | "extract-component" | "simplify-control-flow" | "introduce-pattern" | "remove-dead-code" | "modernize-syntax";
114
114
  targetStructure: string;
115
115
  publicContracts: {
116
+ kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
116
117
  id: string;
117
118
  description: string;
118
- kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
119
119
  characterizationTestPath?: string | undefined;
120
120
  }[];
121
121
  candidatePatterns: {
@@ -136,9 +136,9 @@ export declare const RefactorContractSchema: z.ZodEffects<z.ZodObject<{
136
136
  goal: "other" | "reduce-coupling" | "improve-testability" | "improve-readability" | "extract-module" | "extract-component" | "simplify-control-flow" | "introduce-pattern" | "remove-dead-code" | "modernize-syntax";
137
137
  targetStructure: string;
138
138
  publicContracts: {
139
+ kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
139
140
  id: string;
140
141
  description: string;
141
- kind: "api-endpoint" | "function-signature" | "data-shape" | "cli" | "event" | "side-effect";
142
142
  characterizationTestPath?: string | undefined;
143
143
  }[];
144
144
  inScopePaths: string[];
@@ -20,13 +20,13 @@ export declare const RefactorStateSchema: z.ZodObject<{
20
20
  affectedFiles: z.ZodArray<z.ZodString, "many">;
21
21
  regressionPassed: z.ZodBoolean;
22
22
  }, "strip", z.ZodTypeAny, {
23
- id: string;
24
23
  summary: string;
24
+ id: string;
25
25
  affectedFiles: string[];
26
26
  regressionPassed: boolean;
27
27
  }, {
28
- id: string;
29
28
  summary: string;
29
+ id: string;
30
30
  affectedFiles: string[];
31
31
  regressionPassed: boolean;
32
32
  }>, "many">>;
@@ -39,8 +39,8 @@ export declare const RefactorStateSchema: z.ZodObject<{
39
39
  refactorId: string;
40
40
  characterizationTestPaths: string[];
41
41
  incrementsApplied: {
42
- id: string;
43
42
  summary: string;
43
+ id: string;
44
44
  affectedFiles: string[];
45
45
  regressionPassed: boolean;
46
46
  }[];
@@ -57,8 +57,8 @@ export declare const RefactorStateSchema: z.ZodObject<{
57
57
  dependencyMapPath?: string | undefined;
58
58
  characterizationTestPaths?: string[] | undefined;
59
59
  incrementsApplied?: {
60
- id: string;
61
60
  summary: string;
61
+ id: string;
62
62
  affectedFiles: string[];
63
63
  regressionPassed: boolean;
64
64
  }[] | undefined;
@@ -18,29 +18,29 @@ export declare const ObserverEventSchema: z.ZodObject<{
18
18
  }, "strip", z.ZodTypeAny, {
19
19
  at: string;
20
20
  schemaVersion: 1;
21
- id: string;
22
- runId: string;
23
21
  summary: string;
24
22
  kind: "verification" | "session-start" | "session-end" | "turn-start" | "turn-step" | "turn-complete" | "agent-spawn" | "agent-complete" | "tool-call" | "tool-result" | "escalation" | "failure" | "blocked-action";
23
+ id: string;
24
+ runId: string;
25
25
  partial: boolean;
26
26
  model?: string | undefined;
27
27
  effort?: string | undefined;
28
- sessionId?: string | undefined;
29
28
  tokensIn?: number | undefined;
30
29
  tokensOut?: number | undefined;
30
+ sessionId?: string | undefined;
31
31
  estimatedCostUnits?: number | undefined;
32
32
  }, {
33
33
  at: string;
34
34
  schemaVersion: 1;
35
- id: string;
36
- runId: string;
37
35
  summary: string;
38
36
  kind: "verification" | "session-start" | "session-end" | "turn-start" | "turn-step" | "turn-complete" | "agent-spawn" | "agent-complete" | "tool-call" | "tool-result" | "escalation" | "failure" | "blocked-action";
37
+ id: string;
38
+ runId: string;
39
39
  model?: string | undefined;
40
40
  effort?: string | undefined;
41
- sessionId?: string | undefined;
42
41
  tokensIn?: number | undefined;
43
42
  tokensOut?: number | undefined;
43
+ sessionId?: string | undefined;
44
44
  estimatedCostUnits?: number | undefined;
45
45
  partial?: boolean | undefined;
46
46
  }>;
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  export declare const JOURNAL_SCHEMA_VERSION: 1;
3
3
  /** Semantic events in the life of a feature run. */
4
- export declare const JournalEventKindSchema: z.ZodEnum<["workflow.started", "phase.recorded", "phase.rejected", "phase.failed", "workflow.finalized"]>;
4
+ export declare const JournalEventKindSchema: z.ZodEnum<["workflow.started", "phase.recorded", "phase.rejected", "phase.failed", "strength.recorded", "workflow.finalized", "next.offered"]>;
5
5
  export type JournalEventKind = z.infer<typeof JournalEventKindSchema>;
6
6
  /**
7
7
  * Who invoked the kit. The kit CANNOT infer agent vs. human at the CLI
@@ -15,10 +15,10 @@ export declare const JournalActorSchema: z.ZodObject<{
15
15
  /** Declared host id (e.g. 'claude-code', 'cursor', 'agy', 'github-actions'). */
16
16
  host: z.ZodOptional<z.ZodString>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- kind: "agent" | "human" | "kit";
18
+ kind: "human" | "agent" | "kit";
19
19
  host?: string | undefined;
20
20
  }, {
21
- kind: "agent" | "human" | "kit";
21
+ kind: "human" | "agent" | "kit";
22
22
  host?: string | undefined;
23
23
  }>;
24
24
  export type JournalActor = z.infer<typeof JournalActorSchema>;
@@ -32,16 +32,16 @@ export declare const JournalEventSchema: z.ZodObject<{
32
32
  featureId: z.ZodString;
33
33
  /** Target task, when the event is task-scoped. */
34
34
  taskId: z.ZodOptional<z.ZodString>;
35
- kind: z.ZodEnum<["workflow.started", "phase.recorded", "phase.rejected", "phase.failed", "workflow.finalized"]>;
35
+ kind: z.ZodEnum<["workflow.started", "phase.recorded", "phase.rejected", "phase.failed", "strength.recorded", "workflow.finalized", "next.offered"]>;
36
36
  actor: z.ZodObject<{
37
37
  kind: z.ZodEnum<["agent", "human", "kit"]>;
38
38
  /** Declared host id (e.g. 'claude-code', 'cursor', 'agy', 'github-actions'). */
39
39
  host: z.ZodOptional<z.ZodString>;
40
40
  }, "strip", z.ZodTypeAny, {
41
- kind: "agent" | "human" | "kit";
41
+ kind: "human" | "agent" | "kit";
42
42
  host?: string | undefined;
43
43
  }, {
44
- kind: "agent" | "human" | "kit";
44
+ kind: "human" | "agent" | "kit";
45
45
  host?: string | undefined;
46
46
  }>;
47
47
  /** Redacted, bounded event detail (evidence excerpts, statuses). */
@@ -52,12 +52,12 @@ export declare const JournalEventSchema: z.ZodObject<{
52
52
  hash: z.ZodEffects<z.ZodString, string, string>;
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  schemaVersion: 1;
55
+ kind: "workflow.started" | "phase.recorded" | "phase.rejected" | "phase.failed" | "strength.recorded" | "workflow.finalized" | "next.offered";
55
56
  featureId: string;
56
- kind: "workflow.started" | "phase.recorded" | "phase.rejected" | "phase.failed" | "workflow.finalized";
57
57
  seq: number;
58
58
  ts: string;
59
59
  actor: {
60
- kind: "agent" | "human" | "kit";
60
+ kind: "human" | "agent" | "kit";
61
61
  host?: string | undefined;
62
62
  };
63
63
  payload: Record<string, unknown>;
@@ -66,12 +66,12 @@ export declare const JournalEventSchema: z.ZodObject<{
66
66
  taskId?: string | undefined;
67
67
  }, {
68
68
  schemaVersion: 1;
69
+ kind: "workflow.started" | "phase.recorded" | "phase.rejected" | "phase.failed" | "strength.recorded" | "workflow.finalized" | "next.offered";
69
70
  featureId: string;
70
- kind: "workflow.started" | "phase.recorded" | "phase.rejected" | "phase.failed" | "workflow.finalized";
71
71
  seq: number;
72
72
  ts: string;
73
73
  actor: {
74
- kind: "agent" | "human" | "kit";
74
+ kind: "human" | "agent" | "kit";
75
75
  host?: string | undefined;
76
76
  };
77
77
  payload: Record<string, unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"journal.d.ts","sourceRoot":"","sources":["../../src/observer/journal.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB,EAAG,CAAU,CAAC;AAEjD,oDAAoD;AACpD,eAAO,MAAM,sBAAsB,2GAWjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;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,CAAC"}
@@ -37,8 +37,15 @@ export const JournalEventKindSchema = z.enum([
37
37
  'phase.rejected',
38
38
  /** A phase attempt ran and violated its invariant (e.g. Green failed). */
39
39
  'phase.failed',
40
+ /**
41
+ * A test-strength (mutation) run completed for a task (ADR-0022).
42
+ * `payload.status` is 'passed' | 'failed' | 'incomplete'.
43
+ */
44
+ 'strength.recorded',
40
45
  /** Final verification completed. `payload.status` is 'passed' | 'failed'. */
41
46
  'workflow.finalized',
47
+ /** The kit offered the host an action (`kit next`). Recorded when the offer changes. Trace only: never a verdict. */
48
+ 'next.offered',
42
49
  ]);
43
50
  /**
44
51
  * Who invoked the kit. The kit CANNOT infer agent vs. human at the CLI
@@ -1 +1 @@
1
- {"version":3,"file":"journal.js","sourceRoot":"","sources":["../../src/observer/journal.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,kEAAkE;AAClE,oDAAoD;AACpD,kDAAkD;AAClD,EAAE;AACF,gEAAgE;AAChE,qEAAqE;AACrE,qEAAqE;AACrE,mEAAmE;AACnE,uDAAuD;AACvD,EAAE;AACF,iCAAiC;AACjC,qEAAqE;AACrE,qEAAqE;AACrE,uEAAuE;AACvE,wEAAwE;AACxE,sEAAsE;AACtE,oEAAoE;AACpE,sEAAsE;AACtE,wEAAwE;AACxE,sDAAsD;AACtD,kEAAkE;AAClE,4DAA4D;AAE5D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAU,CAAC;AAEjD,oDAAoD;AACpD,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC;IAC3C,sDAAsD;IACtD,kBAAkB;IAClB,qEAAqE;IACrE,gBAAgB;IAChB,8GAA8G;IAC9G,gBAAgB;IAChB,0EAA0E;IAC1E,cAAc;IACd,6EAA6E;IAC7E,oBAAoB;CACrB,CAAC,CAAC;AAG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CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;IAChD,mEAAmE;IACnE,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACnC,0BAA0B;IAC1B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACrB,oEAAoE;IACpE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC5B,kDAAkD;IAClD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,kBAAkB;IACzB,oEAAoE;IACpE,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;IAC9B,wDAAwD;IACxD,QAAQ,EAAE,UAAU;IACpB,6EAA6E;IAC7E,IAAI,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,EAAE,gDAAgD,CAAC;CAClG,CAAC,CAAC"}
@@ -158,29 +158,29 @@ export declare const RunReportSchema: z.ZodObject<{
158
158
  }, "strip", z.ZodTypeAny, {
159
159
  at: string;
160
160
  schemaVersion: 1;
161
- id: string;
162
- runId: string;
163
161
  summary: string;
164
162
  kind: "verification" | "session-start" | "session-end" | "turn-start" | "turn-step" | "turn-complete" | "agent-spawn" | "agent-complete" | "tool-call" | "tool-result" | "escalation" | "failure" | "blocked-action";
163
+ id: string;
164
+ runId: string;
165
165
  partial: boolean;
166
166
  model?: string | undefined;
167
167
  effort?: string | undefined;
168
- sessionId?: string | undefined;
169
168
  tokensIn?: number | undefined;
170
169
  tokensOut?: number | undefined;
170
+ sessionId?: string | undefined;
171
171
  estimatedCostUnits?: number | undefined;
172
172
  }, {
173
173
  at: string;
174
174
  schemaVersion: 1;
175
- id: string;
176
- runId: string;
177
175
  summary: string;
178
176
  kind: "verification" | "session-start" | "session-end" | "turn-start" | "turn-step" | "turn-complete" | "agent-spawn" | "agent-complete" | "tool-call" | "tool-result" | "escalation" | "failure" | "blocked-action";
177
+ id: string;
178
+ runId: string;
179
179
  model?: string | undefined;
180
180
  effort?: string | undefined;
181
- sessionId?: string | undefined;
182
181
  tokensIn?: number | undefined;
183
182
  tokensOut?: number | undefined;
183
+ sessionId?: string | undefined;
184
184
  estimatedCostUnits?: number | undefined;
185
185
  partial?: boolean | undefined;
186
186
  }>, "many">;
@@ -207,16 +207,16 @@ export declare const RunReportSchema: z.ZodObject<{
207
207
  events: {
208
208
  at: string;
209
209
  schemaVersion: 1;
210
- id: string;
211
- runId: string;
212
210
  summary: string;
213
211
  kind: "verification" | "session-start" | "session-end" | "turn-start" | "turn-step" | "turn-complete" | "agent-spawn" | "agent-complete" | "tool-call" | "tool-result" | "escalation" | "failure" | "blocked-action";
212
+ id: string;
213
+ runId: string;
214
214
  partial: boolean;
215
215
  model?: string | undefined;
216
216
  effort?: string | undefined;
217
- sessionId?: string | undefined;
218
217
  tokensIn?: number | undefined;
219
218
  tokensOut?: number | undefined;
219
+ sessionId?: string | undefined;
220
220
  estimatedCostUnits?: number | undefined;
221
221
  }[];
222
222
  }, {
@@ -242,15 +242,15 @@ export declare const RunReportSchema: z.ZodObject<{
242
242
  events: {
243
243
  at: string;
244
244
  schemaVersion: 1;
245
- id: string;
246
- runId: string;
247
245
  summary: string;
248
246
  kind: "verification" | "session-start" | "session-end" | "turn-start" | "turn-step" | "turn-complete" | "agent-spawn" | "agent-complete" | "tool-call" | "tool-result" | "escalation" | "failure" | "blocked-action";
247
+ id: string;
248
+ runId: string;
249
249
  model?: string | undefined;
250
250
  effort?: string | undefined;
251
- sessionId?: string | undefined;
252
251
  tokensIn?: number | undefined;
253
252
  tokensOut?: number | undefined;
253
+ sessionId?: string | undefined;
254
254
  estimatedCostUnits?: number | undefined;
255
255
  partial?: boolean | undefined;
256
256
  }[];
@@ -0,0 +1,2 @@
1
+ export * from './onboard-report.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/onboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './onboard-report.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/onboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}