@riddledc/riddle-proof 0.5.45 → 0.5.46

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 (44) hide show
  1. package/README.md +17 -0
  2. package/dist/checkpoint.cjs +204 -1
  3. package/dist/checkpoint.d.cts +16 -1
  4. package/dist/checkpoint.d.ts +16 -1
  5. package/dist/checkpoint.js +4 -2
  6. package/dist/{chunk-W7VTDN4T.js → chunk-DUFDZJOF.js} +1 -0
  7. package/dist/{chunk-7S7O3NKF.js → chunk-JTNMEH57.js} +6 -1
  8. package/dist/{chunk-MRSYJMF4.js → chunk-L26NTZOU.js} +2 -2
  9. package/dist/chunk-NOBFZDZG.js +754 -0
  10. package/dist/chunk-PLSGW2GI.js +161 -0
  11. package/dist/{chunk-LXE5YUYY.js → chunk-R6SCWJCI.js} +204 -2
  12. package/dist/{chunk-CHRYLX6N.js → chunk-X3AQ2WUM.js} +128 -15
  13. package/dist/cli.cjs +6129 -0
  14. package/dist/cli.d.cts +1 -0
  15. package/dist/cli.d.ts +1 -0
  16. package/dist/cli.js +160 -0
  17. package/dist/codex-exec-agent.cjs +790 -0
  18. package/dist/codex-exec-agent.d.cts +91 -0
  19. package/dist/codex-exec-agent.d.ts +91 -0
  20. package/dist/codex-exec-agent.js +10 -0
  21. package/dist/engine-harness.cjs +740 -279
  22. package/dist/engine-harness.js +5 -4
  23. package/dist/index.cjs +1469 -247
  24. package/dist/index.d.cts +4 -2
  25. package/dist/index.d.ts +4 -2
  26. package/dist/index.js +33 -17
  27. package/dist/openclaw.js +4 -2
  28. package/dist/proof-run-engine.d.cts +3 -3
  29. package/dist/proof-run-engine.d.ts +3 -3
  30. package/dist/result.cjs +1 -0
  31. package/dist/result.js +1 -1
  32. package/dist/run-card.cjs +212 -0
  33. package/dist/run-card.d.cts +10 -0
  34. package/dist/run-card.d.ts +10 -0
  35. package/dist/run-card.js +10 -0
  36. package/dist/runner.cjs +2 -0
  37. package/dist/runner.js +5 -3
  38. package/dist/state.cjs +174 -5
  39. package/dist/state.d.cts +2 -1
  40. package/dist/state.d.ts +2 -1
  41. package/dist/state.js +4 -2
  42. package/dist/types.d.cts +63 -2
  43. package/dist/types.d.ts +63 -2
  44. package/package.json +15 -2
