@kici-dev/engine 0.1.21 → 0.1.22
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 +7 -0
- package/dist/audit/retention-policy.js +8 -0
- package/dist/fanout/materialize.d.ts +21 -4
- package/dist/fanout/materialize.js +24 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +8 -7
- package/dist/inventory.d.ts +2 -2
- package/dist/labels-match.d.ts +52 -0
- package/dist/labels-match.js +22 -1
- package/dist/protocol/dashboard-write-operations.d.ts +8 -1
- package/dist/protocol/dashboard-write-operations.js +25 -4
- package/dist/protocol/messages/access-log.d.ts +25 -0
- package/dist/protocol/messages/access-log.js +5 -0
- package/dist/protocol/messages/auth.d.ts +2 -0
- package/dist/protocol/messages/capabilities.d.ts +2 -0
- package/dist/protocol/messages/dashboard.d.ts +622 -21
- package/dist/protocol/messages/dashboard.js +130 -6
- package/dist/protocol/messages/deployment-identity.d.ts +38 -0
- package/dist/protocol/messages/deployment-identity.js +28 -0
- package/dist/protocol/messages/orchestrator-agent.d.ts +64 -2
- package/dist/protocol/messages/orchestrator-agent.js +26 -7
- package/dist/protocol/messages/peer.js +1 -1
- package/dist/protocol/messages/platform-orchestrator.d.ts +165 -0
- package/dist/protocol/messages/source-registration.d.ts +15 -0
- package/dist/protocol/messages/source-registration.js +17 -1
- package/dist/trigger/types.d.ts +74 -22
- package/dist/trigger/types.js +41 -12
- package/package.json +1 -1
- package/sbom.spdx.json +5 -5
package/dist/approval/types.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Shared approval requirement + clause types.
|
|
3
3
|
*
|
|
4
4
|
* One normalized `ApprovalRequirement` is produced by both approval triggers —
|
|
5
|
-
* a mandatory environment policy and an explicit SDK `
|
|
5
|
+
* a mandatory environment policy and an explicit SDK `approval` config — and is
|
|
6
6
|
* consumed identically by the orchestrator gate, the resolver, the held-run
|
|
7
7
|
* store, and the agent step round-trip. Pure Zod (no node built-ins), so this
|
|
8
8
|
* module is safe in the browser-facing engine barrel.
|
package/dist/approval/types.js
CHANGED
|
@@ -5,7 +5,7 @@ import { z } from "zod";
|
|
|
5
5
|
* Shared approval requirement + clause types.
|
|
6
6
|
*
|
|
7
7
|
* One normalized `ApprovalRequirement` is produced by both approval triggers —
|
|
8
|
-
* a mandatory environment policy and an explicit SDK `
|
|
8
|
+
* a mandatory environment policy and an explicit SDK `approval` config — and is
|
|
9
9
|
* consumed identically by the orchestrator gate, the resolver, the held-run
|
|
10
10
|
* store, and the agent step round-trip. Pure Zod (no node built-ins), so this
|
|
11
11
|
* module is safe in the browser-facing engine barrel.
|
|
@@ -111,6 +111,10 @@ const POLICY_BY_ACTION = {
|
|
|
111
111
|
kind: "rate_limit",
|
|
112
112
|
perMinutePerActor: 1
|
|
113
113
|
},
|
|
114
|
+
"fleet.read": {
|
|
115
|
+
kind: "rate_limit",
|
|
116
|
+
perMinutePerActor: 1
|
|
117
|
+
},
|
|
114
118
|
"run.payload.read": { kind: "always" },
|
|
115
119
|
"run.cancel": { kind: "always" },
|
|
116
120
|
"run.rerun": { kind: "always" },
|
|
@@ -137,6 +141,7 @@ const POLICY_BY_ACTION = {
|
|
|
137
141
|
"secret_scope.rename": { kind: "always" },
|
|
138
142
|
"secret_scope.delete": { kind: "always" },
|
|
139
143
|
"held_run.approve": { kind: "always" },
|
|
144
|
+
"held_run.auto_approve": { kind: "always" },
|
|
140
145
|
"held_run.reject": { kind: "always" },
|
|
141
146
|
"held_run.request": { kind: "always" },
|
|
142
147
|
"held_run.expire": { kind: "always" },
|
|
@@ -145,6 +150,8 @@ const POLICY_BY_ACTION = {
|
|
|
145
150
|
"backend.sync": { kind: "always" },
|
|
146
151
|
"backend.sync.one": { kind: "always" },
|
|
147
152
|
"backend.test": { kind: "always" },
|
|
153
|
+
"fleet.host.declare": { kind: "always" },
|
|
154
|
+
"fleet.host.remove": { kind: "always" },
|
|
148
155
|
"global_workflows.update": { kind: "always" },
|
|
149
156
|
"org_settings.dashboard_write_policy.update": { kind: "always" },
|
|
150
157
|
"cluster_name.update": { kind: "always" },
|
|
@@ -32,6 +32,7 @@ const ACCESS_LOG_WARM_DAYS = {
|
|
|
32
32
|
"diagnostics.read": 30,
|
|
33
33
|
"scaler.capacity.read": 30,
|
|
34
34
|
"scaler.agents.read": 30,
|
|
35
|
+
"fleet.read": 30,
|
|
35
36
|
"event_log.detail.read": 180,
|
|
36
37
|
"event_log.payload.read": 180,
|
|
37
38
|
"run.payload.read": 180,
|
|
@@ -53,6 +54,7 @@ const ACCESS_LOG_WARM_DAYS = {
|
|
|
53
54
|
"source_override.delete": 180,
|
|
54
55
|
"env_binding.set": 180,
|
|
55
56
|
"held_run.approve": 180,
|
|
57
|
+
"held_run.auto_approve": 180,
|
|
56
58
|
"held_run.reject": 180,
|
|
57
59
|
"held_run.request": 180,
|
|
58
60
|
"held_run.expire": 180,
|
|
@@ -61,6 +63,8 @@ const ACCESS_LOG_WARM_DAYS = {
|
|
|
61
63
|
"backend.sync": 180,
|
|
62
64
|
"backend.sync.one": 180,
|
|
63
65
|
"backend.test": 180,
|
|
66
|
+
"fleet.host.declare": 180,
|
|
67
|
+
"fleet.host.remove": 180,
|
|
64
68
|
"global_workflows.update": 180,
|
|
65
69
|
"org_settings.dashboard_write_policy.update": 180,
|
|
66
70
|
"cluster_name.update": 180,
|
|
@@ -270,6 +274,7 @@ const ACCESS_LOG_COLD_DAYS = {
|
|
|
270
274
|
"diagnostics.read": 30,
|
|
271
275
|
"scaler.capacity.read": 30,
|
|
272
276
|
"scaler.agents.read": 30,
|
|
277
|
+
"fleet.read": 30,
|
|
273
278
|
"event_log.detail.read": 730,
|
|
274
279
|
"event_log.payload.read": 730,
|
|
275
280
|
"run.payload.read": 730,
|
|
@@ -291,6 +296,7 @@ const ACCESS_LOG_COLD_DAYS = {
|
|
|
291
296
|
"source_override.delete": 730,
|
|
292
297
|
"env_binding.set": 730,
|
|
293
298
|
"held_run.approve": 730,
|
|
299
|
+
"held_run.auto_approve": 730,
|
|
294
300
|
"held_run.reject": 730,
|
|
295
301
|
"held_run.request": 730,
|
|
296
302
|
"held_run.expire": 730,
|
|
@@ -299,6 +305,8 @@ const ACCESS_LOG_COLD_DAYS = {
|
|
|
299
305
|
"backend.sync": 730,
|
|
300
306
|
"backend.sync.one": 730,
|
|
301
307
|
"backend.test": 730,
|
|
308
|
+
"fleet.host.declare": 730,
|
|
309
|
+
"fleet.host.remove": 730,
|
|
302
310
|
"global_workflows.update": 730,
|
|
303
311
|
"org_settings.dashboard_write_policy.update": 730,
|
|
304
312
|
"cluster_name.update": 730,
|
|
@@ -12,14 +12,31 @@ export declare enum VariantKind {
|
|
|
12
12
|
host = "host"
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* Why a fan-out produced no dispatchable children. Drives whether the zeroed
|
|
16
|
+
* job's synthetic terminal row is recorded as a failure or a skip:
|
|
17
|
+
*
|
|
18
|
+
* - `error` — a genuine failure: invalid matrix (zero combinations / over the
|
|
19
|
+
* cap), an unavailable roster, or `onUnreachable: 'fail'` with an absent host.
|
|
20
|
+
* The synthetic job is `failed`.
|
|
21
|
+
* - `narrowed-empty` — the fan-out intentionally resolved to zero usable hosts
|
|
22
|
+
* (e.g. `onUnreachable: 'skip'` skipped every unreachable host). The synthetic
|
|
23
|
+
* job is `skipped`.
|
|
24
|
+
*/
|
|
25
|
+
export declare enum FanoutCause {
|
|
26
|
+
error = "error",
|
|
27
|
+
narrowedEmpty = "narrowed-empty"
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Thrown when a job's fan-out cannot be materialized into dispatchable children:
|
|
31
|
+
* an invalid matrix, an unavailable / zeroed host roster. The `cause` discriminates
|
|
32
|
+
* a genuine failure from an intentional narrow-to-empty so the caller can record
|
|
33
|
+
* the zeroed job's synthetic row as `failed` or `skipped` accordingly.
|
|
18
34
|
*/
|
|
19
35
|
export declare class FanoutError extends Error {
|
|
20
36
|
readonly jobName: string;
|
|
37
|
+
readonly cause: FanoutCause;
|
|
21
38
|
readonly name = "FanoutError";
|
|
22
|
-
constructor(jobName: string, message: string);
|
|
39
|
+
constructor(jobName: string, message: string, cause?: FanoutCause);
|
|
23
40
|
}
|
|
24
41
|
/**
|
|
25
42
|
* A roster host resolved as a target of a `runsOnAll` fan-out. Carries the
|
|
@@ -15,16 +15,35 @@ let VariantKind = /* @__PURE__ */ function(VariantKind) {
|
|
|
15
15
|
return VariantKind;
|
|
16
16
|
}({});
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* Why a fan-out produced no dispatchable children. Drives whether the zeroed
|
|
19
|
+
* job's synthetic terminal row is recorded as a failure or a skip:
|
|
20
|
+
*
|
|
21
|
+
* - `error` — a genuine failure: invalid matrix (zero combinations / over the
|
|
22
|
+
* cap), an unavailable roster, or `onUnreachable: 'fail'` with an absent host.
|
|
23
|
+
* The synthetic job is `failed`.
|
|
24
|
+
* - `narrowed-empty` — the fan-out intentionally resolved to zero usable hosts
|
|
25
|
+
* (e.g. `onUnreachable: 'skip'` skipped every unreachable host). The synthetic
|
|
26
|
+
* job is `skipped`.
|
|
27
|
+
*/
|
|
28
|
+
let FanoutCause = /* @__PURE__ */ function(FanoutCause) {
|
|
29
|
+
FanoutCause["error"] = "error";
|
|
30
|
+
FanoutCause["narrowedEmpty"] = "narrowed-empty";
|
|
31
|
+
return FanoutCause;
|
|
32
|
+
}({});
|
|
33
|
+
/**
|
|
34
|
+
* Thrown when a job's fan-out cannot be materialized into dispatchable children:
|
|
35
|
+
* an invalid matrix, an unavailable / zeroed host roster. The `cause` discriminates
|
|
36
|
+
* a genuine failure from an intentional narrow-to-empty so the caller can record
|
|
37
|
+
* the zeroed job's synthetic row as `failed` or `skipped` accordingly.
|
|
21
38
|
*/
|
|
22
39
|
var FanoutError = class FanoutError extends Error {
|
|
23
40
|
jobName;
|
|
41
|
+
cause;
|
|
24
42
|
name = "FanoutError";
|
|
25
|
-
constructor(jobName, message) {
|
|
43
|
+
constructor(jobName, message, cause = "error") {
|
|
26
44
|
super(message);
|
|
27
45
|
this.jobName = jobName;
|
|
46
|
+
this.cause = cause;
|
|
28
47
|
Object.setPrototypeOf(this, FanoutError.prototype);
|
|
29
48
|
}
|
|
30
49
|
};
|
|
@@ -171,6 +190,6 @@ function materializeFanout(staticJobs) {
|
|
|
171
190
|
};
|
|
172
191
|
}
|
|
173
192
|
//#endregion
|
|
174
|
-
export { FanoutError, MAX_FANOUT_JOBS, VariantKind, hostEnvelopeFields, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixEnvelopeFields };
|
|
193
|
+
export { FanoutCause, FanoutError, MAX_FANOUT_JOBS, VariantKind, hostEnvelopeFields, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixEnvelopeFields };
|
|
175
194
|
|
|
176
195
|
//# sourceMappingURL=materialize.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export * from './protocol/messages/auth.js';
|
|
|
15
15
|
export * from './protocol/messages/capabilities.js';
|
|
16
16
|
export { webhookRelaySchema, webhookRelayStartSchema, webhookRelayChunkSchema, webhookAckSchema, WebhookRelayResult, WEBHOOK_RELAY_MAX_BODY_BYTES, WEBHOOK_RELAY_CHUNK_SIZE, executionEventSchema, logChunkSchema, peerDiscoverSchema, peerUpdateSchema, cacheStatsSchema, orchMetricsSchema, platformToOrchestratorMessageSchema, orchestratorToPlatformMessageSchema, type WebhookRelay, type WebhookRelayStart, type WebhookRelayChunk, type WebhookAck, type LogChunk, type PeerDiscover, type PeerUpdate, type CacheStats, type OrchMetrics, trustPolicyUpdateSchema, type TrustPolicyUpdate, staleCheckrunCleanupSchema, type StaleCheckrunCleanup, type PlatformToOrchestratorMessage, type OrchestratorToPlatformMessage, } from './protocol/messages/platform-orchestrator.js';
|
|
17
17
|
export * from './protocol/messages/execution-status.js';
|
|
18
|
+
export * from './protocol/messages/deployment-identity.js';
|
|
18
19
|
export * from './protocol/messages/scaler-event.js';
|
|
19
20
|
export * from './protocol/messages/event-log.js';
|
|
20
21
|
export * from './protocol/messages/access-log.js';
|
|
@@ -48,7 +49,7 @@ export * from './environment/index.js';
|
|
|
48
49
|
export { deriveOsArchLabels, hostLabel, parseHostLabel, HOST_LABEL_PREFIX, agentTypeLabel, scalerLabel, mergeAutoLabels, normalizeRunsOn, KNOWN_ROLES, resolveRoleLabels, validateNoReservedLabels, scalerAgentLabels, isSelfReportedLabel, SELF_REPORTED_LABEL_PREFIXES, } from './labels.js';
|
|
49
50
|
export type { NormalizedRunsOn } from './labels.js';
|
|
50
51
|
export type { AgentRole } from './labels.js';
|
|
51
|
-
export { LabelMatcher, matcherMatches, matcherSatisfiedBy, partitionMatchers, compileRegexMatcher, } from './labels-match.js';
|
|
52
|
+
export { LabelMatcher, matcherMatches, matcherSatisfiedBy, partitionMatchers, compileRegexMatcher, HostTargetValue, HostTargetSelector, hostSatisfiesTarget, } from './labels-match.js';
|
|
52
53
|
export * from './inventory.js';
|
|
53
54
|
export * from './scaler/scaler-backend-type.js';
|
|
54
55
|
export * from './scaler/resource-types.js';
|
package/dist/index.js
CHANGED
|
@@ -6,14 +6,17 @@ import { ActorType, actorPrincipalSchema, apiKeyActorSchema, flattenActor, parse
|
|
|
6
6
|
import { ORCH_CAPABILITIES, OrchRole, hasOrchCapability, orchCapabilitiesSchema } from "./protocol/messages/capabilities.js";
|
|
7
7
|
import { authFailureSchema, authRequestSchema, authSuccessSchema } from "./protocol/messages/auth.js";
|
|
8
8
|
import { CacheOutcome, CacheRunEventType, CacheStepType, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, InitFailureCategory, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TimeoutReason, executionStatusSchema, initFailureSchema, jobStatusForwardSchema, stateReplaySchema, stepStatusForwardSchema } from "./protocol/messages/execution-status.js";
|
|
9
|
+
import { DeploymentContainerRuntimeSchema, DeploymentIdentitySchema, DeploymentModeSchema } from "./protocol/messages/deployment-identity.js";
|
|
9
10
|
import { SourceProvider, SourceSubtype, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema } from "./protocol/messages/source-registration.js";
|
|
10
11
|
import { AccessLogAction, AccessLogOutcome, AccessLogSource, AccessLogTargetType, accessLogFilterSchema, accessLogItemSchema, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema } from "./protocol/messages/access-log.js";
|
|
11
12
|
import { browserJobContextSchema, browserRunEventSchema, dashboardOrchLogsRequestSchema, dashboardOrchLogsResponseSchema, jobContextMessageSchema, runEventMessageSchema } from "./protocol/messages/run-events.js";
|
|
12
13
|
import { EventLogSource, EventLogStatus, PayloadOmittedReason } from "./protocol/messages/event-log.js";
|
|
13
14
|
import { ScalerBackendType } from "./scaler/scaler-backend-type.js";
|
|
14
15
|
import { ApprovalDecision, HoldScope, TriggerSource, approvalRequirementSchema, approverClauseSchema } from "./approval/types.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
16
|
+
import { NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, OnUnreachableMode, SCHEMA_VERSION, isLockDynamicJobFn, isLockInlineValue, isLockStaticJob, resolveWhenToRunOn } from "./trigger/types.js";
|
|
17
|
+
import { HostTargetSelector, HostTargetValue, LabelMatcher, compileRegexMatcher, hostSatisfiesTarget, matcherMatches, matcherSatisfiedBy, partitionMatchers } from "./labels-match.js";
|
|
18
|
+
import { HostInventoryEntry, HostPropertyValue, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, coerceHostPropertyValue, parseHostPropertyAssignments } from "./inventory.js";
|
|
19
|
+
import { EnvDeleteErrorCode, EventLogPayloadStreamError, HeldRunQueueType, HeldRunStatus, TestRelayType, attestationListItemSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardJobDetailSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, envBindingsListRequestSchema, envBindingsSetRequestSchema, envCreateRequestSchema, envDeleteRequestSchema, envGetRequestSchema, envHistoryRequestSchema, envListRequestSchema, envSecretDeleteRequestSchema, envSecretScopeCreateRequestSchema, envSecretScopeDeleteRequestSchema, envSecretScopeRenameRequestSchema, envSecretSetRequestSchema, envSecretsListRequestSchema, envSourceOverrideDeleteRequestSchema, envSourceOverrideSetRequestSchema, envSourceOverridesListRequestSchema, envTestAccessSetRequestSchema, envUpdateRequestSchema, envVarDeleteRequestSchema, envVarSetRequestSchema, envVarsListRequestSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, identityLinkItemSchema, identityLinkListResponseSchema, manualScheduleRequestSchema, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, orgMemberSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, runCancelRequestSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, trustPolicyResponseSchema } from "./protocol/messages/dashboard.js";
|
|
17
20
|
import { WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WebhookRelayResult, cacheStatsSchema, executionEventSchema, logChunkSchema, orchMetricsSchema, orchestratorToPlatformMessageSchema, peerDiscoverSchema, peerUpdateSchema, platformToOrchestratorMessageSchema, staleCheckrunCleanupSchema, trustPolicyUpdateSchema, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema } from "./protocol/messages/platform-orchestrator.js";
|
|
18
21
|
import { ScalerEventType } from "./protocol/messages/scaler-event.js";
|
|
19
22
|
import { AccessLogPolicyKind, POLICY_BY_ACTION, fnv1a32, shouldRecordAccess, shouldRecordSecretResolve } from "./audit/access-log-policy.js";
|
|
@@ -23,9 +26,8 @@ import { logPullOrchToPlatformSchema, logPullPlatformToOrchSchema } from "./prot
|
|
|
23
26
|
import { EVENT_LOG_PAYLOAD_CHUNK_BYTES } from "./protocol/event-log-payload.js";
|
|
24
27
|
import { browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, platformToBrowserMessageSchema } from "./protocol/messages/browser.js";
|
|
25
28
|
import { joinRequestSchema, joinResponseSchema } from "./protocol/messages/join.js";
|
|
26
|
-
import { LabelMatcher, compileRegexMatcher, matcherMatches, matcherSatisfiedBy, partitionMatchers } from "./labels-match.js";
|
|
27
29
|
import { fleetSelectionSchema, jobProgressAckSchema, jobProgressSchema, jobRerouteAckSchema, jobRerouteSchema, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerToPeerMessageSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema } from "./protocol/messages/peer.js";
|
|
28
|
-
import { 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, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema } from "./protocol/messages/orchestrator-agent.js";
|
|
30
|
+
import { 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 } from "./protocol/messages/orchestrator-agent.js";
|
|
29
31
|
import { TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES } from "./trigger/trigger-event-type.js";
|
|
30
32
|
import { createTraceEntry, createWorkflowDecision } from "./trigger/decision-trace.js";
|
|
31
33
|
import { matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchWorkflowTriggers } from "./trigger/matcher.js";
|
|
@@ -42,12 +44,11 @@ import "./secrets/index.js";
|
|
|
42
44
|
import { matchScopePattern, resolveSecretsForEnvironment, stripScopePrefix } from "./environment/scope-resolver.js";
|
|
43
45
|
import "./environment/index.js";
|
|
44
46
|
import { HOST_LABEL_PREFIX, KNOWN_ROLES, SELF_REPORTED_LABEL_PREFIXES, agentTypeLabel, deriveOsArchLabels, hostLabel, isSelfReportedLabel, mergeAutoLabels, normalizeRunsOn, parseHostLabel, resolveRoleLabels, scalerAgentLabels, scalerLabel, validateNoReservedLabels } from "./labels.js";
|
|
45
|
-
import { HostInventoryEntry, HostPropertyValue, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, coerceHostPropertyValue, parseHostPropertyAssignments } from "./inventory.js";
|
|
46
47
|
import { parseMemoryString, resourceRequestNestedSchema, resourceSpecSchema, validateResourceRequest } from "./scaler/resource-types.js";
|
|
47
48
|
import { RegisterableTriggerType } from "./registration/registerable-trigger-type.js";
|
|
48
49
|
import { createWorkflowBundleConfig } from "./bundler/rolldown-config.js";
|
|
49
50
|
import "./bundler/index.js";
|
|
50
51
|
import { applyIncludeExclude, expandMatrix, expandMultiDimension, expandSingleDimension } from "./matrix/expand.js";
|
|
51
52
|
import { formatExpandedJobName, formatMatrixSuffix } from "./matrix/format.js";
|
|
52
|
-
import { FanoutError, MAX_FANOUT_JOBS, VariantKind, hostEnvelopeFields, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixEnvelopeFields } from "./fanout/materialize.js";
|
|
53
|
-
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, ApprovalDecision, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, EVENT_LOG_PAYLOAD_CHUNK_BYTES, EnvDeleteErrorCode, EventLogPayloadStreamError, EventLogSource, EventLogStatus, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, FanoutError, HOST_LABEL_PREFIX, HeldRunQueueType, HeldRunStatus, HoldScope, HostInventoryEntry, HostPropertyValue, IfFailedPolicy, InitFailureCategory, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JobRejectReason, KICI_AGENT_ENV_PREFIX, KNOWN_ROLES, LabelMatcher, LockFileParseError, MAX_FANOUT_JOBS, MIN_PROTOCOL_VERSION, NeedsEntrySchema, NeedsGroupEntrySchema, ORCH_CAPABILITIES, OnUnreachableMode, OrchRole, POLICY_BY_ACTION, PROTOCOL_VERSION, PayloadOmittedReason, RegisterableTriggerType, SANDBOX_DEFAULT_VARS, SCHEMA_VERSION, SELF_REPORTED_LABEL_PREFIXES, ScalerBackendType, ScalerEventType, SourceProvider, SourceSubtype, StepApprovalOutcome, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TestRelayType, TimeoutReason, TriggerSource, VariantKind, WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WS_CLOSE_AGENT_AUTH_FAILED, WS_CLOSE_AUTH_TIMEOUT, WS_CLOSE_CLUSTER_NAME_CONFLICT, WS_CLOSE_DISPATCH_ACK_TIMEOUT, WS_CLOSE_GOING_AWAY, WS_CLOSE_HEARTBEAT_TIMEOUT, WS_CLOSE_INTERNAL_ERROR, WS_CLOSE_INVALID_MESSAGE, WS_CLOSE_PLAN_LIMIT, WS_CLOSE_PROTOCOL_ERROR, WS_CLOSE_RUN_NOT_FOUND, WS_CLOSE_UNAUTHORIZED, WS_MAX_PAYLOAD_BYTES, WebhookRelayResult, WsRateLimiter, accessLogFilterSchema, accessLogItemSchema, accessLogWarmSqlCase, ackSchema, activityCursorSchema, activityFilterSchema, activityRowSchema, actorPrincipalSchema, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentLogChunkSchema, agentMetricsSchema, agentRegisterSchema, agentStatusSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, agentTypeLabel, apiKeyActorSchema, applyIncludeExclude, approvalRequirementSchema, approverClauseSchema, attestationListItemSchema, auditLogColdDays, auditLogWarmDays, auditLogWarmSqlCase, authFailureSchema, authRequestSchema, authSuccessSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadChunkSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobContextSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunEventSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, coerceHostPropertyValue, compileRegexMatcher, configAckSchema, createTraceEntry, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardJobDetailSchema, dashboardOrchLogsRequestSchema, dashboardOrchLogsResponseSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, decodeActivityCursor, deriveOsArchLabels, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, encodeActivityCursor, envBindingsListRequestSchema, envBindingsSetRequestSchema, envCreateRequestSchema, envDeleteRequestSchema, envGetRequestSchema, envHistoryRequestSchema, envListRequestSchema, envSecretDeleteRequestSchema, envSecretScopeCreateRequestSchema, envSecretScopeDeleteRequestSchema, envSecretScopeRenameRequestSchema, envSecretSetRequestSchema, envSecretsListRequestSchema, envSourceOverrideDeleteRequestSchema, envSourceOverrideSetRequestSchema, envSourceOverridesListRequestSchema, envTestAccessSetRequestSchema, envUpdateRequestSchema, envVarDeleteRequestSchema, envVarSetRequestSchema, envVarsListRequestSchema, errorSchema, eventEmitResponseSchema, eventEmitSchema, eventLogListItemSchema, executionEventSchema, executionStatusSchema, expandMatrix, expandMultiDimension, expandSingleDimension, flattenActor, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetLogsRequestSchema, fleetSelectionSchema, fnv1a32, formatExpandedJobName, formatMatrixSuffix, getAccessLogColdDays, getAccessLogWarmDays, getAuditLogColdDays, getAuditLogWarmDays, getSecretAuditLogColdDays, getSecretAuditLogWarmDays, gitAuthSchema, githubWebhookPath, hasOrchCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, isLockDynamicJobFn, isLockInlineValue, isLockStaticJob, isSelfReportedLabel, isTerminal, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobContextMessageSchema, jobDispatchSchema, jobProgressAckSchema, jobProgressSchema, jobRejectSchema, jobRerouteAckSchema, jobRerouteSchema, jobStatusForwardSchema, jobStatusSchema, joinRequestSchema, joinResponseSchema, logChunkSchema, logPullOrchToPlatformSchema, logPullPlatformToOrchSchema, manualScheduleRequestSchema, matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchScopePattern, matchWorkflowTriggers, matcherMatches, matcherSatisfiedBy, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixEnvelopeFields, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, mergeAutoLabels, minAccessLogWarmDays, minAuditLogWarmDays, minSecretAuditLogWarmDays, nackSchema, normalizeRunsOn, orchCapabilitiesSchema, orchMetricsSchema, orchestratorToAgentMessageSchema, orchestratorToPlatformMessageSchema, orgMemberSchema, parseActor, parseHostLabel, parseHostPropertyAssignments, parseMemoryString, partitionMatchers, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerDiscoverSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerToPeerMessageSchema, peerUpdateSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, provenanceUploadCompleteSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, resolveRoleLabels, resolveRunIdSugar, resolveSecretsForEnvironment, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, scalerAgentLabels, scalerLabel, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplaySchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, transition, trustPolicyResponseSchema, trustPolicyUpdateSchema, upstreamSnapshotSchema, userActorSchema, validateNoReservedLabels, validateResourceRequest, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema };
|
|
53
|
+
import { FanoutCause, FanoutError, MAX_FANOUT_JOBS, VariantKind, hostEnvelopeFields, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixEnvelopeFields } from "./fanout/materialize.js";
|
|
54
|
+
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, ApprovalDecision, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, DeploymentContainerRuntimeSchema, DeploymentIdentitySchema, DeploymentModeSchema, EVENT_LOG_PAYLOAD_CHUNK_BYTES, EnvDeleteErrorCode, EventLogPayloadStreamError, EventLogSource, EventLogStatus, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, FanoutCause, FanoutError, HOST_LABEL_PREFIX, HeldRunQueueType, HeldRunStatus, HoldScope, HostInventoryEntry, HostPropertyValue, HostTargetSelector, HostTargetValue, InitFailureCategory, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JobRejectReason, KICI_AGENT_ENV_PREFIX, KNOWN_ROLES, LabelMatcher, LockFileParseError, MAX_FANOUT_JOBS, MIN_PROTOCOL_VERSION, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, ORCH_CAPABILITIES, OnUnreachableMode, OrchRole, POLICY_BY_ACTION, PROTOCOL_VERSION, PayloadOmittedReason, RegisterableTriggerType, SANDBOX_DEFAULT_VARS, SCHEMA_VERSION, SELF_REPORTED_LABEL_PREFIXES, ScalerBackendType, ScalerEventType, SourceProvider, SourceSubtype, StepApprovalOutcome, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TestRelayType, TimeoutReason, TriggerSource, VariantKind, WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WS_CLOSE_AGENT_AUTH_FAILED, WS_CLOSE_AUTH_TIMEOUT, WS_CLOSE_CLUSTER_NAME_CONFLICT, WS_CLOSE_DISPATCH_ACK_TIMEOUT, WS_CLOSE_GOING_AWAY, WS_CLOSE_HEARTBEAT_TIMEOUT, WS_CLOSE_INTERNAL_ERROR, WS_CLOSE_INVALID_MESSAGE, WS_CLOSE_PLAN_LIMIT, WS_CLOSE_PROTOCOL_ERROR, WS_CLOSE_RUN_NOT_FOUND, WS_CLOSE_UNAUTHORIZED, WS_MAX_PAYLOAD_BYTES, WebhookRelayResult, WsRateLimiter, accessLogFilterSchema, accessLogItemSchema, accessLogWarmSqlCase, ackSchema, activityCursorSchema, activityFilterSchema, activityRowSchema, actorPrincipalSchema, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentLogChunkSchema, agentMetricsSchema, agentRegisterSchema, agentStatusSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, agentTypeLabel, apiKeyActorSchema, applyIncludeExclude, approvalRequirementSchema, approverClauseSchema, attestationListItemSchema, auditLogColdDays, auditLogWarmDays, auditLogWarmSqlCase, authFailureSchema, authRequestSchema, authSuccessSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadChunkSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobContextSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunEventSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, coerceHostPropertyValue, compileRegexMatcher, configAckSchema, createTraceEntry, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardJobDetailSchema, dashboardOrchLogsRequestSchema, dashboardOrchLogsResponseSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, decodeActivityCursor, deriveOsArchLabels, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, encodeActivityCursor, envBindingsListRequestSchema, envBindingsSetRequestSchema, envCreateRequestSchema, envDeleteRequestSchema, envGetRequestSchema, envHistoryRequestSchema, envListRequestSchema, envSecretDeleteRequestSchema, envSecretScopeCreateRequestSchema, envSecretScopeDeleteRequestSchema, envSecretScopeRenameRequestSchema, envSecretSetRequestSchema, envSecretsListRequestSchema, envSourceOverrideDeleteRequestSchema, envSourceOverrideSetRequestSchema, envSourceOverridesListRequestSchema, envTestAccessSetRequestSchema, envUpdateRequestSchema, envVarDeleteRequestSchema, envVarSetRequestSchema, envVarsListRequestSchema, errorSchema, eventEmitResponseSchema, eventEmitSchema, eventLogListItemSchema, executionEventSchema, executionStatusSchema, expandMatrix, expandMultiDimension, expandSingleDimension, flattenActor, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetLogsRequestSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, fleetSelectionSchema, fnv1a32, formatExpandedJobName, formatMatrixSuffix, getAccessLogColdDays, getAccessLogWarmDays, getAuditLogColdDays, getAuditLogWarmDays, getSecretAuditLogColdDays, getSecretAuditLogWarmDays, gitAuthSchema, githubWebhookPath, hasOrchCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, hostSatisfiesTarget, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, isLockDynamicJobFn, isLockInlineValue, isLockStaticJob, isSelfReportedLabel, isTerminal, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobContextMessageSchema, jobDispatchSchema, jobProgressAckSchema, jobProgressSchema, jobRejectSchema, jobRerouteAckSchema, jobRerouteSchema, jobStatusForwardSchema, jobStatusSchema, joinRequestSchema, joinResponseSchema, logChunkSchema, logPullOrchToPlatformSchema, logPullPlatformToOrchSchema, manualScheduleRequestSchema, matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchScopePattern, matchWorkflowTriggers, matcherMatches, matcherSatisfiedBy, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixEnvelopeFields, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, mergeAutoLabels, minAccessLogWarmDays, minAuditLogWarmDays, minSecretAuditLogWarmDays, nackSchema, normalizeRunsOn, orchCapabilitiesSchema, orchMetricsSchema, orchestratorToAgentMessageSchema, orchestratorToPlatformMessageSchema, orgMemberSchema, parseActor, parseHostLabel, parseHostPropertyAssignments, parseMemoryString, partitionMatchers, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerDiscoverSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerToPeerMessageSchema, peerUpdateSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, provenanceUploadCompleteSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, resolveRoleLabels, resolveRunIdSugar, resolveSecretsForEnvironment, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, scalerAgentLabels, scalerLabel, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplaySchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, transition, trustPolicyResponseSchema, trustPolicyUpdateSchema, upstreamSnapshotSchema, userActorSchema, validateNoReservedLabels, validateResourceRequest, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema };
|
package/dist/inventory.d.ts
CHANGED
|
@@ -30,8 +30,8 @@ export type InventoryLifecycleClass = z.infer<typeof InventoryLifecycleClass>;
|
|
|
30
30
|
* awaiting reap).
|
|
31
31
|
*/
|
|
32
32
|
export declare const InventoryHostStatus: z.ZodEnum<{
|
|
33
|
-
unreachable: "unreachable";
|
|
34
33
|
ready: "ready";
|
|
34
|
+
unreachable: "unreachable";
|
|
35
35
|
stale: "stale";
|
|
36
36
|
}>;
|
|
37
37
|
export type InventoryHostStatus = z.infer<typeof InventoryHostStatus>;
|
|
@@ -48,8 +48,8 @@ export declare const HostInventoryEntry: z.ZodObject<{
|
|
|
48
48
|
ephemeral: "ephemeral";
|
|
49
49
|
}>;
|
|
50
50
|
status: z.ZodEnum<{
|
|
51
|
-
unreachable: "unreachable";
|
|
52
51
|
ready: "ready";
|
|
52
|
+
unreachable: "unreachable";
|
|
53
53
|
stale: "stale";
|
|
54
54
|
}>;
|
|
55
55
|
lastSeen: z.ZodString;
|
package/dist/labels-match.d.ts
CHANGED
|
@@ -24,6 +24,58 @@ export declare function compileRegexMatcher(m: {
|
|
|
24
24
|
export declare function matcherMatches(m: LabelMatcher, label: string): boolean;
|
|
25
25
|
/** Whether some label in the set satisfies the matcher. */
|
|
26
26
|
export declare function matcherSatisfiedBy(m: LabelMatcher, labels: ReadonlySet<string>): boolean;
|
|
27
|
+
export declare const HostTargetValue: z.ZodObject<{
|
|
28
|
+
include: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
29
|
+
kind: z.ZodLiteral<"exact">;
|
|
30
|
+
value: z.ZodString;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
32
|
+
kind: z.ZodLiteral<"regex">;
|
|
33
|
+
source: z.ZodString;
|
|
34
|
+
flags: z.ZodString;
|
|
35
|
+
}, z.core.$strip>], "kind">>;
|
|
36
|
+
exclude: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
|
+
kind: z.ZodLiteral<"exact">;
|
|
38
|
+
value: z.ZodString;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
kind: z.ZodLiteral<"regex">;
|
|
41
|
+
source: z.ZodString;
|
|
42
|
+
flags: z.ZodString;
|
|
43
|
+
}, z.core.$strip>], "kind">>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
export type HostTargetValue = z.infer<typeof HostTargetValue>;
|
|
46
|
+
/**
|
|
47
|
+
* A runtime host narrowing (`kici run --target`): each repeated value is an AND
|
|
48
|
+
* set; values AND-combine. Narrow-only — applied as a post-filter over the
|
|
49
|
+
* runsOnAll-matched roster. `allowEmpty` selects the zero-host outcome: skip
|
|
50
|
+
* (true) vs fail (false).
|
|
51
|
+
*/
|
|
52
|
+
export declare const HostTargetSelector: z.ZodObject<{
|
|
53
|
+
values: z.ZodArray<z.ZodObject<{
|
|
54
|
+
include: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
55
|
+
kind: z.ZodLiteral<"exact">;
|
|
56
|
+
value: z.ZodString;
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
kind: z.ZodLiteral<"regex">;
|
|
59
|
+
source: z.ZodString;
|
|
60
|
+
flags: z.ZodString;
|
|
61
|
+
}, z.core.$strip>], "kind">>;
|
|
62
|
+
exclude: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
63
|
+
kind: z.ZodLiteral<"exact">;
|
|
64
|
+
value: z.ZodString;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
+
kind: z.ZodLiteral<"regex">;
|
|
67
|
+
source: z.ZodString;
|
|
68
|
+
flags: z.ZodString;
|
|
69
|
+
}, z.core.$strip>], "kind">>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
allowEmpty: z.ZodBoolean;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export type HostTargetSelector = z.infer<typeof HostTargetSelector>;
|
|
74
|
+
/**
|
|
75
|
+
* True iff the host's labels satisfy EVERY target value: all of a value's
|
|
76
|
+
* include matchers match and none of its exclude matchers match.
|
|
77
|
+
*/
|
|
78
|
+
export declare function hostSatisfiesTarget(labels: ReadonlySet<string>, target: HostTargetSelector): boolean;
|
|
27
79
|
/** Split a matcher list into exact label strings and the remaining regex matchers. */
|
|
28
80
|
export declare function partitionMatchers(ms: readonly LabelMatcher[]): {
|
|
29
81
|
exact: string[];
|
package/dist/labels-match.js
CHANGED
|
@@ -38,6 +38,27 @@ function matcherSatisfiedBy(m, labels) {
|
|
|
38
38
|
for (const label of labels) if (re.test(label)) return true;
|
|
39
39
|
return false;
|
|
40
40
|
}
|
|
41
|
+
const HostTargetValue = z.object({
|
|
42
|
+
include: z.array(LabelMatcher),
|
|
43
|
+
exclude: z.array(LabelMatcher)
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* A runtime host narrowing (`kici run --target`): each repeated value is an AND
|
|
47
|
+
* set; values AND-combine. Narrow-only — applied as a post-filter over the
|
|
48
|
+
* runsOnAll-matched roster. `allowEmpty` selects the zero-host outcome: skip
|
|
49
|
+
* (true) vs fail (false).
|
|
50
|
+
*/
|
|
51
|
+
const HostTargetSelector = z.object({
|
|
52
|
+
values: z.array(HostTargetValue).min(1),
|
|
53
|
+
allowEmpty: z.boolean()
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* True iff the host's labels satisfy EVERY target value: all of a value's
|
|
57
|
+
* include matchers match and none of its exclude matchers match.
|
|
58
|
+
*/
|
|
59
|
+
function hostSatisfiesTarget(labels, target) {
|
|
60
|
+
return target.values.every((v) => v.include.every((m) => matcherSatisfiedBy(m, labels)) && !v.exclude.some((m) => matcherSatisfiedBy(m, labels)));
|
|
61
|
+
}
|
|
41
62
|
/** Split a matcher list into exact label strings and the remaining regex matchers. */
|
|
42
63
|
function partitionMatchers(ms) {
|
|
43
64
|
const exact = [];
|
|
@@ -51,6 +72,6 @@ function partitionMatchers(ms) {
|
|
|
51
72
|
};
|
|
52
73
|
}
|
|
53
74
|
//#endregion
|
|
54
|
-
export { LabelMatcher, compileRegexMatcher, matcherMatches, matcherSatisfiedBy, partitionMatchers };
|
|
75
|
+
export { HostTargetSelector, HostTargetValue, LabelMatcher, compileRegexMatcher, hostSatisfiesTarget, matcherMatches, matcherSatisfiedBy, partitionMatchers };
|
|
55
76
|
|
|
56
77
|
//# sourceMappingURL=labels-match.js.map
|
|
@@ -44,6 +44,8 @@ export declare const DashboardWriteOperation: z.ZodEnum<{
|
|
|
44
44
|
"backends.sync": "backends.sync";
|
|
45
45
|
"backends.sync_one": "backends.sync_one";
|
|
46
46
|
"backends.test": "backends.test";
|
|
47
|
+
"fleet.host.declare": "fleet.host.declare";
|
|
48
|
+
"fleet.host.remove": "fleet.host.remove";
|
|
47
49
|
}>;
|
|
48
50
|
export type DashboardWriteOperation = z.infer<typeof DashboardWriteOperation>;
|
|
49
51
|
/** Stable list of every operation in enum-declaration order. */
|
|
@@ -57,6 +59,7 @@ export declare const DashboardWriteCategory: z.ZodEnum<{
|
|
|
57
59
|
DLQ: "DLQ";
|
|
58
60
|
Registrations: "Registrations";
|
|
59
61
|
Topology: "Topology";
|
|
62
|
+
Fleet: "Fleet";
|
|
60
63
|
}>;
|
|
61
64
|
export type DashboardWriteCategory = z.infer<typeof DashboardWriteCategory>;
|
|
62
65
|
export declare const DashboardWriteSensitivity: z.ZodEnum<{
|
|
@@ -130,6 +133,8 @@ export declare const dashboardWritePolicyMap: z.ZodRecord<z.ZodEnum<{
|
|
|
130
133
|
"backends.sync": "backends.sync";
|
|
131
134
|
"backends.sync_one": "backends.sync_one";
|
|
132
135
|
"backends.test": "backends.test";
|
|
136
|
+
"fleet.host.declare": "fleet.host.declare";
|
|
137
|
+
"fleet.host.remove": "fleet.host.remove";
|
|
133
138
|
}> & z.core.$partial, z.ZodBoolean>;
|
|
134
139
|
export declare const dashboardWritePolicyMapSchema: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
135
140
|
"secrets.set": "secrets.set";
|
|
@@ -156,6 +161,8 @@ export declare const dashboardWritePolicyMapSchema: z.ZodDefault<z.ZodRecord<z.Z
|
|
|
156
161
|
"backends.sync": "backends.sync";
|
|
157
162
|
"backends.sync_one": "backends.sync_one";
|
|
158
163
|
"backends.test": "backends.test";
|
|
164
|
+
"fleet.host.declare": "fleet.host.declare";
|
|
165
|
+
"fleet.host.remove": "fleet.host.remove";
|
|
159
166
|
}> & z.core.$partial, z.ZodBoolean>>;
|
|
160
167
|
/**
|
|
161
168
|
* Resolve the effective state of an operation given a (possibly sparse)
|
|
@@ -164,7 +171,7 @@ export declare const dashboardWritePolicyMapSchema: z.ZodDefault<z.ZodRecord<z.Z
|
|
|
164
171
|
export declare function isDashboardWriteOperationEnabled(policy: DashboardWritePolicyMap | null | undefined, op: DashboardWriteOperation): boolean;
|
|
165
172
|
/**
|
|
166
173
|
* Expand a (possibly sparse) policy map into the full effective state
|
|
167
|
-
* for all
|
|
174
|
+
* for all 26 operations. Operations the policy doesn't mention come
|
|
168
175
|
* back as `true` (permissive). Used by the orch HTTP admin response,
|
|
169
176
|
* the WS `orch.capabilities` broadcast, and the dashboard's policy
|
|
170
177
|
* page so consumers see the full picture, not the sparse storage shape.
|
|
@@ -45,7 +45,9 @@ const DashboardWriteOperation = z.enum([
|
|
|
45
45
|
"global_workflows.update",
|
|
46
46
|
"backends.sync",
|
|
47
47
|
"backends.sync_one",
|
|
48
|
-
"backends.test"
|
|
48
|
+
"backends.test",
|
|
49
|
+
"fleet.host.declare",
|
|
50
|
+
"fleet.host.remove"
|
|
49
51
|
]);
|
|
50
52
|
/** Stable list of every operation in enum-declaration order. */
|
|
51
53
|
const DASHBOARD_WRITE_OPERATION_VALUES = Object.freeze([
|
|
@@ -72,7 +74,9 @@ const DASHBOARD_WRITE_OPERATION_VALUES = Object.freeze([
|
|
|
72
74
|
"global_workflows.update",
|
|
73
75
|
"backends.sync",
|
|
74
76
|
"backends.sync_one",
|
|
75
|
-
"backends.test"
|
|
77
|
+
"backends.test",
|
|
78
|
+
"fleet.host.declare",
|
|
79
|
+
"fleet.host.remove"
|
|
76
80
|
]);
|
|
77
81
|
const DashboardWriteCategory = z.enum([
|
|
78
82
|
"Secrets",
|
|
@@ -82,7 +86,8 @@ const DashboardWriteCategory = z.enum([
|
|
|
82
86
|
"Held runs",
|
|
83
87
|
"DLQ",
|
|
84
88
|
"Registrations",
|
|
85
|
-
"Topology"
|
|
89
|
+
"Topology",
|
|
90
|
+
"Fleet"
|
|
86
91
|
]);
|
|
87
92
|
const DashboardWriteSensitivity = z.enum([
|
|
88
93
|
"plaintext",
|
|
@@ -281,6 +286,22 @@ const DASHBOARD_WRITE_OPERATIONS = Object.freeze([
|
|
|
281
286
|
label: "Test scaler backend",
|
|
282
287
|
sensitivity: "dispatch",
|
|
283
288
|
cliEquivalent: "kici-admin backend test"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
name: "fleet.host.declare",
|
|
292
|
+
wireMessageType: "dashboard.fleet.host.declare",
|
|
293
|
+
category: "Fleet",
|
|
294
|
+
label: "Declare a static host",
|
|
295
|
+
sensitivity: "dispatch",
|
|
296
|
+
cliEquivalent: "kici-admin host declare"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: "fleet.host.remove",
|
|
300
|
+
wireMessageType: "dashboard.fleet.host.remove",
|
|
301
|
+
category: "Fleet",
|
|
302
|
+
label: "Remove a host from the roster",
|
|
303
|
+
sensitivity: "dispatch",
|
|
304
|
+
cliEquivalent: "kici-admin host remove"
|
|
284
305
|
}
|
|
285
306
|
]);
|
|
286
307
|
/** O(1) lookup of a descriptor by operation name. */
|
|
@@ -318,7 +339,7 @@ function isDashboardWriteOperationEnabled(policy, op) {
|
|
|
318
339
|
}
|
|
319
340
|
/**
|
|
320
341
|
* Expand a (possibly sparse) policy map into the full effective state
|
|
321
|
-
* for all
|
|
342
|
+
* for all 26 operations. Operations the policy doesn't mention come
|
|
322
343
|
* back as `true` (permissive). Used by the orch HTTP admin response,
|
|
323
344
|
* the WS `orch.capabilities` broadcast, and the dashboard's policy
|
|
324
345
|
* page so consumers see the full picture, not the sparse storage shape.
|