@riddledc/riddle-proof 0.1.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/LICENSE +21 -0
- package/README.md +43 -0
- package/dist/chunk-2ZQNXVQC.js +81 -0
- package/dist/chunk-6F4PWJZI.js +0 -0
- package/dist/chunk-EPVZKWUS.js +107 -0
- package/dist/index.cjs +219 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +35 -0
- package/dist/openclaw.cjs +150 -0
- package/dist/openclaw.d.cts +40 -0
- package/dist/openclaw.d.ts +40 -0
- package/dist/openclaw.js +70 -0
- package/dist/result.cjs +112 -0
- package/dist/result.d.cts +25 -0
- package/dist/result.d.ts +25 -0
- package/dist/result.js +20 -0
- package/dist/state.cjs +143 -0
- package/dist/state.d.cts +23 -0
- package/dist/state.d.ts +23 -0
- package/dist/state.js +17 -0
- package/dist/types.cjs +18 -0
- package/dist/types.d.cts +179 -0
- package/dist/types.d.ts +179 -0
- package/dist/types.js +1 -0
- package/package.json +63 -0
package/dist/types.d.cts
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
2
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
|
|
3
|
+
type JsonObject = {
|
|
4
|
+
[key: string]: JsonValue;
|
|
5
|
+
};
|
|
6
|
+
type RiddleProofStatus = "running" | "blocked" | "failed" | "ready_to_ship" | "shipped" | "completed";
|
|
7
|
+
type RiddleProofVerificationMode = "proof" | "visual" | "interaction" | "render" | "data" | "json" | "audio" | "log" | "logs" | "metric" | "metrics" | (string & {});
|
|
8
|
+
type RiddleProofDecision = "ready_to_ship" | "needs_richer_proof" | "revise_capture" | "needs_recon" | "needs_implementation" | (string & {});
|
|
9
|
+
type RiddleProofStage = "setup" | "recon" | "author" | "implement" | "verify" | "ship" | (string & {});
|
|
10
|
+
interface RiddleProofRunParams {
|
|
11
|
+
repo?: string;
|
|
12
|
+
branch?: string;
|
|
13
|
+
change_request?: string;
|
|
14
|
+
commit_message?: string;
|
|
15
|
+
prod_url?: string;
|
|
16
|
+
capture_script?: string;
|
|
17
|
+
success_criteria?: string;
|
|
18
|
+
assertions?: JsonValue;
|
|
19
|
+
verification_mode?: RiddleProofVerificationMode;
|
|
20
|
+
reference?: "prod" | "before" | "both";
|
|
21
|
+
base_branch?: string;
|
|
22
|
+
before_ref?: string;
|
|
23
|
+
allow_static_preview_fallback?: boolean;
|
|
24
|
+
context?: string;
|
|
25
|
+
reviewer?: string;
|
|
26
|
+
mode?: string;
|
|
27
|
+
build_command?: string;
|
|
28
|
+
build_output?: string;
|
|
29
|
+
server_image?: string;
|
|
30
|
+
server_command?: string;
|
|
31
|
+
server_port?: number;
|
|
32
|
+
server_path?: string;
|
|
33
|
+
use_auth?: boolean;
|
|
34
|
+
color_scheme?: "dark" | "light" | (string & {});
|
|
35
|
+
wait_for_selector?: string;
|
|
36
|
+
ship_mode?: "none" | "ship";
|
|
37
|
+
integration_context?: IntegrationContext;
|
|
38
|
+
}
|
|
39
|
+
interface IntegrationContext {
|
|
40
|
+
source?: "openclaw" | "discord" | "github" | "cli" | "riddle" | (string & {});
|
|
41
|
+
channel_id?: string;
|
|
42
|
+
thread_id?: string;
|
|
43
|
+
message_id?: string;
|
|
44
|
+
source_url?: string;
|
|
45
|
+
metadata?: Record<string, unknown>;
|
|
46
|
+
}
|
|
47
|
+
interface RiddleProofBlocker {
|
|
48
|
+
code: string;
|
|
49
|
+
message: string;
|
|
50
|
+
checkpoint?: string | null;
|
|
51
|
+
details?: Record<string, unknown>;
|
|
52
|
+
}
|
|
53
|
+
interface RiddleProofEvent {
|
|
54
|
+
ts: string;
|
|
55
|
+
kind: string;
|
|
56
|
+
checkpoint?: string | null;
|
|
57
|
+
stage?: RiddleProofStage | null;
|
|
58
|
+
summary?: string | null;
|
|
59
|
+
details?: Record<string, unknown>;
|
|
60
|
+
}
|
|
61
|
+
interface RiddleProofRunState {
|
|
62
|
+
version: "riddle-proof.run-state.v1";
|
|
63
|
+
state_path?: string;
|
|
64
|
+
status: RiddleProofStatus;
|
|
65
|
+
ok?: boolean;
|
|
66
|
+
created_at: string;
|
|
67
|
+
updated_at: string;
|
|
68
|
+
request: RiddleProofRunParams;
|
|
69
|
+
iterations: number;
|
|
70
|
+
last_checkpoint?: string | null;
|
|
71
|
+
pr_url?: string;
|
|
72
|
+
marked_ready?: boolean;
|
|
73
|
+
notification?: Record<string, unknown>;
|
|
74
|
+
proof_decision?: RiddleProofDecision;
|
|
75
|
+
merge_recommendation?: string;
|
|
76
|
+
finalized?: boolean;
|
|
77
|
+
blocker?: RiddleProofBlocker;
|
|
78
|
+
events: RiddleProofEvent[];
|
|
79
|
+
}
|
|
80
|
+
interface RiddleProofRunResult {
|
|
81
|
+
ok: boolean;
|
|
82
|
+
status: RiddleProofStatus;
|
|
83
|
+
state_path?: string | null;
|
|
84
|
+
iterations?: number;
|
|
85
|
+
last_checkpoint?: string | null;
|
|
86
|
+
last_summary?: string | null;
|
|
87
|
+
event_count?: number;
|
|
88
|
+
pr_url?: string;
|
|
89
|
+
marked_ready?: boolean;
|
|
90
|
+
notification?: Record<string, unknown>;
|
|
91
|
+
proof_decision?: RiddleProofDecision;
|
|
92
|
+
merge_recommendation?: string;
|
|
93
|
+
finalized?: boolean;
|
|
94
|
+
blocker?: RiddleProofBlocker;
|
|
95
|
+
evidence_bundle?: RiddleProofEvidenceBundle;
|
|
96
|
+
raw?: Record<string, unknown>;
|
|
97
|
+
}
|
|
98
|
+
interface RiddleProofEvidenceBundle {
|
|
99
|
+
verification_mode: RiddleProofVerificationMode;
|
|
100
|
+
baselines?: EvidenceReference[];
|
|
101
|
+
after?: EvidenceReference;
|
|
102
|
+
artifacts?: EvidenceArtifact[];
|
|
103
|
+
proof_evidence?: unknown;
|
|
104
|
+
proof_evidence_sample?: unknown;
|
|
105
|
+
assertions?: JsonValue;
|
|
106
|
+
summary?: string;
|
|
107
|
+
notes?: string[];
|
|
108
|
+
}
|
|
109
|
+
interface EvidenceReference {
|
|
110
|
+
kind: "before" | "prod" | "after" | "comparison" | (string & {});
|
|
111
|
+
url?: string;
|
|
112
|
+
path?: string;
|
|
113
|
+
observed_path?: string;
|
|
114
|
+
label?: string;
|
|
115
|
+
metadata?: Record<string, unknown>;
|
|
116
|
+
}
|
|
117
|
+
interface EvidenceArtifact {
|
|
118
|
+
name: string;
|
|
119
|
+
kind?: "screenshot" | "json" | "log" | "metric" | "audio" | "video" | (string & {});
|
|
120
|
+
url?: string;
|
|
121
|
+
path?: string;
|
|
122
|
+
content_type?: string;
|
|
123
|
+
size_bytes?: number;
|
|
124
|
+
metadata?: Record<string, unknown>;
|
|
125
|
+
}
|
|
126
|
+
interface RiddleProofAssessment {
|
|
127
|
+
decision: RiddleProofDecision;
|
|
128
|
+
summary: string;
|
|
129
|
+
recommended_stage?: RiddleProofStage;
|
|
130
|
+
continue_with_stage?: RiddleProofStage;
|
|
131
|
+
escalation_target?: "agent" | "human" | (string & {});
|
|
132
|
+
reasons?: string[];
|
|
133
|
+
source?: "supervising_agent" | "supervisor" | "human" | (string & {});
|
|
134
|
+
}
|
|
135
|
+
interface ImplementationAdapterInput {
|
|
136
|
+
workdir: string;
|
|
137
|
+
change_request: string;
|
|
138
|
+
evidence_context?: RiddleProofEvidenceBundle;
|
|
139
|
+
state?: RiddleProofRunState;
|
|
140
|
+
}
|
|
141
|
+
interface ImplementationAdapterResult {
|
|
142
|
+
ok: boolean;
|
|
143
|
+
changed_files?: string[];
|
|
144
|
+
implementation_notes?: string;
|
|
145
|
+
tests_run?: string[];
|
|
146
|
+
blockers?: string[];
|
|
147
|
+
raw?: Record<string, unknown>;
|
|
148
|
+
}
|
|
149
|
+
interface ImplementationAdapter {
|
|
150
|
+
implement(input: ImplementationAdapterInput): Promise<ImplementationAdapterResult>;
|
|
151
|
+
}
|
|
152
|
+
interface JudgeAdapter {
|
|
153
|
+
assessProof(input: {
|
|
154
|
+
state: RiddleProofRunState;
|
|
155
|
+
evidence_bundle: RiddleProofEvidenceBundle;
|
|
156
|
+
}): Promise<RiddleProofAssessment>;
|
|
157
|
+
}
|
|
158
|
+
interface ShipAdapter {
|
|
159
|
+
ship(input: {
|
|
160
|
+
state: RiddleProofRunState;
|
|
161
|
+
assessment: RiddleProofAssessment;
|
|
162
|
+
}): Promise<RiddleProofTerminalMetadata>;
|
|
163
|
+
}
|
|
164
|
+
interface NotificationAdapter {
|
|
165
|
+
notify(input: {
|
|
166
|
+
state: RiddleProofRunState;
|
|
167
|
+
result: RiddleProofRunResult;
|
|
168
|
+
}): Promise<Record<string, unknown>>;
|
|
169
|
+
}
|
|
170
|
+
interface RiddleProofTerminalMetadata {
|
|
171
|
+
pr_url?: string;
|
|
172
|
+
marked_ready?: boolean;
|
|
173
|
+
notification?: Record<string, unknown>;
|
|
174
|
+
proof_decision?: RiddleProofDecision;
|
|
175
|
+
merge_recommendation?: string;
|
|
176
|
+
finalized?: boolean;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type { EvidenceArtifact, EvidenceReference, ImplementationAdapter, ImplementationAdapterInput, ImplementationAdapterResult, IntegrationContext, JsonObject, JsonPrimitive, JsonValue, JudgeAdapter, NotificationAdapter, RiddleProofAssessment, RiddleProofBlocker, RiddleProofDecision, RiddleProofEvent, RiddleProofEvidenceBundle, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofStage, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, ShipAdapter };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
2
|
+
type JsonValue = JsonPrimitive | JsonObject | JsonValue[];
|
|
3
|
+
type JsonObject = {
|
|
4
|
+
[key: string]: JsonValue;
|
|
5
|
+
};
|
|
6
|
+
type RiddleProofStatus = "running" | "blocked" | "failed" | "ready_to_ship" | "shipped" | "completed";
|
|
7
|
+
type RiddleProofVerificationMode = "proof" | "visual" | "interaction" | "render" | "data" | "json" | "audio" | "log" | "logs" | "metric" | "metrics" | (string & {});
|
|
8
|
+
type RiddleProofDecision = "ready_to_ship" | "needs_richer_proof" | "revise_capture" | "needs_recon" | "needs_implementation" | (string & {});
|
|
9
|
+
type RiddleProofStage = "setup" | "recon" | "author" | "implement" | "verify" | "ship" | (string & {});
|
|
10
|
+
interface RiddleProofRunParams {
|
|
11
|
+
repo?: string;
|
|
12
|
+
branch?: string;
|
|
13
|
+
change_request?: string;
|
|
14
|
+
commit_message?: string;
|
|
15
|
+
prod_url?: string;
|
|
16
|
+
capture_script?: string;
|
|
17
|
+
success_criteria?: string;
|
|
18
|
+
assertions?: JsonValue;
|
|
19
|
+
verification_mode?: RiddleProofVerificationMode;
|
|
20
|
+
reference?: "prod" | "before" | "both";
|
|
21
|
+
base_branch?: string;
|
|
22
|
+
before_ref?: string;
|
|
23
|
+
allow_static_preview_fallback?: boolean;
|
|
24
|
+
context?: string;
|
|
25
|
+
reviewer?: string;
|
|
26
|
+
mode?: string;
|
|
27
|
+
build_command?: string;
|
|
28
|
+
build_output?: string;
|
|
29
|
+
server_image?: string;
|
|
30
|
+
server_command?: string;
|
|
31
|
+
server_port?: number;
|
|
32
|
+
server_path?: string;
|
|
33
|
+
use_auth?: boolean;
|
|
34
|
+
color_scheme?: "dark" | "light" | (string & {});
|
|
35
|
+
wait_for_selector?: string;
|
|
36
|
+
ship_mode?: "none" | "ship";
|
|
37
|
+
integration_context?: IntegrationContext;
|
|
38
|
+
}
|
|
39
|
+
interface IntegrationContext {
|
|
40
|
+
source?: "openclaw" | "discord" | "github" | "cli" | "riddle" | (string & {});
|
|
41
|
+
channel_id?: string;
|
|
42
|
+
thread_id?: string;
|
|
43
|
+
message_id?: string;
|
|
44
|
+
source_url?: string;
|
|
45
|
+
metadata?: Record<string, unknown>;
|
|
46
|
+
}
|
|
47
|
+
interface RiddleProofBlocker {
|
|
48
|
+
code: string;
|
|
49
|
+
message: string;
|
|
50
|
+
checkpoint?: string | null;
|
|
51
|
+
details?: Record<string, unknown>;
|
|
52
|
+
}
|
|
53
|
+
interface RiddleProofEvent {
|
|
54
|
+
ts: string;
|
|
55
|
+
kind: string;
|
|
56
|
+
checkpoint?: string | null;
|
|
57
|
+
stage?: RiddleProofStage | null;
|
|
58
|
+
summary?: string | null;
|
|
59
|
+
details?: Record<string, unknown>;
|
|
60
|
+
}
|
|
61
|
+
interface RiddleProofRunState {
|
|
62
|
+
version: "riddle-proof.run-state.v1";
|
|
63
|
+
state_path?: string;
|
|
64
|
+
status: RiddleProofStatus;
|
|
65
|
+
ok?: boolean;
|
|
66
|
+
created_at: string;
|
|
67
|
+
updated_at: string;
|
|
68
|
+
request: RiddleProofRunParams;
|
|
69
|
+
iterations: number;
|
|
70
|
+
last_checkpoint?: string | null;
|
|
71
|
+
pr_url?: string;
|
|
72
|
+
marked_ready?: boolean;
|
|
73
|
+
notification?: Record<string, unknown>;
|
|
74
|
+
proof_decision?: RiddleProofDecision;
|
|
75
|
+
merge_recommendation?: string;
|
|
76
|
+
finalized?: boolean;
|
|
77
|
+
blocker?: RiddleProofBlocker;
|
|
78
|
+
events: RiddleProofEvent[];
|
|
79
|
+
}
|
|
80
|
+
interface RiddleProofRunResult {
|
|
81
|
+
ok: boolean;
|
|
82
|
+
status: RiddleProofStatus;
|
|
83
|
+
state_path?: string | null;
|
|
84
|
+
iterations?: number;
|
|
85
|
+
last_checkpoint?: string | null;
|
|
86
|
+
last_summary?: string | null;
|
|
87
|
+
event_count?: number;
|
|
88
|
+
pr_url?: string;
|
|
89
|
+
marked_ready?: boolean;
|
|
90
|
+
notification?: Record<string, unknown>;
|
|
91
|
+
proof_decision?: RiddleProofDecision;
|
|
92
|
+
merge_recommendation?: string;
|
|
93
|
+
finalized?: boolean;
|
|
94
|
+
blocker?: RiddleProofBlocker;
|
|
95
|
+
evidence_bundle?: RiddleProofEvidenceBundle;
|
|
96
|
+
raw?: Record<string, unknown>;
|
|
97
|
+
}
|
|
98
|
+
interface RiddleProofEvidenceBundle {
|
|
99
|
+
verification_mode: RiddleProofVerificationMode;
|
|
100
|
+
baselines?: EvidenceReference[];
|
|
101
|
+
after?: EvidenceReference;
|
|
102
|
+
artifacts?: EvidenceArtifact[];
|
|
103
|
+
proof_evidence?: unknown;
|
|
104
|
+
proof_evidence_sample?: unknown;
|
|
105
|
+
assertions?: JsonValue;
|
|
106
|
+
summary?: string;
|
|
107
|
+
notes?: string[];
|
|
108
|
+
}
|
|
109
|
+
interface EvidenceReference {
|
|
110
|
+
kind: "before" | "prod" | "after" | "comparison" | (string & {});
|
|
111
|
+
url?: string;
|
|
112
|
+
path?: string;
|
|
113
|
+
observed_path?: string;
|
|
114
|
+
label?: string;
|
|
115
|
+
metadata?: Record<string, unknown>;
|
|
116
|
+
}
|
|
117
|
+
interface EvidenceArtifact {
|
|
118
|
+
name: string;
|
|
119
|
+
kind?: "screenshot" | "json" | "log" | "metric" | "audio" | "video" | (string & {});
|
|
120
|
+
url?: string;
|
|
121
|
+
path?: string;
|
|
122
|
+
content_type?: string;
|
|
123
|
+
size_bytes?: number;
|
|
124
|
+
metadata?: Record<string, unknown>;
|
|
125
|
+
}
|
|
126
|
+
interface RiddleProofAssessment {
|
|
127
|
+
decision: RiddleProofDecision;
|
|
128
|
+
summary: string;
|
|
129
|
+
recommended_stage?: RiddleProofStage;
|
|
130
|
+
continue_with_stage?: RiddleProofStage;
|
|
131
|
+
escalation_target?: "agent" | "human" | (string & {});
|
|
132
|
+
reasons?: string[];
|
|
133
|
+
source?: "supervising_agent" | "supervisor" | "human" | (string & {});
|
|
134
|
+
}
|
|
135
|
+
interface ImplementationAdapterInput {
|
|
136
|
+
workdir: string;
|
|
137
|
+
change_request: string;
|
|
138
|
+
evidence_context?: RiddleProofEvidenceBundle;
|
|
139
|
+
state?: RiddleProofRunState;
|
|
140
|
+
}
|
|
141
|
+
interface ImplementationAdapterResult {
|
|
142
|
+
ok: boolean;
|
|
143
|
+
changed_files?: string[];
|
|
144
|
+
implementation_notes?: string;
|
|
145
|
+
tests_run?: string[];
|
|
146
|
+
blockers?: string[];
|
|
147
|
+
raw?: Record<string, unknown>;
|
|
148
|
+
}
|
|
149
|
+
interface ImplementationAdapter {
|
|
150
|
+
implement(input: ImplementationAdapterInput): Promise<ImplementationAdapterResult>;
|
|
151
|
+
}
|
|
152
|
+
interface JudgeAdapter {
|
|
153
|
+
assessProof(input: {
|
|
154
|
+
state: RiddleProofRunState;
|
|
155
|
+
evidence_bundle: RiddleProofEvidenceBundle;
|
|
156
|
+
}): Promise<RiddleProofAssessment>;
|
|
157
|
+
}
|
|
158
|
+
interface ShipAdapter {
|
|
159
|
+
ship(input: {
|
|
160
|
+
state: RiddleProofRunState;
|
|
161
|
+
assessment: RiddleProofAssessment;
|
|
162
|
+
}): Promise<RiddleProofTerminalMetadata>;
|
|
163
|
+
}
|
|
164
|
+
interface NotificationAdapter {
|
|
165
|
+
notify(input: {
|
|
166
|
+
state: RiddleProofRunState;
|
|
167
|
+
result: RiddleProofRunResult;
|
|
168
|
+
}): Promise<Record<string, unknown>>;
|
|
169
|
+
}
|
|
170
|
+
interface RiddleProofTerminalMetadata {
|
|
171
|
+
pr_url?: string;
|
|
172
|
+
marked_ready?: boolean;
|
|
173
|
+
notification?: Record<string, unknown>;
|
|
174
|
+
proof_decision?: RiddleProofDecision;
|
|
175
|
+
merge_recommendation?: string;
|
|
176
|
+
finalized?: boolean;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type { EvidenceArtifact, EvidenceReference, ImplementationAdapter, ImplementationAdapterInput, ImplementationAdapterResult, IntegrationContext, JsonObject, JsonPrimitive, JsonValue, JudgeAdapter, NotificationAdapter, RiddleProofAssessment, RiddleProofBlocker, RiddleProofDecision, RiddleProofEvent, RiddleProofEvidenceBundle, RiddleProofRunParams, RiddleProofRunResult, RiddleProofRunState, RiddleProofStage, RiddleProofStatus, RiddleProofTerminalMetadata, RiddleProofVerificationMode, ShipAdapter };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./chunk-6F4PWJZI.js";
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@riddledc/riddle-proof",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Reusable Riddle Proof contracts and helpers for evidence-backed agent changes.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "RiddleDC",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/riddledc/integrations",
|
|
10
|
+
"directory": "packages/riddle-proof"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/index.cjs",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"require": "./dist/index.cjs"
|
|
21
|
+
},
|
|
22
|
+
"./types": {
|
|
23
|
+
"types": "./dist/types.d.ts",
|
|
24
|
+
"import": "./dist/types.js",
|
|
25
|
+
"require": "./dist/types.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./result": {
|
|
28
|
+
"types": "./dist/result.d.ts",
|
|
29
|
+
"import": "./dist/result.js",
|
|
30
|
+
"require": "./dist/result.cjs"
|
|
31
|
+
},
|
|
32
|
+
"./state": {
|
|
33
|
+
"types": "./dist/state.d.ts",
|
|
34
|
+
"import": "./dist/state.js",
|
|
35
|
+
"require": "./dist/state.cjs"
|
|
36
|
+
},
|
|
37
|
+
"./openclaw": {
|
|
38
|
+
"types": "./dist/openclaw.d.ts",
|
|
39
|
+
"import": "./dist/openclaw.js",
|
|
40
|
+
"require": "./dist/openclaw.cjs"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"dist",
|
|
45
|
+
"README.md",
|
|
46
|
+
"LICENSE"
|
|
47
|
+
],
|
|
48
|
+
"sideEffects": false,
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=18"
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@types/node": "^22.0.0",
|
|
54
|
+
"tsup": "^8.0.1",
|
|
55
|
+
"typescript": "^5.4.5"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "tsup src/index.ts src/types.ts src/result.ts src/state.ts src/openclaw.ts --format cjs,esm --dts --out-dir dist --clean",
|
|
59
|
+
"clean": "rm -rf dist",
|
|
60
|
+
"lint": "echo 'lint: (not configured)'",
|
|
61
|
+
"test": "npm run build && node test.js"
|
|
62
|
+
}
|
|
63
|
+
}
|