@@ -0,0 +1,91 @@
1
+ import { RiddleProofAgentAdapter } from './engine-harness.cjs';
2
+ import { RiddleProofBlocker } from './types.cjs';
3
+
4
+ interface CodexExecAgentConfig {
5
+ codexCommand?: string;
6
+ codexHome?: string;
7
+ codexModel?: string;
8
+ codexTimeoutMs?: number;
9
+ codexSandbox?: "read-only" | "workspace-write" | "danger-full-access";
10
+ codexFullAuto?: boolean;
11
+ }
12
+ interface CodexJsonRequest {
13
+ purpose: string;
14
+ workdir: string;
15
+ prompt: string;
16
+ schema: Record<string, unknown>;
17
+ }
18
+ interface CodexJsonResult {
19
+ ok: boolean;
20
+ json?: Record<string, unknown>;
21
+ stdout?: string;
22
+ stderr?: string;
23
+ blocker?: RiddleProofBlocker;
24
+ }
25
+ type CodexJsonRunner = (request: CodexJsonRequest) => Promise<CodexJsonResult> | CodexJsonResult;
26
+ declare function createCodexExecJsonRunner(config?: CodexExecAgentConfig): CodexJsonRunner;
27
+ declare function createCodexExecAgentAdapter(config?: CodexExecAgentConfig, runner?: CodexJsonRunner): RiddleProofAgentAdapter;
28
+ declare function runCodexExecAgentDoctor(config?: CodexExecAgentConfig, runner?: CodexJsonRunner): Promise<{
29
+ ok: boolean;
30
+ status: string;
31
+ blocker: {
32
+ code: string;
33
+ message: string;
34
+ details: {
35
+ error: string;
36
+ workdir: string;
37
+ changedFiles?: undefined;
38
+ gitStatus?: undefined;
39
+ targetContent?: undefined;
40
+ };
41
+ };
42
+ workdir?: undefined;
43
+ changedFiles?: undefined;
44
+ implementationSummary?: undefined;
45
+ implementationNotes?: undefined;
46
+ gitStatus?: undefined;
47
+ targetContent?: undefined;
48
+ } | {
49
+ ok: boolean;
50
+ status: string;
51
+ blocker: {
52
+ details: {
53
+ workdir: string;
54
+ error?: undefined;
55
+ changedFiles?: undefined;
56
+ gitStatus?: undefined;
57
+ targetContent?: undefined;
58
+ };
59
+ code: string;
60
+ message: string;
61
+ checkpoint?: string | null;
62
+ };
63
+ workdir?: undefined;
64
+ changedFiles?: undefined;
65
+ implementationSummary?: undefined;
66
+ implementationNotes?: undefined;
67
+ gitStatus?: undefined;
68
+ targetContent?: undefined;
69
+ } | {
70
+ ok: boolean;
71
+ status: string;
72
+ workdir: string;
73
+ changedFiles: string[];
74
+ implementationSummary: {} | null;
75
+ implementationNotes: {} | null;
76
+ gitStatus: string;
77
+ targetContent: string;
78
+ blocker: {
79
+ code: string;
80
+ message: string;
81
+ details: {
82
+ workdir: string;
83
+ changedFiles: string[];
84
+ gitStatus: string;
85
+ targetContent: string;
86
+ error?: undefined;
87
+ };
88
+ } | null;
89
+ }>;
90
+
91
+ export { type CodexExecAgentConfig, type CodexJsonRequest, type CodexJsonResult, type CodexJsonRunner, createCodexExecAgentAdapter, createCodexExecJsonRunner, runCodexExecAgentDoctor };
@@ -0,0 +1,91 @@
1
+ import { RiddleProofAgentAdapter } from './engine-harness.js';
2
+ import { RiddleProofBlocker } from './types.js';
3
+
4
+ interface CodexExecAgentConfig {
5
+ codexCommand?: string;
6
+ codexHome?: string;
7
+ codexModel?: string;
8
+ codexTimeoutMs?: number;
9
+ codexSandbox?: "read-only" | "workspace-write" | "danger-full-access";
10
+ codexFullAuto?: boolean;
11
+ }
12
+ interface CodexJsonRequest {
13
+ purpose: string;
14
+ workdir: string;
15
+ prompt: string;
16
+ schema: Record<string, unknown>;
17
+ }
18
+ interface CodexJsonResult {
19
+ ok: boolean;
20
+ json?: Record<string, unknown>;
21
+ stdout?: string;
22
+ stderr?: string;
23
+ blocker?: RiddleProofBlocker;
24
+ }
25
+ type CodexJsonRunner = (request: CodexJsonRequest) => Promise<CodexJsonResult> | CodexJsonResult;
26
+ declare function createCodexExecJsonRunner(config?: CodexExecAgentConfig): CodexJsonRunner;
27
+ declare function createCodexExecAgentAdapter(config?: CodexExecAgentConfig, runner?: CodexJsonRunner): RiddleProofAgentAdapter;
28
+ declare function runCodexExecAgentDoctor(config?: CodexExecAgentConfig, runner?: CodexJsonRunner): Promise<{
29
+ ok: boolean;
30
+ status: string;
31
+ blocker: {
32
+ code: string;
33
+ message: string;
34
+ details: {
35
+ error: string;
36
+ workdir: string;
37
+ changedFiles?: undefined;
38
+ gitStatus?: undefined;
39
+ targetContent?: undefined;
40
+ };
41
+ };
42
+ workdir?: undefined;
43
+ changedFiles?: undefined;
44
+ implementationSummary?: undefined;
45
+ implementationNotes?: undefined;
46
+ gitStatus?: undefined;
47
+ targetContent?: undefined;
48
+ } | {
49
+ ok: boolean;
50
+ status: string;
51
+ blocker: {
52
+ details: {
53
+ workdir: string;
54
+ error?: undefined;
55
+ changedFiles?: undefined;
56
+ gitStatus?: undefined;
57
+ targetContent?: undefined;
58
+ };
59
+ code: string;
60
+ message: string;
61
+ checkpoint?: string | null;
62
+ };
63
+ workdir?: undefined;
64
+ changedFiles?: undefined;
65
+ implementationSummary?: undefined;
66
+ implementationNotes?: undefined;
67
+ gitStatus?: undefined;
68
+ targetContent?: undefined;
69
+ } | {
70
+ ok: boolean;
71
+ status: string;
72
+ workdir: string;
73
+ changedFiles: string[];
74
+ implementationSummary: {} | null;
75
+ implementationNotes: {} | null;
76
+ gitStatus: string;
77
+ targetContent: string;
78
+ blocker: {
79
+ code: string;
80
+ message: string;
81
+ details: {
82
+ workdir: string;
83
+ changedFiles: string[];
84
+ gitStatus: string;
85
+ targetContent: string;
86
+ error?: undefined;
87
+ };
88
+ } | null;
89
+ }>;
90
+
91
+ export { type CodexExecAgentConfig, type CodexJsonRequest, type CodexJsonResult, type CodexJsonRunner, createCodexExecAgentAdapter, createCodexExecJsonRunner, runCodexExecAgentDoctor };
@@ -0,0 +1,10 @@
1
+ import {
2
+ createCodexExecAgentAdapter,
3
+ createCodexExecJsonRunner,
4
+ runCodexExecAgentDoctor
5
+ } from "./chunk-NOBFZDZG.js";
6
+ export {
7
+ createCodexExecAgentAdapter,
8
+ createCodexExecJsonRunner,
9
+ runCodexExecAgentDoctor
10
+ };