@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.
Files changed (161) hide show
  1. package/dist/__test-helpers__/scratch-db.d.ts +16 -0
  2. package/dist/agent/registry.d.ts +1 -8
  3. package/dist/app-on-error.d.ts +1 -1
  4. package/dist/approvals/apply-decision.d.ts +12 -1
  5. package/dist/artifacts/artifact-store.d.ts +0 -2
  6. package/dist/audit/access-log.d.ts +1 -1
  7. package/dist/cache/source-cache.d.ts +1 -1
  8. package/dist/cache/user-cache.d.ts +0 -28
  9. package/dist/cli/api-client.d.ts +35 -1
  10. package/dist/cli/commands/access-log.d.ts +1 -1
  11. package/dist/cli/commands/api-key.d.ts +11 -4
  12. package/dist/cli/commands/cold-store-impl.d.ts +7 -84
  13. package/dist/cli/commands/db.d.ts +1 -0
  14. package/dist/cli/commands/orchestrator-service/status.d.ts +2 -0
  15. package/dist/cli/commands/org.d.ts +12 -0
  16. package/dist/cli/commands/scaler.d.ts +14 -0
  17. package/dist/cli/commands/secret.d.ts +1 -45
  18. package/dist/cli/commands/service-health.d.ts +21 -13
  19. package/dist/cli/commands/shared/cli-action.d.ts +17 -0
  20. package/dist/cli/commands/shared/db.d.ts +5 -5
  21. package/dist/cli/commands/shared/org-id.d.ts +5 -0
  22. package/dist/cli/commands/shared/service-verbs.d.ts +19 -0
  23. package/dist/cli/commands/shared/table.d.ts +3 -0
  24. package/dist/cli/commands/shared/unbound-context-warning.d.ts +2 -22
  25. package/dist/cli/commands/trust-policy.d.ts +7 -31
  26. package/dist/cli/kici-admin.d.ts +1 -1
  27. package/dist/cli.js +9865 -8203
  28. package/dist/cluster/coordinator.d.ts +2 -2
  29. package/dist/cluster/peer-client.d.ts +27 -1
  30. package/dist/cluster/peer-forget.d.ts +4 -9
  31. package/dist/cluster/peer-handler.d.ts +11 -1
  32. package/dist/cluster/peer-request-waiters.d.ts +26 -0
  33. package/dist/cluster/scaler-orphans-peer.d.ts +4 -9
  34. package/dist/cluster/scaler-reload-fanout.d.ts +29 -0
  35. package/dist/cluster/scaler-reload-peer.d.ts +16 -0
  36. package/dist/cluster/worker-cluster-settings.d.ts +1 -0
  37. package/dist/cold-store/load-access-log-range.d.ts +3 -3
  38. package/dist/cold-store/tables/access-log.d.ts +4 -12
  39. package/dist/cold-store/tables/event-log.d.ts +8 -19
  40. package/dist/cold-store/tables/execution-jobs.d.ts +7 -24
  41. package/dist/cold-store/tables/execution-runs.d.ts +6 -20
  42. package/dist/cold-store/tables/execution-steps.d.ts +8 -26
  43. package/dist/cold-store/tables/secret-audit-log.d.ts +4 -11
  44. package/dist/config/env-overlay.d.ts +3 -8
  45. package/dist/config/reload.d.ts +9 -2
  46. package/dist/config/schema.d.ts +2 -2
  47. package/dist/config/types.d.ts +2 -2
  48. package/dist/config.d.ts +13 -17
  49. package/dist/contexts/held-runs.d.ts +3 -6
  50. package/dist/dashboard/cursor.d.ts +12 -0
  51. package/dist/dashboard/handler.d.ts +5 -12
  52. package/dist/db/deferred-index-build.d.ts +42 -0
  53. package/dist/db/deferred-indexes.d.ts +3 -37
  54. package/dist/db/migrations/100_held_runs_hold_type_vocabulary.d.ts +3 -5
  55. package/dist/db/migrations/158_normalize_legacy_values.d.ts +4 -0
  56. package/dist/db/repos/org-ids-repo.d.ts +87 -0
  57. package/dist/db/schema-snapshot.generated.d.ts +3 -0
  58. package/dist/db/types.d.ts +5 -22
  59. package/dist/fault-injection-types.d.ts +0 -6
  60. package/dist/git/dispatch-git-auth.d.ts +6 -12
  61. package/dist/helpers/json.d.ts +3 -0
  62. package/dist/index.js +144 -140
  63. package/dist/metrics/prometheus.d.ts +0 -5
  64. package/dist/oidc/id-token-claims.d.ts +1 -1
  65. package/dist/oidc/resolve-signer.d.ts +2 -4
  66. package/dist/orchestrator-core.d.ts +10 -3
  67. package/dist/pipeline/global-eval-round.d.ts +2 -26
  68. package/dist/pipeline/install-secrets-resolver.d.ts +0 -3
  69. package/dist/pipeline/manual-schedule.d.ts +1 -7
  70. package/dist/pipeline/test-pipeline.d.ts +8 -7
  71. package/dist/provenance/dispatch-context.d.ts +5 -7
  72. package/dist/provenance/pending-attestations-repo.d.ts +1 -1
  73. package/dist/provenance/trust-root.d.ts +4 -5
  74. package/dist/provenance/verify-deferred-capture.d.ts +3 -3
  75. package/dist/provider-registry.d.ts +13 -40
  76. package/dist/providers/universal-git/ssh-auth.d.ts +0 -5
  77. package/dist/queue/terminalize-unroutable.d.ts +5 -0
  78. package/dist/reporting/check-run-reporter.d.ts +8 -21
  79. package/dist/reporting/check-run-summary.d.ts +2 -2
  80. package/dist/reporting/execution-tracker.d.ts +1 -1
  81. package/dist/reporting/log-chunk-sink.d.ts +1 -1
  82. package/dist/reporting/run-summary-fields.d.ts +25 -0
  83. package/dist/reporting/s3-log-storage.d.ts +2 -2
  84. package/dist/routes/admin-access-log.d.ts +2 -9
  85. package/dist/routes/admin-auth.d.ts +2 -0
  86. package/dist/routes/admin-backends.d.ts +2 -9
  87. package/dist/routes/admin-cluster-name.d.ts +2 -8
  88. package/dist/routes/admin-cluster-settings.d.ts +2 -8
  89. package/dist/routes/admin-config.d.ts +0 -3
  90. package/dist/routes/admin-contexts.d.ts +3 -11
  91. package/dist/routes/admin-db.d.ts +2 -9
  92. package/dist/routes/admin-env.d.ts +33 -0
  93. package/dist/routes/admin-event-dlq.d.ts +2 -9
  94. package/dist/routes/admin-event-inspect.d.ts +2 -9
  95. package/dist/routes/admin-event-log.d.ts +2 -9
  96. package/dist/routes/admin-events.d.ts +3 -13
  97. package/dist/routes/admin-held-runs.d.ts +2 -8
  98. package/dist/routes/admin-list-limit.d.ts +3 -0
  99. package/dist/routes/admin-maintenance.d.ts +2 -9
  100. package/dist/routes/admin-orchestrator-drain.d.ts +2 -9
  101. package/dist/routes/admin-org-settings.d.ts +2 -8
  102. package/dist/routes/admin-orgs.d.ts +27 -0
  103. package/dist/routes/admin-peer-forget.d.ts +2 -9
  104. package/dist/routes/admin-queue-execution.d.ts +3 -10
  105. package/dist/routes/admin-registrations.d.ts +3 -14
  106. package/dist/routes/admin-runs.d.ts +3 -14
  107. package/dist/routes/admin-scaler-orphans.d.ts +2 -9
  108. package/dist/routes/admin-scaler-reload.d.ts +41 -0
  109. package/dist/routes/admin-scheduled-jobs.d.ts +2 -9
  110. package/dist/routes/admin-signing-keys.d.ts +2 -9
  111. package/dist/routes/admin-sources.d.ts +2 -9
  112. package/dist/routes/admin-trust-policy.d.ts +2 -8
  113. package/dist/routes/admin.d.ts +15 -13
  114. package/dist/routes/caller-identity.d.ts +52 -0
  115. package/dist/routes/test-direct.d.ts +46 -0
  116. package/dist/routes/uploads.d.ts +12 -11
  117. package/dist/scaler/config.d.ts +12 -84
  118. package/dist/scaler/file-reload.d.ts +48 -0
  119. package/dist/scaler/manager.d.ts +47 -33
  120. package/dist/scaler/scaler-state-store.d.ts +5 -0
  121. package/dist/scaler/types.d.ts +1 -4
  122. package/dist/secrets/job-secret-gate.d.ts +2 -5
  123. package/dist/secrets/rbac.d.ts +5 -1
  124. package/dist/secrets/routing-key-scope.d.ts +1 -0
  125. package/dist/secrets/secret-resolver.d.ts +2 -4
  126. package/dist/secrets/token-manager.d.ts +1 -0
  127. package/dist/security/trust-policy-gate.d.ts +0 -4
  128. package/dist/server.d.ts +6 -17
  129. package/dist/server.js +9890 -10851
  130. package/dist/standalone.js +6928 -6576
  131. package/dist/storage/s3.d.ts +7 -7
  132. package/dist/storage/types.d.ts +4 -4
  133. package/dist/worker/reroute-dispatch.d.ts +1 -0
  134. package/dist/worker/reroute-spawn-control.d.ts +1 -3
  135. package/dist/worker-core.d.ts +9 -2
  136. package/dist/ws/agent-handler.d.ts +3 -3
  137. package/dist/ws/dashboard-access.d.ts +57 -0
  138. package/dist/ws/dashboard-backends-handler.d.ts +1 -6
  139. package/dist/ws/dashboard-context-handler.d.ts +10 -15
  140. package/dist/ws/dashboard-fleet-write-handler.d.ts +1 -6
  141. package/dist/ws/dashboard-global-workflows-handler.d.ts +1 -6
  142. package/dist/ws/dashboard-registrations-handler.d.ts +1 -7
  143. package/dist/ws/platform-client.d.ts +85 -330
  144. package/dist/ws/test-relay-handlers.d.ts +16 -9
  145. package/installer-image-digests.json +3 -3
  146. package/package.json +4 -4
  147. package/sbom.spdx.json +53 -53
  148. package/dist/cache/legacy-prefixes.d.ts +0 -19
  149. package/dist/cli/commands/agent-service/logs.d.ts +0 -14
  150. package/dist/cli/commands/agent-service/restart.d.ts +0 -12
  151. package/dist/cli/commands/agent-service/start.d.ts +0 -12
  152. package/dist/cli/commands/agent-service/stop.d.ts +0 -12
  153. package/dist/cli/commands/agent-service/uninstall.d.ts +0 -13
  154. package/dist/cli/commands/cache.d.ts +0 -51
  155. package/dist/cli/commands/orchestrator-service/logs.d.ts +0 -14
  156. package/dist/cli/commands/orchestrator-service/restart.d.ts +0 -12
  157. package/dist/cli/commands/orchestrator-service/start.d.ts +0 -12
  158. package/dist/cli/commands/orchestrator-service/stop.d.ts +0 -12
  159. package/dist/cli/commands/orchestrator-service/uninstall.d.ts +0 -13
  160. package/dist/git/inherited-secret.d.ts +0 -29
  161. 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