openclaw-nostr 2026.7.30

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 (72) hide show
  1. package/CHANGELOG.md +183 -0
  2. package/README.md +845 -0
  3. package/api.ts +6 -0
  4. package/index.ts +69 -0
  5. package/node_modules/cascadia-ts/cascadia.ts +1187 -0
  6. package/node_modules/cascadia-ts/dist/cascadia.d.ts +607 -0
  7. package/node_modules/cascadia-ts/dist/cascadia.js +705 -0
  8. package/node_modules/cascadia-ts/package.json +21 -0
  9. package/openclaw.plugin.json +153 -0
  10. package/package.json +81 -0
  11. package/runtime-api.ts +12 -0
  12. package/setup-api.ts +1 -0
  13. package/setup-entry.ts +4 -0
  14. package/src/channel-actions.test.ts +304 -0
  15. package/src/channel-actions.ts +199 -0
  16. package/src/channel.dm-access.test.ts +387 -0
  17. package/src/channel.inbound.test.ts +476 -0
  18. package/src/channel.lifecycle.test.ts +768 -0
  19. package/src/channel.outbound.test.ts +1143 -0
  20. package/src/channel.test.ts +175 -0
  21. package/src/channel.ts +2827 -0
  22. package/src/config-schema.test.ts +486 -0
  23. package/src/config-schema.ts +356 -0
  24. package/src/default-relays.ts +1 -0
  25. package/src/fleet-agent.test.ts +423 -0
  26. package/src/fleet-agent.ts +549 -0
  27. package/src/metrics.ts +466 -0
  28. package/src/nip46-cutover.test.ts +324 -0
  29. package/src/nip46-cutover.ts +461 -0
  30. package/src/nip46-doctor.test.ts +191 -0
  31. package/src/nip46-doctor.ts +329 -0
  32. package/src/nip46-enroll.test.ts +346 -0
  33. package/src/nip46-enroll.ts +567 -0
  34. package/src/nip46-signer.test.ts +809 -0
  35. package/src/nip46-signer.ts +1263 -0
  36. package/src/nip46-status.test.ts +186 -0
  37. package/src/nip46-status.ts +250 -0
  38. package/src/nip51-lists.test.ts +404 -0
  39. package/src/nip51-lists.ts +777 -0
  40. package/src/nostr-access.test.ts +175 -0
  41. package/src/nostr-access.ts +134 -0
  42. package/src/nostr-bus-nip29.ts +998 -0
  43. package/src/nostr-bus-relay.ts +477 -0
  44. package/src/nostr-bus-types.ts +392 -0
  45. package/src/nostr-bus.fuzz.test.ts +533 -0
  46. package/src/nostr-bus.integration.test.ts +505 -0
  47. package/src/nostr-bus.protocol.test.ts +2057 -0
  48. package/src/nostr-bus.test.ts +235 -0
  49. package/src/nostr-bus.ts +1868 -0
  50. package/src/nostr-capabilities-extended.test.ts +612 -0
  51. package/src/nostr-capabilities.ts +719 -0
  52. package/src/nostr-discovery.test.ts +568 -0
  53. package/src/nostr-discovery.ts +336 -0
  54. package/src/nostr-extras.test.ts +88 -0
  55. package/src/nostr-extras.ts +136 -0
  56. package/src/nostr-profile-http.test.ts +662 -0
  57. package/src/nostr-profile-http.ts +836 -0
  58. package/src/nostr-profile-import.test.ts +274 -0
  59. package/src/nostr-profile-import.ts +295 -0
  60. package/src/nostr-profile.fuzz.test.ts +480 -0
  61. package/src/nostr-profile.test.ts +410 -0
  62. package/src/nostr-profile.ts +320 -0
  63. package/src/nostr-pubkey.ts +56 -0
  64. package/src/nostr-state-store.test.ts +790 -0
  65. package/src/nostr-state-store.ts +1284 -0
  66. package/src/runtime.ts +9 -0
  67. package/src/seen-tracker.test.ts +25 -0
  68. package/src/seen-tracker.ts +292 -0
  69. package/src/session-route.ts +25 -0
  70. package/src/setup-surface.ts +320 -0
  71. package/src/types.test.ts +783 -0
  72. package/src/types.ts +508 -0
