@resolveio/server-lib 22.3.195 → 22.3.196
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/package.json +1 -1
- package/util/ai-run-evidence-adapters.js +78 -61
- package/util/ai-run-evidence-adapters.js.map +1 -1
- package/util/ai-runner-manager-policy.d.ts +20 -0
- package/util/ai-runner-manager-policy.js +39 -1
- package/util/ai-runner-manager-policy.js.map +1 -1
- package/util/aicoder-runner-v6.d.ts +1 -0
- package/util/aicoder-runner-v6.js +187 -39
- package/util/aicoder-runner-v6.js.map +1 -1
package/package.json
CHANGED
|
@@ -651,6 +651,9 @@ function hotfixCommitProofGate(evidence, now) {
|
|
|
651
651
|
channel: guard.channel || validation.channel,
|
|
652
652
|
status: guard.status,
|
|
653
653
|
passed: guard.passed,
|
|
654
|
+
commitFirstProtocol: guard.required ? 'commit_first_hotfix' : 'not_required',
|
|
655
|
+
commitFirstProtocolSatisfied: guard.required ? guard.passed === true : true,
|
|
656
|
+
liveHotfixBlockedUntilCommit: guard.required === true && guard.passed !== true,
|
|
654
657
|
managerMustCommitBeforeHotfix: guard.managerMustCommitBeforeHotfix,
|
|
655
658
|
sourceCommitSha: guard.sourceCommitSha,
|
|
656
659
|
githubCommitUrl: guard.githubCommitUrl,
|
|
@@ -780,6 +783,11 @@ function hotfixDurabilityContractGate(contractValue, now) {
|
|
|
780
783
|
canPrepareHotfixPatch: contract.canPrepareHotfixPatch,
|
|
781
784
|
canHotfixBackend: contract.canHotfixBackend,
|
|
782
785
|
liveHotfixBlockedUntilCommit: contract.liveHotfixBlockedUntilCommit,
|
|
786
|
+
durabilityProtocol: contract.durabilityProtocol,
|
|
787
|
+
commitFirstProtocolRequired: contract.commitFirstProtocolRequired,
|
|
788
|
+
commitFirstProtocolSatisfied: contract.commitFirstProtocolSatisfied,
|
|
789
|
+
liveHotfixAllowed: contract.liveHotfixAllowed,
|
|
790
|
+
managerContinuationAllowed: contract.managerContinuationAllowed,
|
|
783
791
|
commitProofPassed: contract.commitProofPassed,
|
|
784
792
|
commitProofStatus: contract.commitProofStatus,
|
|
785
793
|
missingCommitProofFields: contract.missingCommitProofFields,
|
|
@@ -874,7 +882,7 @@ function collectHotfixEvidenceEvents(sources, events, gates, now) {
|
|
|
874
882
|
}
|
|
875
883
|
}
|
|
876
884
|
function hotfixDurabilityMetadata(gates) {
|
|
877
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4;
|
|
885
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12;
|
|
878
886
|
var hotfixGate = gates.find(function (gate) { return gate.key === 'hotfix_evidence'; });
|
|
879
887
|
var commitGate = gates.find(function (gate) { return gate.key === 'hotfix_commit_proof'; });
|
|
880
888
|
var durabilityGate = gates.find(function (gate) { return gate.key === 'hotfix_durability_contract'; });
|
|
@@ -889,25 +897,30 @@ function hotfixDurabilityMetadata(gates) {
|
|
|
889
897
|
canPrepareHotfixPatch: ((_c = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _c === void 0 ? void 0 : _c.canPrepareHotfixPatch) === true,
|
|
890
898
|
canHotfixBackend: ((_d = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _d === void 0 ? void 0 : _d.canHotfixBackend) === true,
|
|
891
899
|
liveHotfixBlockedUntilCommit: ((_e = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _e === void 0 ? void 0 : _e.liveHotfixBlockedUntilCommit) === true,
|
|
900
|
+
durabilityProtocol: cleanText((_f = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _f === void 0 ? void 0 : _f.durabilityProtocol, 120),
|
|
901
|
+
commitFirstProtocolRequired: ((_g = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _g === void 0 ? void 0 : _g.commitFirstProtocolRequired) === true,
|
|
902
|
+
commitFirstProtocolSatisfied: ((_h = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _h === void 0 ? void 0 : _h.commitFirstProtocolSatisfied) === true || ((_j = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _j === void 0 ? void 0 : _j.commitFirstProtocolSatisfied) === true,
|
|
903
|
+
liveHotfixAllowed: ((_k = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _k === void 0 ? void 0 : _k.liveHotfixAllowed) === true || (((_l = hotfixGate === null || hotfixGate === void 0 ? void 0 : hotfixGate.metadata) === null || _l === void 0 ? void 0 : _l.hotfixSatisfied) === true && ((_m = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _m === void 0 ? void 0 : _m.commitFirstProtocolSatisfied) === true),
|
|
904
|
+
managerContinuationAllowed: ((_o = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _o === void 0 ? void 0 : _o.managerContinuationAllowed) === true,
|
|
892
905
|
hotfixEvidenceStatus: cleanText(hotfixGate === null || hotfixGate === void 0 ? void 0 : hotfixGate.status, 80),
|
|
893
|
-
hotfixSatisfied: ((
|
|
894
|
-
fullDeployBlocked: ((
|
|
895
|
-
fullDeployAllowed: ((
|
|
906
|
+
hotfixSatisfied: ((_p = hotfixGate === null || hotfixGate === void 0 ? void 0 : hotfixGate.metadata) === null || _p === void 0 ? void 0 : _p.hotfixSatisfied) === true,
|
|
907
|
+
fullDeployBlocked: ((_q = hotfixGate === null || hotfixGate === void 0 ? void 0 : hotfixGate.metadata) === null || _q === void 0 ? void 0 : _q.fullDeployBlocked) === true,
|
|
908
|
+
fullDeployAllowed: ((_r = hotfixGate === null || hotfixGate === void 0 ? void 0 : hotfixGate.metadata) === null || _r === void 0 ? void 0 : _r.fullDeployAllowed) === true,
|
|
896
909
|
commitProofRequired: !!commitGate || !!durabilityGate,
|
|
897
|
-
commitProofStatus: cleanText((commitGate === null || commitGate === void 0 ? void 0 : commitGate.status) || ((
|
|
898
|
-
commitProofPassed: ((
|
|
910
|
+
commitProofStatus: cleanText((commitGate === null || commitGate === void 0 ? void 0 : commitGate.status) || ((_s = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _s === void 0 ? void 0 : _s.commitProofStatus), 80),
|
|
911
|
+
commitProofPassed: ((_t = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _t === void 0 ? void 0 : _t.passed) === true || ((_u = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _u === void 0 ? void 0 : _u.commitProofPassed) === true,
|
|
899
912
|
commitBlocked: commitBlocked,
|
|
900
|
-
channel: cleanText(((
|
|
901
|
-
sourceCommitSha: cleanText(((
|
|
902
|
-
githubCommitUrl: cleanText(((
|
|
903
|
-
gitCommitStatus: cleanText(((
|
|
904
|
-
gitPushStatus: cleanText(((
|
|
905
|
-
blockers: cleanStringList(__spreadArray(__spreadArray(__spreadArray([], __read(asArray((
|
|
906
|
-
requiredEvidence: cleanStringList(((
|
|
907
|
-
nextCommands: cleanStringList((
|
|
913
|
+
channel: cleanText(((_v = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _v === void 0 ? void 0 : _v.channel) || ((_w = hotfixGate === null || hotfixGate === void 0 ? void 0 : hotfixGate.metadata) === null || _w === void 0 ? void 0 : _w.channel), 120),
|
|
914
|
+
sourceCommitSha: cleanText(((_x = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _x === void 0 ? void 0 : _x.sourceCommitSha) || ((_y = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _y === void 0 ? void 0 : _y.sourceCommitSha), 200),
|
|
915
|
+
githubCommitUrl: cleanText(((_z = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _z === void 0 ? void 0 : _z.githubCommitUrl) || ((_0 = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _0 === void 0 ? void 0 : _0.githubCommitUrl), 500),
|
|
916
|
+
gitCommitStatus: cleanText(((_1 = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _1 === void 0 ? void 0 : _1.gitCommitStatus) || ((_2 = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _2 === void 0 ? void 0 : _2.gitCommitStatus), 120),
|
|
917
|
+
gitPushStatus: cleanText(((_3 = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _3 === void 0 ? void 0 : _3.gitPushStatus) || ((_4 = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _4 === void 0 ? void 0 : _4.gitPushStatus), 120),
|
|
918
|
+
blockers: cleanStringList(__spreadArray(__spreadArray(__spreadArray([], __read(asArray((_5 = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _5 === void 0 ? void 0 : _5.missingCommitProofFields)), false), __read(asArray((_6 = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _6 === void 0 ? void 0 : _6.blockers)), false), __read(asArray((_7 = hotfixGate === null || hotfixGate === void 0 ? void 0 : hotfixGate.metadata) === null || _7 === void 0 ? void 0 : _7.blockers)), false), 20, 500),
|
|
919
|
+
requiredEvidence: cleanStringList(((_8 = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _8 === void 0 ? void 0 : _8.requiredEvidence) || ((_9 = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _9 === void 0 ? void 0 : _9.requiredFields), 20, 500),
|
|
920
|
+
nextCommands: cleanStringList((_10 = commitGate === null || commitGate === void 0 ? void 0 : commitGate.metadata) === null || _10 === void 0 ? void 0 : _10.nextCommands, 20, 240),
|
|
908
921
|
nextAction: commitBlocked
|
|
909
|
-
? cleanText((
|
|
910
|
-
: cleanText((
|
|
922
|
+
? cleanText((_11 = durabilityGate === null || durabilityGate === void 0 ? void 0 : durabilityGate.metadata) === null || _11 === void 0 ? void 0 : _11.nextSafeAction, 200) || 'Commit and push the hotfix to GitHub, record sourceCommitSha/githubCommitUrl/gitCommitStatus/gitPushStatus, then rerun the smallest verification gate.'
|
|
923
|
+
: cleanText((_12 = hotfixGate === null || hotfixGate === void 0 ? void 0 : hotfixGate.metadata) === null || _12 === void 0 ? void 0 : _12.nextAction, 1000)
|
|
911
924
|
};
|
|
912
925
|
}
|
|
913
926
|
function collectUsageEvents(entries, events) {
|
|
@@ -2471,6 +2484,8 @@ function aicoderJourneyContractGate(validation, evidence, now) {
|
|
|
2471
2484
|
valid: validation.valid,
|
|
2472
2485
|
primaryWorkflowId: cleanText(validation.primaryWorkflowId, 200),
|
|
2473
2486
|
workflowQaRowCount: validation.workflowQaRows.length,
|
|
2487
|
+
workflowQaCoverageTags: cleanStringList(validation.workflowQaRows.flatMap(function (row) { return asArray(row.coverageTags || row.coverage_tags); }), 80, 120),
|
|
2488
|
+
workflowQaProofKinds: cleanStringList(validation.workflowQaRows.map(function (row) { return row.proofKind || row.proof_kind; }), 80, 120),
|
|
2474
2489
|
errorCount: errorIssues.length,
|
|
2475
2490
|
warningCount: warningIssues.length,
|
|
2476
2491
|
issueCodes: cleanStringList(validation.issues.map(function (issue) { return issue.code; }), 40, 120),
|
|
@@ -3663,7 +3678,7 @@ function buildSupportAIRunFromEvidence(input) {
|
|
|
3663
3678
|
}
|
|
3664
3679
|
function buildAICoderAIRunFromEvidence(input) {
|
|
3665
3680
|
var e_34, _a;
|
|
3666
|
-
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28;
|
|
3681
|
+
var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30;
|
|
3667
3682
|
var app = input.app || {};
|
|
3668
3683
|
var job = input.job || {};
|
|
3669
3684
|
var evidence = buildAICoderQaEvidence(input);
|
|
@@ -3674,8 +3689,8 @@ function buildAICoderAIRunFromEvidence(input) {
|
|
|
3674
3689
|
addSourceId(sourceIds, 'jobId', job._id || job.id || job.jobId);
|
|
3675
3690
|
addSourceId(sourceIds, 'domain', app.domain || app.customDomain || job.domain);
|
|
3676
3691
|
try {
|
|
3677
|
-
for (var
|
|
3678
|
-
var log =
|
|
3692
|
+
for (var _31 = __values(asArray(input.logs)), _32 = _31.next(); !_32.done; _32 = _31.next()) {
|
|
3693
|
+
var log = _32.value;
|
|
3679
3694
|
pushEvent(events, {
|
|
3680
3695
|
type: log.type === 'scorecard' ? 'scorecard' : 'log',
|
|
3681
3696
|
category: cleanText(log.category || log.phase || log.level, 160),
|
|
@@ -3693,7 +3708,7 @@ function buildAICoderAIRunFromEvidence(input) {
|
|
|
3693
3708
|
catch (e_34_1) { e_34 = { error: e_34_1 }; }
|
|
3694
3709
|
finally {
|
|
3695
3710
|
try {
|
|
3696
|
-
if (
|
|
3711
|
+
if (_32 && !_32.done && (_a = _31.return)) _a.call(_31);
|
|
3697
3712
|
}
|
|
3698
3713
|
finally { if (e_34) throw e_34.error; }
|
|
3699
3714
|
}
|
|
@@ -3836,14 +3851,16 @@ function buildAICoderAIRunFromEvidence(input) {
|
|
|
3836
3851
|
path: cleanText((_k = journeyContractGate.metadata) === null || _k === void 0 ? void 0 : _k.path, 500),
|
|
3837
3852
|
primaryWorkflowId: cleanText((_l = journeyContractGate.metadata) === null || _l === void 0 ? void 0 : _l.primaryWorkflowId, 200),
|
|
3838
3853
|
workflowQaRowCount: Number(((_m = journeyContractGate.metadata) === null || _m === void 0 ? void 0 : _m.workflowQaRowCount) || 0),
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3854
|
+
workflowQaCoverageTags: cleanStringList((_o = journeyContractGate.metadata) === null || _o === void 0 ? void 0 : _o.workflowQaCoverageTags, 80, 120),
|
|
3855
|
+
workflowQaProofKinds: cleanStringList((_p = journeyContractGate.metadata) === null || _p === void 0 ? void 0 : _p.workflowQaProofKinds, 80, 120),
|
|
3856
|
+
errorCount: Number(((_q = journeyContractGate.metadata) === null || _q === void 0 ? void 0 : _q.errorCount) || 0),
|
|
3857
|
+
warningCount: Number(((_r = journeyContractGate.metadata) === null || _r === void 0 ? void 0 : _r.warningCount) || 0),
|
|
3858
|
+
issueCodes: cleanStringList((_s = journeyContractGate.metadata) === null || _s === void 0 ? void 0 : _s.issueCodes, 40, 120),
|
|
3859
|
+
blocksBuildUntilValid: ((_t = journeyContractGate.metadata) === null || _t === void 0 ? void 0 : _t.blocksBuildUntilValid) === true,
|
|
3860
|
+
blocksWorkflowQaUntilValid: ((_u = journeyContractGate.metadata) === null || _u === void 0 ? void 0 : _u.blocksWorkflowQaUntilValid) === true,
|
|
3861
|
+
blocksWowUiUntilWorkflowProof: ((_v = journeyContractGate.metadata) === null || _v === void 0 ? void 0 : _v.blocksWowUiUntilWorkflowProof) === true,
|
|
3862
|
+
blocksPublishUntilWorkflowProof: ((_w = journeyContractGate.metadata) === null || _w === void 0 ? void 0 : _w.blocksPublishUntilWorkflowProof) === true,
|
|
3863
|
+
nextAction: cleanText((_x = journeyContractGate.metadata) === null || _x === void 0 ? void 0 : _x.nextAction, 1000)
|
|
3847
3864
|
},
|
|
3848
3865
|
workflowProofReadiness: {
|
|
3849
3866
|
ready: workflowReadiness.ready,
|
|
@@ -3861,43 +3878,43 @@ function buildAICoderAIRunFromEvidence(input) {
|
|
|
3861
3878
|
proofFreshness: workflowReadiness.proofFreshness
|
|
3862
3879
|
},
|
|
3863
3880
|
workflowProofCheckpoint: workflowProofCheckpointGate ? {
|
|
3864
|
-
status: cleanText((
|
|
3881
|
+
status: cleanText((_y = workflowProofCheckpointGate.metadata) === null || _y === void 0 ? void 0 : _y.status, 120),
|
|
3865
3882
|
gateStatus: workflowProofCheckpointGate.status,
|
|
3866
|
-
readinessStatus: cleanText((
|
|
3867
|
-
nextGate: cleanText((
|
|
3868
|
-
nextAction: cleanText((
|
|
3869
|
-
blocksProductRepairUntilJourneyContract: ((
|
|
3870
|
-
blocksPublishUntilWorkflowProof: ((
|
|
3871
|
-
blocksPublishUntilReleaseGate: ((
|
|
3872
|
-
blocksWowUiUntilWorkflowProof: ((
|
|
3873
|
-
workflowProofFingerprint: cleanText((
|
|
3874
|
-
artifactFingerprint: cleanText((
|
|
3875
|
-
blockers: cleanStringList((
|
|
3883
|
+
readinessStatus: cleanText((_z = workflowProofCheckpointGate.metadata) === null || _z === void 0 ? void 0 : _z.readinessStatus, 120),
|
|
3884
|
+
nextGate: cleanText((_0 = workflowProofCheckpointGate.metadata) === null || _0 === void 0 ? void 0 : _0.nextGate, 120),
|
|
3885
|
+
nextAction: cleanText((_1 = workflowProofCheckpointGate.metadata) === null || _1 === void 0 ? void 0 : _1.nextAction, 1000),
|
|
3886
|
+
blocksProductRepairUntilJourneyContract: ((_2 = workflowProofCheckpointGate.metadata) === null || _2 === void 0 ? void 0 : _2.blocksProductRepairUntilJourneyContract) === true,
|
|
3887
|
+
blocksPublishUntilWorkflowProof: ((_3 = workflowProofCheckpointGate.metadata) === null || _3 === void 0 ? void 0 : _3.blocksPublishUntilWorkflowProof) === true,
|
|
3888
|
+
blocksPublishUntilReleaseGate: ((_4 = workflowProofCheckpointGate.metadata) === null || _4 === void 0 ? void 0 : _4.blocksPublishUntilReleaseGate) === true,
|
|
3889
|
+
blocksWowUiUntilWorkflowProof: ((_5 = workflowProofCheckpointGate.metadata) === null || _5 === void 0 ? void 0 : _5.blocksWowUiUntilWorkflowProof) === true,
|
|
3890
|
+
workflowProofFingerprint: cleanText((_6 = workflowProofCheckpointGate.metadata) === null || _6 === void 0 ? void 0 : _6.workflowProofFingerprint, 200),
|
|
3891
|
+
artifactFingerprint: cleanText((_7 = workflowProofCheckpointGate.metadata) === null || _7 === void 0 ? void 0 : _7.artifactFingerprint, 200),
|
|
3892
|
+
blockers: cleanStringList((_8 = workflowProofCheckpointGate.metadata) === null || _8 === void 0 ? void 0 : _8.blockers, 20, 500)
|
|
3876
3893
|
} : undefined,
|
|
3877
3894
|
nextActionContract: nextActionContractGate ? {
|
|
3878
3895
|
gateStatus: nextActionContractGate.status,
|
|
3879
|
-
contractId: cleanText((
|
|
3880
|
-
action: cleanText((
|
|
3881
|
-
label: cleanText((
|
|
3882
|
-
primaryCommand: cleanText((
|
|
3883
|
-
lane: cleanText((
|
|
3884
|
-
stepType: cleanText((
|
|
3885
|
-
safeToAutoRun: ((
|
|
3886
|
-
requiresHumanApproval: ((
|
|
3887
|
-
canRunWithoutCodexMonitor: ((
|
|
3888
|
-
codexFallbackRequired: ((
|
|
3889
|
-
costRisk: cleanText((
|
|
3890
|
-
workflowFirstSatisfied: ((
|
|
3891
|
-
hotfixCommitRequired: ((
|
|
3892
|
-
liveHotfixBlockedUntilCommit: ((
|
|
3893
|
-
decisionBasis: plainObject((
|
|
3894
|
-
preconditions: cleanStringList((
|
|
3895
|
-
successEvidence: cleanStringList((
|
|
3896
|
-
requiredHotfixCommitProof: cleanStringList((
|
|
3897
|
-
stopConditions: cleanStringList((
|
|
3898
|
-
forbiddenActions: cleanStringList((
|
|
3899
|
-
nextCommands: cleanStringList((
|
|
3900
|
-
blockers: cleanStringList((
|
|
3896
|
+
contractId: cleanText((_9 = nextActionContractGate.metadata) === null || _9 === void 0 ? void 0 : _9.contractId, 200),
|
|
3897
|
+
action: cleanText((_10 = nextActionContractGate.metadata) === null || _10 === void 0 ? void 0 : _10.action, 120),
|
|
3898
|
+
label: cleanText((_11 = nextActionContractGate.metadata) === null || _11 === void 0 ? void 0 : _11.label, 200),
|
|
3899
|
+
primaryCommand: cleanText((_12 = nextActionContractGate.metadata) === null || _12 === void 0 ? void 0 : _12.primaryCommand, 200),
|
|
3900
|
+
lane: cleanText((_13 = nextActionContractGate.metadata) === null || _13 === void 0 ? void 0 : _13.lane, 120),
|
|
3901
|
+
stepType: cleanText((_14 = nextActionContractGate.metadata) === null || _14 === void 0 ? void 0 : _14.stepType, 120),
|
|
3902
|
+
safeToAutoRun: ((_15 = nextActionContractGate.metadata) === null || _15 === void 0 ? void 0 : _15.safeToAutoRun) === true,
|
|
3903
|
+
requiresHumanApproval: ((_16 = nextActionContractGate.metadata) === null || _16 === void 0 ? void 0 : _16.requiresHumanApproval) === true,
|
|
3904
|
+
canRunWithoutCodexMonitor: ((_17 = nextActionContractGate.metadata) === null || _17 === void 0 ? void 0 : _17.canRunWithoutCodexMonitor) === true,
|
|
3905
|
+
codexFallbackRequired: ((_18 = nextActionContractGate.metadata) === null || _18 === void 0 ? void 0 : _18.codexFallbackRequired) === true,
|
|
3906
|
+
costRisk: cleanText((_19 = nextActionContractGate.metadata) === null || _19 === void 0 ? void 0 : _19.costRisk, 120),
|
|
3907
|
+
workflowFirstSatisfied: ((_20 = nextActionContractGate.metadata) === null || _20 === void 0 ? void 0 : _20.workflowFirstSatisfied) === true,
|
|
3908
|
+
hotfixCommitRequired: ((_21 = nextActionContractGate.metadata) === null || _21 === void 0 ? void 0 : _21.hotfixCommitRequired) === true,
|
|
3909
|
+
liveHotfixBlockedUntilCommit: ((_22 = nextActionContractGate.metadata) === null || _22 === void 0 ? void 0 : _22.liveHotfixBlockedUntilCommit) === true,
|
|
3910
|
+
decisionBasis: plainObject((_23 = nextActionContractGate.metadata) === null || _23 === void 0 ? void 0 : _23.decisionBasis),
|
|
3911
|
+
preconditions: cleanStringList((_24 = nextActionContractGate.metadata) === null || _24 === void 0 ? void 0 : _24.preconditions, 20, 500),
|
|
3912
|
+
successEvidence: cleanStringList((_25 = nextActionContractGate.metadata) === null || _25 === void 0 ? void 0 : _25.successEvidence, 20, 500),
|
|
3913
|
+
requiredHotfixCommitProof: cleanStringList((_26 = nextActionContractGate.metadata) === null || _26 === void 0 ? void 0 : _26.requiredHotfixCommitProof, 20, 240),
|
|
3914
|
+
stopConditions: cleanStringList((_27 = nextActionContractGate.metadata) === null || _27 === void 0 ? void 0 : _27.stopConditions, 20, 500),
|
|
3915
|
+
forbiddenActions: cleanStringList((_28 = nextActionContractGate.metadata) === null || _28 === void 0 ? void 0 : _28.forbiddenActions, 20, 500),
|
|
3916
|
+
nextCommands: cleanStringList((_29 = nextActionContractGate.metadata) === null || _29 === void 0 ? void 0 : _29.nextCommands, 20, 240),
|
|
3917
|
+
blockers: cleanStringList((_30 = nextActionContractGate.metadata) === null || _30 === void 0 ? void 0 : _30.blockers, 20, 500)
|
|
3901
3918
|
} : undefined
|
|
3902
3919
|
}
|
|
3903
3920
|
});
|