@smartergpt/lexrunner 1.5.2 → 2.0.0
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 +41 -0
- package/README.mcp.md +18 -1
- package/README.md +3 -2
- package/dist/{autopilot-62Y2M2ZO.js → autopilot-3OHEUTHD.js} +1 -1
- package/dist/{chunk-TIMHM7VL.js → chunk-ARDKZW7F.js} +861 -27
- package/dist/cli.cjs +4044 -3259
- package/dist/cli.d.ts +60 -35
- package/dist/cli.js +2313 -2420
- package/dist/sdk/index.d.ts +6 -6
- package/mcp-server.mjs +52 -3
- package/package.json +1 -1
- package/schemas/gate-evidence-manifest.schema.json +86 -0
- package/schemas/gate-execution-receipt.schema.json +21 -1
- package/schemas/plan.schema.json +7 -2
package/dist/cli.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ declare const GateResult: z.ZodObject<{
|
|
|
20
20
|
}>;
|
|
21
21
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
22
22
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
23
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
23
24
|
stdout: z.ZodOptional<z.ZodString>;
|
|
24
25
|
stderr: z.ZodOptional<z.ZodString>;
|
|
25
26
|
failureKind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -65,6 +66,7 @@ declare const NodeResult: z.ZodObject<{
|
|
|
65
66
|
}>;
|
|
66
67
|
exitCode: z.ZodOptional<z.ZodNumber>;
|
|
67
68
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
68
70
|
stdout: z.ZodOptional<z.ZodString>;
|
|
69
71
|
stderr: z.ZodOptional<z.ZodString>;
|
|
70
72
|
failureKind: z.ZodOptional<z.ZodEnum<{
|
|
@@ -122,6 +124,7 @@ declare const PlanItem: z.ZodObject<{
|
|
|
122
124
|
}, z.core.$strip>>;
|
|
123
125
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
124
126
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
127
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
125
128
|
}, z.core.$strict>>>;
|
|
126
129
|
tier: z.ZodOptional<z.ZodObject<{
|
|
127
130
|
suggested: z.ZodEnum<{
|
|
@@ -205,6 +208,7 @@ declare const Plan: z.ZodObject<{
|
|
|
205
208
|
}, z.core.$strip>>;
|
|
206
209
|
artifacts: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
207
210
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
211
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
208
212
|
}, z.core.$strict>>>;
|
|
209
213
|
tier: z.ZodOptional<z.ZodObject<{
|
|
210
214
|
suggested: z.ZodEnum<{
|
|
@@ -635,6 +639,7 @@ declare function executeGatesWithPolicy(plan: Plan, executionState: ExecutionSta
|
|
|
635
639
|
onlyGate?: string;
|
|
636
640
|
emitReceipt?: boolean;
|
|
637
641
|
suppressStdout?: boolean;
|
|
642
|
+
candidateDigest?: string;
|
|
638
643
|
}): Promise<void>;
|
|
639
644
|
|
|
640
645
|
/**
|
|
@@ -1251,12 +1256,12 @@ type ArtifactType = keyof typeof ARTIFACT_TYPES;
|
|
|
1251
1256
|
declare const ListArtifactsInputSchema: z.ZodObject<{
|
|
1252
1257
|
runId: z.ZodString;
|
|
1253
1258
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1254
|
-
gate: "gate";
|
|
1255
1259
|
failure: "failure";
|
|
1260
|
+
gate: "gate";
|
|
1256
1261
|
log: "log";
|
|
1257
1262
|
decision: "decision";
|
|
1258
|
-
report: "report";
|
|
1259
1263
|
plan: "plan";
|
|
1264
|
+
report: "report";
|
|
1260
1265
|
}>>;
|
|
1261
1266
|
path: z.ZodOptional<z.ZodString>;
|
|
1262
1267
|
latestOnly: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1270,12 +1275,12 @@ declare const ListArtifactsOutputSchema: z.ZodObject<{
|
|
|
1270
1275
|
artifacts: z.ZodArray<z.ZodObject<{
|
|
1271
1276
|
path: z.ZodString;
|
|
1272
1277
|
type: z.ZodEnum<{
|
|
1273
|
-
gate: "gate";
|
|
1274
1278
|
failure: "failure";
|
|
1279
|
+
gate: "gate";
|
|
1275
1280
|
log: "log";
|
|
1276
1281
|
decision: "decision";
|
|
1277
|
-
report: "report";
|
|
1278
1282
|
plan: "plan";
|
|
1283
|
+
report: "report";
|
|
1279
1284
|
}>;
|
|
1280
1285
|
size: z.ZodNumber;
|
|
1281
1286
|
createdAt: z.ZodString;
|
|
@@ -2064,7 +2069,6 @@ declare const WorkItem_v1: z.ZodObject<{
|
|
|
2064
2069
|
}, z.core.$strict>;
|
|
2065
2070
|
type WorkItem_v1 = z.infer<typeof WorkItem_v1>;
|
|
2066
2071
|
declare const RunStatus: z.ZodEnum<{
|
|
2067
|
-
created: "created";
|
|
2068
2072
|
blocked: "blocked";
|
|
2069
2073
|
completed: "completed";
|
|
2070
2074
|
planning: "planning";
|
|
@@ -2073,6 +2077,7 @@ declare const RunStatus: z.ZodEnum<{
|
|
|
2073
2077
|
failed: "failed";
|
|
2074
2078
|
paused: "paused";
|
|
2075
2079
|
cancelled: "cancelled";
|
|
2080
|
+
created: "created";
|
|
2076
2081
|
executing: "executing";
|
|
2077
2082
|
delivering: "delivering";
|
|
2078
2083
|
awaiting_human: "awaiting_human";
|
|
@@ -2099,7 +2104,6 @@ declare const Run_v1: z.ZodObject<{
|
|
|
2099
2104
|
release: z.ZodBoolean;
|
|
2100
2105
|
}, z.core.$strict>;
|
|
2101
2106
|
status: z.ZodEnum<{
|
|
2102
|
-
created: "created";
|
|
2103
2107
|
blocked: "blocked";
|
|
2104
2108
|
completed: "completed";
|
|
2105
2109
|
planning: "planning";
|
|
@@ -2108,6 +2112,7 @@ declare const Run_v1: z.ZodObject<{
|
|
|
2108
2112
|
failed: "failed";
|
|
2109
2113
|
paused: "paused";
|
|
2110
2114
|
cancelled: "cancelled";
|
|
2115
|
+
created: "created";
|
|
2111
2116
|
executing: "executing";
|
|
2112
2117
|
delivering: "delivering";
|
|
2113
2118
|
awaiting_human: "awaiting_human";
|
|
@@ -2186,9 +2191,9 @@ declare const Attempt_v1: z.ZodObject<{
|
|
|
2186
2191
|
}, z.core.$strict>;
|
|
2187
2192
|
type Attempt_v1 = z.infer<typeof Attempt_v1>;
|
|
2188
2193
|
declare const AttemptRetryDeltaDimension_v1: z.ZodEnum<{
|
|
2194
|
+
evidence: "evidence";
|
|
2189
2195
|
strategy: "strategy";
|
|
2190
2196
|
environment: "environment";
|
|
2191
|
-
evidence: "evidence";
|
|
2192
2197
|
premise: "premise";
|
|
2193
2198
|
inputs: "inputs";
|
|
2194
2199
|
authority: "authority";
|
|
@@ -2204,9 +2209,9 @@ declare const AttemptRetryDelta_v1: z.ZodObject<{
|
|
|
2204
2209
|
work_item_revision: z.ZodNumber;
|
|
2205
2210
|
changes: z.ZodArray<z.ZodObject<{
|
|
2206
2211
|
dimension: z.ZodEnum<{
|
|
2212
|
+
evidence: "evidence";
|
|
2207
2213
|
strategy: "strategy";
|
|
2208
2214
|
environment: "environment";
|
|
2209
|
-
evidence: "evidence";
|
|
2210
2215
|
premise: "premise";
|
|
2211
2216
|
inputs: "inputs";
|
|
2212
2217
|
authority: "authority";
|
|
@@ -2503,25 +2508,12 @@ declare function computeFanInEvidenceSetHash(candidates: AgentWorkFanInDecision_
|
|
|
2503
2508
|
declare const AgentTaskPacketHashInput_v1: z.ZodObject<{
|
|
2504
2509
|
objective: z.ZodString;
|
|
2505
2510
|
run_id: z.ZodString;
|
|
2506
|
-
created_at: z.ZodString;
|
|
2507
|
-
repository: z.ZodObject<{
|
|
2508
|
-
id: z.ZodString;
|
|
2509
|
-
remote_url: z.ZodOptional<z.ZodString>;
|
|
2510
|
-
default_branch: z.ZodOptional<z.ZodString>;
|
|
2511
|
-
base_sha: z.ZodString;
|
|
2512
|
-
}, z.core.$strict>;
|
|
2513
2511
|
scope: z.ZodObject<{
|
|
2514
2512
|
read_globs: z.ZodArray<z.ZodString>;
|
|
2515
2513
|
write_globs: z.ZodArray<z.ZodString>;
|
|
2516
2514
|
deny_globs: z.ZodArray<z.ZodString>;
|
|
2517
2515
|
cross_repo_allowed: z.ZodBoolean;
|
|
2518
2516
|
}, z.core.$strict>;
|
|
2519
|
-
schema_version: z.ZodLiteral<"1.0.0">;
|
|
2520
|
-
budget: z.ZodObject<{
|
|
2521
|
-
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
2522
|
-
max_tool_calls: z.ZodOptional<z.ZodNumber>;
|
|
2523
|
-
max_elapsed_ms: z.ZodOptional<z.ZodNumber>;
|
|
2524
|
-
}, z.core.$strict>;
|
|
2525
2517
|
verification: z.ZodArray<z.ZodObject<{
|
|
2526
2518
|
id: z.ZodString;
|
|
2527
2519
|
argv: z.ZodArray<z.ZodString>;
|
|
@@ -2529,6 +2521,19 @@ declare const AgentTaskPacketHashInput_v1: z.ZodObject<{
|
|
|
2529
2521
|
depends_on: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2530
2522
|
expected_exit_codes: z.ZodArray<z.ZodNumber>;
|
|
2531
2523
|
}, z.core.$strict>>;
|
|
2524
|
+
budget: z.ZodObject<{
|
|
2525
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
2526
|
+
max_tool_calls: z.ZodOptional<z.ZodNumber>;
|
|
2527
|
+
max_elapsed_ms: z.ZodOptional<z.ZodNumber>;
|
|
2528
|
+
}, z.core.$strict>;
|
|
2529
|
+
schema_version: z.ZodLiteral<"1.0.0">;
|
|
2530
|
+
created_at: z.ZodString;
|
|
2531
|
+
repository: z.ZodObject<{
|
|
2532
|
+
id: z.ZodString;
|
|
2533
|
+
remote_url: z.ZodOptional<z.ZodString>;
|
|
2534
|
+
default_branch: z.ZodOptional<z.ZodString>;
|
|
2535
|
+
base_sha: z.ZodString;
|
|
2536
|
+
}, z.core.$strict>;
|
|
2532
2537
|
acceptance_criteria: z.ZodArray<z.ZodObject<{
|
|
2533
2538
|
id: z.ZodString;
|
|
2534
2539
|
text: z.ZodString;
|
|
@@ -6165,11 +6170,6 @@ declare const AttemptPrepareRequestJsonSchema: z.core.ZodStandardJSONSchemaPaylo
|
|
|
6165
6170
|
deny_globs: z.ZodArray<z.ZodString>;
|
|
6166
6171
|
cross_repo_allowed: z.ZodBoolean;
|
|
6167
6172
|
}, z.core.$strict>;
|
|
6168
|
-
budget: z.ZodObject<{
|
|
6169
|
-
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
6170
|
-
max_tool_calls: z.ZodOptional<z.ZodNumber>;
|
|
6171
|
-
max_elapsed_ms: z.ZodOptional<z.ZodNumber>;
|
|
6172
|
-
}, z.core.$strict>;
|
|
6173
6173
|
verification: z.ZodArray<z.ZodObject<{
|
|
6174
6174
|
id: z.ZodString;
|
|
6175
6175
|
argv: z.ZodArray<z.ZodString>;
|
|
@@ -6177,6 +6177,11 @@ declare const AttemptPrepareRequestJsonSchema: z.core.ZodStandardJSONSchemaPaylo
|
|
|
6177
6177
|
depends_on: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6178
6178
|
expected_exit_codes: z.ZodArray<z.ZodNumber>;
|
|
6179
6179
|
}, z.core.$strict>>;
|
|
6180
|
+
budget: z.ZodObject<{
|
|
6181
|
+
max_tokens: z.ZodOptional<z.ZodNumber>;
|
|
6182
|
+
max_tool_calls: z.ZodOptional<z.ZodNumber>;
|
|
6183
|
+
max_elapsed_ms: z.ZodOptional<z.ZodNumber>;
|
|
6184
|
+
}, z.core.$strict>;
|
|
6180
6185
|
authority: z.ZodObject<{
|
|
6181
6186
|
edit: z.ZodBoolean;
|
|
6182
6187
|
git_write: z.ZodBoolean;
|
|
@@ -7129,9 +7134,9 @@ declare const AxfExternalAwaitResult_v1: z.ZodObject<{
|
|
|
7129
7134
|
name: z.ZodString;
|
|
7130
7135
|
appSlug: z.ZodNullable<z.ZodString>;
|
|
7131
7136
|
state: z.ZodEnum<{
|
|
7132
|
-
error: "error";
|
|
7133
7137
|
success: "success";
|
|
7134
7138
|
failure: "failure";
|
|
7139
|
+
error: "error";
|
|
7135
7140
|
completed: "completed";
|
|
7136
7141
|
pending: "pending";
|
|
7137
7142
|
missing: "missing";
|
|
@@ -7226,9 +7231,9 @@ declare const AttemptAwaitableTerminalResult_v1: z.ZodObject<{
|
|
|
7226
7231
|
name: z.ZodString;
|
|
7227
7232
|
appSlug: z.ZodNullable<z.ZodString>;
|
|
7228
7233
|
state: z.ZodEnum<{
|
|
7229
|
-
error: "error";
|
|
7230
7234
|
success: "success";
|
|
7231
7235
|
failure: "failure";
|
|
7236
|
+
error: "error";
|
|
7232
7237
|
completed: "completed";
|
|
7233
7238
|
pending: "pending";
|
|
7234
7239
|
missing: "missing";
|
|
@@ -7367,9 +7372,9 @@ declare const AttemptAwaitableRecord_v1: z.ZodObject<{
|
|
|
7367
7372
|
name: z.ZodString;
|
|
7368
7373
|
appSlug: z.ZodNullable<z.ZodString>;
|
|
7369
7374
|
state: z.ZodEnum<{
|
|
7370
|
-
error: "error";
|
|
7371
7375
|
success: "success";
|
|
7372
7376
|
failure: "failure";
|
|
7377
|
+
error: "error";
|
|
7373
7378
|
completed: "completed";
|
|
7374
7379
|
pending: "pending";
|
|
7375
7380
|
missing: "missing";
|
|
@@ -7473,9 +7478,9 @@ declare const AttemptAwaitableCompletion_v1: z.ZodObject<{
|
|
|
7473
7478
|
name: z.ZodString;
|
|
7474
7479
|
appSlug: z.ZodNullable<z.ZodString>;
|
|
7475
7480
|
state: z.ZodEnum<{
|
|
7476
|
-
error: "error";
|
|
7477
7481
|
success: "success";
|
|
7478
7482
|
failure: "failure";
|
|
7483
|
+
error: "error";
|
|
7479
7484
|
completed: "completed";
|
|
7480
7485
|
pending: "pending";
|
|
7481
7486
|
missing: "missing";
|
|
@@ -9098,6 +9103,12 @@ declare function detectProjectType(baseDir?: string): string;
|
|
|
9098
9103
|
*/
|
|
9099
9104
|
declare function getEnvironmentSuggestions(): string[];
|
|
9100
9105
|
|
|
9106
|
+
interface GateEvidenceArtifactReference {
|
|
9107
|
+
kind: "gate-evidence-manifest";
|
|
9108
|
+
path: string;
|
|
9109
|
+
sha256: string;
|
|
9110
|
+
}
|
|
9111
|
+
|
|
9101
9112
|
type GateExecutor = typeof executeGatesWithPolicy;
|
|
9102
9113
|
interface GateExecutionServiceInput {
|
|
9103
9114
|
plan: Plan;
|
|
@@ -9120,6 +9131,7 @@ interface BoundedGateRunResult {
|
|
|
9120
9131
|
name: string;
|
|
9121
9132
|
status: string;
|
|
9122
9133
|
failureKind?: "nonzero_exit" | "spawn_error" | "timeout" | "evidence_error";
|
|
9134
|
+
timeoutMs?: number;
|
|
9123
9135
|
timeoutCleanup?: {
|
|
9124
9136
|
method: "process-group" | "taskkill" | "direct-child";
|
|
9125
9137
|
forceKilled: boolean;
|
|
@@ -9131,15 +9143,15 @@ interface BoundedGateRunResult {
|
|
|
9131
9143
|
artifactRefs: Array<{
|
|
9132
9144
|
kind: "gate-results-directory";
|
|
9133
9145
|
path: string;
|
|
9134
|
-
}>;
|
|
9146
|
+
} | GateEvidenceArtifactReference>;
|
|
9135
9147
|
}
|
|
9136
9148
|
interface GateExecutionServiceResult {
|
|
9137
9149
|
summary: BoundedGateRunResult;
|
|
9138
9150
|
executionState: ExecutionState;
|
|
9139
9151
|
}
|
|
9140
9152
|
declare class GateExecutionServiceError extends Error {
|
|
9141
|
-
readonly code: "GATE_EXECUTION_FAILED" | "GATE_RESULT_LIMIT_EXCEEDED" | "GATE_SELECTION_NOT_FOUND";
|
|
9142
|
-
constructor(code: "GATE_EXECUTION_FAILED" | "GATE_RESULT_LIMIT_EXCEEDED" | "GATE_SELECTION_NOT_FOUND", message: string);
|
|
9153
|
+
readonly code: "GATE_EXECUTION_FAILED" | "GATE_RESULT_LIMIT_EXCEEDED" | "GATE_SELECTION_NOT_FOUND" | "GATE_TIMEOUT_INVALID" | "GATE_CANDIDATE_CHANGED";
|
|
9154
|
+
constructor(code: "GATE_EXECUTION_FAILED" | "GATE_RESULT_LIMIT_EXCEEDED" | "GATE_SELECTION_NOT_FOUND" | "GATE_TIMEOUT_INVALID" | "GATE_CANDIDATE_CHANGED", message: string);
|
|
9143
9155
|
}
|
|
9144
9156
|
/** One bounded transport-neutral owner for canonical CLI and MCP gate execution. */
|
|
9145
9157
|
declare class GateExecutionService {
|
|
@@ -9231,9 +9243,22 @@ interface BoundedIntegrationStatus {
|
|
|
9231
9243
|
policy?: Plan["policy"];
|
|
9232
9244
|
};
|
|
9233
9245
|
mergeSummary: ReturnType<MergeEligibilityEvaluator["getMergeSummary"]>;
|
|
9246
|
+
evidence?: GateEvidenceArtifactReference & {
|
|
9247
|
+
applied: number;
|
|
9248
|
+
authority: "unverified";
|
|
9249
|
+
observations: {
|
|
9250
|
+
passed: string[];
|
|
9251
|
+
failed: string[];
|
|
9252
|
+
other: string[];
|
|
9253
|
+
};
|
|
9254
|
+
};
|
|
9234
9255
|
}
|
|
9235
9256
|
declare class IntegrationStatusQueryService {
|
|
9236
|
-
run(plan: Plan
|
|
9257
|
+
run(plan: Plan, evidence?: {
|
|
9258
|
+
evidenceFile: string;
|
|
9259
|
+
evidenceSha256: string;
|
|
9260
|
+
repoRoot?: string;
|
|
9261
|
+
}): BoundedIntegrationStatus;
|
|
9237
9262
|
}
|
|
9238
9263
|
interface BoundedMergeOrderResult {
|
|
9239
9264
|
contract: "bounded-ax-v1";
|
|
@@ -9611,7 +9636,7 @@ declare class ConfigurationQueryService {
|
|
|
9611
9636
|
}): BoundedProfileResult;
|
|
9612
9637
|
}
|
|
9613
9638
|
|
|
9614
|
-
declare const INTEGRATION_RECORD_REMOVAL_VERSION: "
|
|
9639
|
+
declare const INTEGRATION_RECORD_REMOVAL_VERSION: "3.0.0";
|
|
9615
9640
|
declare const INTEGRATION_RECORD_REPLACEMENTS: {
|
|
9616
9641
|
readonly "lexrunner.startRun": "plan.create, gates.run, or merge.apply for integration; start_attempt for ADR-010 orchestration";
|
|
9617
9642
|
readonly "lexrunner.getStatus": "status for integration; get_attempt_status for ADR-010 orchestration";
|