@@ -0,0 +1,607 @@
1
+ /** NIP59_GIFT_WRAP — NIP-59 gift wrap transport for encrypted ContextVM payloads. */
2
+ export declare const NIP59_GIFT_WRAP = 1059;
3
+ /** CAS_AUDIT — Audit trail event and attestation. Append-only, immutable record of auditable actions. Independent of request lifecycle — stands alone as observational record. Relays SHOULD enforce extended retention and reject deletion events for this kind. */
4
+ export declare const CAS_AUDIT = 4903;
5
+ /** CAS_WORKER_AD — Compute worker advertisement. Replaceable latest-wins record (one per pubkey) announcing hardware capabilities, availability, and pricing. Refreshes every 60-300 seconds. */
6
+ export declare const CAS_WORKER_AD = 10100;
7
+ /** CTXVM_SERVER_ANNOUNCEMENT — ContextVM server discovery announcement. */
8
+ export declare const CTXVM_SERVER_ANNOUNCEMENT = 11316;
9
+ /** CTXVM_TOOLS_ANNOUNCEMENT — ContextVM tools discovery announcement. */
10
+ export declare const CTXVM_TOOLS_ANNOUNCEMENT = 11317;
11
+ /** CTXVM_RESOURCES_ANNOUNCEMENT — ContextVM resources discovery announcement. */
12
+ export declare const CTXVM_RESOURCES_ANNOUNCEMENT = 11318;
13
+ /** CTXVM_RESOURCE_TEMPLATES_ANNOUNCEMENT — ContextVM resource templates discovery announcement. */
14
+ export declare const CTXVM_RESOURCE_TEMPLATES_ANNOUNCEMENT = 11319;
15
+ /** CTXVM_PROMPTS_ANNOUNCEMENT — ContextVM prompts discovery announcement. */
16
+ export declare const CTXVM_PROMPTS_ANNOUNCEMENT = 11320;
17
+ /** NIP59_EPHEMERAL_GIFT_WRAP — Ephemeral NIP-59 gift wrap transport for no-persistence ContextVM payloads. */
18
+ export declare const NIP59_EPHEMERAL_GIFT_WRAP = 21059;
19
+ /** CAS_INTENT — ContextVM JSON-RPC 2.0 intent message. Carries all Cascadia command requests, responses, and notifications; normally gift-wrapped via NIP-59. */
20
+ export declare const CAS_INTENT = 25910;
21
+ /** NIP51_TASK_COLLECTION — NIP-51 named list for Task Fabric collections. Uses d-tags prefixed with queue:<id> for work queues and epic:<id> for epic membership. */
22
+ export declare const NIP51_TASK_COLLECTION = 30000;
23
+ /** CAS_AGENT_HEARTBEAT — Agent lifecycle heartbeat. Addressable latest-wins record signaling agent liveness. Refreshes every 30-120 seconds. Consumers should consider an agent offline if no heartbeat within 3x expected interval. */
24
+ export declare const CAS_AGENT_HEARTBEAT = 30316;
25
+ /** CAS_AGENT_CAPABILITY — Agent capability descriptor. Addressable latest-wins record describing an agent's tools, models, and operational scope. Refreshes when capabilities change. Multiple capability records per agent, keyed by d-tag suffix. */
26
+ export declare const CAS_AGENT_CAPABILITY = 30317;
27
+ /** CAS_CP_STATE — Control-plane state projection. Addressable latest-wins record representing the current computed truth of an entity. Updated independently of individual requests. Content is always the complete current state, never a diff. */
28
+ export declare const CAS_CP_STATE = 30900;
29
+ /** All Cascadia canonical kinds. */
30
+ export declare const CascadiaKinds: {
31
+ readonly NIP59_GIFT_WRAP: 1059;
32
+ readonly CAS_AUDIT: 4903;
33
+ readonly CAS_WORKER_AD: 10100;
34
+ readonly CTXVM_SERVER_ANNOUNCEMENT: 11316;
35
+ readonly CTXVM_TOOLS_ANNOUNCEMENT: 11317;
36
+ readonly CTXVM_RESOURCES_ANNOUNCEMENT: 11318;
37
+ readonly CTXVM_RESOURCE_TEMPLATES_ANNOUNCEMENT: 11319;
38
+ readonly CTXVM_PROMPTS_ANNOUNCEMENT: 11320;
39
+ readonly NIP59_EPHEMERAL_GIFT_WRAP: 21059;
40
+ readonly CAS_INTENT: 25910;
41
+ readonly NIP51_TASK_COLLECTION: 30000;
42
+ readonly CAS_AGENT_HEARTBEAT: 30316;
43
+ readonly CAS_AGENT_CAPABILITY: 30317;
44
+ readonly CAS_CP_STATE: 30900;
45
+ };
46
+ export type CascadiaKind = typeof CascadiaKinds[keyof typeof CascadiaKinds];
47
+ /** Kind metadata for runtime validation. */
48
+ export declare const KindMeta: Record<number, {
49
+ symbol: string;
50
+ family: string;
51
+ eventForm: 'regular' | 'replaceable' | 'addressable' | 'ephemeral';
52
+ requiredTags: string[];
53
+ }>;
54
+ export declare const TAG_TRIGGERED_BY = "triggered-by";
55
+ export declare const TAG_INTENT = "intent";
56
+ export declare const TAG_RUN = "run";
57
+ export declare const TAG_SESSION = "session";
58
+ export declare const TAG_ACP_VERSION = "acp_version";
59
+ export declare const TAG_BACKEND = "backend";
60
+ export declare const TAG_CAP = "cap";
61
+ export declare const TAG_DM_SCHEMES = "dm_schemes";
62
+ export declare const TAG_MODEL = "model";
63
+ export declare const TAG_RUNTIME = "runtime";
64
+ export declare const TAG_SCOPE = "scope";
65
+ export declare const TAG_TOOL = "tool";
66
+ export declare const TAG_TOOLS = "tools";
67
+ export declare const TAG_A = "a";
68
+ export declare const TAG_ARTIFACT = "artifact";
69
+ export declare const TAG_DOC = "doc";
70
+ export declare const TAG_PROJECT = "project";
71
+ export declare const TAG_SCHEMA = "schema";
72
+ export declare const TAG_SUPERSEDES = "supersedes";
73
+ export declare const TAG_TITLE = "title";
74
+ export declare const TAG_TYPE = "type";
75
+ export declare const TAG_V = "v";
76
+ export declare const TAG_WORKFLOW = "workflow";
77
+ export declare const TAG_AGENT = "agent";
78
+ export declare const TAG_DOMAIN = "domain";
79
+ export declare const TAG_ENVIRONMENT = "environment";
80
+ export declare const TAG_METHOD = "method";
81
+ export declare const TAG_OP = "op";
82
+ export declare const TAG_RELEASE = "release";
83
+ export declare const TAG_ROUTE = "route";
84
+ export declare const TAG_SERVICE = "service";
85
+ export declare const TAG_WORKER = "worker";
86
+ export declare const TAG_ASSIGNEE = "assignee";
87
+ export declare const TAG_DECISION = "decision";
88
+ export declare const TAG_DEPENDS_ON = "depends-on";
89
+ export declare const TAG_EPIC = "epic";
90
+ export declare const TAG_PRIORITY = "priority";
91
+ export declare const TAG_STAGE = "stage";
92
+ export declare const TAG_STATUS = "status";
93
+ export declare const TAG_STEP = "step";
94
+ /** Maps legacy tag names to canonical replacements. */
95
+ export declare const LEGACY_TAG_ALIASES: Record<string, string>;
96
+ /** Maps legacy kind numbers to canonical targets. */
97
+ export declare const LEGACY_KIND_TARGET: Record<number, number>;
98
+ /** Resolve a legacy kind to its canonical target, or return the input. */
99
+ export declare function resolveLegacyKind(kind: number): number;
100
+ /** Resolve a legacy tag alias to its canonical name, or return the input. */
101
+ export declare function resolveTag(name: string): string;
102
+ export type ContextVMEventForm = 'ephemeral';
103
+ export type ContextVMMethod = {
104
+ name: string;
105
+ kind: number;
106
+ domain: string;
107
+ op: string;
108
+ schema: string;
109
+ };
110
+ export declare const CONTEXTVM_KIND = 25910;
111
+ export declare const ContextVMMethods: Record<string, ContextVMMethod>;
112
+ export type ProgressToken = string;
113
+ export type ContextVMParams<T = unknown> = T & {
114
+ _meta?: {
115
+ progressToken?: ProgressToken;
116
+ };
117
+ };
118
+ export declare const JSON_RPC_ERROR_CODES: {
119
+ readonly PARSE_ERROR: -32700;
120
+ readonly INVALID_REQUEST: -32600;
121
+ readonly METHOD_NOT_FOUND: -32601;
122
+ readonly INVALID_PARAMS: -32602;
123
+ readonly INTERNAL_ERROR: -32603;
124
+ readonly PROGRESS_CANCELLED: -32800;
125
+ readonly REQUEST_TIMEOUT: -32001;
126
+ readonly PERMISSION_DENIED: -32002;
127
+ readonly RESOURCE_NOT_FOUND: -32004;
128
+ };
129
+ /** Validate that an event has all required tags for its kind. */
130
+ export declare function validateRequiredTags(kind: number, tags: string[][]): string[];
131
+ /** Adoption scan/import request payload
132
+ * Schema: bahia.adoption.v1
133
+ * CUE: schemas/control-plane/adoption.cue (Adoption)
134
+ */
135
+ export interface BahiaAdoptionV1Payload {
136
+ target: string;
137
+ scan_type?: string;
138
+ }
139
+ export declare function validateBahiaAdoptionV1Payload(payload: BahiaAdoptionV1Payload): string[];
140
+ /** Backup attestation audit payload
141
+ * Schema: bahia.audit.backup.v1
142
+ * CUE: schemas/audit/backup.cue (BackupAttestation)
143
+ */
144
+ export interface BahiaAuditBackupV1Payload {
145
+ backup_id: string;
146
+ target: string;
147
+ size_bytes?: number;
148
+ integrity_hash: string;
149
+ encrypted?: boolean;
150
+ storage_location?: string;
151
+ retention_days?: number;
152
+ verified_at?: string;
153
+ }
154
+ export declare function validateBahiaAuditBackupV1Payload(payload: BahiaAuditBackupV1Payload): string[];
155
+ /** Build change record audit payload
156
+ * Schema: bahia.audit.build.v1
157
+ * CUE: schemas/audit/build.cue (BuildChangeRecord)
158
+ */
159
+ export interface BahiaAuditBuildV1Payload {
160
+ build_id: string;
161
+ artifact_id: string;
162
+ source_commit: string;
163
+ source_repo?: string;
164
+ builder?: string;
165
+ duration_sec?: number;
166
+ digest?: string;
167
+ }
168
+ export declare function validateBahiaAuditBuildV1Payload(payload: BahiaAuditBuildV1Payload): string[];
169
+ /** Deployment change record audit payload
170
+ * Schema: bahia.audit.deployment.v1
171
+ * CUE: schemas/audit/deployment.cue (DeploymentChangeRecord)
172
+ */
173
+ export interface BahiaAuditDeploymentV1Payload {
174
+ service_id: string;
175
+ environment_id: string;
176
+ from_version: string;
177
+ to_version: string;
178
+ strategy?: string;
179
+ initiated_by?: string;
180
+ duration_sec?: number;
181
+ outcome: string;
182
+ }
183
+ export declare function validateBahiaAuditDeploymentV1Payload(payload: BahiaAuditDeploymentV1Payload): string[];
184
+ /** DNS change record audit payload
185
+ * Schema: bahia.audit.dns.v1
186
+ * CUE: schemas/audit/dns.cue (Dns)
187
+ */
188
+ export interface BahiaAuditDnsV1Payload {
189
+ zone: string;
190
+ record_type?: string;
191
+ record_name?: string;
192
+ old_value?: string;
193
+ new_value?: string;
194
+ }
195
+ export declare function validateBahiaAuditDnsV1Payload(payload: BahiaAuditDnsV1Payload): string[];
196
+ /** LLM/ML model lifecycle audit payload
197
+ * Schema: bahia.audit.llm.v1
198
+ * CUE: schemas/audit/llm.cue (Llm)
199
+ */
200
+ export interface BahiaAuditLlmV1Payload {
201
+ model_id: string;
202
+ action: string;
203
+ route_id?: string;
204
+ }
205
+ export declare function validateBahiaAuditLlmV1Payload(payload: BahiaAuditLlmV1Payload): string[];
206
+ /** Package lifecycle audit payload
207
+ * Schema: bahia.audit.package.v1
208
+ * CUE: schemas/audit/package.cue (Package)
209
+ */
210
+ export interface BahiaAuditPackageV1Payload {
211
+ package_id: string;
212
+ action: string;
213
+ version?: string;
214
+ }
215
+ export declare function validateBahiaAuditPackageV1Payload(payload: BahiaAuditPackageV1Payload): string[];
216
+ /** Worker lifecycle audit payload
217
+ * Schema: bahia.audit.worker.v1
218
+ * CUE: schemas/audit/worker.cue (Worker)
219
+ */
220
+ export interface BahiaAuditWorkerV1Payload {
221
+ worker_id: string;
222
+ action: string;
223
+ reason?: string;
224
+ }
225
+ export declare function validateBahiaAuditWorkerV1Payload(payload: BahiaAuditWorkerV1Payload): string[];
226
+ /** Backup state projection payload
227
+ * Schema: bahia.backup-state.v1
228
+ * CUE: schemas/control-plane/backup-state.cue (BackupState)
229
+ */
230
+ export interface BahiaBackupStateV1Payload {
231
+ target: string;
232
+ last_backup_at?: string;
233
+ status: string;
234
+ }
235
+ export declare function validateBahiaBackupStateV1Payload(payload: BahiaBackupStateV1Payload): string[];
236
+ /** Backup operation request payload
237
+ * Schema: bahia.backup.v1
238
+ * CUE: schemas/control-plane/backup.cue (Backup)
239
+ */
240
+ export interface BahiaBackupV1Payload {
241
+ target: string;
242
+ retention_days?: number;
243
+ }
244
+ export declare function validateBahiaBackupV1Payload(payload: BahiaBackupV1Payload): string[];
245
+ /** Continuity state projection payload
246
+ * Schema: bahia.continuity-state.v1
247
+ * CUE: schemas/control-plane/continuity-state.cue (ContinuityState)
248
+ */
249
+ export interface BahiaContinuityStateV1Payload {
250
+ profile_id: string;
251
+ mode: string;
252
+ }
253
+ export declare function validateBahiaContinuityStateV1Payload(payload: BahiaContinuityStateV1Payload): string[];
254
+ /** Continuity/failover request payload
255
+ * Schema: bahia.continuity.v1
256
+ * CUE: schemas/control-plane/continuity.cue (Continuity)
257
+ */
258
+ export interface BahiaContinuityV1Payload {
259
+ profile_id: string;
260
+ target?: string;
261
+ }
262
+ export declare function validateBahiaContinuityV1Payload(payload: BahiaContinuityV1Payload): string[];
263
+ /** Service deployment request payload
264
+ * Schema: bahia.deploy.v2
265
+ * CUE: schemas/control-plane/deploy.cue (DeployRequest, DeployStatus, DeployResult)
266
+ */
267
+ export interface BahiaDeployV2Payload {
268
+ service_id: string;
269
+ environment_id: string;
270
+ artifact_id: string;
271
+ strategy?: "rolling" | "blue-green" | "canary" | "recreate";
272
+ parameters?: Record<string, unknown>;
273
+ }
274
+ export declare function validateBahiaDeployV2Payload(payload: BahiaDeployV2Payload): string[];
275
+ /** DNS zone state projection payload
276
+ * Schema: bahia.dns-zone.v1
277
+ * CUE: schemas/control-plane/dns-zone.cue (DnsZone)
278
+ */
279
+ export interface BahiaDnsZoneV1Payload {
280
+ zone: string;
281
+ records?: string[];
282
+ }
283
+ export declare function validateBahiaDnsZoneV1Payload(payload: BahiaDnsZoneV1Payload): string[];
284
+ /** DNS management request payload
285
+ * Schema: bahia.dns.v1
286
+ * CUE: schemas/control-plane/dns.cue (Dns)
287
+ */
288
+ export interface BahiaDnsV1Payload {
289
+ zone: string;
290
+ record_type?: string;
291
+ record_name?: string;
292
+ value?: string;
293
+ }
294
+ export declare function validateBahiaDnsV1Payload(payload: BahiaDnsV1Payload): string[];
295
+ /** Environment state projection payload
296
+ * Schema: bahia.environment-state.v1
297
+ * CUE: schemas/control-plane/environment-state.cue (EnvironmentState)
298
+ */
299
+ export interface BahiaEnvironmentStateV1Payload {
300
+ environment_id: string;
301
+ status: string;
302
+ }
303
+ export declare function validateBahiaEnvironmentStateV1Payload(payload: BahiaEnvironmentStateV1Payload): string[];
304
+ /** ML model registry state projection payload
305
+ * Schema: bahia.ml-registry.v1
306
+ * CUE: schemas/control-plane/ml-registry.cue (MlRegistry)
307
+ */
308
+ export interface BahiaMlRegistryV1Payload {
309
+ model_id: string;
310
+ status: string;
311
+ }
312
+ export declare function validateBahiaMlRegistryV1Payload(payload: BahiaMlRegistryV1Payload): string[];
313
+ /** ML/AI infrastructure request payload
314
+ * Schema: bahia.ml.v1
315
+ * CUE: schemas/control-plane/ml.cue (Ml)
316
+ */
317
+ export interface BahiaMlV1Payload {
318
+ route_id?: string;
319
+ model_id?: string;
320
+ action: string;
321
+ }
322
+ export declare function validateBahiaMlV1Payload(payload: BahiaMlV1Payload): string[];
323
+ /** Package state projection payload
324
+ * Schema: bahia.package-state.v1
325
+ * CUE: schemas/control-plane/package-state.cue (PackageState)
326
+ */
327
+ export interface BahiaPackageStateV1Payload {
328
+ package_id: string;
329
+ version?: string;
330
+ status: string;
331
+ }
332
+ export declare function validateBahiaPackageStateV1Payload(payload: BahiaPackageStateV1Payload): string[];
333
+ /** Package lifecycle request payload
334
+ * Schema: bahia.package.v1
335
+ * CUE: schemas/control-plane/package.cue (Package)
336
+ */
337
+ export interface BahiaPackageV1Payload {
338
+ package_id: string;
339
+ version?: string;
340
+ }
341
+ export declare function validateBahiaPackageV1Payload(payload: BahiaPackageV1Payload): string[];
342
+ /** Policy state projection payload
343
+ * Schema: bahia.policy-state.v1
344
+ * CUE: schemas/control-plane/policy-state.cue (PolicyState)
345
+ */
346
+ export interface BahiaPolicyStateV1Payload {
347
+ policy_id: string;
348
+ active: boolean;
349
+ }
350
+ export declare function validateBahiaPolicyStateV1Payload(payload: BahiaPolicyStateV1Payload): string[];
351
+ /** Deployment policy request payload
352
+ * Schema: bahia.policy.v1
353
+ * CUE: schemas/control-plane/policy.cue (Policy)
354
+ */
355
+ export interface BahiaPolicyV1Payload {
356
+ policy_id: string;
357
+ rules?: Record<string, unknown>;
358
+ }
359
+ export declare function validateBahiaPolicyV1Payload(payload: BahiaPolicyV1Payload): string[];
360
+ /** Service state projection payload
361
+ * Schema: bahia.service-state.v2
362
+ * CUE: schemas/control-plane/service-state.cue (ServiceState)
363
+ */
364
+ export interface BahiaServiceStateV2Payload {
365
+ service_id: string;
366
+ environment_id: string;
367
+ current_version: string;
368
+ replicas: number;
369
+ healthy_replicas: number;
370
+ last_deploy_at?: string;
371
+ status: string;
372
+ }
373
+ export declare function validateBahiaServiceStateV2Payload(payload: BahiaServiceStateV2Payload): string[];
374
+ /** Worker state projection payload
375
+ * Schema: bahia.worker-state.v1
376
+ * CUE: schemas/control-plane/worker-state.cue (WorkerState)
377
+ */
378
+ export interface BahiaWorkerStateV1Payload {
379
+ worker_id: string;
380
+ status: string;
381
+ capacity?: Record<string, unknown>;
382
+ }
383
+ export declare function validateBahiaWorkerStateV1Payload(payload: BahiaWorkerStateV1Payload): string[];
384
+ /** Worker management request payload
385
+ * Schema: bahia.worker.v1
386
+ * CUE: schemas/control-plane/worker.cue (Worker)
387
+ */
388
+ export interface BahiaWorkerV1Payload {
389
+ worker_id: string;
390
+ reason?: string;
391
+ }
392
+ export declare function validateBahiaWorkerV1Payload(payload: BahiaWorkerV1Payload): string[];
393
+ /** Agent capability descriptor payload
394
+ * Schema: cascadia.agent.capability.v1
395
+ * CUE: schemas/agent/capability.cue (Tool, Model, Limits, Capability)
396
+ */
397
+ export interface CascadiaAgentCapabilityV1Payload {
398
+ agent_id: string;
399
+ capability: string;
400
+ tools?: string[];
401
+ model?: Record<string, unknown>;
402
+ limits?: Record<string, unknown>;
403
+ }
404
+ export declare function validateCascadiaAgentCapabilityV1Payload(payload: CascadiaAgentCapabilityV1Payload): string[];
405
+ /** Agent status query ContextVM payload
406
+ * Schema: cascadia.agent.get-status.v1
407
+ * CUE: schemas/control-plane/agent-get-status.cue (AgentGetStatus)
408
+ */
409
+ export interface CascadiaAgentGetStatusV1Payload {
410
+ agent_id: string;
411
+ }
412
+ export declare function validateCascadiaAgentGetStatusV1Payload(payload: CascadiaAgentGetStatusV1Payload): string[];
413
+ /** Agent lifecycle heartbeat payload
414
+ * Schema: cascadia.agent.heartbeat.v1
415
+ * CUE: schemas/agent/heartbeat.cue (Heartbeat)
416
+ */
417
+ export interface CascadiaAgentHeartbeatV1Payload {
418
+ uptime_sec?: number;
419
+ active_tasks?: number;
420
+ load_avg?: number;
421
+ last_task_at?: string;
422
+ }
423
+ export declare function validateCascadiaAgentHeartbeatV1Payload(payload: CascadiaAgentHeartbeatV1Payload): string[];
424
+ /** Agent persona update ContextVM payload
425
+ * Schema: cascadia.agent.persona-update.v1
426
+ * CUE: schemas/control-plane/agent-persona-update.cue (AgentPersonaUpdate)
427
+ */
428
+ export interface CascadiaAgentPersonaUpdateV1Payload {
429
+ agent_id: string;
430
+ persona: Record<string, unknown>;
431
+ }
432
+ export declare function validateCascadiaAgentPersonaUpdateV1Payload(payload: CascadiaAgentPersonaUpdateV1Payload): string[];
433
+ /** Agent ping ContextVM payload
434
+ * Schema: cascadia.agent.ping.v1
435
+ * CUE: schemas/control-plane/agent-ping.cue (AgentPing)
436
+ */
437
+ export interface CascadiaAgentPingV1Payload {
438
+ agent_id: string;
439
+ }
440
+ export declare function validateCascadiaAgentPingV1Payload(payload: CascadiaAgentPingV1Payload): string[];
441
+ /** Agent provisioning ContextVM payload
442
+ * Schema: cascadia.agent.provision.v1
443
+ * CUE: schemas/control-plane/agent-provision.cue (AgentProvision)
444
+ */
445
+ export interface CascadiaAgentProvisionV1Payload {
446
+ agent_id: string;
447
+ template_id?: string;
448
+ policy_id?: string;
449
+ }
450
+ export declare function validateCascadiaAgentProvisionV1Payload(payload: CascadiaAgentProvisionV1Payload): string[];
451
+ /** Agent revocation ContextVM payload
452
+ * Schema: cascadia.agent.revoke.v1
453
+ * CUE: schemas/control-plane/agent-revoke.cue (AgentRevoke)
454
+ */
455
+ export interface CascadiaAgentRevokeV1Payload {
456
+ agent_id: string;
457
+ reason?: string;
458
+ }
459
+ export declare function validateCascadiaAgentRevokeV1Payload(payload: CascadiaAgentRevokeV1Payload): string[];
460
+ /** Agent key rotation ContextVM payload
461
+ * Schema: cascadia.agent.rotate-key.v1
462
+ * CUE: schemas/control-plane/agent-rotate-key.cue (AgentRotateKey)
463
+ */
464
+ export interface CascadiaAgentRotateKeyV1Payload {
465
+ agent_id: string;
466
+ new_pubkey?: string;
467
+ }
468
+ export declare function validateCascadiaAgentRotateKeyV1Payload(payload: CascadiaAgentRotateKeyV1Payload): string[];
469
+ /** Agent policy update ContextVM payload
470
+ * Schema: cascadia.agent.set-policy.v1
471
+ * CUE: schemas/control-plane/agent-set-policy.cue (AgentSetPolicy)
472
+ */
473
+ export interface CascadiaAgentSetPolicyV1Payload {
474
+ agent_id: string;
475
+ policy: Record<string, unknown>;
476
+ }
477
+ export declare function validateCascadiaAgentSetPolicyV1Payload(payload: CascadiaAgentSetPolicyV1Payload): string[];
478
+ /** Code review audit payload
479
+ * Schema: cascadia.audit.review.v1
480
+ * CUE: schemas/audit/review.cue (CodeReviewAudit)
481
+ */
482
+ export interface CascadiaAuditReviewV1Payload {
483
+ review_id: string;
484
+ repository: string;
485
+ commit?: string;
486
+ outcome: string;
487
+ }
488
+ export declare function validateCascadiaAuditReviewV1Payload(payload: CascadiaAuditReviewV1Payload): string[];
489
+ /** ContextVM JSON-RPC params envelope with _meta.progressToken
490
+ * Schema: cascadia.contextvm.envelope.v1
491
+ * CUE: schemas/control-plane/contextvm-envelope.cue (ContextVMParams, JSONRPCErrorCode)
492
+ */
493
+ export interface CascadiaContextvmEnvelopeV1Payload {
494
+ _meta?: Record<string, unknown>;
495
+ }
496
+ export declare function validateCascadiaContextvmEnvelopeV1Payload(payload: CascadiaContextvmEnvelopeV1Payload): string[];
497
+ /** Loom compute job state projection payload
498
+ * Schema: cascadia.loom-job.v1
499
+ * CUE: schemas/control-plane/loom-job.cue (LoomJob)
500
+ */
501
+ export interface CascadiaLoomJobV1Payload {
502
+ job_id: string;
503
+ worker_id?: string;
504
+ status: string;
505
+ }
506
+ export declare function validateCascadiaLoomJobV1Payload(payload: CascadiaLoomJobV1Payload): string[];
507
+ /** Compute job lifecycle request payload
508
+ * Schema: cascadia.loom.v1
509
+ * CUE: schemas/control-plane/loom.cue (Loom)
510
+ */
511
+ export interface CascadiaLoomV1Payload {
512
+ job_id: string;
513
+ worker_id?: string;
514
+ }
515
+ export declare function validateCascadiaLoomV1Payload(payload: CascadiaLoomV1Payload): string[];
516
+ /** Compute worker advertisement payload
517
+ * Schema: cascadia.loom.worker.v1
518
+ * CUE: schemas/agent/worker-ad.cue (Hardware, WorkerCapacity, Pricing, WorkerAdvertisement)
519
+ */
520
+ export interface CascadiaLoomWorkerV1Payload {
521
+ worker_id: string;
522
+ hardware: Record<string, unknown>;
523
+ capacity: Record<string, unknown>;
524
+ supported_frameworks?: string[];
525
+ pricing?: Record<string, unknown>;
526
+ }
527
+ export declare function validateCascadiaLoomWorkerV1Payload(payload: CascadiaLoomWorkerV1Payload): string[];
528
+ /** Task Fabric ContextVM queue command payload
529
+ * Schema: cascadia.queue.v1
530
+ * CUE: schemas/control-plane/queue.cue (Queue)
531
+ */
532
+ export interface CascadiaQueueV1Payload {
533
+ queue: string;
534
+ task_id?: string;
535
+ limit?: number;
536
+ }
537
+ export declare function validateCascadiaQueueV1Payload(payload: CascadiaQueueV1Payload): string[];
538
+ /** Agent provisioning (soul-factory) request payload
539
+ * Schema: cascadia.soul-factory.v1
540
+ * CUE: schemas/control-plane/soul-factory.cue (SoulFactory)
541
+ */
542
+ export interface CascadiaSoulFactoryV1Payload {
543
+ template_id: string;
544
+ agent_id?: string;
545
+ }
546
+ export declare function validateCascadiaSoulFactoryV1Payload(payload: CascadiaSoulFactoryV1Payload): string[];
547
+ /** Soul/agent provisioning state projection payload
548
+ * Schema: cascadia.soul-state.v1
549
+ * CUE: schemas/control-plane/soul-state.cue (SoulState)
550
+ */
551
+ export interface CascadiaSoulStateV1Payload {
552
+ agent_id: string;
553
+ template_id?: string;
554
+ status: string;
555
+ }
556
+ export declare function validateCascadiaSoulStateV1Payload(payload: CascadiaSoulStateV1Payload): string[];
557
+ /** Task Fabric NIP-51 epic and queue collection payload
558
+ * Schema: cascadia.task-collection.v1
559
+ * CUE: schemas/control-plane/task-collection.cue (TaskCollection)
560
+ */
561
+ export interface CascadiaTaskCollectionV1Payload {
562
+ id?: string;
563
+ }
564
+ export declare function validateCascadiaTaskCollectionV1Payload(payload: CascadiaTaskCollectionV1Payload): string[];
565
+ /** Task Fabric 30900 task state projection payload
566
+ * Schema: cascadia.task-state.v1
567
+ * CUE: schemas/control-plane/task-state.cue (TaskState)
568
+ */
569
+ export interface CascadiaTaskStateV1Payload {
570
+ id: string;
571
+ title: string;
572
+ description?: string;
573
+ status: "open" | "in_progress" | "blocked" | "closed";
574
+ priority?: "P0" | "P1" | "P2" | "P3" | "P4";
575
+ epic?: string;
576
+ assignee?: string;
577
+ labels?: string[];
578
+ depends_on?: string[];
579
+ metadata?: Record<string, unknown>;
580
+ }
581
+ export declare function validateCascadiaTaskStateV1Payload(payload: CascadiaTaskStateV1Payload): string[];
582
+ /** Task Fabric ContextVM task command payload
583
+ * Schema: cascadia.task.v1
584
+ * CUE: schemas/control-plane/task.cue (Task)
585
+ */
586
+ export interface CascadiaTaskV1Payload {
587
+ task_id: string;
588
+ assignee?: string;
589
+ claimer?: string;
590
+ status?: "open" | "in_progress" | "blocked" | "closed";
591
+ priority?: "P0" | "P1" | "P2" | "P3" | "P4";
592
+ labels?: string[];
593
+ depends_on?: string[];
594
+ dispatch?: string;
595
+ }
596
+ export declare function validateCascadiaTaskV1Payload(payload: CascadiaTaskV1Payload): string[];
597
+ /** CI workflow run request payload
598
+ * Schema: hive.ci.workflow.v1
599
+ * CUE: schemas/ci/workflow.cue (Workflow)
600
+ */
601
+ export interface HiveCiWorkflowV1Payload {
602
+ workflow: string;
603
+ commit: string;
604
+ branch?: string;
605
+ triggered_by?: string;
606
+ }
607
+ export declare function validateHiveCiWorkflowV1Payload(payload: HiveCiWorkflowV1Payload): string[];