@clawbureau/clawsig-sdk 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 +149 -0
- package/dist/crypto.d.ts +32 -0
- package/dist/crypto.d.ts.map +1 -0
- package/dist/crypto.js +143 -0
- package/dist/crypto.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +27 -0
- package/dist/index.js.map +1 -0
- package/dist/run.d.ts +20 -0
- package/dist/run.d.ts.map +1 -0
- package/dist/run.js +502 -0
- package/dist/run.js.map +1 -0
- package/dist/types.d.ts +435 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/package.json +57 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for the clawsig SDK.
|
|
3
|
+
*
|
|
4
|
+
* Standalone type definitions so this package typechecks independently
|
|
5
|
+
* from the rest of the monorepo. Mirrors the proof-of-harness schemas
|
|
6
|
+
* (snake_case for schema-facing types, camelCase for internal API).
|
|
7
|
+
*/
|
|
8
|
+
/** Ed25519 key pair (Web Crypto). */
|
|
9
|
+
export interface Ed25519KeyPair {
|
|
10
|
+
publicKey: CryptoKey;
|
|
11
|
+
privateKey: CryptoKey;
|
|
12
|
+
}
|
|
13
|
+
/** Configuration for a clawsig SDK run. */
|
|
14
|
+
export interface ClawproofConfig {
|
|
15
|
+
/** Clawproxy base URL for routing LLM calls. */
|
|
16
|
+
proxyBaseUrl: string;
|
|
17
|
+
/** Bearer token for proxy auth (optional). */
|
|
18
|
+
proxyToken?: string;
|
|
19
|
+
/** Agent's Ed25519 key pair for signing proof bundles. */
|
|
20
|
+
keyPair: Ed25519KeyPair;
|
|
21
|
+
/** Agent DID (derived from keyPair if omitted). */
|
|
22
|
+
agentDid?: string;
|
|
23
|
+
/** Harness/script metadata embedded in URM and proof bundle. */
|
|
24
|
+
harness: HarnessConfig;
|
|
25
|
+
}
|
|
26
|
+
/** Harness/script identification metadata. */
|
|
27
|
+
export interface HarnessConfig {
|
|
28
|
+
id: string;
|
|
29
|
+
version: string;
|
|
30
|
+
runtime?: string;
|
|
31
|
+
configHash?: string;
|
|
32
|
+
}
|
|
33
|
+
/** Per-call binding context injected into proxy requests. */
|
|
34
|
+
export interface BindingContext {
|
|
35
|
+
runId: string;
|
|
36
|
+
eventHash?: string;
|
|
37
|
+
nonce?: string;
|
|
38
|
+
}
|
|
39
|
+
/** Standard event types the SDK emits. */
|
|
40
|
+
export type SDKEventType = 'run_start' | 'llm_call' | 'tool_call' | 'artifact_written' | 'run_end' | string;
|
|
41
|
+
/** Input to record an event. */
|
|
42
|
+
export interface RecordEventInput {
|
|
43
|
+
eventType: SDKEventType;
|
|
44
|
+
payload: unknown;
|
|
45
|
+
}
|
|
46
|
+
/** Internal event representation (camelCase). */
|
|
47
|
+
export interface RecorderEvent {
|
|
48
|
+
eventId: string;
|
|
49
|
+
runId: string;
|
|
50
|
+
eventType: string;
|
|
51
|
+
timestamp: string;
|
|
52
|
+
payloadHashB64u: string;
|
|
53
|
+
prevHashB64u: string | null;
|
|
54
|
+
eventHashB64u: string;
|
|
55
|
+
}
|
|
56
|
+
export interface ReceiptBinding {
|
|
57
|
+
runId?: string;
|
|
58
|
+
eventHash?: string;
|
|
59
|
+
nonce?: string;
|
|
60
|
+
policyHash?: string;
|
|
61
|
+
tokenScopeHashB64u?: string;
|
|
62
|
+
}
|
|
63
|
+
/** Receipt from clawproxy _receipt response field. */
|
|
64
|
+
export interface ClawproxyReceipt {
|
|
65
|
+
version: '1.0';
|
|
66
|
+
proxyDid?: string;
|
|
67
|
+
provider: string;
|
|
68
|
+
model?: string;
|
|
69
|
+
requestHash: string;
|
|
70
|
+
responseHash: string;
|
|
71
|
+
timestamp: string;
|
|
72
|
+
latencyMs: number;
|
|
73
|
+
signature?: string;
|
|
74
|
+
kid?: string;
|
|
75
|
+
binding?: ReceiptBinding;
|
|
76
|
+
}
|
|
77
|
+
/** Receipt artifact collected during a run. */
|
|
78
|
+
export interface ReceiptArtifact {
|
|
79
|
+
type: 'clawproxy_receipt';
|
|
80
|
+
collectedAt: string;
|
|
81
|
+
model: string;
|
|
82
|
+
/** Legacy clawproxy receipt (`_receipt`, version 1.0). */
|
|
83
|
+
receipt: ClawproxyReceipt;
|
|
84
|
+
/** Canonical clawproxy receipt envelope (`_receipt_envelope`, version 1). */
|
|
85
|
+
receiptEnvelope?: SignedEnvelope<GatewayReceiptPayload>;
|
|
86
|
+
}
|
|
87
|
+
/** Event chain entry (matches proof_bundle.v1.json). */
|
|
88
|
+
export interface EventChainEntry {
|
|
89
|
+
event_id: string;
|
|
90
|
+
run_id: string;
|
|
91
|
+
event_type: string;
|
|
92
|
+
timestamp: string;
|
|
93
|
+
payload_hash_b64u: string;
|
|
94
|
+
prev_hash_b64u: string | null;
|
|
95
|
+
event_hash_b64u: string;
|
|
96
|
+
}
|
|
97
|
+
/** Gateway receipt payload (matches clawverify types). */
|
|
98
|
+
export interface GatewayReceiptPayload {
|
|
99
|
+
receipt_version: '1';
|
|
100
|
+
receipt_id: string;
|
|
101
|
+
gateway_id: string;
|
|
102
|
+
provider: string;
|
|
103
|
+
model: string;
|
|
104
|
+
request_hash_b64u: string;
|
|
105
|
+
response_hash_b64u: string;
|
|
106
|
+
tokens_input: number;
|
|
107
|
+
tokens_output: number;
|
|
108
|
+
latency_ms: number;
|
|
109
|
+
timestamp: string;
|
|
110
|
+
binding?: {
|
|
111
|
+
run_id?: string;
|
|
112
|
+
event_hash_b64u?: string;
|
|
113
|
+
nonce?: string;
|
|
114
|
+
policy_hash?: string;
|
|
115
|
+
token_scope_hash_b64u?: string;
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/** Signed envelope (matches clawverify). */
|
|
119
|
+
export interface SignedEnvelope<T = unknown> {
|
|
120
|
+
envelope_version: '1';
|
|
121
|
+
envelope_type: string;
|
|
122
|
+
payload: T;
|
|
123
|
+
payload_hash_b64u: string;
|
|
124
|
+
hash_algorithm: 'SHA-256';
|
|
125
|
+
signature_b64u: string;
|
|
126
|
+
algorithm: 'Ed25519';
|
|
127
|
+
signer_did: string;
|
|
128
|
+
issued_at: string;
|
|
129
|
+
}
|
|
130
|
+
/** URM reference in proof bundle. */
|
|
131
|
+
export interface URMReference {
|
|
132
|
+
urm_version: '1';
|
|
133
|
+
urm_id: string;
|
|
134
|
+
resource_type: string;
|
|
135
|
+
resource_hash_b64u: string;
|
|
136
|
+
}
|
|
137
|
+
/** Resource item in URM (snake_case). */
|
|
138
|
+
export interface ResourceItem {
|
|
139
|
+
type: string;
|
|
140
|
+
hash_b64u: string;
|
|
141
|
+
content_type?: string;
|
|
142
|
+
uri?: string;
|
|
143
|
+
path?: string;
|
|
144
|
+
size_bytes?: number;
|
|
145
|
+
metadata?: Record<string, unknown>;
|
|
146
|
+
}
|
|
147
|
+
/** URM document. */
|
|
148
|
+
export interface URMDocument {
|
|
149
|
+
urm_version: '1';
|
|
150
|
+
urm_id: string;
|
|
151
|
+
run_id: string;
|
|
152
|
+
agent_did: string;
|
|
153
|
+
issued_at: string;
|
|
154
|
+
harness: {
|
|
155
|
+
id: string;
|
|
156
|
+
version: string;
|
|
157
|
+
runtime?: string;
|
|
158
|
+
config_hash_b64u?: string;
|
|
159
|
+
};
|
|
160
|
+
inputs: ResourceItem[];
|
|
161
|
+
outputs: ResourceItem[];
|
|
162
|
+
event_chain_root_hash_b64u?: string;
|
|
163
|
+
receipts_root_hash_b64u?: string;
|
|
164
|
+
metadata?: Record<string, unknown>;
|
|
165
|
+
}
|
|
166
|
+
/** Proof bundle payload (matches proof_bundle.v1.json). */
|
|
167
|
+
export interface ProofBundlePayload {
|
|
168
|
+
bundle_version: '1';
|
|
169
|
+
bundle_id: string;
|
|
170
|
+
agent_did: string;
|
|
171
|
+
urm?: URMReference;
|
|
172
|
+
event_chain?: EventChainEntry[];
|
|
173
|
+
receipts?: SignedEnvelope<GatewayReceiptPayload>[];
|
|
174
|
+
tool_receipts?: ToolReceiptPayload[];
|
|
175
|
+
side_effect_receipts?: SideEffectReceiptPayload[];
|
|
176
|
+
human_approval_receipts?: HumanApprovalReceiptPayload[];
|
|
177
|
+
metadata?: {
|
|
178
|
+
harness?: {
|
|
179
|
+
id: string;
|
|
180
|
+
version: string;
|
|
181
|
+
runtime?: string;
|
|
182
|
+
config_hash_b64u?: string;
|
|
183
|
+
};
|
|
184
|
+
[key: string]: unknown;
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
/** Tool receipt payload. Hash-only by default. */
|
|
188
|
+
export interface ToolReceiptPayload {
|
|
189
|
+
receipt_version: '1';
|
|
190
|
+
receipt_id: string;
|
|
191
|
+
tool_name: string;
|
|
192
|
+
tool_version?: string;
|
|
193
|
+
args_hash_b64u: string;
|
|
194
|
+
result_hash_b64u: string;
|
|
195
|
+
result_status?: 'success' | 'error' | 'timeout';
|
|
196
|
+
hash_algorithm: 'SHA-256';
|
|
197
|
+
agent_did: string;
|
|
198
|
+
timestamp: string;
|
|
199
|
+
latency_ms: number;
|
|
200
|
+
binding?: {
|
|
201
|
+
run_id?: string;
|
|
202
|
+
event_hash_b64u?: string;
|
|
203
|
+
nonce?: string;
|
|
204
|
+
policy_hash?: string;
|
|
205
|
+
token_scope_hash_b64u?: string;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
/** Tool receipt artifact collected during a run. */
|
|
209
|
+
export interface ToolReceiptArtifact {
|
|
210
|
+
type: 'tool_receipt';
|
|
211
|
+
collectedAt: string;
|
|
212
|
+
toolName: string;
|
|
213
|
+
receipt: ToolReceiptPayload;
|
|
214
|
+
receiptEnvelope?: SignedEnvelope<ToolReceiptPayload>;
|
|
215
|
+
}
|
|
216
|
+
/** Parameters for recording a tool call. */
|
|
217
|
+
export interface ToolCallParams {
|
|
218
|
+
/** Canonical tool name (e.g. 'bash', 'read_file'). */
|
|
219
|
+
toolName: string;
|
|
220
|
+
/** Tool version (optional). */
|
|
221
|
+
toolVersion?: string;
|
|
222
|
+
/** Raw tool arguments (will be hashed). */
|
|
223
|
+
args: unknown;
|
|
224
|
+
/** Raw tool result (will be hashed). */
|
|
225
|
+
result: unknown;
|
|
226
|
+
/** High-level outcome. */
|
|
227
|
+
resultStatus?: 'success' | 'error' | 'timeout';
|
|
228
|
+
/** Latency in ms. */
|
|
229
|
+
latencyMs: number;
|
|
230
|
+
}
|
|
231
|
+
/** Side-effect receipt payload. Hash-only by default. */
|
|
232
|
+
export interface SideEffectReceiptPayload {
|
|
233
|
+
receipt_version: '1';
|
|
234
|
+
receipt_id: string;
|
|
235
|
+
effect_class: 'network_egress' | 'filesystem_write' | 'external_api_write';
|
|
236
|
+
target_hash_b64u: string;
|
|
237
|
+
vendor_id?: string;
|
|
238
|
+
request_hash_b64u: string;
|
|
239
|
+
response_hash_b64u: string;
|
|
240
|
+
response_status?: 'success' | 'error' | 'timeout' | 'denied';
|
|
241
|
+
hash_algorithm: 'SHA-256';
|
|
242
|
+
agent_did: string;
|
|
243
|
+
timestamp: string;
|
|
244
|
+
latency_ms: number;
|
|
245
|
+
bytes_written?: number;
|
|
246
|
+
binding?: {
|
|
247
|
+
run_id?: string;
|
|
248
|
+
event_hash_b64u?: string;
|
|
249
|
+
nonce?: string;
|
|
250
|
+
policy_hash?: string;
|
|
251
|
+
token_scope_hash_b64u?: string;
|
|
252
|
+
capability_id?: string;
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
/** Side-effect receipt artifact collected during a run. */
|
|
256
|
+
export interface SideEffectReceiptArtifact {
|
|
257
|
+
type: 'side_effect_receipt';
|
|
258
|
+
collectedAt: string;
|
|
259
|
+
effectClass: string;
|
|
260
|
+
receipt: SideEffectReceiptPayload;
|
|
261
|
+
receiptEnvelope?: SignedEnvelope<SideEffectReceiptPayload>;
|
|
262
|
+
}
|
|
263
|
+
/** Parameters for recording a side effect. */
|
|
264
|
+
export interface SideEffectParams {
|
|
265
|
+
effectClass: 'network_egress' | 'filesystem_write' | 'external_api_write';
|
|
266
|
+
/** Raw target (URL, path, endpoint). Will be hashed. */
|
|
267
|
+
target: unknown;
|
|
268
|
+
vendorId?: string;
|
|
269
|
+
/** Raw request payload. Will be hashed. */
|
|
270
|
+
request: unknown;
|
|
271
|
+
/** Raw response payload. Will be hashed. */
|
|
272
|
+
response: unknown;
|
|
273
|
+
responseStatus?: 'success' | 'error' | 'timeout' | 'denied';
|
|
274
|
+
latencyMs: number;
|
|
275
|
+
bytesWritten?: number;
|
|
276
|
+
}
|
|
277
|
+
/** Human approval receipt payload. */
|
|
278
|
+
export interface HumanApprovalReceiptPayload {
|
|
279
|
+
receipt_version: '1';
|
|
280
|
+
receipt_id: string;
|
|
281
|
+
approval_type: 'explicit_approve' | 'explicit_deny' | 'auto_approve' | 'timeout_deny';
|
|
282
|
+
approver_subject: string;
|
|
283
|
+
approver_method?: 'ui_click' | 'cli_confirm' | 'api_call' | 'policy_auto' | 'timeout';
|
|
284
|
+
agent_did: string;
|
|
285
|
+
scope_hash_b64u: string;
|
|
286
|
+
scope_summary?: string;
|
|
287
|
+
policy_hash_b64u?: string;
|
|
288
|
+
minted_capability_id?: string;
|
|
289
|
+
minted_capability_ttl_seconds?: number;
|
|
290
|
+
plan_hash_b64u?: string;
|
|
291
|
+
evidence_required?: string[];
|
|
292
|
+
hash_algorithm: 'SHA-256';
|
|
293
|
+
timestamp: string;
|
|
294
|
+
binding?: {
|
|
295
|
+
run_id?: string;
|
|
296
|
+
event_hash_b64u?: string;
|
|
297
|
+
nonce?: string;
|
|
298
|
+
policy_hash?: string;
|
|
299
|
+
token_scope_hash_b64u?: string;
|
|
300
|
+
};
|
|
301
|
+
}
|
|
302
|
+
/** Human approval receipt artifact. */
|
|
303
|
+
export interface HumanApprovalReceiptArtifact {
|
|
304
|
+
type: 'human_approval_receipt';
|
|
305
|
+
collectedAt: string;
|
|
306
|
+
approvalType: string;
|
|
307
|
+
receipt: HumanApprovalReceiptPayload;
|
|
308
|
+
receiptEnvelope?: SignedEnvelope<HumanApprovalReceiptPayload>;
|
|
309
|
+
}
|
|
310
|
+
/** Parameters for recording a human approval event. */
|
|
311
|
+
export interface HumanApprovalParams {
|
|
312
|
+
approvalType: 'explicit_approve' | 'explicit_deny' | 'auto_approve' | 'timeout_deny';
|
|
313
|
+
approverSubject: string;
|
|
314
|
+
approverMethod?: 'ui_click' | 'cli_confirm' | 'api_call' | 'policy_auto' | 'timeout';
|
|
315
|
+
/** Raw scope claims. Will be hashed. */
|
|
316
|
+
scopeClaims: unknown;
|
|
317
|
+
scopeSummary?: string;
|
|
318
|
+
policyHashB64u?: string;
|
|
319
|
+
mintedCapabilityId?: string;
|
|
320
|
+
mintedCapabilityTtlSeconds?: number;
|
|
321
|
+
/** Raw plan/diff. Will be hashed if provided. */
|
|
322
|
+
plan?: unknown;
|
|
323
|
+
evidenceRequired?: string[];
|
|
324
|
+
}
|
|
325
|
+
/** Capability request (agent → authority). */
|
|
326
|
+
export interface CapabilityRequestPayload {
|
|
327
|
+
request_version: '1';
|
|
328
|
+
request_id: string;
|
|
329
|
+
agent_did: string;
|
|
330
|
+
requested_scope: {
|
|
331
|
+
actions: string[];
|
|
332
|
+
tools?: string[];
|
|
333
|
+
ttl_seconds?: number;
|
|
334
|
+
policy_hash_b64u?: string;
|
|
335
|
+
};
|
|
336
|
+
reason: string;
|
|
337
|
+
plan_hash_b64u?: string;
|
|
338
|
+
preflight?: boolean;
|
|
339
|
+
timestamp: string;
|
|
340
|
+
binding?: {
|
|
341
|
+
run_id?: string;
|
|
342
|
+
event_hash_b64u?: string;
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
/** Capability response (authority → agent). */
|
|
346
|
+
export interface CapabilityResponsePayload {
|
|
347
|
+
response_version: '1';
|
|
348
|
+
response_id: string;
|
|
349
|
+
request_id: string;
|
|
350
|
+
decision: 'granted' | 'denied' | 'requires_approval' | 'preflight_pass' | 'preflight_fail';
|
|
351
|
+
reason_code?: string;
|
|
352
|
+
reason?: string;
|
|
353
|
+
granted_capability?: {
|
|
354
|
+
capability_id: string;
|
|
355
|
+
scope_hash_b64u: string;
|
|
356
|
+
policy_hash_b64u?: string;
|
|
357
|
+
ttl_seconds?: number;
|
|
358
|
+
expires_at?: string;
|
|
359
|
+
evidence_required?: string[];
|
|
360
|
+
};
|
|
361
|
+
denied_actions?: Array<{
|
|
362
|
+
action: string;
|
|
363
|
+
reason_code: string;
|
|
364
|
+
rule?: string;
|
|
365
|
+
suggestion?: string;
|
|
366
|
+
}>;
|
|
367
|
+
approval_channel?: string;
|
|
368
|
+
timestamp: string;
|
|
369
|
+
}
|
|
370
|
+
/** Resource descriptor (camelCase, for SDK API use). */
|
|
371
|
+
export interface ResourceDescriptor {
|
|
372
|
+
type: string;
|
|
373
|
+
hashB64u: string;
|
|
374
|
+
contentType?: string;
|
|
375
|
+
uri?: string;
|
|
376
|
+
path?: string;
|
|
377
|
+
sizeBytes?: number;
|
|
378
|
+
metadata?: Record<string, unknown>;
|
|
379
|
+
}
|
|
380
|
+
/** Options for finalizing a run. */
|
|
381
|
+
export interface FinalizeOptions {
|
|
382
|
+
inputs: ResourceDescriptor[];
|
|
383
|
+
outputs: ResourceDescriptor[];
|
|
384
|
+
urmMetadata?: Record<string, unknown>;
|
|
385
|
+
}
|
|
386
|
+
/** Result of finalization. */
|
|
387
|
+
export interface FinalizeResult {
|
|
388
|
+
envelope: SignedEnvelope<ProofBundlePayload>;
|
|
389
|
+
urm: URMDocument;
|
|
390
|
+
}
|
|
391
|
+
/** Parameters for a proxied LLM call. */
|
|
392
|
+
export interface LLMCallParams {
|
|
393
|
+
/** Upstream provider (anthropic, openai, google). */
|
|
394
|
+
provider: string;
|
|
395
|
+
/** Model ID (e.g. claude-sonnet-4-5-20250929). */
|
|
396
|
+
model: string;
|
|
397
|
+
/** Request body (provider-specific format). */
|
|
398
|
+
body: unknown;
|
|
399
|
+
/** Extra headers to pass through. */
|
|
400
|
+
headers?: Record<string, string>;
|
|
401
|
+
}
|
|
402
|
+
/** Result of a proxied LLM call. */
|
|
403
|
+
export interface LLMCallResult {
|
|
404
|
+
/** The raw response body from the upstream provider. */
|
|
405
|
+
response: unknown;
|
|
406
|
+
/** Receipt extracted from _receipt field (if present). */
|
|
407
|
+
receipt?: ReceiptArtifact;
|
|
408
|
+
/** HTTP status code. */
|
|
409
|
+
status: number;
|
|
410
|
+
}
|
|
411
|
+
/** A clawsig run — the main SDK handle for recording events and producing proof bundles. */
|
|
412
|
+
export interface ClawproofRun {
|
|
413
|
+
/** Unique run ID for this session. */
|
|
414
|
+
readonly runId: string;
|
|
415
|
+
/** Agent DID derived from the key pair. */
|
|
416
|
+
readonly agentDid: string;
|
|
417
|
+
/** Record an event in the hash-linked chain. Returns binding context for LLM calls. */
|
|
418
|
+
recordEvent(input: RecordEventInput): Promise<{
|
|
419
|
+
event: RecorderEvent;
|
|
420
|
+
binding: BindingContext;
|
|
421
|
+
}>;
|
|
422
|
+
/** Add a receipt collected from a proxied LLM call. */
|
|
423
|
+
addReceipt(artifact: ReceiptArtifact): void;
|
|
424
|
+
/** Record a tool call, producing a hash-only tool receipt and event chain entry. */
|
|
425
|
+
recordToolCall(params: ToolCallParams): Promise<ToolReceiptArtifact>;
|
|
426
|
+
/** Record a side effect (network egress, filesystem write, external API write). */
|
|
427
|
+
recordSideEffect(params: SideEffectParams): Promise<SideEffectReceiptArtifact>;
|
|
428
|
+
/** Record a human approval decision. */
|
|
429
|
+
recordHumanApproval(params: HumanApprovalParams): Promise<HumanApprovalReceiptArtifact>;
|
|
430
|
+
/** Proxy an LLM call through clawproxy, automatically recording event + collecting receipt. */
|
|
431
|
+
callLLM(params: LLMCallParams): Promise<LLMCallResult>;
|
|
432
|
+
/** Finalize the run: generate URM, assemble + sign proof bundle. */
|
|
433
|
+
finalize(options: FinalizeOptions): Promise<FinalizeResult>;
|
|
434
|
+
}
|
|
435
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@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CAAC,CAAC;IAErE,mFAAmF;IACnF,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;IAE/E,wCAAwC;IACxC,mBAAmB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;IAExF,+FAA+F;IAC/F,OAAO,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEvD,oEAAoE;IACpE,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAC7D"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Types for the clawsig SDK.
|
|
3
|
+
*
|
|
4
|
+
* Standalone type definitions so this package typechecks independently
|
|
5
|
+
* from the rest of the monorepo. Mirrors the proof-of-harness schemas
|
|
6
|
+
* (snake_case for schema-facing types, camelCase for internal API).
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@clawbureau/clawsig-sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Lightweight SDK for emitting verifiable proof bundles from any Node.js agent — model calls, tool receipts, side-effect receipts, human approvals, and capability negotiation.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"types": "./dist/index.d.ts"
|
|
12
|
+
},
|
|
13
|
+
"./types": {
|
|
14
|
+
"import": "./dist/types.js",
|
|
15
|
+
"types": "./dist/types.d.ts"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist/**/*.js",
|
|
20
|
+
"dist/**/*.d.ts",
|
|
21
|
+
"dist/**/*.d.ts.map",
|
|
22
|
+
"dist/**/*.js.map",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc",
|
|
28
|
+
"typecheck": "tsc --noEmit",
|
|
29
|
+
"prepublishOnly": "npm run build",
|
|
30
|
+
"smoke:node": "npm run build && node scripts/smoke-node.mjs"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"clawsig",
|
|
34
|
+
"proof-bundle",
|
|
35
|
+
"proof-of-harness",
|
|
36
|
+
"agent-verification",
|
|
37
|
+
"tool-receipts",
|
|
38
|
+
"side-effect-receipts",
|
|
39
|
+
"Ed25519",
|
|
40
|
+
"DID"
|
|
41
|
+
],
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "https://github.com/clawbureau/clawbureau",
|
|
45
|
+
"directory": "packages/clawsig-sdk"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/clawbureau/clawbureau/tree/main/packages/clawsig-sdk",
|
|
48
|
+
"bugs": "https://github.com/clawbureau/clawbureau/issues",
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@types/node": "^25.2.1",
|
|
51
|
+
"typescript": "^5.7.0"
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=20"
|
|
55
|
+
},
|
|
56
|
+
"license": "MIT"
|
|
57
|
+
}
|