@riddledc/riddle-proof 0.3.0 → 0.4.0
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/{chunk-IQIEOQZF.js → chunk-5FHUOSNO.js} +5 -0
- package/dist/{chunk-P3FUU5X4.js → chunk-F65YYXVO.js} +1 -1
- package/dist/chunk-US63AYQU.js +684 -0
- package/dist/engine-harness.cjs +924 -0
- package/dist/engine-harness.d.cts +68 -0
- package/dist/engine-harness.d.ts +68 -0
- package/dist/engine-harness.js +12 -0
- package/dist/index.cjs +676 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -2
- package/dist/openclaw.cjs +10 -0
- package/dist/openclaw.d.cts +5 -0
- package/dist/openclaw.d.ts +5 -0
- package/dist/openclaw.js +6 -1
- package/dist/runner.cjs +5 -0
- package/dist/runner.js +2 -2
- package/dist/state.cjs +5 -0
- package/dist/state.js +1 -1
- package/dist/types.d.cts +5 -0
- package/dist/types.d.ts +5 -0
- package/package.json +7 -2
package/dist/index.d.cts
CHANGED
|
@@ -2,3 +2,4 @@ export { EvidenceArtifact, EvidenceReference, ImplementationAdapter, Implementat
|
|
|
2
2
|
export { TerminalMetadataInput, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue } from './result.cjs';
|
|
3
3
|
export { CreateRunStateInput, RIDDLE_PROOF_RUN_STATE_VERSION, RunEventInput, appendRunEvent, appendStageHeartbeat, createRunState, createRunStatusSnapshot, normalizeIntegrationContext, normalizeRunParams, setRunStatus } from './state.cjs';
|
|
4
4
|
export { RiddleProofRunnerAdapters, RunRiddleProofInput, runRiddleProof } from './runner.cjs';
|
|
5
|
+
export { RiddleProofAgentAdapter, RiddleProofAgentPayload, RiddleProofEngine, RiddleProofEngineHarnessConfig, RiddleProofEngineHarnessContext, RiddleProofEngineResult, RiddleProofShipMode, RiddleProofWorkflowParams, RunRiddleProofEngineHarnessInput, createDisabledRiddleProofAgentAdapter, readRiddleProofRunStatus, runRiddleProofEngineHarness } from './engine-harness.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export { EvidenceArtifact, EvidenceReference, ImplementationAdapter, Implementat
|
|
|
2
2
|
export { TerminalMetadataInput, applyTerminalMetadata, compactRecord, createRunResult, isSuccessfulStatus, isTerminalStatus, nonEmptyString, normalizeTerminalMetadata, recordValue } from './result.js';
|
|
3
3
|
export { CreateRunStateInput, RIDDLE_PROOF_RUN_STATE_VERSION, RunEventInput, appendRunEvent, appendStageHeartbeat, createRunState, createRunStatusSnapshot, normalizeIntegrationContext, normalizeRunParams, setRunStatus } from './state.js';
|
|
4
4
|
export { RiddleProofRunnerAdapters, RunRiddleProofInput, runRiddleProof } from './runner.js';
|
|
5
|
+
export { RiddleProofAgentAdapter, RiddleProofAgentPayload, RiddleProofEngine, RiddleProofEngineHarnessConfig, RiddleProofEngineHarnessContext, RiddleProofEngineResult, RiddleProofShipMode, RiddleProofWorkflowParams, RunRiddleProofEngineHarnessInput, createDisabledRiddleProofAgentAdapter, readRiddleProofRunStatus, runRiddleProofEngineHarness } from './engine-harness.js';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createDisabledRiddleProofAgentAdapter,
|
|
3
|
+
readRiddleProofRunStatus,
|
|
4
|
+
runRiddleProofEngineHarness
|
|
5
|
+
} from "./chunk-US63AYQU.js";
|
|
1
6
|
import {
|
|
2
7
|
runRiddleProof
|
|
3
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-F65YYXVO.js";
|
|
4
9
|
import {
|
|
5
10
|
RIDDLE_PROOF_RUN_STATE_VERSION,
|
|
6
11
|
appendRunEvent,
|
|
@@ -10,7 +15,7 @@ import {
|
|
|
10
15
|
normalizeIntegrationContext,
|
|
11
16
|
normalizeRunParams,
|
|
12
17
|
setRunStatus
|
|
13
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-5FHUOSNO.js";
|
|
14
19
|
import {
|
|
15
20
|
applyTerminalMetadata,
|
|
16
21
|
compactRecord,
|
|
@@ -28,6 +33,7 @@ export {
|
|
|
28
33
|
appendStageHeartbeat,
|
|
29
34
|
applyTerminalMetadata,
|
|
30
35
|
compactRecord,
|
|
36
|
+
createDisabledRiddleProofAgentAdapter,
|
|
31
37
|
createRunResult,
|
|
32
38
|
createRunState,
|
|
33
39
|
createRunStatusSnapshot,
|
|
@@ -37,7 +43,9 @@ export {
|
|
|
37
43
|
normalizeIntegrationContext,
|
|
38
44
|
normalizeRunParams,
|
|
39
45
|
normalizeTerminalMetadata,
|
|
46
|
+
readRiddleProofRunStatus,
|
|
40
47
|
recordValue,
|
|
41
48
|
runRiddleProof,
|
|
49
|
+
runRiddleProofEngineHarness,
|
|
42
50
|
setRunStatus
|
|
43
51
|
};
|
package/dist/openclaw.cjs
CHANGED
|
@@ -81,6 +81,11 @@ function normalizeRunParams(input) {
|
|
|
81
81
|
color_scheme: input.color_scheme,
|
|
82
82
|
wait_for_selector: input.wait_for_selector,
|
|
83
83
|
ship_mode: input.ship_mode,
|
|
84
|
+
engine_state_path: input.engine_state_path,
|
|
85
|
+
harness_state_path: input.harness_state_path,
|
|
86
|
+
max_iterations: input.max_iterations,
|
|
87
|
+
auto_approve: input.auto_approve,
|
|
88
|
+
dry_run: input.dry_run,
|
|
84
89
|
integration_context: normalizeIntegrationContext(input.integration_context)
|
|
85
90
|
});
|
|
86
91
|
}
|
|
@@ -139,6 +144,11 @@ function toRiddleProofRunParams(params) {
|
|
|
139
144
|
color_scheme: params.color_scheme,
|
|
140
145
|
wait_for_selector: params.wait_for_selector,
|
|
141
146
|
ship_mode: params.ship_mode || (params.ship_after_verify ? "ship" : void 0),
|
|
147
|
+
engine_state_path: params.state_path,
|
|
148
|
+
harness_state_path: params.harness_state_path,
|
|
149
|
+
max_iterations: params.max_iterations,
|
|
150
|
+
auto_approve: params.auto_approve,
|
|
151
|
+
dry_run: params.dry_run,
|
|
142
152
|
integration_context: openClawIntegrationContext(params)
|
|
143
153
|
});
|
|
144
154
|
}
|
package/dist/openclaw.d.cts
CHANGED
|
@@ -28,6 +28,11 @@ interface OpenClawProofedChangeParams {
|
|
|
28
28
|
wait_for_selector?: string;
|
|
29
29
|
ship_after_verify?: boolean;
|
|
30
30
|
ship_mode?: "none" | "ship";
|
|
31
|
+
state_path?: string;
|
|
32
|
+
harness_state_path?: string;
|
|
33
|
+
max_iterations?: number;
|
|
34
|
+
auto_approve?: boolean;
|
|
35
|
+
dry_run?: boolean;
|
|
31
36
|
discord_channel?: string;
|
|
32
37
|
discord_thread_id?: string;
|
|
33
38
|
discord_message_id?: string;
|
package/dist/openclaw.d.ts
CHANGED
|
@@ -28,6 +28,11 @@ interface OpenClawProofedChangeParams {
|
|
|
28
28
|
wait_for_selector?: string;
|
|
29
29
|
ship_after_verify?: boolean;
|
|
30
30
|
ship_mode?: "none" | "ship";
|
|
31
|
+
state_path?: string;
|
|
32
|
+
harness_state_path?: string;
|
|
33
|
+
max_iterations?: number;
|
|
34
|
+
auto_approve?: boolean;
|
|
35
|
+
dry_run?: boolean;
|
|
31
36
|
discord_channel?: string;
|
|
32
37
|
discord_thread_id?: string;
|
|
33
38
|
discord_message_id?: string;
|
package/dist/openclaw.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalizeIntegrationContext,
|
|
3
3
|
normalizeRunParams
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5FHUOSNO.js";
|
|
5
5
|
import {
|
|
6
6
|
compactRecord
|
|
7
7
|
} from "./chunk-5DC6YXN4.js";
|
|
@@ -60,6 +60,11 @@ function toRiddleProofRunParams(params) {
|
|
|
60
60
|
color_scheme: params.color_scheme,
|
|
61
61
|
wait_for_selector: params.wait_for_selector,
|
|
62
62
|
ship_mode: params.ship_mode || (params.ship_after_verify ? "ship" : void 0),
|
|
63
|
+
engine_state_path: params.state_path,
|
|
64
|
+
harness_state_path: params.harness_state_path,
|
|
65
|
+
max_iterations: params.max_iterations,
|
|
66
|
+
auto_approve: params.auto_approve,
|
|
67
|
+
dry_run: params.dry_run,
|
|
63
68
|
integration_context: openClawIntegrationContext(params)
|
|
64
69
|
});
|
|
65
70
|
}
|
package/dist/runner.cjs
CHANGED
|
@@ -139,6 +139,11 @@ function normalizeRunParams(input) {
|
|
|
139
139
|
color_scheme: input.color_scheme,
|
|
140
140
|
wait_for_selector: input.wait_for_selector,
|
|
141
141
|
ship_mode: input.ship_mode,
|
|
142
|
+
engine_state_path: input.engine_state_path,
|
|
143
|
+
harness_state_path: input.harness_state_path,
|
|
144
|
+
max_iterations: input.max_iterations,
|
|
145
|
+
auto_approve: input.auto_approve,
|
|
146
|
+
dry_run: input.dry_run,
|
|
142
147
|
integration_context: normalizeIntegrationContext(input.integration_context)
|
|
143
148
|
});
|
|
144
149
|
}
|
package/dist/runner.js
CHANGED
package/dist/state.cjs
CHANGED
|
@@ -101,6 +101,11 @@ function normalizeRunParams(input) {
|
|
|
101
101
|
color_scheme: input.color_scheme,
|
|
102
102
|
wait_for_selector: input.wait_for_selector,
|
|
103
103
|
ship_mode: input.ship_mode,
|
|
104
|
+
engine_state_path: input.engine_state_path,
|
|
105
|
+
harness_state_path: input.harness_state_path,
|
|
106
|
+
max_iterations: input.max_iterations,
|
|
107
|
+
auto_approve: input.auto_approve,
|
|
108
|
+
dry_run: input.dry_run,
|
|
104
109
|
integration_context: normalizeIntegrationContext(input.integration_context)
|
|
105
110
|
});
|
|
106
111
|
}
|
package/dist/state.js
CHANGED
package/dist/types.d.cts
CHANGED
|
@@ -35,6 +35,11 @@ interface RiddleProofRunParams {
|
|
|
35
35
|
color_scheme?: "dark" | "light" | (string & {});
|
|
36
36
|
wait_for_selector?: string;
|
|
37
37
|
ship_mode?: "none" | "ship";
|
|
38
|
+
engine_state_path?: string;
|
|
39
|
+
harness_state_path?: string;
|
|
40
|
+
max_iterations?: number;
|
|
41
|
+
auto_approve?: boolean;
|
|
42
|
+
dry_run?: boolean;
|
|
38
43
|
integration_context?: IntegrationContext;
|
|
39
44
|
}
|
|
40
45
|
interface IntegrationContext {
|
package/dist/types.d.ts
CHANGED
|
@@ -35,6 +35,11 @@ interface RiddleProofRunParams {
|
|
|
35
35
|
color_scheme?: "dark" | "light" | (string & {});
|
|
36
36
|
wait_for_selector?: string;
|
|
37
37
|
ship_mode?: "none" | "ship";
|
|
38
|
+
engine_state_path?: string;
|
|
39
|
+
harness_state_path?: string;
|
|
40
|
+
max_iterations?: number;
|
|
41
|
+
auto_approve?: boolean;
|
|
42
|
+
dry_run?: boolean;
|
|
38
43
|
integration_context?: IntegrationContext;
|
|
39
44
|
}
|
|
40
45
|
interface IntegrationContext {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riddledc/riddle-proof",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "RiddleDC",
|
|
@@ -39,6 +39,11 @@
|
|
|
39
39
|
"import": "./dist/runner.js",
|
|
40
40
|
"require": "./dist/runner.cjs"
|
|
41
41
|
},
|
|
42
|
+
"./engine-harness": {
|
|
43
|
+
"types": "./dist/engine-harness.d.ts",
|
|
44
|
+
"import": "./dist/engine-harness.js",
|
|
45
|
+
"require": "./dist/engine-harness.cjs"
|
|
46
|
+
},
|
|
42
47
|
"./openclaw": {
|
|
43
48
|
"types": "./dist/openclaw.d.ts",
|
|
44
49
|
"import": "./dist/openclaw.js",
|
|
@@ -60,7 +65,7 @@
|
|
|
60
65
|
"typescript": "^5.4.5"
|
|
61
66
|
},
|
|
62
67
|
"scripts": {
|
|
63
|
-
"build": "tsup src/index.ts src/types.ts src/result.ts src/state.ts src/runner.ts src/openclaw.ts --format cjs,esm --dts --out-dir dist --clean",
|
|
68
|
+
"build": "tsup src/index.ts src/types.ts src/result.ts src/state.ts src/runner.ts src/engine-harness.ts src/openclaw.ts --format cjs,esm --dts --out-dir dist --clean",
|
|
64
69
|
"clean": "rm -rf dist",
|
|
65
70
|
"lint": "echo 'lint: (not configured)'",
|
|
66
71
|
"test": "npm run build && node test.js"
|