@riddledc/riddle-proof 0.8.84 → 0.8.86

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 (110) hide show
  1. package/README.md +193 -0
  2. package/capabilities.json +17 -0
  3. package/dist/advanced/engine-harness.js +2 -2
  4. package/dist/advanced/index.d.cts +2 -2
  5. package/dist/advanced/index.d.ts +2 -2
  6. package/dist/advanced/index.js +4 -4
  7. package/dist/advanced/proof-run-core.d.cts +1 -1
  8. package/dist/advanced/proof-run-core.d.ts +1 -1
  9. package/dist/advanced/proof-run-engine.d.cts +2 -2
  10. package/dist/advanced/proof-run-engine.d.ts +2 -2
  11. package/dist/advanced/runner.js +2 -2
  12. package/dist/change-proof.cjs +24 -269
  13. package/dist/change-proof.d.cts +2 -2
  14. package/dist/change-proof.d.ts +2 -2
  15. package/dist/change-proof.js +3 -3
  16. package/dist/checked-meaning.cjs +67 -0
  17. package/dist/checked-meaning.d.cts +2 -0
  18. package/dist/checked-meaning.d.ts +2 -0
  19. package/dist/checked-meaning.js +41 -0
  20. package/dist/{chunk-QYZ3GKCP.js → chunk-3W4NGKZ6.js} +20 -19
  21. package/dist/chunk-6S33FQL7.js +14 -0
  22. package/dist/{chunk-FW7CKARF.js → chunk-7W6ZJPHJ.js} +1 -1
  23. package/dist/{chunk-7OAETQU3.js → chunk-BVYM4WJ5.js} +1 -1
  24. package/dist/chunk-GQOE5Q7C.js +32 -0
  25. package/dist/chunk-H5AALGSA.js +32 -0
  26. package/dist/chunk-J2SIQGQI.js +71 -0
  27. package/dist/chunk-KB7FYRBG.js +46 -0
  28. package/dist/{chunk-2K3DIK7A.js → chunk-KF6F2RMQ.js} +301 -3979
  29. package/dist/{chunk-LR4UYJDY.js → chunk-NR2XQXIC.js} +4 -4
  30. package/dist/chunk-NWLKJ2WI.js +31 -0
  31. package/dist/chunk-ODLGSEP2.js +43 -0
  32. package/dist/chunk-OHDNCXRM.js +17 -0
  33. package/dist/cli/index.js +9 -9
  34. package/dist/cli.cjs +606 -5177
  35. package/dist/cli.d.cts +0 -1
  36. package/dist/cli.d.ts +0 -1
  37. package/dist/cli.js +9 -9
  38. package/dist/engine-harness.js +2 -2
  39. package/dist/evidence-trust-root.cjs +54 -0
  40. package/dist/evidence-trust-root.d.cts +2 -0
  41. package/dist/evidence-trust-root.d.ts +2 -0
  42. package/dist/evidence-trust-root.js +31 -0
  43. package/dist/grounded-evidence.cjs +95 -0
  44. package/dist/grounded-evidence.d.cts +2 -0
  45. package/dist/grounded-evidence.d.ts +2 -0
  46. package/dist/grounded-evidence.js +69 -0
  47. package/dist/index.cjs +5995 -11368
  48. package/dist/index.d.cts +17 -4
  49. package/dist/index.d.ts +17 -4
  50. package/dist/index.js +202 -28
  51. package/dist/packet.cjs +54 -0
  52. package/dist/packet.d.cts +2 -0
  53. package/dist/packet.d.ts +2 -0
  54. package/dist/packet.js +31 -0
  55. package/dist/pr-comment.cjs +19 -116
  56. package/dist/pr-comment.d.cts +2 -2
  57. package/dist/pr-comment.d.ts +2 -2
  58. package/dist/pr-comment.js +4 -4
  59. package/dist/profile/index.cjs +277 -3991
  60. package/dist/profile/index.d.cts +2 -3
  61. package/dist/profile/index.d.ts +2 -3
  62. package/dist/profile/index.js +1 -1
  63. package/dist/profile-suggestions.cjs +2 -2
  64. package/dist/profile-suggestions.d.cts +1 -3
  65. package/dist/profile-suggestions.d.ts +1 -3
  66. package/dist/profile-suggestions.js +2 -2
  67. package/dist/profile.cjs +277 -3991
  68. package/dist/profile.d.cts +3 -550
  69. package/dist/profile.d.ts +3 -550
  70. package/dist/profile.js +1 -1
  71. package/dist/{proof-run-core-7Dqm7RKM.d.cts → proof-run-core-DwwrRhY4.d.cts} +1 -1
  72. package/dist/{proof-run-core-7Dqm7RKM.d.ts → proof-run-core-DwwrRhY4.d.ts} +1 -1
  73. package/dist/proof-run-core.d.cts +1 -1
  74. package/dist/proof-run-core.d.ts +1 -1
  75. package/dist/{proof-run-engine-BqRoA3Do.d.ts → proof-run-engine-CWBgj-15.d.ts} +4 -4
  76. package/dist/{proof-run-engine-DpChFR5H.d.cts → proof-run-engine-hEfje943.d.cts} +4 -4
  77. package/dist/proof-run-engine.d.cts +2 -2
  78. package/dist/proof-run-engine.d.ts +2 -2
  79. package/dist/receipts.cjs +10 -255
  80. package/dist/receipts.d.cts +10 -115
  81. package/dist/receipts.d.ts +10 -115
  82. package/dist/receipts.js +1 -1
  83. package/dist/riddle-client.cjs +23 -695
  84. package/dist/riddle-client.d.cts +1 -188
  85. package/dist/riddle-client.d.ts +1 -188
  86. package/dist/riddle-client.js +5 -2
  87. package/dist/rule-trust-root.cjs +36 -0
  88. package/dist/rule-trust-root.d.cts +2 -0
  89. package/dist/rule-trust-root.d.ts +2 -0
  90. package/dist/rule-trust-root.js +13 -0
  91. package/dist/runner.js +2 -2
  92. package/dist/runtime/index.cjs +23 -695
  93. package/dist/runtime/index.d.cts +1 -5
  94. package/dist/runtime/index.d.ts +1 -5
  95. package/dist/runtime/index.js +5 -2
  96. package/dist/runtime/riddle-client.cjs +23 -695
  97. package/dist/runtime/riddle-client.d.cts +1 -5
  98. package/dist/runtime/riddle-client.d.ts +1 -5
  99. package/dist/runtime/riddle-client.js +5 -2
  100. package/dist/semantic-certificate.cjs +17 -1083
  101. package/dist/semantic-certificate.d.cts +2 -310
  102. package/dist/semantic-certificate.d.ts +2 -310
  103. package/dist/semantic-certificate.js +1 -1
  104. package/package.json +42 -4
  105. package/runtime/lib/riddle_core_call.mjs +3 -806
  106. package/dist/chunk-5IFZSUPF.js +0 -644
  107. package/dist/chunk-AQTCU6W5.js +0 -1086
  108. package/dist/chunk-MEVVL4TI.js +0 -258
  109. package/dist/{chunk-WLUMLHII.js → chunk-BID7CKMM.js} +9 -9
  110. package/dist/{chunk-YH7ADFY4.js → chunk-IVSP24XI.js} +3 -3
