xytara 1.0.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.
@@ -0,0 +1,728 @@
1
+ "use strict";
2
+
3
+ function makeTask(definition) {
4
+ return {
5
+ task_ref: definition.task_ref,
6
+ public_task_ref: definition.public_task_ref,
7
+ public_aliases: [definition.public_task_ref],
8
+ public_category: definition.public_category,
9
+ public_title: definition.public_title,
10
+ execution_mode: definition.execution_mode,
11
+ pricing_band: definition.pricing_band,
12
+ public_launch_price: definition.public_launch_price,
13
+ pricing_note: "Final settlement amount can vary by rail.",
14
+ latency_class: definition.latency_class,
15
+ failure_posture: definition.failure_posture,
16
+ input_schema: definition.input_schema,
17
+ capabilities: definition.capabilities,
18
+ adapters: definition.adapters
19
+ };
20
+ }
21
+
22
+ const settlementProfiles = [
23
+ {
24
+ mode: "evm_payment",
25
+ adapter: "chain",
26
+ asset: "USDC_BASE_UNITS",
27
+ payee_agent_id: "agent_payment_target",
28
+ payee_label: "commerce-treasury",
29
+ units_per_pricing_unit: 10000,
30
+ evm_payment: {
31
+ required_input: ["tx_hash"]
32
+ }
33
+ },
34
+ {
35
+ mode: "bsv_payment",
36
+ adapter: "chain",
37
+ asset: "BSV_SATS",
38
+ payee_agent_id: "agent_payment_target",
39
+ payee_label: "commerce-treasury",
40
+ units_per_pricing_unit: 100,
41
+ bsv_teranode_payment: {
42
+ required_input: ["txid"]
43
+ }
44
+ },
45
+ {
46
+ mode: "solana_payment",
47
+ adapter: "chain",
48
+ asset: "USDC_SPL_BASE_UNITS",
49
+ payee_agent_id: "agent_payment_target",
50
+ payee_label: "commerce-treasury",
51
+ units_per_pricing_unit: 10000,
52
+ solana_payment: {
53
+ required_input: ["signature"]
54
+ }
55
+ },
56
+ {
57
+ mode: "xpr_payment",
58
+ adapter: "chain",
59
+ asset: "XPR_BASE_UNITS",
60
+ payee_agent_id: "agent_payment_target",
61
+ payee_label: "commerce-treasury",
62
+ units_per_pricing_unit: 100,
63
+ proton_xpr_payment: {
64
+ required_input: ["transaction_id"]
65
+ }
66
+ },
67
+ {
68
+ mode: "antelope_payment",
69
+ adapter: "chain",
70
+ asset: "EOSIO_BASE_UNITS",
71
+ payee_agent_id: "agent_payment_target",
72
+ payee_label: "commerce-treasury",
73
+ units_per_pricing_unit: 100,
74
+ antelope_eosio_payment: {
75
+ required_input: ["transaction_id"]
76
+ }
77
+ }
78
+ ];
79
+
80
+ const tasks = [
81
+ makeTask({
82
+ task_ref: "internal.trust.verify",
83
+ public_task_ref: "trust.verify",
84
+ public_category: "trust",
85
+ public_title: "Trust Verify",
86
+ execution_mode: "direct_http",
87
+ pricing_band: "trust_critical",
88
+ public_launch_price: { amount_minor: 50, currency: "USD_CENTS" },
89
+ latency_class: "near_real_time",
90
+ failure_posture: "retry_bounded",
91
+ input_schema: {
92
+ type: "object",
93
+ required: ["subject_id"],
94
+ properties: {
95
+ subject_id: { type: "string" }
96
+ },
97
+ additionalProperties: false
98
+ },
99
+ capabilities: ["trust.verify"],
100
+ adapters: ["http"]
101
+ }),
102
+ makeTask({
103
+ task_ref: "internal.trust.handoff.emit",
104
+ public_task_ref: "trust.handoff.emit",
105
+ public_category: "trust",
106
+ public_title: "Trust Handoff Emit",
107
+ execution_mode: "direct_http",
108
+ pricing_band: "trust_critical",
109
+ public_launch_price: { amount_minor: 65, currency: "USD_CENTS" },
110
+ latency_class: "near_real_time",
111
+ failure_posture: "retry_bounded",
112
+ input_schema: {
113
+ type: "object",
114
+ required: ["subject_id", "execution_ref"],
115
+ properties: {
116
+ subject_id: { type: "string" },
117
+ execution_ref: { type: "string" }
118
+ },
119
+ additionalProperties: false
120
+ },
121
+ capabilities: ["trust.handoff.emit"],
122
+ adapters: ["http"]
123
+ }),
124
+ makeTask({
125
+ task_ref: "internal.trust.handoff.validate",
126
+ public_task_ref: "trust.handoff.validate",
127
+ public_category: "trust",
128
+ public_title: "Trust Handoff Validate",
129
+ execution_mode: "direct_http",
130
+ pricing_band: "trust_critical",
131
+ public_launch_price: { amount_minor: 65, currency: "USD_CENTS" },
132
+ latency_class: "near_real_time",
133
+ failure_posture: "fail_fast",
134
+ input_schema: {
135
+ type: "object",
136
+ required: ["handoff_id"],
137
+ properties: {
138
+ handoff_id: { type: "string" }
139
+ },
140
+ additionalProperties: false
141
+ },
142
+ capabilities: ["trust.handoff.validate"],
143
+ adapters: ["http"]
144
+ }),
145
+ makeTask({
146
+ task_ref: "internal.receipt.validate",
147
+ public_task_ref: "receipt.validate",
148
+ public_category: "receipt",
149
+ public_title: "Receipt Validate",
150
+ execution_mode: "direct_http",
151
+ pricing_band: "trust_critical",
152
+ public_launch_price: { amount_minor: 60, currency: "USD_CENTS" },
153
+ latency_class: "instant",
154
+ failure_posture: "fail_fast",
155
+ input_schema: {
156
+ type: "object",
157
+ required: ["receipt_id"],
158
+ properties: {
159
+ receipt_id: { type: "string" }
160
+ },
161
+ additionalProperties: false
162
+ },
163
+ capabilities: ["receipt.validate"],
164
+ adapters: ["http"]
165
+ }),
166
+ makeTask({
167
+ task_ref: "internal.execution_receipt.handoff.emit",
168
+ public_task_ref: "execution_receipt.handoff.emit",
169
+ public_category: "receipt",
170
+ public_title: "Execution Receipt Handoff Emit",
171
+ execution_mode: "direct_http",
172
+ pricing_band: "trust_critical",
173
+ public_launch_price: { amount_minor: 70, currency: "USD_CENTS" },
174
+ latency_class: "near_real_time",
175
+ failure_posture: "retry_bounded",
176
+ input_schema: {
177
+ type: "object",
178
+ required: ["execution_ref"],
179
+ properties: {
180
+ execution_ref: { type: "string" }
181
+ },
182
+ additionalProperties: false
183
+ },
184
+ capabilities: ["execution_receipt.handoff.emit"],
185
+ adapters: ["http"]
186
+ }),
187
+ makeTask({
188
+ task_ref: "internal.execution_receipt.handoff.validate",
189
+ public_task_ref: "execution_receipt.handoff.validate",
190
+ public_category: "receipt",
191
+ public_title: "Execution Receipt Handoff Validate",
192
+ execution_mode: "direct_http",
193
+ pricing_band: "trust_critical",
194
+ public_launch_price: { amount_minor: 70, currency: "USD_CENTS" },
195
+ latency_class: "near_real_time",
196
+ failure_posture: "fail_fast",
197
+ input_schema: {
198
+ type: "object",
199
+ required: ["handoff_id"],
200
+ properties: {
201
+ handoff_id: { type: "string" }
202
+ },
203
+ additionalProperties: false
204
+ },
205
+ capabilities: ["execution_receipt.handoff.validate"],
206
+ adapters: ["http"]
207
+ }),
208
+ makeTask({
209
+ task_ref: "internal.receipt_ledger.handoff.emit",
210
+ public_task_ref: "receipt_ledger.handoff.emit",
211
+ public_category: "receipt",
212
+ public_title: "Receipt Ledger Handoff Emit",
213
+ execution_mode: "direct_http",
214
+ pricing_band: "trust_critical",
215
+ public_launch_price: { amount_minor: 75, currency: "USD_CENTS" },
216
+ latency_class: "near_real_time",
217
+ failure_posture: "retry_bounded",
218
+ input_schema: {
219
+ type: "object",
220
+ required: ["receipt_id", "ledger_ref"],
221
+ properties: {
222
+ receipt_id: { type: "string" },
223
+ ledger_ref: { type: "string" }
224
+ },
225
+ additionalProperties: false
226
+ },
227
+ capabilities: ["receipt_ledger.handoff.emit"],
228
+ adapters: ["http"]
229
+ }),
230
+ makeTask({
231
+ task_ref: "internal.receipt_ledger.handoff.validate",
232
+ public_task_ref: "receipt_ledger.handoff.validate",
233
+ public_category: "receipt",
234
+ public_title: "Receipt Ledger Handoff Validate",
235
+ execution_mode: "direct_http",
236
+ pricing_band: "trust_critical",
237
+ public_launch_price: { amount_minor: 75, currency: "USD_CENTS" },
238
+ latency_class: "near_real_time",
239
+ failure_posture: "fail_fast",
240
+ input_schema: {
241
+ type: "object",
242
+ required: ["handoff_id"],
243
+ properties: {
244
+ handoff_id: { type: "string" }
245
+ },
246
+ additionalProperties: false
247
+ },
248
+ capabilities: ["receipt_ledger.handoff.validate"],
249
+ adapters: ["http"]
250
+ }),
251
+ makeTask({
252
+ task_ref: "internal.runtime.emit",
253
+ public_task_ref: "runtime.emit",
254
+ public_category: "runtime",
255
+ public_title: "Runtime Emit",
256
+ execution_mode: "governed_async",
257
+ pricing_band: "governed_high_consequence",
258
+ public_launch_price: { amount_minor: 225, currency: "USD_CENTS" },
259
+ latency_class: "governed_async",
260
+ failure_posture: "governed_async",
261
+ input_schema: {
262
+ type: "object",
263
+ required: ["intent_id", "event_type"],
264
+ properties: {
265
+ intent_id: { type: "string" },
266
+ event_type: { type: "string" }
267
+ },
268
+ additionalProperties: false
269
+ },
270
+ capabilities: ["runtime.emit"],
271
+ adapters: ["http"]
272
+ }),
273
+ makeTask({
274
+ task_ref: "internal.runtime.anchor",
275
+ public_task_ref: "runtime.anchor",
276
+ public_category: "runtime",
277
+ public_title: "Runtime Anchor",
278
+ execution_mode: "governed_async",
279
+ pricing_band: "governed_high_consequence",
280
+ public_launch_price: { amount_minor: 275, currency: "USD_CENTS" },
281
+ latency_class: "governed_async",
282
+ failure_posture: "governed_async",
283
+ input_schema: {
284
+ type: "object",
285
+ required: ["event_commitment"],
286
+ properties: {
287
+ event_commitment: { type: "string" }
288
+ },
289
+ additionalProperties: false
290
+ },
291
+ capabilities: ["runtime.anchor"],
292
+ adapters: ["chain"]
293
+ }),
294
+ makeTask({
295
+ task_ref: "internal.runtime.emit_anchor",
296
+ public_task_ref: "runtime.emit_anchor",
297
+ public_category: "runtime",
298
+ public_title: "Runtime Emit And Anchor",
299
+ execution_mode: "governed_async",
300
+ pricing_band: "governed_high_consequence",
301
+ public_launch_price: { amount_minor: 450, currency: "USD_CENTS" },
302
+ latency_class: "governed_async",
303
+ failure_posture: "governed_async",
304
+ input_schema: {
305
+ type: "object",
306
+ required: ["intent_id", "event_type"],
307
+ properties: {
308
+ intent_id: { type: "string" },
309
+ event_type: { type: "string" }
310
+ },
311
+ additionalProperties: false
312
+ },
313
+ capabilities: ["runtime.emit_anchor"],
314
+ adapters: ["http", "chain"]
315
+ }),
316
+ makeTask({
317
+ task_ref: "internal.jobs.quote",
318
+ public_task_ref: "jobs.quote",
319
+ public_category: "jobs",
320
+ public_title: "Jobs Quote",
321
+ execution_mode: "direct_http",
322
+ pricing_band: "decision_support",
323
+ public_launch_price: { amount_minor: 35, currency: "USD_CENTS" },
324
+ latency_class: "instant",
325
+ failure_posture: "fail_fast",
326
+ input_schema: {
327
+ type: "object",
328
+ required: ["job_type"],
329
+ properties: {
330
+ job_type: { type: "string" }
331
+ },
332
+ additionalProperties: false
333
+ },
334
+ capabilities: ["jobs.quote"],
335
+ adapters: ["http"]
336
+ }),
337
+ makeTask({
338
+ task_ref: "internal.jobs.reserve",
339
+ public_task_ref: "jobs.reserve",
340
+ public_category: "jobs",
341
+ public_title: "Jobs Reserve",
342
+ execution_mode: "governed_async",
343
+ pricing_band: "transactional",
344
+ public_launch_price: { amount_minor: 95, currency: "USD_CENTS" },
345
+ latency_class: "near_real_time",
346
+ failure_posture: "retry_bounded",
347
+ input_schema: {
348
+ type: "object",
349
+ required: ["job_id"],
350
+ properties: {
351
+ job_id: { type: "string" }
352
+ },
353
+ additionalProperties: false
354
+ },
355
+ capabilities: ["jobs.reserve"],
356
+ adapters: ["http"]
357
+ }),
358
+ makeTask({
359
+ task_ref: "internal.jobs.commit",
360
+ public_task_ref: "jobs.commit",
361
+ public_category: "jobs",
362
+ public_title: "Jobs Commit",
363
+ execution_mode: "governed_async",
364
+ pricing_band: "transactional",
365
+ public_launch_price: { amount_minor: 125, currency: "USD_CENTS" },
366
+ latency_class: "governed_async",
367
+ failure_posture: "governed_async",
368
+ input_schema: {
369
+ type: "object",
370
+ required: ["job_id"],
371
+ properties: {
372
+ job_id: { type: "string" }
373
+ },
374
+ additionalProperties: false
375
+ },
376
+ capabilities: ["jobs.commit"],
377
+ adapters: ["http"]
378
+ }),
379
+ makeTask({
380
+ task_ref: "internal.jobs.release",
381
+ public_task_ref: "jobs.release",
382
+ public_category: "jobs",
383
+ public_title: "Jobs Release",
384
+ execution_mode: "governed_async",
385
+ pricing_band: "transactional",
386
+ public_launch_price: { amount_minor: 55, currency: "USD_CENTS" },
387
+ latency_class: "near_real_time",
388
+ failure_posture: "retry_bounded",
389
+ input_schema: {
390
+ type: "object",
391
+ required: ["job_id"],
392
+ properties: {
393
+ job_id: { type: "string" }
394
+ },
395
+ additionalProperties: false
396
+ },
397
+ capabilities: ["jobs.release"],
398
+ adapters: ["http"]
399
+ }),
400
+ makeTask({
401
+ task_ref: "internal.credits.preview",
402
+ public_task_ref: "credits.preview",
403
+ public_category: "credits",
404
+ public_title: "Credits Preview",
405
+ execution_mode: "direct_http",
406
+ pricing_band: "utility",
407
+ public_launch_price: { amount_minor: 15, currency: "USD_CENTS" },
408
+ latency_class: "instant",
409
+ failure_posture: "fail_fast",
410
+ input_schema: {
411
+ type: "object",
412
+ required: ["account_id"],
413
+ properties: {
414
+ account_id: { type: "string" }
415
+ },
416
+ additionalProperties: false
417
+ },
418
+ capabilities: ["credits.preview"],
419
+ adapters: ["http"]
420
+ }),
421
+ makeTask({
422
+ task_ref: "internal.credits.apply",
423
+ public_task_ref: "credits.apply",
424
+ public_category: "credits",
425
+ public_title: "Credits Apply",
426
+ execution_mode: "governed_async",
427
+ pricing_band: "transactional",
428
+ public_launch_price: { amount_minor: 45, currency: "USD_CENTS" },
429
+ latency_class: "near_real_time",
430
+ failure_posture: "retry_bounded",
431
+ input_schema: {
432
+ type: "object",
433
+ required: ["account_id", "amount_minor"],
434
+ properties: {
435
+ account_id: { type: "string" },
436
+ amount_minor: { type: "integer", minimum: 1 }
437
+ },
438
+ additionalProperties: false
439
+ },
440
+ capabilities: ["credits.apply"],
441
+ adapters: ["http"]
442
+ }),
443
+ makeTask({
444
+ task_ref: "internal.policy.simulate",
445
+ public_task_ref: "policy.simulate",
446
+ public_category: "policy",
447
+ public_title: "Policy Simulate",
448
+ execution_mode: "direct_http",
449
+ pricing_band: "decision_support",
450
+ public_launch_price: { amount_minor: 35, currency: "USD_CENTS" },
451
+ latency_class: "near_real_time",
452
+ failure_posture: "retry_bounded",
453
+ input_schema: {
454
+ type: "object",
455
+ required: ["policy"],
456
+ properties: {
457
+ policy: { type: "string" }
458
+ },
459
+ additionalProperties: false
460
+ },
461
+ capabilities: ["policy.simulate"],
462
+ adapters: ["http"]
463
+ }),
464
+ makeTask({
465
+ task_ref: "internal.registry.register",
466
+ public_task_ref: "registry.register",
467
+ public_category: "registry",
468
+ public_title: "Registry Register",
469
+ execution_mode: "governed_async",
470
+ pricing_band: "transactional",
471
+ public_launch_price: { amount_minor: 95, currency: "USD_CENTS" },
472
+ latency_class: "governed_async",
473
+ failure_posture: "governed_async",
474
+ input_schema: {
475
+ type: "object",
476
+ required: ["subject_id", "record_type"],
477
+ properties: {
478
+ subject_id: { type: "string" },
479
+ record_type: { type: "string" }
480
+ },
481
+ additionalProperties: false
482
+ },
483
+ capabilities: ["registry.register"],
484
+ adapters: ["chain"]
485
+ }),
486
+ makeTask({
487
+ task_ref: "internal.anchoring.submit",
488
+ public_task_ref: "anchoring.submit",
489
+ public_category: "anchoring",
490
+ public_title: "Anchoring Submit",
491
+ execution_mode: "governed_async",
492
+ pricing_band: "transactional",
493
+ public_launch_price: { amount_minor: 150, currency: "USD_CENTS" },
494
+ latency_class: "governed_async",
495
+ failure_posture: "governed_async",
496
+ input_schema: {
497
+ type: "object",
498
+ required: ["commitment_hash"],
499
+ properties: {
500
+ commitment_hash: { type: "string" }
501
+ },
502
+ additionalProperties: false
503
+ },
504
+ capabilities: ["anchoring.submit"],
505
+ adapters: ["chain"]
506
+ }),
507
+ makeTask({
508
+ task_ref: "internal.zones.list",
509
+ public_task_ref: "zones.list",
510
+ public_category: "discovery",
511
+ public_title: "Zones List",
512
+ execution_mode: "direct_http",
513
+ pricing_band: "utility",
514
+ public_launch_price: { amount_minor: 5, currency: "USD_CENTS" },
515
+ latency_class: "instant",
516
+ failure_posture: "fail_fast",
517
+ input_schema: {
518
+ type: "object",
519
+ properties: {},
520
+ additionalProperties: false
521
+ },
522
+ capabilities: ["zones.list"],
523
+ adapters: ["http"]
524
+ }),
525
+ makeTask({
526
+ task_ref: "internal.admission.preview",
527
+ public_task_ref: "admission.preview",
528
+ public_category: "admission",
529
+ public_title: "Admission Preview",
530
+ execution_mode: "direct_http",
531
+ pricing_band: "utility",
532
+ public_launch_price: { amount_minor: 10, currency: "USD_CENTS" },
533
+ latency_class: "instant",
534
+ failure_posture: "fail_fast",
535
+ input_schema: {
536
+ type: "object",
537
+ required: ["source_zone_id", "target_zone_id"],
538
+ properties: {
539
+ source_zone_id: { type: "string" },
540
+ target_zone_id: { type: "string" },
541
+ interaction_class: { type: "string" }
542
+ },
543
+ additionalProperties: false
544
+ },
545
+ capabilities: ["admission.preview"],
546
+ adapters: ["http"]
547
+ }),
548
+ makeTask({
549
+ task_ref: "internal.settlement.submit",
550
+ public_task_ref: "settlement.submit",
551
+ public_category: "settlement",
552
+ public_title: "Settlement Submit",
553
+ execution_mode: "governed_async",
554
+ pricing_band: "transactional",
555
+ public_launch_price: { amount_minor: 150, currency: "USD_CENTS" },
556
+ latency_class: "governed_async",
557
+ failure_posture: "governed_async",
558
+ input_schema: {
559
+ type: "object",
560
+ required: ["intent_id"],
561
+ properties: {
562
+ intent_id: { type: "string" }
563
+ },
564
+ additionalProperties: false
565
+ },
566
+ capabilities: ["settlement.submit"],
567
+ adapters: ["chain"]
568
+ }),
569
+ makeTask({
570
+ task_ref: "internal.adapter.mcp.invoke",
571
+ public_task_ref: "adapter.mcp.invoke",
572
+ public_category: "adapter",
573
+ public_title: "Adapter MCP Invoke",
574
+ execution_mode: "direct_http",
575
+ pricing_band: "decision_support",
576
+ public_launch_price: { amount_minor: 40, currency: "USD_CENTS" },
577
+ latency_class: "near_real_time",
578
+ failure_posture: "retry_bounded",
579
+ input_schema: {
580
+ type: "object",
581
+ required: ["tool_name"],
582
+ properties: {
583
+ tool_name: { type: "string" },
584
+ arguments: { type: "object" }
585
+ },
586
+ additionalProperties: false
587
+ },
588
+ capabilities: ["adapter.mcp.invoke"],
589
+ adapters: ["mcp"]
590
+ })
591
+ ];
592
+
593
+ const workflows = [
594
+ {
595
+ workflow_ref: "trust.flow",
596
+ aliases: ["trust.flow", "trust.receipt.flow"],
597
+ category: "trust",
598
+ title: "Trust Receipt Flow",
599
+ description: "Verify trust and validate a receipt.",
600
+ task_count: 2,
601
+ task_refs: ["trust.verify", "receipt.validate"],
602
+ latency_class: "near_real_time",
603
+ failure_posture: "retry_bounded",
604
+ pricing_basis: "sum"
605
+ },
606
+ {
607
+ workflow_ref: "runtime.consequence.flow",
608
+ aliases: ["runtime.consequence.flow"],
609
+ category: "runtime",
610
+ title: "Runtime Consequence Flow",
611
+ description: "Emit and anchor a runtime consequence.",
612
+ task_count: 2,
613
+ task_refs: ["runtime.emit", "runtime.anchor"],
614
+ latency_class: "governed_async",
615
+ failure_posture: "governed_async",
616
+ pricing_basis: "sum"
617
+ },
618
+ {
619
+ workflow_ref: "job.commitment.flow",
620
+ aliases: ["job.commitment.flow"],
621
+ category: "jobs",
622
+ title: "Job Commitment Flow",
623
+ description: "Quote, reserve, and commit a job.",
624
+ task_count: 3,
625
+ task_refs: ["jobs.quote", "jobs.reserve", "jobs.commit"],
626
+ latency_class: "governed_async",
627
+ failure_posture: "governed_async",
628
+ pricing_basis: "sum"
629
+ },
630
+ {
631
+ workflow_ref: "policy.transaction.flow",
632
+ aliases: ["policy.transaction.flow"],
633
+ category: "policy",
634
+ title: "Policy Transaction Flow",
635
+ description: "Simulate policy and submit settlement.",
636
+ task_count: 2,
637
+ task_refs: ["policy.simulate", "settlement.submit"],
638
+ latency_class: "governed_async",
639
+ failure_posture: "governed_async",
640
+ pricing_basis: "sum"
641
+ },
642
+ {
643
+ workflow_ref: "admission.settlement.flow",
644
+ aliases: ["admission.settlement.flow"],
645
+ category: "admission",
646
+ title: "Admission Settlement Flow",
647
+ description: "Preview admission and submit settlement.",
648
+ task_count: 2,
649
+ task_refs: ["admission.preview", "settlement.submit"],
650
+ latency_class: "governed_async",
651
+ failure_posture: "governed_async",
652
+ pricing_basis: "sum"
653
+ },
654
+ {
655
+ workflow_ref: "registry.anchor.flow",
656
+ aliases: ["registry.anchor.flow"],
657
+ category: "registry",
658
+ title: "Registry Anchor Flow",
659
+ description: "Register a record and anchor its commitment.",
660
+ task_count: 2,
661
+ task_refs: ["registry.register", "anchoring.submit"],
662
+ latency_class: "governed_async",
663
+ failure_posture: "governed_async",
664
+ pricing_basis: "sum"
665
+ }
666
+ ];
667
+
668
+ const catalog = {
669
+ version: "v1",
670
+ currency: "USD_CENTS",
671
+ payment_scheme: "quote_then_settle",
672
+ plans: [],
673
+ capabilities: [
674
+ "catalog",
675
+ "workflows",
676
+ "task_sets",
677
+ "quotes",
678
+ "execution",
679
+ "receipts",
680
+ "runtime",
681
+ "registry",
682
+ "settlement",
683
+ "governed_lifecycle",
684
+ "operator_visibility"
685
+ ],
686
+ adapters: ["http", "chain", "mcp"],
687
+ surfaces: ["sdk", "service", "operator"],
688
+ task_categories: [
689
+ "trust",
690
+ "receipt",
691
+ "runtime",
692
+ "jobs",
693
+ "credits",
694
+ "policy",
695
+ "registry",
696
+ "anchoring",
697
+ "discovery",
698
+ "admission",
699
+ "settlement",
700
+ "adapter"
701
+ ],
702
+ settlement_profiles: settlementProfiles,
703
+ tasks,
704
+ workflows
705
+ };
706
+
707
+ function findTask(ref) {
708
+ const lookup = String(ref || "").trim();
709
+ return catalog.tasks.find((task) =>
710
+ task.task_ref === lookup ||
711
+ task.public_task_ref === lookup ||
712
+ (Array.isArray(task.public_aliases) && task.public_aliases.includes(lookup))
713
+ ) || null;
714
+ }
715
+
716
+ function findWorkflow(ref) {
717
+ const lookup = String(ref || "").trim();
718
+ return catalog.workflows.find((workflow) =>
719
+ workflow.workflow_ref === lookup ||
720
+ (Array.isArray(workflow.aliases) && workflow.aliases.includes(lookup))
721
+ ) || null;
722
+ }
723
+
724
+ module.exports = {
725
+ catalog,
726
+ findTask,
727
+ findWorkflow
728
+ };