peaks-loop 4.0.21 → 4.0.24
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/CHANGELOG.md +109 -0
- package/dist/cli/commands/_register.js +2 -1
- package/dist/cli/commands/best-practice-scan-command.d.ts +36 -0
- package/dist/cli/commands/best-practice-scan-command.js +118 -0
- package/dist/cli/commands/request-commands.js +21 -9
- package/dist/services/best-practice/language-detector.d.ts +7 -0
- package/dist/services/best-practice/language-detector.js +96 -0
- package/dist/services/best-practice/output-formatter.d.ts +41 -0
- package/dist/services/best-practice/output-formatter.js +116 -0
- package/dist/services/best-practice/scan-orchestrator.d.ts +39 -0
- package/dist/services/best-practice/scan-orchestrator.js +85 -0
- package/dist/services/context/collector.d.ts +5 -12
- package/dist/services/context/context-builder.d.ts +12 -20
- package/dist/services/context/context-builder.js +1 -1
- package/dist/services/context/context-schema.d.ts +51 -364
- package/dist/services/context/context-schema.js +3 -3
- package/dist/services/crystallization/crystallization-service.d.ts +2 -12
- package/dist/services/crystallization/crystallization-service.js +3 -9
- package/dist/services/crystallization/crystallization-types.d.ts +45 -153
- package/dist/services/crystallization/crystallization-types.js +17 -11
- package/dist/services/crystallization/evidence-brief-builder.d.ts +12 -112
- package/dist/services/evolution/evolution-types.d.ts +83 -497
- package/dist/services/evolution/evolution-types.js +6 -10
- package/dist/services/fixture/fixture-sanitize-service.d.ts +10 -36
- package/dist/services/fixture/fixture-sanitize-service.js +1 -1
- package/dist/services/job/job-progress-store.d.ts +1 -17
- package/dist/services/job/job-progress-store.js +2 -2
- package/dist/services/job/job-types.d.ts +63 -370
- package/dist/services/job/job-types.js +46 -11
- package/dist/services/loop/loop-bee-relation-types.d.ts +20 -32
- package/dist/services/loop/loop-bee-relation-types.js +2 -2
- package/dist/services/loop/loop-release-types.d.ts +31 -110
- package/dist/services/migrate-skill-name/schema.d.ts +3 -19
- package/dist/services/migrate-skill-name/schema.js +4 -4
- package/dist/services/observability/observability-service.d.ts +21 -19
- package/dist/services/observability/observability-service.js +1 -1
- package/dist/services/prd/best-practice-auto-trigger.d.ts +61 -0
- package/dist/services/prd/best-practice-auto-trigger.js +126 -0
- package/dist/services/rd/types.d.ts +25 -194
- package/dist/services/sediment/json-schema.d.ts +39 -224
- package/dist/services/sediment/json-schema.js +2 -2
- package/dist/services/session/binding-store.d.ts +5 -47
- package/dist/services/session/binding-store.js +1 -1
- package/dist/services/share/bundle-types.d.ts +12 -180
- package/dist/services/share/bundle-types.js +15 -9
- package/dist/services/share/run-state-contract.d.ts +8 -25
- package/dist/services/skill/skill-search-service.d.ts +26 -46
- package/dist/services/skill/skill-search-service.js +2 -2
- package/dist/services/skills/hooks-settings-service.d.ts +9 -0
- package/dist/services/skills/hooks-settings-service.js +31 -1
- package/dist/services/skills/skill-presence-service.d.ts +24 -0
- package/dist/services/skills/skill-presence-service.js +33 -0
- package/package.json +8 -8
- package/schemas/context.schema.json +17 -8
- package/skills/bee/peaks-prd/SKILL.md +17 -0
- package/skills/peaks-code/SKILL.md +28 -1
- package/skills/peaks-code/references/skill-presence-and-title.md +3 -3
|
@@ -104,9 +104,9 @@ export const EvolutionProposalInputSchema = z.object({
|
|
|
104
104
|
.trim()
|
|
105
105
|
.min(1, "optimization_dimension is required (single dimension per round)")
|
|
106
106
|
.max(EVO_OPTIMIZATION_DIMENSION_MAX),
|
|
107
|
-
before_snapshot: z.record(z.unknown()).default({}),
|
|
108
|
-
after_snapshot: z.record(z.unknown()).default({}),
|
|
109
|
-
diff: z.record(z.unknown()).default({}),
|
|
107
|
+
before_snapshot: z.record(z.string(), z.unknown()).default({}),
|
|
108
|
+
after_snapshot: z.record(z.string(), z.unknown()).default({}),
|
|
109
|
+
diff: z.record(z.string(), z.unknown()).default({}),
|
|
110
110
|
before_score: z
|
|
111
111
|
.number()
|
|
112
112
|
.finite("before_score must be a finite number")
|
|
@@ -134,9 +134,7 @@ export const EvolutionProposalInputSchema = z.object({
|
|
|
134
134
|
* `single_object !== true`.
|
|
135
135
|
*/
|
|
136
136
|
single_object: z.literal(true, {
|
|
137
|
-
|
|
138
|
-
message: "single_object must be true (multi-object proposals must be split into multiple rounds)",
|
|
139
|
-
}),
|
|
137
|
+
error: () => "single_object must be true (multi-object proposals must be split into multiple rounds)",
|
|
140
138
|
}),
|
|
141
139
|
/**
|
|
142
140
|
* The LLM-side marker that this proposal targets a SINGLE
|
|
@@ -144,11 +142,9 @@ export const EvolutionProposalInputSchema = z.object({
|
|
|
144
142
|
* proposals with `single_optimization_dimension !== true`.
|
|
145
143
|
*/
|
|
146
144
|
single_optimization_dimension: z.literal(true, {
|
|
147
|
-
|
|
148
|
-
message: "single_optimization_dimension must be true (multi-dimension proposals must be split into multiple rounds)",
|
|
149
|
-
}),
|
|
145
|
+
error: () => "single_optimization_dimension must be true (multi-dimension proposals must be split into multiple rounds)",
|
|
150
146
|
}),
|
|
151
|
-
rubric: z.record(z.unknown()).default({}),
|
|
147
|
+
rubric: z.record(z.string(), z.unknown()).default({}),
|
|
152
148
|
red_lines: z.array(z.string().min(1).max(EVO_RED_LINE_MAX)).default([]),
|
|
153
149
|
source_traces: z.array(z.string().min(1).max(EVO_SOURCE_TRACE_MAX)).default([]),
|
|
154
150
|
});
|
|
@@ -48,48 +48,22 @@ export declare const SanitizationIssueSchema: z.ZodObject<{
|
|
|
48
48
|
rule: z.ZodString;
|
|
49
49
|
match: z.ZodString;
|
|
50
50
|
position: z.ZodNumber;
|
|
51
|
-
},
|
|
52
|
-
match: string;
|
|
53
|
-
rule: string;
|
|
54
|
-
position: number;
|
|
55
|
-
}, {
|
|
56
|
-
match: string;
|
|
57
|
-
rule: string;
|
|
58
|
-
position: number;
|
|
59
|
-
}>;
|
|
51
|
+
}, z.core.$strip>;
|
|
60
52
|
export declare const SanitizationReportSchema: z.ZodObject<{
|
|
61
53
|
passed: z.ZodBoolean;
|
|
62
|
-
rulesApplied: z.ZodArray<z.ZodEnum<
|
|
54
|
+
rulesApplied: z.ZodArray<z.ZodEnum<{
|
|
55
|
+
"cookie-redaction": "cookie-redaction";
|
|
56
|
+
"token-redaction": "token-redaction";
|
|
57
|
+
"sso-url-redaction": "sso-url-redaction";
|
|
58
|
+
"personal-email-redaction": "personal-email-redaction";
|
|
59
|
+
"username-path-segment-redaction": "username-path-segment-redaction";
|
|
60
|
+
}>>;
|
|
63
61
|
issues: z.ZodArray<z.ZodObject<{
|
|
64
62
|
rule: z.ZodString;
|
|
65
63
|
match: z.ZodString;
|
|
66
64
|
position: z.ZodNumber;
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
rule: string;
|
|
70
|
-
position: number;
|
|
71
|
-
}, {
|
|
72
|
-
match: string;
|
|
73
|
-
rule: string;
|
|
74
|
-
position: number;
|
|
75
|
-
}>, "many">;
|
|
76
|
-
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
issues: {
|
|
78
|
-
match: string;
|
|
79
|
-
rule: string;
|
|
80
|
-
position: number;
|
|
81
|
-
}[];
|
|
82
|
-
passed: boolean;
|
|
83
|
-
rulesApplied: ("cookie-redaction" | "token-redaction" | "sso-url-redaction" | "personal-email-redaction" | "username-path-segment-redaction")[];
|
|
84
|
-
}, {
|
|
85
|
-
issues: {
|
|
86
|
-
match: string;
|
|
87
|
-
rule: string;
|
|
88
|
-
position: number;
|
|
89
|
-
}[];
|
|
90
|
-
passed: boolean;
|
|
91
|
-
rulesApplied: ("cookie-redaction" | "token-redaction" | "sso-url-redaction" | "personal-email-redaction" | "username-path-segment-redaction")[];
|
|
92
|
-
}>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
}, z.core.$strip>;
|
|
93
67
|
export type SanitizationIssue = z.infer<typeof SanitizationIssueSchema>;
|
|
94
68
|
export type SanitizationReport = z.infer<typeof SanitizationReportSchema>;
|
|
95
69
|
/**
|
|
@@ -81,7 +81,7 @@ export const SANITIZE_RULES = [
|
|
|
81
81
|
export const SanitizationIssueSchema = z.object({
|
|
82
82
|
rule: z.string(),
|
|
83
83
|
match: z.string(),
|
|
84
|
-
position: z.number().int().
|
|
84
|
+
position: z.number().int().gte(0)
|
|
85
85
|
});
|
|
86
86
|
export const SanitizationReportSchema = z.object({
|
|
87
87
|
passed: z.boolean(),
|
|
@@ -29,23 +29,7 @@ export declare const JobProgressSchema: z.ZodObject<{
|
|
|
29
29
|
currentSlice: z.ZodString;
|
|
30
30
|
lastCommitSha: z.ZodNullable<z.ZodString>;
|
|
31
31
|
updatedAt: z.ZodString;
|
|
32
|
-
},
|
|
33
|
-
updatedAt: string;
|
|
34
|
-
schemaVersion: 1;
|
|
35
|
-
done: number;
|
|
36
|
-
jobId: string;
|
|
37
|
-
total: number;
|
|
38
|
-
currentSlice: string;
|
|
39
|
-
lastCommitSha: string | null;
|
|
40
|
-
}, {
|
|
41
|
-
updatedAt: string;
|
|
42
|
-
schemaVersion: 1;
|
|
43
|
-
done: number;
|
|
44
|
-
jobId: string;
|
|
45
|
-
total: number;
|
|
46
|
-
currentSlice: string;
|
|
47
|
-
lastCommitSha: string | null;
|
|
48
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
49
33
|
export type JobProgress = z.infer<typeof JobProgressSchema>;
|
|
50
34
|
export interface WriteProgressInput {
|
|
51
35
|
readonly jobId: string;
|
|
@@ -26,8 +26,8 @@ export const JOB_PROGRESS_SCHEMA_VERSION = 1;
|
|
|
26
26
|
export const JobProgressSchema = z.object({
|
|
27
27
|
schemaVersion: z.literal(JOB_PROGRESS_SCHEMA_VERSION),
|
|
28
28
|
jobId: z.string(),
|
|
29
|
-
done: z.number().int().
|
|
30
|
-
total: z.number().int().
|
|
29
|
+
done: z.number().int().gte(0),
|
|
30
|
+
total: z.number().int().gt(0),
|
|
31
31
|
currentSlice: z.string(),
|
|
32
32
|
lastCommitSha: z.string().nullable(),
|
|
33
33
|
updatedAt: z.string().datetime()
|
|
@@ -1,94 +1,38 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const SliceStateSchema: z.
|
|
2
|
+
export declare const SliceStateSchema: z.ZodObject<{
|
|
3
3
|
sliceId: z.ZodString;
|
|
4
4
|
label: z.ZodString;
|
|
5
|
-
status: z.ZodEnum<
|
|
5
|
+
status: z.ZodEnum<{
|
|
6
|
+
pending: "pending";
|
|
7
|
+
blocked: "blocked";
|
|
8
|
+
failed: "failed";
|
|
9
|
+
skipped: "skipped";
|
|
10
|
+
done: "done";
|
|
11
|
+
"in-progress": "in-progress";
|
|
12
|
+
}>;
|
|
6
13
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
7
14
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
8
15
|
failureReason: z.ZodOptional<z.ZodString>;
|
|
9
16
|
repairCycles: z.ZodDefault<z.ZodNumber>;
|
|
10
17
|
blockedReason: z.ZodOptional<z.ZodString>;
|
|
11
|
-
},
|
|
12
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
13
|
-
label: string;
|
|
14
|
-
sliceId: string;
|
|
15
|
-
repairCycles: number;
|
|
16
|
-
commitSha?: string | undefined;
|
|
17
|
-
finishedAt?: string | undefined;
|
|
18
|
-
failureReason?: string | undefined;
|
|
19
|
-
blockedReason?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
22
|
-
label: string;
|
|
23
|
-
sliceId: string;
|
|
24
|
-
commitSha?: string | undefined;
|
|
25
|
-
finishedAt?: string | undefined;
|
|
26
|
-
failureReason?: string | undefined;
|
|
27
|
-
repairCycles?: number | undefined;
|
|
28
|
-
blockedReason?: string | undefined;
|
|
29
|
-
}>, {
|
|
30
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
31
|
-
label: string;
|
|
32
|
-
sliceId: string;
|
|
33
|
-
repairCycles: number;
|
|
34
|
-
commitSha?: string | undefined;
|
|
35
|
-
finishedAt?: string | undefined;
|
|
36
|
-
failureReason?: string | undefined;
|
|
37
|
-
blockedReason?: string | undefined;
|
|
38
|
-
}, {
|
|
39
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
40
|
-
label: string;
|
|
41
|
-
sliceId: string;
|
|
42
|
-
commitSha?: string | undefined;
|
|
43
|
-
finishedAt?: string | undefined;
|
|
44
|
-
failureReason?: string | undefined;
|
|
45
|
-
repairCycles?: number | undefined;
|
|
46
|
-
blockedReason?: string | undefined;
|
|
47
|
-
}>, {
|
|
48
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
49
|
-
label: string;
|
|
50
|
-
sliceId: string;
|
|
51
|
-
repairCycles: number;
|
|
52
|
-
commitSha?: string | undefined;
|
|
53
|
-
finishedAt?: string | undefined;
|
|
54
|
-
failureReason?: string | undefined;
|
|
55
|
-
blockedReason?: string | undefined;
|
|
56
|
-
}, {
|
|
57
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
58
|
-
label: string;
|
|
59
|
-
sliceId: string;
|
|
60
|
-
commitSha?: string | undefined;
|
|
61
|
-
finishedAt?: string | undefined;
|
|
62
|
-
failureReason?: string | undefined;
|
|
63
|
-
repairCycles?: number | undefined;
|
|
64
|
-
blockedReason?: string | undefined;
|
|
65
|
-
}>, {
|
|
66
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
67
|
-
label: string;
|
|
68
|
-
sliceId: string;
|
|
69
|
-
repairCycles: number;
|
|
70
|
-
commitSha?: string | undefined;
|
|
71
|
-
finishedAt?: string | undefined;
|
|
72
|
-
failureReason?: string | undefined;
|
|
73
|
-
blockedReason?: string | undefined;
|
|
74
|
-
}, {
|
|
75
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
76
|
-
label: string;
|
|
77
|
-
sliceId: string;
|
|
78
|
-
commitSha?: string | undefined;
|
|
79
|
-
finishedAt?: string | undefined;
|
|
80
|
-
failureReason?: string | undefined;
|
|
81
|
-
repairCycles?: number | undefined;
|
|
82
|
-
blockedReason?: string | undefined;
|
|
83
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
84
19
|
export declare const JobStateSchema: z.ZodObject<{
|
|
85
20
|
jobId: z.ZodString;
|
|
86
21
|
sessionId: z.ZodString;
|
|
87
22
|
startedAt: z.ZodString;
|
|
88
23
|
lastCheckpointAt: z.ZodString;
|
|
89
|
-
parallelismHint: z.ZodDefault<z.ZodEnum<
|
|
90
|
-
|
|
91
|
-
|
|
24
|
+
parallelismHint: z.ZodDefault<z.ZodEnum<{
|
|
25
|
+
serial: "serial";
|
|
26
|
+
"llm-decides": "llm-decides";
|
|
27
|
+
}>>;
|
|
28
|
+
exitPolicy: z.ZodDefault<z.ZodEnum<{
|
|
29
|
+
strict: "strict";
|
|
30
|
+
"best-effort": "best-effort";
|
|
31
|
+
}>>;
|
|
32
|
+
mainLoopStrategy: z.ZodDefault<z.ZodEnum<{
|
|
33
|
+
single: "single";
|
|
34
|
+
rotating: "rotating";
|
|
35
|
+
}>>;
|
|
92
36
|
rotateEvery: z.ZodDefault<z.ZodNumber>;
|
|
93
37
|
mainSessionCycle: z.ZodDefault<z.ZodNumber>;
|
|
94
38
|
mainLoopOverride: z.ZodOptional<z.ZodObject<{
|
|
@@ -96,171 +40,32 @@ export declare const JobStateSchema: z.ZodObject<{
|
|
|
96
40
|
to: z.ZodLiteral<"single">;
|
|
97
41
|
reason: z.ZodString;
|
|
98
42
|
at: z.ZodString;
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
reason: string;
|
|
102
|
-
to: "single";
|
|
103
|
-
from: "rotating";
|
|
104
|
-
}, {
|
|
105
|
-
at: string;
|
|
106
|
-
reason: string;
|
|
107
|
-
to: "single";
|
|
108
|
-
from: "rotating";
|
|
109
|
-
}>>;
|
|
110
|
-
slices: z.ZodArray<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
slices: z.ZodArray<z.ZodObject<{
|
|
111
45
|
sliceId: z.ZodString;
|
|
112
46
|
label: z.ZodString;
|
|
113
|
-
status: z.ZodEnum<
|
|
47
|
+
status: z.ZodEnum<{
|
|
48
|
+
pending: "pending";
|
|
49
|
+
blocked: "blocked";
|
|
50
|
+
failed: "failed";
|
|
51
|
+
skipped: "skipped";
|
|
52
|
+
done: "done";
|
|
53
|
+
"in-progress": "in-progress";
|
|
54
|
+
}>;
|
|
114
55
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
115
56
|
finishedAt: z.ZodOptional<z.ZodString>;
|
|
116
57
|
failureReason: z.ZodOptional<z.ZodString>;
|
|
117
58
|
repairCycles: z.ZodDefault<z.ZodNumber>;
|
|
118
59
|
blockedReason: z.ZodOptional<z.ZodString>;
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
label: string;
|
|
122
|
-
sliceId: string;
|
|
123
|
-
repairCycles: number;
|
|
124
|
-
commitSha?: string | undefined;
|
|
125
|
-
finishedAt?: string | undefined;
|
|
126
|
-
failureReason?: string | undefined;
|
|
127
|
-
blockedReason?: string | undefined;
|
|
128
|
-
}, {
|
|
129
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
130
|
-
label: string;
|
|
131
|
-
sliceId: string;
|
|
132
|
-
commitSha?: string | undefined;
|
|
133
|
-
finishedAt?: string | undefined;
|
|
134
|
-
failureReason?: string | undefined;
|
|
135
|
-
repairCycles?: number | undefined;
|
|
136
|
-
blockedReason?: string | undefined;
|
|
137
|
-
}>, {
|
|
138
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
139
|
-
label: string;
|
|
140
|
-
sliceId: string;
|
|
141
|
-
repairCycles: number;
|
|
142
|
-
commitSha?: string | undefined;
|
|
143
|
-
finishedAt?: string | undefined;
|
|
144
|
-
failureReason?: string | undefined;
|
|
145
|
-
blockedReason?: string | undefined;
|
|
146
|
-
}, {
|
|
147
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
148
|
-
label: string;
|
|
149
|
-
sliceId: string;
|
|
150
|
-
commitSha?: string | undefined;
|
|
151
|
-
finishedAt?: string | undefined;
|
|
152
|
-
failureReason?: string | undefined;
|
|
153
|
-
repairCycles?: number | undefined;
|
|
154
|
-
blockedReason?: string | undefined;
|
|
155
|
-
}>, {
|
|
156
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
157
|
-
label: string;
|
|
158
|
-
sliceId: string;
|
|
159
|
-
repairCycles: number;
|
|
160
|
-
commitSha?: string | undefined;
|
|
161
|
-
finishedAt?: string | undefined;
|
|
162
|
-
failureReason?: string | undefined;
|
|
163
|
-
blockedReason?: string | undefined;
|
|
164
|
-
}, {
|
|
165
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
166
|
-
label: string;
|
|
167
|
-
sliceId: string;
|
|
168
|
-
commitSha?: string | undefined;
|
|
169
|
-
finishedAt?: string | undefined;
|
|
170
|
-
failureReason?: string | undefined;
|
|
171
|
-
repairCycles?: number | undefined;
|
|
172
|
-
blockedReason?: string | undefined;
|
|
173
|
-
}>, {
|
|
174
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
175
|
-
label: string;
|
|
176
|
-
sliceId: string;
|
|
177
|
-
repairCycles: number;
|
|
178
|
-
commitSha?: string | undefined;
|
|
179
|
-
finishedAt?: string | undefined;
|
|
180
|
-
failureReason?: string | undefined;
|
|
181
|
-
blockedReason?: string | undefined;
|
|
182
|
-
}, {
|
|
183
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
184
|
-
label: string;
|
|
185
|
-
sliceId: string;
|
|
186
|
-
commitSha?: string | undefined;
|
|
187
|
-
finishedAt?: string | undefined;
|
|
188
|
-
failureReason?: string | undefined;
|
|
189
|
-
repairCycles?: number | undefined;
|
|
190
|
-
blockedReason?: string | undefined;
|
|
191
|
-
}>, "many">;
|
|
192
|
-
}, "strip", z.ZodTypeAny, {
|
|
193
|
-
sessionId: string;
|
|
194
|
-
lastCheckpointAt: string;
|
|
195
|
-
jobId: string;
|
|
196
|
-
startedAt: string;
|
|
197
|
-
parallelismHint: "serial" | "llm-decides";
|
|
198
|
-
exitPolicy: "strict" | "best-effort";
|
|
199
|
-
mainLoopStrategy: "single" | "rotating";
|
|
200
|
-
rotateEvery: number;
|
|
201
|
-
mainSessionCycle: number;
|
|
202
|
-
slices: {
|
|
203
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
204
|
-
label: string;
|
|
205
|
-
sliceId: string;
|
|
206
|
-
repairCycles: number;
|
|
207
|
-
commitSha?: string | undefined;
|
|
208
|
-
finishedAt?: string | undefined;
|
|
209
|
-
failureReason?: string | undefined;
|
|
210
|
-
blockedReason?: string | undefined;
|
|
211
|
-
}[];
|
|
212
|
-
mainLoopOverride?: {
|
|
213
|
-
at: string;
|
|
214
|
-
reason: string;
|
|
215
|
-
to: "single";
|
|
216
|
-
from: "rotating";
|
|
217
|
-
} | undefined;
|
|
218
|
-
}, {
|
|
219
|
-
sessionId: string;
|
|
220
|
-
lastCheckpointAt: string;
|
|
221
|
-
jobId: string;
|
|
222
|
-
startedAt: string;
|
|
223
|
-
slices: {
|
|
224
|
-
status: "pending" | "blocked" | "failed" | "skipped" | "done" | "in-progress";
|
|
225
|
-
label: string;
|
|
226
|
-
sliceId: string;
|
|
227
|
-
commitSha?: string | undefined;
|
|
228
|
-
finishedAt?: string | undefined;
|
|
229
|
-
failureReason?: string | undefined;
|
|
230
|
-
repairCycles?: number | undefined;
|
|
231
|
-
blockedReason?: string | undefined;
|
|
232
|
-
}[];
|
|
233
|
-
parallelismHint?: "serial" | "llm-decides" | undefined;
|
|
234
|
-
exitPolicy?: "strict" | "best-effort" | undefined;
|
|
235
|
-
mainLoopStrategy?: "single" | "rotating" | undefined;
|
|
236
|
-
rotateEvery?: number | undefined;
|
|
237
|
-
mainSessionCycle?: number | undefined;
|
|
238
|
-
mainLoopOverride?: {
|
|
239
|
-
at: string;
|
|
240
|
-
reason: string;
|
|
241
|
-
to: "single";
|
|
242
|
-
from: "rotating";
|
|
243
|
-
} | undefined;
|
|
244
|
-
}>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
245
62
|
export declare const ResourceSnapshotSchema: z.ZodObject<{
|
|
246
63
|
capturedAt: z.ZodString;
|
|
247
64
|
cpuPercent: z.ZodNumber;
|
|
248
65
|
memMb: z.ZodNumber;
|
|
249
66
|
diskMb: z.ZodNumber;
|
|
250
67
|
contextRatio: z.ZodNumber;
|
|
251
|
-
},
|
|
252
|
-
capturedAt: string;
|
|
253
|
-
cpuPercent: number;
|
|
254
|
-
memMb: number;
|
|
255
|
-
diskMb: number;
|
|
256
|
-
contextRatio: number;
|
|
257
|
-
}, {
|
|
258
|
-
capturedAt: string;
|
|
259
|
-
cpuPercent: number;
|
|
260
|
-
memMb: number;
|
|
261
|
-
diskMb: number;
|
|
262
|
-
contextRatio: number;
|
|
263
|
-
}>;
|
|
68
|
+
}, z.core.$strip>;
|
|
264
69
|
export declare const JobStatusSummarySchema: z.ZodObject<{
|
|
265
70
|
total: z.ZodNumber;
|
|
266
71
|
done: z.ZodNumber;
|
|
@@ -269,7 +74,10 @@ export declare const JobStatusSummarySchema: z.ZodObject<{
|
|
|
269
74
|
skipped: z.ZodNumber;
|
|
270
75
|
currentSlice: z.ZodOptional<z.ZodString>;
|
|
271
76
|
lastCheckpoint: z.ZodString;
|
|
272
|
-
mainLoopStrategy: z.ZodEnum<
|
|
77
|
+
mainLoopStrategy: z.ZodEnum<{
|
|
78
|
+
single: "single";
|
|
79
|
+
rotating: "rotating";
|
|
80
|
+
}>;
|
|
273
81
|
mainSessionCycle: z.ZodNumber;
|
|
274
82
|
etaSec: z.ZodOptional<z.ZodNumber>;
|
|
275
83
|
resourcesNow: z.ZodOptional<z.ZodObject<{
|
|
@@ -278,56 +86,8 @@ export declare const JobStatusSummarySchema: z.ZodObject<{
|
|
|
278
86
|
memMb: z.ZodNumber;
|
|
279
87
|
diskMb: z.ZodNumber;
|
|
280
88
|
contextRatio: z.ZodNumber;
|
|
281
|
-
},
|
|
282
|
-
|
|
283
|
-
cpuPercent: number;
|
|
284
|
-
memMb: number;
|
|
285
|
-
diskMb: number;
|
|
286
|
-
contextRatio: number;
|
|
287
|
-
}, {
|
|
288
|
-
capturedAt: string;
|
|
289
|
-
cpuPercent: number;
|
|
290
|
-
memMb: number;
|
|
291
|
-
diskMb: number;
|
|
292
|
-
contextRatio: number;
|
|
293
|
-
}>>;
|
|
294
|
-
}, "strip", z.ZodTypeAny, {
|
|
295
|
-
blocked: number;
|
|
296
|
-
failed: number;
|
|
297
|
-
skipped: number;
|
|
298
|
-
done: number;
|
|
299
|
-
total: number;
|
|
300
|
-
mainLoopStrategy: "single" | "rotating";
|
|
301
|
-
mainSessionCycle: number;
|
|
302
|
-
lastCheckpoint: string;
|
|
303
|
-
currentSlice?: string | undefined;
|
|
304
|
-
etaSec?: number | undefined;
|
|
305
|
-
resourcesNow?: {
|
|
306
|
-
capturedAt: string;
|
|
307
|
-
cpuPercent: number;
|
|
308
|
-
memMb: number;
|
|
309
|
-
diskMb: number;
|
|
310
|
-
contextRatio: number;
|
|
311
|
-
} | undefined;
|
|
312
|
-
}, {
|
|
313
|
-
blocked: number;
|
|
314
|
-
failed: number;
|
|
315
|
-
skipped: number;
|
|
316
|
-
done: number;
|
|
317
|
-
total: number;
|
|
318
|
-
mainLoopStrategy: "single" | "rotating";
|
|
319
|
-
mainSessionCycle: number;
|
|
320
|
-
lastCheckpoint: string;
|
|
321
|
-
currentSlice?: string | undefined;
|
|
322
|
-
etaSec?: number | undefined;
|
|
323
|
-
resourcesNow?: {
|
|
324
|
-
capturedAt: string;
|
|
325
|
-
cpuPercent: number;
|
|
326
|
-
memMb: number;
|
|
327
|
-
diskMb: number;
|
|
328
|
-
contextRatio: number;
|
|
329
|
-
} | undefined;
|
|
330
|
-
}>;
|
|
89
|
+
}, z.core.$strip>>;
|
|
90
|
+
}, z.core.$strip>;
|
|
331
91
|
export type SliceState = z.infer<typeof SliceStateSchema>;
|
|
332
92
|
export type JobState = z.infer<typeof JobStateSchema>;
|
|
333
93
|
export type { ResourceSnapshot } from '../job-snapshot/types.js';
|
|
@@ -335,92 +95,37 @@ export type JobStatusSummary = z.infer<typeof JobStatusSummarySchema>;
|
|
|
335
95
|
export declare const JobInitInputSchema: z.ZodObject<{
|
|
336
96
|
jobId: z.ZodString;
|
|
337
97
|
sessionId: z.ZodString;
|
|
338
|
-
sliceList: z.ZodArray<z.ZodString
|
|
339
|
-
parallelismHint: z.ZodDefault<z.ZodEnum<
|
|
340
|
-
|
|
341
|
-
|
|
98
|
+
sliceList: z.ZodArray<z.ZodString>;
|
|
99
|
+
parallelismHint: z.ZodDefault<z.ZodEnum<{
|
|
100
|
+
serial: "serial";
|
|
101
|
+
"llm-decides": "llm-decides";
|
|
102
|
+
}>>;
|
|
103
|
+
exitPolicy: z.ZodDefault<z.ZodEnum<{
|
|
104
|
+
strict: "strict";
|
|
105
|
+
"best-effort": "best-effort";
|
|
106
|
+
}>>;
|
|
107
|
+
mainLoopStrategy: z.ZodDefault<z.ZodEnum<{
|
|
108
|
+
single: "single";
|
|
109
|
+
rotating: "rotating";
|
|
110
|
+
}>>;
|
|
342
111
|
rotateEvery: z.ZodDefault<z.ZodNumber>;
|
|
343
112
|
project: z.ZodString;
|
|
344
113
|
json: z.ZodDefault<z.ZodBoolean>;
|
|
345
|
-
},
|
|
346
|
-
project: string;
|
|
347
|
-
sessionId: string;
|
|
348
|
-
json: boolean;
|
|
349
|
-
jobId: string;
|
|
350
|
-
parallelismHint: "serial" | "llm-decides";
|
|
351
|
-
exitPolicy: "strict" | "best-effort";
|
|
352
|
-
mainLoopStrategy: "single" | "rotating";
|
|
353
|
-
rotateEvery: number;
|
|
354
|
-
sliceList: string[];
|
|
355
|
-
}, {
|
|
356
|
-
project: string;
|
|
357
|
-
sessionId: string;
|
|
358
|
-
jobId: string;
|
|
359
|
-
sliceList: string[];
|
|
360
|
-
json?: boolean | undefined;
|
|
361
|
-
parallelismHint?: "serial" | "llm-decides" | undefined;
|
|
362
|
-
exitPolicy?: "strict" | "best-effort" | undefined;
|
|
363
|
-
mainLoopStrategy?: "single" | "rotating" | undefined;
|
|
364
|
-
rotateEvery?: number | undefined;
|
|
365
|
-
}>;
|
|
114
|
+
}, z.core.$strip>;
|
|
366
115
|
export type JobInitInput = z.infer<typeof JobInitInputSchema>;
|
|
367
|
-
export declare const JobCheckpointInputSchema: z.
|
|
116
|
+
export declare const JobCheckpointInputSchema: z.ZodObject<{
|
|
368
117
|
jobId: z.ZodString;
|
|
369
118
|
sliceId: z.ZodString;
|
|
370
|
-
state: z.ZodEnum<
|
|
119
|
+
state: z.ZodEnum<{
|
|
120
|
+
failed: "failed";
|
|
121
|
+
skipped: "skipped";
|
|
122
|
+
done: "done";
|
|
123
|
+
}>;
|
|
371
124
|
commitSha: z.ZodOptional<z.ZodString>;
|
|
372
125
|
reason: z.ZodOptional<z.ZodString>;
|
|
373
126
|
project: z.ZodString;
|
|
374
127
|
json: z.ZodDefault<z.ZodBoolean>;
|
|
375
|
-
},
|
|
376
|
-
project: string;
|
|
377
|
-
state: "failed" | "skipped" | "done";
|
|
378
|
-
json: boolean;
|
|
379
|
-
jobId: string;
|
|
380
|
-
sliceId: string;
|
|
381
|
-
reason?: string | undefined;
|
|
382
|
-
commitSha?: string | undefined;
|
|
383
|
-
}, {
|
|
384
|
-
project: string;
|
|
385
|
-
state: "failed" | "skipped" | "done";
|
|
386
|
-
jobId: string;
|
|
387
|
-
sliceId: string;
|
|
388
|
-
reason?: string | undefined;
|
|
389
|
-
json?: boolean | undefined;
|
|
390
|
-
commitSha?: string | undefined;
|
|
391
|
-
}>, {
|
|
392
|
-
project: string;
|
|
393
|
-
state: "failed" | "skipped" | "done";
|
|
394
|
-
json: boolean;
|
|
395
|
-
jobId: string;
|
|
396
|
-
sliceId: string;
|
|
397
|
-
reason?: string | undefined;
|
|
398
|
-
commitSha?: string | undefined;
|
|
399
|
-
}, {
|
|
400
|
-
project: string;
|
|
401
|
-
state: "failed" | "skipped" | "done";
|
|
402
|
-
jobId: string;
|
|
403
|
-
sliceId: string;
|
|
404
|
-
reason?: string | undefined;
|
|
405
|
-
json?: boolean | undefined;
|
|
406
|
-
commitSha?: string | undefined;
|
|
407
|
-
}>, {
|
|
408
|
-
project: string;
|
|
409
|
-
state: "failed" | "skipped" | "done";
|
|
410
|
-
json: boolean;
|
|
411
|
-
jobId: string;
|
|
412
|
-
sliceId: string;
|
|
413
|
-
reason?: string | undefined;
|
|
414
|
-
commitSha?: string | undefined;
|
|
415
|
-
}, {
|
|
416
|
-
project: string;
|
|
417
|
-
state: "failed" | "skipped" | "done";
|
|
418
|
-
jobId: string;
|
|
419
|
-
sliceId: string;
|
|
420
|
-
reason?: string | undefined;
|
|
421
|
-
json?: boolean | undefined;
|
|
422
|
-
commitSha?: string | undefined;
|
|
423
|
-
}>;
|
|
128
|
+
}, z.core.$strip>;
|
|
424
129
|
export type JobCheckpointInput = z.infer<typeof JobCheckpointInputSchema>;
|
|
425
130
|
export declare const JobBlockInputSchema: z.ZodObject<{
|
|
426
131
|
jobId: z.ZodString;
|
|
@@ -428,17 +133,5 @@ export declare const JobBlockInputSchema: z.ZodObject<{
|
|
|
428
133
|
reason: z.ZodString;
|
|
429
134
|
project: z.ZodString;
|
|
430
135
|
json: z.ZodDefault<z.ZodBoolean>;
|
|
431
|
-
},
|
|
432
|
-
project: string;
|
|
433
|
-
reason: string;
|
|
434
|
-
json: boolean;
|
|
435
|
-
jobId: string;
|
|
436
|
-
sliceId: string;
|
|
437
|
-
}, {
|
|
438
|
-
project: string;
|
|
439
|
-
reason: string;
|
|
440
|
-
jobId: string;
|
|
441
|
-
sliceId: string;
|
|
442
|
-
json?: boolean | undefined;
|
|
443
|
-
}>;
|
|
136
|
+
}, z.core.$strip>;
|
|
444
137
|
export type JobBlockInput = z.infer<typeof JobBlockInputSchema>;
|