@kici-dev/engine 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/context/host-match.js +2 -1
- package/dist/context/index.d.ts +1 -0
- package/dist/context/index.js +2 -1
- package/dist/context/secret-key.d.ts +48 -0
- package/dist/context/secret-key.js +64 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +8 -5
- package/dist/labels/compile.d.ts +2 -7
- package/dist/labels/compile.js +1 -10
- package/dist/labels.d.ts +8 -0
- package/dist/labels.js +9 -1
- package/dist/metrics/catalog-policy.d.ts +11 -0
- package/dist/metrics/catalog-policy.js +13 -3
- package/dist/metrics/metric-catalog.generated.d.ts +30 -0
- package/dist/metrics/metric-catalog.generated.js +36 -0
- package/dist/protocol/messages/dashboard-global-workflows.d.ts +8 -3
- package/dist/protocol/messages/dashboard-global-workflows.js +20 -3
- package/dist/protocol/messages/dashboard.d.ts +5 -2
- package/dist/protocol/messages/dashboard.js +7 -0
- package/dist/protocol/messages/execution-status.d.ts +3 -0
- package/dist/protocol/messages/execution-status.js +16 -0
- package/dist/protocol/messages/orchestrator-agent.d.ts +49 -0
- package/dist/protocol/messages/orchestrator-agent.js +34 -1
- package/dist/protocol/messages/platform-orchestrator.d.ts +5 -2
- package/dist/protocol/messages/platform-orchestrator.js +14 -0
- package/dist/provider/check-status-poster.d.ts +14 -0
- package/dist/provider/file-contents-fetcher.d.ts +39 -0
- package/dist/provider/file-contents-fetcher.js +2 -0
- package/dist/provider/index.d.ts +2 -0
- package/dist/safe-regex.d.ts +16 -0
- package/dist/safe-regex.js +24 -0
- package/dist/trigger/compiled-matchers.d.ts +21 -1
- package/dist/trigger/compiled-matchers.js +30 -3
- package/dist/trigger/content-requirements.d.ts +31 -0
- package/dist/trigger/content-requirements.js +125 -0
- package/dist/trigger/decision-trace.d.ts +89 -0
- package/dist/trigger/decision-trace.js +96 -1
- package/dist/trigger/jsonpath-matcher.js +5 -1
- package/dist/trigger/matcher.js +57 -8
- package/dist/trigger/text-match.d.ts +27 -0
- package/dist/trigger/text-match.js +86 -0
- package/dist/trigger/types.d.ts +179 -17
- package/dist/trigger/types.js +32 -5
- package/package.json +10 -1
- package/sbom.spdx.json +30 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "../rolldown-runtime-ClRpJifh.js";
|
|
2
2
|
import { matcherMatches } from "../labels-match.js";
|
|
3
|
-
import { assertSafeRegex
|
|
3
|
+
import { assertSafeRegex } from "../safe-regex.js";
|
|
4
|
+
import { toLabelMatcher } from "../labels/compile.js";
|
|
4
5
|
//#region src/context/host-match.ts
|
|
5
6
|
/** `'**'`, empty, or absent means "matches every host". */
|
|
6
7
|
function matchesAllHosts(pattern) {
|
package/dist/context/index.d.ts
CHANGED
|
@@ -11,4 +11,5 @@ export type { ResolvedSecretCandidate } from './scope-resolver.js';
|
|
|
11
11
|
export type { HostFacts } from './host-match.js';
|
|
12
12
|
export { mergeOrderedMaps, ContextGateRejectReason } from './multi-context.js';
|
|
13
13
|
export { validateScopeName, assertValidScopeName, ScopeNameError, SCOPE_SEGMENT_PATTERN, SCOPE_NAME_MAX_LENGTH, } from './scope-name.js';
|
|
14
|
+
export { validateSecretKey, assertValidSecretKey, SecretKeyError, SECRET_KEY_PATTERN, SECRET_KEY_MAX_LENGTH, } from './secret-key.js';
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/context/index.js
CHANGED
|
@@ -9,4 +9,5 @@ import { DEFAULT_HOLD_EXPIRY_SECONDS } from "./hold-expiry.js";
|
|
|
9
9
|
import { matchScopePattern, resolveSecretsForContext, resolveSecretsWithProvenance, stripScopePrefix } from "./scope-resolver.js";
|
|
10
10
|
import { ContextGateRejectReason, mergeOrderedMaps } from "./multi-context.js";
|
|
11
11
|
import { SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, ScopeNameError, assertValidScopeName, validateScopeName } from "./scope-name.js";
|
|
12
|
-
|
|
12
|
+
import { SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SecretKeyError, assertValidSecretKey, validateSecretKey } from "./secret-key.js";
|
|
13
|
+
export { ConcurrencyStrategy, ContextGateRejectReason, DEFAULT_CONCURRENCY_STRATEGY, DEFAULT_HOLD_EXPIRY_SECONDS, HeldRunStatus, HoldType, INSTALL_JOB_ID_PREFIX, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SECURITY_HOLD_JOB_IDS, SECURITY_HOLD_JOB_LABELS, ScopeNameError, SecretKeyError, TrustTierSchema, WORKFLOW_MODIFICATION_JOB_ID, assertValidScopeName, assertValidSecretKey, installGateJobId, matchScopePattern, mergeOrderedMaps, normalizePersistedHoldType, persistedHoldTypeSpellings, resolveSecretsForContext, resolveSecretsWithProvenance, stripScopePrefix, trustedContributorHoldReason, unknownContributorHoldReason, validateScopeName, validateSecretKey };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical secret-key-name validation, shared by the orchestrator write paths
|
|
3
|
+
* and the dashboard add-secret form.
|
|
4
|
+
*
|
|
5
|
+
* The rule exists to keep the at-rest encryption binding unambiguous. Every
|
|
6
|
+
* scoped secret is encrypted with AES-GCM under the additional authenticated
|
|
7
|
+
* data `${orgId}:${scope}:${key}`, which binds a ciphertext to the exact
|
|
8
|
+
* location it was written to. That binding only holds if the concatenation
|
|
9
|
+
* decomposes back to one triple: with a `:` allowed inside `key`, the pair
|
|
10
|
+
* (scope `b`, key `c:d`) and the pair (scope `b:c`, key `d`) render the same
|
|
11
|
+
* AAD, so a ciphertext written at one location authenticates at the other.
|
|
12
|
+
*
|
|
13
|
+
* `validateScopeName` already excludes `:` from every scope segment. Excluding
|
|
14
|
+
* it from the key as well makes the AAD's tail two colon-free fields, so the
|
|
15
|
+
* triple is recovered unambiguously by splitting from the right — regardless of
|
|
16
|
+
* what `orgId` contains. That is why this validator is the other half of the
|
|
17
|
+
* fix and shares the scope charset rather than defining a looser one.
|
|
18
|
+
*
|
|
19
|
+
* The AAD format itself is fixed: the same string decrypts stored values, so
|
|
20
|
+
* length-prefixing or JSON-encoding it would strand every existing secret.
|
|
21
|
+
* Constraining the inputs is what keeps the current format unambiguous.
|
|
22
|
+
*
|
|
23
|
+
* Enforced on WRITE paths only. Reads, deletes and listings deliberately stay
|
|
24
|
+
* unvalidated so a key stored before this rule existed remains readable and
|
|
25
|
+
* deletable — nothing already stored becomes unreachable.
|
|
26
|
+
*
|
|
27
|
+
* Kept dependency-free so the engine barrel stays browser-safe.
|
|
28
|
+
*/
|
|
29
|
+
/**
|
|
30
|
+
* Allowed characters in a secret key. Deliberately identical to
|
|
31
|
+
* `SCOPE_SEGMENT_PATTERN`: a key is a single segment, so it excludes both the
|
|
32
|
+
* AAD separator `:` and the scope path separator `/`.
|
|
33
|
+
*/
|
|
34
|
+
export declare const SECRET_KEY_PATTERN: RegExp;
|
|
35
|
+
/** Maximum length of a secret key. */
|
|
36
|
+
export declare const SECRET_KEY_MAX_LENGTH = 256;
|
|
37
|
+
/**
|
|
38
|
+
* Validate a secret key name. Returns a human-readable error message, or
|
|
39
|
+
* `null` when the key is valid.
|
|
40
|
+
*/
|
|
41
|
+
export declare function validateSecretKey(key: string): string | null;
|
|
42
|
+
/** Error thrown by {@link assertValidSecretKey} for an invalid secret key. */
|
|
43
|
+
export declare class SecretKeyError extends Error {
|
|
44
|
+
constructor(message: string);
|
|
45
|
+
}
|
|
46
|
+
/** Throw {@link SecretKeyError} when `key` is not a valid secret key. */
|
|
47
|
+
export declare function assertValidSecretKey(key: string): void;
|
|
48
|
+
//# sourceMappingURL=secret-key.d.ts.map
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import "../rolldown-runtime-ClRpJifh.js";
|
|
2
|
+
//#region src/context/secret-key.ts
|
|
3
|
+
/**
|
|
4
|
+
* Canonical secret-key-name validation, shared by the orchestrator write paths
|
|
5
|
+
* and the dashboard add-secret form.
|
|
6
|
+
*
|
|
7
|
+
* The rule exists to keep the at-rest encryption binding unambiguous. Every
|
|
8
|
+
* scoped secret is encrypted with AES-GCM under the additional authenticated
|
|
9
|
+
* data `${orgId}:${scope}:${key}`, which binds a ciphertext to the exact
|
|
10
|
+
* location it was written to. That binding only holds if the concatenation
|
|
11
|
+
* decomposes back to one triple: with a `:` allowed inside `key`, the pair
|
|
12
|
+
* (scope `b`, key `c:d`) and the pair (scope `b:c`, key `d`) render the same
|
|
13
|
+
* AAD, so a ciphertext written at one location authenticates at the other.
|
|
14
|
+
*
|
|
15
|
+
* `validateScopeName` already excludes `:` from every scope segment. Excluding
|
|
16
|
+
* it from the key as well makes the AAD's tail two colon-free fields, so the
|
|
17
|
+
* triple is recovered unambiguously by splitting from the right — regardless of
|
|
18
|
+
* what `orgId` contains. That is why this validator is the other half of the
|
|
19
|
+
* fix and shares the scope charset rather than defining a looser one.
|
|
20
|
+
*
|
|
21
|
+
* The AAD format itself is fixed: the same string decrypts stored values, so
|
|
22
|
+
* length-prefixing or JSON-encoding it would strand every existing secret.
|
|
23
|
+
* Constraining the inputs is what keeps the current format unambiguous.
|
|
24
|
+
*
|
|
25
|
+
* Enforced on WRITE paths only. Reads, deletes and listings deliberately stay
|
|
26
|
+
* unvalidated so a key stored before this rule existed remains readable and
|
|
27
|
+
* deletable — nothing already stored becomes unreachable.
|
|
28
|
+
*
|
|
29
|
+
* Kept dependency-free so the engine barrel stays browser-safe.
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* Allowed characters in a secret key. Deliberately identical to
|
|
33
|
+
* `SCOPE_SEGMENT_PATTERN`: a key is a single segment, so it excludes both the
|
|
34
|
+
* AAD separator `:` and the scope path separator `/`.
|
|
35
|
+
*/
|
|
36
|
+
const SECRET_KEY_PATTERN = /^[A-Za-z0-9._-]+$/;
|
|
37
|
+
/** Maximum length of a secret key. */
|
|
38
|
+
const SECRET_KEY_MAX_LENGTH = 256;
|
|
39
|
+
/**
|
|
40
|
+
* Validate a secret key name. Returns a human-readable error message, or
|
|
41
|
+
* `null` when the key is valid.
|
|
42
|
+
*/
|
|
43
|
+
function validateSecretKey(key) {
|
|
44
|
+
if (key.length === 0) return "Secret key must not be empty";
|
|
45
|
+
if (key.length > 256) return `Secret key must be at most 256 characters`;
|
|
46
|
+
if (!SECRET_KEY_PATTERN.test(key)) return "Secret key may only contain letters, digits, and _ . - characters";
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
/** Error thrown by {@link assertValidSecretKey} for an invalid secret key. */
|
|
50
|
+
var SecretKeyError = class extends Error {
|
|
51
|
+
constructor(message) {
|
|
52
|
+
super(message);
|
|
53
|
+
this.name = "SecretKeyError";
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
/** Throw {@link SecretKeyError} when `key` is not a valid secret key. */
|
|
57
|
+
function assertValidSecretKey(key) {
|
|
58
|
+
const error = validateSecretKey(key);
|
|
59
|
+
if (error !== null) throw new SecretKeyError(error);
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SecretKeyError, assertValidSecretKey, validateSecretKey };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=secret-key.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -45,9 +45,11 @@ export * from './protocol/messages/log-stream.js';
|
|
|
45
45
|
export * from './protocol/messages/orchestrator-agent.js';
|
|
46
46
|
export * from './sandbox/capabilities.js';
|
|
47
47
|
export * from './trigger/types.js';
|
|
48
|
+
export * from './trigger/text-match.js';
|
|
48
49
|
export * from './trigger/trigger-event-type.js';
|
|
49
50
|
export * from './trigger/decision-trace.js';
|
|
50
51
|
export * from './trigger/matcher.js';
|
|
52
|
+
export { getRepoGlobMatcher } from './trigger/compiled-matchers.js';
|
|
51
53
|
export * from './trigger/event-buckets.js';
|
|
52
54
|
export { scheduleTriggerKey } from './trigger/schedule-key.js';
|
|
53
55
|
export * from './inputs/index.js';
|
|
@@ -61,7 +63,7 @@ export type { RateLimiterConfig, RateLimitResult } from './ws/rate-limiter.js';
|
|
|
61
63
|
export * from './env/environment-allowlist.js';
|
|
62
64
|
export * from './secrets/index.js';
|
|
63
65
|
export * from './context/index.js';
|
|
64
|
-
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, INIT_LABEL, PRIVILEGED_ROOT_LABEL, } from './labels.js';
|
|
66
|
+
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, INIT_LABEL, PRIVILEGED_ROOT_LABEL, INIT_RUNNER_ROLE_LABEL, } from './labels.js';
|
|
65
67
|
export type { NormalizedRunsOn } from './labels.js';
|
|
66
68
|
export type { AgentRole } from './labels.js';
|
|
67
69
|
export type { ScalerPlatform } from './labels.js';
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { OWN_INGRESS_MODES, OrchestratorMode, PLATFORM_CONNECTED_MODES, RELAY_IN
|
|
|
21
21
|
import { ScalerBackendType } from "./scaler/scaler-backend-type.js";
|
|
22
22
|
import { ApprovalDecision, HoldScope, TriggerSource, approvalRequirementSchema, approvalTimeoutSecondsSchema, approverClauseSchema } from "./approval/types.js";
|
|
23
23
|
import { CANONICAL_STATUSES, LEGACY_STATUS_ALIASES, STATUS_FAILURE_CLASS, STATUS_PRECEDENCE, StatusFailureClass, isFailureStatus, toCanonicalStatus, worstStatus } from "./status/presentation.js";
|
|
24
|
-
import { BREAKING_FLOOR, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, OnUnreachableMode, RunsOnPick, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, changedFilesStatusSchema, isLockDynamicJobFn, isLockInlineValue, isLockParallelStep, isLockStaticJob, resolveWhenToRunOn } from "./trigger/types.js";
|
|
24
|
+
import { BREAKING_FLOOR, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, OnUnreachableMode, RunsOnPick, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, changedFilesStatusSchema, isLockDynamicJobFn, isLockInlineValue, isLockParallelStep, isLockStaticJob, resolveContentFormat, resolveWhenToRunOn } from "./trigger/types.js";
|
|
25
25
|
import { HostTargetSelector, HostTargetValue, LabelMatcher, compileRegexMatcher, hostSatisfiesTarget, matcherMatches, matcherSatisfiedBy, partitionMatchers } from "./labels-match.js";
|
|
26
26
|
import { ConcurrencyStrategy, DEFAULT_CONCURRENCY_STRATEGY } from "./context/concurrency-strategy.js";
|
|
27
27
|
import { HostInventoryEntry, HostPropertyValue, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, coerceHostPropertyValue, parseHostPropertyAssignments } from "./inventory.js";
|
|
@@ -42,10 +42,12 @@ import { EVENT_LOG_PAYLOAD_CHUNK_BYTES } from "./protocol/event-log-payload.js";
|
|
|
42
42
|
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";
|
|
43
43
|
import { joinRequestSchema, joinResponseSchema } from "./protocol/messages/join.js";
|
|
44
44
|
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";
|
|
45
|
-
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, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobDispatchSchema, jobRejectSchema, jobStatusSchema, orchestratorToAgentMessageSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, registerAckSchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema } from "./protocol/messages/orchestrator-agent.js";
|
|
45
|
+
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, jobAckSchema, jobCancelSchema, jobConcurrencyAckSchema, jobConcurrencyReportSchema, jobDispatchSchema, jobRejectSchema, jobStatusSchema, orchestratorToAgentMessageSchema, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, registerAckSchema, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, upstreamSnapshotSchema } from "./protocol/messages/orchestrator-agent.js";
|
|
46
46
|
import { KNOWN_LINUX_CAPABILITIES, canonicalizeCapability, isKnownCapability } from "./sandbox/capabilities.js";
|
|
47
|
+
import { compileSafeRegex, describeTextMatch, evaluateTextMatch, textMatchHasQuery } from "./trigger/text-match.js";
|
|
47
48
|
import { TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES } from "./trigger/trigger-event-type.js";
|
|
48
|
-
import { createTraceEntry, createWorkflowDecision } from "./trigger/decision-trace.js";
|
|
49
|
+
import { TraceCheck, TraceVerdict, appendChecks, createCommitMessageTraceEntry, createContentRequirementsTraceEntry, createGlobalFilterTraceEntry, createTraceEntry, createWorkflowDecision } from "./trigger/decision-trace.js";
|
|
50
|
+
import { getRepoGlobMatcher } from "./trigger/compiled-matchers.js";
|
|
49
51
|
import { matchAllWorkflows, matchBranchPattern, matchPathPatterns, matchRepoPatterns, matchTrigger, matchWorkflowTriggers } from "./trigger/matcher.js";
|
|
50
52
|
import { TRIGGER_TYPE_TO_EVENT_TYPES, matchWorkflowsForEvent, prepareEventBuckets } from "./trigger/event-buckets.js";
|
|
51
53
|
import { scheduleTriggerKey } from "./trigger/schedule-key.js";
|
|
@@ -71,8 +73,9 @@ import { DEFAULT_HOLD_EXPIRY_SECONDS } from "./context/hold-expiry.js";
|
|
|
71
73
|
import { matchScopePattern, resolveSecretsForContext, resolveSecretsWithProvenance, stripScopePrefix } from "./context/scope-resolver.js";
|
|
72
74
|
import { ContextGateRejectReason, mergeOrderedMaps } from "./context/multi-context.js";
|
|
73
75
|
import { SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, ScopeNameError, assertValidScopeName, validateScopeName } from "./context/scope-name.js";
|
|
76
|
+
import { SECRET_KEY_MAX_LENGTH, SECRET_KEY_PATTERN, SecretKeyError, assertValidSecretKey, validateSecretKey } from "./context/secret-key.js";
|
|
74
77
|
import "./context/index.js";
|
|
75
|
-
import { CAPABILITY_LABEL_PREFIX, HOST_LABEL_PREFIX, INIT_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, ScalerArch, ScalerOs, agentTypeLabel, capabilityLabel, deriveOsArchLabels, derivePlatformTaints, hostLabel, hostToScalerPlatform, isSelfReportedLabel, mergeAutoLabels, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeRunsOn, parseHostLabel, platformToOsArchLabels, platformToTaints, resolveRoleLabels, scalerAgentLabels, scalerLabel, scalerPlatformSchema, validateNoReservedLabels } from "./labels.js";
|
|
78
|
+
import { CAPABILITY_LABEL_PREFIX, HOST_LABEL_PREFIX, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, SELF_REPORTED_LABEL_PREFIXES, SSH_TRANSPORT_CAPABILITY, ScalerArch, ScalerOs, agentTypeLabel, capabilityLabel, deriveOsArchLabels, derivePlatformTaints, hostLabel, hostToScalerPlatform, isSelfReportedLabel, mergeAutoLabels, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeRunsOn, parseHostLabel, platformToOsArchLabels, platformToTaints, resolveRoleLabels, scalerAgentLabels, scalerLabel, scalerPlatformSchema, validateNoReservedLabels } from "./labels.js";
|
|
76
79
|
import { parseMemoryString, resourceRequestNestedSchema, resourceSpecSchema, validateResourceRequest } from "./scaler/resource-types.js";
|
|
77
80
|
import { RegisterableTriggerType } from "./registration/registerable-trigger-type.js";
|
|
78
81
|
import { createWorkflowBundleConfig } from "./bundler/rolldown-config.js";
|
|
@@ -83,4 +86,4 @@ import { FanoutCause, FanoutError, MAX_FANOUT_JOBS, MAX_MATRIX_MATERIALIZATION,
|
|
|
83
86
|
import { ARTIFACT_INVALID_NAME_PREFIX, ARTIFACT_NAME_MAX_LENGTH, ArtifactNameSchema, artifactInvalidNameError, checkArtifactName } from "./artifacts/name.js";
|
|
84
87
|
import { PLAN_TYPES, PaidPlanType, PlanType, isPaidTier, planRank } from "./billing/plan-type.js";
|
|
85
88
|
import { INFRA_ALERT_TYPES, InfraAlertSeverity, InfraAlertType, normalizeInfraAlertSeverity } from "./diagnostics/infra-alert.js";
|
|
86
|
-
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, 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, CONTEXTS_MAX, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, ConcurrencyStrategy, ContextDeleteErrorCode, ContextGateRejectReason, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DEAD_ORCH_FAILURE_REASON, DEFAULT_APPROVAL_EXPIRY_HOURS, 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, HEARTBEAT_CLOSE_MS, HEARTBEAT_DEGRADED_MS, HEARTBEAT_FRESH_MS, HEARTBEAT_STALE_THRESHOLD_SECONDS, HEARTBEAT_UNHEALTHY_MARK_MS, HOST_LABEL_PREFIX, HeldRunQueueType, HeldRunStatus, HoldScope, HoldType, HostInventoryEntry, HostPropertyValue, HostTargetSelector, HostTargetValue, INFRA_ALERT_TYPES, INIT_LABEL, INSTALL_JOB_ID_PREFIX, InfraAlertSeverity, InfraAlertType, InitFailureCategory, InputDescriptor, InputsDescriptorMapSchema, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JobRejectReason, KICI_AGENT_ENV_PREFIX, KNOWN_LINUX_CAPABILITIES, KNOWN_ROLES, LEGACY_STATUS_ALIASES, LabelMatcher, LockFileParseError, LogStream, MAX_FANOUT_JOBS, MAX_JOBS_PER_RUN, MAX_MATRIX_MATERIALIZATION, MIN_PROTOCOL_VERSION, MatrixShapeError, NACK_EXEMPT_MESSAGE_TYPES, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, ORCH_TO_PLATFORM_RECOGNIZED_TYPES, OWN_INGRESS_MODES, OnUnreachableMode, OrchLogPhase, OrchRole, OrchestratorMode, PING_EVENT_TYPE, PLAN_TYPES, PLATFORM_CAPABILITIES, PLATFORM_CONNECTED_MODES, PLATFORM_TAINT_LABELS, PLATFORM_TO_ORCH_RECOGNIZED_TYPES, POLICY_BY_ACTION, PRIVILEGED_ROOT_LABEL, PROTOCOL_VERSION, PaidPlanType, PatKind, PayloadOmittedReason, PlanType, RELAY_INGRESS_MODES, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RegisterableTriggerType, RunFailureClass, RunsOnPick, SANDBOX_DEFAULT_VARS, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_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, ScalerArch, ScalerBackendType, ScalerEventType, ScalerOs, ScopeNameError, SourceOrigin, SourceProvider, SourceSubtype, StatusFailureClass, StepApprovalOutcome, StepConcurrencyKind, SubscribableWebhookEventType, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TRIGGER_TYPE_TO_EVENT_TYPES, TRUSTED_ENV_SCRUB_EXACT, TestRelayType, TimeoutReason, TriggerSource, TrustTierSchema, 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_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, applyIncludeExclude, approvalRequirementSchema, approvalTimeoutSecondsSchema, approveRunToolSchema, approverClauseSchema, artifactInvalidNameError, artifactListItemSchema, artifactsDownloadRequestSchema, artifactsDownloadResponseSchema, artifactsUploadCompleteAckSchema, artifactsUploadCompleteSchema, artifactsUploadRequestSchema, artifactsUploadResponseSchema, assertScheduleInputsSatisfiable, assertValidScopeName, attestationListFiltersSchema, attestationListItemSchema, attestationListSummarySchema, attestationVerifyStatusSchema, auditLogColdDays, auditLogWarmDays, auditLogWarmSqlCase, authFailureSchema, authRequestSchema, authSuccessSchema, backendGetRequestSchema, backendGetResponseSchema, backendItemSchema, backendSyncRequestSchema, backendSyncResponseSchema, backendTestRequestSchema, backendTestResponseSchema, backendsListRequestSchema, backendsListResponseSchema, backendsSyncAllRequestSchema, backendsSyncAllResponseSchema, browserAuthFailureSchema, browserAuthRefreshSchema, browserAuthRequestSchema, browserAuthSuccessSchema, browserErrorSchema, browserEventLogPayloadChunkSchema, browserEventLogPayloadFetchSchema, browserGapSchema, browserJobContextSchema, browserJobNewSchema, browserJobStatusSchema, browserLogLinesSchema, browserLogStreamTerminatedReason, browserLogStreamTerminatedSchema, browserLogSubscribeSchema, browserLogUnsubscribeSchema, browserOrchLogLinesSchema, browserOrchLogSubscribeSchema, browserOrchLogUnsubscribeSchema, browserPingSchema, browserPongSchema, browserRunEventSchema, browserRunNewSchema, browserRunStatusSchema, browserStatusSubscribeSchema, browserStatusUnsubscribeSchema, browserStepStatusSchema, browserToPlatformMessageSchema, buildTrustedPassthroughEnv, buildUnsupportedMessageNack, buildZodFromDescriptor, buildZodObjectFromMap, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, cancelRunToolSchema, cancelRunsByBranchToolSchema, canonicalizeCapability, capabilityLabel, changedFilesStatusSchema, checkArtifactName, coerceDispatchInputs, coerceHostPropertyValue, collectDiscriminatorTypes, compileRegexMatcher, 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, createTraceEntry, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, 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, developerOpsForEntrypoint, diagnosticsInfraAlertSchema, diagnosticsInfrastructureResponseSchema, diagnosticsSummaryResponseSchema, encodeActivityCursor, errorSchema, 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, getRunToolSchema, getSecretAuditLogColdDays, getSecretAuditLogWarmDays, getStepLogsToolSchema, gitAuthSchema, githubIngressPath, githubWebhookPath, hasOrchAgentCapability, hasOrchCapability, hasPlatformCapability, heartbeatSchema, heldRunApproveRequestSchema, heldRunRejectRequestSchema, heldRunsListRequestSchema, hostEnvelopeFields, hostLabel, hostSatisfiesTarget, hostToScalerPlatform, identityLinkItemSchema, identityLinkListResponseSchema, initFailureSchema, installGateJobId, isFailureStatus, isInputSatisfiableFromDefaults, isKnownCapability, isLockDynamicJobFn, isLockInlineValue, isLockParallelStep, isLockStaticJob, isPaidTier, isSelfReportedLabel, 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, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeInfraAlertSeverity, normalizeMatrixInput, normalizePersistedHoldType, 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, planRank, platformCapabilitiesMessageSchema, platformCapabilitiesSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, platformToOsArchLabels, platformToTaints, prepareEventBuckets, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, rejectRunToolSchema, renderFenced, rerunRunToolSchema, resolveHeldRunId, resolveRoleLabels, resolveRunIdSugar, resolveScheduleInputs, resolveSecretsForContext, resolveSecretsWithProvenance, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, scalerAgentLabels, scalerLabel, scalerPlatformSchema, scheduleTriggerKey, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, toCanonicalStatus, triggerRunToolSchema, trustPolicyResponseSchema, trustPolicySchema, trustPolicyUpdateSchema, trustedContributorHoldReason, unknownContributorHoldReason, untrusted, upstreamSnapshotSchema, userActorSchema, validateNoReservedLabels, validateResourceRequest, validateScopeName, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema, workerClusterSettingsSchema, worstStatus, wrapUntrusted };
|
|
89
|
+
export { ACCESS_LOG_COLD_DAYS, ACCESS_LOG_WARM_DAYS, 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, CONTEXTS_MAX, CacheOutcome, CacheRefScope, CacheRunEventType, CacheStepType, CheckMode, CheckRunConclusion, CheckStepOutcome, ConcurrencyStrategy, ContextDeleteErrorCode, ContextGateRejectReason, DASHBOARD_REQUEST_TYPES, DASHBOARD_REQUEST_TYPE_SET, DEAD_ORCH_FAILURE_REASON, DEFAULT_APPROVAL_EXPIRY_HOURS, 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, HEARTBEAT_CLOSE_MS, HEARTBEAT_DEGRADED_MS, HEARTBEAT_FRESH_MS, HEARTBEAT_STALE_THRESHOLD_SECONDS, HEARTBEAT_UNHEALTHY_MARK_MS, HOST_LABEL_PREFIX, HeldRunQueueType, HeldRunStatus, HoldScope, HoldType, HostInventoryEntry, HostPropertyValue, HostTargetSelector, HostTargetValue, INFRA_ALERT_TYPES, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, INSTALL_JOB_ID_PREFIX, InfraAlertSeverity, InfraAlertType, InitFailureCategory, InputDescriptor, InputsDescriptorMapSchema, InventoryHostStatus, InventoryLifecycleClass, InventorySelectorSchema, JobRejectReason, KICI_AGENT_ENV_PREFIX, KNOWN_LINUX_CAPABILITIES, KNOWN_ROLES, LEGACY_STATUS_ALIASES, LabelMatcher, LockFileParseError, LogStream, MAX_FANOUT_JOBS, MAX_JOBS_PER_RUN, MAX_MATRIX_MATERIALIZATION, MIN_PROTOCOL_VERSION, MatrixShapeError, NACK_EXEMPT_MESSAGE_TYPES, NeedsEntrySchema, NeedsGroupEntrySchema, NeedsRunOn, NeedsWhen, ORCH_AGENT_CAPABILITIES, ORCH_CAPABILITIES, ORCH_TO_PLATFORM_RECOGNIZED_TYPES, OWN_INGRESS_MODES, OnUnreachableMode, OrchLogPhase, OrchRole, OrchestratorMode, PING_EVENT_TYPE, PLAN_TYPES, PLATFORM_CAPABILITIES, PLATFORM_CONNECTED_MODES, PLATFORM_TAINT_LABELS, PLATFORM_TO_ORCH_RECOGNIZED_TYPES, POLICY_BY_ACTION, PRIVILEGED_ROOT_LABEL, PROTOCOL_VERSION, PaidPlanType, PatKind, PayloadOmittedReason, PlanType, RELAY_INGRESS_MODES, REPO_IDENTIFIER_MAX, RUNS_ON_LABELS_MAX, RegisterableTriggerType, RunFailureClass, RunsOnPick, SANDBOX_DEFAULT_VARS, SANDBOX_NETWORK_MODES, SCHEMA_VERSION, SCOPE_NAME_MAX_LENGTH, SCOPE_SEGMENT_PATTERN, 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, ScalerArch, ScalerBackendType, ScalerEventType, ScalerOs, ScopeNameError, SecretKeyError, SourceOrigin, SourceProvider, SourceSubtype, StatusFailureClass, StepApprovalOutcome, StepConcurrencyKind, SubscribableWebhookEventType, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, TERMINAL_STEP_STATES, TRIGGER_EVENT_META, TRIGGER_EVENT_TYPES, TRIGGER_TYPE_TO_EVENT_TYPES, TRUSTED_ENV_SCRUB_EXACT, TestRelayType, TimeoutReason, TraceCheck, TraceVerdict, TriggerSource, TrustTierSchema, 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_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, 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, 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, buildTrustedPassthroughEnv, buildUnsupportedMessageNack, buildZodFromDescriptor, buildZodObjectFromMap, cacheStatsSchema, cacheUserRestoreRequestSchema, cacheUserRestoreResponseSchema, cacheUserSaveCompleteSchema, cacheUserSaveRequestSchema, cacheUserSaveResponseSchema, cancelRunToolSchema, cancelRunsByBranchToolSchema, canonicalizeCapability, capabilityLabel, changedFilesStatusSchema, checkArtifactName, 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, createGlobalFilterTraceEntry, createTraceEntry, createWorkflowBundleConfig, createWorkflowDecision, dashboardAccessLogListRequestSchema, dashboardAccessLogListResponseSchema, 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, isFailureStatus, isInputSatisfiableFromDefaults, isKnownCapability, isLockDynamicJobFn, isLockInlineValue, isLockParallelStep, isLockStaticJob, isPaidTier, isSelfReportedLabel, 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, nodeArchToScalerArch, nodePlatformToScalerOs, normalizeInfraAlertSeverity, normalizeMatrixInput, normalizePersistedHoldType, 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, planRank, platformCapabilitiesMessageSchema, platformCapabilitiesSchema, platformOperatorActorSchema, platformToBrowserMessageSchema, platformToOrchestratorMessageSchema, platformToOsArchLabels, platformToTaints, prepareEventBuckets, provenanceUploadCompleteSchema, provenanceUploadDeferSchema, provenanceUploadRequestSchema, provenanceUploadResponseSchema, raftAppendEntriesSchema, raftVoteRequestSchema, raftVoteResponseSchema, registerAckSchema, registrationDeleteRequestSchema, registrationDisableRequestSchema, registrationItemSchema, registrationsListRequestSchema, registrationsListResponseSchema, rejectRunToolSchema, renderFenced, rerunRunToolSchema, resolveContentFormat, resolveHeldRunId, resolveRoleLabels, resolveRunIdSugar, resolveScheduleInputs, resolveSecretsForContext, resolveSecretsWithProvenance, resolveWhenToRunOn, resourceRequestNestedSchema, resourceSpecSchema, runCancelRequestSchema, runEventMessageSchema, runEventSchema, runLineageResponseSchema, runListItemSchema, runListResponseSchema, runRerunRequestSchema, scalerAgentLabels, scalerLabel, scalerPlatformSchema, scheduleTriggerKey, secretAuditLogColdDays, secretAuditLogWarmDays, secretAuditLogWarmSqlCase, serviceAccountActorSchema, shouldRecordAccess, shouldRecordSecretResolve, sourceDeregisterAckSchema, sourceDeregisterSchema, sourceRegistrationAckSchema, sourceRegistrationSchema, staleCheckrunCleanupSchema, stateReplayRunSchema, stateReplaySchema, statusOptionsForLevel, stepApprovalPayloadSchema, stepApprovalRequestSchema, stepApprovalResolvedSchema, stepStatusForwardSchema, stringifyActor, stripScopePrefix, systemActorSchema, testRelayCancelRequestSchema, testRelayCancelResponseSchema, testRelayRunLogsRequestSchema, testRelayRunLogsResponseSchema, testRelayRunStatusRequestSchema, testRelayRunStatusResponseSchema, testRelayTriggerRequestSchema, testRelayTriggerResponseSchema, testRelayUploadsInitRequestSchema, testRelayUploadsInitResponseSchema, textMatchHasQuery, toCanonicalStatus, triggerRunToolSchema, trustPolicyResponseSchema, trustPolicySchema, trustPolicyUpdateSchema, trustedContributorHoldReason, unknownContributorHoldReason, untrusted, upstreamSnapshotSchema, userActorSchema, validateNoReservedLabels, validateResourceRequest, validateScopeName, validateSecretKey, webhookAckSchema, webhookRelayChunkSchema, webhookRelaySchema, webhookRelayStartSchema, workerClusterSettingsSchema, worstStatus, wrapUntrusted };
|
package/dist/labels/compile.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import type { LabelMatcher } from '../labels-match.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* orchestrator is single-tenant, so a slipped-through pattern only stalls the
|
|
5
|
-
* author's own orchestrator. Globs are linear by construction but pass through
|
|
6
|
-
* here for uniformity.
|
|
7
|
-
*/
|
|
8
|
-
export declare function assertSafeRegex(source: string, flags: string, ctx: string): void;
|
|
2
|
+
import { assertSafeRegex } from '../safe-regex.js';
|
|
3
|
+
export { assertSafeRegex };
|
|
9
4
|
/**
|
|
10
5
|
* Convert one author selector element into a `LabelMatcher`.
|
|
11
6
|
* - `RegExp` → regex matcher (source + flags captured verbatim).
|
package/dist/labels/compile.js
CHANGED
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import "../rolldown-runtime-ClRpJifh.js";
|
|
2
|
+
import { assertSafeRegex } from "../safe-regex.js";
|
|
2
3
|
import picomatch from "picomatch";
|
|
3
|
-
import safeRegex from "safe-regex";
|
|
4
4
|
//#region src/labels/compile.ts
|
|
5
5
|
/**
|
|
6
|
-
* Reject a ReDoS-prone regex. `safe-regex` is a star-height heuristic — the
|
|
7
|
-
* orchestrator is single-tenant, so a slipped-through pattern only stalls the
|
|
8
|
-
* author's own orchestrator. Globs are linear by construction but pass through
|
|
9
|
-
* here for uniformity.
|
|
10
|
-
*/
|
|
11
|
-
function assertSafeRegex(source, flags, ctx) {
|
|
12
|
-
if (!safeRegex(new RegExp(source, flags))) throw new Error(`${ctx}: regex /${source}/${flags} is ReDoS-prone — rejected`);
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
6
|
* Convert one author selector element into a `LabelMatcher`.
|
|
16
7
|
* - `RegExp` → regex matcher (source + flags captured verbatim).
|
|
17
8
|
* - string that picomatch detects as a glob → regex via `picomatch.makeRe`.
|
package/dist/labels.d.ts
CHANGED
|
@@ -194,6 +194,14 @@ export declare const ROLE_LABEL_PREFIX = "kici:role:";
|
|
|
194
194
|
* Convert a role name to its corresponding label.
|
|
195
195
|
*/
|
|
196
196
|
export declare function roleToLabel(role: AgentRole): string;
|
|
197
|
+
/**
|
|
198
|
+
* The label every pre-run evaluation job routes to.
|
|
199
|
+
*
|
|
200
|
+
* Exported because three dispatch sites and the global eval round all target
|
|
201
|
+
* it, and each had spelled the string out. Derived from {@link roleToLabel} so
|
|
202
|
+
* it cannot drift from the prefix or from `KNOWN_ROLES`.
|
|
203
|
+
*/
|
|
204
|
+
export declare const INIT_RUNNER_ROLE_LABEL: string;
|
|
197
205
|
/**
|
|
198
206
|
* Resolve a roles configuration into role labels.
|
|
199
207
|
*
|
package/dist/labels.js
CHANGED
|
@@ -274,6 +274,14 @@ function roleToLabel(role) {
|
|
|
274
274
|
return `${ROLE_LABEL_PREFIX}${role}`;
|
|
275
275
|
}
|
|
276
276
|
/**
|
|
277
|
+
* The label every pre-run evaluation job routes to.
|
|
278
|
+
*
|
|
279
|
+
* Exported because three dispatch sites and the global eval round all target
|
|
280
|
+
* it, and each had spelled the string out. Derived from {@link roleToLabel} so
|
|
281
|
+
* it cannot drift from the prefix or from `KNOWN_ROLES`.
|
|
282
|
+
*/
|
|
283
|
+
const INIT_RUNNER_ROLE_LABEL = roleToLabel("init-runner");
|
|
284
|
+
/**
|
|
277
285
|
* Resolve a roles configuration into role labels.
|
|
278
286
|
*
|
|
279
287
|
* - undefined → all roles (backward compat: existing agents get all capabilities)
|
|
@@ -352,6 +360,6 @@ function separateLabels(labels) {
|
|
|
352
360
|
};
|
|
353
361
|
}
|
|
354
362
|
//#endregion
|
|
355
|
-
export { CAPABILITY_LABEL_PREFIX, HOST_LABEL_PREFIX, INIT_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, RESERVED_LABEL_PREFIX, ROLE_LABEL_PREFIX, 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, scalerAgentLabels, scalerLabel, scalerPlatformSchema, separateLabels, validateNoReservedLabels };
|
|
363
|
+
export { CAPABILITY_LABEL_PREFIX, HOST_LABEL_PREFIX, INIT_LABEL, INIT_RUNNER_ROLE_LABEL, KNOWN_ROLES, PLATFORM_TAINT_LABELS, PRIVILEGED_ROOT_LABEL, RESERVED_LABEL_PREFIX, ROLE_LABEL_PREFIX, 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, scalerAgentLabels, scalerLabel, scalerPlatformSchema, separateLabels, validateNoReservedLabels };
|
|
356
364
|
|
|
357
365
|
//# sourceMappingURL=labels.js.map
|
|
@@ -59,6 +59,17 @@ export declare const ORCH_PUSHED_METRIC_NAMES: ReadonlySet<MetricName>;
|
|
|
59
59
|
* `AGENT_SCALER_VALUES`. Exported so the policy tests can assert against it.
|
|
60
60
|
*/
|
|
61
61
|
export declare const ORCH_SCALER_VALUES: readonly ["__global__", "stateful", "container", "firecracker", "bare-metal"];
|
|
62
|
+
/**
|
|
63
|
+
* Closed enum of the scheduled jobs the orchestrator runs. MUST mirror
|
|
64
|
+
* `OrchestratorScheduledJobName` (`packages/orchestrator/src/queue/scheduled-job.ts`)
|
|
65
|
+
* exactly — a job missing here has its whole `kici_orch_job_*` series
|
|
66
|
+
* dropped by the Platform filter with `reason="bad_label_value"`, so the
|
|
67
|
+
* job silently loses every health metric. The engine cannot import the
|
|
68
|
+
* orchestrator (dependency runs the other way), so the parity assertion
|
|
69
|
+
* lives on the orchestrator side in `scheduled-job.test.ts`. Exported so
|
|
70
|
+
* that test can assert against it.
|
|
71
|
+
*/
|
|
72
|
+
export declare const ORCH_JOB_VALUES: readonly ['cleanup', 'orphan-secret-cleanup', 'token-cleanup', 'cold-store-archive', 'cold-store-purge', 'unroutable-probe'];
|
|
62
73
|
/**
|
|
63
74
|
* Per-metric, per-label value policy. Missing entries (or missing label
|
|
64
75
|
* keys within an entry) mean "no value-level constraint" — the label key
|
|
@@ -55,13 +55,23 @@ const AGENT_SCALER_VALUES = [
|
|
|
55
55
|
* `AGENT_SCALER_VALUES`. Exported so the policy tests can assert against it.
|
|
56
56
|
*/
|
|
57
57
|
const ORCH_SCALER_VALUES = ["__global__", ...AGENT_SCALER_VALUES];
|
|
58
|
-
/**
|
|
58
|
+
/**
|
|
59
|
+
* Closed enum of the scheduled jobs the orchestrator runs. MUST mirror
|
|
60
|
+
* `OrchestratorScheduledJobName` (`packages/orchestrator/src/queue/scheduled-job.ts`)
|
|
61
|
+
* exactly — a job missing here has its whole `kici_orch_job_*` series
|
|
62
|
+
* dropped by the Platform filter with `reason="bad_label_value"`, so the
|
|
63
|
+
* job silently loses every health metric. The engine cannot import the
|
|
64
|
+
* orchestrator (dependency runs the other way), so the parity assertion
|
|
65
|
+
* lives on the orchestrator side in `scheduled-job.test.ts`. Exported so
|
|
66
|
+
* that test can assert against it.
|
|
67
|
+
*/
|
|
59
68
|
const ORCH_JOB_VALUES = [
|
|
60
69
|
"cleanup",
|
|
61
70
|
"orphan-secret-cleanup",
|
|
62
71
|
"token-cleanup",
|
|
63
72
|
"cold-store-archive",
|
|
64
|
-
"cold-store-purge"
|
|
73
|
+
"cold-store-purge",
|
|
74
|
+
"unroutable-probe"
|
|
65
75
|
];
|
|
66
76
|
/**
|
|
67
77
|
* Per-metric, per-label value policy. Missing entries (or missing label
|
|
@@ -277,6 +287,6 @@ const METRIC_LABEL_POLICY = {
|
|
|
277
287
|
}
|
|
278
288
|
};
|
|
279
289
|
//#endregion
|
|
280
|
-
export { METRIC_LABEL_POLICY, ORCH_PUSHED_METRIC_NAMES, ORCH_SCALER_VALUES, OVERFLOW_LABEL_VALUE };
|
|
290
|
+
export { METRIC_LABEL_POLICY, ORCH_JOB_VALUES, ORCH_PUSHED_METRIC_NAMES, ORCH_SCALER_VALUES, OVERFLOW_LABEL_VALUE };
|
|
281
291
|
|
|
282
292
|
//# sourceMappingURL=catalog-policy.js.map
|
|
@@ -44,6 +44,11 @@ export declare const MetricNames: {
|
|
|
44
44
|
readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'kici_orch_execution_duration_seconds';
|
|
45
45
|
readonly KICI_ORCH_EXECUTIONS_TOTAL: 'kici_orch_executions_total';
|
|
46
46
|
readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'kici_orch_github_check_run_total';
|
|
47
|
+
readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'kici_orch_global_eval_cache_lookups_total';
|
|
48
|
+
readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'kici_orch_global_eval_candidates_total';
|
|
49
|
+
readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'kici_orch_global_eval_jobs_generated';
|
|
50
|
+
readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'kici_orch_global_eval_round_duration_seconds';
|
|
51
|
+
readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'kici_orch_global_eval_verdicts_total';
|
|
47
52
|
readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'kici_orch_ingest_admitted_total';
|
|
48
53
|
readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'kici_orch_ingest_event_loop_delay_max_ms';
|
|
49
54
|
readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'kici_orch_ingest_event_loop_delay_p99_ms';
|
|
@@ -94,6 +99,7 @@ export declare const MetricNames: {
|
|
|
94
99
|
readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'kici_orch_trust_match_refused_no_id_total';
|
|
95
100
|
readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'kici_orch_trust_policy_decisions_total';
|
|
96
101
|
readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'kici_orch_unroutable_fast_failed_total';
|
|
102
|
+
readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'kici_orch_webhook_pipeline_failures_total';
|
|
97
103
|
readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'kici_orch_webhooks_processed_total';
|
|
98
104
|
readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'kici_orch_webhooks_received_total';
|
|
99
105
|
readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'kici_orch_ws_nack_received_total';
|
|
@@ -246,6 +252,11 @@ export declare const MetricLabels: {
|
|
|
246
252
|
readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: readonly [];
|
|
247
253
|
readonly KICI_ORCH_EXECUTIONS_TOTAL: readonly ['status'];
|
|
248
254
|
readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: readonly ['operation'];
|
|
255
|
+
readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: readonly ['result'];
|
|
256
|
+
readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: readonly [];
|
|
257
|
+
readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: readonly [];
|
|
258
|
+
readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: readonly ['result'];
|
|
259
|
+
readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: readonly ['outcome'];
|
|
249
260
|
readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: readonly [];
|
|
250
261
|
readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: readonly [];
|
|
251
262
|
readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: readonly [];
|
|
@@ -296,6 +307,7 @@ export declare const MetricLabels: {
|
|
|
296
307
|
readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: readonly ['reason'];
|
|
297
308
|
readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: readonly ['arm', 'action'];
|
|
298
309
|
readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: readonly [];
|
|
310
|
+
readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: readonly ['phase'];
|
|
299
311
|
readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: readonly ['result'];
|
|
300
312
|
readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: readonly ['source', 'event'];
|
|
301
313
|
readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: readonly [];
|
|
@@ -447,6 +459,11 @@ export declare const MetricKind: {
|
|
|
447
459
|
readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'histogram';
|
|
448
460
|
readonly KICI_ORCH_EXECUTIONS_TOTAL: 'counter';
|
|
449
461
|
readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'counter';
|
|
462
|
+
readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'counter';
|
|
463
|
+
readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'counter';
|
|
464
|
+
readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'histogram';
|
|
465
|
+
readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'histogram';
|
|
466
|
+
readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'counter';
|
|
450
467
|
readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'counter';
|
|
451
468
|
readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'observableGauge';
|
|
452
469
|
readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'observableGauge';
|
|
@@ -497,6 +514,7 @@ export declare const MetricKind: {
|
|
|
497
514
|
readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'counter';
|
|
498
515
|
readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'counter';
|
|
499
516
|
readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'counter';
|
|
517
|
+
readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'counter';
|
|
500
518
|
readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'counter';
|
|
501
519
|
readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'counter';
|
|
502
520
|
readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'counter';
|
|
@@ -648,6 +666,11 @@ export declare const MetricDescription: {
|
|
|
648
666
|
readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'Duration of execution runs in seconds';
|
|
649
667
|
readonly KICI_ORCH_EXECUTIONS_TOTAL: 'Total number of execution runs';
|
|
650
668
|
readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'Total number of GitHub check run API calls';
|
|
669
|
+
readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'Tier-2 global eval round cache lookups by outcome';
|
|
670
|
+
readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'Global workflow candidates handed to a Tier-2 eval round';
|
|
671
|
+
readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'Jobs generated by a Tier-2 global eval round';
|
|
672
|
+
readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'Duration of one dispatched Tier-2 global eval round in seconds';
|
|
673
|
+
readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'Per-candidate verdicts produced by a Tier-2 global eval round';
|
|
651
674
|
readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'Total webhook ingest admissions granted by the admission controller';
|
|
652
675
|
readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'Event-loop delay max (ms) observed by the ingest admission sampler';
|
|
653
676
|
readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'Event-loop delay p99 (ms) observed by the ingest admission sampler';
|
|
@@ -698,6 +721,7 @@ export declare const MetricDescription: {
|
|
|
698
721
|
readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'Trust-resolution attempts refused because the provider numeric id was missing or did not match';
|
|
699
722
|
readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'Total org trust-policy gate decisions by arm and action';
|
|
700
723
|
readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'Jobs terminalized as unroutable by the fast-fail probe (not the queue timeout)';
|
|
724
|
+
readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'Webhook match-and-dispatch pipelines that threw. Labels: phase (post_ack — failed after the delivery was acknowledged)';
|
|
701
725
|
readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'Total number of webhooks processed';
|
|
702
726
|
readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'Total number of webhooks received';
|
|
703
727
|
readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'NACKs received from the Platform for a message it could not process (version skew)';
|
|
@@ -856,6 +880,11 @@ export declare const MetricService: {
|
|
|
856
880
|
readonly KICI_ORCH_EXECUTION_DURATION_SECONDS: 'orchestrator';
|
|
857
881
|
readonly KICI_ORCH_EXECUTIONS_TOTAL: 'orchestrator';
|
|
858
882
|
readonly KICI_ORCH_GITHUB_CHECK_RUN_TOTAL: 'orchestrator';
|
|
883
|
+
readonly KICI_ORCH_GLOBAL_EVAL_CACHE_LOOKUPS_TOTAL: 'orchestrator';
|
|
884
|
+
readonly KICI_ORCH_GLOBAL_EVAL_CANDIDATES_TOTAL: 'orchestrator';
|
|
885
|
+
readonly KICI_ORCH_GLOBAL_EVAL_JOBS_GENERATED: 'orchestrator';
|
|
886
|
+
readonly KICI_ORCH_GLOBAL_EVAL_ROUND_DURATION_SECONDS: 'orchestrator';
|
|
887
|
+
readonly KICI_ORCH_GLOBAL_EVAL_VERDICTS_TOTAL: 'orchestrator';
|
|
859
888
|
readonly KICI_ORCH_INGEST_ADMITTED_TOTAL: 'orchestrator';
|
|
860
889
|
readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_MAX_MS: 'orchestrator';
|
|
861
890
|
readonly KICI_ORCH_INGEST_EVENT_LOOP_DELAY_P99_MS: 'orchestrator';
|
|
@@ -906,6 +935,7 @@ export declare const MetricService: {
|
|
|
906
935
|
readonly KICI_ORCH_TRUST_MATCH_REFUSED_NO_ID_TOTAL: 'orchestrator';
|
|
907
936
|
readonly KICI_ORCH_TRUST_POLICY_DECISIONS_TOTAL: 'orchestrator';
|
|
908
937
|
readonly KICI_ORCH_UNROUTABLE_FAST_FAILED_TOTAL: 'orchestrator';
|
|
938
|
+
readonly KICI_ORCH_WEBHOOK_PIPELINE_FAILURES_TOTAL: 'orchestrator';
|
|
909
939
|
readonly KICI_ORCH_WEBHOOKS_PROCESSED_TOTAL: 'orchestrator';
|
|
910
940
|
readonly KICI_ORCH_WEBHOOKS_RECEIVED_TOTAL: 'orchestrator';
|
|
911
941
|
readonly KICI_ORCH_WS_NACK_RECEIVED_TOTAL: 'orchestrator';
|