@kici-dev/orchestrator 0.1.21 → 0.1.23
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/agent/dispatcher.d.ts +44 -0
- package/dist/agent/host-roster-reaper.d.ts +2 -1
- package/dist/agent/host-roster.d.ts +57 -3
- package/dist/agent/token-store.d.ts +29 -0
- package/dist/approvals/step-approval-bridge.d.ts +5 -0
- package/dist/cli/commands/source-manifest.d.ts +8 -0
- package/dist/cli/service/compose.d.ts +13 -0
- package/dist/cli/service/deploy-env.d.ts +31 -0
- package/dist/cli.js +687 -219
- package/dist/config.d.ts +6 -0
- package/dist/dashboard/needs-edges.d.ts +4 -3
- package/dist/db/migrations/047_needs_run_on.d.ts +4 -0
- package/dist/db/migrations/048_host_reboot_pending.d.ts +19 -0
- package/dist/db/migrations/049_held_runs_payload.d.ts +14 -0
- package/dist/db/migrations/050_sources_slug.d.ts +17 -0
- package/dist/db/migrations/051_binding_host_pattern.d.ts +18 -0
- package/dist/db/migrations/052_host_reach_metadata.d.ts +19 -0
- package/dist/db/migrations/053_agent_token_single_use.d.ts +17 -0
- package/dist/db/types.d.ts +50 -4
- package/dist/deployment/deployment-identity.d.ts +9 -0
- package/dist/entry-helpers.d.ts +7 -0
- package/dist/environments/binding-store.d.ts +12 -3
- package/dist/environments/held-runs.d.ts +31 -1
- package/dist/github-app-name-refresher/github-app-name-refresher.d.ts +77 -0
- package/dist/index.js +21 -2
- package/dist/metrics/prometheus.d.ts +2 -0
- package/dist/orchestrator-core.d.ts +13 -1
- package/dist/pipeline/decorating-secret-resolver.d.ts +32 -0
- package/dist/pipeline/dispatch-matched-workflow.d.ts +132 -5
- package/dist/pipeline/install-secrets-resolver.d.ts +2 -2
- package/dist/pipeline/needs-scheduler.d.ts +22 -13
- package/dist/pipeline/processor.d.ts +2 -2
- package/dist/pipeline/test-pipeline.d.ts +37 -59
- package/dist/providers/github/manifest.d.ts +25 -0
- package/dist/reporting/log-writer.d.ts +19 -0
- package/dist/routes/admin-sources.d.ts +7 -0
- package/dist/scaler/manager.d.ts +17 -0
- package/dist/secrets/secret-resolver.d.ts +33 -5
- package/dist/server.js +21664 -19907
- package/dist/sources/source-store.d.ts +4 -0
- package/dist/sources/source-validator.d.ts +2 -0
- package/dist/stale-detector/reboot-deadline-sweep.d.ts +29 -0
- package/dist/standalone.js +25263 -24075
- package/dist/ws/agent-handler.d.ts +11 -6
- package/dist/ws/bringup-api.d.ts +76 -0
- package/dist/ws/dashboard-fleet-handler.d.ts +43 -0
- package/dist/ws/dashboard-fleet-write-handler.d.ts +60 -0
- package/dist/ws/fleet-runs-on-all.d.ts +19 -0
- package/dist/ws/platform-client.d.ts +16 -1
- package/dist/ws/test-relay-handlers.d.ts +13 -2
- package/installer-image-digests.json +3 -3
- package/package.json +4 -4
- package/sbom.spdx.json +50 -50
|
@@ -17,6 +17,8 @@ export interface AddSourceParams {
|
|
|
17
17
|
provider: string;
|
|
18
18
|
/** Human-readable source name */
|
|
19
19
|
name: string;
|
|
20
|
+
/** GitHub App slug (the authoritative URL-safe identifier). Optional. */
|
|
21
|
+
slug?: string;
|
|
20
22
|
/** App ID for the provider (used to build routing key) */
|
|
21
23
|
appId: string;
|
|
22
24
|
/** Private key (PEM format for GitHub Apps) */
|
|
@@ -65,6 +67,8 @@ export declare class SourceStore {
|
|
|
65
67
|
*/
|
|
66
68
|
updateSource(routingKey: string, updates: {
|
|
67
69
|
name?: string;
|
|
70
|
+
/** New GitHub App slug. `null` clears it; `undefined` leaves it unchanged. */
|
|
71
|
+
slug?: string | null;
|
|
68
72
|
privateKey?: string;
|
|
69
73
|
webhookSecret?: string;
|
|
70
74
|
config?: Record<string, unknown>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RebootDeadlineSweep: clears expired host-reboot-pending flags.
|
|
3
|
+
*
|
|
4
|
+
* When a workflow's `restartHost()` step runs, the orchestrator sets a
|
|
5
|
+
* `host_roster.reboot_pending_until` deadline and holds the pinned post-restart
|
|
6
|
+
* job until the host completes a reboot cycle. If the host never returns by the
|
|
7
|
+
* deadline, this sweep clears the stale flag. With the flag cleared and the
|
|
8
|
+
* agent still gone, the held post-restart job hits the existing dispatch-queue
|
|
9
|
+
* timeout and the run fails — the "host did not return after reboot" outcome.
|
|
10
|
+
*
|
|
11
|
+
* Driven by the leader-only host-roster reaper's tick (one timer, one leader),
|
|
12
|
+
* so this class owns no timer of its own — just a testable `scan()`.
|
|
13
|
+
*/
|
|
14
|
+
/** Narrow roster slice the sweep needs (set on the full HostRosterStore). */
|
|
15
|
+
export interface RebootDeadlineRosterStore {
|
|
16
|
+
/** Agent ids whose reboot-pending deadline has passed at `nowMs`. */
|
|
17
|
+
listExpiredRebootPending(nowMs: number): Promise<string[]>;
|
|
18
|
+
/** Clear the reboot-pending flag for an agent. */
|
|
19
|
+
clearRebootPending(agentId: string): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export declare class RebootDeadlineSweep {
|
|
22
|
+
private readonly rosterStore;
|
|
23
|
+
constructor(deps: {
|
|
24
|
+
rosterStore: RebootDeadlineRosterStore;
|
|
25
|
+
});
|
|
26
|
+
/** Clear every reboot-pending flag whose deadline has passed. */
|
|
27
|
+
scan(): Promise<void>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=reboot-deadline-sweep.d.ts.map
|