@kici-dev/engine 0.1.23 → 0.1.25
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/approval/types.js +1 -1
- package/dist/audit/access-log-policy.d.ts +4 -1
- package/dist/audit/access-log-policy.js +11 -2
- package/dist/audit/activity.d.ts +4 -2
- package/dist/audit/activity.js +15 -1
- package/dist/audit/retention-policy.js +5 -3
- package/dist/bundler/index.js +1 -1
- package/dist/bundler/rolldown-config.js +1 -1
- package/dist/check-mode.js +1 -1
- package/dist/dev-ops/operations.d.ts +56 -0
- package/dist/dev-ops/operations.js +135 -0
- package/dist/env/environment-allowlist.js +1 -1
- package/dist/environment/host-match.js +1 -1
- package/dist/environment/index.d.ts +2 -0
- package/dist/environment/index.js +4 -2
- package/dist/environment/multi-env.d.ts +30 -0
- package/dist/environment/multi-env.js +38 -0
- package/dist/environment/scope-resolver.js +1 -1
- package/dist/environment/scope-template.js +1 -1
- package/dist/environment/types.d.ts +8 -2
- package/dist/environment/types.js +19 -2
- package/dist/fanout/materialize.js +3 -3
- package/dist/index.d.ts +10 -1
- package/dist/index.js +25 -13
- package/dist/inputs/build.js +1 -1
- package/dist/inputs/coerce.js +1 -1
- package/dist/inputs/descriptor.js +1 -1
- package/dist/inputs/extract.js +1 -1
- package/dist/inputs/index.d.ts +1 -0
- package/dist/inputs/index.js +3 -2
- package/dist/inputs/schedule.d.ts +19 -0
- package/dist/inputs/schedule.js +33 -0
- package/dist/inventory.js +1 -1
- package/dist/labels/compile.js +1 -1
- package/dist/labels-match.js +1 -1
- package/dist/labels.js +2 -2
- package/dist/matrix/expand.js +1 -1
- package/dist/matrix/format.js +1 -1
- package/dist/mcp/fence.d.ts +22 -0
- package/dist/mcp/fence.js +65 -0
- package/dist/mcp/held-run-resolve.d.ts +52 -0
- package/dist/mcp/held-run-resolve.js +53 -0
- package/dist/mcp/tool-schemas.d.ts +74 -0
- package/dist/mcp/tool-schemas.js +78 -0
- package/dist/metrics/catalog-policy.js +1 -1
- package/dist/metrics/metric-catalog.generated.d.ts +105 -0
- package/dist/metrics/metric-catalog.generated.js +127 -1
- package/dist/protocol/analytics-events.js +1 -1
- package/dist/protocol/cluster-name.js +1 -1
- package/dist/protocol/dashboard-global-workflows.js +1 -1
- package/dist/protocol/dashboard-write-operations.d.ts +5 -1
- package/dist/protocol/dashboard-write-operations.js +13 -2
- package/dist/protocol/event-log-payload.js +1 -1
- package/dist/protocol/messages/access-log.d.ts +43 -20
- package/dist/protocol/messages/access-log.js +16 -2
- package/dist/protocol/messages/actor.d.ts +21 -0
- package/dist/protocol/messages/actor.js +42 -8
- package/dist/protocol/messages/agent-dev-ops.d.ts +118 -0
- package/dist/protocol/messages/agent-dev-ops.js +89 -0
- package/dist/protocol/messages/agent-run-result.d.ts +425 -0
- package/dist/protocol/messages/agent-run-result.js +165 -0
- package/dist/protocol/messages/auth.d.ts +3 -0
- package/dist/protocol/messages/auth.js +11 -2
- package/dist/protocol/messages/browser.js +1 -1
- package/dist/protocol/messages/capabilities.d.ts +3 -0
- package/dist/protocol/messages/capabilities.js +16 -3
- package/dist/protocol/messages/common.js +1 -1
- package/dist/protocol/messages/dashboard-global-workflows.d.ts +14 -0
- package/dist/protocol/messages/dashboard-global-workflows.js +1 -1
- package/dist/protocol/messages/dashboard.d.ts +1998 -48
- package/dist/protocol/messages/dashboard.js +269 -15
- package/dist/protocol/messages/deployment-identity.js +1 -1
- package/dist/protocol/messages/event-log.js +1 -1
- package/dist/protocol/messages/execution-status.d.ts +67 -4
- package/dist/protocol/messages/execution-status.js +133 -57
- package/dist/protocol/messages/join.js +1 -1
- package/dist/protocol/messages/log-pull.js +1 -1
- package/dist/protocol/messages/oidc-mint.d.ts +51 -0
- package/dist/protocol/messages/oidc-mint.js +55 -0
- package/dist/protocol/messages/oidc-token-relay.d.ts +31 -4
- package/dist/protocol/messages/oidc-token-relay.js +22 -7
- package/dist/protocol/messages/orchestrator-agent.d.ts +66 -5
- package/dist/protocol/messages/orchestrator-agent.js +35 -3
- 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/peer.js +1 -1
- package/dist/protocol/messages/platform-orchestrator.d.ts +685 -17
- package/dist/protocol/messages/platform-orchestrator.js +8 -5
- package/dist/protocol/messages/run-events.d.ts +8 -1
- package/dist/protocol/messages/run-events.js +1 -1
- package/dist/protocol/messages/scaler-event.js +1 -1
- package/dist/protocol/messages/source-registration.js +1 -1
- package/dist/protocol/source-origin.d.ts +20 -0
- package/dist/protocol/source-origin.js +21 -0
- package/dist/protocol/version.js +1 -1
- package/dist/provenance/attestation-origin.d.ts +18 -0
- package/dist/provenance/attestation-origin.js +22 -0
- package/dist/provenance/bundle.js +1 -1
- package/dist/provenance/dsse.js +1 -1
- package/dist/provenance/schema.d.ts +48 -0
- package/dist/provenance/schema.js +21 -7
- package/dist/provenance/statement-hash.d.ts +9 -0
- package/dist/provenance/statement-hash.js +17 -0
- package/dist/provenance/verify.d.ts +7 -0
- package/dist/provenance/verify.js +49 -10
- package/dist/provider/changed-files-fetcher.js +1 -1
- package/dist/provider/check-run-conclusion.d.ts +1 -1
- package/dist/provider/check-run-conclusion.js +1 -1
- package/dist/provider/check-status-poster.js +1 -1
- package/dist/provider/clone-token-provider.js +1 -1
- package/dist/provider/contributor-resolver.js +1 -1
- package/dist/provider/index.js +1 -1
- package/dist/provider/lock-file-fetcher.js +1 -1
- package/dist/provider/lock-file-parse-error.js +1 -1
- package/dist/provider/repo-url-builder.js +1 -1
- package/dist/provider/types.js +1 -1
- package/dist/provider/webhook-normalizer.js +1 -1
- package/dist/registration/registerable-trigger-type.d.ts +1 -1
- package/dist/registration/registerable-trigger-type.js +1 -1
- package/dist/{chunk-BTugEXQM.js → rolldown-runtime-ClRpJifh.js} +0 -1
- package/dist/scaler/resource-types.js +1 -1
- package/dist/scaler/scaler-backend-type.js +1 -1
- package/dist/secrets/index.d.ts +1 -1
- package/dist/secrets/index.js +1 -1
- package/dist/secrets/types.d.ts +0 -24
- package/dist/secrets/types.js +1 -1
- package/dist/state-machine/index.js +1 -1
- package/dist/state-machine/machine.js +1 -1
- package/dist/state-machine/types.js +1 -1
- package/dist/trigger/decision-trace.js +1 -1
- package/dist/trigger/jsonpath-matcher.js +1 -1
- package/dist/trigger/matcher.js +1 -1
- package/dist/trigger/trigger-event-type.js +1 -1
- package/dist/trigger/types.d.ts +35 -7
- package/dist/trigger/types.js +8 -3
- package/dist/webhook/signature.js +1 -1
- package/dist/webhook/webhook-url-format.d.ts +7 -0
- package/dist/webhook/webhook-url-format.js +11 -2
- package/dist/ws/close-codes.d.ts +8 -2
- package/dist/ws/close-codes.js +10 -4
- package/dist/ws/rate-limiter.js +1 -1
- package/dist/ws/ws-like.js +1 -1
- package/package.json +9 -1
- package/sbom.spdx.json +5 -5
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import { ExecutionJobStatus, ExecutionStepStatus } from "./execution-status.js";
|
|
1
|
+
import "../../rolldown-runtime-ClRpJifh.js";
|
|
2
|
+
import { ExecutionJobStatus, ExecutionStepStatus, StepConcurrencyKind } from "./execution-status.js";
|
|
3
|
+
import { dsseEnvelopeSchema } from "../../provenance/dsse.js";
|
|
3
4
|
import { approverClauseSchema } from "../../approval/types.js";
|
|
4
5
|
import { z } from "zod";
|
|
5
6
|
//#region src/protocol/messages/orchestrator-agent.ts
|
|
@@ -351,6 +352,10 @@ const agentStepStatusSchema = z.object({
|
|
|
351
352
|
]).optional(),
|
|
352
353
|
/** Secret key names accessed by this step via ctx.secrets.get()/expose(). Never contains values. */
|
|
353
354
|
secretsAccessed: z.array(z.string()).optional(),
|
|
355
|
+
/** Step concurrency role; absent means an ordinary sequential step. */
|
|
356
|
+
concurrencyKind: StepConcurrencyKind.optional(),
|
|
357
|
+
/** Parallel-group correlation id shared by a group's children (e.g. `g0`). */
|
|
358
|
+
groupId: z.string().optional(),
|
|
354
359
|
/**
|
|
355
360
|
* Total raw bytes streamed by this step's LogStreamer at terminal time.
|
|
356
361
|
* Counts agent-side raw bytes (the same count fed to the transient
|
|
@@ -528,6 +533,32 @@ const provenanceUploadCompleteSchema = z.object({
|
|
|
528
533
|
/** Bundle media type. */
|
|
529
534
|
mediaType: z.string()
|
|
530
535
|
});
|
|
536
|
+
/**
|
|
537
|
+
* Agent -> Orchestrator: capture a frozen, DSSE-signed provenance statement for
|
|
538
|
+
* later minting (the transient mint-failure path). No upload happens; the
|
|
539
|
+
* orchestrator persists the envelope in its deferred-attestation outbox and the
|
|
540
|
+
* job completes green. The identity token is minted later and bound to the
|
|
541
|
+
* frozen statement by `statementHash`.
|
|
542
|
+
*/
|
|
543
|
+
const provenanceUploadDeferSchema = z.object({
|
|
544
|
+
type: z.literal("provenance.upload.defer"),
|
|
545
|
+
messageId: z.string(),
|
|
546
|
+
jobId: z.string(),
|
|
547
|
+
/** Caller-supplied artifact name. */
|
|
548
|
+
subjectName: z.string(),
|
|
549
|
+
/** Primary subject digest (lowercase hex). */
|
|
550
|
+
subjectDigest: z.string(),
|
|
551
|
+
/** Requested token audience for the later mint. */
|
|
552
|
+
audience: z.string(),
|
|
553
|
+
/** Bundle media type. */
|
|
554
|
+
mediaType: z.string(),
|
|
555
|
+
/** SHA-256 of the frozen DSSE statement payload — the later-mint binding. */
|
|
556
|
+
statementHash: z.string(),
|
|
557
|
+
/** The frozen, DSSE-signed statement envelope. */
|
|
558
|
+
dsseEnvelope: dsseEnvelopeSchema,
|
|
559
|
+
/** Ephemeral public key JWK the envelope was signed with. */
|
|
560
|
+
publicKey: z.record(z.string(), z.unknown())
|
|
561
|
+
});
|
|
531
562
|
/** Agent -> Orchestrator: emit a custom event from a running workflow step. */
|
|
532
563
|
const eventEmitSchema = z.object({
|
|
533
564
|
type: z.literal("event.emit"),
|
|
@@ -739,6 +770,7 @@ const agentToOrchestratorMessageSchema = z.discriminatedUnion("type", [
|
|
|
739
770
|
cacheUserSaveCompleteSchema,
|
|
740
771
|
provenanceUploadRequestSchema,
|
|
741
772
|
provenanceUploadCompleteSchema,
|
|
773
|
+
provenanceUploadDeferSchema,
|
|
742
774
|
eventEmitSchema,
|
|
743
775
|
agentApiRequestSchema,
|
|
744
776
|
agentMetricsSchema,
|
|
@@ -748,6 +780,6 @@ const agentToOrchestratorMessageSchema = z.discriminatedUnion("type", [
|
|
|
748
780
|
stepApprovalRequestSchema
|
|
749
781
|
]);
|
|
750
782
|
//#endregion
|
|
751
|
-
export { CacheRefScope, JobRejectReason, StepApprovalOutcome, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentLogChunkSchema, agentMetricsSchema, agentRegisterSchema, agentStatusSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, configAckSchema, eventEmitResponseSchema, eventEmitSchema, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetLogsRequestSchema, gitAuthSchema, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobDispatchSchema, jobRejectSchema, jobStatusSchema, orchestratorToAgentMessageSchema, provenanceUploadCompleteSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, registerAckSchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema };
|
|
783
|
+
export { CacheRefScope, JobRejectReason, StepApprovalOutcome, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentLogChunkSchema, agentMetricsSchema, agentRegisterSchema, agentStatusSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, configAckSchema, eventEmitResponseSchema, eventEmitSchema, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetLogsRequestSchema, gitAuthSchema, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobDispatchSchema, jobRejectSchema, jobStatusSchema, orchestratorToAgentMessageSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, registerAckSchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema };
|
|
752
784
|
|
|
753
785
|
//# sourceMappingURL=orchestrator-agent.js.map
|
|
@@ -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 "../../rolldown-runtime-ClRpJifh.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<{
|