@kya-os/cli 2.0.3 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.d.ts +1 -1
- package/node_modules/@kya-os/contracts/dist/agent-deployment-utils.js +1 -1
- package/node_modules/@kya-os/contracts/dist/agent-deployment.d.ts +10 -10
- package/node_modules/@kya-os/contracts/dist/agent-deployment.js +2 -2
- package/node_modules/@kya-os/contracts/dist/agentshield-api/index.d.ts +116 -11
- package/node_modules/@kya-os/contracts/dist/agentshield-api/index.js +38 -40
- package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/admin-schemas.d.ts +3 -3
- package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/admin-schemas.js +3 -3
- package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/admin-types.d.ts +4 -4
- package/node_modules/@kya-os/contracts/dist/checkpoint-api/admin-types.js +10 -0
- package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/endpoints.d.ts +10 -10
- package/node_modules/@kya-os/contracts/dist/checkpoint-api/endpoints.js +49 -0
- package/node_modules/@kya-os/contracts/dist/checkpoint-api/index.d.ts +15 -0
- package/node_modules/@kya-os/contracts/dist/checkpoint-api/index.js +46 -0
- package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/schemas.d.ts +10 -10
- package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/schemas.js +24 -24
- package/node_modules/@kya-os/contracts/dist/{agentshield-api → checkpoint-api}/types.d.ts +27 -27
- package/node_modules/@kya-os/contracts/dist/checkpoint-api/types.js +26 -0
- package/node_modules/@kya-os/contracts/dist/compute.d.ts +5 -5
- package/node_modules/@kya-os/contracts/dist/compute.js +5 -5
- package/node_modules/@kya-os/contracts/dist/config/builder.js +2 -0
- package/node_modules/@kya-os/contracts/dist/config/delegation.d.ts +1 -1
- package/node_modules/@kya-os/contracts/dist/config/identity.d.ts +4 -4
- package/node_modules/@kya-os/contracts/dist/config/index.d.ts +1 -1
- package/node_modules/@kya-os/contracts/dist/config/proofing.d.ts +3 -2
- package/node_modules/@kya-os/contracts/dist/config/tool-protection.d.ts +34 -26
- package/node_modules/@kya-os/contracts/dist/consent/schemas.d.ts +5 -5
- package/node_modules/@kya-os/contracts/dist/consent/schemas.js +1 -1
- package/node_modules/@kya-os/contracts/dist/consent/types.d.ts +2 -2
- package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.d.ts +3 -1
- package/node_modules/@kya-os/contracts/dist/dashboard-config/default-config.js +3 -1
- package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.d.ts +479 -197
- package/node_modules/@kya-os/contracts/dist/dashboard-config/schemas.js +10 -3
- package/node_modules/@kya-os/contracts/dist/dashboard-config/types.d.ts +19 -9
- package/node_modules/@kya-os/contracts/dist/dashboard-config/types.js +2 -2
- package/node_modules/@kya-os/contracts/dist/delegation/schemas.d.ts +19 -19
- package/node_modules/@kya-os/contracts/dist/delegation/schemas.js +4 -4
- package/node_modules/@kya-os/contracts/dist/deploy/index.d.ts +1 -1
- package/node_modules/@kya-os/contracts/dist/deploy/index.js +1 -1
- package/node_modules/@kya-os/contracts/dist/deploy/schemas.d.ts +7 -7
- package/node_modules/@kya-os/contracts/dist/deploy/schemas.js +3 -3
- package/node_modules/@kya-os/contracts/dist/deploy/types.d.ts +8 -8
- package/node_modules/@kya-os/contracts/dist/deploy/types.js +1 -1
- package/node_modules/@kya-os/contracts/dist/handshake/schemas.d.ts +1 -1
- package/node_modules/@kya-os/contracts/dist/handshake/schemas.js +1 -1
- package/node_modules/@kya-os/contracts/dist/identity/schemas.d.ts +1 -1
- package/node_modules/@kya-os/contracts/dist/identity/schemas.js +1 -1
- package/node_modules/@kya-os/contracts/dist/index.js +1 -1
- package/node_modules/@kya-os/contracts/dist/molti/schemas.d.ts +6 -6
- package/node_modules/@kya-os/contracts/dist/molti/schemas.js +2 -2
- package/node_modules/@kya-os/contracts/dist/molti/types.d.ts +9 -9
- package/node_modules/@kya-os/contracts/dist/molti/types.js +1 -1
- package/node_modules/@kya-os/contracts/dist/policy/schemas.d.ts +1 -1
- package/node_modules/@kya-os/contracts/dist/policy/schemas.js +1 -1
- package/node_modules/@kya-os/contracts/dist/proof/detached-proof.d.ts +3 -3
- package/node_modules/@kya-os/contracts/dist/proof/detached-proof.js +3 -3
- package/node_modules/@kya-os/contracts/dist/skills/schemas.d.ts +1 -1
- package/node_modules/@kya-os/contracts/dist/vault/schemas.d.ts +1 -1
- package/node_modules/@kya-os/contracts/dist/vault/schemas.js +1 -1
- package/node_modules/@kya-os/contracts/dist/well-known/index.d.ts +4 -4
- package/node_modules/@kya-os/contracts/dist/workbench/economics.d.ts +9 -0
- package/node_modules/@kya-os/contracts/dist/workbench/economics.js +2 -0
- package/node_modules/@kya-os/contracts/dist/workbench/execution.d.ts +13 -0
- package/node_modules/@kya-os/contracts/dist/workbench/execution.js +12 -1
- package/node_modules/@kya-os/contracts/dist/workbench/governed.d.ts +62 -10
- package/node_modules/@kya-os/contracts/dist/workbench/lead-planner.d.ts +11 -0
- package/node_modules/@kya-os/contracts/dist/workbench/linear-installation.d.ts +29 -0
- package/node_modules/@kya-os/contracts/dist/workbench/mailbox.d.ts +80 -3
- package/node_modules/@kya-os/contracts/dist/workbench/mailbox.js +9 -1
- package/node_modules/@kya-os/contracts/dist/workbench/review.d.ts +9 -0
- package/node_modules/@kya-os/contracts/package.json +7 -2
- package/package.json +8 -7
- package/node_modules/@kya-os/contracts/dist/agentshield-api/admin-types.js +0 -10
- package/node_modules/@kya-os/contracts/dist/agentshield-api/endpoints.js +0 -49
- package/node_modules/@kya-os/contracts/dist/agentshield-api/types.js +0 -26
|
@@ -664,12 +664,12 @@ export declare const MCPServerCardSchema: z.ZodObject<{
|
|
|
664
664
|
} | undefined;
|
|
665
665
|
$schema?: string | undefined;
|
|
666
666
|
description?: string | undefined;
|
|
667
|
+
instructions?: string | undefined;
|
|
667
668
|
_meta?: Record<string, unknown> | undefined;
|
|
668
669
|
authentication?: {
|
|
669
670
|
required: boolean;
|
|
670
671
|
schemes: string[];
|
|
671
672
|
} | undefined;
|
|
672
|
-
instructions?: string | undefined;
|
|
673
673
|
iconUrl?: string | undefined;
|
|
674
674
|
documentationUrl?: string | undefined;
|
|
675
675
|
prompts?: "dynamic" | {
|
|
@@ -730,12 +730,12 @@ export declare const MCPServerCardSchema: z.ZodObject<{
|
|
|
730
730
|
} | undefined;
|
|
731
731
|
$schema?: string | undefined;
|
|
732
732
|
description?: string | undefined;
|
|
733
|
+
instructions?: string | undefined;
|
|
733
734
|
_meta?: Record<string, unknown> | undefined;
|
|
734
735
|
authentication?: {
|
|
735
736
|
required: boolean;
|
|
736
737
|
schemes: string[];
|
|
737
738
|
} | undefined;
|
|
738
|
-
instructions?: string | undefined;
|
|
739
739
|
iconUrl?: string | undefined;
|
|
740
740
|
documentationUrl?: string | undefined;
|
|
741
741
|
prompts?: "dynamic" | {
|
|
@@ -928,8 +928,8 @@ export declare const WellKnownConfigSchema: z.ZodObject<{
|
|
|
928
928
|
metadata?: Record<string, unknown> | undefined;
|
|
929
929
|
protocolVersion?: string | undefined;
|
|
930
930
|
description?: string | undefined;
|
|
931
|
-
serviceEndpoint?: string | undefined;
|
|
932
931
|
instructions?: string | undefined;
|
|
932
|
+
serviceEndpoint?: string | undefined;
|
|
933
933
|
serviceName?: string | undefined;
|
|
934
934
|
iconUrl?: string | undefined;
|
|
935
935
|
documentationUrl?: string | undefined;
|
|
@@ -941,8 +941,8 @@ export declare const WellKnownConfigSchema: z.ZodObject<{
|
|
|
941
941
|
metadata?: Record<string, unknown> | undefined;
|
|
942
942
|
protocolVersion?: string | undefined;
|
|
943
943
|
description?: string | undefined;
|
|
944
|
-
serviceEndpoint?: string | undefined;
|
|
945
944
|
instructions?: string | undefined;
|
|
945
|
+
serviceEndpoint?: string | undefined;
|
|
946
946
|
serviceName?: string | undefined;
|
|
947
947
|
iconUrl?: string | undefined;
|
|
948
948
|
documentationUrl?: string | undefined;
|
|
@@ -1086,6 +1086,15 @@ export declare const BudgetSettlementSchema: z.ZodDiscriminatedUnion<"state", [z
|
|
|
1086
1086
|
}, {
|
|
1087
1087
|
state: "not_started";
|
|
1088
1088
|
evidenceRef: string;
|
|
1089
|
+
}>, z.ZodObject<{
|
|
1090
|
+
state: z.ZodLiteral<"not_dispatched">;
|
|
1091
|
+
startOperationId: z.ZodString;
|
|
1092
|
+
}, "strict", z.ZodTypeAny, {
|
|
1093
|
+
state: "not_dispatched";
|
|
1094
|
+
startOperationId: string;
|
|
1095
|
+
}, {
|
|
1096
|
+
state: "not_dispatched";
|
|
1097
|
+
startOperationId: string;
|
|
1089
1098
|
}>]>;
|
|
1090
1099
|
export type PriceSchedule = z.infer<typeof PriceScheduleSchema>;
|
|
1091
1100
|
export type CostQuantities = z.infer<typeof CostQuantitiesSchema>;
|
|
@@ -84,4 +84,6 @@ exports.BudgetSettlementSchema = zod_1.z.discriminatedUnion('state', [
|
|
|
84
84
|
zod_1.z.object({ state: zod_1.z.literal('known'), costRecordId: id }).strict(),
|
|
85
85
|
zod_1.z.object({ state: zod_1.z.literal('unknown'), costRecordId: id.nullable() }).strict(),
|
|
86
86
|
zod_1.z.object({ state: zod_1.z.literal('not_started'), evidenceRef: id }).strict(),
|
|
87
|
+
/** A standing start proven never dispatched, or refused by Checkpoint on its first send. */
|
|
88
|
+
zod_1.z.object({ state: zod_1.z.literal('not_dispatched'), startOperationId: id }).strict(),
|
|
87
89
|
]);
|
|
@@ -368,12 +368,21 @@ export declare const WorkbenchSourceBindingSchema: z.ZodObject<{
|
|
|
368
368
|
inputDigest: string;
|
|
369
369
|
operationId: string;
|
|
370
370
|
}>;
|
|
371
|
+
/** At most 32 KiB of UTF-8, as the Rust manifest bounds it. */
|
|
372
|
+
export declare const WORKBENCH_TASK_INSTRUCTIONS_MAX_BYTES: number;
|
|
373
|
+
/** Trimmed, non-empty and bounded; parsing never rewrites the text a digest covers. */
|
|
374
|
+
export declare const WorkbenchTaskInstructionsSchema: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
371
375
|
/** A specification is data. Receiving this object never authorizes execution. */
|
|
372
376
|
export declare const WorkbenchTaskManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
373
377
|
schemaVersion: z.ZodLiteral<1>;
|
|
374
378
|
taskId: z.ZodString;
|
|
375
379
|
revision: z.ZodNumber;
|
|
376
380
|
objective: z.ZodString;
|
|
381
|
+
/**
|
|
382
|
+
* The operator's free-text instructions beyond the acceptance criteria. They grant no
|
|
383
|
+
* authority. Omitted when absent, so existing manifest digests are unchanged.
|
|
384
|
+
*/
|
|
385
|
+
instructions: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>>;
|
|
377
386
|
repository: z.ZodObject<{
|
|
378
387
|
repositoryId: z.ZodString;
|
|
379
388
|
path: z.ZodString;
|
|
@@ -467,6 +476,7 @@ export declare const WorkbenchTaskManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
467
476
|
inputDigest: string;
|
|
468
477
|
operationId: string;
|
|
469
478
|
} | undefined;
|
|
479
|
+
instructions?: string | undefined;
|
|
470
480
|
dependencyBinding?: string | undefined;
|
|
471
481
|
}, {
|
|
472
482
|
taskId: string;
|
|
@@ -498,6 +508,7 @@ export declare const WorkbenchTaskManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
498
508
|
inputDigest: string;
|
|
499
509
|
operationId: string;
|
|
500
510
|
} | undefined;
|
|
511
|
+
instructions?: string | undefined;
|
|
501
512
|
dependencyBinding?: string | undefined;
|
|
502
513
|
}>, {
|
|
503
514
|
taskId: string;
|
|
@@ -529,6 +540,7 @@ export declare const WorkbenchTaskManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
529
540
|
inputDigest: string;
|
|
530
541
|
operationId: string;
|
|
531
542
|
} | undefined;
|
|
543
|
+
instructions?: string | undefined;
|
|
532
544
|
dependencyBinding?: string | undefined;
|
|
533
545
|
}, {
|
|
534
546
|
taskId: string;
|
|
@@ -560,6 +572,7 @@ export declare const WorkbenchTaskManifestSchema: z.ZodEffects<z.ZodObject<{
|
|
|
560
572
|
inputDigest: string;
|
|
561
573
|
operationId: string;
|
|
562
574
|
} | undefined;
|
|
575
|
+
instructions?: string | undefined;
|
|
563
576
|
dependencyBinding?: string | undefined;
|
|
564
577
|
}>;
|
|
565
578
|
export declare const WorkbenchExecutionLeaseSchema: z.ZodObject<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkbenchExecutionLeaseSchema = exports.WorkbenchTaskManifestSchema = exports.WorkbenchSourceBindingSchema = exports.WorkbenchTaskRoutingSchema = exports.WorkbenchRepositoryBindingSchema = exports.WorkbenchExecutionPolicySchema = exports.WorkbenchExecutionCapabilitiesSchema = void 0;
|
|
3
|
+
exports.WorkbenchExecutionLeaseSchema = exports.WorkbenchTaskManifestSchema = exports.WorkbenchTaskInstructionsSchema = exports.WORKBENCH_TASK_INSTRUCTIONS_MAX_BYTES = exports.WorkbenchSourceBindingSchema = exports.WorkbenchTaskRoutingSchema = exports.WorkbenchRepositoryBindingSchema = exports.WorkbenchExecutionPolicySchema = exports.WorkbenchExecutionCapabilitiesSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const economics_js_1 = require("./economics.js");
|
|
6
6
|
/** A local native sandbox does not establish OS credential or provider isolation. */
|
|
@@ -43,12 +43,23 @@ exports.WorkbenchSourceBindingSchema = zod_1.z.object({
|
|
|
43
43
|
sourceId: zod_1.z.string().min(1), sourceRevision: zod_1.z.number().int().positive(),
|
|
44
44
|
inputDigest: zod_1.z.string().regex(/^sha256:[a-f0-9]{64}$/), operationId: zod_1.z.string().uuid(),
|
|
45
45
|
}).strict();
|
|
46
|
+
/** At most 32 KiB of UTF-8, as the Rust manifest bounds it. */
|
|
47
|
+
exports.WORKBENCH_TASK_INSTRUCTIONS_MAX_BYTES = 32 * 1024;
|
|
48
|
+
/** Trimmed, non-empty and bounded; parsing never rewrites the text a digest covers. */
|
|
49
|
+
exports.WorkbenchTaskInstructionsSchema = zod_1.z.string().min(1)
|
|
50
|
+
.refine(value => value.trim() === value, 'Instructions are trimmed')
|
|
51
|
+
.refine(value => new TextEncoder().encode(value).length <= exports.WORKBENCH_TASK_INSTRUCTIONS_MAX_BYTES, 'Instructions are at most 32 KiB');
|
|
46
52
|
/** A specification is data. Receiving this object never authorizes execution. */
|
|
47
53
|
exports.WorkbenchTaskManifestSchema = zod_1.z.object({
|
|
48
54
|
schemaVersion: zod_1.z.literal(1),
|
|
49
55
|
taskId: zod_1.z.string().trim().min(1).max(256),
|
|
50
56
|
revision: zod_1.z.number().int().positive().max(0xffffffff),
|
|
51
57
|
objective: zod_1.z.string().trim().min(1).max(128000),
|
|
58
|
+
/**
|
|
59
|
+
* The operator's free-text instructions beyond the acceptance criteria. They grant no
|
|
60
|
+
* authority. Omitted when absent, so existing manifest digests are unchanged.
|
|
61
|
+
*/
|
|
62
|
+
instructions: exports.WorkbenchTaskInstructionsSchema.optional(),
|
|
52
63
|
repository: exports.WorkbenchRepositoryBindingSchema,
|
|
53
64
|
source: exports.WorkbenchSourceBindingSchema.optional(),
|
|
54
65
|
/** The reviewed dependency binding a dependent tracker task consumes; part of the manifest digest. */
|