@kya-os/cli 2.0.3 → 2.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.
Files changed (73) hide show
  1. package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.d.ts +1 -1
  2. package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.js +1 -1
  3. package/node_modules/@kya-os/contracts/dist/agent-deployment.d.ts +10 -10
  4. package/node_modules/@kya-os/contracts/dist/agent-deployment.js +2 -2
  5. package/node_modules/@kya-os/contracts/dist/agentshield-api/index.d.ts +116 -11
  6. package/node_modules/@kya-os/contracts/dist/agentshield-api/index.js +38 -40
  7. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/admin-schemas.d.ts +3 -3
  8. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/admin-schemas.js +3 -3
  9. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/admin-types.d.ts +4 -4
  10. package/node_modules/@kya-os/contracts/dist/checkpoint-api/admin-types.js +10 -0
  11. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/endpoints.d.ts +10 -10
  12. package/node_modules/@kya-os/contracts/dist/checkpoint-api/endpoints.js +49 -0
  13. package/node_modules/@kya-os/contracts/dist/checkpoint-api/index.d.ts +15 -0
  14. package/node_modules/@kya-os/contracts/dist/checkpoint-api/index.js +46 -0
  15. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/schemas.d.ts +10 -10
  16. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/schemas.js +24 -24
  17. package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/types.d.ts +27 -27
  18. package/node_modules/@kya-os/contracts/dist/checkpoint-api/types.js +26 -0
  19. package/node_modules/@kya-os/contracts/dist/compute.d.ts +5 -5
  20. package/node_modules/@kya-os/contracts/dist/compute.js +5 -5
  21. package/node_modules/@kya-os/contracts/dist/config/builder.js +2 -0
  22. package/node_modules/@kya-os/contracts/dist/config/delegation.d.ts +1 -1
  23. package/node_modules/@kya-os/contracts/dist/config/identity.d.ts +4 -4
  24. package/node_modules/@kya-os/contracts/dist/config/index.d.ts +1 -1
  25. package/node_modules/@kya-os/contracts/dist/config/proofing.d.ts +3 -2
  26. package/node_modules/@kya-os/contracts/dist/config/tool-protection.d.ts +34 -26
  27. package/node_modules/@kya-os/contracts/dist/consent/schemas.d.ts +5 -5
  28. package/node_modules/@kya-os/contracts/dist/consent/schemas.js +1 -1
  29. package/node_modules/@kya-os/contracts/dist/consent/types.d.ts +2 -2
  30. package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.d.ts +3 -1
  31. package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.js +3 -1
  32. package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.d.ts +479 -197
  33. package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.js +10 -3
  34. package/node_modules/@kya-os/contracts/dist/dashboard-config/types.d.ts +19 -9
  35. package/node_modules/@kya-os/contracts/dist/dashboard-config/types.js +2 -2
  36. package/node_modules/@kya-os/contracts/dist/delegation/schemas.d.ts +19 -19
  37. package/node_modules/@kya-os/contracts/dist/delegation/schemas.js +4 -4
  38. package/node_modules/@kya-os/contracts/dist/deploy/index.d.ts +1 -1
  39. package/node_modules/@kya-os/contracts/dist/deploy/index.js +1 -1
  40. package/node_modules/@kya-os/contracts/dist/deploy/schemas.d.ts +7 -7
  41. package/node_modules/@kya-os/contracts/dist/deploy/schemas.js +3 -3
  42. package/node_modules/@kya-os/contracts/dist/deploy/types.d.ts +8 -8
  43. package/node_modules/@kya-os/contracts/dist/deploy/types.js +1 -1
  44. package/node_modules/@kya-os/contracts/dist/handshake/schemas.d.ts +1 -1
  45. package/node_modules/@kya-os/contracts/dist/handshake/schemas.js +1 -1
  46. package/node_modules/@kya-os/contracts/dist/identity/schemas.d.ts +1 -1
  47. package/node_modules/@kya-os/contracts/dist/identity/schemas.js +1 -1
  48. package/node_modules/@kya-os/contracts/dist/index.js +1 -1
  49. package/node_modules/@kya-os/contracts/dist/molti/schemas.d.ts +6 -6
  50. package/node_modules/@kya-os/contracts/dist/molti/schemas.js +2 -2
  51. package/node_modules/@kya-os/contracts/dist/molti/types.d.ts +9 -9
  52. package/node_modules/@kya-os/contracts/dist/molti/types.js +1 -1
  53. package/node_modules/@kya-os/contracts/dist/policy/schemas.d.ts +1 -1
  54. package/node_modules/@kya-os/contracts/dist/policy/schemas.js +1 -1
  55. package/node_modules/@kya-os/contracts/dist/proof/detached-proof.d.ts +3 -3
  56. package/node_modules/@kya-os/contracts/dist/proof/detached-proof.js +3 -3
  57. package/node_modules/@kya-os/contracts/dist/skills/schemas.d.ts +1 -1
  58. package/node_modules/@kya-os/contracts/dist/vault/schemas.d.ts +1 -1
  59. package/node_modules/@kya-os/contracts/dist/vault/schemas.js +1 -1
  60. package/node_modules/@kya-os/contracts/dist/well-known/index.d.ts +4 -4
  61. package/node_modules/@kya-os/contracts/dist/workbench/execution.d.ts +13 -0
  62. package/node_modules/@kya-os/contracts/dist/workbench/execution.js +12 -1
  63. package/node_modules/@kya-os/contracts/dist/workbench/governed.d.ts +52 -0
  64. package/node_modules/@kya-os/contracts/dist/workbench/lead-planner.d.ts +11 -0
  65. package/node_modules/@kya-os/contracts/dist/workbench/linear-installation.d.ts +29 -0
  66. package/node_modules/@kya-os/contracts/dist/workbench/mailbox.d.ts +77 -0
  67. package/node_modules/@kya-os/contracts/dist/workbench/mailbox.js +7 -0
  68. package/node_modules/@kya-os/contracts/dist/workbench/review.d.ts +9 -0
  69. package/node_modules/@kya-os/contracts/package.json +5 -1
  70. package/package.json +6 -6
  71. package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-types.js +0 -10
  72. package/node_modules/@kya-os/contracts/dist/agentshield-api/endpoints.js +0 -49
  73. package/node_modules/@kya-os/contracts/dist/agentshield-api/types.js +0 -26