@@ -1,188 +1 @@
1
- import { RiddleProofExecutionTelemetry, RiddleProofSourceIdentity, RiddlePreviewReceipt } from './receipts.cjs';
2
- import './profile.cjs';
3
- import './types.cjs';
4
- import './public-state.cjs';
5
-
6
- declare const DEFAULT_RIDDLE_API_BASE_URL = "https://api.riddledc.com";
7
- declare const DEFAULT_RIDDLE_API_KEY_FILE = "/tmp/riddle-api-key";
8
- declare const RIDDLE_UNSUBMITTED_WAKE_HINT = "hosted worker may still be waking or waiting for a lease";
9
- type RiddleFetch = typeof fetch;
10
- interface RiddleClientConfig {
11
- apiKey?: string;
12
- apiKeyFile?: string;
13
- apiBaseUrl?: string;
14
- fetchImpl?: RiddleFetch;
15
- onPreviewProgress?: (snapshot: RiddlePreviewDeployProgressSnapshot) => void | Promise<void>;
16
- }
17
- interface RiddleApiKeySource {
18
- source: "option" | "env" | "file";
19
- file?: string;
20
- }
21
- interface RiddleBalanceResult {
22
- available_seconds?: number;
23
- reserved_seconds?: number;
24
- total_seconds?: number;
25
- available_time?: string;
26
- total_time?: string;
27
- available_dollars?: number;
28
- reserved_dollars?: number;
29
- total_dollars?: number;
30
- currency?: string;
31
- holds_count?: number;
32
- rate?: Record<string, unknown>;
33
- }
34
- interface RiddlePollProgressSnapshot {
35
- job_id: string;
36
- status: string | null;
37
- phase: string | null;
38
- terminal: boolean;
39
- attempt: number;
40
- attempts: number;
41
- elapsed_ms: number;
42
- created_at: string | null;
43
- submitted_at: string | null;
44
- completed_at: string | null;
45
- queue_elapsed_ms: number | null;
46
- pre_submission_elapsed_ms: number;
47
- running_without_submission: boolean;
48
- active_execution: boolean;
49
- execution?: RiddleProofExecutionTelemetry;
50
- }
51
- interface RiddlePollSummary extends RiddlePollProgressSnapshot {
52
- timed_out: boolean;
53
- interval_ms: number;
54
- unsubmitted_timeout?: boolean;
55
- unsubmitted_timeout_ms?: number;
56
- message?: string;
57
- }
58
- interface RiddlePollJobOptions {
59
- wait?: boolean;
60
- attempts?: number;
61
- intervalMs?: number;
62
- progressEveryMs?: number;
63
- unsubmittedTimeoutMs?: number;
64
- onProgress?: (snapshot: RiddlePollProgressSnapshot) => void | Promise<void>;
65
- }
66
- type RiddlePreviewFramework = "spa" | "static";
67
- type RiddlePreviewDeployStage = "validating" | "creating" | "created" | "archiving" | "archived" | "uploading" | "uploaded" | "publishing" | "publish_recovering" | "checking_status" | "ready";
68
- interface RiddlePreviewDeployProgressSnapshot {
69
- stage: RiddlePreviewDeployStage;
70
- label: string;
71
- framework: RiddlePreviewFramework;
72
- directory: string;
73
- elapsed_ms: number;
74
- id?: string;
75
- preview_url?: string;
76
- file_count?: number;
77
- total_bytes?: number;
78
- tarball_bytes?: number;
79
- attempt?: number;
80
- attempts?: number;
81
- status?: string | null;
82
- publish_error?: string;
83
- warnings?: string[];
84
- message?: string;
85
- }
86
- interface RiddlePreviewDeployResult {
87
- ok: true;
88
- id: string;
89
- label: string;
90
- framework: RiddlePreviewFramework;
91
- preview_url: string;
92
- file_count?: number;
93
- total_bytes?: number;
94
- expires_at?: string;
95
- receipt?: RiddlePreviewReceipt;
96
- publish_recovered?: boolean;
97
- publish_error?: string;
98
- warnings?: string[];
99
- raw?: Record<string, unknown>;
100
- }
101
- interface RiddlePreviewDeployOptions {
102
- source?: RiddleProofSourceIdentity;
103
- }
104
- interface RiddleRunScriptInput {
105
- url: string;
106
- script: string;
107
- viewport?: {
108
- width: number;
109
- height: number;
110
- };
111
- timeoutSec?: number;
112
- sync?: boolean;
113
- strict?: boolean;
114
- include?: string[];
115
- options?: Record<string, unknown>;
116
- }
117
- interface RiddleServerPreviewInput {
118
- directory: string;
119
- script: string;
120
- image?: string;
121
- command?: string;
122
- port?: number;
123
- path?: string;
124
- readinessPath?: string;
125
- readinessTimeoutSec?: number;
126
- waitForSelector?: string;
127
- waitUntil?: "commit" | "domcontentloaded" | "load" | "networkidle";
128
- navigationTimeoutSec?: number;
129
- viewport?: {
130
- width: number;
131
- height: number;
132
- };
133
- timeoutSec?: number;
134
- pollAttempts?: number;
135
- pollIntervalMs?: number;
136
- exclude?: string[];
137
- }
138
- interface RiddlePollJobResult {
139
- ok: boolean;
140
- job_id: string;
141
- status: string | null;
142
- terminal: boolean;
143
- job: Record<string, unknown> | null;
144
- artifacts?: Record<string, unknown> | null;
145
- poll?: RiddlePollSummary;
146
- }
147
- interface RiddleServerPreviewResult {
148
- ok: boolean;
149
- job_id: string;
150
- status: string | null;
151
- terminal: boolean;
152
- script_error: string | null;
153
- job: Record<string, unknown> | null;
154
- }
155
- declare class RiddleApiError extends Error {
156
- readonly status: number;
157
- readonly body: string;
158
- readonly path: string;
159
- constructor(pathname: string, status: number, body: string);
160
- }
161
- declare function resolveRiddleApiKeySource(config?: RiddleClientConfig): RiddleApiKeySource;
162
- declare function resolveRiddleApiKey(config?: RiddleClientConfig): string;
163
- declare function riddleRequestJson<T = unknown>(config: RiddleClientConfig, pathname: string, init?: RequestInit): Promise<T>;
164
- declare function getRiddleBalance(config?: RiddleClientConfig): Promise<RiddleBalanceResult>;
165
- declare function detectRiddlePreviewSource(directory: string): RiddleProofSourceIdentity;
166
- declare function deployRiddlePreview(config: RiddleClientConfig, directory: string, label: string, framework?: RiddlePreviewFramework, options?: RiddlePreviewDeployOptions): Promise<RiddlePreviewDeployResult>;
167
- declare function collectRiddlePreviewDeployWarnings(directory: string, framework?: RiddlePreviewFramework): string[];
168
- declare function deployRiddleStaticPreview(config: RiddleClientConfig, directory: string, label: string, options?: RiddlePreviewDeployOptions): Promise<RiddlePreviewDeployResult>;
169
- declare function parseRiddleViewport(value?: string): {
170
- width: number;
171
- height: number;
172
- } | undefined;
173
- declare function runRiddleServerPreview(config: RiddleClientConfig, input: RiddleServerPreviewInput): Promise<RiddleServerPreviewResult>;
174
- declare function runRiddleScript(config: RiddleClientConfig, input: RiddleRunScriptInput): Promise<Record<string, unknown>>;
175
- declare function isTerminalRiddleJobStatus(status: unknown): boolean;
176
- declare function pollRiddleJob(config: RiddleClientConfig, jobId: string, options?: RiddlePollJobOptions): Promise<RiddlePollJobResult>;
177
- declare function createRiddleApiClient(config?: RiddleClientConfig): {
178
- apiKeySource: () => RiddleApiKeySource;
179
- requestJson: <T = unknown>(pathname: string, init?: RequestInit) => Promise<T>;
180
- getBalance: () => Promise<RiddleBalanceResult>;
181
- deployPreview: (directory: string, label: string, framework?: RiddlePreviewFramework, options?: RiddlePreviewDeployOptions) => Promise<RiddlePreviewDeployResult>;
182
- deployStaticPreview: (directory: string, label: string, options?: RiddlePreviewDeployOptions) => Promise<RiddlePreviewDeployResult>;
183
- runScript: (input: RiddleRunScriptInput) => Promise<Record<string, unknown>>;
184
- runServerPreview: (input: RiddleServerPreviewInput) => Promise<RiddleServerPreviewResult>;
185
- pollJob: (jobId: string, options?: RiddlePollJobOptions) => Promise<RiddlePollJobResult>;
186
- };
187
-
188
- export { DEFAULT_RIDDLE_API_BASE_URL, DEFAULT_RIDDLE_API_KEY_FILE, RIDDLE_UNSUBMITTED_WAKE_HINT, RiddleApiError, type RiddleApiKeySource, type RiddleBalanceResult, type RiddleClientConfig, type RiddleFetch, type RiddlePollJobOptions, type RiddlePollJobResult, type RiddlePollProgressSnapshot, type RiddlePollSummary, type RiddlePreviewDeployOptions, type RiddlePreviewDeployProgressSnapshot, type RiddlePreviewDeployResult, type RiddlePreviewDeployStage, type RiddlePreviewFramework, type RiddleRunScriptInput, type RiddleServerPreviewInput, type RiddleServerPreviewResult, collectRiddlePreviewDeployWarnings, createRiddleApiClient, deployRiddlePreview, deployRiddleStaticPreview, detectRiddlePreviewSource, getRiddleBalance, isTerminalRiddleJobStatus, parseRiddleViewport, pollRiddleJob, resolveRiddleApiKey, resolveRiddleApiKeySource, riddleRequestJson, runRiddleScript, runRiddleServerPreview };
1
+ export { DEFAULT_RIDDLE_API_BASE_URL, DEFAULT_RIDDLE_API_KEY_FILE, RIDDLE_BALANCE_ENDPOINT_PATH, RIDDLE_UNSUBMITTED_WAKE_HINT, RiddleApiError, RiddleApiKeySource, RiddleBalanceResult, RiddleClientConfig, RiddleFetch, RiddlePollJobOptions, RiddlePollJobResult, RiddlePollProgressSnapshot, RiddlePollSummary, RiddlePreviewDeployOptions, RiddlePreviewDeployProgressSnapshot, RiddlePreviewDeployResult, RiddlePreviewDeployStage, RiddlePreviewFramework, RiddleRunScriptInput, RiddleServerPreviewInput, RiddleServerPreviewResult, collectRiddlePreviewDeployWarnings, createRiddleApiClient, deployRiddlePreview, deployRiddleStaticPreview, detectRiddlePreviewSource, getRiddleBalance, getRiddleJobArtifacts, isTerminalRiddleJobStatus, parseRiddleViewport, pollRiddleJob, resolveRiddleApiKey, resolveRiddleApiKeySource, riddleRequestJson, runRiddleScript, runRiddleServerPreview } from '@riddledc/riddle-proof-riddle-client/client';
@@ -1,188 +1 @@
1
- import { RiddleProofExecutionTelemetry, RiddleProofSourceIdentity, RiddlePreviewReceipt } from './receipts.js';
2
- import './profile.js';
3
- import './types.js';
4
- import './public-state.js';
5
-
6
- declare const DEFAULT_RIDDLE_API_BASE_URL = "https://api.riddledc.com";
7
- declare const DEFAULT_RIDDLE_API_KEY_FILE = "/tmp/riddle-api-key";
8
- declare const RIDDLE_UNSUBMITTED_WAKE_HINT = "hosted worker may still be waking or waiting for a lease";
9
- type RiddleFetch = typeof fetch;
10
- interface RiddleClientConfig {
11
- apiKey?: string;
12
- apiKeyFile?: string;
13
- apiBaseUrl?: string;
14
- fetchImpl?: RiddleFetch;
15
- onPreviewProgress?: (snapshot: RiddlePreviewDeployProgressSnapshot) => void | Promise<void>;
16
- }
17
- interface RiddleApiKeySource {
18
- source: "option" | "env" | "file";
19
- file?: string;
20
- }
21
- interface RiddleBalanceResult {
22
- available_seconds?: number;
23
- reserved_seconds?: number;
24
- total_seconds?: number;
25
- available_time?: string;
26
- total_time?: string;
27
- available_dollars?: number;
28
- reserved_dollars?: number;
29
- total_dollars?: number;
30
- currency?: string;
31
- holds_count?: number;
32
- rate?: Record<string, unknown>;
33
- }
34
- interface RiddlePollProgressSnapshot {
35
- job_id: string;
36
- status: string | null;
37
- phase: string | null;
38
- terminal: boolean;
39
- attempt: number;
40
- attempts: number;
41
- elapsed_ms: number;
42
- created_at: string | null;
43
- submitted_at: string | null;
44
- completed_at: string | null;
45
- queue_elapsed_ms: number | null;
46
- pre_submission_elapsed_ms: number;
47
- running_without_submission: boolean;
48
- active_execution: boolean;
49
- execution?: RiddleProofExecutionTelemetry;
50
- }
51
- interface RiddlePollSummary extends RiddlePollProgressSnapshot {
52
- timed_out: boolean;
53
- interval_ms: number;
54
- unsubmitted_timeout?: boolean;
55
- unsubmitted_timeout_ms?: number;
56
- message?: string;
57
- }
58
- interface RiddlePollJobOptions {
59
- wait?: boolean;
60
- attempts?: number;
61
- intervalMs?: number;
62
- progressEveryMs?: number;
63
- unsubmittedTimeoutMs?: number;
64
- onProgress?: (snapshot: RiddlePollProgressSnapshot) => void | Promise<void>;
65
- }
66
- type RiddlePreviewFramework = "spa" | "static";
67
- type RiddlePreviewDeployStage = "validating" | "creating" | "created" | "archiving" | "archived" | "uploading" | "uploaded" | "publishing" | "publish_recovering" | "checking_status" | "ready";
68
- interface RiddlePreviewDeployProgressSnapshot {
69
- stage: RiddlePreviewDeployStage;
70
- label: string;
71
- framework: RiddlePreviewFramework;
72
- directory: string;
73
- elapsed_ms: number;
74
- id?: string;
75
- preview_url?: string;
76
- file_count?: number;
77
- total_bytes?: number;
78
- tarball_bytes?: number;
79
- attempt?: number;
80
- attempts?: number;
81
- status?: string | null;
82
- publish_error?: string;
83
- warnings?: string[];
84
- message?: string;
85
- }
86
- interface RiddlePreviewDeployResult {
87
- ok: true;
88
- id: string;
89
- label: string;
90
- framework: RiddlePreviewFramework;
91
- preview_url: string;
92
- file_count?: number;
93
- total_bytes?: number;
94
- expires_at?: string;
95
- receipt?: RiddlePreviewReceipt;
96
- publish_recovered?: boolean;
97
- publish_error?: string;
98
- warnings?: string[];
99
- raw?: Record<string, unknown>;
100
- }
101
- interface RiddlePreviewDeployOptions {
102
- source?: RiddleProofSourceIdentity;
103
- }
104
- interface RiddleRunScriptInput {
105
- url: string;
106
- script: string;
107
- viewport?: {
108
- width: number;
109
- height: number;
110
- };
111
- timeoutSec?: number;
112
- sync?: boolean;
113
- strict?: boolean;
114
- include?: string[];
115
- options?: Record<string, unknown>;
116
- }
117
- interface RiddleServerPreviewInput {
118
- directory: string;
119
- script: string;
120
- image?: string;
121
- command?: string;
122
- port?: number;
123
- path?: string;
124
- readinessPath?: string;
125
- readinessTimeoutSec?: number;
126
- waitForSelector?: string;
127
- waitUntil?: "commit" | "domcontentloaded" | "load" | "networkidle";
128
- navigationTimeoutSec?: number;
129
- viewport?: {
130
- width: number;
131
- height: number;
132
- };
133
- timeoutSec?: number;
134
- pollAttempts?: number;
135
- pollIntervalMs?: number;
136
- exclude?: string[];
137
- }
138
- interface RiddlePollJobResult {
139
- ok: boolean;
140
- job_id: string;
141
- status: string | null;
142
- terminal: boolean;
143
- job: Record<string, unknown> | null;
144
- artifacts?: Record<string, unknown> | null;
145
- poll?: RiddlePollSummary;
146
- }
147
- interface RiddleServerPreviewResult {
148
- ok: boolean;
149
- job_id: string;
150
- status: string | null;
151
- terminal: boolean;
152
- script_error: string | null;
153
- job: Record<string, unknown> | null;
154
- }
155
- declare class RiddleApiError extends Error {
156
- readonly status: number;
157
- readonly body: string;
158
- readonly path: string;
159
- constructor(pathname: string, status: number, body: string);
160
- }
161
- declare function resolveRiddleApiKeySource(config?: RiddleClientConfig): RiddleApiKeySource;
162
- declare function resolveRiddleApiKey(config?: RiddleClientConfig): string;
163
- declare function riddleRequestJson<T = unknown>(config: RiddleClientConfig, pathname: string, init?: RequestInit): Promise<T>;
164
- declare function getRiddleBalance(config?: RiddleClientConfig): Promise<RiddleBalanceResult>;
165
- declare function detectRiddlePreviewSource(directory: string): RiddleProofSourceIdentity;
166
- declare function deployRiddlePreview(config: RiddleClientConfig, directory: string, label: string, framework?: RiddlePreviewFramework, options?: RiddlePreviewDeployOptions): Promise<RiddlePreviewDeployResult>;
167
- declare function collectRiddlePreviewDeployWarnings(directory: string, framework?: RiddlePreviewFramework): string[];
168
- declare function deployRiddleStaticPreview(config: RiddleClientConfig, directory: string, label: string, options?: RiddlePreviewDeployOptions): Promise<RiddlePreviewDeployResult>;
169
- declare function parseRiddleViewport(value?: string): {
170
- width: number;
171
- height: number;
172
- } | undefined;
173
- declare function runRiddleServerPreview(config: RiddleClientConfig, input: RiddleServerPreviewInput): Promise<RiddleServerPreviewResult>;
174
- declare function runRiddleScript(config: RiddleClientConfig, input: RiddleRunScriptInput): Promise<Record<string, unknown>>;
175
- declare function isTerminalRiddleJobStatus(status: unknown): boolean;
176
- declare function pollRiddleJob(config: RiddleClientConfig, jobId: string, options?: RiddlePollJobOptions): Promise<RiddlePollJobResult>;
177
- declare function createRiddleApiClient(config?: RiddleClientConfig): {
178
- apiKeySource: () => RiddleApiKeySource;
179
- requestJson: <T = unknown>(pathname: string, init?: RequestInit) => Promise<T>;
180
- getBalance: () => Promise<RiddleBalanceResult>;
181
- deployPreview: (directory: string, label: string, framework?: RiddlePreviewFramework, options?: RiddlePreviewDeployOptions) => Promise<RiddlePreviewDeployResult>;
182
- deployStaticPreview: (directory: string, label: string, options?: RiddlePreviewDeployOptions) => Promise<RiddlePreviewDeployResult>;
183
- runScript: (input: RiddleRunScriptInput) => Promise<Record<string, unknown>>;
184
- runServerPreview: (input: RiddleServerPreviewInput) => Promise<RiddleServerPreviewResult>;
185
- pollJob: (jobId: string, options?: RiddlePollJobOptions) => Promise<RiddlePollJobResult>;
186
- };
187
-
188
- export { DEFAULT_RIDDLE_API_BASE_URL, DEFAULT_RIDDLE_API_KEY_FILE, RIDDLE_UNSUBMITTED_WAKE_HINT, RiddleApiError, type RiddleApiKeySource, type RiddleBalanceResult, type RiddleClientConfig, type RiddleFetch, type RiddlePollJobOptions, type RiddlePollJobResult, type RiddlePollProgressSnapshot, type RiddlePollSummary, type RiddlePreviewDeployOptions, type RiddlePreviewDeployProgressSnapshot, type RiddlePreviewDeployResult, type RiddlePreviewDeployStage, type RiddlePreviewFramework, type RiddleRunScriptInput, type RiddleServerPreviewInput, type RiddleServerPreviewResult, collectRiddlePreviewDeployWarnings, createRiddleApiClient, deployRiddlePreview, deployRiddleStaticPreview, detectRiddlePreviewSource, getRiddleBalance, isTerminalRiddleJobStatus, parseRiddleViewport, pollRiddleJob, resolveRiddleApiKey, resolveRiddleApiKeySource, riddleRequestJson, runRiddleScript, runRiddleServerPreview };
1
+ export { DEFAULT_RIDDLE_API_BASE_URL, DEFAULT_RIDDLE_API_KEY_FILE, RIDDLE_BALANCE_ENDPOINT_PATH, RIDDLE_UNSUBMITTED_WAKE_HINT, RiddleApiError, RiddleApiKeySource, RiddleBalanceResult, RiddleClientConfig, RiddleFetch, RiddlePollJobOptions, RiddlePollJobResult, RiddlePollProgressSnapshot, RiddlePollSummary, RiddlePreviewDeployOptions, RiddlePreviewDeployProgressSnapshot, RiddlePreviewDeployResult, RiddlePreviewDeployStage, RiddlePreviewFramework, RiddleRunScriptInput, RiddleServerPreviewInput, RiddleServerPreviewResult, collectRiddlePreviewDeployWarnings, createRiddleApiClient, deployRiddlePreview, deployRiddleStaticPreview, detectRiddlePreviewSource, getRiddleBalance, getRiddleJobArtifacts, isTerminalRiddleJobStatus, parseRiddleViewport, pollRiddleJob, resolveRiddleApiKey, resolveRiddleApiKeySource, riddleRequestJson, runRiddleScript, runRiddleServerPreview } from '@riddledc/riddle-proof-riddle-client/client';
@@ -1,6 +1,7 @@
1
1
  import {
2
2
  DEFAULT_RIDDLE_API_BASE_URL,
3
3
  DEFAULT_RIDDLE_API_KEY_FILE,
4
+ RIDDLE_BALANCE_ENDPOINT_PATH,
4
5
  RIDDLE_UNSUBMITTED_WAKE_HINT,
5
6
  RiddleApiError,
6
7
  collectRiddlePreviewDeployWarnings,
@@ -9,6 +10,7 @@ import {
9
10
  deployRiddleStaticPreview,
10
11
  detectRiddlePreviewSource,
11
12
  getRiddleBalance,
13
+ getRiddleJobArtifacts,
12
14
  isTerminalRiddleJobStatus,
13
15
  parseRiddleViewport,
14
16
  pollRiddleJob,
@@ -17,12 +19,12 @@ import {
17
19
  riddleRequestJson,
18
20
  runRiddleScript,
19
21
  runRiddleServerPreview
20
- } from "./chunk-5IFZSUPF.js";
21
- import "./chunk-MEVVL4TI.js";
22
+ } from "./chunk-KB7FYRBG.js";
22
23
  import "./chunk-MLKGABMK.js";
23
24
  export {
24
25
  DEFAULT_RIDDLE_API_BASE_URL,
25
26
  DEFAULT_RIDDLE_API_KEY_FILE,
27
+ RIDDLE_BALANCE_ENDPOINT_PATH,
26
28
  RIDDLE_UNSUBMITTED_WAKE_HINT,
27
29
  RiddleApiError,
28
30
  collectRiddlePreviewDeployWarnings,
@@ -31,6 +33,7 @@ export {
31
33
  deployRiddleStaticPreview,
32
34
  detectRiddlePreviewSource,
33
35
  getRiddleBalance,
36
+ getRiddleJobArtifacts,
34
37
  isTerminalRiddleJobStatus,
35
38
  parseRiddleViewport,
36
39
  pollRiddleJob,
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/rule-trust-root.ts
21
+ var rule_trust_root_exports = {};
22
+ __export(rule_trust_root_exports, {
23
+ RIDDLE_PROOF_RULE_TRUST_ROOT_DIGEST_DOMAIN: () => import_rule_trust_root.RIDDLE_PROOF_RULE_TRUST_ROOT_DIGEST_DOMAIN,
24
+ RIDDLE_PROOF_RULE_TRUST_ROOT_VERSION: () => import_rule_trust_root.RIDDLE_PROOF_RULE_TRUST_ROOT_VERSION,
25
+ createRiddleProofRuleTrustRoot: () => import_rule_trust_root.createRiddleProofRuleTrustRoot,
26
+ resolveRiddleProofRuleTrustRoot: () => import_rule_trust_root.resolveRiddleProofRuleTrustRoot
27
+ });
28
+ module.exports = __toCommonJS(rule_trust_root_exports);
29
+ var import_rule_trust_root = require("@riddledc/riddle-proof-core/rule-trust-root");
30
+ // Annotate the CommonJS export names for ESM import in node:
31
+ 0 && (module.exports = {
32
+ RIDDLE_PROOF_RULE_TRUST_ROOT_DIGEST_DOMAIN,
33
+ RIDDLE_PROOF_RULE_TRUST_ROOT_VERSION,
34
+ createRiddleProofRuleTrustRoot,
35
+ resolveRiddleProofRuleTrustRoot
36
+ });
@@ -0,0 +1,2 @@
1
+ export * from '@riddledc/riddle-proof-core/rule-trust-root';
2
+ export { RIDDLE_PROOF_RULE_TRUST_ROOT_DIGEST_DOMAIN, RIDDLE_PROOF_RULE_TRUST_ROOT_VERSION, createRiddleProofRuleTrustRoot, resolveRiddleProofRuleTrustRoot } from '@riddledc/riddle-proof-core/rule-trust-root';
@@ -0,0 +1,2 @@
1
+ export * from '@riddledc/riddle-proof-core/rule-trust-root';
2
+ export { RIDDLE_PROOF_RULE_TRUST_ROOT_DIGEST_DOMAIN, RIDDLE_PROOF_RULE_TRUST_ROOT_VERSION, createRiddleProofRuleTrustRoot, resolveRiddleProofRuleTrustRoot } from '@riddledc/riddle-proof-core/rule-trust-root';
@@ -0,0 +1,13 @@
1
+ import {
2
+ RIDDLE_PROOF_RULE_TRUST_ROOT_DIGEST_DOMAIN,
3
+ RIDDLE_PROOF_RULE_TRUST_ROOT_VERSION,
4
+ createRiddleProofRuleTrustRoot,
5
+ resolveRiddleProofRuleTrustRoot
6
+ } from "./chunk-6S33FQL7.js";
7
+ import "./chunk-MLKGABMK.js";
8
+ export {
9
+ RIDDLE_PROOF_RULE_TRUST_ROOT_DIGEST_DOMAIN,
10
+ RIDDLE_PROOF_RULE_TRUST_ROOT_VERSION,
11
+ createRiddleProofRuleTrustRoot,
12
+ resolveRiddleProofRuleTrustRoot
13
+ };
package/dist/runner.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  runRiddleProof
3
- } from "./chunk-YH7ADFY4.js";
3
+ } from "./chunk-IVSP24XI.js";
4
+ import "./chunk-EKZXU6MU.js";
4
5
  import "./chunk-CGJX7LJO.js";
5
6
  import "./chunk-UTCL7FEZ.js";
6
- import "./chunk-EKZXU6MU.js";
7
7
  import "./chunk-DYE3URAQ.js";
8
8
  import "./chunk-NKHZASNQ.js";
9
9
  import "./chunk-ZAR7BWMN.js";