@riddledc/riddle-proof 0.5.21 → 0.5.22

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/dist/openclaw.cjs CHANGED
@@ -106,6 +106,14 @@ function parseOpenClawAssertions(value) {
106
106
  return trimmed;
107
107
  }
108
108
  }
109
+ function normalizeOpenClawReference(value) {
110
+ if (value !== "prod" && value !== "before" && value !== "both") return void 0;
111
+ return value;
112
+ }
113
+ function ignoredOpenClawReference(value) {
114
+ if (value === void 0 || value === null || value === "") return void 0;
115
+ return normalizeOpenClawReference(value) ? void 0 : String(value);
116
+ }
109
117
  function openClawIntegrationContext(params) {
110
118
  const hasDiscordContext = Boolean(params.discord_channel || params.discord_thread_id || params.discord_message_id || params.discord_source_url);
111
119
  return normalizeIntegrationContext({
@@ -116,7 +124,8 @@ function openClawIntegrationContext(params) {
116
124
  source_url: params.discord_source_url,
117
125
  metadata: compactRecord({
118
126
  wrapper: "openclaw",
119
- tool: "riddle_proof_change"
127
+ tool: "riddle_proof_change",
128
+ reference_input_ignored: ignoredOpenClawReference(params.reference)
120
129
  })
121
130
  }, "openclaw");
122
131
  }
@@ -131,7 +140,7 @@ function toRiddleProofRunParams(params) {
131
140
  success_criteria: params.success_criteria,
132
141
  assertions: parseOpenClawAssertions(params.assertions_json),
133
142
  verification_mode: params.verification_mode,
134
- reference: params.reference,
143
+ reference: normalizeOpenClawReference(params.reference),
135
144
  base_branch: params.base_branch,
136
145
  before_ref: params.before_ref,
137
146
  allow_static_preview_fallback: params.allow_static_preview_fallback,
@@ -10,7 +10,7 @@ interface OpenClawProofedChangeParams {
10
10
  success_criteria?: string;
11
11
  assertions_json?: string;
12
12
  verification_mode?: string;
13
- reference?: "prod" | "before" | "both";
13
+ reference?: "prod" | "before" | "both" | (string & {});
14
14
  base_branch?: string;
15
15
  before_ref?: string;
16
16
  allow_static_preview_fallback?: boolean;
@@ -10,7 +10,7 @@ interface OpenClawProofedChangeParams {
10
10
  success_criteria?: string;
11
11
  assertions_json?: string;
12
12
  verification_mode?: string;
13
- reference?: "prod" | "before" | "both";
13
+ reference?: "prod" | "before" | "both" | (string & {});
14
14
  base_branch?: string;
15
15
  before_ref?: string;
16
16
  allow_static_preview_fallback?: boolean;
package/dist/openclaw.js CHANGED
@@ -18,6 +18,14 @@ function parseOpenClawAssertions(value) {
18
18
  return trimmed;
19
19
  }
20
20
  }
21
+ function normalizeOpenClawReference(value) {
22
+ if (value !== "prod" && value !== "before" && value !== "both") return void 0;
23
+ return value;
24
+ }
25
+ function ignoredOpenClawReference(value) {
26
+ if (value === void 0 || value === null || value === "") return void 0;
27
+ return normalizeOpenClawReference(value) ? void 0 : String(value);
28
+ }
21
29
  function openClawIntegrationContext(params) {
22
30
  const hasDiscordContext = Boolean(params.discord_channel || params.discord_thread_id || params.discord_message_id || params.discord_source_url);
23
31
  return normalizeIntegrationContext({
@@ -28,7 +36,8 @@ function openClawIntegrationContext(params) {
28
36
  source_url: params.discord_source_url,
29
37
  metadata: compactRecord({
30
38
  wrapper: "openclaw",
31
- tool: "riddle_proof_change"
39
+ tool: "riddle_proof_change",
40
+ reference_input_ignored: ignoredOpenClawReference(params.reference)
32
41
  })
33
42
  }, "openclaw");
34
43
  }
@@ -43,7 +52,7 @@ function toRiddleProofRunParams(params) {
43
52
  success_criteria: params.success_criteria,
44
53
  assertions: parseOpenClawAssertions(params.assertions_json),
45
54
  verification_mode: params.verification_mode,
46
- reference: params.reference,
55
+ reference: normalizeOpenClawReference(params.reference),
47
56
  base_branch: params.base_branch,
48
57
  before_ref: params.before_ref,
49
58
  allow_static_preview_fallback: params.allow_static_preview_fallback,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riddledc/riddle-proof",
3
- "version": "0.5.21",
3
+ "version": "0.5.22",
4
4
  "description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
5
5
  "license": "MIT",
6
6
  "author": "RiddleDC",