@@ -4,18 +4,22 @@ export declare const TaskStandingCapabilitySchema: z.ZodEnum<["task.execute", "m
4
4
  /** Fixed allocation per call, not a provider price estimate or a guaranteed billing ceiling. */
5
5
  export declare const TaskModelPolicySchema: z.ZodObject<{
6
6
  provider: z.ZodLiteral<"anthropic">;
7
+ /** The organization's own model credential that pays for these calls (`model-credentials`). */
8
+ credentialId: z.ZodString;
7
9
  models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
8
10
  maxOutputTokens: z.ZodNumber;
9
11
  maxRequestBytes: z.ZodNumber;
10
12
  reservedCostMicrousd: z.ZodNumber;
11
13
  }, "strict", z.ZodTypeAny, {
12
14
  provider: "anthropic";
15
+ credentialId: string;
13
16
  models: string[];
14
17
  maxOutputTokens: number;
15
18
  maxRequestBytes: number;
16
19
  reservedCostMicrousd: number;
17
20
  }, {
18
21
  provider: "anthropic";
22
+ credentialId: string;
19
23
  models: string[];
20
24
  maxOutputTokens: number;
21
25
  maxRequestBytes: number;
@@ -185,6 +189,9 @@ export declare const TaskModelReceiptSchema: z.ZodObject<{
185
189
  requestDigest: z.ZodString;
186
190
  provider: z.ZodLiteral<"anthropic">;
187
191
  model: z.ZodString;
192
+ /** The admitted policy's credential, and the fingerprint of its key at call time. */
193
+ credentialId: z.ZodString;
194
+ credentialFingerprint: z.ZodString;
188
195
  reservedCostMicrousd: z.ZodNumber;
189
196
  usage: z.ZodNullable<z.ZodObject<{
190
197
  newInputTokens: z.ZodNullable<z.ZodNumber>;
@@ -223,6 +230,7 @@ export declare const TaskModelReceiptSchema: z.ZodObject<{
223
230
  }, "strict", z.ZodTypeAny, {
224
231
  code: "MODEL_STARTED" | "MODEL_COMPLETED" | "MODEL_OUTCOME_UNKNOWN";
225
232
  provider: "anthropic";
233
+ credentialId: string;
226
234
  model: string;
227
235
  requestStartedAtMs: number | null;
228
236
  usage: {
@@ -241,6 +249,7 @@ export declare const TaskModelReceiptSchema: z.ZodObject<{
241
249
  schema: "kya.task.model-receipt.v1";
242
250
  admissionDigest: string;
243
251
  requestDigest: string;
252
+ credentialFingerprint: string;
244
253
  durationMs: number | null;
245
254
  costBasis: "unknown";
246
255
  billingVerified: false;
@@ -248,6 +257,7 @@ export declare const TaskModelReceiptSchema: z.ZodObject<{
248
257
  }, {
249
258
  code: "MODEL_STARTED" | "MODEL_COMPLETED" | "MODEL_OUTCOME_UNKNOWN";
250
259
  provider: "anthropic";
260
+ credentialId: string;
251
261
  model: string;
252
262
  requestStartedAtMs: number | null;
253
263
  usage: {
@@ -266,6 +276,7 @@ export declare const TaskModelReceiptSchema: z.ZodObject<{
266
276
  schema: "kya.task.model-receipt.v1";
267
277
  admissionDigest: string;
268
278
  requestDigest: string;
279
+ credentialFingerprint: string;
269
280
  durationMs: number | null;
270
281
  costBasis: "unknown";
271
282
  billingVerified: false;
@@ -340,18 +351,22 @@ export declare const LinearInstallationWorkflowSchema: z.ZodEffects<z.ZodObject<
340
351
  }>>;
341
352
  modelPolicy: z.ZodOptional<z.ZodObject<{
342
353
  provider: z.ZodLiteral<"anthropic">;
354
+ /** The organization's own model credential that pays for these calls (`model-credentials`). */
355
+ credentialId: z.ZodString;
343
356
  models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
344
357
  maxOutputTokens: z.ZodNumber;
345
358
  maxRequestBytes: z.ZodNumber;
346
359
  reservedCostMicrousd: z.ZodNumber;
347
360
  }, "strict", z.ZodTypeAny, {
348
361
  provider: "anthropic";
362
+ credentialId: string;
349
363
  models: string[];
350
364
  maxOutputTokens: number;
351
365
  maxRequestBytes: number;
352
366
  reservedCostMicrousd: number;
353
367
  }, {
354
368
  provider: "anthropic";
369
+ credentialId: string;
355
370
  models: string[];
356
371
  maxOutputTokens: number;
357
372
  maxRequestBytes: number;
@@ -377,6 +392,7 @@ export declare const LinearInstallationWorkflowSchema: z.ZodEffects<z.ZodObject<
377
392
  } | undefined;
378
393
  modelPolicy?: {
379
394
  provider: "anthropic";
395
+ credentialId: string;
380
396
  models: string[];
381
397
  maxOutputTokens: number;
382
398
  maxRequestBytes: number;
@@ -402,6 +418,7 @@ export declare const LinearInstallationWorkflowSchema: z.ZodEffects<z.ZodObject<
402
418
  } | undefined;
403
419
  modelPolicy?: {
404
420
  provider: "anthropic";
421
+ credentialId: string;
405
422
  models: string[];
406
423
  maxOutputTokens: number;
407
424
  maxRequestBytes: number;
@@ -427,6 +444,7 @@ export declare const LinearInstallationWorkflowSchema: z.ZodEffects<z.ZodObject<
427
444
  } | undefined;
428
445
  modelPolicy?: {
429
446
  provider: "anthropic";
447
+ credentialId: string;
430
448
  models: string[];
431
449
  maxOutputTokens: number;
432
450
  maxRequestBytes: number;
@@ -452,6 +470,7 @@ export declare const LinearInstallationWorkflowSchema: z.ZodEffects<z.ZodObject<
452
470
  } | undefined;
453
471
  modelPolicy?: {
454
472
  provider: "anthropic";
473
+ credentialId: string;
455
474
  models: string[];
456
475
  maxOutputTokens: number;
457
476
  maxRequestBytes: number;
@@ -508,18 +527,22 @@ export declare const ConfigureLinearInstallationSchema: z.ZodObject<{
508
527
  }>>;
509
528
  modelPolicy: z.ZodOptional<z.ZodObject<{
510
529
  provider: z.ZodLiteral<"anthropic">;
530
+ /** The organization's own model credential that pays for these calls (`model-credentials`). */
531
+ credentialId: z.ZodString;
511
532
  models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
512
533
  maxOutputTokens: z.ZodNumber;
513
534
  maxRequestBytes: z.ZodNumber;
514
535
  reservedCostMicrousd: z.ZodNumber;
515
536
  }, "strict", z.ZodTypeAny, {
516
537
  provider: "anthropic";
538
+ credentialId: string;
517
539
  models: string[];
518
540
  maxOutputTokens: number;
519
541
  maxRequestBytes: number;
520
542
  reservedCostMicrousd: number;
521
543
  }, {
522
544
  provider: "anthropic";
545
+ credentialId: string;
523
546
  models: string[];
524
547
  maxOutputTokens: number;
525
548
  maxRequestBytes: number;
@@ -545,6 +568,7 @@ export declare const ConfigureLinearInstallationSchema: z.ZodObject<{
545
568
  } | undefined;
546
569
  modelPolicy?: {
547
570
  provider: "anthropic";
571
+ credentialId: string;
548
572
  models: string[];
549
573
  maxOutputTokens: number;
550
574
  maxRequestBytes: number;
@@ -570,6 +594,7 @@ export declare const ConfigureLinearInstallationSchema: z.ZodObject<{
570
594
  } | undefined;
571
595
  modelPolicy?: {
572
596
  provider: "anthropic";
597
+ credentialId: string;
573
598
  models: string[];
574
599
  maxOutputTokens: number;
575
600
  maxRequestBytes: number;
@@ -595,6 +620,7 @@ export declare const ConfigureLinearInstallationSchema: z.ZodObject<{
595
620
  } | undefined;
596
621
  modelPolicy?: {
597
622
  provider: "anthropic";
623
+ credentialId: string;
598
624
  models: string[];
599
625
  maxOutputTokens: number;
600
626
  maxRequestBytes: number;
@@ -620,6 +646,7 @@ export declare const ConfigureLinearInstallationSchema: z.ZodObject<{
620
646
  } | undefined;
621
647
  modelPolicy?: {
622
648
  provider: "anthropic";
649
+ credentialId: string;
623
650
  models: string[];
624
651
  maxOutputTokens: number;
625
652
  maxRequestBytes: number;
@@ -655,6 +682,7 @@ export declare const ConfigureLinearInstallationSchema: z.ZodObject<{
655
682
  } | undefined;
656
683
  modelPolicy?: {
657
684
  provider: "anthropic";
685
+ credentialId: string;
658
686
  models: string[];
659
687
  maxOutputTokens: number;
660
688
  maxRequestBytes: number;
@@ -689,6 +717,7 @@ export declare const ConfigureLinearInstallationSchema: z.ZodObject<{
689
717
  } | undefined;
690
718
  modelPolicy?: {
691
719
  provider: "anthropic";
720
+ credentialId: string;
692
721
  models: string[];
693
722
  maxOutputTokens: number;
694
723
  maxRequestBytes: number;
@@ -1423,18 +1452,22 @@ export declare const ConfigureTaskSourceInstallationSchema: z.ZodObject<{
1423
1452
  }>>;
1424
1453
  modelPolicy: z.ZodOptional<z.ZodObject<{
1425
1454
  provider: z.ZodLiteral<"anthropic">;
1455
+ /** The organization's own model credential that pays for these calls (`model-credentials`). */
1456
+ credentialId: z.ZodString;
1426
1457
  models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1427
1458
  maxOutputTokens: z.ZodNumber;
1428
1459
  maxRequestBytes: z.ZodNumber;
1429
1460
  reservedCostMicrousd: z.ZodNumber;
1430
1461
  }, "strict", z.ZodTypeAny, {
1431
1462
  provider: "anthropic";
1463
+ credentialId: string;
1432
1464
  models: string[];
1433
1465
  maxOutputTokens: number;
1434
1466
  maxRequestBytes: number;
1435
1467
  reservedCostMicrousd: number;
1436
1468
  }, {
1437
1469
  provider: "anthropic";
1470
+ credentialId: string;
1438
1471
  models: string[];
1439
1472
  maxOutputTokens: number;
1440
1473
  maxRequestBytes: number;
@@ -1460,6 +1493,7 @@ export declare const ConfigureTaskSourceInstallationSchema: z.ZodObject<{
1460
1493
  } | undefined;
1461
1494
  modelPolicy?: {
1462
1495
  provider: "anthropic";
1496
+ credentialId: string;
1463
1497
  models: string[];
1464
1498
  maxOutputTokens: number;
1465
1499
  maxRequestBytes: number;
@@ -1485,6 +1519,7 @@ export declare const ConfigureTaskSourceInstallationSchema: z.ZodObject<{
1485
1519
  } | undefined;
1486
1520
  modelPolicy?: {
1487
1521
  provider: "anthropic";
1522
+ credentialId: string;
1488
1523
  models: string[];
1489
1524
  maxOutputTokens: number;
1490
1525
  maxRequestBytes: number;
@@ -1510,6 +1545,7 @@ export declare const ConfigureTaskSourceInstallationSchema: z.ZodObject<{
1510
1545
  } | undefined;
1511
1546
  modelPolicy?: {
1512
1547
  provider: "anthropic";
1548
+ credentialId: string;
1513
1549
  models: string[];
1514
1550
  maxOutputTokens: number;
1515
1551
  maxRequestBytes: number;
@@ -1535,6 +1571,7 @@ export declare const ConfigureTaskSourceInstallationSchema: z.ZodObject<{
1535
1571
  } | undefined;
1536
1572
  modelPolicy?: {
1537
1573
  provider: "anthropic";
1574
+ credentialId: string;
1538
1575
  models: string[];
1539
1576
  maxOutputTokens: number;
1540
1577
  maxRequestBytes: number;
@@ -1584,6 +1621,7 @@ export declare const ConfigureTaskSourceInstallationSchema: z.ZodObject<{
1584
1621
  } | undefined;
1585
1622
  modelPolicy?: {
1586
1623
  provider: "anthropic";
1624
+ credentialId: string;
1587
1625
  models: string[];
1588
1626
  maxOutputTokens: number;
1589
1627
  maxRequestBytes: number;
@@ -1633,6 +1671,7 @@ export declare const ConfigureTaskSourceInstallationSchema: z.ZodObject<{
1633
1671
  } | undefined;
1634
1672
  modelPolicy?: {
1635
1673
  provider: "anthropic";
1674
+ credentialId: string;
1636
1675
  models: string[];
1637
1676
  maxOutputTokens: number;
1638
1677
  maxRequestBytes: number;
@@ -1713,18 +1752,22 @@ export declare const TaskSourceIntentSchema: z.ZodObject<{
1713
1752
  }>>;
1714
1753
  modelPolicy: z.ZodOptional<z.ZodObject<{
1715
1754
  provider: z.ZodLiteral<"anthropic">;
1755
+ /** The organization's own model credential that pays for these calls (`model-credentials`). */
1756
+ credentialId: z.ZodString;
1716
1757
  models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
1717
1758
  maxOutputTokens: z.ZodNumber;
1718
1759
  maxRequestBytes: z.ZodNumber;
1719
1760
  reservedCostMicrousd: z.ZodNumber;
1720
1761
  }, "strict", z.ZodTypeAny, {
1721
1762
  provider: "anthropic";
1763
+ credentialId: string;
1722
1764
  models: string[];
1723
1765
  maxOutputTokens: number;
1724
1766
  maxRequestBytes: number;
1725
1767
  reservedCostMicrousd: number;
1726
1768
  }, {
1727
1769
  provider: "anthropic";
1770
+ credentialId: string;
1728
1771
  models: string[];
1729
1772
  maxOutputTokens: number;
1730
1773
  maxRequestBytes: number;
@@ -1750,6 +1793,7 @@ export declare const TaskSourceIntentSchema: z.ZodObject<{
1750
1793
  } | undefined;
1751
1794
  modelPolicy?: {
1752
1795
  provider: "anthropic";
1796
+ credentialId: string;
1753
1797
  models: string[];
1754
1798
  maxOutputTokens: number;
1755
1799
  maxRequestBytes: number;
@@ -1775,6 +1819,7 @@ export declare const TaskSourceIntentSchema: z.ZodObject<{
1775
1819
  } | undefined;
1776
1820
  modelPolicy?: {
1777
1821
  provider: "anthropic";
1822
+ credentialId: string;
1778
1823
  models: string[];
1779
1824
  maxOutputTokens: number;
1780
1825
  maxRequestBytes: number;
@@ -1800,6 +1845,7 @@ export declare const TaskSourceIntentSchema: z.ZodObject<{
1800
1845
  } | undefined;
1801
1846
  modelPolicy?: {
1802
1847
  provider: "anthropic";
1848
+ credentialId: string;
1803
1849
  models: string[];
1804
1850
  maxOutputTokens: number;
1805
1851
  maxRequestBytes: number;
@@ -1825,6 +1871,7 @@ export declare const TaskSourceIntentSchema: z.ZodObject<{
1825
1871
  } | undefined;
1826
1872
  modelPolicy?: {
1827
1873
  provider: "anthropic";
1874
+ credentialId: string;
1828
1875
  models: string[];
1829
1876
  maxOutputTokens: number;
1830
1877
  maxRequestBytes: number;
@@ -1871,6 +1918,7 @@ export declare const TaskSourceIntentSchema: z.ZodObject<{
1871
1918
  } | undefined;
1872
1919
  modelPolicy?: {
1873
1920
  provider: "anthropic";
1921
+ credentialId: string;
1874
1922
  models: string[];
1875
1923
  maxOutputTokens: number;
1876
1924
  maxRequestBytes: number;
@@ -1918,6 +1966,7 @@ export declare const TaskSourceIntentSchema: z.ZodObject<{
1918
1966
  } | undefined;
1919
1967
  modelPolicy?: {
1920
1968
  provider: "anthropic";
1969
+ credentialId: string;
1921
1970
  models: string[];
1922
1971
  maxOutputTokens: number;
1923
1972
  maxRequestBytes: number;
@@ -2057,18 +2106,22 @@ export declare const TaskMailboxClaimSchema: z.ZodObject<{
2057
2106
  }>>;
2058
2107
  modelPolicy: z.ZodOptional<z.ZodObject<{
2059
2108
  provider: z.ZodLiteral<"anthropic">;
2109
+ /** The organization's own model credential that pays for these calls (`model-credentials`). */
2110
+ credentialId: z.ZodString;
2060
2111
  models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2061
2112
  maxOutputTokens: z.ZodNumber;
2062
2113
  maxRequestBytes: z.ZodNumber;
2063
2114
  reservedCostMicrousd: z.ZodNumber;
2064
2115
  }, "strict", z.ZodTypeAny, {
2065
2116
  provider: "anthropic";
2117
+ credentialId: string;
2066
2118
  models: string[];
2067
2119
  maxOutputTokens: number;
2068
2120
  maxRequestBytes: number;
2069
2121
  reservedCostMicrousd: number;
2070
2122
  }, {
2071
2123
  provider: "anthropic";
2124
+ credentialId: string;
2072
2125
  models: string[];
2073
2126
  maxOutputTokens: number;
2074
2127
  maxRequestBytes: number;
@@ -2094,6 +2147,7 @@ export declare const TaskMailboxClaimSchema: z.ZodObject<{
2094
2147
  } | undefined;
2095
2148
  modelPolicy?: {
2096
2149
  provider: "anthropic";
2150
+ credentialId: string;
2097
2151
  models: string[];
2098
2152
  maxOutputTokens: number;
2099
2153
  maxRequestBytes: number;
@@ -2119,6 +2173,7 @@ export declare const TaskMailboxClaimSchema: z.ZodObject<{
2119
2173
  } | undefined;
2120
2174
  modelPolicy?: {
2121
2175
  provider: "anthropic";
2176
+ credentialId: string;
2122
2177
  models: string[];
2123
2178
  maxOutputTokens: number;
2124
2179
  maxRequestBytes: number;
@@ -2144,6 +2199,7 @@ export declare const TaskMailboxClaimSchema: z.ZodObject<{
2144
2199
  } | undefined;
2145
2200
  modelPolicy?: {
2146
2201
  provider: "anthropic";
2202
+ credentialId: string;
2147
2203
  models: string[];
2148
2204
  maxOutputTokens: number;
2149
2205
  maxRequestBytes: number;
@@ -2169,6 +2225,7 @@ export declare const TaskMailboxClaimSchema: z.ZodObject<{
2169
2225
  } | undefined;
2170
2226
  modelPolicy?: {
2171
2227
  provider: "anthropic";
2228
+ credentialId: string;
2172
2229
  models: string[];
2173
2230
  maxOutputTokens: number;
2174
2231
  maxRequestBytes: number;
@@ -2215,6 +2272,7 @@ export declare const TaskMailboxClaimSchema: z.ZodObject<{
2215
2272
  } | undefined;
2216
2273
  modelPolicy?: {
2217
2274
  provider: "anthropic";
2275
+ credentialId: string;
2218
2276
  models: string[];
2219
2277
  maxOutputTokens: number;
2220
2278
  maxRequestBytes: number;
@@ -2262,6 +2320,7 @@ export declare const TaskMailboxClaimSchema: z.ZodObject<{
2262
2320
  } | undefined;
2263
2321
  modelPolicy?: {
2264
2322
  provider: "anthropic";
2323
+ credentialId: string;
2265
2324
  models: string[];
2266
2325
  maxOutputTokens: number;
2267
2326
  maxRequestBytes: number;
@@ -2315,6 +2374,7 @@ export declare const TaskMailboxClaimSchema: z.ZodObject<{
2315
2374
  } | undefined;
2316
2375
  modelPolicy?: {
2317
2376
  provider: "anthropic";
2377
+ credentialId: string;
2318
2378
  models: string[];
2319
2379
  maxOutputTokens: number;
2320
2380
  maxRequestBytes: number;
@@ -2368,6 +2428,7 @@ export declare const TaskMailboxClaimSchema: z.ZodObject<{
2368
2428
  } | undefined;
2369
2429
  modelPolicy?: {
2370
2430
  provider: "anthropic";
2431
+ credentialId: string;
2371
2432
  models: string[];
2372
2433
  maxOutputTokens: number;
2373
2434
  maxRequestBytes: number;
@@ -2638,18 +2699,22 @@ export declare const TaskStandingAdmissionRequestSchema: z.ZodEffects<z.ZodObjec
2638
2699
  }>;
2639
2700
  modelPolicy: z.ZodOptional<z.ZodObject<{
2640
2701
  provider: z.ZodLiteral<"anthropic">;
2702
+ /** The organization's own model credential that pays for these calls (`model-credentials`). */
2703
+ credentialId: z.ZodString;
2641
2704
  models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2642
2705
  maxOutputTokens: z.ZodNumber;
2643
2706
  maxRequestBytes: z.ZodNumber;
2644
2707
  reservedCostMicrousd: z.ZodNumber;
2645
2708
  }, "strict", z.ZodTypeAny, {
2646
2709
  provider: "anthropic";
2710
+ credentialId: string;
2647
2711
  models: string[];
2648
2712
  maxOutputTokens: number;
2649
2713
  maxRequestBytes: number;
2650
2714
  reservedCostMicrousd: number;
2651
2715
  }, {
2652
2716
  provider: "anthropic";
2717
+ credentialId: string;
2653
2718
  models: string[];
2654
2719
  maxOutputTokens: number;
2655
2720
  maxRequestBytes: number;
@@ -2682,6 +2747,7 @@ export declare const TaskStandingAdmissionRequestSchema: z.ZodEffects<z.ZodObjec
2682
2747
  };
2683
2748
  modelPolicy?: {
2684
2749
  provider: "anthropic";
2750
+ credentialId: string;
2685
2751
  models: string[];
2686
2752
  maxOutputTokens: number;
2687
2753
  maxRequestBytes: number;
@@ -2707,6 +2773,7 @@ export declare const TaskStandingAdmissionRequestSchema: z.ZodEffects<z.ZodObjec
2707
2773
  };
2708
2774
  modelPolicy?: {
2709
2775
  provider: "anthropic";
2776
+ credentialId: string;
2710
2777
  models: string[];
2711
2778
  maxOutputTokens: number;
2712
2779
  maxRequestBytes: number;
@@ -2732,6 +2799,7 @@ export declare const TaskStandingAdmissionRequestSchema: z.ZodEffects<z.ZodObjec
2732
2799
  };
2733
2800
  modelPolicy?: {
2734
2801
  provider: "anthropic";
2802
+ credentialId: string;
2735
2803
  models: string[];
2736
2804
  maxOutputTokens: number;
2737
2805
  maxRequestBytes: number;
@@ -2757,6 +2825,7 @@ export declare const TaskStandingAdmissionRequestSchema: z.ZodEffects<z.ZodObjec
2757
2825
  };
2758
2826
  modelPolicy?: {
2759
2827
  provider: "anthropic";
2828
+ credentialId: string;
2760
2829
  models: string[];
2761
2830
  maxOutputTokens: number;
2762
2831
  maxRequestBytes: number;
@@ -2785,18 +2854,22 @@ export declare const TaskStandingAdmissionSchema: z.ZodEffects<z.ZodObject<Omit<
2785
2854
  }>;
2786
2855
  modelPolicy: z.ZodOptional<z.ZodObject<{
2787
2856
  provider: z.ZodLiteral<"anthropic">;
2857
+ /** The organization's own model credential that pays for these calls (`model-credentials`). */
2858
+ credentialId: z.ZodString;
2788
2859
  models: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
2789
2860
  maxOutputTokens: z.ZodNumber;
2790
2861
  maxRequestBytes: z.ZodNumber;
2791
2862
  reservedCostMicrousd: z.ZodNumber;
2792
2863
  }, "strict", z.ZodTypeAny, {
2793
2864
  provider: "anthropic";
2865
+ credentialId: string;
2794
2866
  models: string[];
2795
2867
  maxOutputTokens: number;
2796
2868
  maxRequestBytes: number;
2797
2869
  reservedCostMicrousd: number;
2798
2870
  }, {
2799
2871
  provider: "anthropic";
2872
+ credentialId: string;
2800
2873
  models: string[];
2801
2874
  maxOutputTokens: number;
2802
2875
  maxRequestBytes: number;
@@ -2855,6 +2928,7 @@ export declare const TaskStandingAdmissionSchema: z.ZodEffects<z.ZodObject<Omit<
2855
2928
  credentialExport: false;
2856
2929
  modelPolicy?: {
2857
2930
  provider: "anthropic";
2931
+ credentialId: string;
2858
2932
  models: string[];
2859
2933
  maxOutputTokens: number;
2860
2934
  maxRequestBytes: number;
@@ -2892,6 +2966,7 @@ export declare const TaskStandingAdmissionSchema: z.ZodEffects<z.ZodObject<Omit<
2892
2966
  credentialExport: false;
2893
2967
  modelPolicy?: {
2894
2968
  provider: "anthropic";
2969
+ credentialId: string;
2895
2970
  models: string[];
2896
2971
  maxOutputTokens: number;
2897
2972
  maxRequestBytes: number;
@@ -2929,6 +3004,7 @@ export declare const TaskStandingAdmissionSchema: z.ZodEffects<z.ZodObject<Omit<
2929
3004
  credentialExport: false;
2930
3005
  modelPolicy?: {
2931
3006
  provider: "anthropic";
3007
+ credentialId: string;
2932
3008
  models: string[];
2933
3009
  maxOutputTokens: number;
2934
3010
  maxRequestBytes: number;
@@ -2966,6 +3042,7 @@ export declare const TaskStandingAdmissionSchema: z.ZodEffects<z.ZodObject<Omit<
2966
3042
  credentialExport: false;
2967
3043
  modelPolicy?: {
2968
3044
  provider: "anthropic";
3045
+ credentialId: string;
2969
3046
  models: string[];
2970
3047
  maxOutputTokens: number;
2971
3048
  maxRequestBytes: number;
@@ -27,10 +27,14 @@ exports.TaskStandingCapabilitySchema = zod_1.z.enum([
27
27
  'github.pull_request.draft',
28
28
  ]);
29
29
  const TaskModelIdSchema = zod_1.z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/);
30
+ /** `sha256:` and the first 16 hex digits of the SHA-256 of a model key's bytes (C12). */
31
+ const ModelCredentialFingerprintSchema = zod_1.z.string().regex(/^sha256:[a-f0-9]{16}$/);
30
32
  /** Fixed allocation per call, not a provider price estimate or a guaranteed billing ceiling. */
31
33
  exports.TaskModelPolicySchema = zod_1.z
32
34
  .object({
33
35
  provider: zod_1.z.literal('anthropic'),
36
+ /** The organization's own model credential that pays for these calls (`model-credentials`). */
37
+ credentialId: zod_1.z.string().uuid(),
34
38
  models: zod_1.z
35
39
  .array(TaskModelIdSchema)
36
40
  .min(1)
@@ -89,6 +93,9 @@ exports.TaskModelReceiptSchema = zod_1.z
89
93
  requestDigest: zod_1.z.string().regex(/^sha256:[a-f0-9]{64}$/),
90
94
  provider: zod_1.z.literal('anthropic'),
91
95
  model: TaskModelIdSchema,
96
+ /** The admitted policy's credential, and the fingerprint of its key at call time. */
97
+ credentialId: zod_1.z.string().uuid(),
98
+ credentialFingerprint: ModelCredentialFingerprintSchema,
92
99
  reservedCostMicrousd: zod_1.z.number().int().positive().max(Number.MAX_SAFE_INTEGER),
93
100
  usage: exports.TaskModelUsageSchema.nullable(),
94
101
  outputDigest: zod_1.z
@@ -8,6 +8,7 @@ export declare const ExecutionReviewSchema: z.ZodEffects<z.ZodObject<{
8
8
  taskId: z.ZodString;
9
9
  revision: z.ZodNumber;
10
10
  objective: z.ZodString;
11
+ instructions: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
11
12
  repository: z.ZodObject<{
12
13
  repositoryId: z.ZodString;
13
14
  path: z.ZodString;
@@ -100,6 +101,7 @@ export declare const ExecutionReviewSchema: z.ZodEffects<z.ZodObject<{
100
101
  inputDigest: string;
101
102
  operationId: string;
102
103
  } | undefined;
104
+ instructions?: string | undefined;
103
105
  dependencyBinding?: string | undefined;
104
106
  }, {
105
107
  taskId: string;
@@ -131,6 +133,7 @@ export declare const ExecutionReviewSchema: z.ZodEffects<z.ZodObject<{
131
133
  inputDigest: string;
132
134
  operationId: string;
133
135
  } | undefined;
136
+ instructions?: string | undefined;
134
137
  dependencyBinding?: string | undefined;
135
138
  }>, {
136
139
  taskId: string;
@@ -162,6 +165,7 @@ export declare const ExecutionReviewSchema: z.ZodEffects<z.ZodObject<{
162
165
  inputDigest: string;
163
166
  operationId: string;
164
167
  } | undefined;
168
+ instructions?: string | undefined;
165
169
  dependencyBinding?: string | undefined;
166
170
  }, {
167
171
  taskId: string;
@@ -193,6 +197,7 @@ export declare const ExecutionReviewSchema: z.ZodEffects<z.ZodObject<{
193
197
  inputDigest: string;
194
198
  operationId: string;
195
199
  } | undefined;
200
+ instructions?: string | undefined;
196
201
  dependencyBinding?: string | undefined;
197
202
  }>;
198
203
  manifestDigest: z.ZodString;
@@ -648,6 +653,7 @@ export declare const ExecutionReviewSchema: z.ZodEffects<z.ZodObject<{
648
653
  inputDigest: string;
649
654
  operationId: string;
650
655
  } | undefined;
656
+ instructions?: string | undefined;
651
657
  dependencyBinding?: string | undefined;
652
658
  };
653
659
  runnerId: string;
@@ -760,6 +766,7 @@ export declare const ExecutionReviewSchema: z.ZodEffects<z.ZodObject<{
760
766
  inputDigest: string;
761
767
  operationId: string;
762
768
  } | undefined;
769
+ instructions?: string | undefined;
763
770
  dependencyBinding?: string | undefined;
764
771
  };
765
772
  runnerId: string;
@@ -872,6 +879,7 @@ export declare const ExecutionReviewSchema: z.ZodEffects<z.ZodObject<{
872
879
  inputDigest: string;
873
880
  operationId: string;
874
881
  } | undefined;
882
+ instructions?: string | undefined;
875
883
  dependencyBinding?: string | undefined;
876
884
  };
877
885
  runnerId: string;
@@ -984,6 +992,7 @@ export declare const ExecutionReviewSchema: z.ZodEffects<z.ZodObject<{
984
992
  inputDigest: string;
985
993
  operationId: string;
986
994
  } | undefined;
995
+ instructions?: string | undefined;
987
996
  dependencyBinding?: string | undefined;
988
997
  };
989
998
  runnerId: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/contracts",
3
- "version": "1.12.4",
3
+ "version": "1.13.0",
4
4
  "description": "Shared contracts, types, and schemas for MCP-I framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,6 +17,10 @@
17
17
  "types": "./dist/delegation/index.d.ts",
18
18
  "default": "./dist/delegation/index.js"
19
19
  },
20
+ "./checkpoint-api": {
21
+ "types": "./dist/checkpoint-api/index.d.ts",
22
+ "default": "./dist/checkpoint-api/index.js"
23
+ },
20
24
  "./agentshield-api": {
21
25
  "types": "./dist/agentshield-api/index.d.ts",
22
26
  "default": "./dist/agentshield-api/index.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kya-os/cli",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
4
4
  "description": "CLI for KYA-OS setup and management",
5
5
  "keywords": [
6
6
  "cli",
@@ -46,7 +46,7 @@
46
46
  "test:coverage": "vitest --coverage --run"
47
47
  },
48
48
  "dependencies": {
49
- "@kya-os/contracts": "1.12.4",
49
+ "@kya-os/contracts": "1.13.0",
50
50
  "@kya-os/mcp": "1.15.0",
51
51
  "@kya-os/mcp-i": "^1.12.0",
52
52
  "didwebvh-ts": "2.8.0",
@@ -63,9 +63,9 @@
63
63
  "node": ">=20.19.0"
64
64
  },
65
65
  "optionalDependencies": {
66
- "@kya-os/cli-darwin-arm64": "2.0.3",
67
- "@kya-os/cli-darwin-x64": "2.0.3",
68
- "@kya-os/cli-linux-arm64-gnu": "2.0.3",
69
- "@kya-os/cli-linux-x64-gnu": "2.0.3"
66
+ "@kya-os/cli-darwin-arm64": "2.1.0",
67
+ "@kya-os/cli-darwin-x64": "2.1.0",
68
+ "@kya-os/cli-linux-arm64-gnu": "2.1.0",
69
+ "@kya-os/cli-linux-x64-gnu": "2.1.0"
70
70
  }
71
71
  }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- /**
3
- * AgentShield Admin API Type Definitions
4
- *
5
- * TypeScript interfaces for administrative operations in AgentShield.
6
- * These types ensure parity between xmcp-i admin endpoints and the AgentShield service.
7
- *
8
- * @package @kya-os/contracts/agentshield-api
9
- */
10
- Object.defineProperty(exports, "__esModule", { value: true });