@kici-dev/engine 0.7.0 → 0.9.0
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/context/hold-reason.d.ts +6 -11
- package/dist/context/hold-reason.js +1 -8
- package/dist/context/index.d.ts +3 -3
- package/dist/context/index.js +3 -3
- package/dist/context/types.d.ts +12 -10
- package/dist/context/types.js +12 -14
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -6
- package/dist/metrics/catalog-policy.js +2 -2
- package/dist/protocol/dashboard-write-operations.d.ts +8 -18
- package/dist/protocol/dashboard-write-operations.js +5 -26
- package/dist/protocol/messages/agent-run-result.d.ts +0 -1
- package/dist/protocol/messages/auth.d.ts +3 -3
- package/dist/protocol/messages/capabilities.d.ts +3 -5
- package/dist/protocol/messages/capabilities.js +4 -10
- package/dist/protocol/messages/dashboard-global-workflows.d.ts +10 -24
- package/dist/protocol/messages/dashboard-global-workflows.js +9 -15
- package/dist/protocol/messages/dashboard.d.ts +4 -23
- package/dist/protocol/messages/dashboard.js +4 -22
- package/dist/protocol/messages/oidc-token-relay.d.ts +2 -13
- package/dist/protocol/messages/oidc-token-relay.js +3 -10
- package/dist/protocol/messages/orchestrator-agent.d.ts +24 -9
- package/dist/protocol/messages/orchestrator-agent.js +24 -28
- package/dist/protocol/messages/peer.d.ts +26 -31
- package/dist/protocol/messages/peer.js +18 -38
- package/dist/protocol/messages/platform-orchestrator.d.ts +17 -79
- package/dist/protocol/messages/platform-orchestrator.js +6 -24
- package/dist/protocol/version.d.ts +10 -18
- package/dist/protocol/version.js +11 -19
- package/dist/provenance/id-token-claim-names.d.ts +13 -0
- package/dist/provenance/id-token-claim-names.js +44 -0
- package/dist/provenance/id-token-event-claims.d.ts +1 -8
- package/dist/provenance/id-token-event-claims.js +2 -7
- package/dist/provider/index.d.ts +1 -2
- package/dist/provider/index.test-d.d.ts +2 -0
- package/dist/provider/index.test-d.js +31 -0
- package/dist/provider/lock-file-fetcher.d.ts +8 -0
- package/dist/provider/webhook-normalizer.d.ts +0 -42
- package/dist/trigger/types.d.ts +8 -38
- package/dist/trigger/types.js +2 -12
- package/dist/trigger/types.test-d.d.ts +2 -0
- package/dist/trigger/types.test-d.js +63 -0
- package/package.json +7 -11
- package/sbom.spdx.json +20 -20
- package/dist/protocol/messages/oidc-mint.d.ts +0 -58
- package/dist/protocol/messages/oidc-mint.js +0 -62
- package/dist/provider/contributor-resolver.d.ts +0 -30
- package/dist/provider/contributor-resolver.js +0 -2
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Protection-gate hold-reason
|
|
2
|
+
* Protection-gate hold-reason template — the free-text sentence the trust gate
|
|
3
3
|
* persists into `held_runs.reason` when a contributor is below a context's
|
|
4
4
|
* `minimumTrust`.
|
|
5
5
|
*
|
|
6
|
-
* Single source of truth for the
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
6
|
+
* Single source of truth for the sentence: the orchestrator's trust gate emits
|
|
7
|
+
* it, the ci-security DB fixture seeds it, and the unit and E2E assertions
|
|
8
|
+
* compare against it. One copy means a copy edit moves every site at once
|
|
9
|
+
* (`.claude/rules/code-style.md` § "Enums over hardcoded strings").
|
|
10
10
|
*
|
|
11
|
-
* `held_runs.reason` is a free-text column, so
|
|
11
|
+
* `held_runs.reason` is a free-text column, so this is a function rather than
|
|
12
12
|
* an enum: the sentence carries the context name, which is per-hold data.
|
|
13
13
|
*
|
|
14
14
|
* Carries no runtime import on purpose — this module reaches the browser
|
|
@@ -17,11 +17,6 @@
|
|
|
17
17
|
* below is type-only and is erased at compile time.
|
|
18
18
|
*/
|
|
19
19
|
import type { TrustTier } from './types.js';
|
|
20
|
-
/**
|
|
21
|
-
* Reason a run is held because the context requires `minimumTrust: 'known'`
|
|
22
|
-
* and the contributor's tier is `unknown`.
|
|
23
|
-
*/
|
|
24
|
-
export declare function unknownContributorHoldReason(contextName: string): string;
|
|
25
20
|
/**
|
|
26
21
|
* Reason a run is held because the context requires `minimumTrust: 'trusted'`
|
|
27
22
|
* and the contributor's tier is below that. `trustTier` is the contributor's
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import "../rolldown-runtime-ClRpJifh.js";
|
|
2
2
|
//#region src/context/hold-reason.ts
|
|
3
3
|
/**
|
|
4
|
-
* Reason a run is held because the context requires `minimumTrust: 'known'`
|
|
5
|
-
* and the contributor's tier is `unknown`.
|
|
6
|
-
*/
|
|
7
|
-
function unknownContributorHoldReason(contextName) {
|
|
8
|
-
return `Context '${contextName}' requires known contributors (contributor is unknown)`;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
4
|
* Reason a run is held because the context requires `minimumTrust: 'trusted'`
|
|
12
5
|
* and the contributor's tier is below that. `trustTier` is the contributor's
|
|
13
6
|
* actual tier, which the gate has already narrowed to a tier below `trusted` —
|
|
@@ -18,6 +11,6 @@ function trustedContributorHoldReason(contextName, trustTier) {
|
|
|
18
11
|
return `Context '${contextName}' requires trusted contributors (contributor is ${trustTier})`;
|
|
19
12
|
}
|
|
20
13
|
//#endregion
|
|
21
|
-
export { trustedContributorHoldReason
|
|
14
|
+
export { trustedContributorHoldReason };
|
|
22
15
|
|
|
23
16
|
//# sourceMappingURL=hold-reason.js.map
|
package/dist/context/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export type { Context, ContextBinding, ContextVariable, ContextSourceOverride, ScopedSecret, HeldRun, ProtectionGateResult, TrustTier, } from './types.js';
|
|
2
|
-
export { TrustTierSchema } from './types.js';
|
|
1
|
+
export type { Context, ContextBinding, ContextVariable, ContextSourceOverride, ScopedSecret, HeldRun, ProtectionGateResult, TrustTier, MinimumTrust, } from './types.js';
|
|
2
|
+
export { TrustTierSchema, MinimumTrustSchema } from './types.js';
|
|
3
3
|
export { HoldType, normalizePersistedHoldType, persistedHoldTypeSpellings } from './hold-type.js';
|
|
4
|
-
export { trustedContributorHoldReason
|
|
4
|
+
export { trustedContributorHoldReason } from './hold-reason.js';
|
|
5
5
|
export { HeldRunStatus } from './held-run-status.js';
|
|
6
6
|
export { WORKFLOW_MODIFICATION_JOB_ID, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, isSecurityHoldJobId, INSTALL_JOB_ID_PREFIX, installGateJobId, } from './held-run-job-id.js';
|
|
7
7
|
export { ConcurrencyStrategy, DEFAULT_CONCURRENCY_STRATEGY } from './concurrency-strategy.js';
|
package/dist/context/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../rolldown-runtime-ClRpJifh.js";
|
|
2
2
|
import { HeldRunStatus } from "./held-run-status.js";
|
|
3
3
|
import { HoldType, normalizePersistedHoldType, persistedHoldTypeSpellings } from "./hold-type.js";
|
|
4
|
-
import { TrustTierSchema } from "./types.js";
|
|
4
|
+
import { MinimumTrustSchema, TrustTierSchema } from "./types.js";
|
|
5
5
|
import { ConcurrencyStrategy, DEFAULT_CONCURRENCY_STRATEGY } from "./concurrency-strategy.js";
|
|
6
|
-
import { trustedContributorHoldReason
|
|
6
|
+
import { trustedContributorHoldReason } from "./hold-reason.js";
|
|
7
7
|
import { INSTALL_JOB_ID_PREFIX, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, WORKFLOW_MODIFICATION_JOB_ID, installGateJobId, isSecurityHoldJobId } from "./held-run-job-id.js";
|
|
8
8
|
import { DEFAULT_HOLD_EXPIRY_SECONDS } from "./hold-expiry.js";
|
|
9
9
|
import { matchScopePattern, resolveSecretsForContext, resolveSecretsWithProvenance, stripScopePrefix } from "./scope-resolver.js";
|
|
10
10
|
import { ContextGateRejectReason, mergeOrderedMaps } from "./multi-context.js";
|
|
11
11
|
import { SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, ScopeNameError, assertValidScopeName, validateScopeName } from "./scope-name.js";
|
|
12
12
|
import { SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SecretKeyError, assertValidSecretKey, validateSecretKey } from "./secret-key.js";
|
|
13
|
-
export { ConcurrencyStrategy, ContextGateRejectReason, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, HeldRunStatus, HoldType, INSTALL_JOB_ID_PREFIX, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, ScopeNameError, SecretKeyError, TrustTierSchema, WORKFLOW_MODIFICATION_JOB_ID, assertValidScopeName, assertValidSecretKey, installGateJobId, isSecurityHoldJobId, matchScopePattern, mergeOrderedMaps, normalizePersistedHoldType, persistedHoldTypeSpellings, resolveSecretsForContext, resolveSecretsWithProvenance, stripScopePrefix, trustedContributorHoldReason,
|
|
13
|
+
export { ConcurrencyStrategy, ContextGateRejectReason, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, HeldRunStatus, HoldType, INSTALL_JOB_ID_PREFIX, MinimumTrustSchema, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, ScopeNameError, SecretKeyError, TrustTierSchema, WORKFLOW_MODIFICATION_JOB_ID, assertValidScopeName, assertValidSecretKey, installGateJobId, isSecurityHoldJobId, matchScopePattern, mergeOrderedMaps, normalizePersistedHoldType, persistedHoldTypeSpellings, resolveSecretsForContext, resolveSecretsWithProvenance, stripScopePrefix, trustedContributorHoldReason, validateScopeName, validateSecretKey };
|
package/dist/context/types.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface Context {
|
|
|
26
26
|
waitTimerSeconds: number | null;
|
|
27
27
|
holdExpirySeconds: number;
|
|
28
28
|
/** Minimum trust tier required for CI execution in this context. */
|
|
29
|
-
minimumTrust?: '
|
|
29
|
+
minimumTrust?: 'trusted';
|
|
30
30
|
/** Whether this context allows local (no-remote) executions. Default false. */
|
|
31
31
|
allowLocalExecution?: boolean;
|
|
32
32
|
enabled: boolean;
|
|
@@ -84,21 +84,23 @@ export interface ContextSourceOverride {
|
|
|
84
84
|
updatedAt: string;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
|
-
* Trust tier for CI execution gating (single source of truth).
|
|
88
|
-
*
|
|
89
|
-
* `'
|
|
90
|
-
* produces only `'trusted'` (a ref in the base repo) and `'unknown'` (a ref
|
|
91
|
-
* from a fork). It still reaches runtime from a stored
|
|
92
|
-
* `execution_runs.trust_tier` row an internal event inherits, and a context can
|
|
93
|
-
* still declare it as its `minimumTrust` floor. It is slated for removal at
|
|
94
|
-
* v1.0.0, after which trust is a two-value vocabulary.
|
|
87
|
+
* Trust tier for CI execution gating (single source of truth). Trust is
|
|
88
|
+
* ref-based: a ref in the base repo is `'trusted'`, a ref from a fork is
|
|
89
|
+
* `'unknown'`.
|
|
95
90
|
*/
|
|
96
91
|
export declare const TrustTierSchema: z.ZodEnum<{
|
|
97
|
-
known: "known";
|
|
98
92
|
trusted: "trusted";
|
|
99
93
|
unknown: "unknown";
|
|
100
94
|
}>;
|
|
101
95
|
export type TrustTier = z.infer<typeof TrustTierSchema>;
|
|
96
|
+
/**
|
|
97
|
+
* The one `minimumTrust` requirement a context can carry, as it travels on the
|
|
98
|
+
* wire and in the row: `'trusted'` sets it, `null` clears it. The trust gate
|
|
99
|
+
* holds a run whose ref resolved as a fork; a context that sets no requirement
|
|
100
|
+
* passes every run.
|
|
101
|
+
*/
|
|
102
|
+
export declare const MinimumTrustSchema: z.ZodNullable<z.ZodLiteral<"trusted">>;
|
|
103
|
+
export type MinimumTrust = z.infer<typeof MinimumTrustSchema>;
|
|
102
104
|
/** Held run record for protection gate enforcement. */
|
|
103
105
|
export interface HeldRun {
|
|
104
106
|
id: string;
|
package/dist/context/types.js
CHANGED
|
@@ -8,21 +8,19 @@ import { z } from "zod";
|
|
|
8
8
|
* and protection rules for deployment targets (dev, staging, production).
|
|
9
9
|
*/
|
|
10
10
|
/**
|
|
11
|
-
* Trust tier for CI execution gating (single source of truth).
|
|
12
|
-
*
|
|
13
|
-
* `'
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
*
|
|
11
|
+
* Trust tier for CI execution gating (single source of truth). Trust is
|
|
12
|
+
* ref-based: a ref in the base repo is `'trusted'`, a ref from a fork is
|
|
13
|
+
* `'unknown'`.
|
|
14
|
+
*/
|
|
15
|
+
const TrustTierSchema = z.enum(["trusted", "unknown"]);
|
|
16
|
+
/**
|
|
17
|
+
* The one `minimumTrust` requirement a context can carry, as it travels on the
|
|
18
|
+
* wire and in the row: `'trusted'` sets it, `null` clears it. The trust gate
|
|
19
|
+
* holds a run whose ref resolved as a fork; a context that sets no requirement
|
|
20
|
+
* passes every run.
|
|
19
21
|
*/
|
|
20
|
-
const
|
|
21
|
-
"trusted",
|
|
22
|
-
"known",
|
|
23
|
-
"unknown"
|
|
24
|
-
]);
|
|
22
|
+
const MinimumTrustSchema = z.literal("trusted").nullable();
|
|
25
23
|
//#endregion
|
|
26
|
-
export { TrustTierSchema };
|
|
24
|
+
export { MinimumTrustSchema, TrustTierSchema };
|
|
27
25
|
|
|
28
26
|
//# sourceMappingURL=types.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './protocol/version.js';
|
|
|
11
11
|
export * from './protocol/source-origin.js';
|
|
12
12
|
export * from './provenance/attestation-origin.js';
|
|
13
13
|
export * from './provenance/id-token-event-claims.js';
|
|
14
|
+
export * from './provenance/id-token-claim-names.js';
|
|
14
15
|
export * from './protocol/messages/common.js';
|
|
15
16
|
export * from './protocol/messages/actor.js';
|
|
16
17
|
export * from './protocol/messages/pat-kind.js';
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "./rolldown-runtime-ClRpJifh.js";
|
|
2
2
|
import { CheckMode, CheckStepOutcome } from "./check-mode.js";
|
|
3
|
-
import {
|
|
3
|
+
import { MIN_PROTOCOL_VERSION, PROTOCOL_VERSION } from "./protocol/version.js";
|
|
4
4
|
import { SourceOrigin } from "./protocol/source-origin.js";
|
|
5
5
|
import { AttestationOrigin } from "./provenance/attestation-origin.js";
|
|
6
6
|
import { PULL_REQUEST_FAMILY_TRIGGER_EVENTS, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, isPullRequestFamilyTriggerEvent } from "./trigger/trigger-event-type.js";
|
|
7
7
|
import { UNRESOLVED_CLAIM, buildEventClaims, buildIdTokenSubject, provenanceContextSchema } from "./provenance/id-token-event-claims.js";
|
|
8
|
+
import { ID_TOKEN_CLAIM_NAMES } from "./provenance/id-token-claim-names.js";
|
|
8
9
|
import { NACK_EXEMPT_MESSAGE_TYPES, WS_MAX_PAYLOAD_BYTES, ackSchema, buildUnsupportedMessageNack, errorSchema, heartbeatSchema, nackSchema } from "./protocol/messages/common.js";
|
|
9
10
|
import { ACTOR_AGENT_SUFFIX, ActorType, actorPrincipalSchema, agentLabelOf, apiKeyActorSchema, flattenActor, parseActor, platformOperatorActorSchema, serviceAccountActorSchema, stringifyActor, systemActorSchema, userActorSchema } from "./protocol/messages/actor.js";
|
|
10
11
|
import { PatKind } from "./protocol/messages/pat-kind.js";
|
|
@@ -14,7 +15,7 @@ import { HoldType, normalizePersistedHoldType, persistedHoldTypeSpellings } from
|
|
|
14
15
|
import { resolveHeldRunId } from "./mcp/held-run-resolve.js";
|
|
15
16
|
import { renderFenced } from "./mcp/fence.js";
|
|
16
17
|
import { CONTEXTS_MAX, CacheOutcome, CacheRunEventType, CacheStepType, DEAD_ORCH_FAILURE_REASON, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, InitFailureCategory, JobKind, MAX_JOBS_PER_RUN, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RunFailureClass, STATE_REPLAY_MAX_RUNS, STATUS_FREE_TEXT_MAX, STATUS_ID_MAX, SetupStepType, StepConcurrencyKind, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TimeoutReason, executionStatusSchema, initFailureSchema, isSetupStepType, jobStatusForwardSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepStatusForwardSchema } from "./protocol/messages/execution-status.js";
|
|
17
|
-
import { TrustTierSchema } from "./context/types.js";
|
|
18
|
+
import { MinimumTrustSchema, TrustTierSchema } from "./context/types.js";
|
|
18
19
|
import { AgentFailureCategory, agentJobResultSchema, agentRunListItemSchema, agentRunResultSchema, agentStepLogsSchema, agentStepResultSchema, agentWorkflowSummarySchema, untrusted, wrapUntrusted } from "./protocol/messages/agent-run-result.js";
|
|
19
20
|
import { AccessLogAction, AccessLogOutcome, AccessLogSource, AccessLogTargetType, accessLogFilterSchema, accessLogItemSchema, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema } from "./protocol/messages/access-log.js";
|
|
20
21
|
import { browserJobContextSchema, browserRunEventSchema, dashboardOrchLogsRequestSchema, dashboardOrchLogsResponseSchema, jobContextMessageSchema, runEventMessageSchema } from "./protocol/messages/run-events.js";
|
|
@@ -25,7 +26,7 @@ import { OWN_INGRESS_MODES, OrchestratorMode, PLATFORM_CONNECTED_MODES, RELAY_IN
|
|
|
25
26
|
import { INTERNAL_EVENT_NAME_PREFIX, KICI_EVENT_NAME_PREFIX, ScalerBackendType, reservedEventNamePrefix } from "./scaler/scaler-backend-type.js";
|
|
26
27
|
import { ApprovalDecision, HoldScope, TriggerSource, approvalRequirementSchema, approvalTimeoutSecondsSchema, approverClauseSchema } from "./approval/types.js";
|
|
27
28
|
import { CANONICAL_STATUSES, LEGACY_STATUS_ALIASES, STATUS_FAILURE_CLASS, STATUS_PRECEDENCE, StatusFailureClass, isFailureStatus, toCanonicalStatus, worstStatus } from "./status/presentation.js";
|
|
28
|
-
import { BREAKING_FLOOR, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, OnUnreachableMode, RunsOnPick, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, changedFilesStatusSchema, isLockDynamicJobFn,
|
|
29
|
+
import { BREAKING_FLOOR, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, OnUnreachableMode, RunsOnPick, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, changedFilesStatusSchema, isLockDynamicJobFn, isLockParallelStep, isLockStaticJob, resolveContentFormat, resolveWhenToRunOn } from "./trigger/types.js";
|
|
29
30
|
import { canonicalizeLabel, canonicalizeLabelSet, canonicalizeLabels } from "./labels-canonical.js";
|
|
30
31
|
import { normalizeRegexFlags, stripStatefulRegexFlags } from "./regex-flags.js";
|
|
31
32
|
import { HostTargetSelector, HostTargetValue, LabelMatcher, canonicalizeMatcher, compileRegexMatcher, hostSatisfiesTarget, matcherMatches, matcherSatisfiedBy, partitionMatchers } from "./labels-match.js";
|
|
@@ -49,7 +50,7 @@ import { EVENT_LOG_PAYLOAD_CHUNK_BYTES } from "./protocol/event-log-payload.js";
|
|
|
49
50
|
import { browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserOrchLogLinesSchema, browserOrchLogSubscribeSchema, browserOrchLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, platformToBrowserMessageSchema } from "./protocol/messages/browser.js";
|
|
50
51
|
import { joinRequestSchema, joinResponseSchema } from "./protocol/messages/join.js";
|
|
51
52
|
import { fleetSelectionSchema, jobProgressAckSchema, jobProgressSchema, jobRerouteAckSchema, jobRerouteSchema, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerToPeerMessageSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, workerClusterSettingsSchema } from "./protocol/messages/peer.js";
|
|
52
|
-
import { ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactRejectReason, ArtifactUploadOutcome, CacheRefScope, JobRejectReason, StepApprovalOutcome, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentLogChunkSchema, agentMetricsSchema, agentRegisterSchema, agentStatusSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, configAckSchema, eventEmitResponseSchema, eventEmitSchema, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetLogsRequestSchema, gitAuthSchema, globalEvalCandidateResultSchema, globalEvalRoundResultSchema, invokeResultSchema, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobDispatchSchema, jobRejectSchema, jobStatusSchema, orchestratorToAgentMessageSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, registerAckSchema, scalerClaimCredentialsResponseSchema, scalerClaimCredentialsSchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema } from "./protocol/messages/orchestrator-agent.js";
|
|
53
|
+
import { ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactRejectReason, ArtifactUploadOutcome, CacheRefScope, JobRejectReason, StepApprovalOutcome, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentLogChunkSchema, agentMetricsSchema, agentRegisterSchema, agentStatusSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, configAckSchema, eventEmitResponseSchema, eventEmitSchema, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetLogsRequestSchema, gitAuthSchema, globalEvalCandidateResultSchema, globalEvalRoundResultSchema, invokeResultSchema, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobDispatchSchema, jobRejectSchema, jobStatusSchema, orchestratorToAgentMessageSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, rateLimitWarningSchema, registerAckSchema, scalerClaimCredentialsResponseSchema, scalerClaimCredentialsSchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema } from "./protocol/messages/orchestrator-agent.js";
|
|
53
54
|
import { KNOWN_LINUX_CAPABILITIES, canonicalizeCapability, isKnownCapability } from "./sandbox/capabilities.js";
|
|
54
55
|
import { compileSafeRegex, describeTextMatch, evaluateTextMatch, textMatchHasQuery } from "./trigger/text-match.js";
|
|
55
56
|
import { REDACTED_TRACE_FIELD, TRACE_TEXT_MAX, TRACE_TRUNCATION_WORKFLOW_NAME, TraceCheck, TraceVerdict, appendChecks, createCommitMessageTraceEntry, createContentRequirementsTraceEntry, createDispatchFailureTraceEntry, createGlobalFilterTraceEntry, createTraceEntry, createTraceTruncationMarker, createWorkflowDecision, truncateDecisionsToByteBudget, truncateTraceText, utf8ByteLength } from "./trigger/decision-trace.js";
|
|
@@ -73,7 +74,7 @@ import { WS_CLOSE_AGENT_AUTH_FAILED, WS_CLOSE_AUTH_TIMEOUT, WS_CLOSE_CLUSTER_NAM
|
|
|
73
74
|
import { WsRateLimiter } from "./ws/rate-limiter.js";
|
|
74
75
|
import { AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, KICI_AGENT_ENV_PREFIX, SANDBOX_DEFAULT_VARS, TRUSTED_ENV_SCRUB_EXACT, buildTrustedPassthroughEnv, isTrustedEnvScrubbed } from "./env/environment-allowlist.js";
|
|
75
76
|
import "./secrets/index.js";
|
|
76
|
-
import { trustedContributorHoldReason
|
|
77
|
+
import { trustedContributorHoldReason } from "./context/hold-reason.js";
|
|
77
78
|
import { INSTALL_JOB_ID_PREFIX, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, WORKFLOW_MODIFICATION_JOB_ID, installGateJobId, isSecurityHoldJobId } from "./context/held-run-job-id.js";
|
|
78
79
|
import { DEFAULT_HOLD_EXPIRY_SECONDS } from "./context/hold-expiry.js";
|
|
79
80
|
import { matchScopePattern, resolveSecretsForContext, resolveSecretsWithProvenance, stripScopePrefix } from "./context/scope-resolver.js";
|
|
@@ -94,4 +95,4 @@ import { ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, ArtifactNameSch
|
|
|
94
95
|
import { PLAN_TYPES, PaidPlanType, PlanType, isPaidTier, planRank } from "./billing/plan-type.js";
|
|
95
96
|
import { SUBSCRIPTION_EXISTS_CODE, StripeSubscriptionStatus, blocksNewCheckout } from "./billing/subscription-status.js";
|
|
96
97
|
import { INFRA_ALERT_TYPES, InfraAlertSeverity, InfraAlertType, normalizeInfraAlertSeverity } from "./diagnostics/infra-alert.js";
|
|
97
|
-
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, ACTOR_AGENT_SUFFIX, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, AgentFailureCategory, ApprovalDecision, ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactNameSchema, ArtifactRejectReason, ArtifactUploadOutcome, AttestationOrigin, BREAKING_FLOOR, CANONICAL_STATUSES, CAPABILITY_LABEL_PREFIX, CLUSTER_MEMBERSHIP_MAX_WORKERS, CONTAINER_BUILD_RUNTIME_LABEL, CONTEXTS_MAX, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, CiTrustLevel, ConcurrencyStrategy, ConfigPathsSchema, ContextDeleteErrorCode, ContextGateRejectReason, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DEAD_ORCH_FAILURE_REASON, DEFAULT_APPROVAL_EXPIRY_HOURS, DEFAULT_APPROVAL_EXPIRY_SECONDS, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, DEVELOPER_OPERATIONS, DashboardResponseErrorCode, DeploymentContainerRuntimeSchema, DeploymentIdentitySchema, DeploymentModeSchema, DispatchInputError, DispatchInputType, EVENT_LOG_PAYLOAD_CHUNK_BYTES, EventLogPayloadStreamError, EventLogSource, EventLogStatus, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, FORK_POLICY_IGNORE_MIN_PROTOCOL_VERSION, FanoutCause, FanoutError, FleetHostDisposition, ForkPolicy, HEARTBEAT_CLOSE_MS, HEARTBEAT_DEGRADED_MS, HEARTBEAT_FRESH_MS, HEARTBEAT_STALE_THRESHOLD_SECONDS, HEARTBEAT_UNHEALTHY_MARK_MS, HOST_LABEL_PREFIX, HeldRunQueueType, HeldRunStatus, HoldScope, HoldType, HostInventoryEntry, HostPropertyValue, HostTargetSelector, HostTargetValue, INFRA_ALERT_TYPES, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, INSTALL_JOB_ID_PREFIX, INTERNAL_EVENT_NAME_PREFIX, InfraAlertSeverity, InfraAlertType, InitFailureCategory, InputDescriptor, InputsDescriptorMapSchema, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JobKind, JobRejectReason, KICI_AGENT_ENV_PREFIX, KICI_EVENT_NAME_PREFIX, KNOWN_LINUX_CAPABILITIES, KNOWN_ROLES, LEGACY_STATUS_ALIASES, LabelMatcher, LockFileParseError, LogStream, MAX_APPROVAL_EXPIRY_HOURS, MAX_APPROVAL_EXPIRY_SECONDS, MAX_FANOUT_JOBS, MAX_JOBS_PER_RUN, MAX_MATRIX_MATERIALIZATION, MIN_APPROVAL_EXPIRY_SECONDS, MIN_PROTOCOL_VERSION, MatrixShapeError, NACK_EXEMPT_MESSAGE_TYPES, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, ORCH_TO_PLATFORM_RECOGNIZED_TYPES, OWN_INGRESS_MODES, OnUnreachableMode, OrchLogPhase, OrchRole, OrchestratorMode, PING_EVENT_TYPE, PLAN_TYPES, PLATFORM_CAPABILITIES, PLATFORM_CONNECTED_MODES, PLATFORM_TAINT_LABELS, PLATFORM_TO_ORCH_RECOGNIZED_TYPES, POLICY_BY_ACTION, PRIVILEGED_ROOT_LABEL, PROTOCOL_VERSION, PULL_REQUEST_FAMILY_TRIGGER_EVENTS, PaidPlanType, PatKind, PayloadOmittedReason, PlanType, REDACTED_TRACE_FIELD, REGEX_NEGATIVE_ASSERTION, RELAY_INGRESS_MODES, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RUNTIME_LABEL_PREFIX, RegisterableTriggerType, RunFailureClass, RunsOnPick, RuntimeFact, SANDBOX_DEFAULT_VARS, SANDBOX_NETWORK_MODES, SCALER_EVENT_NAMES, SCHEMA_VERSION, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECONDS_PER_HOUR, SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, STATE_REPLAY_MAX_RUNS, STATUS_FAILURE_CLASS, STATUS_FREE_TEXT_MAX, STATUS_ID_MAX, STATUS_PRECEDENCE, SUBSCRIBABLE_WEBHOOK_EVENT_TYPES, SUBSCRIPTION_EXISTS_CODE, ScaleDownReason, ScalerArch, ScalerBackendType, ScalerEventType, ScalerOs, ScalerScaleDownPayload, ScalerScaleUpPayload, ScopeNameError, SecretKeyError, SetupStepType, SourceOrigin, SourceProvider, SourceSubtype, StatusFailureClass, StepApprovalOutcome, StepConcurrencyKind, StripeSubscriptionStatus, SubscribableWebhookEventType, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TRACE_TEXT_MAX, TRACE_TRUNCATION_WORKFLOW_NAME, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TRIGGER_TYPE_TO_EVENT_TYPES, TRUSTED_ENV_SCRUB_EXACT, TestRelayType, TimeoutReason, TraceCheck, TraceVerdict, TriggerSource, TrustTierSchema, UNRESOLVED_CLAIM, UnsupportedDispatchInputError, VariantKind, WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WORKFLOW_MODIFICATION_JOB_ID, 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_REBALANCE, WS_CLOSE_SUPERSEDED_BY_RECONNECT, WS_CLOSE_UNAUTHORIZED, WS_MAX_PAYLOAD_BYTES, WebhookEventType, WebhookRelayResult, WsRateLimiter, accessLogFilterSchema, accessLogItemSchema, accessLogWarmSqlCase, ackSchema, activityCursorSchema, activityFilterSchema, activityRowSchema, actorPrincipalSchema, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentDiagnosticsConnectionSchema, agentDiagnosticsSchema, agentJobResultSchema, agentLabelOf, agentLogChunkSchema, agentMetricsSchema, agentOrchestratorSummarySchema, agentOrgSummarySchema, agentRegisterSchema, agentRunListItemSchema, agentRunResultSchema, agentSecretScopeSchema, agentStatusSchema, agentStepLogsSchema, agentStepResultSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, agentTypeLabel, agentWorkflowSummarySchema, apiKeyActorSchema, appendChecks, applyIncludeExclude, approvalExpiryHoursOf, approvalExpirySecondsOf, approvalRequirementSchema, approvalTimeoutSecondsSchema, approveRunToolSchema, approverClauseSchema, artifactInvalidNameError, artifactListItemSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, assertScheduleInputsSatisfiable, assertValidScopeName, assertValidSecretKey, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, auditLogColdDays, auditLogWarmDays, auditLogWarmSqlCase, authFailureSchema, authRequestSchema, authSuccessSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, blocksNewCheckout, browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadChunkSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobContextSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserOrchLogLinesSchema, browserOrchLogSubscribeSchema, browserOrchLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunEventSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, buildEventClaims, buildIdTokenSubject, buildTrustedPassthroughEnv, buildUnsupportedMessageNack, buildZodFromDescriptor, buildZodObjectFromMap, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, cancelRunToolSchema, cancelRunsByBranchToolSchema, canonicalizeCapability, canonicalizeLabel, canonicalizeLabelSet, canonicalizeLabels, canonicalizeMatcher, capabilityLabel, changedFilesStatusSchema, checkArtifactName, clusterMembershipSchema, coerceDispatchInputs, coerceHostPropertyValue, collectDiscriminatorTypes, compileRegexMatcher, compileSafeRegex, configAckSchema, connectionHealthStatusSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, createCommitMessageTraceEntry, createContentRequirementsTraceEntry, createDispatchFailureTraceEntry, createGlobalFilterTraceEntry, createTraceEntry, createTraceTruncationMarker, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchLogsRequestSchema, dashboardOrchLogsResponseSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, decodeActivityCursor, deriveOsArchLabels, derivePlatformTaints, describeTextMatch, developerOpsForEntrypoint, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, encodeActivityCursor, errorSchema, evaluateTextMatch, eventEmitResponseSchema, eventEmitSchema, eventLogActivityCountsSchema, eventLogListItemSchema, executionEventSchema, executionStatusSchema, expandMatrix, expandMultiDimension, expandSingleDimension, extractInputDescriptor, extractInputsDescriptorMap, fanoutEnvelopeFields, findDuplicateCombination, flattenActor, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetLogsRequestSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, fleetSelectionSchema, fnv1a32, formatExpandedJobName, formatMatrixSuffix, getAccessLogColdDays, getAccessLogWarmDays, getAuditLogColdDays, getAuditLogWarmDays, getDiagnosticsToolSchema, getRepoGlobMatcher, getRunToolSchema, getSecretAuditLogColdDays, getSecretAuditLogWarmDays, getStepLogsToolSchema, gitAuthSchema, githubIngressPath, githubWebhookPath, globalEvalCandidateResultSchema, globalEvalRoundResultSchema, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, hostSatisfiesTarget, hostToScalerPlatform, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, installGateJobId, invokeResultSchema, isFailureStatus, isInputSatisfiableFromDefaults, isKnownCapability, isLockDynamicJobFn, isLockInlineValue, isLockParallelStep, isLockStaticJob, isMintedRef, isNegatedPattern, isPaidTier, isPullRequestFamilyTriggerEvent, isSecurityHoldJobId, isSelfReportedLabel, isSetupStepType, isTrustedEnvScrubbed, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobContextMessageSchema, jobDispatchSchema, jobProgressAckSchema, jobProgressSchema, jobRejectSchema, jobRerouteAckSchema, jobRerouteSchema, jobStatusForwardSchema, jobStatusSchema, joinRequestSchema, joinResponseSchema, listOrchestratorsToolSchema, listOrgsToolSchema, listRunsToolSchema, listSecretsToolSchema, listWorkflowsToolSchema, logChunkSchema, logPullOrchToPlatformSchema, logPullPlatformToOrchSchema, manualScheduleRequestSchema, matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchScopePattern, matchTrigger, matchWorkflowTriggers, matchWorkflowsForEvent, matcherMatches, matcherSatisfiedBy, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixCombinationCount, matrixEnvelopeFields, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, mergeAutoLabels, mergeOrderedMaps, minAccessLogWarmDays, minAuditLogWarmDays, minSecretAuditLogWarmDays, nackSchema, negatedPatternReason, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeInfraAlertSeverity, normalizeMatrixInput, normalizePersistedHoldType, normalizeRegexFlags, normalizeRunsOn, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, orchLogChunkSchema, orchMetricsSchema, orchestratorToAgentMessageSchema, orchestratorToPlatformMessageSchema, orgMemberSchema, parseActor, parseHostLabel, parseHostPropertyAssignments, parseInputPairs, parseMemoryString, partitionMatchers, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerDiscoverSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerToPeerMessageSchema, peerUpdateSchema, persistedHoldTypeSpellings, planHeadroomSchema, planRank, platformCapabilitiesMessageSchema, platformCapabilitiesSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, platformToOsArchLabels, platformToTaints, prepareEventBuckets, provenanceContextSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, rejectRunToolSchema, renderFenced, rerunRunToolSchema, reservedEventNamePrefix, resolveContentFormat, resolveHeldRunId, resolveRoleLabels, resolveRunIdSugar, resolveScheduleInputs, resolveSecretsForContext, resolveSecretsWithProvenance, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, runtimeLabel, scalerAgentLabels, scalerClaimCredentialsResponseSchema, scalerClaimCredentialsSchema, scalerLabel, scalerPlatformSchema, scheduleTriggerKey, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, stripStatefulRegexFlags, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, textMatchHasQuery, toCanonicalStatus, triggerRunToolSchema, truncateDecisionsToByteBudget, truncateTraceText, trustPolicyResponseSchema, trustPolicySchema, trustPolicyUpdateSchema, trustedContributorHoldReason, unknownContributorHoldReason, untrusted, upstreamSnapshotSchema, userActorSchema, utf8ByteLength, validateNoReservedLabels, validateResourceRequest, validateScopeName, validateSecretKey, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema, workerClusterSettingsSchema, worstStatus, wrapUntrusted };
|
|
98
|
+
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, ACTOR_AGENT_SUFFIX, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, AgentFailureCategory, ApprovalDecision, ArtifactCompleteAckOutcome, ArtifactDownloadOutcome, ArtifactNameSchema, ArtifactRejectReason, ArtifactUploadOutcome, AttestationOrigin, BREAKING_FLOOR, CANONICAL_STATUSES, CAPABILITY_LABEL_PREFIX, CLUSTER_MEMBERSHIP_MAX_WORKERS, CONTAINER_BUILD_RUNTIME_LABEL, CONTEXTS_MAX, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, CiTrustLevel, ConcurrencyStrategy, ConfigPathsSchema, ContextDeleteErrorCode, ContextGateRejectReason, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DEAD_ORCH_FAILURE_REASON, DEFAULT_APPROVAL_EXPIRY_HOURS, DEFAULT_APPROVAL_EXPIRY_SECONDS, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, DEVELOPER_OPERATIONS, DashboardResponseErrorCode, DeploymentContainerRuntimeSchema, DeploymentIdentitySchema, DeploymentModeSchema, DispatchInputError, DispatchInputType, EVENT_LOG_PAYLOAD_CHUNK_BYTES, EventLogPayloadStreamError, EventLogSource, EventLogStatus, ExecutionJobStatus, ExecutionRunStatus, ExecutionStepStatus, FanoutCause, FanoutError, FleetHostDisposition, ForkPolicy, HEARTBEAT_CLOSE_MS, HEARTBEAT_DEGRADED_MS, HEARTBEAT_FRESH_MS, HEARTBEAT_STALE_THRESHOLD_SECONDS, HEARTBEAT_UNHEALTHY_MARK_MS, HOST_LABEL_PREFIX, HeldRunQueueType, HeldRunStatus, HoldScope, HoldType, HostInventoryEntry, HostPropertyValue, HostTargetSelector, HostTargetValue, ID_TOKEN_CLAIM_NAMES, INFRA_ALERT_TYPES, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, INSTALL_JOB_ID_PREFIX, INTERNAL_EVENT_NAME_PREFIX, InfraAlertSeverity, InfraAlertType, InitFailureCategory, InputDescriptor, InputsDescriptorMapSchema, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JobKind, JobRejectReason, KICI_AGENT_ENV_PREFIX, KICI_EVENT_NAME_PREFIX, KNOWN_LINUX_CAPABILITIES, KNOWN_ROLES, LEGACY_STATUS_ALIASES, LabelMatcher, LockFileParseError, LogStream, MAX_APPROVAL_EXPIRY_HOURS, MAX_APPROVAL_EXPIRY_SECONDS, MAX_FANOUT_JOBS, MAX_JOBS_PER_RUN, MAX_MATRIX_MATERIALIZATION, MIN_APPROVAL_EXPIRY_SECONDS, MIN_PROTOCOL_VERSION, MatrixShapeError, MinimumTrustSchema, NACK_EXEMPT_MESSAGE_TYPES, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, ORCH_TO_PLATFORM_RECOGNIZED_TYPES, OWN_INGRESS_MODES, OnUnreachableMode, OrchLogPhase, OrchRole, OrchestratorMode, PING_EVENT_TYPE, PLAN_TYPES, PLATFORM_CAPABILITIES, PLATFORM_CONNECTED_MODES, PLATFORM_TAINT_LABELS, PLATFORM_TO_ORCH_RECOGNIZED_TYPES, POLICY_BY_ACTION, PRIVILEGED_ROOT_LABEL, PROTOCOL_VERSION, PULL_REQUEST_FAMILY_TRIGGER_EVENTS, PaidPlanType, PatKind, PayloadOmittedReason, PlanType, REDACTED_TRACE_FIELD, REGEX_NEGATIVE_ASSERTION, RELAY_INGRESS_MODES, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RUNTIME_LABEL_PREFIX, RegisterableTriggerType, RunFailureClass, RunsOnPick, RuntimeFact, SANDBOX_DEFAULT_VARS, SANDBOX_NETWORK_MODES, SCALER_EVENT_NAMES, SCHEMA_VERSION, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECONDS_PER_HOUR, SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, STATE_REPLAY_MAX_RUNS, STATUS_FAILURE_CLASS, STATUS_FREE_TEXT_MAX, STATUS_ID_MAX, STATUS_PRECEDENCE, SUBSCRIBABLE_WEBHOOK_EVENT_TYPES, SUBSCRIPTION_EXISTS_CODE, ScaleDownReason, ScalerArch, ScalerBackendType, ScalerEventType, ScalerOs, ScalerScaleDownPayload, ScalerScaleUpPayload, ScopeNameError, SecretKeyError, SetupStepType, SourceOrigin, SourceProvider, SourceSubtype, StatusFailureClass, StepApprovalOutcome, StepConcurrencyKind, StripeSubscriptionStatus, SubscribableWebhookEventType, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TRACE_TEXT_MAX, TRACE_TRUNCATION_WORKFLOW_NAME, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TRIGGER_TYPE_TO_EVENT_TYPES, TRUSTED_ENV_SCRUB_EXACT, TestRelayType, TimeoutReason, TraceCheck, TraceVerdict, TriggerSource, TrustTierSchema, UNRESOLVED_CLAIM, UnsupportedDispatchInputError, VariantKind, WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WORKFLOW_MODIFICATION_JOB_ID, 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_REBALANCE, WS_CLOSE_SUPERSEDED_BY_RECONNECT, WS_CLOSE_UNAUTHORIZED, WS_MAX_PAYLOAD_BYTES, WebhookEventType, WebhookRelayResult, WsRateLimiter, accessLogFilterSchema, accessLogItemSchema, accessLogWarmSqlCase, ackSchema, activityCursorSchema, activityFilterSchema, activityRowSchema, actorPrincipalSchema, agentApiRequestSchema, agentApiResponseSchema, agentAuthFailureSchema, agentAuthRequestSchema, agentAuthSuccessSchema, agentDiagnosticsConnectionSchema, agentDiagnosticsSchema, agentJobResultSchema, agentLabelOf, agentLogChunkSchema, agentMetricsSchema, agentOrchestratorSummarySchema, agentOrgSummarySchema, agentRegisterSchema, agentRunListItemSchema, agentRunResultSchema, agentSecretScopeSchema, agentStatusSchema, agentStepLogsSchema, agentStepResultSchema, agentStepStatusSchema, agentToOrchestratorMessageSchema, agentTypeLabel, agentWorkflowSummarySchema, apiKeyActorSchema, appendChecks, applyIncludeExclude, approvalExpiryHoursOf, approvalExpirySecondsOf, approvalRequirementSchema, approvalTimeoutSecondsSchema, approveRunToolSchema, approverClauseSchema, artifactInvalidNameError, artifactListItemSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, assertScheduleInputsSatisfiable, assertValidScopeName, assertValidSecretKey, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, auditLogColdDays, auditLogWarmDays, auditLogWarmSqlCase, authFailureSchema, authRequestSchema, authSuccessSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, blocksNewCheckout, browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadChunkSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobContextSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserOrchLogLinesSchema, browserOrchLogSubscribeSchema, browserOrchLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunEventSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, buildEventClaims, buildIdTokenSubject, buildTrustedPassthroughEnv, buildUnsupportedMessageNack, buildZodFromDescriptor, buildZodObjectFromMap, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, cancelRunToolSchema, cancelRunsByBranchToolSchema, canonicalizeCapability, canonicalizeLabel, canonicalizeLabelSet, canonicalizeLabels, canonicalizeMatcher, capabilityLabel, changedFilesStatusSchema, checkArtifactName, clusterMembershipSchema, coerceDispatchInputs, coerceHostPropertyValue, collectDiscriminatorTypes, compileRegexMatcher, compileSafeRegex, configAckSchema, connectionHealthStatusSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, createCommitMessageTraceEntry, createContentRequirementsTraceEntry, createDispatchFailureTraceEntry, createGlobalFilterTraceEntry, createTraceEntry, createTraceTruncationMarker, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, dashboardAdminTokenSummarySchema, dashboardAdminTokensListRequestSchema, dashboardAdminTokensListResponseSchema, dashboardArtifactsListRequestSchema, dashboardArtifactsListResponseSchema, dashboardAttestationGetRequestSchema, dashboardAttestationGetResponseSchema, dashboardAttestationRetryRequestSchema, dashboardAttestationRetryResponseSchema, dashboardAttestationsApiResponseSchema, dashboardAttestationsListAllRequestSchema, dashboardAttestationsListAllResponseSchema, dashboardAttestationsListRequestSchema, dashboardAttestationsListResponseSchema, dashboardDiagnosticsRequestSchema, dashboardDiagnosticsResponseSchema, dashboardEventDlqCountRequestSchema, dashboardEventDlqDiscardRequestSchema, dashboardEventDlqListItemSchema, dashboardEventDlqListRequestSchema, dashboardEventDlqRetryRequestSchema, dashboardEventLogActivityRequestSchema, dashboardEventLogActivityResponseSchema, dashboardEventLogDetailRequestSchema, dashboardEventLogListRequestSchema, dashboardEventLogPayloadChunkSchema, dashboardEventLogPayloadStreamRequestSchema, dashboardFleetHostRequestSchema, dashboardFleetHostResponseSchema, dashboardFleetHostsRequestSchema, dashboardFleetHostsResponseSchema, dashboardFleetPreviewRequestSchema, dashboardFleetPreviewResponseSchema, dashboardFleetWorkflowsForHostRequestSchema, dashboardFleetWorkflowsForHostResponseSchema, dashboardJobDetailSchema, dashboardOrchLogsRequestSchema, dashboardOrchLogsResponseSchema, dashboardOrchToPlatformSchema, dashboardPayloadRequestSchema, dashboardPlatformToOrchSchema, dashboardRunDetailApiResponseSchema, dashboardRunDetailRequestSchema, dashboardRunDetailResponseSchema, dashboardRunStateRequestSchema, dashboardRunStateResponseSchema, dashboardRunStructuredRequestSchema, dashboardRunStructuredResponseSchema, dashboardRunSummarySchema, dashboardRunsFiltersRequestSchema, dashboardRunsFiltersResponseSchema, dashboardRunsListRequestSchema, dashboardRunsListResponseSchema, dashboardScalerAgentsRequestSchema, dashboardScalerAgentsResponseSchema, dashboardScalerCapacityRequestSchema, dashboardScalerCapacityResponseSchema, dashboardSourceSummarySchema, dashboardSourcesListRequestSchema, dashboardSourcesListResponseSchema, dashboardStepLogsApiResponseSchema, dashboardStepLogsRequestSchema, dashboardStepLogsResponseSchema, decodeActivityCursor, deriveOsArchLabels, derivePlatformTaints, describeTextMatch, developerOpsForEntrypoint, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, encodeActivityCursor, errorSchema, evaluateTextMatch, eventEmitResponseSchema, eventEmitSchema, eventLogActivityCountsSchema, eventLogListItemSchema, executionEventSchema, executionStatusSchema, expandMatrix, expandMultiDimension, expandSingleDimension, extractInputDescriptor, extractInputsDescriptorMap, fanoutEnvelopeFields, findDuplicateCombination, flattenActor, fleetBundleChunkSchema, fleetBundleErrorSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, fleetLogsRequestSchema, fleetPinnedRunSchema, fleetPreviewHostSchema, fleetSelectionSchema, fnv1a32, formatExpandedJobName, formatMatrixSuffix, getAccessLogColdDays, getAccessLogWarmDays, getAuditLogColdDays, getAuditLogWarmDays, getDiagnosticsToolSchema, getRepoGlobMatcher, getRunToolSchema, getSecretAuditLogColdDays, getSecretAuditLogWarmDays, getStepLogsToolSchema, gitAuthSchema, githubIngressPath, githubWebhookPath, globalEvalCandidateResultSchema, globalEvalRoundResultSchema, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, hostSatisfiesTarget, hostToScalerPlatform, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, installGateJobId, invokeResultSchema, isFailureStatus, isInputSatisfiableFromDefaults, isKnownCapability, isLockDynamicJobFn, isLockParallelStep, isLockStaticJob, isMintedRef, isNegatedPattern, isPaidTier, isPullRequestFamilyTriggerEvent, isSecurityHoldJobId, isSelfReportedLabel, isSetupStepType, isTrustedEnvScrubbed, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobContextMessageSchema, jobDispatchSchema, jobProgressAckSchema, jobProgressSchema, jobRejectSchema, jobRerouteAckSchema, jobRerouteSchema, jobStatusForwardSchema, jobStatusSchema, joinRequestSchema, joinResponseSchema, listOrchestratorsToolSchema, listOrgsToolSchema, listRunsToolSchema, listSecretsToolSchema, listWorkflowsToolSchema, logChunkSchema, logPullOrchToPlatformSchema, logPullPlatformToOrchSchema, manualScheduleRequestSchema, matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchScopePattern, matchTrigger, matchWorkflowTriggers, matchWorkflowsForEvent, matcherMatches, matcherSatisfiedBy, materializeFanout, materializeResolvedHosts, materializeResolvedMatrix, matrixCombinationCount, matrixEnvelopeFields, memberIdentityLinkSchema, memberListResponseSchema, memberRoleAssignmentSchema, mergeAutoLabels, mergeOrderedMaps, minAccessLogWarmDays, minAuditLogWarmDays, minSecretAuditLogWarmDays, nackSchema, negatedPatternReason, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeInfraAlertSeverity, normalizeMatrixInput, normalizePersistedHoldType, normalizeRegexFlags, normalizeRunsOn, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, orchLogChunkSchema, orchMetricsSchema, orchestratorToAgentMessageSchema, orchestratorToPlatformMessageSchema, orgMemberSchema, parseActor, parseHostLabel, parseHostPropertyAssignments, parseInputPairs, parseMemoryString, partitionMatchers, peerAgentTokenRevokeSchema, peerAuthRequestSchema, peerAuthResponseSchema, peerCapabilitiesSchema, peerClusterSettingsRequestSchema, peerClusterSettingsResponseSchema, peerConfigReloadResponseSchema, peerConfigReloadSchema, peerDiscoverSchema, peerFromPeerMessageSchema, peerHeartbeatSchema, peerHelloResponseSchema, peerHelloSchema, peerJobCancelSchema, peerLeavingSchema, peerLogsCollectChunkSchema, peerLogsCollectErrorSchema, peerLogsCollectRequestSchema, peerScalerEventSchema, peerToPeerMessageSchema, peerUpdateSchema, persistedHoldTypeSpellings, planHeadroomSchema, planRank, platformCapabilitiesMessageSchema, platformCapabilitiesSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, platformToOsArchLabels, platformToTaints, prepareEventBuckets, provenanceContextSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, rateLimitWarningSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, rejectRunToolSchema, renderFenced, rerunRunToolSchema, reservedEventNamePrefix, resolveContentFormat, resolveHeldRunId, resolveRoleLabels, resolveRunIdSugar, resolveScheduleInputs, resolveSecretsForContext, resolveSecretsWithProvenance, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, runtimeLabel, scalerAgentLabels, scalerClaimCredentialsResponseSchema, scalerClaimCredentialsSchema, scalerLabel, scalerPlatformSchema, scheduleTriggerKey, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, stripStatefulRegexFlags, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, textMatchHasQuery, toCanonicalStatus, triggerRunToolSchema, truncateDecisionsToByteBudget, truncateTraceText, trustPolicyResponseSchema, trustPolicySchema, trustPolicyUpdateSchema, trustedContributorHoldReason, untrusted, upstreamSnapshotSchema, userActorSchema, utf8ByteLength, validateNoReservedLabels, validateResourceRequest, validateScopeName, validateSecretKey, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema, workerClusterSettingsSchema, worstStatus, wrapUntrusted };
|
|
@@ -191,8 +191,8 @@ const METRIC_LABEL_POLICY = {
|
|
|
191
191
|
provider: { values: ["static"] },
|
|
192
192
|
scope: { maxUniqueValues: 100 }
|
|
193
193
|
},
|
|
194
|
-
kici_orch_container_registry_auth_contributor_stripped_total: { trust_tier: { values: ["unknown"
|
|
195
|
-
kici_orch_install_secrets_contributor_stripped_total: { trust_tier: { values: ["unknown"
|
|
194
|
+
kici_orch_container_registry_auth_contributor_stripped_total: { trust_tier: { values: ["unknown"] } },
|
|
195
|
+
kici_orch_install_secrets_contributor_stripped_total: { trust_tier: { values: ["unknown"] } },
|
|
196
196
|
kici_orch_install_secrets_token_resolution_duration_seconds: { environment: { maxUniqueValues: 50 } },
|
|
197
197
|
kici_cross_source_errors_total: { reason: { values: ["clone_token", "bundle_missing"] } },
|
|
198
198
|
kici_cross_source_fanout_size: { event: { maxUniqueValues: 50 } },
|
|
@@ -134,15 +134,6 @@ export declare const DashboardWritePolicyState: z.ZodEnum<{
|
|
|
134
134
|
permissive: "permissive";
|
|
135
135
|
}>;
|
|
136
136
|
export type DashboardWritePolicyState = z.infer<typeof DashboardWritePolicyState>;
|
|
137
|
-
/**
|
|
138
|
-
* Coerce a single stored / on-the-wire policy value to a
|
|
139
|
-
* {@link DashboardWritePolicyState}. Older orchestrators (and pre-migration
|
|
140
|
-
* JSONB rows) carry the legacy boolean shape: `true` (enabled/permissive) and
|
|
141
|
-
* `false` (disabled). New peers carry the enum string directly. This keeps the
|
|
142
|
-
* protected wire + storage surfaces backward-compatible during the deprecation
|
|
143
|
-
* window — a boolean is never rejected, it is translated.
|
|
144
|
-
*/
|
|
145
|
-
export declare function coerceDashboardWritePolicyValue(value: unknown): DashboardWritePolicyState;
|
|
146
137
|
/**
|
|
147
138
|
* Map of operation → posture. Omitted operations default to `permissive`.
|
|
148
139
|
* The orch persists this shape verbatim as JSONB; the Platform mirrors it in
|
|
@@ -150,9 +141,8 @@ export declare function coerceDashboardWritePolicyValue(value: unknown): Dashboa
|
|
|
150
141
|
*/
|
|
151
142
|
export type DashboardWritePolicyMap = Partial<Record<DashboardWriteOperation, DashboardWritePolicyState>>;
|
|
152
143
|
/**
|
|
153
|
-
* Validates a sparse policy map.
|
|
154
|
-
*
|
|
155
|
-
* pre-migration JSONB row both parse. `encrypted` is rejected for any operation
|
|
144
|
+
* Validates a sparse policy map. Every value is a
|
|
145
|
+
* {@link DashboardWritePolicyState}; `encrypted` is rejected for any operation
|
|
156
146
|
* whose sensitivity is not `plaintext` (nothing to seal without a plaintext
|
|
157
147
|
* payload; the signing half that would cover authority/dispatch ops is a
|
|
158
148
|
* separate feature). Use this where the value is required but may be empty
|
|
@@ -160,7 +150,7 @@ export type DashboardWritePolicyMap = Partial<Record<DashboardWriteOperation, Da
|
|
|
160
150
|
* embed `dashboardWritePolicyMap` directly with `.optional()` so omission stays
|
|
161
151
|
* as `undefined` rather than being coerced to `{}`.
|
|
162
152
|
*/
|
|
163
|
-
export declare const dashboardWritePolicyMap: z.
|
|
153
|
+
export declare const dashboardWritePolicyMap: z.ZodRecord<z.ZodEnum<{
|
|
164
154
|
"attestations.retry": "attestations.retry";
|
|
165
155
|
"backends.sync": "backends.sync";
|
|
166
156
|
"backends.sync_one": "backends.sync_one";
|
|
@@ -188,12 +178,12 @@ export declare const dashboardWritePolicyMap: z.ZodPipe<z.ZodRecord<z.ZodEnum<{
|
|
|
188
178
|
"secrets.set": "secrets.set";
|
|
189
179
|
"variables.delete": "variables.delete";
|
|
190
180
|
"variables.set": "variables.set";
|
|
191
|
-
}> & z.core.$partial, z.
|
|
181
|
+
}> & z.core.$partial, z.ZodEnum<{
|
|
192
182
|
disabled: "disabled";
|
|
193
183
|
encrypted: "encrypted";
|
|
194
184
|
permissive: "permissive";
|
|
195
|
-
}
|
|
196
|
-
export declare const dashboardWritePolicyMapSchema: z.ZodDefault<z.
|
|
185
|
+
}>>;
|
|
186
|
+
export declare const dashboardWritePolicyMapSchema: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
197
187
|
"attestations.retry": "attestations.retry";
|
|
198
188
|
"backends.sync": "backends.sync";
|
|
199
189
|
"backends.sync_one": "backends.sync_one";
|
|
@@ -221,11 +211,11 @@ export declare const dashboardWritePolicyMapSchema: z.ZodDefault<z.ZodPipe<z.Zod
|
|
|
221
211
|
"secrets.set": "secrets.set";
|
|
222
212
|
"variables.delete": "variables.delete";
|
|
223
213
|
"variables.set": "variables.set";
|
|
224
|
-
}> & z.core.$partial, z.
|
|
214
|
+
}> & z.core.$partial, z.ZodEnum<{
|
|
225
215
|
disabled: "disabled";
|
|
226
216
|
encrypted: "encrypted";
|
|
227
217
|
permissive: "permissive";
|
|
228
|
-
}
|
|
218
|
+
}>>>;
|
|
229
219
|
/**
|
|
230
220
|
* Resolve the effective posture of an operation given a (possibly sparse)
|
|
231
221
|
* policy map. Treats `undefined` as the permissive default.
|
|
@@ -367,23 +367,8 @@ const DashboardWritePolicyState = z.enum([
|
|
|
367
367
|
"disabled"
|
|
368
368
|
]);
|
|
369
369
|
/**
|
|
370
|
-
*
|
|
371
|
-
* {@link DashboardWritePolicyState}
|
|
372
|
-
* JSONB rows) carry the legacy boolean shape: `true` (enabled/permissive) and
|
|
373
|
-
* `false` (disabled). New peers carry the enum string directly. This keeps the
|
|
374
|
-
* protected wire + storage surfaces backward-compatible during the deprecation
|
|
375
|
-
* window — a boolean is never rejected, it is translated.
|
|
376
|
-
*/
|
|
377
|
-
function coerceDashboardWritePolicyValue(value) {
|
|
378
|
-
if (value === true) return "permissive";
|
|
379
|
-
if (value === false) return "disabled";
|
|
380
|
-
const parsed = DashboardWritePolicyState.safeParse(value);
|
|
381
|
-
return parsed.success ? parsed.data : "permissive";
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Validates a sparse policy map. Accepts BOTH the enum-string shape and the
|
|
385
|
-
* legacy boolean shape (coerced), so an older orchestrator's boolean map and a
|
|
386
|
-
* pre-migration JSONB row both parse. `encrypted` is rejected for any operation
|
|
370
|
+
* Validates a sparse policy map. Every value is a
|
|
371
|
+
* {@link DashboardWritePolicyState}; `encrypted` is rejected for any operation
|
|
387
372
|
* whose sensitivity is not `plaintext` (nothing to seal without a plaintext
|
|
388
373
|
* payload; the signing half that would cover authority/dispatch ops is a
|
|
389
374
|
* separate feature). Use this where the value is required but may be empty
|
|
@@ -391,11 +376,7 @@ function coerceDashboardWritePolicyValue(value) {
|
|
|
391
376
|
* embed `dashboardWritePolicyMap` directly with `.optional()` so omission stays
|
|
392
377
|
* as `undefined` rather than being coerced to `{}`.
|
|
393
378
|
*/
|
|
394
|
-
const dashboardWritePolicyMap = z.partialRecord(DashboardWriteOperation,
|
|
395
|
-
const out = {};
|
|
396
|
-
for (const [op, value] of Object.entries(map)) out[op] = coerceDashboardWritePolicyValue(value);
|
|
397
|
-
return out;
|
|
398
|
-
}).superRefine((map, ctx) => {
|
|
379
|
+
const dashboardWritePolicyMap = z.partialRecord(DashboardWriteOperation, DashboardWritePolicyState).superRefine((map, ctx) => {
|
|
399
380
|
for (const [op, state] of Object.entries(map)) {
|
|
400
381
|
if (state !== "encrypted") continue;
|
|
401
382
|
if (DASHBOARD_WRITE_OPERATIONS_BY_NAME.get(op)?.sensitivity !== "plaintext") ctx.addIssue({
|
|
@@ -411,9 +392,7 @@ const dashboardWritePolicyMapSchema = dashboardWritePolicyMap.default({});
|
|
|
411
392
|
* policy map. Treats `undefined` as the permissive default.
|
|
412
393
|
*/
|
|
413
394
|
function resolvePolicyState(policy, op) {
|
|
414
|
-
|
|
415
|
-
if (raw === void 0) return "permissive";
|
|
416
|
-
return coerceDashboardWritePolicyValue(raw);
|
|
395
|
+
return policy?.[op] ?? "permissive";
|
|
417
396
|
}
|
|
418
397
|
/**
|
|
419
398
|
* Resolve the effective enabled state of an operation. `true` unless the
|
|
@@ -452,6 +431,6 @@ function resolveFullPolicyStateView(policy) {
|
|
|
452
431
|
return out;
|
|
453
432
|
}
|
|
454
433
|
//#endregion
|
|
455
|
-
export { CLI_INDEPENDENT_ONLY_OPERATIONS, DASHBOARD_WRITE_OPERATIONS, DASHBOARD_WRITE_OPERATIONS_BY_NAME, DASHBOARD_WRITE_OPERATIONS_BY_WIRE_TYPE, DASHBOARD_WRITE_OPERATION_VALUES, DashboardWriteCategory, DashboardWriteOperation, DashboardWritePolicyState, DashboardWriteSensitivity,
|
|
434
|
+
export { CLI_INDEPENDENT_ONLY_OPERATIONS, DASHBOARD_WRITE_OPERATIONS, DASHBOARD_WRITE_OPERATIONS_BY_NAME, DASHBOARD_WRITE_OPERATIONS_BY_WIRE_TYPE, DASHBOARD_WRITE_OPERATION_VALUES, DashboardWriteCategory, DashboardWriteOperation, DashboardWritePolicyState, DashboardWriteSensitivity, dashboardWritePolicyMap, dashboardWritePolicyMapSchema, getDashboardWriteOperationDescriptor, getDashboardWriteOperationsByCategory, getDashboardWriteOperationsBySensitivity, isDashboardWriteOperationEnabled, isEncryptedState, resolveFullPolicyStateView, resolveFullPolicyView, resolvePolicyState };
|
|
456
435
|
|
|
457
436
|
//# sourceMappingURL=dashboard-write-operations.js.map
|
|
@@ -213,7 +213,6 @@ export declare const agentRunResultSchema: z.ZodObject<{
|
|
|
213
213
|
completedAt: z.ZodNullable<z.ZodString>;
|
|
214
214
|
durationMs: z.ZodNullable<z.ZodNumber>;
|
|
215
215
|
trustTier: z.ZodNullable<z.ZodEnum<{
|
|
216
|
-
known: "known";
|
|
217
216
|
trusted: "trusted";
|
|
218
217
|
unknown: "unknown";
|
|
219
218
|
}>>;
|
|
@@ -9,7 +9,7 @@ export declare const authRequestSchema: z.ZodObject<{
|
|
|
9
9
|
coordinator: "coordinator";
|
|
10
10
|
worker: "worker";
|
|
11
11
|
}>>;
|
|
12
|
-
dashboardWrites: z.ZodOptional<z.
|
|
12
|
+
dashboardWrites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
13
13
|
"attestations.retry": "attestations.retry";
|
|
14
14
|
"backends.sync": "backends.sync";
|
|
15
15
|
"backends.sync_one": "backends.sync_one";
|
|
@@ -37,11 +37,11 @@ export declare const authRequestSchema: z.ZodObject<{
|
|
|
37
37
|
"secrets.set": "secrets.set";
|
|
38
38
|
"variables.delete": "variables.delete";
|
|
39
39
|
"variables.set": "variables.set";
|
|
40
|
-
}> & z.core.$partial, z.
|
|
40
|
+
}> & z.core.$partial, z.ZodEnum<{
|
|
41
41
|
disabled: "disabled";
|
|
42
42
|
encrypted: "encrypted";
|
|
43
43
|
permissive: "permissive";
|
|
44
|
-
}
|
|
44
|
+
}>>>;
|
|
45
45
|
supportedDashboardRequests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
46
46
|
dashboardEncryptionKey: z.ZodOptional<z.ZodObject<{
|
|
47
47
|
kty: z.ZodLiteral<"OKP">;
|
|
@@ -36,7 +36,7 @@ export declare const orchCapabilitiesSchema: z.ZodObject<{
|
|
|
36
36
|
coordinator: "coordinator";
|
|
37
37
|
worker: "worker";
|
|
38
38
|
}>>;
|
|
39
|
-
dashboardWrites: z.ZodOptional<z.
|
|
39
|
+
dashboardWrites: z.ZodOptional<z.ZodRecord<z.ZodEnum<{
|
|
40
40
|
"attestations.retry": "attestations.retry";
|
|
41
41
|
"backends.sync": "backends.sync";
|
|
42
42
|
"backends.sync_one": "backends.sync_one";
|
|
@@ -64,11 +64,11 @@ export declare const orchCapabilitiesSchema: z.ZodObject<{
|
|
|
64
64
|
"secrets.set": "secrets.set";
|
|
65
65
|
"variables.delete": "variables.delete";
|
|
66
66
|
"variables.set": "variables.set";
|
|
67
|
-
}> & z.core.$partial, z.
|
|
67
|
+
}> & z.core.$partial, z.ZodEnum<{
|
|
68
68
|
disabled: "disabled";
|
|
69
69
|
encrypted: "encrypted";
|
|
70
70
|
permissive: "permissive";
|
|
71
|
-
}
|
|
71
|
+
}>>>;
|
|
72
72
|
supportedDashboardRequests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
73
|
dashboardEncryptionKey: z.ZodOptional<z.ZodObject<{
|
|
74
74
|
kty: z.ZodLiteral<"OKP">;
|
|
@@ -102,14 +102,12 @@ export declare function hasOrchCapability(capabilities: OrchCapabilities | undef
|
|
|
102
102
|
*/
|
|
103
103
|
export declare const platformCapabilitiesSchema: z.ZodObject<{
|
|
104
104
|
orchMetrics: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
oidcMint: z.ZodOptional<z.ZodBoolean>;
|
|
106
105
|
}, z.core.$loose>;
|
|
107
106
|
/** Inferred type for Platform capabilities. */
|
|
108
107
|
export type PlatformCapabilities = z.infer<typeof platformCapabilitiesSchema>;
|
|
109
108
|
/** Default Platform capabilities advertised to the orchestrator after auth. */
|
|
110
109
|
export declare const PLATFORM_CAPABILITIES: Readonly<{
|
|
111
110
|
orchMetrics: true;
|
|
112
|
-
oidcMint: true;
|
|
113
111
|
}>;
|
|
114
112
|
/**
|
|
115
113
|
* Check whether the Platform advertises a specific capability flag.
|
|
@@ -91,17 +91,11 @@ function hasOrchCapability(capabilities, flag) {
|
|
|
91
91
|
* Every field is optional and absent = unsupported (same evolution contract as
|
|
92
92
|
* `orchCapabilitiesSchema`).
|
|
93
93
|
*/
|
|
94
|
-
const platformCapabilitiesSchema = z.object({
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/** Platform serves the orchestrator-initiated `oidc.mint.request` RPC. */
|
|
98
|
-
oidcMint: z.boolean().optional()
|
|
99
|
-
}).passthrough();
|
|
94
|
+
const platformCapabilitiesSchema = z.object({
|
|
95
|
+
/** Platform ingests periodic `orch.metrics` telemetry pushes. */
|
|
96
|
+
orchMetrics: z.boolean().optional() }).passthrough();
|
|
100
97
|
/** Default Platform capabilities advertised to the orchestrator after auth. */
|
|
101
|
-
const PLATFORM_CAPABILITIES = Object.freeze({
|
|
102
|
-
orchMetrics: true,
|
|
103
|
-
oidcMint: true
|
|
104
|
-
});
|
|
98
|
+
const PLATFORM_CAPABILITIES = Object.freeze({ orchMetrics: true });
|
|
105
99
|
/**
|
|
106
100
|
* Check whether the Platform advertises a specific capability flag.
|
|
107
101
|
*
|