@agentic-sdlc-kit/contracts 0.9.1 → 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.
- package/dist/agent/events.d.ts +18 -18
- package/dist/agent/execution.d.ts +22 -22
- package/dist/agent-tools/index.d.ts +85 -0
- package/dist/agent-tools/index.d.ts.map +1 -0
- package/dist/agent-tools/index.js +60 -0
- package/dist/agent-tools/index.js.map +1 -0
- package/dist/application/application-context.d.ts +194 -60
- package/dist/application/application-context.d.ts.map +1 -1
- package/dist/application/application-persistence.d.ts +276 -114
- package/dist/application/application-persistence.d.ts.map +1 -1
- package/dist/application/application-state.d.ts +18 -18
- package/dist/architecture/api-contract.d.ts +18 -18
- package/dist/architecture/architecture-options.d.ts +6 -6
- package/dist/architecture/component-map.d.ts +6 -6
- package/dist/architecture/data-model.d.ts +6 -6
- package/dist/architecture/operational-design.d.ts +6 -6
- package/dist/benchmark/bench.d.ts +330 -0
- package/dist/benchmark/bench.d.ts.map +1 -0
- package/dist/benchmark/bench.js +69 -0
- package/dist/benchmark/bench.js.map +1 -0
- package/dist/benchmark/index.d.ts +2 -0
- package/dist/benchmark/index.d.ts.map +1 -0
- package/dist/benchmark/index.js +2 -0
- package/dist/benchmark/index.js.map +1 -0
- package/dist/constitution/cli-output.d.ts +706 -0
- package/dist/constitution/cli-output.d.ts.map +1 -0
- package/dist/constitution/cli-output.js +37 -0
- package/dist/constitution/cli-output.js.map +1 -0
- package/dist/constitution/index.d.ts +4 -0
- package/dist/constitution/index.d.ts.map +1 -0
- package/dist/constitution/index.js +4 -0
- package/dist/constitution/index.js.map +1 -0
- package/dist/constitution/result.d.ts +112 -0
- package/dist/constitution/result.d.ts.map +1 -0
- package/dist/constitution/result.js +67 -0
- package/dist/constitution/result.js.map +1 -0
- package/dist/constitution/rule.d.ts +488 -0
- package/dist/constitution/rule.d.ts.map +1 -0
- package/dist/constitution/rule.js +164 -0
- package/dist/constitution/rule.js.map +1 -0
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +2 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/project-context.d.ts +275 -0
- package/dist/context/project-context.d.ts.map +1 -0
- package/dist/context/project-context.js +56 -0
- package/dist/context/project-context.js.map +1 -0
- package/dist/evaluation/benchmark.d.ts +12 -12
- package/dist/evaluation/metrics.d.ts +4 -4
- package/dist/evolution/improvement-hypothesis.d.ts +10 -10
- package/dist/execution/execution-profile.d.ts +130 -0
- package/dist/execution/execution-profile.d.ts.map +1 -0
- package/dist/execution/execution-profile.js +44 -0
- package/dist/execution/execution-profile.js.map +1 -0
- package/dist/execution/index.d.ts +2 -0
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +2 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/installer/install-plan.d.ts +16 -16
- package/dist/installer/ownership-manifest.d.ts +2 -2
- package/dist/installer/package-manifest.d.ts +6 -6
- package/dist/learning/engineering-lesson.d.ts +14 -14
- package/dist/learning/engineering-memory.d.ts +20 -2
- package/dist/learning/engineering-memory.d.ts.map +1 -1
- package/dist/learning/engineering-memory.js +2 -0
- package/dist/learning/engineering-memory.js.map +1 -1
- package/dist/learning/experience-episode.d.ts +14 -14
- package/dist/learning/experience.d.ts +8 -8
- package/dist/learning/index.d.ts +1 -0
- package/dist/learning/index.d.ts.map +1 -1
- package/dist/learning/index.js +1 -0
- package/dist/learning/index.js.map +1 -1
- package/dist/learning/learning-event.d.ts +78 -0
- package/dist/learning/learning-event.d.ts.map +1 -0
- package/dist/learning/learning-event.js +37 -0
- package/dist/learning/learning-event.js.map +1 -0
- package/dist/learning/memory.d.ts +2 -2
- package/dist/maintenance/bug-fix-workflow.d.ts +4 -4
- package/dist/maintenance/bug-report.d.ts +6 -6
- package/dist/maintenance/refactor-contract.d.ts +8 -8
- package/dist/maintenance/refactor-workflow.d.ts +4 -4
- package/dist/observer/event-schema.d.ts +6 -6
- package/dist/observer/journal.d.ts +10 -10
- package/dist/observer/journal.d.ts.map +1 -1
- package/dist/observer/journal.js +7 -0
- package/dist/observer/journal.js.map +1 -1
- package/dist/observer/run-summary.d.ts +12 -12
- package/dist/onboard/index.d.ts +2 -0
- package/dist/onboard/index.d.ts.map +1 -0
- package/dist/onboard/index.js +2 -0
- package/dist/onboard/index.js.map +1 -0
- package/dist/onboard/onboard-report.d.ts +349 -0
- package/dist/onboard/onboard-report.d.ts.map +1 -0
- package/dist/onboard/onboard-report.js +96 -0
- package/dist/onboard/onboard-report.js.map +1 -0
- package/dist/patterns/pattern.d.ts +2 -2
- package/dist/planning/task.d.ts +36 -36
- package/dist/policy/policy.d.ts +8 -8
- package/dist/product/product-brief.d.ts +6 -6
- package/dist/product/requirements.d.ts +48 -48
- package/dist/project/project-profile.d.ts +113 -2
- package/dist/project/project-profile.d.ts.map +1 -1
- package/dist/project/project-profile.js +17 -2
- package/dist/project/project-profile.js.map +1 -1
- package/dist/routing/index.d.ts +1 -0
- package/dist/routing/index.d.ts.map +1 -1
- package/dist/routing/index.js +1 -0
- package/dist/routing/index.js.map +1 -1
- package/dist/routing/measured-routing.d.ts +41 -0
- package/dist/routing/measured-routing.d.ts.map +1 -0
- package/dist/routing/measured-routing.js +24 -0
- package/dist/routing/measured-routing.js.map +1 -0
- package/dist/routing/routing-policy.d.ts +20 -20
- package/dist/routing/routing-request.d.ts +2 -2
- package/dist/runtime-guard/action-classification.d.ts +2 -2
- package/dist/runtime-guard/audit-event.d.ts +8 -8
- package/dist/runtime-guard/policy-schema.d.ts +4 -4
- package/dist/scaffolding/scaffold-contract.d.ts +59 -59
- package/dist/scaffolding/template-manifest.d.ts +15 -15
- package/dist/secret-guard/detection-rule.d.ts +4 -4
- package/dist/secret-guard/finding.d.ts +10 -10
- package/dist/secret-guard/scanner-failure.d.ts +4 -4
- package/dist/specification/specification.d.ts +8 -8
- package/dist/stack-pack/manifest.d.ts +33 -4
- package/dist/stack-pack/manifest.d.ts.map +1 -1
- package/dist/stack-pack/manifest.js +22 -2
- package/dist/stack-pack/manifest.js.map +1 -1
- package/dist/verification/index.d.ts +1 -0
- package/dist/verification/index.d.ts.map +1 -1
- package/dist/verification/index.js +1 -0
- package/dist/verification/index.js.map +1 -1
- package/dist/verification/report.d.ts +118 -12
- package/dist/verification/report.d.ts.map +1 -1
- package/dist/verification/report.js +4 -0
- package/dist/verification/report.js.map +1 -1
- package/dist/verification/strength.d.ts +270 -0
- package/dist/verification/strength.d.ts.map +1 -0
- package/dist/verification/strength.js +168 -0
- package/dist/verification/strength.js.map +1 -0
- package/dist/workflow/next-action.d.ts +67 -6
- package/dist/workflow/next-action.d.ts.map +1 -1
- package/dist/workflow/next-action.js +23 -0
- package/dist/workflow/next-action.js.map +1 -1
- package/dist/workflow/workflow.d.ts +9 -8
- package/dist/workflow/workflow.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/agent-tools/index.ts +81 -0
- package/src/benchmark/bench.ts +83 -0
- package/src/benchmark/index.ts +1 -0
- package/src/constitution/cli-output.ts +44 -0
- package/src/constitution/index.ts +3 -0
- package/src/constitution/result.test.ts +69 -0
- package/src/constitution/result.ts +74 -0
- package/src/constitution/rule-origin.test.ts +36 -0
- package/src/constitution/rule-path.test.ts +15 -0
- package/src/constitution/rule.test.ts +209 -0
- package/src/constitution/rule.ts +192 -0
- package/src/context/index.ts +1 -0
- package/src/context/project-context.ts +63 -0
- package/src/execution/execution-profile.ts +50 -0
- package/src/execution/index.ts +1 -0
- package/src/index.ts +16 -0
- package/src/learning/engineering-memory.ts +2 -0
- package/src/learning/index.ts +1 -0
- package/src/learning/learning-event.ts +42 -0
- package/src/observer/journal.ts +7 -0
- package/src/onboard/index.ts +1 -0
- package/src/onboard/onboard-report.test.ts +92 -0
- package/src/onboard/onboard-report.ts +115 -0
- package/src/project/project-profile.ts +19 -2
- package/src/routing/index.ts +1 -0
- package/src/routing/measured-routing.ts +27 -0
- package/src/stack-pack/manifest.test.ts +45 -0
- package/src/stack-pack/manifest.ts +24 -2
- package/src/verification/index.ts +1 -0
- package/src/verification/report.ts +4 -0
- package/src/verification/strength.test.ts +160 -0
- package/src/verification/strength.ts +189 -0
- package/src/workflow/next-action.test.ts +25 -0
- package/src/workflow/next-action.ts +25 -0
- package/src/workflow/workflow.ts +1 -0
|
@@ -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
|
-
|
|
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: "
|
|
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: "
|
|
18
|
+
kind: "human" | "agent" | "kit";
|
|
19
19
|
host?: string | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
kind: "
|
|
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: "
|
|
41
|
+
kind: "human" | "agent" | "kit";
|
|
42
42
|
host?: string | undefined;
|
|
43
43
|
}, {
|
|
44
|
-
kind: "
|
|
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: "
|
|
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: "
|
|
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,
|
|
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,gJAkBjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;IAE7B,gFAAgF;;;;;;;;EAEhF,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAK9D,eAAO,MAAM,kBAAkB;;IAE7B,mEAAmE;;IAEnE,0BAA0B;;IAE1B,oEAAoE;;IAEpE,kDAAkD;;;;;QAhBlD,gFAAgF;;;;;;;;;IAoBhF,oEAAoE;;IAEpE,wDAAwD;;IAExD,6EAA6E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7E,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/observer/journal.js
CHANGED
|
@@ -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;
|
|
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;;;OAGG;IACH,mBAAmB;IACnB,6EAA6E;IAC7E,oBAAoB;IACpB,qHAAqH;IACrH,cAAc;CACf,CAAC,CAAC;AAGH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IACvC,gFAAgF;IAChF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAGH,2EAA2E;AAC3E,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,0BAA0B,EAAE,kCAAkC,CAAC,CAAC;AAEpG,MAAM,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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/onboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/onboard/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|