@riddledc/riddle-proof 0.8.58 → 0.8.59

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.
@@ -166,6 +166,8 @@ function summarizeRiddleProofPrComment(input) {
166
166
  ship_held: publicState.ship_held,
167
167
  shipping_disabled: publicState.shipping_disabled,
168
168
  ship_authorized: publicState.ship_authorized,
169
+ merge_ready: publicState.merge_ready,
170
+ sync_allowed: publicState.sync_allowed,
169
171
  proof_decision: firstStringValue(result.proof_decision, stopCondition.proof_decision, resultRaw.proof_decision),
170
172
  merge_recommendation: firstStringValue(result.merge_recommendation, stopCondition.merge_recommendation, resultRaw.merge_recommendation),
171
173
  checkpoint_summary: checkpointSummary,
@@ -215,6 +217,14 @@ function formatBool(value) {
215
217
  function hasShipControl(summary) {
216
218
  return typeof summary.ship_held === "boolean" || typeof summary.shipping_disabled === "boolean" || typeof summary.ship_authorized === "boolean";
217
219
  }
220
+ function hasHandoffControl(summary) {
221
+ return typeof summary.merge_ready === "boolean" || typeof summary.sync_allowed === "boolean";
222
+ }
223
+ function shouldRenderMergeRecommendation(summary) {
224
+ if (!summary.merge_recommendation) return false;
225
+ const prohibited = summary.public_state?.prohibited_claims || [];
226
+ return !prohibited.includes("merge_ready") && !prohibited.includes("sync_allowed");
227
+ }
218
228
  function checkpointSummaryLine(summary) {
219
229
  const accepted = summary.response_count ?? 0;
220
230
  const rejected = summary.rejected_response_count ?? 0;
@@ -246,8 +256,11 @@ function buildRiddleProofPrCommentMarkdown(input) {
246
256
  if (hasShipControl(summary)) {
247
257
  lines.push(`**Ship control:** held=${formatBool(summary.ship_held)}, shipping_disabled=${formatBool(summary.shipping_disabled)}, authorized=${formatBool(summary.ship_authorized)}`);
248
258
  }
259
+ if (hasHandoffControl(summary)) {
260
+ lines.push(`**Handoff:** merge_ready=${formatBool(summary.merge_ready)}, sync_allowed=${formatBool(summary.sync_allowed)}`);
261
+ }
249
262
  if (summary.proof_decision) lines.push(`**Proof decision:** \`${summary.proof_decision}\``);
250
- if (summary.merge_recommendation) lines.push(`**Merge recommendation:** ${summary.merge_recommendation}`);
263
+ if (shouldRenderMergeRecommendation(summary)) lines.push(`**Merge recommendation:** ${summary.merge_recommendation}`);
251
264
  if (summary.checkpoint_summary) lines.push(`**Checkpoints:** ${checkpointSummaryLine(summary.checkpoint_summary)}`);
252
265
  if (summary.proof_url) lines.push(`**Proof URL:** ${markdownLink(summary.proof_url, summary.proof_url)}`);
253
266
  if (summary.preview_id || summary.preview_url) {
@@ -7,7 +7,7 @@ import {
7
7
  RIDDLE_PROOF_PR_COMMENT_MARKER,
8
8
  buildRiddleProofPrCommentMarkdown,
9
9
  summarizeRiddleProofPrComment
10
- } from "./chunk-62XLYPMS.js";
10
+ } from "./chunk-2PKBTYOA.js";
11
11
  import {
12
12
  RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
13
13
  applyRiddleProofProfileArtifactCompleteness,
package/dist/cli/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import "../chunk-ONOPGCID.js";
1
+ import "../chunk-XSNMMAPJ.js";
2
2
  import "../chunk-DI2XNGEZ.js";
3
- import "../chunk-62XLYPMS.js";
3
+ import "../chunk-2PKBTYOA.js";
4
4
  import "../chunk-EX7TO4I5.js";
5
5
  import "../chunk-KG64Y5MC.js";
6
6
  import "../chunk-GHBNDHG7.js";
package/dist/cli.cjs CHANGED
@@ -18037,6 +18037,8 @@ function summarizeRiddleProofPrComment(input) {
18037
18037
  ship_held: publicState.ship_held,
18038
18038
  shipping_disabled: publicState.shipping_disabled,
18039
18039
  ship_authorized: publicState.ship_authorized,
18040
+ merge_ready: publicState.merge_ready,
18041
+ sync_allowed: publicState.sync_allowed,
18040
18042
  proof_decision: firstStringValue2(result.proof_decision, stopCondition.proof_decision, resultRaw.proof_decision),
18041
18043
  merge_recommendation: firstStringValue2(result.merge_recommendation, stopCondition.merge_recommendation, resultRaw.merge_recommendation),
18042
18044
  checkpoint_summary: checkpointSummary,
@@ -18086,6 +18088,14 @@ function formatBool(value) {
18086
18088
  function hasShipControl(summary) {
18087
18089
  return typeof summary.ship_held === "boolean" || typeof summary.shipping_disabled === "boolean" || typeof summary.ship_authorized === "boolean";
18088
18090
  }
18091
+ function hasHandoffControl(summary) {
18092
+ return typeof summary.merge_ready === "boolean" || typeof summary.sync_allowed === "boolean";
18093
+ }
18094
+ function shouldRenderMergeRecommendation(summary) {
18095
+ if (!summary.merge_recommendation) return false;
18096
+ const prohibited = summary.public_state?.prohibited_claims || [];
18097
+ return !prohibited.includes("merge_ready") && !prohibited.includes("sync_allowed");
18098
+ }
18089
18099
  function checkpointSummaryLine(summary) {
18090
18100
  const accepted = summary.response_count ?? 0;
18091
18101
  const rejected = summary.rejected_response_count ?? 0;
@@ -18117,8 +18127,11 @@ function buildRiddleProofPrCommentMarkdown(input) {
18117
18127
  if (hasShipControl(summary)) {
18118
18128
  lines.push(`**Ship control:** held=${formatBool(summary.ship_held)}, shipping_disabled=${formatBool(summary.shipping_disabled)}, authorized=${formatBool(summary.ship_authorized)}`);
18119
18129
  }
18130
+ if (hasHandoffControl(summary)) {
18131
+ lines.push(`**Handoff:** merge_ready=${formatBool(summary.merge_ready)}, sync_allowed=${formatBool(summary.sync_allowed)}`);
18132
+ }
18120
18133
  if (summary.proof_decision) lines.push(`**Proof decision:** \`${summary.proof_decision}\``);
18121
- if (summary.merge_recommendation) lines.push(`**Merge recommendation:** ${summary.merge_recommendation}`);
18134
+ if (shouldRenderMergeRecommendation(summary)) lines.push(`**Merge recommendation:** ${summary.merge_recommendation}`);
18122
18135
  if (summary.checkpoint_summary) lines.push(`**Checkpoints:** ${checkpointSummaryLine(summary.checkpoint_summary)}`);
18123
18136
  if (summary.proof_url) lines.push(`**Proof URL:** ${markdownLink(summary.proof_url, summary.proof_url)}`);
18124
18137
  if (summary.preview_id || summary.preview_url) {
package/dist/cli.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import "./chunk-ONOPGCID.js";
2
+ import "./chunk-XSNMMAPJ.js";
3
3
  import "./chunk-DI2XNGEZ.js";
4
- import "./chunk-62XLYPMS.js";
4
+ import "./chunk-2PKBTYOA.js";
5
5
  import "./chunk-EX7TO4I5.js";
6
6
  import "./chunk-KG64Y5MC.js";
7
7
  import "./chunk-GHBNDHG7.js";
package/dist/index.cjs CHANGED
@@ -20237,6 +20237,8 @@ function summarizeRiddleProofPrComment(input) {
20237
20237
  ship_held: publicState.ship_held,
20238
20238
  shipping_disabled: publicState.shipping_disabled,
20239
20239
  ship_authorized: publicState.ship_authorized,
20240
+ merge_ready: publicState.merge_ready,
20241
+ sync_allowed: publicState.sync_allowed,
20240
20242
  proof_decision: firstStringValue2(result.proof_decision, stopCondition.proof_decision, resultRaw.proof_decision),
20241
20243
  merge_recommendation: firstStringValue2(result.merge_recommendation, stopCondition.merge_recommendation, resultRaw.merge_recommendation),
20242
20244
  checkpoint_summary: checkpointSummary,
@@ -20286,6 +20288,14 @@ function formatBool(value) {
20286
20288
  function hasShipControl(summary) {
20287
20289
  return typeof summary.ship_held === "boolean" || typeof summary.shipping_disabled === "boolean" || typeof summary.ship_authorized === "boolean";
20288
20290
  }
20291
+ function hasHandoffControl(summary) {
20292
+ return typeof summary.merge_ready === "boolean" || typeof summary.sync_allowed === "boolean";
20293
+ }
20294
+ function shouldRenderMergeRecommendation(summary) {
20295
+ if (!summary.merge_recommendation) return false;
20296
+ const prohibited = summary.public_state?.prohibited_claims || [];
20297
+ return !prohibited.includes("merge_ready") && !prohibited.includes("sync_allowed");
20298
+ }
20289
20299
  function checkpointSummaryLine(summary) {
20290
20300
  const accepted = summary.response_count ?? 0;
20291
20301
  const rejected = summary.rejected_response_count ?? 0;
@@ -20317,8 +20327,11 @@ function buildRiddleProofPrCommentMarkdown(input) {
20317
20327
  if (hasShipControl(summary)) {
20318
20328
  lines.push(`**Ship control:** held=${formatBool(summary.ship_held)}, shipping_disabled=${formatBool(summary.shipping_disabled)}, authorized=${formatBool(summary.ship_authorized)}`);
20319
20329
  }
20330
+ if (hasHandoffControl(summary)) {
20331
+ lines.push(`**Handoff:** merge_ready=${formatBool(summary.merge_ready)}, sync_allowed=${formatBool(summary.sync_allowed)}`);
20332
+ }
20320
20333
  if (summary.proof_decision) lines.push(`**Proof decision:** \`${summary.proof_decision}\``);
20321
- if (summary.merge_recommendation) lines.push(`**Merge recommendation:** ${summary.merge_recommendation}`);
20334
+ if (shouldRenderMergeRecommendation(summary)) lines.push(`**Merge recommendation:** ${summary.merge_recommendation}`);
20322
20335
  if (summary.checkpoint_summary) lines.push(`**Checkpoints:** ${checkpointSummaryLine(summary.checkpoint_summary)}`);
20323
20336
  if (summary.proof_url) lines.push(`**Proof URL:** ${markdownLink(summary.proof_url, summary.proof_url)}`);
20324
20337
  if (summary.preview_id || summary.preview_url) {
package/dist/index.js CHANGED
@@ -59,7 +59,7 @@ import {
59
59
  RIDDLE_PROOF_PR_COMMENT_MARKER,
60
60
  buildRiddleProofPrCommentMarkdown,
61
61
  summarizeRiddleProofPrComment
62
- } from "./chunk-62XLYPMS.js";
62
+ } from "./chunk-2PKBTYOA.js";
63
63
  import {
64
64
  RIDDLE_PROOF_PROFILE_CHECK_TYPES,
65
65
  RIDDLE_PROOF_PROFILE_EVIDENCE_VERSION,
@@ -342,6 +342,8 @@ function summarizeRiddleProofPrComment(input) {
342
342
  ship_held: publicState.ship_held,
343
343
  shipping_disabled: publicState.shipping_disabled,
344
344
  ship_authorized: publicState.ship_authorized,
345
+ merge_ready: publicState.merge_ready,
346
+ sync_allowed: publicState.sync_allowed,
345
347
  proof_decision: firstStringValue2(result.proof_decision, stopCondition.proof_decision, resultRaw.proof_decision),
346
348
  merge_recommendation: firstStringValue2(result.merge_recommendation, stopCondition.merge_recommendation, resultRaw.merge_recommendation),
347
349
  checkpoint_summary: checkpointSummary,
@@ -391,6 +393,14 @@ function formatBool(value) {
391
393
  function hasShipControl(summary) {
392
394
  return typeof summary.ship_held === "boolean" || typeof summary.shipping_disabled === "boolean" || typeof summary.ship_authorized === "boolean";
393
395
  }
396
+ function hasHandoffControl(summary) {
397
+ return typeof summary.merge_ready === "boolean" || typeof summary.sync_allowed === "boolean";
398
+ }
399
+ function shouldRenderMergeRecommendation(summary) {
400
+ if (!summary.merge_recommendation) return false;
401
+ const prohibited = summary.public_state?.prohibited_claims || [];
402
+ return !prohibited.includes("merge_ready") && !prohibited.includes("sync_allowed");
403
+ }
394
404
  function checkpointSummaryLine(summary) {
395
405
  const accepted = summary.response_count ?? 0;
396
406
  const rejected = summary.rejected_response_count ?? 0;
@@ -422,8 +432,11 @@ function buildRiddleProofPrCommentMarkdown(input) {
422
432
  if (hasShipControl(summary)) {
423
433
  lines.push(`**Ship control:** held=${formatBool(summary.ship_held)}, shipping_disabled=${formatBool(summary.shipping_disabled)}, authorized=${formatBool(summary.ship_authorized)}`);
424
434
  }
435
+ if (hasHandoffControl(summary)) {
436
+ lines.push(`**Handoff:** merge_ready=${formatBool(summary.merge_ready)}, sync_allowed=${formatBool(summary.sync_allowed)}`);
437
+ }
425
438
  if (summary.proof_decision) lines.push(`**Proof decision:** \`${summary.proof_decision}\``);
426
- if (summary.merge_recommendation) lines.push(`**Merge recommendation:** ${summary.merge_recommendation}`);
439
+ if (shouldRenderMergeRecommendation(summary)) lines.push(`**Merge recommendation:** ${summary.merge_recommendation}`);
427
440
  if (summary.checkpoint_summary) lines.push(`**Checkpoints:** ${checkpointSummaryLine(summary.checkpoint_summary)}`);
428
441
  if (summary.proof_url) lines.push(`**Proof URL:** ${markdownLink(summary.proof_url, summary.proof_url)}`);
429
442
  if (summary.preview_id || summary.preview_url) {
@@ -37,6 +37,8 @@ interface RiddleProofPrCommentSummary {
37
37
  ship_held?: boolean;
38
38
  shipping_disabled?: boolean;
39
39
  ship_authorized?: boolean;
40
+ merge_ready?: boolean;
41
+ sync_allowed?: boolean;
40
42
  proof_decision?: string;
41
43
  merge_recommendation?: string;
42
44
  checkpoint_summary?: RiddleProofPrCommentCheckpointSummary;
@@ -37,6 +37,8 @@ interface RiddleProofPrCommentSummary {
37
37
  ship_held?: boolean;
38
38
  shipping_disabled?: boolean;
39
39
  ship_authorized?: boolean;
40
+ merge_ready?: boolean;
41
+ sync_allowed?: boolean;
40
42
  proof_decision?: string;
41
43
  merge_recommendation?: string;
42
44
  checkpoint_summary?: RiddleProofPrCommentCheckpointSummary;
@@ -2,7 +2,7 @@ import {
2
2
  RIDDLE_PROOF_PR_COMMENT_MARKER,
3
3
  buildRiddleProofPrCommentMarkdown,
4
4
  summarizeRiddleProofPrComment
5
- } from "./chunk-62XLYPMS.js";
5
+ } from "./chunk-2PKBTYOA.js";
6
6
  import "./chunk-KG64Y5MC.js";
7
7
  import "./chunk-MLKGABMK.js";
8
8
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.8.58",
3
+ "version": "0.8.59",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",