@smartergpt/lexrunner 1.2.1 → 1.4.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 +55 -0
- package/README.mcp.md +79 -8
- package/README.md +13 -6
- package/dist/{adapters-DciX_uRh.d.ts → adapters-r7_TjMwo.d.ts} +2 -0
- package/dist/{autopilot-APNRAJTS.js → autopilot-JXO4MZ6H.js} +3 -3
- package/dist/{chunk-L7YDEIPO.js → chunk-26SCN2LJ.js} +17 -3
- package/dist/{chunk-6TB2UCBZ.js → chunk-VAGHAQT2.js} +1 -1
- package/dist/{chunk-6HASN2LZ.js → chunk-WSJEPY7T.js} +84 -35
- package/dist/cli.cjs +13939 -7748
- package/dist/cli.d.ts +2166 -126
- package/dist/cli.js +13875 -8096
- package/dist/{commandValidator-VHBB2H3K.js → commandValidator-LVEMJTZP.js} +1 -1
- package/dist/errors/index.cjs +17 -3
- package/dist/errors/index.d.ts +7 -1
- package/dist/errors/index.js +1 -1
- package/dist/frames/index.cjs +328 -129
- package/dist/{planReview-LQM6AUBE.js → planReview-UUMCGZJ6.js} +2 -2
- package/dist/{planViewer-57DTN5YT.js → planViewer-TRSQVMH4.js} +2 -2
- package/dist/sdk/index.d.ts +6 -6
- package/dist/{security-BKLPEVOC.js → security-OE4VLUFK.js} +1 -1
- package/mcp-server.mjs +119 -64
- package/package.json +8 -2
package/dist/errors/index.cjs
CHANGED
|
@@ -384,15 +384,23 @@ function gitOperationError(ctx) {
|
|
|
384
384
|
}
|
|
385
385
|
function planValidationError(ctx) {
|
|
386
386
|
const nextActions = ["Review the plan file for schema violations"];
|
|
387
|
+
const errorCount = ctx.errorCount ?? ctx.errors.length;
|
|
387
388
|
if (ctx.planPath) {
|
|
388
389
|
nextActions.push(`Plan file: ${ctx.planPath}`);
|
|
389
390
|
}
|
|
390
|
-
|
|
391
|
+
if (ctx.errors.length > 0) {
|
|
392
|
+
nextActions.push(`Errors: ${ctx.errors.join("; ")}`);
|
|
393
|
+
}
|
|
394
|
+
if (ctx.errorsTruncated) {
|
|
395
|
+
nextActions.push(
|
|
396
|
+
`Only the first ${ctx.errors.length} of ${errorCount} validation errors are included`
|
|
397
|
+
);
|
|
398
|
+
}
|
|
391
399
|
return createAXError(
|
|
392
400
|
ErrorCodes.PLAN_VALIDATION_FAILED,
|
|
393
|
-
`Plan validation failed with ${
|
|
401
|
+
`Plan validation failed with ${errorCount} error(s)`,
|
|
394
402
|
nextActions,
|
|
395
|
-
{ ...ctx }
|
|
403
|
+
{ ...ctx, errorCount, errorsTruncated: ctx.errorsTruncated ?? false }
|
|
396
404
|
);
|
|
397
405
|
}
|
|
398
406
|
function toAXError(error, code = ErrorCodes.INTERNAL_ERROR, nextActions) {
|
|
@@ -739,6 +747,12 @@ var ErrorCodes = {
|
|
|
739
747
|
PLAN_VALIDATION_FAILED: "PLAN_VALIDATION_FAILED",
|
|
740
748
|
/** Plan file not found */
|
|
741
749
|
PLAN_NOT_FOUND: "PLAN_NOT_FOUND",
|
|
750
|
+
/** Explicit plan reference is empty, overlong, or otherwise invalid */
|
|
751
|
+
PLAN_REFERENCE_INVALID: "PLAN_REFERENCE_INVALID",
|
|
752
|
+
/** Plan reference exists but cannot be read as a bounded regular file */
|
|
753
|
+
PLAN_UNREADABLE: "PLAN_UNREADABLE",
|
|
754
|
+
/** Plan exceeds the bounded integration artifact limits */
|
|
755
|
+
PLAN_ARTIFACT_LIMIT_EXCEEDED: "PLAN_ARTIFACT_LIMIT_EXCEEDED",
|
|
742
756
|
/** Cycle detected in plan item dependencies */
|
|
743
757
|
PLAN_CYCLE_DETECTED: "PLAN_CYCLE_DETECTED",
|
|
744
758
|
/** Referenced dependency not found in plan */
|
package/dist/errors/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { AXError, AXErrorException, AXErrorSchema, createAXError, isAXError, isAXErrorException, wrapAsAXError } from '@smartergpt/lex/errors';
|
|
2
|
-
export { C as CycleDetectedContext, G as GateFailureContext, a as GitHubErrorContext, b as GitOperationContext, c as GovernanceContext, M as MCPErrorContext, d as MergeConflictContext, P as PlanValidationContext, R as RunNotFoundContext, S as SecurityAuthContext, e as SecurityCommandBlockedContext, f as SecurityComplianceViolationContext, g as SecuritySarifParseErrorContext, h as SecurityScanFailedContext, i as SecuritySecretDetectedContext, j as SecuritySecretNotFoundContext, k as SecurityUnauthorizedContext, T as ToolBudgetExceededContext, U as UnknownDependencyContext, W as WeaveLockConflictContext, l as WeavePreflightFailedContext, n as WeaveStateInvalidContext, o as WithGovernance, p as configInvalidError, q as cycleDetectedError, r as gateFailedError, s as gitOperationError, t as githubApiError, m as mcpToolError, u as mergeConflictError, v as planNotFoundError, w as planValidationError, x as profileNotFoundError, y as runNotFoundError, z as securityAuthFailedError, A as securityCommandBlockedError, B as securityComplianceViolationError, D as securitySarifParseError, E as securityScanFailedError, F as securitySecretDetectedError, H as securitySecretNotFoundError, I as securityUnauthorizedError, J as throwAXError, K as toAXError, L as toolBudgetExceededError, N as unknownDependencyError, O as weaveLockConflictError, Q as weavePreflightFailedError, V as weaveStateInvalidError, X as writeProtectionError } from '../adapters-
|
|
2
|
+
export { C as CycleDetectedContext, G as GateFailureContext, a as GitHubErrorContext, b as GitOperationContext, c as GovernanceContext, M as MCPErrorContext, d as MergeConflictContext, P as PlanValidationContext, R as RunNotFoundContext, S as SecurityAuthContext, e as SecurityCommandBlockedContext, f as SecurityComplianceViolationContext, g as SecuritySarifParseErrorContext, h as SecurityScanFailedContext, i as SecuritySecretDetectedContext, j as SecuritySecretNotFoundContext, k as SecurityUnauthorizedContext, T as ToolBudgetExceededContext, U as UnknownDependencyContext, W as WeaveLockConflictContext, l as WeavePreflightFailedContext, n as WeaveStateInvalidContext, o as WithGovernance, p as configInvalidError, q as cycleDetectedError, r as gateFailedError, s as gitOperationError, t as githubApiError, m as mcpToolError, u as mergeConflictError, v as planNotFoundError, w as planValidationError, x as profileNotFoundError, y as runNotFoundError, z as securityAuthFailedError, A as securityCommandBlockedError, B as securityComplianceViolationError, D as securitySarifParseError, E as securityScanFailedError, F as securitySecretDetectedError, H as securitySecretNotFoundError, I as securityUnauthorizedError, J as throwAXError, K as toAXError, L as toolBudgetExceededError, N as unknownDependencyError, O as weaveLockConflictError, Q as weavePreflightFailedError, V as weaveStateInvalidError, X as writeProtectionError } from '../adapters-r7_TjMwo.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -47,6 +47,12 @@ declare const ErrorCodes: {
|
|
|
47
47
|
readonly PLAN_VALIDATION_FAILED: "PLAN_VALIDATION_FAILED";
|
|
48
48
|
/** Plan file not found */
|
|
49
49
|
readonly PLAN_NOT_FOUND: "PLAN_NOT_FOUND";
|
|
50
|
+
/** Explicit plan reference is empty, overlong, or otherwise invalid */
|
|
51
|
+
readonly PLAN_REFERENCE_INVALID: "PLAN_REFERENCE_INVALID";
|
|
52
|
+
/** Plan reference exists but cannot be read as a bounded regular file */
|
|
53
|
+
readonly PLAN_UNREADABLE: "PLAN_UNREADABLE";
|
|
54
|
+
/** Plan exceeds the bounded integration artifact limits */
|
|
55
|
+
readonly PLAN_ARTIFACT_LIMIT_EXCEEDED: "PLAN_ARTIFACT_LIMIT_EXCEEDED";
|
|
50
56
|
/** Cycle detected in plan item dependencies */
|
|
51
57
|
readonly PLAN_CYCLE_DETECTED: "PLAN_CYCLE_DETECTED";
|
|
52
58
|
/** Referenced dependency not found in plan */
|