@dzhechkov/harness-cli 0.8.6 → 0.8.10
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/.dz-manifest.json +25 -25
- package/README.md +130 -12
- package/dist/boolean-flags.d.ts.map +1 -1
- package/dist/boolean-flags.js +1 -0
- package/dist/boolean-flags.js.map +1 -1
- package/dist/cli.d.ts +28 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1657 -206
- package/dist/cli.js.map +1 -1
- package/dist/core-compat.d.ts +1 -1
- package/dist/core-compat.js +4 -4
- package/dist/core-compat.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/known-flags.d.ts.map +1 -1
- package/dist/known-flags.js +10 -0
- package/dist/known-flags.js.map +1 -1
- package/package.json +10 -10
- package/sbom.json +24 -24
- package/src/boolean-flags.ts +1 -0
- package/src/cli.ts +1758 -162
- package/src/core-compat.ts +4 -4
- package/src/index.ts +1 -1
- package/src/known-flags.ts +10 -0
package/src/core-compat.ts
CHANGED
|
@@ -44,10 +44,10 @@ import { fileURLToPath } from 'node:url';
|
|
|
44
44
|
* standing test (`test/core-import-floor.test.ts`, F1) fails if the two drift apart,
|
|
45
45
|
* because a guard that says 0.4.7 while npm may install 0.4.2 is worse than no guard.
|
|
46
46
|
*/
|
|
47
|
-
// 0.7
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
export const MIN_CORE = '0.8.
|
|
47
|
+
// 0.8.7: the statusline statically imports the ETA parser/estimator surface. An older core fails
|
|
48
|
+
// during ESM linking before runCli can print a useful diagnostic, so the import-free preflight must
|
|
49
|
+
// refuse it first.
|
|
50
|
+
export const MIN_CORE = '0.8.7';
|
|
51
51
|
|
|
52
52
|
/** The npm name of the guarded package — one literal, used by every leg below. */
|
|
53
53
|
export const CORE_PACKAGE_NAME = '@dzhechkov/harness-core';
|
package/src/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ export { DZ_COMMANDS, runCli } from './cli.js';
|
|
|
14
14
|
export type { CliIo, ReleaseExecRunner } from './cli.js';
|
|
15
15
|
// The Codex hook DELIVERY seam (crossrt-2 fix round, findings 1+2): the argv→operation mapping and
|
|
16
16
|
// the one place a success word may be printed, exported so both can be pinned without a live codex.
|
|
17
|
-
export { codexHooksSummary, codexHooksSyncOptions, deliverCodexHooks } from './cli.js';
|
|
17
|
+
export { codexHooksSummary, codexHooksSyncOptions, deliverCodexHooks, normalizeCodexHookOutcome } from './cli.js';
|
|
18
18
|
// Exported for its own test: the guard that keeps `--json` stdout parseable when a dependency greets
|
|
19
19
|
// stdout. Tested directly because the end-to-end path cannot reach it without a populated vector tier.
|
|
20
20
|
export { withForeignStdoutOnStderr } from './cli.js';
|
package/src/known-flags.ts
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
export const KNOWN_CLI_FLAGS: readonly string[] = [
|
|
13
13
|
'affected',
|
|
14
14
|
'all',
|
|
15
|
+
'allow-integrations',
|
|
15
16
|
'allow-same-family',
|
|
16
17
|
'allow-same-family-qe',
|
|
17
18
|
'any',
|
|
@@ -26,6 +27,11 @@ export const KNOWN_CLI_FLAGS: readonly string[] = [
|
|
|
26
27
|
'backfill',
|
|
27
28
|
'base',
|
|
28
29
|
'baseline',
|
|
30
|
+
// Not dz flags: git arguments this CLI PASSES to `git diff` (volume counters). The derivation
|
|
31
|
+
// scans every `--name` literal in cli.ts by design — a SUPERSET only softens the unknown-flag
|
|
32
|
+
// notice, while narrowing the scan risks the expensive failure this guard exists to prevent:
|
|
33
|
+
// warning at a user who typed a real flag.
|
|
34
|
+
'binary',
|
|
29
35
|
'body',
|
|
30
36
|
'book',
|
|
31
37
|
'books',
|
|
@@ -39,6 +45,7 @@ export const KNOWN_CLI_FLAGS: readonly string[] = [
|
|
|
39
45
|
'candidates',
|
|
40
46
|
'canonical',
|
|
41
47
|
'category',
|
|
48
|
+
'class-form',
|
|
42
49
|
'ceiling',
|
|
43
50
|
'channel',
|
|
44
51
|
'check',
|
|
@@ -51,6 +58,7 @@ export const KNOWN_CLI_FLAGS: readonly string[] = [
|
|
|
51
58
|
'commands',
|
|
52
59
|
'commit',
|
|
53
60
|
'compare',
|
|
61
|
+
'component',
|
|
54
62
|
'config',
|
|
55
63
|
'confirm',
|
|
56
64
|
'confirmed',
|
|
@@ -157,7 +165,9 @@ export const KNOWN_CLI_FLAGS: readonly string[] = [
|
|
|
157
165
|
'no-filters',
|
|
158
166
|
'no-fund',
|
|
159
167
|
'no-guard',
|
|
168
|
+
'no-ext-diff',
|
|
160
169
|
'no-hooks',
|
|
170
|
+
'no-integrations',
|
|
161
171
|
'no-index',
|
|
162
172
|
'no-issue',
|
|
163
173
|
'no-memory',
|