@kici-dev/orchestrator 0.15.0 → 0.17.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/__test-helpers__/scratch-db.d.ts +16 -0
- package/dist/agent/registry.d.ts +1 -8
- package/dist/app-on-error.d.ts +1 -1
- package/dist/approvals/apply-decision.d.ts +12 -1
- package/dist/artifacts/artifact-store.d.ts +0 -2
- package/dist/audit/access-log.d.ts +1 -1
- package/dist/cache/source-cache.d.ts +1 -1
- package/dist/cache/user-cache.d.ts +0 -28
- package/dist/cli/api-client.d.ts +35 -1
- package/dist/cli/commands/access-log.d.ts +1 -1
- package/dist/cli/commands/api-key.d.ts +11 -4
- package/dist/cli/commands/cold-store-impl.d.ts +7 -84
- package/dist/cli/commands/db.d.ts +1 -0
- package/dist/cli/commands/orchestrator-service/status.d.ts +2 -0
- package/dist/cli/commands/org.d.ts +12 -0
- package/dist/cli/commands/scaler.d.ts +14 -0
- package/dist/cli/commands/secret.d.ts +1 -45
- package/dist/cli/commands/service-health.d.ts +21 -13
- package/dist/cli/commands/shared/cli-action.d.ts +17 -0
- package/dist/cli/commands/shared/db.d.ts +5 -5
- package/dist/cli/commands/shared/org-id.d.ts +5 -0
- package/dist/cli/commands/shared/service-verbs.d.ts +19 -0
- package/dist/cli/commands/shared/table.d.ts +3 -0
- package/dist/cli/commands/shared/unbound-context-warning.d.ts +2 -22
- package/dist/cli/commands/trust-policy.d.ts +7 -31
- package/dist/cli/kici-admin.d.ts +1 -1
- package/dist/cli.js +9865 -8203
- package/dist/cluster/coordinator.d.ts +2 -2
- package/dist/cluster/peer-client.d.ts +27 -1
- package/dist/cluster/peer-forget.d.ts +4 -9
- package/dist/cluster/peer-handler.d.ts +11 -1
- package/dist/cluster/peer-request-waiters.d.ts +26 -0
- package/dist/cluster/scaler-orphans-peer.d.ts +4 -9
- package/dist/cluster/scaler-reload-fanout.d.ts +29 -0
- package/dist/cluster/scaler-reload-peer.d.ts +16 -0
- package/dist/cluster/worker-cluster-settings.d.ts +1 -0
- package/dist/cold-store/load-access-log-range.d.ts +3 -3
- package/dist/cold-store/tables/access-log.d.ts +4 -12
- package/dist/cold-store/tables/event-log.d.ts +8 -19
- package/dist/cold-store/tables/execution-jobs.d.ts +7 -24
- package/dist/cold-store/tables/execution-runs.d.ts +6 -20
- package/dist/cold-store/tables/execution-steps.d.ts +8 -26
- package/dist/cold-store/tables/secret-audit-log.d.ts +4 -11
- package/dist/config/env-overlay.d.ts +3 -8
- package/dist/config/reload.d.ts +9 -2
- package/dist/config/schema.d.ts +2 -2
- package/dist/config/types.d.ts +2 -2
- package/dist/config.d.ts +13 -17
- package/dist/contexts/held-runs.d.ts +3 -6
- package/dist/dashboard/cursor.d.ts +12 -0
- package/dist/dashboard/handler.d.ts +5 -12
- package/dist/db/deferred-index-build.d.ts +42 -0
- package/dist/db/deferred-indexes.d.ts +3 -37
- package/dist/db/migrations/100_held_runs_hold_type_vocabulary.d.ts +3 -5
- package/dist/db/migrations/158_normalize_legacy_values.d.ts +4 -0
- package/dist/db/repos/org-ids-repo.d.ts +87 -0
- package/dist/db/schema-snapshot.generated.d.ts +3 -0
- package/dist/db/types.d.ts +5 -22
- package/dist/fault-injection-types.d.ts +0 -6
- package/dist/git/dispatch-git-auth.d.ts +6 -12
- package/dist/helpers/json.d.ts +3 -0
- package/dist/index.js +144 -140
- package/dist/metrics/prometheus.d.ts +0 -5
- package/dist/oidc/id-token-claims.d.ts +1 -1
- package/dist/oidc/resolve-signer.d.ts +2 -4
- package/dist/orchestrator-core.d.ts +10 -3
- package/dist/pipeline/global-eval-round.d.ts +2 -26
- package/dist/pipeline/install-secrets-resolver.d.ts +0 -3
- package/dist/pipeline/manual-schedule.d.ts +1 -7
- package/dist/pipeline/test-pipeline.d.ts +8 -7
- package/dist/provenance/dispatch-context.d.ts +5 -7
- package/dist/provenance/pending-attestations-repo.d.ts +1 -1
- package/dist/provenance/trust-root.d.ts +4 -5
- package/dist/provenance/verify-deferred-capture.d.ts +3 -3
- package/dist/provider-registry.d.ts +13 -40
- package/dist/providers/universal-git/ssh-auth.d.ts +0 -5
- package/dist/queue/terminalize-unroutable.d.ts +5 -0
- package/dist/reporting/check-run-reporter.d.ts +8 -21
- package/dist/reporting/check-run-summary.d.ts +2 -2
- package/dist/reporting/execution-tracker.d.ts +1 -1
- package/dist/reporting/log-chunk-sink.d.ts +1 -1
- package/dist/reporting/run-summary-fields.d.ts +25 -0
- package/dist/reporting/s3-log-storage.d.ts +2 -2
- package/dist/routes/admin-access-log.d.ts +2 -9
- package/dist/routes/admin-auth.d.ts +2 -0
- package/dist/routes/admin-backends.d.ts +2 -9
- package/dist/routes/admin-cluster-name.d.ts +2 -8
- package/dist/routes/admin-cluster-settings.d.ts +2 -8
- package/dist/routes/admin-config.d.ts +0 -3
- package/dist/routes/admin-contexts.d.ts +3 -11
- package/dist/routes/admin-db.d.ts +2 -9
- package/dist/routes/admin-env.d.ts +33 -0
- package/dist/routes/admin-event-dlq.d.ts +2 -9
- package/dist/routes/admin-event-inspect.d.ts +2 -9
- package/dist/routes/admin-event-log.d.ts +2 -9
- package/dist/routes/admin-events.d.ts +3 -13
- package/dist/routes/admin-held-runs.d.ts +2 -8
- package/dist/routes/admin-list-limit.d.ts +3 -0
- package/dist/routes/admin-maintenance.d.ts +2 -9
- package/dist/routes/admin-orchestrator-drain.d.ts +2 -9
- package/dist/routes/admin-org-settings.d.ts +2 -8
- package/dist/routes/admin-orgs.d.ts +27 -0
- package/dist/routes/admin-peer-forget.d.ts +2 -9
- package/dist/routes/admin-queue-execution.d.ts +3 -10
- package/dist/routes/admin-registrations.d.ts +3 -14
- package/dist/routes/admin-runs.d.ts +3 -14
- package/dist/routes/admin-scaler-orphans.d.ts +2 -9
- package/dist/routes/admin-scaler-reload.d.ts +41 -0
- package/dist/routes/admin-scheduled-jobs.d.ts +2 -9
- package/dist/routes/admin-signing-keys.d.ts +2 -9
- package/dist/routes/admin-sources.d.ts +2 -9
- package/dist/routes/admin-trust-policy.d.ts +2 -8
- package/dist/routes/admin.d.ts +15 -13
- package/dist/routes/caller-identity.d.ts +52 -0
- package/dist/routes/test-direct.d.ts +46 -0
- package/dist/routes/uploads.d.ts +12 -11
- package/dist/scaler/config.d.ts +12 -84
- package/dist/scaler/file-reload.d.ts +48 -0
- package/dist/scaler/manager.d.ts +47 -33
- package/dist/scaler/scaler-state-store.d.ts +5 -0
- package/dist/scaler/types.d.ts +1 -4
- package/dist/secrets/job-secret-gate.d.ts +2 -5
- package/dist/secrets/rbac.d.ts +5 -1
- package/dist/secrets/routing-key-scope.d.ts +1 -0
- package/dist/secrets/secret-resolver.d.ts +2 -4
- package/dist/secrets/token-manager.d.ts +1 -0
- package/dist/security/trust-policy-gate.d.ts +0 -4
- package/dist/server.d.ts +6 -17
- package/dist/server.js +9890 -10851
- package/dist/standalone.js +6928 -6576
- package/dist/storage/s3.d.ts +7 -7
- package/dist/storage/types.d.ts +4 -4
- package/dist/worker/reroute-dispatch.d.ts +1 -0
- package/dist/worker/reroute-spawn-control.d.ts +1 -3
- package/dist/worker-core.d.ts +9 -2
- package/dist/ws/agent-handler.d.ts +3 -3
- package/dist/ws/dashboard-access.d.ts +57 -0
- package/dist/ws/dashboard-backends-handler.d.ts +1 -6
- package/dist/ws/dashboard-context-handler.d.ts +10 -15
- package/dist/ws/dashboard-fleet-write-handler.d.ts +1 -6
- package/dist/ws/dashboard-global-workflows-handler.d.ts +1 -6
- package/dist/ws/dashboard-registrations-handler.d.ts +1 -7
- package/dist/ws/platform-client.d.ts +85 -330
- package/dist/ws/test-relay-handlers.d.ts +16 -9
- package/installer-image-digests.json +3 -3
- package/package.json +4 -4
- package/sbom.spdx.json +53 -53
- package/dist/cache/legacy-prefixes.d.ts +0 -19
- package/dist/cli/commands/agent-service/logs.d.ts +0 -14
- package/dist/cli/commands/agent-service/restart.d.ts +0 -12
- package/dist/cli/commands/agent-service/start.d.ts +0 -12
- package/dist/cli/commands/agent-service/stop.d.ts +0 -12
- package/dist/cli/commands/agent-service/uninstall.d.ts +0 -13
- package/dist/cli/commands/cache.d.ts +0 -51
- package/dist/cli/commands/orchestrator-service/logs.d.ts +0 -14
- package/dist/cli/commands/orchestrator-service/restart.d.ts +0 -12
- package/dist/cli/commands/orchestrator-service/start.d.ts +0 -12
- package/dist/cli/commands/orchestrator-service/stop.d.ts +0 -12
- package/dist/cli/commands/orchestrator-service/uninstall.d.ts +0 -13
- package/dist/git/inherited-secret.d.ts +0 -29
- package/dist/scaler/container-spawn.d.ts +0 -28
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Read a secret output this job inherited from a `needs` upstream.
|
|
3
|
-
*
|
|
4
|
-
* Backs the reserved `needs:` context in a qualified credential reference. The
|
|
5
|
-
* value was written by `ctx.setSecretOutput`, is encrypted at rest in
|
|
6
|
-
* `run_secret_outputs`, and is deleted when the run completes — so this reads
|
|
7
|
-
* the store that already exists rather than adding a second one.
|
|
8
|
-
*/
|
|
9
|
-
import type { ResolvedMasterKeys } from '../secrets/config.js';
|
|
10
|
-
import type { SecretOutputStore } from '../secrets/secret-output-store.js';
|
|
11
|
-
export interface InheritedSecretDeps {
|
|
12
|
-
secretOutputStore: SecretOutputStore;
|
|
13
|
-
/** Upstream job ids for a job, in the same shape the run merge path uses. */
|
|
14
|
-
upstreamJobIds: (runId: string, jobId: string) => Promise<string[]>;
|
|
15
|
-
/**
|
|
16
|
-
* The orchestrator's master key, plus the previous generation during a
|
|
17
|
-
* rotation grace window — a stored output sealed under the old key still
|
|
18
|
-
* unseals until `rotate-key` has swept the table.
|
|
19
|
-
*/
|
|
20
|
-
masterKeys: ResolvedMasterKeys;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Build the `secretOutputs` lookup the credential broker takes.
|
|
24
|
-
*
|
|
25
|
-
* Returns null when the key was not published by any upstream — the broker
|
|
26
|
-
* turns that into an actionable error naming `setSecretOutput`.
|
|
27
|
-
*/
|
|
28
|
-
export declare function createInheritedSecretReader(deps: InheritedSecretDeps): (runId: string, jobId: string, key: string) => Promise<string | null>;
|
|
29
|
-
//# sourceMappingURL=inherited-secret.d.ts.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Container-spawn primitives specific to the orchestrator's scaler backends.
|
|
3
|
-
*
|
|
4
|
-
* The runtime-injection half of this module (`pullImageIfMissing`,
|
|
5
|
-
* `ensureRuntimeVolume`, `runtimeInjectBind`, `injectedAgentCommand`,
|
|
6
|
-
* `runtimeVolumeName`, `RUNTIME_MOUNT`) now lives in
|
|
7
|
-
* `@kici-dev/shared/container-runtime`, because the AGENT needs exactly the
|
|
8
|
-
* same behaviour when it nests a job container. What stays here is the piece
|
|
9
|
-
* only a scaler backend does: streaming a host workspace into a container it
|
|
10
|
-
* just created.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Stream a host directory into a container path.
|
|
14
|
-
*
|
|
15
|
-
* Used to populate a container-owned `/workspace` volume, which is a volume
|
|
16
|
-
* rather than a host bind precisely so the host-uid vs container-uid conflict
|
|
17
|
-
* disappears once `CapDrop: ALL` removes CAP_DAC_OVERRIDE — so the tree has to
|
|
18
|
-
* be copied in rather than mounted.
|
|
19
|
-
*
|
|
20
|
-
* A failure is fatal to the spawn: swallowing it starts the job against an
|
|
21
|
-
* empty workspace, which surfaces as a baffling "file not found" later.
|
|
22
|
-
*/
|
|
23
|
-
export declare function copyTreeIntoContainer(container: {
|
|
24
|
-
putArchive(stream: unknown, opts: {
|
|
25
|
-
path: string;
|
|
26
|
-
}): Promise<unknown>;
|
|
27
|
-
}, hostDir: string, containerPath: string): Promise<void>;
|
|
28
|
-
//# sourceMappingURL=container-spawn.d.ts.map
|