@riddledc/riddle-proof 0.7.225 → 0.7.227

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.
Files changed (139) hide show
  1. package/dist/adapters/codex-exec-agent.cjs +893 -0
  2. package/dist/adapters/codex-exec-agent.d.cts +3 -0
  3. package/dist/adapters/codex-exec-agent.d.ts +3 -0
  4. package/dist/adapters/codex-exec-agent.js +13 -0
  5. package/dist/adapters/codex.cjs +893 -0
  6. package/dist/adapters/codex.d.cts +3 -0
  7. package/dist/adapters/codex.d.ts +3 -0
  8. package/dist/adapters/codex.js +13 -0
  9. package/dist/adapters/local-agent.cjs +893 -0
  10. package/dist/adapters/local-agent.d.cts +3 -0
  11. package/dist/adapters/local-agent.d.ts +3 -0
  12. package/dist/adapters/local-agent.js +13 -0
  13. package/dist/adapters/openclaw.cjs +213 -0
  14. package/dist/adapters/openclaw.d.cts +2 -0
  15. package/dist/adapters/openclaw.d.ts +2 -0
  16. package/dist/adapters/openclaw.js +17 -0
  17. package/dist/advanced/engine-harness.cjs +5701 -0
  18. package/dist/advanced/engine-harness.d.cts +2 -0
  19. package/dist/advanced/engine-harness.d.ts +2 -0
  20. package/dist/advanced/engine-harness.js +16 -0
  21. package/dist/advanced/index.cjs +6242 -0
  22. package/dist/advanced/index.d.cts +5 -0
  23. package/dist/advanced/index.d.ts +5 -0
  24. package/dist/advanced/index.js +23 -0
  25. package/dist/advanced/proof-run-core.cjs +1085 -0
  26. package/dist/advanced/proof-run-core.d.cts +1 -0
  27. package/dist/advanced/proof-run-core.d.ts +1 -0
  28. package/dist/advanced/proof-run-core.js +59 -0
  29. package/dist/advanced/proof-run-engine.cjs +2905 -0
  30. package/dist/advanced/proof-run-engine.d.cts +2 -0
  31. package/dist/advanced/proof-run-engine.d.ts +2 -0
  32. package/dist/advanced/proof-run-engine.js +10 -0
  33. package/dist/advanced/runner.cjs +833 -0
  34. package/dist/advanced/runner.d.cts +2 -0
  35. package/dist/advanced/runner.d.ts +2 -0
  36. package/dist/advanced/runner.js +12 -0
  37. package/dist/app-contract/index.cjs +24 -0
  38. package/dist/app-contract/index.d.cts +1 -0
  39. package/dist/app-contract/index.d.ts +1 -0
  40. package/dist/app-contract/index.js +2 -0
  41. package/dist/basic-gameplay.js +1 -0
  42. package/dist/checkpoint.js +1 -0
  43. package/dist/chunk-BHL4JSGM.js +1900 -0
  44. package/dist/chunk-BTN76IGW.js +115 -0
  45. package/dist/{chunk-TGHTM66Z.js → chunk-COERZX63.js} +10 -2
  46. package/dist/{chunk-4DRRIJDX.js → chunk-IWLQQ5S5.js} +27 -4
  47. package/dist/chunk-MLKGABMK.js +9 -0
  48. package/dist/chunk-OFSECTSC.js +0 -0
  49. package/dist/{chunk-GBVEQQIM.js → chunk-TJ63IE65.js} +36 -1
  50. package/dist/chunk-VZD5LH7U.js +4138 -0
  51. package/dist/cli/index.cjs +18 -0
  52. package/dist/cli/index.d.cts +2 -0
  53. package/dist/cli/index.d.ts +2 -0
  54. package/dist/cli/index.js +12 -0
  55. package/dist/cli.cjs +19 -2
  56. package/dist/cli.d.cts +1 -0
  57. package/dist/cli.d.ts +1 -0
  58. package/dist/cli.js +8 -4139
  59. package/dist/codex-exec-agent.d.cts +1 -1
  60. package/dist/codex-exec-agent.d.ts +1 -1
  61. package/dist/codex-exec-agent.js +1 -0
  62. package/dist/diagnostics.js +1 -0
  63. package/dist/engine-harness-CMACHP6A.d.ts +96 -0
  64. package/dist/engine-harness-LBfqbFSe.d.cts +96 -0
  65. package/dist/engine-harness.cjs +19 -2
  66. package/dist/engine-harness.d.cts +2 -79
  67. package/dist/engine-harness.d.ts +2 -79
  68. package/dist/engine-harness.js +3 -2
  69. package/dist/index.cjs +19 -2
  70. package/dist/index.d.cts +2 -2
  71. package/dist/index.d.ts +2 -2
  72. package/dist/index.js +4 -3
  73. package/dist/local-agent.d.cts +1 -1
  74. package/dist/local-agent.d.ts +1 -1
  75. package/dist/local-agent.js +1 -0
  76. package/dist/openclaw.js +8 -107
  77. package/dist/playability.js +1 -0
  78. package/dist/profile/index.cjs +9403 -0
  79. package/dist/profile/index.d.cts +2 -0
  80. package/dist/profile/index.d.ts +2 -0
  81. package/dist/profile/index.js +53 -0
  82. package/dist/profile.js +1 -0
  83. package/dist/proof-run-core-CE0jx7wL.d.cts +359 -0
  84. package/dist/proof-run-core-CE0jx7wL.d.ts +359 -0
  85. package/dist/proof-run-core.d.cts +1 -322
  86. package/dist/proof-run-core.d.ts +1 -322
  87. package/dist/proof-run-core.js +2 -1
  88. package/dist/proof-run-engine-CSSc0mNn.d.ts +764 -0
  89. package/dist/proof-run-engine-HSRpUeBi.d.cts +764 -0
  90. package/dist/proof-run-engine.cjs +4 -0
  91. package/dist/proof-run-engine.d.cts +2 -757
  92. package/dist/proof-run-engine.d.ts +2 -757
  93. package/dist/proof-run-engine.js +5 -1881
  94. package/dist/proof-session.js +1 -0
  95. package/dist/result.js +1 -0
  96. package/dist/riddle-client.js +1 -0
  97. package/dist/run-card.js +1 -0
  98. package/dist/runner-4LJ5z0D-.d.cts +29 -0
  99. package/dist/runner-BdQpOkZD.d.ts +29 -0
  100. package/dist/runner.d.cts +2 -22
  101. package/dist/runner.d.ts +2 -22
  102. package/dist/runner.js +3 -2
  103. package/dist/runtime/index.cjs +528 -0
  104. package/dist/runtime/index.d.cts +1 -0
  105. package/dist/runtime/index.d.ts +1 -0
  106. package/dist/runtime/index.js +37 -0
  107. package/dist/runtime/riddle-client.cjs +528 -0
  108. package/dist/runtime/riddle-client.d.cts +1 -0
  109. package/dist/runtime/riddle-client.d.ts +1 -0
  110. package/dist/runtime/riddle-client.js +37 -0
  111. package/dist/spec/checkpoint.cjs +807 -0
  112. package/dist/spec/checkpoint.d.cts +2 -0
  113. package/dist/spec/checkpoint.d.ts +2 -0
  114. package/dist/spec/checkpoint.js +34 -0
  115. package/dist/spec/index.cjs +1510 -0
  116. package/dist/spec/index.d.cts +5 -0
  117. package/dist/spec/index.d.ts +5 -0
  118. package/dist/spec/index.js +80 -0
  119. package/dist/spec/result.cjs +259 -0
  120. package/dist/spec/result.d.cts +2 -0
  121. package/dist/spec/result.d.ts +2 -0
  122. package/dist/spec/result.js +21 -0
  123. package/dist/spec/run-card.cjs +287 -0
  124. package/dist/spec/run-card.d.cts +2 -0
  125. package/dist/spec/run-card.d.ts +2 -0
  126. package/dist/spec/run-card.js +11 -0
  127. package/dist/spec/state.cjs +541 -0
  128. package/dist/spec/state.d.cts +2 -0
  129. package/dist/spec/state.d.ts +2 -0
  130. package/dist/spec/state.js +28 -0
  131. package/dist/spec/types.cjs +18 -0
  132. package/dist/spec/types.d.cts +1 -0
  133. package/dist/spec/types.d.ts +1 -0
  134. package/dist/spec/types.js +1 -0
  135. package/dist/state.js +1 -0
  136. package/package.json +95 -2
  137. package/runtime/lib/verify.py +53 -3
  138. package/runtime/pipelines/riddle-proof-setup.lobster +45 -41
  139. package/runtime/tests/recon_verify_smoke.py +41 -0
