@resolveio/server-lib 22.3.187 → 22.3.188

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@resolveio/server-lib",
3
- "version": "22.3.187",
3
+ "version": "22.3.188",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "package": "./build_package.sh",
@@ -2299,7 +2299,7 @@ function aicoderNextActionContractObject(app, job, evidence) {
2299
2299
  return evidenceObject(continuationDecision.nextActionContract, continuationDecision.next_action_contract, job.nextActionContract, job.next_action_contract, job.aicoderNextActionContract, job.aicoder_next_action_contract, job.aiCoderNextActionContract, job.ai_coder_next_action_contract, app.nextActionContract, app.next_action_contract, evidence.nextActionContract, evidence.next_action_contract, evidence.aicoderNextActionContract, evidence.aicoder_next_action_contract);
2300
2300
  }
2301
2301
  function aicoderNextActionContractGate(contract, now) {
2302
- var _a, _b, _c, _d, _e;
2302
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
2303
2303
  if (!contract || !Object.keys(contract).length) {
2304
2304
  return undefined;
2305
2305
  }
@@ -2339,10 +2339,13 @@ function aicoderNextActionContractGate(contract, now) {
2339
2339
  codexFallbackReason: cleanText(contract.codexFallbackReason || contract.codex_fallback_reason, 1000),
2340
2340
  costRisk: cleanText(contract.costRisk || contract.cost_risk, 120),
2341
2341
  workflowFirstSatisfied: booleanFlag((_e = contract.workflowFirstSatisfied) !== null && _e !== void 0 ? _e : contract.workflow_first_satisfied) === true,
2342
+ hotfixCommitRequired: booleanFlag((_h = (_g = (_f = contract.hotfixCommitRequired) !== null && _f !== void 0 ? _f : contract.hotfix_commit_required) !== null && _g !== void 0 ? _g : plainObject(contract.decisionBasis || contract.decision_basis).hotfixCommitRequired) !== null && _h !== void 0 ? _h : plainObject(contract.decisionBasis || contract.decision_basis).hotfix_commit_required) === true,
2343
+ liveHotfixBlockedUntilCommit: booleanFlag((_l = (_k = (_j = contract.liveHotfixBlockedUntilCommit) !== null && _j !== void 0 ? _j : contract.live_hotfix_blocked_until_commit) !== null && _k !== void 0 ? _k : plainObject(contract.decisionBasis || contract.decision_basis).liveHotfixBlockedUntilCommit) !== null && _l !== void 0 ? _l : plainObject(contract.decisionBasis || contract.decision_basis).live_hotfix_blocked_until_commit) === true,
2342
2344
  decisionBasis: plainObject(contract.decisionBasis || contract.decision_basis),
2343
2345
  preconditions: cleanStringList(contract.preconditions, 40, 500),
2344
2346
  expectedStateTransition: cleanText(contract.expectedStateTransition || contract.expected_state_transition, 1000),
2345
2347
  successEvidence: cleanStringList(contract.successEvidence || contract.success_evidence, 40, 500),
2348
+ requiredHotfixCommitProof: cleanStringList(contract.requiredHotfixCommitProof || contract.required_hotfix_commit_proof, 20, 240),
2346
2349
  stopConditions: cleanStringList(contract.stopConditions || contract.stop_conditions, 40, 500),
2347
2350
  forbiddenActions: cleanStringList(contract.forbiddenActions || contract.forbidden_actions, 40, 500),
2348
2351
  nextCommands: cleanStringList(contract.nextCommands || contract.next_commands, 40, 240),
@@ -3068,7 +3071,7 @@ function buildSupportAIRunFromEvidence(input) {
3068
3071
  }
3069
3072
  function buildAICoderAIRunFromEvidence(input) {
3070
3073
  var e_30, _a;
3071
- 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;
3074
+ 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;
3072
3075
  var app = input.app || {};
3073
3076
  var job = input.job || {};
3074
3077
  var evidence = buildAICoderQaEvidence(input);
@@ -3079,8 +3082,8 @@ function buildAICoderAIRunFromEvidence(input) {
3079
3082
  addSourceId(sourceIds, 'jobId', job._id || job.id || job.jobId);
3080
3083
  addSourceId(sourceIds, 'domain', app.domain || app.customDomain || job.domain);
3081
3084
  try {
3082
- for (var _26 = __values(asArray(input.logs)), _27 = _26.next(); !_27.done; _27 = _26.next()) {
3083
- var log = _27.value;
3085
+ for (var _29 = __values(asArray(input.logs)), _30 = _29.next(); !_30.done; _30 = _29.next()) {
3086
+ var log = _30.value;
3084
3087
  pushEvent(events, {
3085
3088
  type: log.type === 'scorecard' ? 'scorecard' : 'log',
3086
3089
  category: cleanText(log.category || log.phase || log.level, 160),
@@ -3098,7 +3101,7 @@ function buildAICoderAIRunFromEvidence(input) {
3098
3101
  catch (e_30_1) { e_30 = { error: e_30_1 }; }
3099
3102
  finally {
3100
3103
  try {
3101
- if (_27 && !_27.done && (_a = _26.return)) _a.call(_26);
3104
+ if (_30 && !_30.done && (_a = _29.return)) _a.call(_29);
3102
3105
  }
3103
3106
  finally { if (e_30) throw e_30.error; }
3104
3107
  }
@@ -3293,13 +3296,16 @@ function buildAICoderAIRunFromEvidence(input) {
3293
3296
  codexFallbackRequired: ((_16 = nextActionContractGate.metadata) === null || _16 === void 0 ? void 0 : _16.codexFallbackRequired) === true,
3294
3297
  costRisk: cleanText((_17 = nextActionContractGate.metadata) === null || _17 === void 0 ? void 0 : _17.costRisk, 120),
3295
3298
  workflowFirstSatisfied: ((_18 = nextActionContractGate.metadata) === null || _18 === void 0 ? void 0 : _18.workflowFirstSatisfied) === true,
3296
- decisionBasis: plainObject((_19 = nextActionContractGate.metadata) === null || _19 === void 0 ? void 0 : _19.decisionBasis),
3297
- preconditions: cleanStringList((_20 = nextActionContractGate.metadata) === null || _20 === void 0 ? void 0 : _20.preconditions, 20, 500),
3298
- successEvidence: cleanStringList((_21 = nextActionContractGate.metadata) === null || _21 === void 0 ? void 0 : _21.successEvidence, 20, 500),
3299
- stopConditions: cleanStringList((_22 = nextActionContractGate.metadata) === null || _22 === void 0 ? void 0 : _22.stopConditions, 20, 500),
3300
- forbiddenActions: cleanStringList((_23 = nextActionContractGate.metadata) === null || _23 === void 0 ? void 0 : _23.forbiddenActions, 20, 500),
3301
- nextCommands: cleanStringList((_24 = nextActionContractGate.metadata) === null || _24 === void 0 ? void 0 : _24.nextCommands, 20, 240),
3302
- blockers: cleanStringList((_25 = nextActionContractGate.metadata) === null || _25 === void 0 ? void 0 : _25.blockers, 20, 500)
3299
+ hotfixCommitRequired: ((_19 = nextActionContractGate.metadata) === null || _19 === void 0 ? void 0 : _19.hotfixCommitRequired) === true,
3300
+ liveHotfixBlockedUntilCommit: ((_20 = nextActionContractGate.metadata) === null || _20 === void 0 ? void 0 : _20.liveHotfixBlockedUntilCommit) === true,
3301
+ decisionBasis: plainObject((_21 = nextActionContractGate.metadata) === null || _21 === void 0 ? void 0 : _21.decisionBasis),
3302
+ preconditions: cleanStringList((_22 = nextActionContractGate.metadata) === null || _22 === void 0 ? void 0 : _22.preconditions, 20, 500),
3303
+ successEvidence: cleanStringList((_23 = nextActionContractGate.metadata) === null || _23 === void 0 ? void 0 : _23.successEvidence, 20, 500),
3304
+ requiredHotfixCommitProof: cleanStringList((_24 = nextActionContractGate.metadata) === null || _24 === void 0 ? void 0 : _24.requiredHotfixCommitProof, 20, 240),
3305
+ stopConditions: cleanStringList((_25 = nextActionContractGate.metadata) === null || _25 === void 0 ? void 0 : _25.stopConditions, 20, 500),
3306
+ forbiddenActions: cleanStringList((_26 = nextActionContractGate.metadata) === null || _26 === void 0 ? void 0 : _26.forbiddenActions, 20, 500),
3307
+ nextCommands: cleanStringList((_27 = nextActionContractGate.metadata) === null || _27 === void 0 ? void 0 : _27.nextCommands, 20, 240),
3308
+ blockers: cleanStringList((_28 = nextActionContractGate.metadata) === null || _28 === void 0 ? void 0 : _28.blockers, 20, 500)
3303
3309
  } : undefined
3304
3310
  }
3305
3311
  });