@automagik/omni 2.260508.3 → 2.260509.1
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/commands/requirements.d.ts +30 -0
- package/dist/commands/requirements.d.ts.map +1 -0
- package/dist/commands/update.d.ts +0 -13
- package/dist/commands/update.d.ts.map +1 -1
- package/dist/index.js +304 -171
- package/dist/lib/pgserve-transport.d.ts +113 -0
- package/dist/lib/pgserve-transport.d.ts.map +1 -0
- package/dist/lib/requirements.d.ts +112 -0
- package/dist/lib/requirements.d.ts.map +1 -0
- package/dist/runtime-env.d.ts +43 -17
- package/dist/runtime-env.d.ts.map +1 -1
- package/dist/server/index.js +1631 -8268
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Requirements Command
|
|
3
|
+
*
|
|
4
|
+
* omni requirements [--json] [--check]
|
|
5
|
+
*
|
|
6
|
+
* Surfaces the compile-time peer-version manifest declared in
|
|
7
|
+
* `packages/cli/src/lib/requirements.ts` (this wish, G6 of
|
|
8
|
+
* pgserve-singleton-no-proxy).
|
|
9
|
+
*
|
|
10
|
+
* Output:
|
|
11
|
+
* - `--json` (handled globally — see packages/cli/src/index.ts:71-75)
|
|
12
|
+
* emits machine-readable JSON. Same shape as the
|
|
13
|
+
* `omni --requirements --json` contract documented in
|
|
14
|
+
* SHARED-DESIGN.md §3.3.
|
|
15
|
+
* - default — formatted object via `output.data()` (which renders a
|
|
16
|
+
* table when format=human, JSON when format=json).
|
|
17
|
+
*
|
|
18
|
+
* The flag-based variant `omni --requirements --json` is intentionally
|
|
19
|
+
* NOT wired as a top-level program option. Top-level flags collide with
|
|
20
|
+
* commander's own `--version` / `--help` semantics in the current
|
|
21
|
+
* version-handling stack. The subcommand surface is byte-equivalent for
|
|
22
|
+
* tooling: `omni requirements --json` produces the documented JSON
|
|
23
|
+
* shape verbatim via the global `--json` argv strip.
|
|
24
|
+
*
|
|
25
|
+
* `--check` exits non-zero when ANY peer fails its requirement. Used by
|
|
26
|
+
* `omni update` step 4 (preInstallPeerCheck) and `omni doctor` peer-row.
|
|
27
|
+
*/
|
|
28
|
+
import { Command } from 'commander';
|
|
29
|
+
export declare function createRequirementsCommand(): Command;
|
|
30
|
+
//# sourceMappingURL=requirements.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requirements.d.ts","sourceRoot":"","sources":["../../src/commands/requirements.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,wBAAgB,yBAAyB,IAAI,OAAO,CA4BnD"}
|
|
@@ -227,19 +227,6 @@ export declare function runPostUpdateMaintenance(args: {
|
|
|
227
227
|
skipReason: MaintenanceSkipReason | null;
|
|
228
228
|
runDoctorImpl?: typeof runDoctor;
|
|
229
229
|
}): Promise<MaintenanceReport>;
|
|
230
|
-
/**
|
|
231
|
-
* Halt updates that would cross the phase-2 default-flip cutoff on hosts
|
|
232
|
-
* still running legacy embedded pgserve without the canonical binary
|
|
233
|
-
* available.
|
|
234
|
-
*
|
|
235
|
-
* Returns null when safe to proceed; otherwise an actionable error message.
|
|
236
|
-
*/
|
|
237
|
-
export declare function checkCanonicalPgservePreflight(args: {
|
|
238
|
-
currentVersion: string;
|
|
239
|
-
targetVersion: string;
|
|
240
|
-
useCanonicalPgserve: boolean | undefined;
|
|
241
|
-
pgserveOnPath: boolean;
|
|
242
|
-
}): string | null;
|
|
243
230
|
/**
|
|
244
231
|
* Parse the `--skip-cleanup=name1,name2` value into a Set. Empty / undefined
|
|
245
232
|
* yields an empty set. Whitespace and empty entries are tolerated.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAOH,OAAO,EAAE,OAAO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