package/dist/openclaw.js CHANGED
@@ -1,113 +1,14 @@
1
1
  import {
2
- normalizeIntegrationContext,
3
- normalizeRunParams
4
- } from "./chunk-OHJQRDST.js";
2
+ openClawIntegrationContext,
3
+ parseOpenClawAssertions,
4
+ parseOpenClawJsonObjectOrArray,
5
+ toRiddleProofRunParams
6
+ } from "./chunk-BTN76IGW.js";
7
+ import "./chunk-OHJQRDST.js";
5
8
  import "./chunk-Y2KTBACQ.js";
6
9
  import "./chunk-2CFVREFI.js";
7
- import {
8
- compactRecord
9
- } from "./chunk-VY4Y5U57.js";
10
-
11
- // src/openclaw.ts
12
- function parseOpenClawAssertions(value) {
13
- if (value === void 0 || value === null || value === "") return void 0;
14
- if (typeof value !== "string") return value;
15
- const trimmed = value.trim();
16
- if (!trimmed) return void 0;
17
- try {
18
- return JSON.parse(trimmed);
19
- } catch {
20
- return trimmed;
21
- }
22
- }
23
- function parseOpenClawJsonObjectOrArray(value, name) {
24
- if (value === void 0 || value === null || value === "") return void 0;
25
- if (typeof value !== "string") return value;
26
- const trimmed = value.trim();
27
- if (!trimmed) return void 0;
28
- let parsed;
29
- try {
30
- parsed = JSON.parse(trimmed);
31
- } catch (error) {
32
- const message = error instanceof Error ? error.message : String(error);
33
- throw new Error(`${name} is not valid JSON: ${message}`);
34
- }
35
- if (parsed === null || typeof parsed !== "object" && !Array.isArray(parsed)) {
36
- throw new Error(`${name} must decode to a JSON object or array.`);
37
- }
38
- return parsed;
39
- }
40
- function normalizeOpenClawReference(value) {
41
- if (value !== "prod" && value !== "before" && value !== "both") return void 0;
42
- return value;
43
- }
44
- function ignoredOpenClawReference(value) {
45
- if (value === void 0 || value === null || value === "") return void 0;
46
- return normalizeOpenClawReference(value) ? void 0 : String(value);
47
- }
48
- function openClawIntegrationContext(params) {
49
- const hasDiscordContext = Boolean(params.discord_channel || params.discord_thread_id || params.discord_message_id || params.discord_source_url);
50
- return normalizeIntegrationContext({
51
- source: hasDiscordContext ? "discord" : "openclaw",
52
- channel_id: params.discord_channel,
53
- thread_id: params.discord_thread_id,
54
- message_id: params.discord_message_id,
55
- source_url: params.discord_source_url,
56
- metadata: compactRecord({
57
- wrapper: "openclaw",
58
- tool: "riddle_proof_change",
59
- reference_input_ignored: ignoredOpenClawReference(params.reference)
60
- })
61
- }, "openclaw");
62
- }
63
- function toRiddleProofRunParams(params) {
64
- return normalizeRunParams({
65
- repo: params.repo,
66
- branch: params.branch,
67
- change_request: params.change_request,
68
- commit_message: params.commit_message,
69
- prod_url: params.prod_url,
70
- capture_script: params.capture_script,
71
- success_criteria: params.success_criteria,
72
- assertions: parseOpenClawAssertions(params.assertions_json),
73
- verification_mode: params.verification_mode,
74
- resume_session: params.resume_session,
75
- target_image_url: params.target_image_url,
76
- target_image_hash: params.target_image_hash,
77
- viewport_matrix: parseOpenClawJsonObjectOrArray(params.viewport_matrix_json, "viewport_matrix_json"),
78
- deterministic_setup: parseOpenClawJsonObjectOrArray(params.deterministic_setup_json, "deterministic_setup_json"),
79
- reference: normalizeOpenClawReference(params.reference),
80
- base_branch: params.base_branch,
81
- before_ref: params.before_ref,
82
- allow_static_preview_fallback: params.allow_static_preview_fallback,
83
- context: params.context,
84
- reviewer: params.reviewer,
85
- mode: params.mode,
86
- implementation_mode: params.implementation_mode,
87
- require_diff: params.require_diff,
88
- allow_code_changes: params.allow_code_changes,
89
- build_command: params.build_command,
90
- build_output: params.build_output,
91
- server_image: params.server_image,
92
- server_command: params.server_command,
93
- server_port: params.server_port,
94
- server_path: params.server_path,
95
- use_auth: params.use_auth,
96
- auth_localStorage_json: params.auth_localStorage_json,
97
- auth_cookies_json: params.auth_cookies_json,
98
- auth_headers_json: params.auth_headers_json,
99
- color_scheme: params.color_scheme,
100
- wait_for_selector: params.wait_for_selector,
101
- ship_mode: params.ship_mode || (params.ship_after_verify ? "ship" : void 0),
102
- leave_draft: params.leave_draft,
103
- engine_state_path: params.state_path,
104
- harness_state_path: params.harness_state_path,
105
- max_iterations: params.max_iterations,
106
- auto_approve: params.auto_approve,
107
- dry_run: params.dry_run,
108
- integration_context: openClawIntegrationContext(params)
109
- });
110
- }
10
+ import "./chunk-VY4Y5U57.js";
11
+ import "./chunk-MLKGABMK.js";
111
12
  export {
112
13
  openClawIntegrationContext,
113
14
  parseOpenClawAssertions,
@@ -5,6 +5,7 @@ import {
5
5
  extractPlayabilityEvidence,
6
6
  isRiddleProofPlayabilityMode
7
7
  } from "./chunk-NSWT3VSV.js";
8
+ import "./chunk-MLKGABMK.js";
8
9
  export {
9
10
  RIDDLE_PROOF_PLAYABILITY_ASSESSMENT_VERSION,
10
11
  RIDDLE_PROOF_PLAYABILITY_VERSION,