@kici-dev/engine 0.1.23 → 0.1.24
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/dist/approval/types.d.ts +1 -1
- package/dist/audit/access-log-policy.d.ts +4 -1
- package/dist/audit/access-log-policy.js +9 -1
- package/dist/audit/activity.d.ts +2 -2
- package/dist/audit/retention-policy.js +2 -0
- package/dist/environment/index.d.ts +2 -0
- package/dist/environment/index.js +3 -1
- package/dist/environment/multi-env.d.ts +30 -0
- package/dist/environment/multi-env.js +38 -0
- package/dist/environment/types.d.ts +8 -2
- package/dist/environment/types.js +18 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +14 -8
- package/dist/inputs/index.d.ts +1 -0
- package/dist/inputs/index.js +2 -1
- package/dist/inputs/schedule.d.ts +19 -0
- package/dist/inputs/schedule.js +33 -0
- package/dist/mcp/tool-schemas.d.ts +41 -0
- package/dist/mcp/tool-schemas.js +49 -0
- package/dist/metrics/metric-catalog.generated.d.ts +20 -0
- package/dist/metrics/metric-catalog.generated.js +24 -0
- package/dist/protocol/messages/access-log.d.ts +29 -15
- package/dist/protocol/messages/access-log.js +3 -1
- package/dist/protocol/messages/actor.d.ts +8 -0
- package/dist/protocol/messages/actor.js +17 -3
- package/dist/protocol/messages/agent-run-result.d.ts +350 -0
- package/dist/protocol/messages/agent-run-result.js +123 -0
- package/dist/protocol/messages/auth.d.ts +2 -0
- package/dist/protocol/messages/auth.js +10 -1
- package/dist/protocol/messages/capabilities.d.ts +2 -0
- package/dist/protocol/messages/capabilities.js +15 -2
- package/dist/protocol/messages/dashboard-global-workflows.d.ts +8 -0
- package/dist/protocol/messages/dashboard.d.ts +1376 -42
- package/dist/protocol/messages/dashboard.js +161 -6
- package/dist/protocol/messages/execution-status.d.ts +52 -1
- package/dist/protocol/messages/execution-status.js +115 -54
- package/dist/protocol/messages/orchestrator-agent.d.ts +21 -5
- package/dist/protocol/messages/orchestrator-agent.js +5 -1
- package/dist/protocol/messages/pat-kind.d.ts +16 -0
- package/dist/protocol/messages/pat-kind.js +17 -0
- package/dist/protocol/messages/peer.d.ts +7 -7
- package/dist/protocol/messages/platform-orchestrator.d.ts +393 -7
- package/dist/protocol/messages/platform-orchestrator.js +3 -3
- package/dist/protocol/messages/run-events.d.ts +5 -1
- package/dist/provider/check-run-conclusion.d.ts +1 -1
- package/dist/trigger/types.d.ts +35 -7
- package/dist/trigger/types.js +7 -2
- package/package.json +1 -1
- package/sbom.spdx.json +5 -5
|
@@ -298,8 +298,10 @@ export declare const agentStepStatusSchema: z.ZodObject<{
|
|
|
298
298
|
state: z.ZodEnum<{
|
|
299
299
|
skipped: "skipped";
|
|
300
300
|
success: "success";
|
|
301
|
+
pending: "pending";
|
|
301
302
|
running: "running";
|
|
302
303
|
failed: "failed";
|
|
304
|
+
cancelled: "cancelled";
|
|
303
305
|
}>;
|
|
304
306
|
timestamp: z.ZodNumber;
|
|
305
307
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -313,6 +315,12 @@ export declare const agentStepStatusSchema: z.ZodObject<{
|
|
|
313
315
|
"hook:afterStep": "hook:afterStep";
|
|
314
316
|
}>>;
|
|
315
317
|
secretsAccessed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
318
|
+
concurrencyKind: z.ZodOptional<z.ZodEnum<{
|
|
319
|
+
sequential: "sequential";
|
|
320
|
+
"parallel-child": "parallel-child";
|
|
321
|
+
"parallel-group": "parallel-group";
|
|
322
|
+
}>>;
|
|
323
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
316
324
|
logBytesStreamed: z.ZodOptional<z.ZodNumber>;
|
|
317
325
|
}, z.core.$strip>;
|
|
318
326
|
/** Agent -> Orchestrator: report that a job belongs to a concurrency group. */
|
|
@@ -342,8 +350,8 @@ export declare const jobConcurrencyAckSchema: z.ZodObject<{
|
|
|
342
350
|
type: z.ZodLiteral<"job.concurrency.ack">;
|
|
343
351
|
requestId: z.ZodString;
|
|
344
352
|
action: z.ZodEnum<{
|
|
345
|
-
proceed: "proceed";
|
|
346
353
|
wait: "wait";
|
|
354
|
+
proceed: "proceed";
|
|
347
355
|
cancel: "cancel";
|
|
348
356
|
}>;
|
|
349
357
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -513,8 +521,8 @@ export declare const fleetBundleErrorSchema: z.ZodObject<{
|
|
|
513
521
|
}, z.core.$strip>;
|
|
514
522
|
/** Outcome of a step-level approval hold, sent back to the waiting agent. */
|
|
515
523
|
export declare const StepApprovalOutcome: z.ZodEnum<{
|
|
516
|
-
rejected: "rejected";
|
|
517
524
|
approved: "approved";
|
|
525
|
+
rejected: "rejected";
|
|
518
526
|
expired: "expired";
|
|
519
527
|
}>;
|
|
520
528
|
export type StepApprovalOutcome = z.infer<typeof StepApprovalOutcome>;
|
|
@@ -575,8 +583,8 @@ export declare const stepApprovalResolvedSchema: z.ZodObject<{
|
|
|
575
583
|
jobId: z.ZodString;
|
|
576
584
|
stepIndex: z.ZodNumber;
|
|
577
585
|
outcome: z.ZodEnum<{
|
|
578
|
-
rejected: "rejected";
|
|
579
586
|
approved: "approved";
|
|
587
|
+
rejected: "rejected";
|
|
580
588
|
expired: "expired";
|
|
581
589
|
}>;
|
|
582
590
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -674,8 +682,8 @@ export declare const orchestratorToAgentMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
674
682
|
type: z.ZodLiteral<"job.concurrency.ack">;
|
|
675
683
|
requestId: z.ZodString;
|
|
676
684
|
action: z.ZodEnum<{
|
|
677
|
-
proceed: "proceed";
|
|
678
685
|
wait: "wait";
|
|
686
|
+
proceed: "proceed";
|
|
679
687
|
cancel: "cancel";
|
|
680
688
|
}>;
|
|
681
689
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -729,8 +737,8 @@ export declare const orchestratorToAgentMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
729
737
|
jobId: z.ZodString;
|
|
730
738
|
stepIndex: z.ZodNumber;
|
|
731
739
|
outcome: z.ZodEnum<{
|
|
732
|
-
rejected: "rejected";
|
|
733
740
|
approved: "approved";
|
|
741
|
+
rejected: "rejected";
|
|
734
742
|
expired: "expired";
|
|
735
743
|
}>;
|
|
736
744
|
reason: z.ZodOptional<z.ZodString>;
|
|
@@ -825,8 +833,10 @@ export declare const agentToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
825
833
|
state: z.ZodEnum<{
|
|
826
834
|
skipped: "skipped";
|
|
827
835
|
success: "success";
|
|
836
|
+
pending: "pending";
|
|
828
837
|
running: "running";
|
|
829
838
|
failed: "failed";
|
|
839
|
+
cancelled: "cancelled";
|
|
830
840
|
}>;
|
|
831
841
|
timestamp: z.ZodNumber;
|
|
832
842
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -840,6 +850,12 @@ export declare const agentToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
840
850
|
"hook:afterStep": "hook:afterStep";
|
|
841
851
|
}>>;
|
|
842
852
|
secretsAccessed: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
853
|
+
concurrencyKind: z.ZodOptional<z.ZodEnum<{
|
|
854
|
+
sequential: "sequential";
|
|
855
|
+
"parallel-child": "parallel-child";
|
|
856
|
+
"parallel-group": "parallel-group";
|
|
857
|
+
}>>;
|
|
858
|
+
groupId: z.ZodOptional<z.ZodString>;
|
|
843
859
|
logBytesStreamed: z.ZodOptional<z.ZodNumber>;
|
|
844
860
|
}, z.core.$strip>, z.ZodObject<{
|
|
845
861
|
type: z.ZodLiteral<"job.heartbeat">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../chunk-BTugEXQM.js";
|
|
2
|
-
import { ExecutionJobStatus, ExecutionStepStatus } from "./execution-status.js";
|
|
2
|
+
import { ExecutionJobStatus, ExecutionStepStatus, StepConcurrencyKind } from "./execution-status.js";
|
|
3
3
|
import { approverClauseSchema } from "../../approval/types.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/protocol/messages/orchestrator-agent.ts
|
|
@@ -351,6 +351,10 @@ const agentStepStatusSchema = z.object({
|
|
|
351
351
|
]).optional(),
|
|
352
352
|
/** Secret key names accessed by this step via ctx.secrets.get()/expose(). Never contains values. */
|
|
353
353
|
secretsAccessed: z.array(z.string()).optional(),
|
|
354
|
+
/** Step concurrency role; absent means an ordinary sequential step. */
|
|
355
|
+
concurrencyKind: StepConcurrencyKind.optional(),
|
|
356
|
+
/** Parallel-group correlation id shared by a group's children (e.g. `g0`). */
|
|
357
|
+
groupId: z.string().optional(),
|
|
354
358
|
/**
|
|
355
359
|
* Total raw bytes streamed by this step's LogStreamer at terminal time.
|
|
356
360
|
* Counts agent-side raw bytes (the same count fed to the transient
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Kind of personal access token.
|
|
4
|
+
*
|
|
5
|
+
* - `user` — an ordinary PAT acting as the human who minted it.
|
|
6
|
+
* - `agent` — a PAT minted for a coding agent. It still runs with the user's
|
|
7
|
+
* permissions (no authority change), but its agent origin is carried into
|
|
8
|
+
* every audit / access-log row via `actor.agent`, and it is the only
|
|
9
|
+
* credential the developer MCP server accepts.
|
|
10
|
+
*/
|
|
11
|
+
export declare const PatKind: z.ZodEnum<{
|
|
12
|
+
user: "user";
|
|
13
|
+
agent: "agent";
|
|
14
|
+
}>;
|
|
15
|
+
export type PatKind = z.infer<typeof PatKind>;
|
|
16
|
+
//# sourceMappingURL=pat-kind.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "../../chunk-BTugEXQM.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/protocol/messages/pat-kind.ts
|
|
4
|
+
/**
|
|
5
|
+
* Kind of personal access token.
|
|
6
|
+
*
|
|
7
|
+
* - `user` — an ordinary PAT acting as the human who minted it.
|
|
8
|
+
* - `agent` — a PAT minted for a coding agent. It still runs with the user's
|
|
9
|
+
* permissions (no authority change), but its agent origin is carried into
|
|
10
|
+
* every audit / access-log row via `actor.agent`, and it is the only
|
|
11
|
+
* credential the developer MCP server accepts.
|
|
12
|
+
*/
|
|
13
|
+
const PatKind = z.enum(["user", "agent"]);
|
|
14
|
+
//#endregion
|
|
15
|
+
export { PatKind };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=pat-kind.js.map
|
|
@@ -3,8 +3,8 @@ import { z } from 'zod';
|
|
|
3
3
|
export declare const peerCapabilitiesSchema: z.ZodObject<{
|
|
4
4
|
s3LogAccess: z.ZodBoolean;
|
|
5
5
|
logRoutingOverride: z.ZodOptional<z.ZodEnum<{
|
|
6
|
-
coordinator: "coordinator";
|
|
7
6
|
direct: "direct";
|
|
7
|
+
coordinator: "coordinator";
|
|
8
8
|
}>>;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
10
|
/** Scaler capacity summary included in peer heartbeat and auth response for routing decisions. */
|
|
@@ -72,8 +72,8 @@ export declare const peerAuthResponseSchema: z.ZodObject<{
|
|
|
72
72
|
capabilities: z.ZodOptional<z.ZodObject<{
|
|
73
73
|
s3LogAccess: z.ZodBoolean;
|
|
74
74
|
logRoutingOverride: z.ZodOptional<z.ZodEnum<{
|
|
75
|
-
coordinator: "coordinator";
|
|
76
75
|
direct: "direct";
|
|
76
|
+
coordinator: "coordinator";
|
|
77
77
|
}>>;
|
|
78
78
|
}, z.core.$strip>>;
|
|
79
79
|
}, z.core.$strip>;
|
|
@@ -97,8 +97,8 @@ export declare const peerHeartbeatSchema: z.ZodObject<{
|
|
|
97
97
|
capabilities: z.ZodObject<{
|
|
98
98
|
s3LogAccess: z.ZodBoolean;
|
|
99
99
|
logRoutingOverride: z.ZodOptional<z.ZodEnum<{
|
|
100
|
-
coordinator: "coordinator";
|
|
101
100
|
direct: "direct";
|
|
101
|
+
coordinator: "coordinator";
|
|
102
102
|
}>>;
|
|
103
103
|
}, z.core.$strip>;
|
|
104
104
|
scalerCapacity: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -464,8 +464,8 @@ export declare const peerToPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
464
464
|
capabilities: z.ZodOptional<z.ZodObject<{
|
|
465
465
|
s3LogAccess: z.ZodBoolean;
|
|
466
466
|
logRoutingOverride: z.ZodOptional<z.ZodEnum<{
|
|
467
|
-
coordinator: "coordinator";
|
|
468
467
|
direct: "direct";
|
|
468
|
+
coordinator: "coordinator";
|
|
469
469
|
}>>;
|
|
470
470
|
}, z.core.$strip>>;
|
|
471
471
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -487,8 +487,8 @@ export declare const peerToPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
487
487
|
capabilities: z.ZodObject<{
|
|
488
488
|
s3LogAccess: z.ZodBoolean;
|
|
489
489
|
logRoutingOverride: z.ZodOptional<z.ZodEnum<{
|
|
490
|
-
coordinator: "coordinator";
|
|
491
490
|
direct: "direct";
|
|
491
|
+
coordinator: "coordinator";
|
|
492
492
|
}>>;
|
|
493
493
|
}, z.core.$strip>;
|
|
494
494
|
scalerCapacity: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -765,8 +765,8 @@ export declare const peerFromPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
765
765
|
capabilities: z.ZodOptional<z.ZodObject<{
|
|
766
766
|
s3LogAccess: z.ZodBoolean;
|
|
767
767
|
logRoutingOverride: z.ZodOptional<z.ZodEnum<{
|
|
768
|
-
coordinator: "coordinator";
|
|
769
768
|
direct: "direct";
|
|
769
|
+
coordinator: "coordinator";
|
|
770
770
|
}>>;
|
|
771
771
|
}, z.core.$strip>>;
|
|
772
772
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -788,8 +788,8 @@ export declare const peerFromPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
788
788
|
capabilities: z.ZodObject<{
|
|
789
789
|
s3LogAccess: z.ZodBoolean;
|
|
790
790
|
logRoutingOverride: z.ZodOptional<z.ZodEnum<{
|
|
791
|
-
coordinator: "coordinator";
|
|
792
791
|
direct: "direct";
|
|
792
|
+
coordinator: "coordinator";
|
|
793
793
|
}>>;
|
|
794
794
|
}, z.core.$strip>;
|
|
795
795
|
scalerCapacity: z.ZodOptional<z.ZodArray<z.ZodObject<{
|