@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
@@ -14,7 +14,31 @@ export type ToolProtectionResponse = BaseToolProtectionResponse;
14
14
  /**
15
15
  * Tool protection source types
16
16
  */
17
- export type ToolProtectionSourceType = "inline" | "local" | "agentshield" | "kta" | "multi";
17
+ export type ToolProtectionSourceType = "inline" | "local" | "checkpoint" | "agentshield" | "kta" | "multi";
18
+ /**
19
+ * Where the Checkpoint tool protection source reads from.
20
+ */
21
+ export interface ToolProtectionCheckpointConfig {
22
+ /**
23
+ * Checkpoint API base URL
24
+ * @example 'https://kya.vouched.id'
25
+ */
26
+ apiUrl: string;
27
+ /**
28
+ * API key for authentication
29
+ */
30
+ apiKey?: string;
31
+ /**
32
+ * Project ID (optional, for backward compatibility)
33
+ * Modern approach uses agent DID
34
+ */
35
+ projectId?: string;
36
+ /**
37
+ * Cache TTL in milliseconds
38
+ * @default 300000 (5 minutes)
39
+ */
40
+ cacheTtl?: number;
41
+ }
18
42
  /**
19
43
  * Tool protection source configuration
20
44
  * Defines where tool protection settings come from
@@ -36,30 +60,14 @@ export interface ToolProtectionSourceConfig {
36
60
  */
37
61
  localFile?: string;
38
62
  /**
39
- * AgentShield configuration
40
- * Used when source is 'agentshield'
63
+ * Checkpoint configuration
64
+ * Used when source is 'checkpoint' (or its former name, 'agentshield')
41
65
  */
42
- agentShield?: {
43
- /**
44
- * AgentShield API base URL
45
- * @example 'https://kya.vouched.id'
46
- */
47
- apiUrl: string;
48
- /**
49
- * API key for authentication
50
- */
51
- apiKey?: string;
52
- /**
53
- * Project ID (optional, for backward compatibility)
54
- * Modern approach uses agent DID
55
- */
56
- projectId?: string;
57
- /**
58
- * Cache TTL in milliseconds
59
- * @default 300000 (5 minutes)
60
- */
61
- cacheTtl?: number;
62
- };
66
+ checkpoint?: ToolProtectionCheckpointConfig;
67
+ /**
68
+ * @deprecated Use `checkpoint`; read only when `checkpoint` is absent.
69
+ */
70
+ agentShield?: ToolProtectionCheckpointConfig;
63
71
  /**
64
72
  * KTA configuration
65
73
  * Used when source is 'kta'
@@ -102,7 +110,7 @@ export interface ToolProtectionSourceConfig {
102
110
  * Use this for development defaults or project-specific base settings.
103
111
  *
104
112
  * Precedence order (highest to lowest):
105
- * 1. Remote config (AgentShield API) - WINS
113
+ * 1. Remote config (Checkpoint API) - WINS
106
114
  * 2. Local config (this field)
107
115
  * 3. Framework defaults
108
116
  */
