@kici-dev/orchestrator 0.0.0 → 0.1.2
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/LICENSE +661 -0
- package/README.md +1 -6
- package/dist/__test-helpers__/mock-db.d.ts +103 -0
- package/dist/__test-helpers__/mock-ws.d.ts +13 -0
- package/dist/agent/dispatcher.d.ts +231 -0
- package/dist/agent/ownership-tracker.d.ts +46 -0
- package/dist/agent/registry.d.ts +255 -0
- package/dist/agent/token-store.d.ts +96 -0
- package/dist/app.d.ts +234 -0
- package/dist/audit/access-log.d.ts +92 -0
- package/dist/audit/sampling-rate-limiter.d.ts +41 -0
- package/dist/cache/build-coordinator.d.ts +42 -0
- package/dist/cache/dep-cache.d.ts +51 -0
- package/dist/cache/index.d.ts +16 -0
- package/dist/cache/pending-builds.d.ts +14 -0
- package/dist/cache/pending-dynamics.d.ts +15 -0
- package/dist/cache/pending-inits.d.ts +19 -0
- package/dist/cache/pending-tracker.d.ts +65 -0
- package/dist/cache/source-cache.d.ts +30 -0
- package/dist/cli/api-client.d.ts +411 -0
- package/dist/cli/commands/access-log.d.ts +30 -0
- package/dist/cli/commands/agent-service/index.d.ts +15 -0
- package/dist/cli/commands/agent-service/install.d.ts +9 -0
- package/dist/cli/commands/agent-service/logs.d.ts +9 -0
- package/dist/cli/commands/agent-service/restart.d.ts +8 -0
- package/dist/cli/commands/agent-service/start.d.ts +8 -0
- package/dist/cli/commands/agent-service/status.d.ts +10 -0
- package/dist/cli/commands/agent-service/stop.d.ts +8 -0
- package/dist/cli/commands/agent-service/uninstall.d.ts +9 -0
- package/dist/cli/commands/agent-service/upgrade.d.ts +11 -0
- package/dist/cli/commands/agent.d.ts +10 -0
- package/dist/cli/commands/api-key.d.ts +12 -0
- package/dist/cli/commands/audit.d.ts +9 -0
- package/dist/cli/commands/backend.d.ts +17 -0
- package/dist/cli/commands/cold-store-impl.d.ts +101 -0
- package/dist/cli/commands/cold-store.d.ts +30 -0
- package/dist/cli/commands/config.d.ts +16 -0
- package/dist/cli/commands/db.d.ts +19 -0
- package/dist/cli/commands/debug-bundle.d.ts +16 -0
- package/dist/cli/commands/diagnose.d.ts +15 -0
- package/dist/cli/commands/environment.d.ts +24 -0
- package/dist/cli/commands/event-dlq.d.ts +19 -0
- package/dist/cli/commands/event-log.d.ts +27 -0
- package/dist/cli/commands/event.d.ts +4 -0
- package/dist/cli/commands/execution.d.ts +17 -0
- package/dist/cli/commands/inspect-bundle.d.ts +16 -0
- package/dist/cli/commands/maintenance.d.ts +4 -0
- package/dist/cli/commands/orchestrator-service/index.d.ts +12 -0
- package/dist/cli/commands/orchestrator-service/install.d.ts +10 -0
- package/dist/cli/commands/orchestrator-service/logs.d.ts +10 -0
- package/dist/cli/commands/orchestrator-service/restart.d.ts +8 -0
- package/dist/cli/commands/orchestrator-service/start.d.ts +8 -0
- package/dist/cli/commands/orchestrator-service/status.d.ts +10 -0
- package/dist/cli/commands/orchestrator-service/stop.d.ts +8 -0
- package/dist/cli/commands/orchestrator-service/uninstall.d.ts +9 -0
- package/dist/cli/commands/orchestrator-service/upgrade.d.ts +12 -0
- package/dist/cli/commands/org-settings.d.ts +17 -0
- package/dist/cli/commands/peer.d.ts +13 -0
- package/dist/cli/commands/queue.d.ts +16 -0
- package/dist/cli/commands/registration.d.ts +18 -0
- package/dist/cli/commands/rotate.d.ts +9 -0
- package/dist/cli/commands/runs.d.ts +34 -0
- package/dist/cli/commands/secret.d.ts +12 -0
- package/dist/cli/commands/shared/db.d.ts +16 -0
- package/dist/cli/commands/shared/versioned-upgrade.d.ts +38 -0
- package/dist/cli/commands/source.d.ts +24 -0
- package/dist/cli/commands/token.d.ts +10 -0
- package/dist/cli/commands/workflow.d.ts +31 -0
- package/dist/cli/join.d.ts +14 -0
- package/dist/cli/kici-admin.d.ts +13 -0
- package/dist/cli/lazy-deps/cache.d.ts +17 -0
- package/dist/cli/lazy-deps/downloader.d.ts +33 -0
- package/dist/cli/lazy-deps/registry.d.ts +43 -0
- package/dist/cli/service/compose.d.ts +25 -0
- package/dist/cli/service/index.d.ts +24 -0
- package/dist/cli/service/launchd.d.ts +34 -0
- package/dist/cli/service/platform-detect.d.ts +59 -0
- package/dist/cli/service/systemd.d.ts +41 -0
- package/dist/cli/service/types.d.ts +91 -0
- package/dist/cli/service/windows.d.ts +20 -0
- package/dist/cli/wizard/agent-wizard.d.ts +24 -0
- package/dist/cli/wizard/orchestrator-wizard.d.ts +38 -0
- package/dist/cli/wizard/prompts.d.ts +23 -0
- package/dist/cli.js +11435 -0
- package/dist/cluster/cluster-identity.d.ts +59 -0
- package/dist/cluster/coordinator.d.ts +204 -0
- package/dist/cluster/health-api.d.ts +30 -0
- package/dist/cluster/index.d.ts +24 -0
- package/dist/cluster/join-client.d.ts +75 -0
- package/dist/cluster/join-handler.d.ts +58 -0
- package/dist/cluster/join-token.d.ts +94 -0
- package/dist/cluster/orphan-recovery.d.ts +67 -0
- package/dist/cluster/peer-client.d.ts +190 -0
- package/dist/cluster/peer-credentials.d.ts +108 -0
- package/dist/cluster/peer-crypto.d.ts +57 -0
- package/dist/cluster/peer-handler.d.ts +97 -0
- package/dist/cluster/peer-registry.d.ts +186 -0
- package/dist/cluster/raft-state.d.ts +36 -0
- package/dist/cluster/raft.d.ts +140 -0
- package/dist/cold-store/load-access-log-range.d.ts +73 -0
- package/dist/cold-store/load-event-log-range.d.ts +62 -0
- package/dist/cold-store/load-secret-audit-log-range.d.ts +38 -0
- package/dist/cold-store/orchestrator-cold-store.d.ts +58 -0
- package/dist/cold-store/tables/access-log.d.ts +80 -0
- package/dist/cold-store/tables/event-log.d.ts +70 -0
- package/dist/cold-store/tables/execution-jobs.d.ts +63 -0
- package/dist/cold-store/tables/execution-runs.d.ts +81 -0
- package/dist/cold-store/tables/execution-steps.d.ts +65 -0
- package/dist/cold-store/tables/secret-audit-log.d.ts +77 -0
- package/dist/concurrency/dispatch-next-queued.d.ts +63 -0
- package/dist/concurrency/group-tracker.d.ts +51 -0
- package/dist/concurrency/index.d.ts +3 -0
- package/dist/concurrency/queue-manager.d.ts +68 -0
- package/dist/concurrency/waiters.d.ts +58 -0
- package/dist/config/encryption.d.ts +82 -0
- package/dist/config/env-overlay.d.ts +45 -0
- package/dist/config/index.d.ts +16 -0
- package/dist/config/loader.d.ts +26 -0
- package/dist/config/reload.d.ts +113 -0
- package/dist/config/resolver.d.ts +47 -0
- package/dist/config/schema.d.ts +210 -0
- package/dist/config/shared-store.d.ts +142 -0
- package/dist/config/types.d.ts +218 -0
- package/dist/config.d.ts +249 -0
- package/dist/cron/cron-scheduler.d.ts +78 -0
- package/dist/cron/cron-store.d.ts +38 -0
- package/dist/dashboard/handler.d.ts +243 -0
- package/dist/db/client.d.ts +13 -0
- package/dist/db/migration-provider.d.ts +9 -0
- package/dist/db/migrations/001_initial.d.ts +8 -0
- package/dist/db/migrations/002_config_versions_key_version.d.ts +16 -0
- package/dist/db/migrations/003_access_log.d.ts +26 -0
- package/dist/db/migrations/004_rename_bundle_to_source.d.ts +19 -0
- package/dist/db/migrations/005_cold_store_chunk_counter.d.ts +19 -0
- package/dist/db/migrations/006_runs_jobs_steps_archived_at.d.ts +38 -0
- package/dist/db/migrations/007_audit_logs_archived_at.d.ts +42 -0
- package/dist/db/migrations/008_event_log_archived_at.d.ts +40 -0
- package/dist/db/migrations/009_access_log_trigram.d.ts +15 -0
- package/dist/db/migrations/010_cold_store_chunks.d.ts +34 -0
- package/dist/db/migrations/011_drop_source_secrets_notify.d.ts +21 -0
- package/dist/db/migrations/012_peer_credentials_active_uniq.d.ts +28 -0
- package/dist/db/migrations/013_execution_log_bytes.d.ts +21 -0
- package/dist/db/migrations/014_kici_events_lease_retry.d.ts +36 -0
- package/dist/db/migrations/015_org_settings_customer_scoped.d.ts +30 -0
- package/dist/db/migrations/016_org_settings_allow_http_npm.d.ts +15 -0
- package/dist/db/migrations/017_org_id_widen.d.ts +4 -0
- package/dist/db/migrations/018_org_id_prefix_backfill.d.ts +4 -0
- package/dist/db/migrator.d.ts +32 -0
- package/dist/db/types.d.ts +1266 -0
- package/dist/diagnostics/bundle-reader.d.ts +48 -0
- package/dist/diagnostics/bundle-writer.d.ts +57 -0
- package/dist/diagnostics/checks/agents.d.ts +10 -0
- package/dist/diagnostics/checks/certs.d.ts +9 -0
- package/dist/diagnostics/checks/config.d.ts +10 -0
- package/dist/diagnostics/checks/db.d.ts +9 -0
- package/dist/diagnostics/checks/disk.d.ts +9 -0
- package/dist/diagnostics/checks/index.d.ts +17 -0
- package/dist/diagnostics/checks/ws.d.ts +9 -0
- package/dist/diagnostics/index.d.ts +13 -0
- package/dist/diagnostics/runner.d.ts +23 -0
- package/dist/diagnostics/types.d.ts +38 -0
- package/dist/entry-helpers.d.ts +93 -0
- package/dist/environments/binding-store.d.ts +27 -0
- package/dist/environments/environment-store.d.ts +74 -0
- package/dist/environments/held-runs.d.ts +64 -0
- package/dist/environments/index.d.ts +10 -0
- package/dist/environments/protection/branch-gate.d.ts +5 -0
- package/dist/environments/protection/concurrency-gate.d.ts +7 -0
- package/dist/environments/protection/pipeline.d.ts +18 -0
- package/dist/environments/protection/reviewer-gate.d.ts +7 -0
- package/dist/environments/protection/trust-gate.d.ts +7 -0
- package/dist/environments/protection/wait-timer-gate.d.ts +7 -0
- package/dist/environments/variable-store.d.ts +39 -0
- package/dist/events/circuit-breaker.d.ts +33 -0
- package/dist/events/event-emitter.d.ts +55 -0
- package/dist/events/event-retry-scanner.d.ts +52 -0
- package/dist/events/event-router.d.ts +183 -0
- package/dist/events/event-store.d.ts +157 -0
- package/dist/events/trust-store.d.ts +54 -0
- package/dist/events/types.d.ts +61 -0
- package/dist/helpers/ip-extraction.d.ts +29 -0
- package/dist/helpers/rate-limiter.d.ts +23 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +772 -0
- package/dist/lockfile-cache.d.ts +39 -0
- package/dist/metrics/agent-metrics-aggregator.d.ts +116 -0
- package/dist/metrics/metrics-reporter.d.ts +40 -0
- package/dist/metrics/prometheus.d.ts +261 -0
- package/dist/metrics/scheduled-jobs.d.ts +20 -0
- package/dist/orchestrator-core.d.ts +193 -0
- package/dist/pipeline/dispatch-matched-workflow.d.ts +102 -0
- package/dist/pipeline/inline-eval.d.ts +28 -0
- package/dist/pipeline/install-secrets-resolver.d.ts +73 -0
- package/dist/pipeline/manual-schedule.d.ts +21 -0
- package/dist/pipeline/needs-scheduler.d.ts +85 -0
- package/dist/pipeline/process-webhook.d.ts +38 -0
- package/dist/pipeline/processor.d.ts +326 -0
- package/dist/pipeline/rerun.d.ts +79 -0
- package/dist/pipeline/test-pipeline.d.ts +110 -0
- package/dist/provider-registry.d.ts +122 -0
- package/dist/providers/generic/index.d.ts +23 -0
- package/dist/providers/generic/normalizer.d.ts +112 -0
- package/dist/providers/generic/verification.d.ts +47 -0
- package/dist/providers/github/auth.d.ts +60 -0
- package/dist/providers/github/changed-files.d.ts +51 -0
- package/dist/providers/github/check-status-poster.d.ts +35 -0
- package/dist/providers/github/contributor-resolver.d.ts +30 -0
- package/dist/providers/github/index.d.ts +20 -0
- package/dist/providers/github/lock-file.d.ts +32 -0
- package/dist/providers/github/normalizer.d.ts +103 -0
- package/dist/providers/github/repo-url.d.ts +35 -0
- package/dist/providers/internal/index.d.ts +32 -0
- package/dist/providers/internal/lock-file-fetcher.d.ts +34 -0
- package/dist/providers/internal/normalizer.d.ts +89 -0
- package/dist/providers/internal/repo-url-builder.d.ts +42 -0
- package/dist/providers/universal-git/changed-files.d.ts +42 -0
- package/dist/providers/universal-git/clone-token.d.ts +83 -0
- package/dist/providers/universal-git/config.d.ts +192 -0
- package/dist/providers/universal-git/index.d.ts +55 -0
- package/dist/providers/universal-git/lock-file.d.ts +71 -0
- package/dist/providers/universal-git/normalizer.d.ts +90 -0
- package/dist/providers/universal-git/repo-url.d.ts +50 -0
- package/dist/providers/universal-git/ssh-auth.d.ts +94 -0
- package/dist/queue/bootstrap.d.ts +50 -0
- package/dist/queue/cleanup.d.ts +41 -0
- package/dist/queue/depth-refresher.d.ts +65 -0
- package/dist/queue/job-queue.d.ts +343 -0
- package/dist/queue/scheduled-job.d.ts +91 -0
- package/dist/registration/extractor.d.ts +44 -0
- package/dist/registration/registration-index.d.ts +162 -0
- package/dist/registration/registration-store.d.ts +111 -0
- package/dist/reporting/check-run-summary.d.ts +102 -0
- package/dist/reporting/commit-status.d.ts +382 -0
- package/dist/reporting/execution-tracker.d.ts +538 -0
- package/dist/reporting/fs-log-storage.d.ts +41 -0
- package/dist/reporting/log-pull-handler.d.ts +35 -0
- package/dist/reporting/log-storage.d.ts +70 -0
- package/dist/reporting/log-writer.d.ts +45 -0
- package/dist/reporting/s3-log-storage.d.ts +42 -0
- package/dist/reporting/step-log-buffer.d.ts +57 -0
- package/dist/routes/admin-access-log.d.ts +34 -0
- package/dist/routes/admin-backends.d.ts +28 -0
- package/dist/routes/admin-config.d.ts +57 -0
- package/dist/routes/admin-db.d.ts +20 -0
- package/dist/routes/admin-environments.d.ts +42 -0
- package/dist/routes/admin-errors.d.ts +4 -0
- package/dist/routes/admin-event-dlq.d.ts +39 -0
- package/dist/routes/admin-event-log.d.ts +42 -0
- package/dist/routes/admin-events.d.ts +46 -0
- package/dist/routes/admin-maintenance.d.ts +22 -0
- package/dist/routes/admin-org-settings.d.ts +29 -0
- package/dist/routes/admin-queue-execution.d.ts +27 -0
- package/dist/routes/admin-registrations.d.ts +37 -0
- package/dist/routes/admin-runs.d.ts +57 -0
- package/dist/routes/admin-scheduled-jobs.d.ts +36 -0
- package/dist/routes/admin-sources.d.ts +18 -0
- package/dist/routes/admin.d.ts +103 -0
- package/dist/routes/capabilities.d.ts +24 -0
- package/dist/routes/diagnostics.d.ts +16 -0
- package/dist/routes/health.d.ts +20 -0
- package/dist/routes/test-trigger.d.ts +41 -0
- package/dist/routes/uploads.d.ts +38 -0
- package/dist/routes/webhooks.d.ts +36 -0
- package/dist/scaler/bare-metal-backend.d.ts +107 -0
- package/dist/scaler/config.d.ts +303 -0
- package/dist/scaler/container-backend.d.ts +125 -0
- package/dist/scaler/file-tail.d.ts +23 -0
- package/dist/scaler/firecracker-api.d.ts +100 -0
- package/dist/scaler/firecracker-backend.d.ts +263 -0
- package/dist/scaler/index.d.ts +24 -0
- package/dist/scaler/ip-allocator.d.ts +177 -0
- package/dist/scaler/label-matcher.d.ts +73 -0
- package/dist/scaler/log-forwarder.d.ts +54 -0
- package/dist/scaler/machine-ledger.d.ts +160 -0
- package/dist/scaler/manager.d.ts +338 -0
- package/dist/scaler/nftables.d.ts +85 -0
- package/dist/scaler/types.d.ts +388 -0
- package/dist/scaler/warm-pool.d.ts +81 -0
- package/dist/secrets/audit-logger.d.ts +65 -0
- package/dist/secrets/backend-health.d.ts +60 -0
- package/dist/secrets/backend-registry.d.ts +68 -0
- package/dist/secrets/backend-sync.d.ts +40 -0
- package/dist/secrets/cleanup.d.ts +40 -0
- package/dist/secrets/config.d.ts +51 -0
- package/dist/secrets/crypto.d.ts +49 -0
- package/dist/secrets/ephemeral-keys.d.ts +49 -0
- package/dist/secrets/index.d.ts +17 -0
- package/dist/secrets/pg-secret-store.d.ts +105 -0
- package/dist/secrets/rbac.d.ts +47 -0
- package/dist/secrets/secret-output-store.d.ts +46 -0
- package/dist/secrets/secret-resolver.d.ts +137 -0
- package/dist/secrets/source-credentials.d.ts +61 -0
- package/dist/secrets/token-manager.d.ts +63 -0
- package/dist/secrets/vault-secret-store.d.ts +85 -0
- package/dist/security/comment-handler.d.ts +67 -0
- package/dist/security/contributor-cache.d.ts +75 -0
- package/dist/security/global-workflow-policy.d.ts +72 -0
- package/dist/security/lock-source.d.ts +34 -0
- package/dist/security/trust-resolver.d.ts +108 -0
- package/dist/security/workflow-diff.d.ts +26 -0
- package/dist/server.d.ts +17 -0
- package/dist/server.js +48055 -0
- package/dist/sources/index.d.ts +10 -0
- package/dist/sources/source-manager.d.ts +63 -0
- package/dist/sources/source-store.d.ts +79 -0
- package/dist/sources/source-validator.d.ts +16 -0
- package/dist/stale-detector/stale-run-detector.d.ts +109 -0
- package/dist/standalone.d.ts +20 -0
- package/dist/standalone.js +41546 -0
- package/dist/storage/blob-routes.d.ts +20 -0
- package/dist/storage/filesystem.d.ts +60 -0
- package/dist/storage/index.d.ts +20 -0
- package/dist/storage/s3.d.ts +68 -0
- package/dist/storage/sign-url.d.ts +45 -0
- package/dist/storage/types.d.ts +98 -0
- package/dist/webhook/dedup.d.ts +44 -0
- package/dist/webhook/event-log.d.ts +83 -0
- package/dist/webhook/generic-sources.d.ts +169 -0
- package/dist/webhook/handler.d.ts +23 -0
- package/dist/webhook/relay-buffer.d.ts +96 -0
- package/dist/webhook/verify-inbound.d.ts +78 -0
- package/dist/worker/in-memory-execution-tracker.d.ts +94 -0
- package/dist/worker/in-memory-job-queue.d.ts +74 -0
- package/dist/worker/static-agent-token-store.d.ts +58 -0
- package/dist/worker/worker-status.d.ts +36 -0
- package/dist/worker-core.d.ts +74 -0
- package/dist/ws/agent-api-registry.d.ts +49 -0
- package/dist/ws/agent-handler.d.ts +176 -0
- package/dist/ws/agent-heartbeat.d.ts +45 -0
- package/dist/ws/dashboard-backends-handler.d.ts +51 -0
- package/dist/ws/dashboard-diagnostics-handler.d.ts +56 -0
- package/dist/ws/dashboard-env-handler.d.ts +107 -0
- package/dist/ws/dashboard-global-workflows-handler.d.ts +72 -0
- package/dist/ws/dashboard-registrations-handler.d.ts +84 -0
- package/dist/ws/event-buffer.d.ts +16 -0
- package/dist/ws/observer-handler.d.ts +42 -0
- package/dist/ws/observer-registry.d.ts +88 -0
- package/dist/ws/platform-client.d.ts +270 -0
- package/dist/ws/server-options.d.ts +15 -0
- package/package.json +87 -7
- package/sbom.spdx.json +14370 -0
- package/index.js +0 -3
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secret backend management commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Provides subcommands for backend CRUD, connectivity testing, and sync:
|
|
5
|
+
* backend add <name> Register a new secret backend
|
|
6
|
+
* backend remove <name> Remove a backend (with confirmation)
|
|
7
|
+
* backend list List all registered backends
|
|
8
|
+
* backend test [name] Test backend connectivity
|
|
9
|
+
* backend sync [name] Trigger scope discovery sync
|
|
10
|
+
*
|
|
11
|
+
* Credentials are read from environment variables or files (not shell args)
|
|
12
|
+
* per design decision.
|
|
13
|
+
*/
|
|
14
|
+
import type { Command } from 'commander';
|
|
15
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
16
|
+
export declare function registerBackendCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
17
|
+
//# sourceMappingURL=backend.d.ts.map
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export declare function archiveNow(opts: {
|
|
2
|
+
databaseUrl: string;
|
|
3
|
+
table: string;
|
|
4
|
+
instanceId?: string;
|
|
5
|
+
}): Promise<void>;
|
|
6
|
+
export declare function dryRunArchive(opts: {
|
|
7
|
+
databaseUrl: string;
|
|
8
|
+
table: string;
|
|
9
|
+
tenant?: string;
|
|
10
|
+
from?: string;
|
|
11
|
+
to?: string;
|
|
12
|
+
instanceId?: string;
|
|
13
|
+
}): Promise<void>;
|
|
14
|
+
export interface ChunkListing {
|
|
15
|
+
chunkId: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
partitionDate: string;
|
|
18
|
+
dataKey: string | null;
|
|
19
|
+
manifestKey: string | null;
|
|
20
|
+
}
|
|
21
|
+
export declare function listChunks(opts: {
|
|
22
|
+
databaseUrl: string;
|
|
23
|
+
table: string;
|
|
24
|
+
tenant?: string;
|
|
25
|
+
missingData?: boolean;
|
|
26
|
+
missingManifest?: boolean;
|
|
27
|
+
from?: string;
|
|
28
|
+
to?: string;
|
|
29
|
+
instanceId?: string;
|
|
30
|
+
}): Promise<void>;
|
|
31
|
+
export declare function verifyChunk(opts: {
|
|
32
|
+
databaseUrl: string;
|
|
33
|
+
chunkId: string;
|
|
34
|
+
table: string;
|
|
35
|
+
tenant: string;
|
|
36
|
+
partitionDate: string;
|
|
37
|
+
instanceId?: string;
|
|
38
|
+
}): Promise<'match' | 'mismatch'>;
|
|
39
|
+
export declare function replayChunk(opts: {
|
|
40
|
+
databaseUrl: string;
|
|
41
|
+
chunkId: string;
|
|
42
|
+
table: string;
|
|
43
|
+
tenant: string;
|
|
44
|
+
partitionDate: string;
|
|
45
|
+
instanceId?: string;
|
|
46
|
+
}): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Phase F — promote a chunk's rows BACK into the orchestrator PG.
|
|
49
|
+
* Mirrors the Platform-side `replayIntoPg`. Adapter must implement
|
|
50
|
+
* `replayInsert` — currently only `execution_runs`.
|
|
51
|
+
*/
|
|
52
|
+
export declare function replayIntoPg(opts: {
|
|
53
|
+
databaseUrl: string;
|
|
54
|
+
chunkId: string;
|
|
55
|
+
table: string;
|
|
56
|
+
tenant: string;
|
|
57
|
+
partitionDate: string;
|
|
58
|
+
instanceId?: string;
|
|
59
|
+
}): Promise<void>;
|
|
60
|
+
export declare function reconcile(opts: {
|
|
61
|
+
databaseUrl: string;
|
|
62
|
+
table: string;
|
|
63
|
+
tenant?: string;
|
|
64
|
+
confirmCleanup?: boolean;
|
|
65
|
+
instanceId?: string;
|
|
66
|
+
}): Promise<void>;
|
|
67
|
+
/**
|
|
68
|
+
* Phase 2 — list chunks past their cold-retention horizon. Read-only;
|
|
69
|
+
* no S3 or PG mutation. Emits one JSON line per row so the output is
|
|
70
|
+
* easy to pipe through `jq` / `column -t` / etc.
|
|
71
|
+
*/
|
|
72
|
+
export declare function listPurgeable(opts: {
|
|
73
|
+
databaseUrl: string;
|
|
74
|
+
table?: string;
|
|
75
|
+
bucket?: string;
|
|
76
|
+
limit?: number;
|
|
77
|
+
instanceId?: string;
|
|
78
|
+
}): Promise<void>;
|
|
79
|
+
/**
|
|
80
|
+
* Phase 2 — delete S3 objects + clean up PG bookkeeping for chunks
|
|
81
|
+
* past their cold-retention horizon. Defaults to dry-run; pass
|
|
82
|
+
* `--apply` to actually delete.
|
|
83
|
+
*/
|
|
84
|
+
export declare function purgeNow(opts: {
|
|
85
|
+
databaseUrl: string;
|
|
86
|
+
table?: string;
|
|
87
|
+
bucket?: string;
|
|
88
|
+
limit?: number;
|
|
89
|
+
apply?: boolean;
|
|
90
|
+
instanceId?: string;
|
|
91
|
+
}): Promise<void>;
|
|
92
|
+
export declare function peekChunk(opts: {
|
|
93
|
+
databaseUrl: string;
|
|
94
|
+
chunkId: string;
|
|
95
|
+
table: string;
|
|
96
|
+
tenant: string;
|
|
97
|
+
partitionDate: string;
|
|
98
|
+
limit: number;
|
|
99
|
+
instanceId?: string;
|
|
100
|
+
}): Promise<void>;
|
|
101
|
+
//# sourceMappingURL=cold-store-impl.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cold-store commands for kici-admin (orchestrator side).
|
|
3
|
+
*
|
|
4
|
+
* Phase C: every subcommand has a real implementation that builds an
|
|
5
|
+
* `OrchestratorColdStore` against the orchestrator Postgres + S3 and
|
|
6
|
+
* delegates to the helpers in `cold-store-impl.ts`. Mirrors
|
|
7
|
+
* `kici-platform-admin cold-store …` on the Platform side.
|
|
8
|
+
*
|
|
9
|
+
* cold-store archive-now <table> Run one cycle for a single adapter
|
|
10
|
+
* cold-store dry-run-archive <table> Show what would be archived
|
|
11
|
+
* cold-store list-chunks <table> List chunks for a table
|
|
12
|
+
* cold-store verify-chunk <chunkId> Recompute contentHash for a chunk
|
|
13
|
+
* cold-store replay-chunk <chunkId> Re-run UPDATE+DELETE for a stuck chunk
|
|
14
|
+
* cold-store reconcile <table> Rebuild orphaned manifests from data
|
|
15
|
+
* cold-store peek-chunk <chunkId> Stream the first N rows of a chunk
|
|
16
|
+
*
|
|
17
|
+
* The CLI talks **directly** to the orchestrator Postgres (and the same
|
|
18
|
+
* S3 bucket the running process uses). It does not go through the
|
|
19
|
+
* orchestrator HTTP admin API — every operation here is a break-glass
|
|
20
|
+
* inspection of bytes that don't belong to the running process.
|
|
21
|
+
*/
|
|
22
|
+
import type { Command } from 'commander';
|
|
23
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
24
|
+
/**
|
|
25
|
+
* @param _getClient unused — cold-store commands talk to the DB + S3
|
|
26
|
+
* directly. Retained for signature consistency with other command
|
|
27
|
+
* group registrations.
|
|
28
|
+
*/
|
|
29
|
+
export declare function registerColdStoreCommands(program: Command, _getClient: () => AdminApiClient): void;
|
|
30
|
+
//# sourceMappingURL=cold-store.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config management commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Provides subcommands for orchestrator configuration management:
|
|
5
|
+
* config seed, get, set, delete, export, validate, diff, history, rollback, reload, init
|
|
6
|
+
*
|
|
7
|
+
* All commands except `validate --offline` and `init` are thin clients over
|
|
8
|
+
* the admin REST API at /admin/config/*.
|
|
9
|
+
*
|
|
10
|
+
* Provider configuration (GitHub Apps, etc.) is managed via the `sources` table
|
|
11
|
+
* and the `kici-admin source` commands, not through config seed.
|
|
12
|
+
*/
|
|
13
|
+
import type { Command } from 'commander';
|
|
14
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
15
|
+
export declare function registerConfigCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
16
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Database management commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* db migrate Run pending migrations (HTTP — orchestrator must be up)
|
|
5
|
+
* db fresh DROP + CREATE + migrate + store content hash (direct DB)
|
|
6
|
+
* db ensure <name> CREATE DATABASE IF NOT EXISTS (direct DB)
|
|
7
|
+
* db create-role CREATE ROLE LOGIN [CREATEDB] (direct DB)
|
|
8
|
+
* db create-readonly-user Read-only role + GRANT SELECT (direct DB)
|
|
9
|
+
* db check-schema Compare bundled migrations vs live schema (direct DB)
|
|
10
|
+
*
|
|
11
|
+
* The direct-DB subcommands cannot go through HTTP because the target database
|
|
12
|
+
* may not exist yet or is about to be dropped. They follow the same pattern
|
|
13
|
+
* as `kici-admin peer create-token` — open a pool from KICI_DATABASE_URL /
|
|
14
|
+
* DATABASE_URL / --database-url.
|
|
15
|
+
*/
|
|
16
|
+
import type { Command } from 'commander';
|
|
17
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
18
|
+
export declare function registerDbCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
19
|
+
//# sourceMappingURL=db.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debug bundle CLI command for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Creates a sanitized diagnostic ZIP bundle by calling multiple admin API
|
|
5
|
+
* endpoints and assembling the results client-side. The bundle contains
|
|
6
|
+
* config, diagnostics, system info, and cluster state for troubleshooting.
|
|
7
|
+
*
|
|
8
|
+
* Usage: kici-admin debug-bundle [--output <path>]
|
|
9
|
+
*/
|
|
10
|
+
import type { Command } from 'commander';
|
|
11
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
12
|
+
/**
|
|
13
|
+
* Register the debug-bundle command on the CLI program.
|
|
14
|
+
*/
|
|
15
|
+
export declare function registerDebugBundleCommand(program: Command, getClient: () => AdminApiClient): void;
|
|
16
|
+
//# sourceMappingURL=debug-bundle.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diagnostic health check command for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Calls the orchestrator's /admin/diagnose endpoint and displays
|
|
5
|
+
* results as a formatted table or raw JSON.
|
|
6
|
+
*
|
|
7
|
+
* Exit codes:
|
|
8
|
+
* 0 - all checks pass
|
|
9
|
+
* 1 - any check warns
|
|
10
|
+
* 2 - any check fails
|
|
11
|
+
*/
|
|
12
|
+
import type { Command } from 'commander';
|
|
13
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
14
|
+
export declare function registerDiagnoseCommand(program: Command, getClient: () => AdminApiClient): void;
|
|
15
|
+
//# sourceMappingURL=diagnose.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment management CLI commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* environment create — upsert an environment
|
|
5
|
+
* environment bind — bind a scope pattern to an environment
|
|
6
|
+
* environment set-policy — update policy fields (branch, reviewers, timers, trust)
|
|
7
|
+
* environment list — list environments for an org
|
|
8
|
+
* environment show — show a single environment with variables + bindings
|
|
9
|
+
* environment create-template — create/update an environment template + its seed variables
|
|
10
|
+
*
|
|
11
|
+
* Each command supports two modes (stage-4 pattern from `maintenance.ts`):
|
|
12
|
+
*
|
|
13
|
+
* HTTP mode (default): requires `--url` + `--token`, routes through the
|
|
14
|
+
* orchestrator admin HTTP API at /api/v1/admin/environments.
|
|
15
|
+
*
|
|
16
|
+
* Direct-DB mode: activated when `--database-url` is passed (or
|
|
17
|
+
* KICI_DATABASE_URL / DATABASE_URL is set). Opens its own pool and runs the
|
|
18
|
+
* SQL directly via *Direct helpers in @kici-dev/shared. Used by E2E
|
|
19
|
+
* `globalSetup` helpers that need to seed envs before the orchestrator is up.
|
|
20
|
+
*/
|
|
21
|
+
import type { Command } from 'commander';
|
|
22
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
23
|
+
export declare function registerEnvironmentCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
24
|
+
//# sourceMappingURL=environment.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Event DLQ admin CLI commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* event-dlq list — list events in the DLQ
|
|
5
|
+
* event-dlq count — total DLQ depth
|
|
6
|
+
* event-dlq retry <id> — clear DLQ flag, schedule for retry, pg_notify
|
|
7
|
+
* event-dlq discard <id> — permanently delete a DLQ event
|
|
8
|
+
*
|
|
9
|
+
* Operator dogfooding path for at-least-once event delivery (Phase 5 of the
|
|
10
|
+
* event durability work). Customers should generally never see anything in
|
|
11
|
+
* the DLQ — when something lands here it usually means a workflow handler is
|
|
12
|
+
* consistently failing and should be fixed at its root cause. This CLI is the
|
|
13
|
+
* triage surface: inspect last_error, retry once a fix is deployed, or discard
|
|
14
|
+
* if the event is no longer relevant.
|
|
15
|
+
*/
|
|
16
|
+
import type { Command } from 'commander';
|
|
17
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
18
|
+
export declare function registerEventDlqCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
19
|
+
//# sourceMappingURL=event-dlq.d.ts.map
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inbound webhook delivery log commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Operator-facing read access to the orchestrator's event_log table via the
|
|
5
|
+
* admin HTTP API. Dogfood replacement for raw psql / log-grep when an
|
|
6
|
+
* operator asks "did delivery <id> arrive, and what did its payload look
|
|
7
|
+
* like".
|
|
8
|
+
*
|
|
9
|
+
* event-log list List inbound deliveries with filters
|
|
10
|
+
* event-log show Show a single delivery (optionally with payload)
|
|
11
|
+
*
|
|
12
|
+
* Filter flags for `list`:
|
|
13
|
+
* --org -> ?orgId=
|
|
14
|
+
* --routing-key -> ?routingKey=
|
|
15
|
+
* --event -> ?event=
|
|
16
|
+
* --action -> ?action=
|
|
17
|
+
* --status -> ?status=
|
|
18
|
+
* --from -> ?from= (ISO timestamp)
|
|
19
|
+
* --to -> ?to= (ISO timestamp)
|
|
20
|
+
* --delivery-id -> ?deliveryId= (substring)
|
|
21
|
+
* --limit / --offset
|
|
22
|
+
* --json Emit raw JSON
|
|
23
|
+
*/
|
|
24
|
+
import type { Command } from 'commander';
|
|
25
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
26
|
+
export declare function registerEventLogCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
27
|
+
//# sourceMappingURL=event-log.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execution read CLI commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* execution list [--routing-key <k>] [--status <s>] [--workflow-name <n>] [--limit <n>]
|
|
5
|
+
* execution show <runId>
|
|
6
|
+
*
|
|
7
|
+
* READ-ONLY — mutations (purge-stale) live in `maintenance.ts` instead.
|
|
8
|
+
* Dual-mode: HTTP (via AdminApiClient) or `--database-url` (direct DB).
|
|
9
|
+
*
|
|
10
|
+
* supersedes the original `cache list|show` framing: the real tables
|
|
11
|
+
* the E2E call sites touch are execution_runs / execution_jobs, not
|
|
12
|
+
* dedup_cache.
|
|
13
|
+
*/
|
|
14
|
+
import type { Command } from 'commander';
|
|
15
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
16
|
+
export declare function registerExecutionCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
17
|
+
//# sourceMappingURL=execution.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inspect-bundle CLI command for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Parses a previously-created debug bundle ZIP and displays a structured
|
|
5
|
+
* summary with colorized output. Works fully offline -- no running
|
|
6
|
+
* orchestrator or network access needed.
|
|
7
|
+
*
|
|
8
|
+
* Usage: kici-admin inspect-bundle <path>
|
|
9
|
+
*/
|
|
10
|
+
import type { Command } from 'commander';
|
|
11
|
+
/**
|
|
12
|
+
* Register the inspect-bundle command on the CLI program.
|
|
13
|
+
* No getClient needed -- this command works fully offline.
|
|
14
|
+
*/
|
|
15
|
+
export declare function registerInspectBundleCommand(program: Command): void;
|
|
16
|
+
//# sourceMappingURL=inspect-bundle.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Orchestrator service command group registration.
|
|
3
|
+
*
|
|
4
|
+
* Registers `kici-admin orchestrator` with install, uninstall, start, stop,
|
|
5
|
+
* restart, status, logs, and upgrade subcommands for managing the orchestrator
|
|
6
|
+
* as a system service.
|
|
7
|
+
*
|
|
8
|
+
* These commands manage local services directly and do NOT use AdminApiClient.
|
|
9
|
+
*/
|
|
10
|
+
import type { Command } from 'commander';
|
|
11
|
+
export declare function registerOrchestratorServiceCommands(program: Command): void;
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `kici-admin orchestrator install` command.
|
|
3
|
+
*
|
|
4
|
+
* Registers the orchestrator as a native system service on the current platform.
|
|
5
|
+
* Auto-detects platform and privilege level, creates config directories,
|
|
6
|
+
* writes env file, and registers the service with the init system.
|
|
7
|
+
*/
|
|
8
|
+
import type { Command } from 'commander';
|
|
9
|
+
export declare function registerOrchestratorInstall(orchestrator: Command): void;
|
|
10
|
+
//# sourceMappingURL=install.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `kici-admin orchestrator logs` command.
|
|
3
|
+
*
|
|
4
|
+
* Tails and follows service logs with filtering by time, level,
|
|
5
|
+
* and output format. Delegates to the platform-specific service
|
|
6
|
+
* manager's logs() method.
|
|
7
|
+
*/
|
|
8
|
+
import type { Command } from 'commander';
|
|
9
|
+
export declare function registerLogsCommand(parent: Command): void;
|
|
10
|
+
//# sourceMappingURL=logs.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `kici-admin orchestrator restart` command.
|
|
3
|
+
*
|
|
4
|
+
* Restarts the orchestrator service.
|
|
5
|
+
*/
|
|
6
|
+
import type { Command } from 'commander';
|
|
7
|
+
export declare function registerOrchestratorRestart(orchestrator: Command): void;
|
|
8
|
+
//# sourceMappingURL=restart.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `kici-admin orchestrator status` command.
|
|
3
|
+
*
|
|
4
|
+
* Shows OS-level service status (state, PID, uptime) and queries
|
|
5
|
+
* the running orchestrator's health API for KiCI-specific info
|
|
6
|
+
* (mode, DB connectivity, agents, jobs, scaler).
|
|
7
|
+
*/
|
|
8
|
+
import type { Command } from 'commander';
|
|
9
|
+
export declare function registerStatusCommand(parent: Command): void;
|
|
10
|
+
//# sourceMappingURL=status.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `kici-admin orchestrator uninstall` command.
|
|
3
|
+
*
|
|
4
|
+
* Removes the orchestrator service registration.
|
|
5
|
+
* Preserves config files, database, and logs per user decision.
|
|
6
|
+
*/
|
|
7
|
+
import type { Command } from 'commander';
|
|
8
|
+
export declare function registerOrchestratorUninstall(orchestrator: Command): void;
|
|
9
|
+
//# sourceMappingURL=uninstall.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `kici-admin orchestrator upgrade` command.
|
|
3
|
+
*
|
|
4
|
+
* Upgrades the orchestrator using the versioned directory layout:
|
|
5
|
+
* - Extracts new version alongside old versions
|
|
6
|
+
* - Updates symlink (Unix) or service registration (Windows) atomically
|
|
7
|
+
* - Preserves old versions for rollback
|
|
8
|
+
* - Supports --cleanup and --rollback flags
|
|
9
|
+
*/
|
|
10
|
+
import type { Command } from 'commander';
|
|
11
|
+
export declare function registerUpgradeCommand(parent: Command): void;
|
|
12
|
+
//# sourceMappingURL=upgrade.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Org-settings management commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Subcommand namespace: `kici-admin org-settings global-workflows <subcommand>`.
|
|
5
|
+
*
|
|
6
|
+
* Talks to the orchestrator admin API directly (not the Platform dashboard
|
|
7
|
+
* proxy), so the CLI stays operable even when Platform is unavailable. Backed
|
|
8
|
+
* by `packages/orchestrator/src/routes/admin-org-settings.ts`.
|
|
9
|
+
*
|
|
10
|
+
* The settings row is org-scoped (one row per `customer_id`). Each pattern
|
|
11
|
+
* entry can optionally pin a webhook source via `--source <routingKey>`.
|
|
12
|
+
* Omitting `--source` stores the entry as "any source in the org".
|
|
13
|
+
*/
|
|
14
|
+
import type { Command } from 'commander';
|
|
15
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
16
|
+
export declare function registerOrgSettingsCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
17
|
+
//# sourceMappingURL=org-settings.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Peer management commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Provides admin operations for peer token and credential management:
|
|
5
|
+
* peer create-token Create a join token for a new peer
|
|
6
|
+
* peer list List active peer credentials
|
|
7
|
+
* peer revoke Revoke a specific peer's credential
|
|
8
|
+
* peer revoke-all Revoke all peer credentials
|
|
9
|
+
*/
|
|
10
|
+
import type { Command } from 'commander';
|
|
11
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
12
|
+
export declare function registerPeerCommands(program: Command, _getClient: () => AdminApiClient): void;
|
|
13
|
+
//# sourceMappingURL=peer.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Queue read CLI commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* queue list [--status <s>] [--job-name-prefix <p>] [--limit <n>]
|
|
5
|
+
* queue show <id>
|
|
6
|
+
*
|
|
7
|
+
* READ-ONLY — mutations live in `maintenance.ts` (queue clear) instead.
|
|
8
|
+
* Dual-mode: HTTP (via AdminApiClient) or `--database-url` (direct DB).
|
|
9
|
+
*
|
|
10
|
+
* supersedes the original `cache list|show` framing — the E2E call
|
|
11
|
+
* sites were actually querying dispatch_queue, not a dedup cache.
|
|
12
|
+
*/
|
|
13
|
+
import type { Command } from 'commander';
|
|
14
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
15
|
+
export declare function registerQueueCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
16
|
+
//# sourceMappingURL=queue.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workflow registration read CLI commands for kici-admin (5a #4).
|
|
3
|
+
*
|
|
4
|
+
* registration list [--org <id>] [--routing-key <k>] [--repo <ident>] [--limit <n>]
|
|
5
|
+
* registration show <id>
|
|
6
|
+
*
|
|
7
|
+
* A distinct namespace from `workflow list` — `workflow` is workflow-code,
|
|
8
|
+
* `registration` is the registered-workflow-instance row in
|
|
9
|
+
* workflow_registrations. Both coexist; the existing `workflow list` is
|
|
10
|
+
* untouched by this plan.
|
|
11
|
+
*
|
|
12
|
+
* Dual-mode: HTTP (via AdminApiClient on the existing
|
|
13
|
+
* /api/v1/admin/registrations admin API) or `--database-url` (direct DB).
|
|
14
|
+
*/
|
|
15
|
+
import type { Command } from 'commander';
|
|
16
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
17
|
+
export declare function registerRegistrationCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
18
|
+
//# sourceMappingURL=registration.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Key rotation command for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Re-encrypts all PG-stored secrets with the current master key.
|
|
5
|
+
*/
|
|
6
|
+
import type { Command } from 'commander';
|
|
7
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
8
|
+
export declare function registerRotateCommand(program: Command, getClient: () => AdminApiClient): void;
|
|
9
|
+
//# sourceMappingURL=rotate.d.ts.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Execution run commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Provides operator-facing read access to execution runs and their
|
|
5
|
+
* sub-resources via the orchestrator's admin HTTP API. This is the
|
|
6
|
+
* dogfooded replacement for hand-rolled curl commands when inspecting
|
|
7
|
+
* run state.
|
|
8
|
+
*
|
|
9
|
+
* runs list List execution runs (table or JSON)
|
|
10
|
+
* runs show <runId> Show run detail with jobs and steps
|
|
11
|
+
* runs jobs <runId> List jobs for a run (optional steps)
|
|
12
|
+
* runs ephemeral-key <runId> Show scrub status of the run's key
|
|
13
|
+
* runs secret-outputs <runId> List secret outputs (masked / reveal)
|
|
14
|
+
*
|
|
15
|
+
* Filter flags for `runs list`:
|
|
16
|
+
* --status -> ?status=<csv> (comma-separated, e.g. success,failed)
|
|
17
|
+
* --workflow-name -> ?workflowName=<name>
|
|
18
|
+
* --repo -> ?repo=<owner/repo>
|
|
19
|
+
* --since -> ?since=<ISO-8601>
|
|
20
|
+
* --count -> ?count=true (emits only the count)
|
|
21
|
+
* --limit -> ?limit=<n> (default 20, max 100)
|
|
22
|
+
* --offset -> ?offset=<n> (default 0)
|
|
23
|
+
*
|
|
24
|
+
* Output:
|
|
25
|
+
* default Aligned ASCII table
|
|
26
|
+
* --json Raw JSON.stringify of the full response
|
|
27
|
+
*/
|
|
28
|
+
import type { Command } from 'commander';
|
|
29
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
30
|
+
/**
|
|
31
|
+
* Register the `runs` command group with kici-admin.
|
|
32
|
+
*/
|
|
33
|
+
export declare function registerRunsCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
34
|
+
//# sourceMappingURL=runs.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Secret management commands for kici-admin.
|
|
3
|
+
*
|
|
4
|
+
* Provides scoped secret operations:
|
|
5
|
+
* secret scopes, list, set, delete
|
|
6
|
+
*
|
|
7
|
+
* Secret values are write-only -- there is no "get value" command.
|
|
8
|
+
*/
|
|
9
|
+
import type { Command } from 'commander';
|
|
10
|
+
import type { AdminApiClient } from '../api-client.js';
|
|
11
|
+
export declare function registerSecretCommands(program: Command, getClient: () => AdminApiClient): void;
|
|
12
|
+
//# sourceMappingURL=secret.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared database helper for CLI commands that need direct DB access.
|
|
3
|
+
*
|
|
4
|
+
* Provides a withDb() wrapper that creates a database connection from
|
|
5
|
+
* KICI_DATABASE_URL, runs a callback, and ensures cleanup.
|
|
6
|
+
*/
|
|
7
|
+
import pg from 'pg';
|
|
8
|
+
import { Kysely } from 'kysely';
|
|
9
|
+
/**
|
|
10
|
+
* Execute a callback with a database connection, then clean up.
|
|
11
|
+
*
|
|
12
|
+
* Reads the database URL from KICI_DATABASE_URL.
|
|
13
|
+
* Creates a connection pool, runs the callback, and destroys the pool.
|
|
14
|
+
*/
|
|
15
|
+
export declare function withDb<T>(fn: (db: Kysely<any>, pool: pg.Pool) => Promise<T>): Promise<T>;
|
|
16
|
+
//# sourceMappingURL=db.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared versioned directory upgrade logic for kici-admin upgrade commands.
|
|
3
|
+
*
|
|
4
|
+
* Implements the versioned directory layout:
|
|
5
|
+
* - Extract new version alongside old versions
|
|
6
|
+
* - Update symlink (Unix) or service registration (Windows) atomically
|
|
7
|
+
* - Preserve old versions for rollback
|
|
8
|
+
* - Optional cleanup of old versions
|
|
9
|
+
*/
|
|
10
|
+
import { type ServicePlatform } from '../../service/index.js';
|
|
11
|
+
/** Component types that can be upgraded. */
|
|
12
|
+
type UpgradeComponent = 'orchestrator' | 'agent';
|
|
13
|
+
/** Options for the versioned upgrade command. */
|
|
14
|
+
interface VersionedUpgradeOptions {
|
|
15
|
+
platform?: ServicePlatform;
|
|
16
|
+
name: string;
|
|
17
|
+
from?: string;
|
|
18
|
+
url?: string;
|
|
19
|
+
version?: string;
|
|
20
|
+
yes?: boolean;
|
|
21
|
+
cleanup?: boolean;
|
|
22
|
+
rollback?: boolean;
|
|
23
|
+
force?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Perform a versioned directory upgrade for a KiCI component.
|
|
27
|
+
*
|
|
28
|
+
* Flow:
|
|
29
|
+
* 1. Parse upgrade source (--from archive or --url)
|
|
30
|
+
* 2. Determine install base by platform
|
|
31
|
+
* 3. Extract new versioned directory
|
|
32
|
+
* 4. Stop service
|
|
33
|
+
* 5. Update symlink (Unix) or service registration (Windows)
|
|
34
|
+
* 6. Start service
|
|
35
|
+
*/
|
|
36
|
+
export declare function performVersionedUpgrade(component: UpgradeComponent, opts: VersionedUpgradeOptions): Promise<void>;
|
|
37
|
+
export {};
|
|
38
|
+
//# sourceMappingURL=versioned-upgrade.d.ts.map
|