@kici-dev/engine 0.9.1 → 0.10.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/index.d.ts +1 -1
- package/dist/index.js +7 -7
- package/dist/labels.d.ts +36 -1
- package/dist/labels.js +38 -3
- package/dist/protocol/messages/agent-run-result.d.ts +1 -0
- package/dist/protocol/messages/agent-run-result.js +7 -1
- package/dist/protocol/messages/capabilities.d.ts +29 -0
- package/dist/protocol/messages/capabilities.js +34 -1
- package/dist/protocol/messages/dashboard.d.ts +21 -0
- package/dist/protocol/messages/dashboard.js +32 -7
- package/dist/protocol/messages/execution-status.d.ts +7 -0
- package/dist/protocol/messages/execution-status.js +20 -2
- package/dist/protocol/messages/orchestrator-agent.d.ts +13 -0
- package/dist/protocol/messages/orchestrator-agent.js +16 -3
- package/dist/protocol/messages/peer.d.ts +3 -0
- package/dist/protocol/messages/peer.js +2 -0
- package/dist/protocol/messages/platform-orchestrator.d.ts +4 -0
- package/dist/provenance/id-token-claim-names.d.ts +1 -1
- package/dist/provenance/id-token-claim-names.js +1 -0
- package/dist/provider/check-status-poster.d.ts +1 -13
- package/dist/trigger/types.d.ts +28 -7
- package/dist/trigger/types.js +17 -2
- package/package.json +1 -1
- package/sbom.spdx.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ export type { RateLimiterConfig, RateLimitResult } from './ws/rate-limiter.js';
|
|
|
68
68
|
export * from './env/environment-allowlist.js';
|
|
69
69
|
export * from './secrets/index.js';
|
|
70
70
|
export * from './context/index.js';
|
|
71
|
-
export { deriveOsArchLabels, derivePlatformTaints, PLATFORM_TAINT_LABELS, ScalerOs, ScalerArch, scalerPlatformSchema, platformToOsArchLabels, platformToTaints, nodePlatformToScalerOs, nodeArchToScalerArch, hostToScalerPlatform, hostLabel, parseHostLabel, HOST_LABEL_PREFIX, agentTypeLabel, scalerLabel, mergeAutoLabels, normalizeRunsOn, KNOWN_ROLES, resolveRoleLabels, validateNoReservedLabels, scalerAgentLabels, isSelfReportedLabel, SELF_REPORTED_LABEL_PREFIXES, CAPABILITY_LABEL_PREFIX, capabilityLabel, SSH_TRANSPORT_CAPABILITY, RUNTIME_LABEL_PREFIX, runtimeLabel, RuntimeFact, CONTAINER_BUILD_RUNTIME_LABEL, INIT_LABEL, PRIVILEGED_ROOT_LABEL, INIT_RUNNER_ROLE_LABEL, } from './labels.js';
|
|
71
|
+
export { deriveOsArchLabels, derivePlatformTaints, PLATFORM_TAINT_LABELS, ScalerOs, ScalerArch, scalerPlatformSchema, platformToOsArchLabels, platformToTaints, nodePlatformToScalerOs, nodeArchToScalerArch, hostToScalerPlatform, hostLabel, parseHostLabel, HOST_LABEL_PREFIX, agentTypeLabel, scalerLabel, mergeAutoLabels, normalizeRunsOn, KNOWN_ROLES, resolveRoleLabels, validateNoReservedLabels, scalerAgentLabels, isSelfReportedLabel, SELF_REPORTED_LABEL_PREFIXES, CAPABILITY_LABEL_PREFIX, capabilityLabel, SSH_TRANSPORT_CAPABILITY, RUNTIME_LABEL_PREFIX, runtimeLabel, RuntimeFact, CONTAINER_BUILD_RUNTIME_LABEL, JOB_IMAGE_RUNTIME_LABEL, AGENT_FEATURE_LABEL_PREFIX, AgentFeature, agentFeatureLabel, GLOBAL_EVAL_SKIPS_RESULT_AWARE_LABEL, AGENT_FEATURE_LABELS, INIT_LABEL, PRIVILEGED_ROOT_LABEL, INIT_RUNNER_ROLE_LABEL, } from './labels.js';
|
|
72
72
|
export type { NormalizedRunsOn } from './labels.js';
|
|
73
73
|
export type { AgentRole } from './labels.js';
|
|
74
74
|
export type { ScalerPlatform } from './labels.js';
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { HeldRunStatus } from "./context/held-run-status.js";
|
|
|
14
14
|
import { HoldType, normalizePersistedHoldType, persistedHoldTypeSpellings } from "./context/hold-type.js";
|
|
15
15
|
import { resolveHeldRunId } from "./mcp/held-run-resolve.js";
|
|
16
16
|
import { renderFenced } from "./mcp/fence.js";
|
|
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 { 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_EPOCH_MAX, 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";
|
|
18
18
|
import { MinimumTrustSchema, TrustTierSchema } from "./context/types.js";
|
|
19
19
|
import { AgentFailureCategory, agentJobResultSchema, agentRunListItemSchema, agentRunResultSchema, agentStepLogsSchema, agentStepResultSchema, agentWorkflowSummarySchema, untrusted, wrapUntrusted } from "./protocol/messages/agent-run-result.js";
|
|
20
20
|
import { AccessLogAction, AccessLogOutcome, AccessLogSource, AccessLogTargetType, accessLogFilterSchema, accessLogItemSchema, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema } from "./protocol/messages/access-log.js";
|
|
@@ -26,15 +26,15 @@ import { OWN_INGRESS_MODES, OrchestratorMode, PLATFORM_CONNECTED_MODES, RELAY_IN
|
|
|
26
26
|
import { INTERNAL_EVENT_NAME_PREFIX, KICI_EVENT_NAME_PREFIX, ScalerBackendType, reservedEventNamePrefix } from "./scaler/scaler-backend-type.js";
|
|
27
27
|
import { ApprovalDecision, HoldScope, TriggerSource, approvalRequirementSchema, approvalTimeoutSecondsSchema, approverClauseSchema } from "./approval/types.js";
|
|
28
28
|
import { CANONICAL_STATUSES, LEGACY_STATUS_ALIASES, STATUS_FAILURE_CLASS, STATUS_PRECEDENCE, StatusFailureClass, isFailureStatus, toCanonicalStatus, worstStatus } from "./status/presentation.js";
|
|
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
|
+
import { BREAKING_FLOOR, GLOBAL_APPROVAL_MIN_READER, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, OnUnreachableMode, RunsOnPick, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, changedFilesStatusSchema, isLockDynamicJobFn, isLockParallelStep, isLockStaticJob, resolveContentFormat, resolveWhenToRunOn } from "./trigger/types.js";
|
|
30
30
|
import { canonicalizeLabel, canonicalizeLabelSet, canonicalizeLabels } from "./labels-canonical.js";
|
|
31
31
|
import { normalizeRegexFlags, stripStatefulRegexFlags } from "./regex-flags.js";
|
|
32
32
|
import { HostTargetSelector, HostTargetValue, LabelMatcher, canonicalizeMatcher, compileRegexMatcher, hostSatisfiesTarget, matcherMatches, matcherSatisfiedBy, partitionMatchers } from "./labels-match.js";
|
|
33
33
|
import { ConcurrencyStrategy, DEFAULT_CONCURRENCY_STRATEGY } from "./context/concurrency-strategy.js";
|
|
34
34
|
import { HostInventoryEntry, HostPropertyValue, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, coerceHostPropertyValue, parseHostPropertyAssignments } from "./inventory.js";
|
|
35
35
|
import { REGEX_NEGATIVE_ASSERTION, isNegatedPattern, negatedPatternReason } from "./repo/pattern-negation.js";
|
|
36
|
-
import { ContextDeleteErrorCode, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DashboardResponseErrorCode, EventLogPayloadStreamError, FleetHostDisposition, HeldRunQueueType, TestRelayType, artifactListItemSchema, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, 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, 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, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, eventLogActivityCountsSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, 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";
|
|
37
|
-
import { ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, OrchRole, PLATFORM_CAPABILITIES, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, platformCapabilitiesSchema } from "./protocol/messages/capabilities.js";
|
|
36
|
+
import { ContextDeleteErrorCode, ContextType, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DashboardResponseErrorCode, EventLogPayloadStreamError, FleetHostDisposition, HeldRunQueueType, TestRelayType, artifactListItemSchema, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, 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, 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, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, eventLogActivityCountsSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, 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";
|
|
37
|
+
import { AGENT_CAPABILITIES, AgentCapabilityFlag, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, OrchRole, PLATFORM_CAPABILITIES, agentCapabilitiesSchema, hasAgentCapability, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, platformCapabilitiesSchema } from "./protocol/messages/capabilities.js";
|
|
38
38
|
import { authFailureSchema, authRequestSchema, authSuccessSchema } from "./protocol/messages/auth.js";
|
|
39
39
|
import { LogStream } from "./protocol/messages/log-stream.js";
|
|
40
40
|
import { CLUSTER_MEMBERSHIP_MAX_WORKERS, CiTrustLevel, DEFAULT_APPROVAL_EXPIRY_HOURS, DEFAULT_APPROVAL_EXPIRY_SECONDS, ForkPolicy, MAX_APPROVAL_EXPIRY_HOURS, MAX_APPROVAL_EXPIRY_SECONDS, MIN_APPROVAL_EXPIRY_SECONDS, ORCH_TO_PLATFORM_RECOGNIZED_TYPES, OrchLogPhase, PLATFORM_TO_ORCH_RECOGNIZED_TYPES, SECONDS_PER_HOUR, WEBHOOK_RELAY_CHUNK_SIZE, WEBHOOK_RELAY_MAX_BODY_BYTES, WebhookRelayResult, approvalExpiryHoursOf, approvalExpirySecondsOf, cacheStatsSchema, clusterMembershipSchema, collectDiscriminatorTypes, executionEventSchema, logChunkSchema, orchLogChunkSchema, orchMetricsSchema, orchestratorToPlatformMessageSchema, peerDiscoverSchema, peerUpdateSchema, planHeadroomSchema, platformCapabilitiesMessageSchema, platformToOrchestratorMessageSchema, staleCheckrunCleanupSchema, trustPolicySchema, trustPolicyUpdateSchema, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema } from "./protocol/messages/platform-orchestrator.js";
|
|
@@ -50,7 +50,7 @@ import { EVENT_LOG_PAYLOAD_CHUNK_BYTES } from "./protocol/event-log-payload.js";
|
|
|
50
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";
|
|
51
51
|
import { joinRequestSchema, joinResponseSchema } from "./protocol/messages/join.js";
|
|
52
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";
|
|
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
|
+
import { AGENT_API_REQUEST_TIMEOUT_MS, 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";
|
|
54
54
|
import { KNOWN_LINUX_CAPABILITIES, canonicalizeCapability, isKnownCapability } from "./sandbox/capabilities.js";
|
|
55
55
|
import { compileSafeRegex, describeTextMatch, evaluateTextMatch, textMatchHasQuery } from "./trigger/text-match.js";
|
|
56
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";
|
|
@@ -82,7 +82,7 @@ import { ContextGateRejectReason, mergeOrderedMaps } from "./context/multi-conte
|
|
|
82
82
|
import { SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, ScopeNameError, assertValidScopeName, validateScopeName } from "./context/scope-name.js";
|
|
83
83
|
import { SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SecretKeyError, assertValidSecretKey, validateSecretKey } from "./context/secret-key.js";
|
|
84
84
|
import "./context/index.js";
|
|
85
|
-
import { CAPABILITY_LABEL_PREFIX, CONTAINER_BUILD_RUNTIME_LABEL, HOST_LABEL_PREFIX, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, RUNTIME_LABEL_PREFIX, RuntimeFact, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, ScalerArch, ScalerOs, agentTypeLabel, capabilityLabel, deriveOsArchLabels, derivePlatformTaints, hostLabel, hostToScalerPlatform, isSelfReportedLabel, mergeAutoLabels, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeRunsOn, parseHostLabel, platformToOsArchLabels, platformToTaints, resolveRoleLabels, runtimeLabel, scalerAgentLabels, scalerLabel, scalerPlatformSchema, validateNoReservedLabels } from "./labels.js";
|
|
85
|
+
import { AGENT_FEATURE_LABELS, AGENT_FEATURE_LABEL_PREFIX, AgentFeature, CAPABILITY_LABEL_PREFIX, CONTAINER_BUILD_RUNTIME_LABEL, GLOBAL_EVAL_SKIPS_RESULT_AWARE_LABEL, HOST_LABEL_PREFIX, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, JOB_IMAGE_RUNTIME_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, RUNTIME_LABEL_PREFIX, RuntimeFact, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, ScalerArch, ScalerOs, agentFeatureLabel, agentTypeLabel, capabilityLabel, deriveOsArchLabels, derivePlatformTaints, hostLabel, hostToScalerPlatform, isSelfReportedLabel, mergeAutoLabels, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeRunsOn, parseHostLabel, platformToOsArchLabels, platformToTaints, resolveRoleLabels, runtimeLabel, scalerAgentLabels, scalerLabel, scalerPlatformSchema, validateNoReservedLabels } from "./labels.js";
|
|
86
86
|
import { SCALER_EVENT_NAMES, ScaleDownReason, ScalerScaleDownPayload, ScalerScaleUpPayload } from "./scaler/scaler-events.js";
|
|
87
87
|
import { parseMemoryString, resourceRequestNestedSchema, resourceSpecSchema, validateResourceRequest } from "./scaler/resource-types.js";
|
|
88
88
|
import { RegisterableTriggerType } from "./registration/registerable-trigger-type.js";
|
|
@@ -95,4 +95,4 @@ import { ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, ArtifactNameSch
|
|
|
95
95
|
import { PLAN_TYPES, PaidPlanType, PlanType, isPaidTier, planRank } from "./billing/plan-type.js";
|
|
96
96
|
import { SUBSCRIPTION_EXISTS_CODE, StripeSubscriptionStatus, blocksNewCheckout } from "./billing/subscription-status.js";
|
|
97
97
|
import { INFRA_ALERT_TYPES, InfraAlertSeverity, InfraAlertType, normalizeInfraAlertSeverity } from "./diagnostics/infra-alert.js";
|
|
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 };
|
|
98
|
+
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, ACTOR_AGENT_SUFFIX, AGENT_API_REQUEST_TIMEOUT_MS, AGENT_CAPABILITIES, AGENT_FEATURE_LABELS, AGENT_FEATURE_LABEL_PREFIX, AGENT_REQUIRED_KICI_VARS, ALLOWED_SYSTEM_VARS, ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, AccessLogAction, AccessLogOutcome, AccessLogPolicyKind, AccessLogSource, AccessLogTargetType, ActivityFilterSource, ActivityRowSource, ActorType, AgentCapabilityFlag, AgentFailureCategory, AgentFeature, 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, ContextType, 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, GLOBAL_APPROVAL_MIN_READER, GLOBAL_EVAL_SKIPS_RESULT_AWARE_LABEL, 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, JOB_IMAGE_RUNTIME_LABEL, 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_EPOCH_MAX, 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, agentCapabilitiesSchema, agentDiagnosticsConnectionSchema, agentDiagnosticsSchema, agentFeatureLabel, 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, hasAgentCapability, 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 };
|
package/dist/labels.d.ts
CHANGED
|
@@ -198,15 +198,50 @@ export declare function runtimeLabel(name: string): string;
|
|
|
198
198
|
* build a job's image from a Dockerfile. Distinct from the two above: a host
|
|
199
199
|
* reachable only through a mounted socket can RUN containers but not BUILD
|
|
200
200
|
* one, because the build shells out to the CLI.
|
|
201
|
+
* - `job-image` — the agent runs inside one job's own container image, started
|
|
202
|
+
* for that job. Any other job would run in an image it never declared, so the
|
|
203
|
+
* orchestrator gives such an agent no other work. The fact only ever
|
|
204
|
+
* restricts the agent reporting it, so taking it on the agent's word grants
|
|
205
|
+
* nothing.
|
|
201
206
|
*/
|
|
202
207
|
export declare const RuntimeFact: z.ZodEnum<{
|
|
203
208
|
"container-build": "container-build";
|
|
204
209
|
docker: "docker";
|
|
210
|
+
"job-image": "job-image";
|
|
205
211
|
podman: "podman";
|
|
206
212
|
}>;
|
|
207
213
|
export type RuntimeFact = z.infer<typeof RuntimeFact>;
|
|
208
214
|
/** The label a job's `runsOn` names to require a host that can build an image. */
|
|
209
215
|
export declare const CONTAINER_BUILD_RUNTIME_LABEL: string;
|
|
216
|
+
/** The label an agent running inside a job's own image registers with. */
|
|
217
|
+
export declare const JOB_IMAGE_RUNTIME_LABEL: string;
|
|
218
|
+
/**
|
|
219
|
+
* Agent-feature label prefix — `kici:agent-feature:<name>` states a behaviour
|
|
220
|
+
* the agent BUILD implements. Like `kici:runtime:`, it is a fact, not a
|
|
221
|
+
* privilege: it lets the orchestrator route work that depends on the behaviour
|
|
222
|
+
* to an agent that has it, and asserting it grants nothing.
|
|
223
|
+
*/
|
|
224
|
+
export declare const AGENT_FEATURE_LABEL_PREFIX = "kici:agent-feature:";
|
|
225
|
+
/**
|
|
226
|
+
* Behaviours an agent build reports at registration.
|
|
227
|
+
*
|
|
228
|
+
* - `global-eval-skips-result-aware` — the pre-run global eval round runs only
|
|
229
|
+
* the needs-free generators and skips every generator declared with `needs`.
|
|
230
|
+
*/
|
|
231
|
+
export declare const AgentFeature: z.ZodEnum<{
|
|
232
|
+
"global-eval-skips-result-aware": "global-eval-skips-result-aware";
|
|
233
|
+
}>;
|
|
234
|
+
export type AgentFeature = z.infer<typeof AgentFeature>;
|
|
235
|
+
/** Build a `kici:agent-feature:<name>` label. */
|
|
236
|
+
export declare function agentFeatureLabel(feature: AgentFeature): string;
|
|
237
|
+
/** The label a global eval round carries when it must skip result-aware generators. */
|
|
238
|
+
export declare const GLOBAL_EVAL_SKIPS_RESULT_AWARE_LABEL: string;
|
|
239
|
+
/**
|
|
240
|
+
* Every agent-feature label this build implements: what the agent self-reports
|
|
241
|
+
* at registration, and what a scaler adds to the label sets of the agents it
|
|
242
|
+
* spawns so it matches the same jobs.
|
|
243
|
+
*/
|
|
244
|
+
export declare const AGENT_FEATURE_LABELS: readonly string[];
|
|
210
245
|
/**
|
|
211
246
|
* The `kici:init` lifecycle label carried by a temporary init-runner agent
|
|
212
247
|
* brought up on a fresh box for bootstrap. Marks it as ephemeral + privileged;
|
|
@@ -282,7 +317,7 @@ export declare function scalerAgentLabels(labelSet: string[], backendType: strin
|
|
|
282
317
|
* for a fact about the host and WRONG for anything that grants a privilege —
|
|
283
318
|
* `kici:capability:` is absent from this list for exactly that reason.
|
|
284
319
|
*/
|
|
285
|
-
export declare const SELF_REPORTED_LABEL_PREFIXES: readonly ['kici:os:', 'kici:arch:', 'kici:host:', "kici:runtime:"];
|
|
320
|
+
export declare const SELF_REPORTED_LABEL_PREFIXES: readonly ['kici:os:', 'kici:arch:', 'kici:host:', "kici:runtime:", "kici:agent-feature:"];
|
|
286
321
|
/**
|
|
287
322
|
* True if a label is a self-reported platform fact (os/arch/host) rather than a
|
|
288
323
|
* scaler-assigned, authorization-bearing label. Used by the agent register-time
|
package/dist/labels.js
CHANGED
|
@@ -277,14 +277,48 @@ function runtimeLabel(name) {
|
|
|
277
277
|
* build a job's image from a Dockerfile. Distinct from the two above: a host
|
|
278
278
|
* reachable only through a mounted socket can RUN containers but not BUILD
|
|
279
279
|
* one, because the build shells out to the CLI.
|
|
280
|
+
* - `job-image` — the agent runs inside one job's own container image, started
|
|
281
|
+
* for that job. Any other job would run in an image it never declared, so the
|
|
282
|
+
* orchestrator gives such an agent no other work. The fact only ever
|
|
283
|
+
* restricts the agent reporting it, so taking it on the agent's word grants
|
|
284
|
+
* nothing.
|
|
280
285
|
*/
|
|
281
286
|
const RuntimeFact = z.enum([
|
|
282
287
|
"docker",
|
|
283
288
|
"podman",
|
|
284
|
-
"container-build"
|
|
289
|
+
"container-build",
|
|
290
|
+
"job-image"
|
|
285
291
|
]);
|
|
286
292
|
/** The label a job's `runsOn` names to require a host that can build an image. */
|
|
287
293
|
const CONTAINER_BUILD_RUNTIME_LABEL = runtimeLabel(RuntimeFact.enum["container-build"]);
|
|
294
|
+
/** The label an agent running inside a job's own image registers with. */
|
|
295
|
+
const JOB_IMAGE_RUNTIME_LABEL = runtimeLabel(RuntimeFact.enum["job-image"]);
|
|
296
|
+
/**
|
|
297
|
+
* Agent-feature label prefix — `kici:agent-feature:<name>` states a behaviour
|
|
298
|
+
* the agent BUILD implements. Like `kici:runtime:`, it is a fact, not a
|
|
299
|
+
* privilege: it lets the orchestrator route work that depends on the behaviour
|
|
300
|
+
* to an agent that has it, and asserting it grants nothing.
|
|
301
|
+
*/
|
|
302
|
+
const AGENT_FEATURE_LABEL_PREFIX = "kici:agent-feature:";
|
|
303
|
+
/**
|
|
304
|
+
* Behaviours an agent build reports at registration.
|
|
305
|
+
*
|
|
306
|
+
* - `global-eval-skips-result-aware` — the pre-run global eval round runs only
|
|
307
|
+
* the needs-free generators and skips every generator declared with `needs`.
|
|
308
|
+
*/
|
|
309
|
+
const AgentFeature = z.enum(["global-eval-skips-result-aware"]);
|
|
310
|
+
/** Build a `kici:agent-feature:<name>` label. */
|
|
311
|
+
function agentFeatureLabel(feature) {
|
|
312
|
+
return `${AGENT_FEATURE_LABEL_PREFIX}${feature}`;
|
|
313
|
+
}
|
|
314
|
+
/** The label a global eval round carries when it must skip result-aware generators. */
|
|
315
|
+
const GLOBAL_EVAL_SKIPS_RESULT_AWARE_LABEL = agentFeatureLabel(AgentFeature.enum["global-eval-skips-result-aware"]);
|
|
316
|
+
/**
|
|
317
|
+
* Every agent-feature label this build implements: what the agent self-reports
|
|
318
|
+
* at registration, and what a scaler adds to the label sets of the agents it
|
|
319
|
+
* spawns so it matches the same jobs.
|
|
320
|
+
*/
|
|
321
|
+
const AGENT_FEATURE_LABELS = AgentFeature.options.map(agentFeatureLabel);
|
|
288
322
|
/**
|
|
289
323
|
* The `kici:init` lifecycle label carried by a temporary init-runner agent
|
|
290
324
|
* brought up on a fresh box for bootstrap. Marks it as ephemeral + privileged;
|
|
@@ -379,7 +413,8 @@ const SELF_REPORTED_LABEL_PREFIXES = [
|
|
|
379
413
|
"kici:os:",
|
|
380
414
|
"kici:arch:",
|
|
381
415
|
"kici:host:",
|
|
382
|
-
RUNTIME_LABEL_PREFIX
|
|
416
|
+
RUNTIME_LABEL_PREFIX,
|
|
417
|
+
AGENT_FEATURE_LABEL_PREFIX
|
|
383
418
|
];
|
|
384
419
|
/**
|
|
385
420
|
* True if a label is a self-reported platform fact (os/arch/host) rather than a
|
|
@@ -417,6 +452,6 @@ function separateLabels(labels) {
|
|
|
417
452
|
};
|
|
418
453
|
}
|
|
419
454
|
//#endregion
|
|
420
|
-
export { CAPABILITY_LABEL_PREFIX, CONTAINER_BUILD_RUNTIME_LABEL, HOST_LABEL_PREFIX, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, RESERVED_LABEL_PREFIX, ROLE_LABEL_PREFIX, RUNTIME_LABEL_PREFIX, RuntimeFact, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, ScalerArch, ScalerOs, agentTypeLabel, capabilityLabel, deriveOsArchLabels, derivePlatformTaints, hostLabel, hostToScalerPlatform, isAutoLabel, isSelfReportedLabel, mergeAutoLabels, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeRunsOn, parseHostLabel, platformToOsArchLabels, platformToTaints, resolveRoleLabels, roleToLabel, runtimeLabel, scalerAgentLabels, scalerLabel, scalerPlatformSchema, separateLabels, validateNoReservedLabels };
|
|
455
|
+
export { AGENT_FEATURE_LABELS, AGENT_FEATURE_LABEL_PREFIX, AgentFeature, CAPABILITY_LABEL_PREFIX, CONTAINER_BUILD_RUNTIME_LABEL, GLOBAL_EVAL_SKIPS_RESULT_AWARE_LABEL, HOST_LABEL_PREFIX, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, JOB_IMAGE_RUNTIME_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, RESERVED_LABEL_PREFIX, ROLE_LABEL_PREFIX, RUNTIME_LABEL_PREFIX, RuntimeFact, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, ScalerArch, ScalerOs, agentFeatureLabel, agentTypeLabel, capabilityLabel, deriveOsArchLabels, derivePlatformTaints, hostLabel, hostToScalerPlatform, isAutoLabel, isSelfReportedLabel, mergeAutoLabels, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeRunsOn, parseHostLabel, platformToOsArchLabels, platformToTaints, resolveRoleLabels, roleToLabel, runtimeLabel, scalerAgentLabels, scalerLabel, scalerPlatformSchema, separateLabels, validateNoReservedLabels };
|
|
421
456
|
|
|
422
457
|
//# sourceMappingURL=labels.js.map
|
|
@@ -355,6 +355,7 @@ export declare const agentStepLogsSchema: z.ZodObject<{
|
|
|
355
355
|
value: z.ZodString;
|
|
356
356
|
}, z.core.$strip>>;
|
|
357
357
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
358
|
+
recorded: z.ZodOptional<z.ZodBoolean>;
|
|
358
359
|
}, z.core.$strip>;
|
|
359
360
|
export type AgentStepLogs = z.infer<typeof agentStepLogsSchema>;
|
|
360
361
|
/**
|
|
@@ -117,7 +117,13 @@ const agentStepLogsSchema = z.object({
|
|
|
117
117
|
totalLines: z.number().int(),
|
|
118
118
|
/** Every log line is user/process-controlled — each is enveloped untrusted. */
|
|
119
119
|
lines: z.array(untrustedString),
|
|
120
|
-
nextCursor: z.string().nullable()
|
|
120
|
+
nextCursor: z.string().nullable(),
|
|
121
|
+
/**
|
|
122
|
+
* Whether a log is stored for the step: `false` when none was ever written,
|
|
123
|
+
* `true` when one is, even if it holds no lines. Absent when the orchestrator
|
|
124
|
+
* does not report it.
|
|
125
|
+
*/
|
|
126
|
+
recorded: z.boolean().optional()
|
|
121
127
|
});
|
|
122
128
|
/**
|
|
123
129
|
* Compact run-list row for the agent surface. KiCI ids/status/hashes are trusted
|
|
@@ -147,4 +147,33 @@ export declare const ORCH_AGENT_CAPABILITIES: Readonly<{
|
|
|
147
147
|
* undefined (pre-capability orchestrator) or the flag is missing/false.
|
|
148
148
|
*/
|
|
149
149
|
export declare function hasOrchAgentCapability(capabilities: OrchAgentCapabilities | undefined, flag: string): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Agent -> Orchestrator capabilities, advertised on `agent.register`. Same
|
|
152
|
+
* evolution contract as the other directions: every field optional, absent =
|
|
153
|
+
* unsupported, `.passthrough()` preserves a newer agent's unknown flags. Lets
|
|
154
|
+
* the orchestrator route work that depends on an optional agent behaviour only
|
|
155
|
+
* to agents that implement it.
|
|
156
|
+
*/
|
|
157
|
+
export declare const agentCapabilitiesSchema: z.ZodObject<{
|
|
158
|
+
globalEvalSkipsResultAwareGenerators: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
}, z.core.$loose>;
|
|
160
|
+
/** Flag names of {@link agentCapabilitiesSchema}, for {@link hasAgentCapability} lookups. */
|
|
161
|
+
export declare const AgentCapabilityFlag: z.ZodEnum<{
|
|
162
|
+
globalEvalSkipsResultAwareGenerators: "globalEvalSkipsResultAwareGenerators";
|
|
163
|
+
}>;
|
|
164
|
+
export type AgentCapabilityFlag = z.infer<typeof AgentCapabilityFlag>;
|
|
165
|
+
/** Inferred type for agent -> orchestrator capabilities. */
|
|
166
|
+
export type AgentCapabilities = z.infer<typeof agentCapabilitiesSchema>;
|
|
167
|
+
/** Default agent -> orchestrator capabilities advertised on agent.register. */
|
|
168
|
+
export declare const AGENT_CAPABILITIES: Readonly<{
|
|
169
|
+
globalEvalSkipsResultAwareGenerators: true;
|
|
170
|
+
}>;
|
|
171
|
+
/**
|
|
172
|
+
* Check whether an agent advertises a specific capability flag.
|
|
173
|
+
*
|
|
174
|
+
* Takes `string` (not `keyof`) because a newer agent may advertise flags this
|
|
175
|
+
* orchestrator build doesn't know about. Returns false if capabilities is
|
|
176
|
+
* undefined (pre-capability agent) or the flag is missing/false.
|
|
177
|
+
*/
|
|
178
|
+
export declare function hasAgentCapability(capabilities: AgentCapabilities | null | undefined, flag: string): boolean;
|
|
150
179
|
//# sourceMappingURL=capabilities.d.ts.map
|
|
@@ -138,7 +138,40 @@ const ORCH_AGENT_CAPABILITIES = Object.freeze({ artifactCompleteAck: true });
|
|
|
138
138
|
function hasOrchAgentCapability(capabilities, flag) {
|
|
139
139
|
return capabilities?.[flag] === true;
|
|
140
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Agent -> Orchestrator capabilities, advertised on `agent.register`. Same
|
|
143
|
+
* evolution contract as the other directions: every field optional, absent =
|
|
144
|
+
* unsupported, `.passthrough()` preserves a newer agent's unknown flags. Lets
|
|
145
|
+
* the orchestrator route work that depends on an optional agent behaviour only
|
|
146
|
+
* to agents that implement it.
|
|
147
|
+
*/
|
|
148
|
+
const agentCapabilitiesSchema = z.object({
|
|
149
|
+
/**
|
|
150
|
+
* In a pre-run global eval round the agent runs only the needs-free
|
|
151
|
+
* `DynamicJobFn`s and skips every generator declared with upstream `needs`
|
|
152
|
+
* (a result-aware generator). Such a generator runs later, on the run's
|
|
153
|
+
* deferred path, with its upstream outputs. An agent without this flag runs
|
|
154
|
+
* every generator in the round — including a result-aware one, which then
|
|
155
|
+
* sees no upstream outputs and produces the wrong jobs — so the
|
|
156
|
+
* orchestrator sends a round containing a result-aware generator only to an
|
|
157
|
+
* agent that advertises it.
|
|
158
|
+
*/
|
|
159
|
+
globalEvalSkipsResultAwareGenerators: z.boolean().optional() }).passthrough();
|
|
160
|
+
/** Flag names of {@link agentCapabilitiesSchema}, for {@link hasAgentCapability} lookups. */
|
|
161
|
+
const AgentCapabilityFlag = z.enum(["globalEvalSkipsResultAwareGenerators"]);
|
|
162
|
+
/** Default agent -> orchestrator capabilities advertised on agent.register. */
|
|
163
|
+
const AGENT_CAPABILITIES = Object.freeze({ globalEvalSkipsResultAwareGenerators: true });
|
|
164
|
+
/**
|
|
165
|
+
* Check whether an agent advertises a specific capability flag.
|
|
166
|
+
*
|
|
167
|
+
* Takes `string` (not `keyof`) because a newer agent may advertise flags this
|
|
168
|
+
* orchestrator build doesn't know about. Returns false if capabilities is
|
|
169
|
+
* undefined (pre-capability agent) or the flag is missing/false.
|
|
170
|
+
*/
|
|
171
|
+
function hasAgentCapability(capabilities, flag) {
|
|
172
|
+
return capabilities?.[flag] === true;
|
|
173
|
+
}
|
|
141
174
|
//#endregion
|
|
142
|
-
export { ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, OrchRole, PLATFORM_CAPABILITIES, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, platformCapabilitiesSchema };
|
|
175
|
+
export { AGENT_CAPABILITIES, AgentCapabilityFlag, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, OrchRole, PLATFORM_CAPABILITIES, agentCapabilitiesSchema, hasAgentCapability, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, orchAgentCapabilitiesSchema, orchCapabilitiesSchema, platformCapabilitiesSchema };
|
|
143
176
|
|
|
144
177
|
//# sourceMappingURL=capabilities.js.map
|
|
@@ -319,6 +319,7 @@ export declare const dashboardRunStateResponseSchema: z.ZodObject<{
|
|
|
319
319
|
step_failure: "step_failure";
|
|
320
320
|
timed_out: "timed_out";
|
|
321
321
|
}>>;
|
|
322
|
+
statusEpoch: z.ZodOptional<z.ZodNumber>;
|
|
322
323
|
jobs: z.ZodArray<z.ZodObject<{
|
|
323
324
|
jobId: z.ZodString;
|
|
324
325
|
jobName: z.ZodString;
|
|
@@ -601,6 +602,7 @@ export declare const dashboardStepLogsResponseSchema: z.ZodObject<{
|
|
|
601
602
|
lines: z.ZodArray<z.ZodString>;
|
|
602
603
|
totalLines: z.ZodNumber;
|
|
603
604
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
605
|
+
recorded: z.ZodOptional<z.ZodBoolean>;
|
|
604
606
|
error: z.ZodOptional<z.ZodString>;
|
|
605
607
|
}, z.core.$strip>;
|
|
606
608
|
/** Request the build-provenance attestations for a run. */
|
|
@@ -2091,6 +2093,16 @@ declare const dashboardEventDlqDiscardResponseSchema: z.ZodObject<{
|
|
|
2091
2093
|
discarded: z.ZodOptional<z.ZodBoolean>;
|
|
2092
2094
|
error: z.ZodOptional<z.ZodString>;
|
|
2093
2095
|
}, z.core.$strip>;
|
|
2096
|
+
/**
|
|
2097
|
+
* The kinds of context a job's declared context name resolves through: a
|
|
2098
|
+
* `fixed` context matches its exact name, a `glob` context any name its
|
|
2099
|
+
* pattern matches.
|
|
2100
|
+
*/
|
|
2101
|
+
export declare const ContextType: z.ZodEnum<{
|
|
2102
|
+
fixed: "fixed";
|
|
2103
|
+
glob: "glob";
|
|
2104
|
+
}>;
|
|
2105
|
+
export type ContextType = z.infer<typeof ContextType>;
|
|
2094
2106
|
/** List all contexts for the org. */
|
|
2095
2107
|
export declare const contextListRequestSchema: z.ZodObject<{
|
|
2096
2108
|
type: z.ZodLiteral<"dashboard.contexts.list">;
|
|
@@ -2187,6 +2199,7 @@ declare const contextGetResponseSchema: z.ZodObject<{
|
|
|
2187
2199
|
}>;
|
|
2188
2200
|
globPattern: z.ZodNullable<z.ZodString>;
|
|
2189
2201
|
branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2202
|
+
repoPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2190
2203
|
concurrencyLimit: z.ZodNullable<z.ZodNumber>;
|
|
2191
2204
|
concurrencyStrategy: z.ZodNullable<z.ZodEnum<{
|
|
2192
2205
|
"cancel-pending": "cancel-pending";
|
|
@@ -2239,6 +2252,7 @@ export declare const contextCreateRequestSchema: z.ZodObject<{
|
|
|
2239
2252
|
}>;
|
|
2240
2253
|
globPattern: z.ZodOptional<z.ZodString>;
|
|
2241
2254
|
branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2255
|
+
repoPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2242
2256
|
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
2243
2257
|
concurrencyStrategy: z.ZodOptional<z.ZodEnum<{
|
|
2244
2258
|
"cancel-pending": "cancel-pending";
|
|
@@ -2288,6 +2302,7 @@ export declare const contextUpdateRequestSchema: z.ZodObject<{
|
|
|
2288
2302
|
}>>;
|
|
2289
2303
|
globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2290
2304
|
branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
2305
|
+
repoPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2291
2306
|
concurrencyLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2292
2307
|
concurrencyStrategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
2293
2308
|
"cancel-pending": "cancel-pending";
|
|
@@ -5196,6 +5211,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
5196
5211
|
}>;
|
|
5197
5212
|
globPattern: z.ZodOptional<z.ZodString>;
|
|
5198
5213
|
branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5214
|
+
repoPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5199
5215
|
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
5200
5216
|
concurrencyStrategy: z.ZodOptional<z.ZodEnum<{
|
|
5201
5217
|
"cancel-pending": "cancel-pending";
|
|
@@ -5243,6 +5259,7 @@ export declare const dashboardPlatformToOrchSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
5243
5259
|
}>>;
|
|
5244
5260
|
globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
5245
5261
|
branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
5262
|
+
repoPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5246
5263
|
concurrencyLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5247
5264
|
concurrencyStrategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
5248
5265
|
"cancel-pending": "cancel-pending";
|
|
@@ -7438,6 +7455,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
7438
7455
|
step_failure: "step_failure";
|
|
7439
7456
|
timed_out: "timed_out";
|
|
7440
7457
|
}>>;
|
|
7458
|
+
statusEpoch: z.ZodOptional<z.ZodNumber>;
|
|
7441
7459
|
jobs: z.ZodArray<z.ZodObject<{
|
|
7442
7460
|
jobId: z.ZodString;
|
|
7443
7461
|
jobName: z.ZodString;
|
|
@@ -7458,6 +7476,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
7458
7476
|
lines: z.ZodArray<z.ZodString>;
|
|
7459
7477
|
totalLines: z.ZodNumber;
|
|
7460
7478
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
7479
|
+
recorded: z.ZodOptional<z.ZodBoolean>;
|
|
7461
7480
|
error: z.ZodOptional<z.ZodString>;
|
|
7462
7481
|
}, z.core.$strip>, z.ZodObject<{
|
|
7463
7482
|
type: z.ZodLiteral<"dashboard.attestations.list.response">;
|
|
@@ -7754,6 +7773,7 @@ export declare const dashboardOrchToPlatformSchema: z.ZodDiscriminatedUnion<[z.Z
|
|
|
7754
7773
|
}>;
|
|
7755
7774
|
globPattern: z.ZodNullable<z.ZodString>;
|
|
7756
7775
|
branchRestrictions: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
7776
|
+
repoPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7757
7777
|
concurrencyLimit: z.ZodNullable<z.ZodNumber>;
|
|
7758
7778
|
concurrencyStrategy: z.ZodNullable<z.ZodEnum<{
|
|
7759
7779
|
"cancel-pending": "cancel-pending";
|
|
@@ -8898,6 +8918,7 @@ export declare const dashboardStepLogsApiResponseSchema: z.ZodObject<{
|
|
|
8898
8918
|
lines: z.ZodArray<z.ZodString>;
|
|
8899
8919
|
totalLines: z.ZodNumber;
|
|
8900
8920
|
nextCursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8921
|
+
recorded: z.ZodOptional<z.ZodBoolean>;
|
|
8901
8922
|
}, z.core.$strip>;
|
|
8902
8923
|
/**
|
|
8903
8924
|
* REST API response for the run attestations list. The orchestrator-relayed
|
|
@@ -234,6 +234,12 @@ const dashboardStepLogsResponseSchema = z.object({
|
|
|
234
234
|
totalLines: z.number(),
|
|
235
235
|
/** Next line-offset cursor, or null when the page reached the end. */
|
|
236
236
|
nextCursor: z.string().nullable().optional(),
|
|
237
|
+
/**
|
|
238
|
+
* Whether a log is stored for the step: `false` when none was ever written,
|
|
239
|
+
* `true` when one is, even if it holds no lines. Absent when the orchestrator
|
|
240
|
+
* does not report it.
|
|
241
|
+
*/
|
|
242
|
+
recorded: z.boolean().optional(),
|
|
237
243
|
error: z.string().optional()
|
|
238
244
|
});
|
|
239
245
|
/** Request the build-provenance attestations for a run. */
|
|
@@ -946,7 +952,12 @@ const dashboardEventDlqDiscardResponseSchema = z.object({
|
|
|
946
952
|
discarded: z.boolean().optional(),
|
|
947
953
|
error: z.string().optional()
|
|
948
954
|
});
|
|
949
|
-
|
|
955
|
+
/**
|
|
956
|
+
* The kinds of context a job's declared context name resolves through: a
|
|
957
|
+
* `fixed` context matches its exact name, a `glob` context any name its
|
|
958
|
+
* pattern matches.
|
|
959
|
+
*/
|
|
960
|
+
const ContextType = z.enum(["fixed", "glob"]);
|
|
950
961
|
/** List all contexts for the org. */
|
|
951
962
|
const contextListRequestSchema = z.object({
|
|
952
963
|
type: z.literal("dashboard.contexts.list"),
|
|
@@ -975,7 +986,7 @@ const contextListResponseSchema = z.object({
|
|
|
975
986
|
contexts: z.array(z.object({
|
|
976
987
|
id: z.string(),
|
|
977
988
|
name: z.string(),
|
|
978
|
-
type:
|
|
989
|
+
type: ContextType,
|
|
979
990
|
globPattern: z.string().nullable(),
|
|
980
991
|
enabled: z.boolean(),
|
|
981
992
|
allowLocalExecution: z.boolean(),
|
|
@@ -990,6 +1001,11 @@ const contextListResponseSchema = z.object({
|
|
|
990
1001
|
})).optional(),
|
|
991
1002
|
error: z.string().optional()
|
|
992
1003
|
});
|
|
1004
|
+
/**
|
|
1005
|
+
* `owner/repo` glob patterns a context is limited to. An empty array means the
|
|
1006
|
+
* context applies to every repository, so it is also how the rule is cleared.
|
|
1007
|
+
*/
|
|
1008
|
+
const ContextRepoPatternsSchema = z.array(z.string());
|
|
993
1009
|
/** Get a single context by ID. */
|
|
994
1010
|
const contextGetRequestSchema = z.object({
|
|
995
1011
|
type: z.literal("dashboard.contexts.get"),
|
|
@@ -1003,9 +1019,10 @@ const contextGetResponseSchema = z.object({
|
|
|
1003
1019
|
context: z.object({
|
|
1004
1020
|
id: z.string(),
|
|
1005
1021
|
name: z.string(),
|
|
1006
|
-
type:
|
|
1022
|
+
type: ContextType,
|
|
1007
1023
|
globPattern: z.string().nullable(),
|
|
1008
1024
|
branchRestrictions: z.array(z.string()).nullable(),
|
|
1025
|
+
repoPatterns: ContextRepoPatternsSchema.optional(),
|
|
1009
1026
|
concurrencyLimit: z.number().nullable(),
|
|
1010
1027
|
concurrencyStrategy: ConcurrencyStrategy.nullable(),
|
|
1011
1028
|
requiredReviewers: z.number().nullable(),
|
|
@@ -1024,9 +1041,10 @@ const contextCreateRequestSchema = z.object({
|
|
|
1024
1041
|
requestId: z.string(),
|
|
1025
1042
|
actor: actorPrincipalSchema,
|
|
1026
1043
|
name: z.string(),
|
|
1027
|
-
contextType:
|
|
1044
|
+
contextType: ContextType,
|
|
1028
1045
|
globPattern: z.string().optional(),
|
|
1029
1046
|
branchRestrictions: z.array(z.string()).optional(),
|
|
1047
|
+
repoPatterns: ContextRepoPatternsSchema.optional(),
|
|
1030
1048
|
concurrencyLimit: z.number().int().positive().optional(),
|
|
1031
1049
|
concurrencyStrategy: ConcurrencyStrategy.optional(),
|
|
1032
1050
|
requiredReviewers: z.number().optional(),
|
|
@@ -1048,9 +1066,10 @@ const contextUpdateRequestSchema = z.object({
|
|
|
1048
1066
|
contextId: z.string(),
|
|
1049
1067
|
updates: z.object({
|
|
1050
1068
|
name: z.string().optional(),
|
|
1051
|
-
contextType:
|
|
1069
|
+
contextType: ContextType.optional(),
|
|
1052
1070
|
globPattern: z.string().nullable().optional(),
|
|
1053
1071
|
branchRestrictions: z.array(z.string()).nullable().optional(),
|
|
1072
|
+
repoPatterns: ContextRepoPatternsSchema.optional(),
|
|
1054
1073
|
concurrencyLimit: z.number().int().positive().nullable().optional(),
|
|
1055
1074
|
concurrencyStrategy: ConcurrencyStrategy.nullable().optional(),
|
|
1056
1075
|
requiredReviewers: z.number().nullable().optional(),
|
|
@@ -2250,7 +2269,13 @@ const dashboardStepLogsApiResponseSchema = z.object({
|
|
|
2250
2269
|
lines: z.array(z.string()),
|
|
2251
2270
|
totalLines: z.number(),
|
|
2252
2271
|
/** Next line-offset cursor, or null when the page reached the end. */
|
|
2253
|
-
nextCursor: z.string().nullable().optional()
|
|
2272
|
+
nextCursor: z.string().nullable().optional(),
|
|
2273
|
+
/**
|
|
2274
|
+
* Whether a log is stored for the step: `false` when none was ever written,
|
|
2275
|
+
* `true` when one is, even if it holds no lines. Absent when the orchestrator
|
|
2276
|
+
* does not report it.
|
|
2277
|
+
*/
|
|
2278
|
+
recorded: z.boolean().optional()
|
|
2254
2279
|
});
|
|
2255
2280
|
/**
|
|
2256
2281
|
* REST API response for the run attestations list. The orchestrator-relayed
|
|
@@ -2578,6 +2603,6 @@ const DashboardResponseErrorCode = z.enum([
|
|
|
2578
2603
|
"internal_error"
|
|
2579
2604
|
]);
|
|
2580
2605
|
//#endregion
|
|
2581
|
-
export { ContextDeleteErrorCode, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DashboardResponseErrorCode, EventLogPayloadStreamError, FleetHostDisposition, HeldRunQueueType, HeldRunStatus, TestRelayType, artifactListItemSchema, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, 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, 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, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, eventLogActivityCountsSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, 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 };
|
|
2606
|
+
export { ContextDeleteErrorCode, ContextType, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DashboardResponseErrorCode, EventLogPayloadStreamError, FleetHostDisposition, HeldRunQueueType, HeldRunStatus, TestRelayType, artifactListItemSchema, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserEventLogPayloadChunkSchema, contextBindingEntrySchema, contextBindingsListRequestSchema, contextBindingsSetRequestSchema, contextCreateRequestSchema, contextDeleteRequestSchema, contextGetRequestSchema, contextHistoryRequestSchema, contextHistoryResponseSchema, contextListRequestSchema, contextSecretDeleteRequestSchema, contextSecretScopeCreateRequestSchema, contextSecretScopeDeleteRequestSchema, contextSecretScopeRenameRequestSchema, contextSecretSetRequestSchema, contextSecretsListRequestSchema, contextSourceOverrideDeleteRequestSchema, contextSourceOverrideSetRequestSchema, contextSourceOverridesListRequestSchema, contextTestAccessSetRequestSchema, contextUpdateRequestSchema, contextVarDeleteRequestSchema, contextVarSetRequestSchema, contextVarsListRequestSchema, 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, 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, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, eventLogActivityCountsSchema, eventLogListItemSchema, fleetHostDeclareRequestSchema, fleetHostDeclareResponseSchema, fleetHostRemoveRequestSchema, fleetHostRemoveResponseSchema, fleetHostWorkflowSchema, 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 };
|
|
2582
2607
|
|
|
2583
2608
|
//# sourceMappingURL=dashboard.js.map
|
|
@@ -139,6 +139,8 @@ export type TimeoutReason = z.infer<typeof TimeoutReason>;
|
|
|
139
139
|
* build_coordination, approval_misconfig, sandbox_denied, trust_policy).
|
|
140
140
|
* - `job`-scoped categories fail one job and leave siblings alone
|
|
141
141
|
* (context_rules, dynamic_eval, no_agent, matrix_expansion).
|
|
142
|
+
* - `secret_resolution` is also job-scoped on a dynamically generated job
|
|
143
|
+
* whose own context gate failed; its siblings still dispatch.
|
|
142
144
|
*/
|
|
143
145
|
export declare const InitFailureCategory: z.ZodEnum<{
|
|
144
146
|
approval_misconfig: "approval_misconfig";
|
|
@@ -281,6 +283,8 @@ export declare const TERMINAL_JOB_STATES: ReadonlySet<string>;
|
|
|
281
283
|
export type TerminalJobStatus = Exclude<ExecutionJobStatus, 'pending' | 'queued' | 'running' | 'recovering' | 'cancelling'>;
|
|
282
284
|
/** Terminal step states that indicate the step is no longer running. */
|
|
283
285
|
export declare const TERMINAL_STEP_STATES: ReadonlySet<string>;
|
|
286
|
+
/** Largest status generation a frame may carry: the Platform stores it in a 32-bit integer column. */
|
|
287
|
+
export declare const STATUS_EPOCH_MAX = 2147483647;
|
|
284
288
|
/** Structured execution status update for Platform metadata tracking. */
|
|
285
289
|
export declare const executionStatusSchema: z.ZodObject<{
|
|
286
290
|
type: z.ZodLiteral<"execution.status">;
|
|
@@ -348,6 +352,7 @@ export declare const executionStatusSchema: z.ZodObject<{
|
|
|
348
352
|
step_failure: "step_failure";
|
|
349
353
|
timed_out: "timed_out";
|
|
350
354
|
}>>;
|
|
355
|
+
statusEpoch: z.ZodOptional<z.ZodNumber>;
|
|
351
356
|
}, z.core.$strip>;
|
|
352
357
|
/** Per-step status forwarded from agent to Platform (real-time). */
|
|
353
358
|
export declare const stepStatusForwardSchema: z.ZodObject<{
|
|
@@ -480,6 +485,7 @@ export declare const stateReplayRunSchema: z.ZodObject<{
|
|
|
480
485
|
step_failure: "step_failure";
|
|
481
486
|
timed_out: "timed_out";
|
|
482
487
|
}>>;
|
|
488
|
+
statusEpoch: z.ZodOptional<z.ZodNumber>;
|
|
483
489
|
jobs: z.ZodArray<z.ZodObject<{
|
|
484
490
|
jobId: z.ZodString;
|
|
485
491
|
jobName: z.ZodString;
|
|
@@ -532,6 +538,7 @@ export declare const stateReplaySchema: z.ZodObject<{
|
|
|
532
538
|
step_failure: "step_failure";
|
|
533
539
|
timed_out: "timed_out";
|
|
534
540
|
}>>;
|
|
541
|
+
statusEpoch: z.ZodOptional<z.ZodNumber>;
|
|
535
542
|
jobs: z.ZodArray<z.ZodObject<{
|
|
536
543
|
jobId: z.ZodString;
|
|
537
544
|
jobName: z.ZodString;
|
|
@@ -134,6 +134,8 @@ const TimeoutReason = z.enum(["job_timeout", "workflow_timeout"]);
|
|
|
134
134
|
* build_coordination, approval_misconfig, sandbox_denied, trust_policy).
|
|
135
135
|
* - `job`-scoped categories fail one job and leave siblings alone
|
|
136
136
|
* (context_rules, dynamic_eval, no_agent, matrix_expansion).
|
|
137
|
+
* - `secret_resolution` is also job-scoped on a dynamically generated job
|
|
138
|
+
* whose own context gate failed; its siblings still dispatch.
|
|
137
139
|
*/
|
|
138
140
|
const InitFailureCategory = z.enum([
|
|
139
141
|
"secret_resolution",
|
|
@@ -255,6 +257,10 @@ const TERMINAL_STEP_STATES = /* @__PURE__ */ new Set([
|
|
|
255
257
|
ExecutionStepStatus.enum.skipped,
|
|
256
258
|
ExecutionStepStatus.enum.cancelled
|
|
257
259
|
]);
|
|
260
|
+
/** Largest status generation a frame may carry: the Platform stores it in a 32-bit integer column. */
|
|
261
|
+
const STATUS_EPOCH_MAX = 2147483647;
|
|
262
|
+
/** A run's status generation — see `executionStatusSchema.statusEpoch`. */
|
|
263
|
+
const statusEpochSchema = z.number().int().nonnegative().max(STATUS_EPOCH_MAX);
|
|
258
264
|
/** Structured execution status update for Platform metadata tracking. */
|
|
259
265
|
const executionStatusSchema = z.object({
|
|
260
266
|
type: z.literal("execution.status"),
|
|
@@ -345,7 +351,17 @@ const executionStatusSchema = z.object({
|
|
|
345
351
|
*/
|
|
346
352
|
initFailure: initFailureSchema.optional(),
|
|
347
353
|
/** Why a terminal run failed (only present for failed/cancelled runs). */
|
|
348
|
-
failureClass: RunFailureClass.optional()
|
|
354
|
+
failureClass: RunFailureClass.optional(),
|
|
355
|
+
/**
|
|
356
|
+
* The run's status generation. It starts at 0 and the orchestrator raises it
|
|
357
|
+
* each time the run leaves a terminal status (a run failed before a job it had
|
|
358
|
+
* already dispatched reported in, and then continues). The Platform keeps a
|
|
359
|
+
* terminal status against a non-terminal frame unless the frame's generation
|
|
360
|
+
* is newer, so a frame that arrives late cannot move a finished run back.
|
|
361
|
+
* Optional for backward compatibility: an older orchestrator omits it, and the
|
|
362
|
+
* Platform then applies the frame unguarded.
|
|
363
|
+
*/
|
|
364
|
+
statusEpoch: statusEpochSchema.optional()
|
|
349
365
|
});
|
|
350
366
|
/** Per-step status forwarded from agent to Platform (real-time). */
|
|
351
367
|
const stepStatusForwardSchema = z.object({
|
|
@@ -442,6 +458,8 @@ const stateReplayRunSchema = z.object({
|
|
|
442
458
|
failureReason: z.string().max(STATUS_FREE_TEXT_MAX).optional(),
|
|
443
459
|
/** Why the run failed (`RunFailureClass`); only present for failed/cancelled runs. */
|
|
444
460
|
failureClass: RunFailureClass.optional(),
|
|
461
|
+
/** The run's status generation, with the same meaning as on `execution.status`. */
|
|
462
|
+
statusEpoch: statusEpochSchema.optional(),
|
|
445
463
|
jobs: z.array(z.object({
|
|
446
464
|
jobId: z.string().max(128),
|
|
447
465
|
jobName: z.string().max(128),
|
|
@@ -462,6 +480,6 @@ const stateReplaySchema = z.object({
|
|
|
462
480
|
timestamp: z.number()
|
|
463
481
|
});
|
|
464
482
|
//#endregion
|
|
465
|
-
export { 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 };
|
|
483
|
+
export { 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_EPOCH_MAX, 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 };
|
|
466
484
|
|
|
467
485
|
//# sourceMappingURL=execution-status.js.map
|
|
@@ -237,6 +237,9 @@ export declare const agentRegisterSchema: z.ZodObject<{
|
|
|
237
237
|
runningAsUser: z.ZodOptional<z.ZodString>;
|
|
238
238
|
runningAsUid: z.ZodOptional<z.ZodNumber>;
|
|
239
239
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
240
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
globalEvalSkipsResultAwareGenerators: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
}, z.core.$loose>>;
|
|
240
243
|
}, z.core.$strip>;
|
|
241
244
|
/** Periodic agent status update. */
|
|
242
245
|
export declare const agentStatusSchema: z.ZodObject<{
|
|
@@ -763,6 +766,13 @@ export declare const agentAuthFailureSchema: z.ZodObject<{
|
|
|
763
766
|
type: z.ZodLiteral<"auth.failure">;
|
|
764
767
|
reason: z.ZodString;
|
|
765
768
|
}, z.core.$strip>;
|
|
769
|
+
/**
|
|
770
|
+
* How long an agent waits for the `agent.api.response` to one
|
|
771
|
+
* `agent.api.request` before it fails the call. An orchestrator handler that
|
|
772
|
+
* can wait on something slow (the provenance signer) answers within a fraction
|
|
773
|
+
* of this, so the step receives the handler's answer instead of a timeout.
|
|
774
|
+
*/
|
|
775
|
+
export declare const AGENT_API_REQUEST_TIMEOUT_MS = 15000;
|
|
766
776
|
/** API request sent by agent to orchestrator (e.g., infrastructure.list). */
|
|
767
777
|
export declare const agentApiRequestSchema: z.ZodObject<{
|
|
768
778
|
type: z.ZodLiteral<"agent.api.request">;
|
|
@@ -1134,6 +1144,9 @@ export declare const agentToOrchestratorMessageSchema: z.ZodDiscriminatedUnion<[
|
|
|
1134
1144
|
runningAsUser: z.ZodOptional<z.ZodString>;
|
|
1135
1145
|
runningAsUid: z.ZodOptional<z.ZodNumber>;
|
|
1136
1146
|
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1147
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
1148
|
+
globalEvalSkipsResultAwareGenerators: z.ZodOptional<z.ZodBoolean>;
|
|
1149
|
+
}, z.core.$loose>>;
|
|
1137
1150
|
}, z.core.$strip>, z.ZodObject<{
|
|
1138
1151
|
type: z.ZodLiteral<"agent.status">;
|
|
1139
1152
|
messageId: z.ZodString;
|
|
@@ -3,7 +3,7 @@ import { provenanceContextSchema } from "../../provenance/id-token-event-claims.
|
|
|
3
3
|
import { ExecutionJobStatus, ExecutionStepStatus, StepConcurrencyKind } from "./execution-status.js";
|
|
4
4
|
import { dsseEnvelopeSchema } from "../../provenance/dsse.js";
|
|
5
5
|
import { approvalTimeoutSecondsSchema, approverClauseSchema } from "../../approval/types.js";
|
|
6
|
-
import { orchAgentCapabilitiesSchema } from "./capabilities.js";
|
|
6
|
+
import { agentCapabilitiesSchema, orchAgentCapabilitiesSchema } from "./capabilities.js";
|
|
7
7
|
import { LogStream } from "./log-stream.js";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
//#region src/protocol/messages/orchestrator-agent.ts
|
|
@@ -325,7 +325,13 @@ const agentRegisterSchema = z.object({
|
|
|
325
325
|
z.string(),
|
|
326
326
|
z.number(),
|
|
327
327
|
z.boolean()
|
|
328
|
-
])).optional()
|
|
328
|
+
])).optional(),
|
|
329
|
+
/**
|
|
330
|
+
* Optional agent behaviours this agent build implements (absent on
|
|
331
|
+
* pre-capability agents, which the orchestrator treats as supporting none).
|
|
332
|
+
* The orchestrator reads it to route work that depends on one of them.
|
|
333
|
+
*/
|
|
334
|
+
capabilities: agentCapabilitiesSchema.optional()
|
|
329
335
|
});
|
|
330
336
|
/** Periodic agent status update. */
|
|
331
337
|
const agentStatusSchema = z.object({
|
|
@@ -939,6 +945,13 @@ const agentAuthFailureSchema = z.object({
|
|
|
939
945
|
type: z.literal("auth.failure"),
|
|
940
946
|
reason: z.string()
|
|
941
947
|
});
|
|
948
|
+
/**
|
|
949
|
+
* How long an agent waits for the `agent.api.response` to one
|
|
950
|
+
* `agent.api.request` before it fails the call. An orchestrator handler that
|
|
951
|
+
* can wait on something slow (the provenance signer) answers within a fraction
|
|
952
|
+
* of this, so the step receives the handler's answer instead of a timeout.
|
|
953
|
+
*/
|
|
954
|
+
const AGENT_API_REQUEST_TIMEOUT_MS = 15e3;
|
|
942
955
|
/** API request sent by agent to orchestrator (e.g., infrastructure.list). */
|
|
943
956
|
const agentApiRequestSchema = z.object({
|
|
944
957
|
type: z.literal("agent.api.request"),
|
|
@@ -1116,6 +1129,6 @@ const agentToOrchestratorMessageSchema = z.discriminatedUnion("type", [
|
|
|
1116
1129
|
stepApprovalRequestSchema
|
|
1117
1130
|
]);
|
|
1118
1131
|
//#endregion
|
|
1119
|
-
export { 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 };
|
|
1132
|
+
export { AGENT_API_REQUEST_TIMEOUT_MS, 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 };
|
|
1120
1133
|
|
|
1121
1134
|
//# sourceMappingURL=orchestrator-agent.js.map
|
|
@@ -178,6 +178,7 @@ export declare const jobRerouteSchema: z.ZodObject<{
|
|
|
178
178
|
depsUrl: z.ZodOptional<z.ZodString>;
|
|
179
179
|
depsHash: z.ZodOptional<z.ZodString>;
|
|
180
180
|
cloneToken: z.ZodOptional<z.ZodString>;
|
|
181
|
+
workflowCloneToken: z.ZodOptional<z.ZodString>;
|
|
181
182
|
encryptedSecrets: z.ZodOptional<z.ZodString>;
|
|
182
183
|
encryptedNamespacedSecrets: z.ZodOptional<z.ZodString>;
|
|
183
184
|
}, z.core.$strip>;
|
|
@@ -601,6 +602,7 @@ export declare const peerToPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
601
602
|
depsUrl: z.ZodOptional<z.ZodString>;
|
|
602
603
|
depsHash: z.ZodOptional<z.ZodString>;
|
|
603
604
|
cloneToken: z.ZodOptional<z.ZodString>;
|
|
605
|
+
workflowCloneToken: z.ZodOptional<z.ZodString>;
|
|
604
606
|
encryptedSecrets: z.ZodOptional<z.ZodString>;
|
|
605
607
|
encryptedNamespacedSecrets: z.ZodOptional<z.ZodString>;
|
|
606
608
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -915,6 +917,7 @@ export declare const peerFromPeerMessageSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
915
917
|
depsUrl: z.ZodOptional<z.ZodString>;
|
|
916
918
|
depsHash: z.ZodOptional<z.ZodString>;
|
|
917
919
|
cloneToken: z.ZodOptional<z.ZodString>;
|
|
920
|
+
workflowCloneToken: z.ZodOptional<z.ZodString>;
|
|
918
921
|
encryptedSecrets: z.ZodOptional<z.ZodString>;
|
|
919
922
|
encryptedNamespacedSecrets: z.ZodOptional<z.ZodString>;
|
|
920
923
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -203,6 +203,8 @@ const jobRerouteSchema = z.object({
|
|
|
203
203
|
depsHash: z.string().optional(),
|
|
204
204
|
/** Pre-resolved clone token for workers without provider credentials. */
|
|
205
205
|
cloneToken: z.string().optional(),
|
|
206
|
+
/** Pre-resolved clone token for the workflow repository of an organization-wide job. */
|
|
207
|
+
workflowCloneToken: z.string().optional(),
|
|
206
208
|
/** Encrypted secrets envelope (AES-256-GCM with session key). */
|
|
207
209
|
encryptedSecrets: z.string().optional(),
|
|
208
210
|
/** Encrypted namespaced secrets envelope. */
|
|
@@ -1345,6 +1345,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1345
1345
|
}>;
|
|
1346
1346
|
globPattern: z.ZodOptional<z.ZodString>;
|
|
1347
1347
|
branchRestrictions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1348
|
+
repoPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1348
1349
|
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1349
1350
|
concurrencyStrategy: z.ZodOptional<z.ZodEnum<{
|
|
1350
1351
|
"cancel-pending": "cancel-pending";
|
|
@@ -1392,6 +1393,7 @@ export declare const platformToOrchestratorMessageSchema: z.ZodDiscriminatedUnio
|
|
|
1392
1393
|
}>>;
|
|
1393
1394
|
globPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1394
1395
|
branchRestrictions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1396
|
+
repoPatterns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1395
1397
|
concurrencyLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1396
1398
|
concurrencyStrategy: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
1397
1399
|
"cancel-pending": "cancel-pending";
|
|
@@ -3377,6 +3379,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3377
3379
|
step_failure: "step_failure";
|
|
3378
3380
|
timed_out: "timed_out";
|
|
3379
3381
|
}>>;
|
|
3382
|
+
statusEpoch: z.ZodOptional<z.ZodNumber>;
|
|
3380
3383
|
}, z.core.$strip>, z.ZodObject<{
|
|
3381
3384
|
type: z.ZodLiteral<"step.status.forward">;
|
|
3382
3385
|
messageId: z.ZodString;
|
|
@@ -3498,6 +3501,7 @@ export declare const orchestratorToPlatformMessageSchema: z.ZodDiscriminatedUnio
|
|
|
3498
3501
|
step_failure: "step_failure";
|
|
3499
3502
|
timed_out: "timed_out";
|
|
3500
3503
|
}>>;
|
|
3504
|
+
statusEpoch: z.ZodOptional<z.ZodNumber>;
|
|
3501
3505
|
jobs: z.ZodArray<z.ZodObject<{
|
|
3502
3506
|
jobId: z.ZodString;
|
|
3503
3507
|
jobName: z.ZodString;
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
* orchestrator binds the list to its `IdTokenClaims` type at compile time and
|
|
9
9
|
* a drift test checks it against the claims its builder actually emits.
|
|
10
10
|
*/
|
|
11
|
-
export declare const ID_TOKEN_CLAIM_NAMES: readonly ['iss', 'sub', 'aud', 'iat', 'nbf', 'exp', 'jti', 'kici_run_id', 'kici_job_id', 'repository', 'ref', 'base_ref', 'head_ref', 'head_repository', 'is_fork', 'event_name', 'trust_tier', 'actor', 'sha', 'workflow_ref', 'orchestrator_id', 'org_id', 'source_origin', 'provider', 'statement_hash', 'attestation_origin'];
|
|
11
|
+
export declare const ID_TOKEN_CLAIM_NAMES: readonly ['iss', 'sub', 'aud', 'iat', 'nbf', 'exp', 'jti', 'kici_run_id', 'kici_job_id', 'repository', 'workflow_repository', 'ref', 'base_ref', 'head_ref', 'head_repository', 'is_fork', 'event_name', 'trust_tier', 'actor', 'sha', 'workflow_ref', 'orchestrator_id', 'org_id', 'source_origin', 'provider', 'statement_hash', 'attestation_origin'];
|
|
12
12
|
export type IdTokenClaimName = (typeof ID_TOKEN_CLAIM_NAMES)[number];
|
|
13
13
|
//# sourceMappingURL=id-token-claim-names.d.ts.map
|
|
@@ -33,24 +33,12 @@ export interface CheckStatusPoster {
|
|
|
33
33
|
* the two never overwrite each other.
|
|
34
34
|
*/
|
|
35
35
|
postWorkflowModificationCheck(repoIdentifier: string, commitSha: string, modifications: WorkflowModificationInfo[], credentials: unknown): Promise<void>;
|
|
36
|
-
/**
|
|
37
|
-
* Post an informational (neutral) check recording that the organization's
|
|
38
|
-
* global workflows were skipped because the org trust policy held or rejected
|
|
39
|
-
* the event.
|
|
40
|
-
*
|
|
41
|
-
* Its own check name, for the same reason as the workflow-modification check:
|
|
42
|
-
* the security-hold check is a single named run per commit, so posting this
|
|
43
|
-
* notice through `postCheckStatus` would UPDATE that run and replace the
|
|
44
|
-
* pending "Held for approval" state with a completed neutral conclusion —
|
|
45
|
-
* unblocking a branch protection rule that requires the security check.
|
|
46
|
-
*/
|
|
47
|
-
postGlobalWorkflowsSkippedCheck(repoIdentifier: string, commitSha: string, summary: string, credentials: unknown): Promise<void>;
|
|
48
36
|
/**
|
|
49
37
|
* Post a failing check recording that the pre-run evaluation of the
|
|
50
38
|
* organization's global workflows could not be completed, so none of the
|
|
51
39
|
* workflows it was deciding on ran for this commit.
|
|
52
40
|
*
|
|
53
|
-
* Its own check name, for the same reason as the
|
|
41
|
+
* Its own check name, for the same reason as the notice above: the
|
|
54
42
|
* security-hold check is a single named run per commit, so posting this
|
|
55
43
|
* through `postCheckStatus` would UPDATE that run and replace a pending
|
|
56
44
|
* "Held for approval" state with a completed conclusion.
|
package/dist/trigger/types.d.ts
CHANGED
|
@@ -42,6 +42,11 @@
|
|
|
42
42
|
* sibling closure the deps tarball carries, which no package-manager lock file moves).
|
|
43
43
|
* Schema version 41 (additive): adds LockDynamicJobFn.gitCredentials (named git credential
|
|
44
44
|
* refs declared by a dynamicJob generator and inherited by every job it generates).
|
|
45
|
+
* Schema version 42 (additive, conditional reader floor): approval enforced on
|
|
46
|
+
* organization-wide workflows. The lock shape is unchanged, but a v41 reader dispatches a
|
|
47
|
+
* global workflow without consulting its `approval`, so a lock whose global workflow (or
|
|
48
|
+
* one of its static jobs) declares `approval` stamps `minReaderVersion` =
|
|
49
|
+
* `GLOBAL_APPROVAL_MIN_READER`. Every other lock keeps `minReaderVersion` = `BREAKING_FLOOR`.
|
|
45
50
|
*/
|
|
46
51
|
import { z } from 'zod';
|
|
47
52
|
import type { ProviderType } from '../provider/types.js';
|
|
@@ -54,7 +59,7 @@ import { ExecutionJobStatus } from '../protocol/messages/execution-status.js';
|
|
|
54
59
|
* schema change (additive or breaking); the bump-history comment above records
|
|
55
60
|
* which. See `BREAKING_FLOOR` for the compatibility-window semantics.
|
|
56
61
|
*/
|
|
57
|
-
export declare const SCHEMA_VERSION:
|
|
62
|
+
export declare const SCHEMA_VERSION: 42;
|
|
58
63
|
/**
|
|
59
64
|
* Oldest lock schema version this codebase can still read correctly — the lower
|
|
60
65
|
* bound of the acceptance window.
|
|
@@ -71,6 +76,16 @@ export declare const SCHEMA_VERSION: 41;
|
|
|
71
76
|
* reads correctly.
|
|
72
77
|
*/
|
|
73
78
|
export declare const BREAKING_FLOOR: 30;
|
|
79
|
+
/**
|
|
80
|
+
* Reader version a lock must require when an organization-wide workflow in it
|
|
81
|
+
* (a workflow with a trigger carrying `repos:`), or one of that workflow's
|
|
82
|
+
* static jobs, declares `approval`. Readers below this version run a global
|
|
83
|
+
* workflow's jobs without holding them for approval, so they must refuse such a
|
|
84
|
+
* lock rather than dispatch it ungated. Not a `BREAKING_FLOOR` move: the lock
|
|
85
|
+
* shape is unchanged, and locks without a gated global workflow stay readable by
|
|
86
|
+
* every orchestrator down to the floor.
|
|
87
|
+
*/
|
|
88
|
+
export declare const GLOBAL_APPROVAL_MIN_READER: 42;
|
|
74
89
|
/**
|
|
75
90
|
* Normalized approval config carried in the lock file. Produced by the compiler
|
|
76
91
|
* from an SDK `approval` at any of the three levels; consumed by the
|
|
@@ -936,8 +951,8 @@ export type LockJobOrFactory = LockJob | LockDynamicJobFn;
|
|
|
936
951
|
/**
|
|
937
952
|
* Private npm registry declaration in the lock file.
|
|
938
953
|
* Carries the URL/scope/secret-reference but NOT the resolved token —
|
|
939
|
-
* the orchestrator resolves the token at dispatch time
|
|
940
|
-
*
|
|
954
|
+
* the orchestrator resolves the token at dispatch time through the named
|
|
955
|
+
* context's secret bindings.
|
|
941
956
|
*/
|
|
942
957
|
export interface LockRegistry {
|
|
943
958
|
readonly url: string;
|
|
@@ -966,7 +981,11 @@ export interface LockWorkflow {
|
|
|
966
981
|
readonly hashFiles?: string[];
|
|
967
982
|
/** Resolved paths (relative to repo root) used to compute contentHash. Enables agent to verify hash without re-discovering workflow. Optional. */
|
|
968
983
|
readonly resolvedHashFiles?: string[];
|
|
969
|
-
/**
|
|
984
|
+
/**
|
|
985
|
+
* Context names bound by every job of the workflow, gated per job like job-level
|
|
986
|
+
* contexts. They come before each job's own contexts, so a job-level context wins
|
|
987
|
+
* a key collision. Optional.
|
|
988
|
+
*/
|
|
970
989
|
readonly contexts?: readonly string[];
|
|
971
990
|
/**
|
|
972
991
|
* Private npm registries the agent should authenticate against before `npm install`.
|
|
@@ -1018,9 +1037,11 @@ export interface LockWorkflow {
|
|
|
1018
1037
|
export interface LockFile {
|
|
1019
1038
|
readonly schemaVersion: typeof SCHEMA_VERSION;
|
|
1020
1039
|
/**
|
|
1021
|
-
* The
|
|
1022
|
-
* `BREAKING_FLOOR
|
|
1023
|
-
*
|
|
1040
|
+
* The oldest reader schema version that handles this lock correctly. The
|
|
1041
|
+
* compiler stamps `BREAKING_FLOOR`, or `GLOBAL_APPROVAL_MIN_READER` when an
|
|
1042
|
+
* organization-wide workflow in the lock declares `approval`. A reader whose
|
|
1043
|
+
* own `SCHEMA_VERSION` is below this value would mis-handle the lock and must
|
|
1044
|
+
* reject it. Absent on
|
|
1024
1045
|
* pre-window locks, in which case the reader falls back to exact-match
|
|
1025
1046
|
* strictness (see `assertLockFileSchemaCompatible`).
|
|
1026
1047
|
*/
|
package/dist/trigger/types.js
CHANGED
|
@@ -47,13 +47,18 @@ import { z } from "zod";
|
|
|
47
47
|
* sibling closure the deps tarball carries, which no package-manager lock file moves).
|
|
48
48
|
* Schema version 41 (additive): adds LockDynamicJobFn.gitCredentials (named git credential
|
|
49
49
|
* refs declared by a dynamicJob generator and inherited by every job it generates).
|
|
50
|
+
* Schema version 42 (additive, conditional reader floor): approval enforced on
|
|
51
|
+
* organization-wide workflows. The lock shape is unchanged, but a v41 reader dispatches a
|
|
52
|
+
* global workflow without consulting its `approval`, so a lock whose global workflow (or
|
|
53
|
+
* one of its static jobs) declares `approval` stamps `minReaderVersion` =
|
|
54
|
+
* `GLOBAL_APPROVAL_MIN_READER`. Every other lock keeps `minReaderVersion` = `BREAKING_FLOOR`.
|
|
50
55
|
*/
|
|
51
56
|
/**
|
|
52
57
|
* Schema version the compiler emits into every lock file. Incremented on ANY
|
|
53
58
|
* schema change (additive or breaking); the bump-history comment above records
|
|
54
59
|
* which. See `BREAKING_FLOOR` for the compatibility-window semantics.
|
|
55
60
|
*/
|
|
56
|
-
const SCHEMA_VERSION =
|
|
61
|
+
const SCHEMA_VERSION = 42;
|
|
57
62
|
/**
|
|
58
63
|
* Oldest lock schema version this codebase can still read correctly — the lower
|
|
59
64
|
* bound of the acceptance window.
|
|
@@ -71,6 +76,16 @@ const SCHEMA_VERSION = 41;
|
|
|
71
76
|
*/
|
|
72
77
|
const BREAKING_FLOOR = 30;
|
|
73
78
|
/**
|
|
79
|
+
* Reader version a lock must require when an organization-wide workflow in it
|
|
80
|
+
* (a workflow with a trigger carrying `repos:`), or one of that workflow's
|
|
81
|
+
* static jobs, declares `approval`. Readers below this version run a global
|
|
82
|
+
* workflow's jobs without holding them for approval, so they must refuse such a
|
|
83
|
+
* lock rather than dispatch it ungated. Not a `BREAKING_FLOOR` move: the lock
|
|
84
|
+
* shape is unchanged, and locks without a gated global workflow stay readable by
|
|
85
|
+
* every orchestrator down to the floor.
|
|
86
|
+
*/
|
|
87
|
+
const GLOBAL_APPROVAL_MIN_READER = 42;
|
|
88
|
+
/**
|
|
74
89
|
* Resolve a content requirement's parse format to a concrete value. An explicit
|
|
75
90
|
* non-`auto` format is returned as-is; `auto` (or unset) is resolved by the file
|
|
76
91
|
* extension: `.json` → json, `.yaml`/`.yml` → yaml, everything else text.
|
|
@@ -204,6 +219,6 @@ const changedFilesStatusSchema = z.enum([
|
|
|
204
219
|
"skipped"
|
|
205
220
|
]);
|
|
206
221
|
//#endregion
|
|
207
|
-
export { BREAKING_FLOOR, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, OnUnreachableMode, RunsOnPick, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, changedFilesStatusSchema, isLockDynamicJobFn, isLockParallelStep, isLockStaticJob, resolveContentFormat, resolveWhenToRunOn };
|
|
222
|
+
export { BREAKING_FLOOR, GLOBAL_APPROVAL_MIN_READER, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, OnUnreachableMode, RunsOnPick, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, changedFilesStatusSchema, isLockDynamicJobFn, isLockParallelStep, isLockStaticJob, resolveContentFormat, resolveWhenToRunOn };
|
|
208
223
|
|
|
209
224
|
//# sourceMappingURL=types.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kici-dev/engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Shared business logic for the KiCI CI/CD stack: protocol, triggers, state machine, and provider interfaces used by the Platform relay, orchestrator, and compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ci",
|
package/sbom.spdx.json
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"spdxVersion": "SPDX-2.3",
|
|
3
3
|
"dataLicense": "CC0-1.0",
|
|
4
4
|
"SPDXID": "SPDXRef-DOCUMENT",
|
|
5
|
-
"name": "@kici-dev/engine@0.
|
|
6
|
-
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fengine/0.
|
|
5
|
+
"name": "@kici-dev/engine@0.10.0",
|
|
6
|
+
"documentNamespace": "https://kici.dev/sbom/%40kici-dev%2Fengine/0.10.0/500f319e-27da-47e9-bc66-2d93e21e2c04",
|
|
7
7
|
"creationInfo": {
|
|
8
|
-
"created": "2026-09-
|
|
8
|
+
"created": "2026-09-25T03:03:09Z",
|
|
9
9
|
"creators": [
|
|
10
10
|
"Tool: kici-sbom-generator"
|
|
11
11
|
]
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
{
|
|
55
55
|
"SPDXID": "SPDXRef-RootPackage",
|
|
56
56
|
"name": "@kici-dev/engine",
|
|
57
|
-
"versionInfo": "0.
|
|
57
|
+
"versionInfo": "0.10.0",
|
|
58
58
|
"downloadLocation": "NOASSERTION",
|
|
59
59
|
"filesAnalyzed": false,
|
|
60
60
|
"licenseConcluded": "NOASSERTION",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
{
|
|
66
66
|
"referenceCategory": "PACKAGE-MANAGER",
|
|
67
67
|
"referenceType": "purl",
|
|
68
|
-
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.
|
|
68
|
+
"referenceLocator": "pkg:npm/%40kici-dev/engine@0.10.0"
|
|
69
69
|
}
|
|
70
70
|
],
|
|
71
71
|
"description": "Shared business logic for the KiCI CI/CD stack: protocol, triggers, state machine, and provider interfaces used by the Platform relay, orchestrator, and compiler.",
|