@kici-dev/engine 0.1.24 → 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.js +3 -2
- package/dist/audit/activity.d.ts +2 -0
- package/dist/audit/activity.js +15 -1
- package/dist/audit/retention-policy.js +3 -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.js +1 -1
- package/dist/environment/multi-env.js +1 -1
- package/dist/environment/scope-resolver.js +1 -1
- package/dist/environment/scope-template.js +1 -1
- package/dist/environment/types.js +1 -1
- package/dist/fanout/materialize.js +3 -3
- package/dist/index.d.ts +7 -1
- package/dist/index.js +16 -10
- 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.js +1 -1
- package/dist/inputs/schedule.js +1 -1
- 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 +38 -5
- package/dist/mcp/tool-schemas.js +38 -9
- package/dist/metrics/catalog-policy.js +1 -1
- package/dist/metrics/metric-catalog.generated.d.ts +85 -0
- package/dist/metrics/metric-catalog.generated.js +103 -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 +14 -5
- package/dist/protocol/messages/access-log.js +13 -1
- package/dist/protocol/messages/actor.d.ts +13 -0
- package/dist/protocol/messages/actor.js +25 -5
- 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 +77 -2
- package/dist/protocol/messages/agent-run-result.js +44 -2
- package/dist/protocol/messages/auth.d.ts +1 -0
- package/dist/protocol/messages/auth.js +1 -1
- package/dist/protocol/messages/browser.js +1 -1
- package/dist/protocol/messages/capabilities.d.ts +1 -0
- package/dist/protocol/messages/capabilities.js +1 -1
- package/dist/protocol/messages/common.js +1 -1
- package/dist/protocol/messages/dashboard-global-workflows.d.ts +6 -0
- package/dist/protocol/messages/dashboard-global-workflows.js +1 -1
- package/dist/protocol/messages/dashboard.d.ts +634 -18
- package/dist/protocol/messages/dashboard.js +111 -12
- 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 +15 -3
- package/dist/protocol/messages/execution-status.js +19 -4
- 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 +45 -0
- package/dist/protocol/messages/orchestrator-agent.js +30 -2
- package/dist/protocol/messages/pat-kind.js +1 -1
- package/dist/protocol/messages/peer.js +1 -1
- package/dist/protocol/messages/platform-orchestrator.d.ts +292 -10
- package/dist/protocol/messages/platform-orchestrator.js +5 -2
- package/dist/protocol/messages/run-events.d.ts +3 -0
- 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.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.js +1 -1
- 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
|
@@ -426,6 +426,32 @@ export declare const provenanceUploadCompleteSchema: z.ZodObject<{
|
|
|
426
426
|
subjectDigest: z.ZodString;
|
|
427
427
|
mediaType: z.ZodString;
|
|
428
428
|
}, z.core.$strip>;
|
|
429
|
+
/**
|
|
430
|
+
* Agent -> Orchestrator: capture a frozen, DSSE-signed provenance statement for
|
|
431
|
+
* later minting (the transient mint-failure path). No upload happens; the
|
|
432
|
+
* orchestrator persists the envelope in its deferred-attestation outbox and the
|
|
433
|
+
* job completes green. The identity token is minted later and bound to the
|
|
434
|
+
* frozen statement by `statementHash`.
|
|
435
|
+
*/
|
|
436
|
+
export declare const provenanceUploadDeferSchema: z.ZodObject<{
|
|
437
|
+
type: z.ZodLiteral<"provenance.upload.defer">;
|
|
438
|
+
messageId: z.ZodString;
|
|
439
|
+
jobId: z.ZodString;
|
|
440
|
+
subjectName: z.ZodString;
|
|
441
|
+
subjectDigest: z.ZodString;
|
|
442
|
+
audience: z.ZodString;
|
|
443
|
+
mediaType: z.ZodString;
|
|
444
|
+
statementHash: z.ZodString;
|
|
445
|
+
dsseEnvelope: z.ZodObject<{
|
|
446
|
+
payloadType: z.ZodString;
|
|
447
|
+
payload: z.ZodString;
|
|
448
|
+
signatures: z.ZodArray<z.ZodObject<{
|
|
449
|
+
keyid: z.ZodString;
|
|
450
|
+
sig: z.ZodString;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
}, z.core.$strip>;
|
|
453
|
+
publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
454
|
+
}, z.core.$strip>;
|
|
429
455
|
/** Agent -> Orchestrator: emit a custom event from a running workflow step. */
|
|
430
456
|
export declare const eventEmitSchema: z.ZodObject<{
|
|
431
457
|
type: z.ZodLiteral<"event.emit">;
|
|
@@ -933,6 +959,24 @@ export declare const agentToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
933
959
|
subjectName: z.ZodString;
|
|
934
960
|
subjectDigest: z.ZodString;
|
|
935
961
|
mediaType: z.ZodString;
|
|
962
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
963
|
+
type: z.ZodLiteral<"provenance.upload.defer">;
|
|
964
|
+
messageId: z.ZodString;
|
|
965
|
+
jobId: z.ZodString;
|
|
966
|
+
subjectName: z.ZodString;
|
|
967
|
+
subjectDigest: z.ZodString;
|
|
968
|
+
audience: z.ZodString;
|
|
969
|
+
mediaType: z.ZodString;
|
|
970
|
+
statementHash: z.ZodString;
|
|
971
|
+
dsseEnvelope: z.ZodObject<{
|
|
972
|
+
payloadType: z.ZodString;
|
|
973
|
+
payload: z.ZodString;
|
|
974
|
+
signatures: z.ZodArray<z.ZodObject<{
|
|
975
|
+
keyid: z.ZodString;
|
|
976
|
+
sig: z.ZodString;
|
|
977
|
+
}, z.core.$strip>>;
|
|
978
|
+
}, z.core.$strip>;
|
|
979
|
+
publicKey: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
936
980
|
}, z.core.$strip>, z.ZodObject<{
|
|
937
981
|
type: z.ZodLiteral<"event.emit">;
|
|
938
982
|
jobId: z.ZodString;
|
|
@@ -1018,6 +1062,7 @@ export type CacheUserSaveComplete = z.infer<typeof cacheUserSaveCompleteSchema>;
|
|
|
1018
1062
|
export type ProvenanceUploadRequest = z.infer<typeof provenanceUploadRequestSchema>;
|
|
1019
1063
|
export type ProvenanceUploadResponse = z.infer<typeof provenanceUploadResponseSchema>;
|
|
1020
1064
|
export type ProvenanceUploadComplete = z.infer<typeof provenanceUploadCompleteSchema>;
|
|
1065
|
+
export type ProvenanceUploadDefer = z.infer<typeof provenanceUploadDeferSchema>;
|
|
1021
1066
|
export type FleetLogsRequest = z.infer<typeof fleetLogsRequestSchema>;
|
|
1022
1067
|
export type FleetBundleChunk = z.infer<typeof fleetBundleChunkSchema>;
|
|
1023
1068
|
export type FleetBundleError = z.infer<typeof fleetBundleErrorSchema>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "../../
|
|
1
|
+
import "../../rolldown-runtime-ClRpJifh.js";
|
|
2
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
|
|
@@ -532,6 +533,32 @@ const provenanceUploadCompleteSchema = z.object({
|
|
|
532
533
|
/** Bundle media type. */
|
|
533
534
|
mediaType: z.string()
|
|
534
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
|
+
});
|
|
535
562
|
/** Agent -> Orchestrator: emit a custom event from a running workflow step. */
|
|
536
563
|
const eventEmitSchema = z.object({
|
|
537
564
|
type: z.literal("event.emit"),
|
|
@@ -743,6 +770,7 @@ const agentToOrchestratorMessageSchema = z.discriminatedUnion("type", [
|
|
|
743
770
|
cacheUserSaveCompleteSchema,
|
|
744
771
|
provenanceUploadRequestSchema,
|
|
745
772
|
provenanceUploadCompleteSchema,
|
|
773
|
+
provenanceUploadDeferSchema,
|
|
746
774
|
eventEmitSchema,
|
|
747
775
|
agentApiRequestSchema,
|
|
748
776
|
agentMetricsSchema,
|
|
@@ -752,6 +780,6 @@ const agentToOrchestratorMessageSchema = z.discriminatedUnion("type", [
|
|
|
752
780
|
stepApprovalRequestSchema
|
|
753
781
|
]);
|
|
754
782
|
//#endregion
|
|
755
|
-
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 };
|
|
756
784
|
|
|
757
785
|
//# sourceMappingURL=orchestrator-agent.js.map
|