@kici-dev/orchestrator 0.11.0 → 0.13.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__/mock-db-query.d.ts +4 -5
- package/dist/agent/agent-version.d.ts +5 -5
- package/dist/agent/dispatcher.d.ts +48 -0
- package/dist/agent/registry.d.ts +38 -9
- package/dist/agent-packaging/node-runtime-members.d.ts +14 -0
- package/dist/app.d.ts +9 -3
- package/dist/approvals/apply-decision.d.ts +1 -1
- package/dist/audit/access-log.d.ts +2 -3
- package/dist/cache/cache-upload-settle.d.ts +75 -0
- package/dist/cache/pending-inits.d.ts +9 -0
- package/dist/cancel/cancel-run.d.ts +22 -4
- package/dist/cancel/peer-job-cancel.d.ts +50 -0
- package/dist/cancel/sweep-stuck-cancelling.d.ts +3 -1
- package/dist/cli/commands/access-log.d.ts +3 -3
- package/dist/cli/commands/agent-service/agent-env.d.ts +20 -0
- package/dist/cli/commands/agent-service/status.d.ts +3 -3
- package/dist/cli/commands/attestations.d.ts +1 -1
- package/dist/cli/commands/context.d.ts +2 -2
- package/dist/cli/commands/event-dlq.d.ts +5 -6
- package/dist/cli/commands/event-log.d.ts +2 -3
- package/dist/cli/commands/execution.d.ts +1 -3
- package/dist/cli/commands/local-hook.d.ts +3 -2
- package/dist/cli/commands/local-trigger.d.ts +7 -0
- package/dist/cli/commands/orchestrator-service/status.d.ts +10 -3
- package/dist/cli/commands/queue.d.ts +1 -2
- package/dist/cli/commands/runs.d.ts +2 -3
- package/dist/cli/commands/service-health.d.ts +68 -0
- package/dist/cli/commands/shared/env-file-mode.d.ts +3 -2
- package/dist/cli/commands/shared/upgrade-safety.d.ts +11 -5
- package/dist/cli/commands/shared/versioned-upgrade.d.ts +119 -7
- package/dist/cli/commands/workflow.d.ts +3 -4
- package/dist/cli/open-browser.d.ts +1 -1
- package/dist/cli/service/entrypoint.d.ts +18 -0
- package/dist/cli/service/image-digests.d.ts +10 -0
- package/dist/cli/service/index.d.ts +4 -2
- package/dist/cli/service/instance/manifest.d.ts +39 -0
- package/dist/cli/service/launchd.d.ts +45 -10
- package/dist/cli/service/shutdown-grace.d.ts +35 -0
- package/dist/cli/service/types.d.ts +9 -0
- package/dist/cli/service/windows-acl.d.ts +40 -0
- package/dist/cli/service/windows-env-file.d.ts +45 -0
- package/dist/cli/service/windows.d.ts +13 -0
- package/dist/cli.js +2601 -1232
- package/dist/cluster/cluster-identity.d.ts +4 -4
- package/dist/cluster/coordinator-credential.d.ts +45 -0
- package/dist/cluster/coordinator.d.ts +18 -2
- package/dist/cluster/index.d.ts +1 -0
- package/dist/cluster/instance-heartbeat.d.ts +6 -1
- package/dist/cluster/join-token.d.ts +4 -2
- package/dist/cluster/leader-gated-scheduler.d.ts +7 -1
- package/dist/cluster/peer-auth-coordinator.d.ts +13 -0
- package/dist/cluster/peer-client.d.ts +4 -0
- package/dist/cluster/peer-credentials.d.ts +32 -1
- package/dist/cluster/raft-state.d.ts +6 -0
- package/dist/cluster/raft.d.ts +16 -2
- package/dist/cold-store/load-access-log-range.d.ts +3 -3
- package/dist/cold-store/load-event-log-range.d.ts +1 -1
- package/dist/cold-store/load-secret-audit-log-range.d.ts +2 -2
- package/dist/cold-store/orchestrator-cold-store.d.ts +9 -11
- package/dist/cold-store/tables/access-log.d.ts +2 -2
- package/dist/cold-store/tables/event-log.d.ts +4 -10
- package/dist/cold-store/tables/execution-jobs.d.ts +1 -1
- package/dist/cold-store/tables/execution-runs.d.ts +4 -4
- package/dist/cold-store/tables/execution-steps.d.ts +1 -1
- package/dist/cold-store/tables/secret-audit-log.d.ts +3 -3
- package/dist/config.d.ts +6 -1
- package/dist/contexts/held-runs.d.ts +2 -2
- package/dist/dashboard/attestation-filters.d.ts +1 -1
- package/dist/dashboard/handler.d.ts +8 -8
- package/dist/db/deferred-indexes.d.ts +2 -2
- package/dist/db/migrations/005_cold_store_chunk_counter.d.ts +2 -4
- package/dist/db/migrations/006_runs_jobs_steps_archived_at.d.ts +4 -4
- package/dist/db/migrations/007_audit_logs_archived_at.d.ts +6 -9
- package/dist/db/migrations/008_event_log_archived_at.d.ts +4 -6
- package/dist/db/migrations/010_cold_store_chunks.d.ts +2 -2
- package/dist/db/migrations/012_peer_credentials_active_uniq.d.ts +2 -4
- package/dist/db/migrations/016_org_settings_allow_http_npm.d.ts +2 -2
- package/dist/db/migrations/045_host_properties.d.ts +1 -1
- package/dist/db/migrations/046_join_token_consumed_by_instance.d.ts +1 -1
- package/dist/db/migrations/048_host_reboot_pending.d.ts +1 -1
- package/dist/db/migrations/049_held_runs_payload.d.ts +1 -1
- package/dist/db/migrations/050_sources_slug.d.ts +1 -1
- package/dist/db/migrations/051_binding_host_pattern.d.ts +1 -1
- package/dist/db/migrations/052_host_reach_metadata.d.ts +1 -1
- package/dist/db/migrations/053_agent_token_single_use.d.ts +1 -1
- package/dist/db/migrations/054_local_working_tree.d.ts +1 -1
- package/dist/db/migrations/055_agent_token_mandatory_labels.d.ts +1 -1
- package/dist/db/migrations/056_execution_jobs_environments.d.ts +1 -1
- package/dist/db/migrations/064_execution_jobs_skipped_environments.d.ts +1 -1
- package/dist/db/migrations/152_org_settings_cache_upload_settle_timeout.d.ts +15 -0
- package/dist/db/migrations/153_execution_runs_cancel_force.d.ts +16 -0
- package/dist/db/types.d.ts +27 -13
- package/dist/events/types.d.ts +1 -1
- package/dist/fault-injection-types.d.ts +2 -2
- package/dist/firecracker/host-network.d.ts +21 -3
- package/dist/firecracker/net-interfaces.d.ts +1 -1
- package/dist/helpers/run-detached.d.ts +12 -0
- package/dist/index.js +242 -67
- package/dist/oidc/db-signer.d.ts +1 -1
- package/dist/pipeline/changed-files.d.ts +51 -0
- package/dist/pipeline/cross-source-tally.d.ts +21 -0
- package/dist/pipeline/degraded-reason.d.ts +8 -0
- package/dist/pipeline/dispatch-matched-workflow.d.ts +10 -0
- package/dist/pipeline/global-eval-round.d.ts +5 -4
- package/dist/pipeline/processor.d.ts +11 -3
- package/dist/pipeline/rerun-inputs.d.ts +16 -7
- package/dist/provenance/retrier-mint.d.ts +1 -1
- package/dist/provenance/trust-root.d.ts +3 -3
- package/dist/providers/github/changed-files.d.ts +14 -4
- package/dist/providers/universal-git/changed-files.d.ts +6 -0
- package/dist/providers/universal-git/clone-token.d.ts +9 -13
- package/dist/providers/universal-git/config.d.ts +4 -0
- package/dist/providers/universal-git/index.d.ts +1 -2
- package/dist/providers/universal-git/normalizer.d.ts +2 -3
- package/dist/providers/universal-git/ssh-auth.d.ts +4 -4
- package/dist/queue/cleanup.d.ts +2 -2
- package/dist/queue/job-queue.d.ts +6 -6
- package/dist/queue/scheduled-job.d.ts +5 -7
- package/dist/registration/extractor.d.ts +1 -1
- package/dist/registration/registration-index.d.ts +1 -1
- package/dist/reporting/execution-tracker.d.ts +3 -3
- package/dist/routes/admin-access-log.d.ts +1 -1
- package/dist/routes/admin-auth.d.ts +2 -2
- package/dist/routes/admin-event-log.d.ts +2 -2
- package/dist/routes/admin-runs.d.ts +3 -3
- package/dist/routes/admin-scheduled-jobs.d.ts +2 -3
- package/dist/routes/health.d.ts +9 -0
- package/dist/scaler/container-backend.d.ts +3 -1
- package/dist/scaler/container-runtime.d.ts +9 -0
- package/dist/scaler/firecracker-backend.d.ts +15 -10
- package/dist/scaler/firecracker-extra-hosts.d.ts +20 -0
- package/dist/scaler/machine-ledger.d.ts +3 -4
- package/dist/scaler/manager.d.ts +26 -2
- package/dist/scaler/scaler-state-store.d.ts +1 -1
- package/dist/scaler/types.d.ts +4 -1
- package/dist/secrets/audit-logger.d.ts +2 -2
- package/dist/security/reduced-privilege-note.d.ts +2 -3
- package/dist/security/trust-policy-store.d.ts +3 -3
- package/dist/server.d.ts +2 -1
- package/dist/server.js +4955 -3206
- package/dist/stale-detector/stale-run-detector.d.ts +1 -1
- package/dist/stale-detector/workflow-deadline-detector.d.ts +7 -1
- package/dist/standalone.d.ts +1 -1
- package/dist/standalone.js +12944 -11243
- package/dist/storage/filesystem.d.ts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/s3.d.ts +36 -0
- package/dist/storage/sign-url.d.ts +2 -1
- package/dist/storage/types.d.ts +2 -2
- package/dist/ws/agent-handler.d.ts +58 -6
- package/dist/ws/agent-heartbeat.d.ts +4 -5
- package/dist/ws/dashboard-context-handler.d.ts +1 -1
- package/dist/ws/platform-client.d.ts +44 -32
- package/dist/ws/server-options.d.ts +1 -1
- package/dist/ws/test-relay-handlers.d.ts +1 -1
- package/installer-image-digests.json +3 -3
- package/package.json +5 -5
- package/sbom.spdx.json +53 -53
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a Windows service launch runs a release that reads KICI_ENV_FILE.
|
|
3
|
+
*
|
|
4
|
+
* A Windows service is registered with the path of its env file in
|
|
5
|
+
* KICI_ENV_FILE, never with the values in the file: any local account reads the
|
|
6
|
+
* command line of a service with `sc.exe qc`. A release from before
|
|
7
|
+
* KICI_ENV_FILE ignores the path and starts without its configuration, and the
|
|
8
|
+
* only registration that would run it puts the values back on the command line.
|
|
9
|
+
* So every command that registers a Windows service, or switches one to another
|
|
10
|
+
* release, refuses such a release before it changes anything.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* The `@kici-dev/shared` export that loads the env file KICI_ENV_FILE names. A
|
|
14
|
+
* release publishes it, and imports it first in each entry, only when it reads
|
|
15
|
+
* KICI_ENV_FILE.
|
|
16
|
+
*/
|
|
17
|
+
export declare const ENV_FILE_LOADER_EXPORT = "./load-service-env-file";
|
|
18
|
+
/**
|
|
19
|
+
* The file that names a launch's release: the npm entry among its arguments,
|
|
20
|
+
* or else the executable itself.
|
|
21
|
+
*/
|
|
22
|
+
export declare function launchedRelease(launch: {
|
|
23
|
+
executablePath: string;
|
|
24
|
+
args?: string[];
|
|
25
|
+
}): string;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the process a Windows service launch starts reads KICI_ENV_FILE.
|
|
28
|
+
*
|
|
29
|
+
* A KiCI package runs as `<dir>\<name>.cmd` beside its bundle
|
|
30
|
+
* `<dir>\lib\<name>.cjs`, which names KICI_ENV_FILE when the release reads it.
|
|
31
|
+
* An npm install runs node with the `@kici-dev/<component>/dist/<entry>.js`
|
|
32
|
+
* entry, which then imports the env-file loader. Any other launch, such as a
|
|
33
|
+
* batch file with no KiCI bundle beside it or a custom executable, is taken to
|
|
34
|
+
* read it.
|
|
35
|
+
*/
|
|
36
|
+
export declare function launchReadsEnvFile(launch: {
|
|
37
|
+
executablePath: string;
|
|
38
|
+
args?: string[];
|
|
39
|
+
}): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Why a Windows service may not run `release`, a release from before
|
|
42
|
+
* KICI_ENV_FILE, and what the operator can do instead.
|
|
43
|
+
*/
|
|
44
|
+
export declare function envFileRefusal(release: string, envFilePath: string): string;
|
|
45
|
+
//# sourceMappingURL=windows-env-file.d.ts.map
|
|
@@ -30,6 +30,8 @@ export declare class WindowsServiceManager implements ServiceManager {
|
|
|
30
30
|
* not exist; exit 0 means it exists (possibly pending-delete).
|
|
31
31
|
*/
|
|
32
32
|
private serviceExists;
|
|
33
|
+
/** The service's STATE code from `sc.exe query`, or undefined when the query fails. */
|
|
34
|
+
private queryStateCode;
|
|
33
35
|
install(config: ServiceConfig): Promise<void>;
|
|
34
36
|
uninstall(config: ServiceConfig): Promise<void>;
|
|
35
37
|
start(config: ServiceConfig): Promise<void>;
|
|
@@ -39,6 +41,17 @@ export declare class WindowsServiceManager implements ServiceManager {
|
|
|
39
41
|
logs(config: ServiceConfig, _options: LogOptions): Promise<void>;
|
|
40
42
|
isInstalled(config: ServiceConfig): Promise<boolean>;
|
|
41
43
|
list(isUserLevel: boolean): Promise<DiscoveredInstance[]>;
|
|
44
|
+
/**
|
|
45
|
+
* The command line a service is registered with.
|
|
46
|
+
*
|
|
47
|
+
* `sc.exe qc` answers most registrations, but it fails (error 1734) once the
|
|
48
|
+
* line is longer than about 4000 characters, as an older CLI's registration
|
|
49
|
+
* with every env-file value on it can be. It also prints in the console code
|
|
50
|
+
* page, so a path outside ASCII, such as one under the profile of a user
|
|
51
|
+
* named Jürgen, decodes to U+FFFD. In either case the registry value it reads
|
|
52
|
+
* (`ImagePath`) is read through PowerShell, printed as UTF-8.
|
|
53
|
+
*/
|
|
54
|
+
private registeredCommandLine;
|
|
42
55
|
readLaunchSpec(config: ServiceConfig): Promise<LaunchSpec | null>;
|
|
43
56
|
}
|
|
44
57
|
//# sourceMappingURL=windows.d.ts.map
|