@@ -149,7 +157,7 @@ export interface ToolProtectionServiceConfig {
149
157
  cacheTtl?: number;
150
158
  /**
151
159
  * Local configuration (LOWEST priority after defaults)
152
- * Gets OVERRIDDEN by remote config from AgentShield API.
160
+ * Gets OVERRIDDEN by remote config from Checkpoint API.
153
161
  */
154
162
  localConfig?: BaseToolProtectionMap;
155
163
  /**
@@ -487,7 +487,7 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
487
487
  user_did: z.ZodOptional<z.ZodString>;
488
488
  /**
489
489
  * Human-readable user identifier from credential authentication (email/username).
490
- * Used for display in AgentShield dashboard.
490
+ * Used for display in Checkpoint dashboard.
491
491
  * This comes from the credential provider response (e.g., customer.email from Hardware World).
492
492
  * Maps to: user_identifier in delegation metadata
493
493
  */
@@ -503,9 +503,9 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
503
503
  scopes: string[];
504
504
  tool: string;
505
505
  session_id: string;
506
+ termsAccepted: boolean;
506
507
  agent_did: string;
507
508
  project_id: string;
508
- termsAccepted: boolean;
509
509
  user_did?: string | undefined;
510
510
  customFields?: Record<string, string | boolean> | undefined;
511
511
  termsVersion?: string | undefined;
@@ -521,9 +521,9 @@ export declare const consentApprovalRequestSchema: z.ZodObject<{
521
521
  scopes: string[];
522
522
  tool: string;
523
523
  session_id: string;
524
+ termsAccepted: boolean;
524
525
  agent_did: string;
525
526
  project_id: string;
526
- termsAccepted: boolean;
527
527
  user_did?: string | undefined;
528
528
  customFields?: Record<string, string | boolean> | undefined;
529
529
  termsVersion?: string | undefined;
@@ -842,9 +842,9 @@ export declare function validateConsentApprovalRequest(request: unknown): z.Safe
842
842
  scopes: string[];
843
843
  tool: string;
844
844
  session_id: string;
845
+ termsAccepted: boolean;
845
846
  agent_did: string;
846
847
  project_id: string;
847
- termsAccepted: boolean;
848
848
  user_did?: string | undefined;
849
849
  customFields?: Record<string, string | boolean> | undefined;
850
850
  termsVersion?: string | undefined;
@@ -860,9 +860,9 @@ export declare function validateConsentApprovalRequest(request: unknown): z.Safe
860
860
  scopes: string[];
861
861
  tool: string;
862
862
  session_id: string;
863
+ termsAccepted: boolean;
863
864
  agent_did: string;
864
865
  project_id: string;
865
- termsAccepted: boolean;
866
866
  user_did?: string | undefined;
867
867
  customFields?: Record<string, string | boolean> | undefined;
868
868
  termsVersion?: string | undefined;
@@ -230,7 +230,7 @@ exports.consentApprovalRequestSchema = zod_1.z.object({
230
230
  .optional(),
231
231
  /**
232
232
  * Human-readable user identifier from credential authentication (email/username).
233
- * Used for display in AgentShield dashboard.
233
+ * Used for display in Checkpoint dashboard.
234
234
  * This comes from the credential provider response (e.g., customer.email from Hardware World).
235
235
  * Maps to: user_identifier in delegation metadata
236
236
  */
@@ -76,7 +76,7 @@ export interface ConsentPageConfig {
76
76
  agentDid: string;
77
77
  /** Session ID for tracking */
78
78
  sessionId: string;
79
- /** Project ID from AgentShield */
79
+ /** Project ID from Checkpoint */
80
80
  projectId: string;
81
81
  /** Branding configuration */
82
82
  branding?: ConsentBranding;
@@ -132,7 +132,7 @@ export interface ConsentApprovalResponse {
132
132
  /**
133
133
  * Consent Configuration
134
134
  *
135
- * Complete consent configuration fetched from AgentShield or defaults
135
+ * Complete consent configuration fetched from Checkpoint or defaults
136
136
  */
137
137
  export interface ConsentConfig {
138
138
  /** Branding configuration */
@@ -2,7 +2,9 @@
2
2
  * Default Configuration for MCP-I Servers
3
3
  *
4
4
  * Provides safe, production-ready defaults for new user configurations.
5
- * Used by AgentShield Dashboard, Scaffolder, and Runtime fallbacks.
5
+ * Used by the Checkpoint dashboard, the scaffolder, and runtime fallbacks.
6
+ * It keeps the former 'agentshield' values and `agentShield` key, which every
7
+ * runtime reads, until runtimes that read 'checkpoint' have replaced them.
6
8
  *
7
9
  * @package @kya-os/contracts/dashboard-config
8
10
  */
@@ -3,7 +3,9 @@
3
3
  * Default Configuration for MCP-I Servers
4
4
  *
5
5
  * Provides safe, production-ready defaults for new user configurations.
6
- * Used by AgentShield Dashboard, Scaffolder, and Runtime fallbacks.
6
+ * Used by the Checkpoint dashboard, the scaffolder, and runtime fallbacks.
7
+ * It keeps the former 'agentshield' values and `agentShield` key, which every
8
+ * runtime reads, until runtimes that read 'checkpoint' have replaced them.
7
9
  *
8
10
  * @package @kya-os/contracts/dashboard-config
9
11
  */