@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.
- package/dist/adapters/codex-exec-agent.cjs +893 -0
- package/dist/adapters/codex-exec-agent.d.cts +3 -0
- package/dist/adapters/codex-exec-agent.d.ts +3 -0
- package/dist/adapters/codex-exec-agent.js +13 -0
- package/dist/adapters/codex.cjs +893 -0
- package/dist/adapters/codex.d.cts +3 -0
- package/dist/adapters/codex.d.ts +3 -0
- package/dist/adapters/codex.js +13 -0
- package/dist/adapters/local-agent.cjs +893 -0
- package/dist/adapters/local-agent.d.cts +3 -0
- package/dist/adapters/local-agent.d.ts +3 -0
- package/dist/adapters/local-agent.js +13 -0
- package/dist/adapters/openclaw.cjs +213 -0
- package/dist/adapters/openclaw.d.cts +2 -0
- package/dist/adapters/openclaw.d.ts +2 -0
- package/dist/adapters/openclaw.js +17 -0
- package/dist/advanced/engine-harness.cjs +5701 -0
- package/dist/advanced/engine-harness.d.cts +2 -0
- package/dist/advanced/engine-harness.d.ts +2 -0
- package/dist/advanced/engine-harness.js +16 -0
- package/dist/advanced/index.cjs +6242 -0
- package/dist/advanced/index.d.cts +5 -0
- package/dist/advanced/index.d.ts +5 -0
- package/dist/advanced/index.js +23 -0
- package/dist/advanced/proof-run-core.cjs +1085 -0
- package/dist/advanced/proof-run-core.d.cts +1 -0
- package/dist/advanced/proof-run-core.d.ts +1 -0
- package/dist/advanced/proof-run-core.js +59 -0
- package/dist/advanced/proof-run-engine.cjs +2905 -0
- package/dist/advanced/proof-run-engine.d.cts +2 -0
- package/dist/advanced/proof-run-engine.d.ts +2 -0
- package/dist/advanced/proof-run-engine.js +10 -0
- package/dist/advanced/runner.cjs +833 -0
- package/dist/advanced/runner.d.cts +2 -0
- package/dist/advanced/runner.d.ts +2 -0
- package/dist/advanced/runner.js +12 -0
- package/dist/app-contract/index.cjs +24 -0
- package/dist/app-contract/index.d.cts +1 -0
- package/dist/app-contract/index.d.ts +1 -0
- package/dist/app-contract/index.js +2 -0
- package/dist/basic-gameplay.js +1 -0
- package/dist/checkpoint.js +1 -0
- package/dist/chunk-BHL4JSGM.js +1900 -0
- package/dist/chunk-BTN76IGW.js +115 -0
- package/dist/{chunk-TGHTM66Z.js → chunk-COERZX63.js} +10 -2
- package/dist/{chunk-4DRRIJDX.js → chunk-IWLQQ5S5.js} +27 -4
- package/dist/chunk-MLKGABMK.js +9 -0
- package/dist/chunk-OFSECTSC.js +0 -0
- package/dist/{chunk-GBVEQQIM.js → chunk-TJ63IE65.js} +36 -1
- package/dist/chunk-VZD5LH7U.js +4138 -0
- package/dist/cli/index.cjs +18 -0
- package/dist/cli/index.d.cts +2 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +12 -0
- package/dist/cli.cjs +19 -2
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +8 -4139
- package/dist/codex-exec-agent.d.cts +1 -1
- package/dist/codex-exec-agent.d.ts +1 -1
- package/dist/codex-exec-agent.js +1 -0
- package/dist/diagnostics.js +1 -0
- package/dist/engine-harness-CMACHP6A.d.ts +96 -0
- package/dist/engine-harness-LBfqbFSe.d.cts +96 -0
- package/dist/engine-harness.cjs +19 -2
- package/dist/engine-harness.d.cts +2 -79
- package/dist/engine-harness.d.ts +2 -79
- package/dist/engine-harness.js +3 -2
- package/dist/index.cjs +19 -2
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -3
- package/dist/local-agent.d.cts +1 -1
- package/dist/local-agent.d.ts +1 -1
- package/dist/local-agent.js +1 -0
- package/dist/openclaw.js +8 -107
- package/dist/playability.js +1 -0
- package/dist/profile/index.cjs +9403 -0
- package/dist/profile/index.d.cts +2 -0
- package/dist/profile/index.d.ts +2 -0
- package/dist/profile/index.js +53 -0
- package/dist/profile.js +1 -0
- package/dist/proof-run-core-CE0jx7wL.d.cts +359 -0
- package/dist/proof-run-core-CE0jx7wL.d.ts +359 -0
- package/dist/proof-run-core.d.cts +1 -322
- package/dist/proof-run-core.d.ts +1 -322
- package/dist/proof-run-core.js +2 -1
- package/dist/proof-run-engine-CSSc0mNn.d.ts +764 -0
- package/dist/proof-run-engine-HSRpUeBi.d.cts +764 -0
- package/dist/proof-run-engine.cjs +4 -0
- package/dist/proof-run-engine.d.cts +2 -757
- package/dist/proof-run-engine.d.ts +2 -757
- package/dist/proof-run-engine.js +5 -1881
- package/dist/proof-session.js +1 -0
- package/dist/result.js +1 -0
- package/dist/riddle-client.js +1 -0
- package/dist/run-card.js +1 -0
- package/dist/runner-4LJ5z0D-.d.cts +29 -0
- package/dist/runner-BdQpOkZD.d.ts +29 -0
- package/dist/runner.d.cts +2 -22
- package/dist/runner.d.ts +2 -22
- package/dist/runner.js +3 -2
- package/dist/runtime/index.cjs +528 -0
- package/dist/runtime/index.d.cts +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.js +37 -0
- package/dist/runtime/riddle-client.cjs +528 -0
- package/dist/runtime/riddle-client.d.cts +1 -0
- package/dist/runtime/riddle-client.d.ts +1 -0
- package/dist/runtime/riddle-client.js +37 -0
- package/dist/spec/checkpoint.cjs +807 -0
- package/dist/spec/checkpoint.d.cts +2 -0
- package/dist/spec/checkpoint.d.ts +2 -0
- package/dist/spec/checkpoint.js +34 -0
- package/dist/spec/index.cjs +1510 -0
- package/dist/spec/index.d.cts +5 -0
- package/dist/spec/index.d.ts +5 -0
- package/dist/spec/index.js +80 -0
- package/dist/spec/result.cjs +259 -0
- package/dist/spec/result.d.cts +2 -0
- package/dist/spec/result.d.ts +2 -0
- package/dist/spec/result.js +21 -0
- package/dist/spec/run-card.cjs +287 -0
- package/dist/spec/run-card.d.cts +2 -0
- package/dist/spec/run-card.d.ts +2 -0
- package/dist/spec/run-card.js +11 -0
- package/dist/spec/state.cjs +541 -0
- package/dist/spec/state.d.cts +2 -0
- package/dist/spec/state.d.ts +2 -0
- package/dist/spec/state.js +28 -0
- package/dist/spec/types.cjs +18 -0
- package/dist/spec/types.d.cts +1 -0
- package/dist/spec/types.d.ts +1 -0
- package/dist/spec/types.js +1 -0
- package/dist/state.js +1 -0
- package/package.json +95 -2
- package/runtime/lib/verify.py +53 -3
- package/runtime/pipelines/riddle-proof-setup.lobster +45 -41
- package/runtime/tests/recon_verify_smoke.py +41 -0
package/dist/openclaw.js
CHANGED
|
@@ -1,113 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
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,
|