@wirecat/cli-base 0.45.0 → 0.46.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/CHANGELOG.md +1155 -0
- package/README.md +17 -2
- package/dist/batch.d.ts +0 -1
- package/dist/batch.js +0 -1
- package/dist/codegen/index.d.ts +0 -1
- package/dist/codegen/index.js +0 -1
- package/dist/codegen/manifest.d.ts +0 -1
- package/dist/codegen/manifest.js +0 -1
- package/dist/codegen/model.d.ts +0 -1
- package/dist/codegen/model.js +0 -1
- package/dist/codegen/names.d.ts +0 -1
- package/dist/codegen/names.js +0 -1
- package/dist/codegen/pipeline.d.ts +0 -1
- package/dist/codegen/pipeline.js +0 -1
- package/dist/codegen/runtime.d.ts +0 -1
- package/dist/codegen/runtime.js +0 -1
- package/dist/codegen/tree.d.ts +0 -1
- package/dist/codegen/tree.js +0 -1
- package/dist/codegen/typescript.d.ts +0 -1
- package/dist/codegen/typescript.js +0 -1
- package/dist/codegen/valibot.d.ts +0 -1
- package/dist/codegen/valibot.js +0 -1
- package/dist/commands/document.d.ts +0 -1
- package/dist/commands/document.js +0 -1
- package/dist/commands/index.d.ts +0 -1
- package/dist/commands/index.js +0 -1
- package/dist/commands/page.d.ts +3 -2
- package/dist/commands/page.js +3 -2
- package/dist/commands/registry.d.ts +0 -1
- package/dist/commands/registry.js +0 -1
- package/dist/completion/index.d.ts +0 -1
- package/dist/completion/index.js +0 -1
- package/dist/config.d.ts +0 -1
- package/dist/config.js +0 -1
- package/dist/credentials.d.ts +0 -1
- package/dist/credentials.js +0 -1
- package/dist/deadline.d.ts +0 -1
- package/dist/deadline.js +0 -1
- package/dist/dev/audit.d.ts +0 -1
- package/dist/dev/audit.js +0 -1
- package/dist/dev/bin.d.ts +0 -1
- package/dist/dev/bin.js +0 -1
- package/dist/dev/land.d.ts +0 -1
- package/dist/dev/land.js +0 -1
- package/dist/dev/lint.d.ts +0 -1
- package/dist/dev/lint.js +0 -1
- package/dist/dev/main.d.ts +0 -1
- package/dist/dev/main.js +0 -1
- package/dist/dev/next-version.d.ts +0 -1
- package/dist/dev/next-version.js +0 -1
- package/dist/dev/slow-tests.d.ts +0 -1
- package/dist/dev/slow-tests.js +0 -1
- package/dist/dev/test-matrix.d.ts +0 -1
- package/dist/dev/test-matrix.js +0 -1
- package/dist/drain.d.ts +0 -1
- package/dist/drain.js +0 -1
- package/dist/errors.d.ts +0 -1
- package/dist/errors.js +0 -1
- package/dist/executable.d.ts +0 -1
- package/dist/executable.js +0 -1
- package/dist/exit-codes.d.ts +0 -1
- package/dist/exit-codes.js +0 -1
- package/dist/failure.d.ts +0 -1
- package/dist/failure.js +0 -1
- package/dist/http/body.d.ts +0 -1
- package/dist/http/body.js +0 -1
- package/dist/http/index.d.ts +0 -1
- package/dist/http/index.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/keyring.d.ts +0 -1
- package/dist/keyring.js +0 -1
- package/dist/logger.d.ts +0 -1
- package/dist/logger.js +0 -1
- package/dist/logging.d.ts +0 -1
- package/dist/logging.js +0 -1
- package/dist/mcp/index.d.ts +0 -1
- package/dist/mcp/index.js +0 -1
- package/dist/output-buffer.d.ts +0 -1
- package/dist/output-buffer.js +0 -1
- package/dist/paths.d.ts +0 -1
- package/dist/paths.js +0 -1
- package/dist/pretty.d.ts +0 -1
- package/dist/pretty.js +0 -1
- package/dist/query/dates.d.ts +0 -1
- package/dist/query/dates.js +0 -1
- package/dist/query/evaluate.d.ts +0 -1
- package/dist/query/evaluate.js +0 -1
- package/dist/query/fields.d.ts +0 -1
- package/dist/query/fields.js +0 -1
- package/dist/query/help.d.ts +0 -1
- package/dist/query/help.js +0 -1
- package/dist/query/index.d.ts +0 -1
- package/dist/query/index.js +0 -1
- package/dist/query/parser.d.ts +0 -1
- package/dist/query/parser.js +0 -1
- package/dist/query/registry.d.ts +0 -1
- package/dist/query/registry.js +0 -1
- package/dist/query/types.d.ts +0 -1
- package/dist/query/types.js +0 -1
- package/dist/query/validate.d.ts +0 -1
- package/dist/query/validate.js +0 -1
- package/dist/release/fold.d.ts +0 -1
- package/dist/release/fold.js +0 -1
- package/dist/release/index.d.ts +0 -1
- package/dist/release/index.js +0 -1
- package/dist/release/markdown.d.ts +0 -1
- package/dist/release/markdown.js +0 -1
- package/dist/release/structure.d.ts +0 -1
- package/dist/release/structure.js +0 -1
- package/dist/renderer.d.ts +0 -1
- package/dist/renderer.js +0 -1
- package/dist/result-fields.d.ts +0 -1
- package/dist/result-fields.js +0 -1
- package/dist/retry.d.ts +0 -1
- package/dist/retry.js +0 -1
- package/dist/sanitize.d.ts +0 -1
- package/dist/sanitize.js +0 -1
- package/dist/skill/index.d.ts +0 -1
- package/dist/skill/index.js +0 -1
- package/dist/standards/audit.d.ts +0 -1
- package/dist/standards/audit.js +0 -1
- package/dist/standards/effects.d.ts +0 -1
- package/dist/standards/effects.js +0 -1
- package/dist/standards/errors.d.ts +0 -1
- package/dist/standards/errors.js +0 -1
- package/dist/standards/fields.d.ts +0 -1
- package/dist/standards/fields.js +0 -1
- package/dist/standards/flags-how.d.ts +0 -1
- package/dist/standards/flags-how.js +0 -1
- package/dist/standards/flags-what.d.ts +0 -1
- package/dist/standards/flags-what.js +0 -1
- package/dist/standards/identifiers.d.ts +0 -1
- package/dist/standards/identifiers.js +0 -1
- package/dist/standards/index.d.ts +0 -1
- package/dist/standards/index.js +0 -1
- package/dist/standards/lint.d.ts +0 -1
- package/dist/standards/lint.js +0 -1
- package/dist/standards/log.d.ts +0 -1
- package/dist/standards/log.js +0 -1
- package/dist/standards/output.d.ts +0 -1
- package/dist/standards/output.js +0 -1
- package/dist/standards/registry.d.ts +0 -1
- package/dist/standards/registry.js +0 -1
- package/dist/standards/steps.d.ts +0 -1
- package/dist/standards/steps.js +0 -1
- package/dist/standards/tables.d.ts +0 -1
- package/dist/standards/tables.js +0 -1
- package/dist/standards/vocabulary.d.ts +0 -1
- package/dist/standards/vocabulary.js +1 -1
- package/dist/streams.d.ts +0 -1
- package/dist/streams.js +0 -1
- package/dist/testing/index.d.ts +0 -1
- package/dist/testing/index.js +0 -1
- package/dist/testing/network.d.ts +0 -1
- package/dist/testing/network.js +0 -1
- package/dist/testing/sandbox.d.ts +0 -1
- package/dist/testing/sandbox.js +0 -1
- package/dist/testing/setup.d.ts +0 -1
- package/dist/testing/setup.js +0 -1
- package/dist/time.d.ts +0 -1
- package/dist/time.js +0 -1
- package/dist/update/index.d.ts +0 -1
- package/dist/update/index.js +0 -1
- package/docs/standards/ci.md +10 -4
- package/docs/standards/layout.md +2 -1
- package/docs/standards/permissions.md +10 -7
- package/package.json +6 -1
- package/dist/batch.d.ts.map +0 -1
- package/dist/batch.js.map +0 -1
- package/dist/codegen/index.d.ts.map +0 -1
- package/dist/codegen/index.js.map +0 -1
- package/dist/codegen/manifest.d.ts.map +0 -1
- package/dist/codegen/manifest.js.map +0 -1
- package/dist/codegen/model.d.ts.map +0 -1
- package/dist/codegen/model.js.map +0 -1
- package/dist/codegen/names.d.ts.map +0 -1
- package/dist/codegen/names.js.map +0 -1
- package/dist/codegen/pipeline.d.ts.map +0 -1
- package/dist/codegen/pipeline.js.map +0 -1
- package/dist/codegen/runtime.d.ts.map +0 -1
- package/dist/codegen/runtime.js.map +0 -1
- package/dist/codegen/tree.d.ts.map +0 -1
- package/dist/codegen/tree.js.map +0 -1
- package/dist/codegen/typescript.d.ts.map +0 -1
- package/dist/codegen/typescript.js.map +0 -1
- package/dist/codegen/valibot.d.ts.map +0 -1
- package/dist/codegen/valibot.js.map +0 -1
- package/dist/commands/document.d.ts.map +0 -1
- package/dist/commands/document.js.map +0 -1
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/page.d.ts.map +0 -1
- package/dist/commands/page.js.map +0 -1
- package/dist/commands/registry.d.ts.map +0 -1
- package/dist/commands/registry.js.map +0 -1
- package/dist/completion/index.d.ts.map +0 -1
- package/dist/completion/index.js.map +0 -1
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js.map +0 -1
- package/dist/credentials.d.ts.map +0 -1
- package/dist/credentials.js.map +0 -1
- package/dist/deadline.d.ts.map +0 -1
- package/dist/deadline.js.map +0 -1
- package/dist/dev/audit.d.ts.map +0 -1
- package/dist/dev/audit.js.map +0 -1
- package/dist/dev/bin.d.ts.map +0 -1
- package/dist/dev/bin.js.map +0 -1
- package/dist/dev/land.d.ts.map +0 -1
- package/dist/dev/land.js.map +0 -1
- package/dist/dev/lint.d.ts.map +0 -1
- package/dist/dev/lint.js.map +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/dev/main.js.map +0 -1
- package/dist/dev/next-version.d.ts.map +0 -1
- package/dist/dev/next-version.js.map +0 -1
- package/dist/dev/slow-tests.d.ts.map +0 -1
- package/dist/dev/slow-tests.js.map +0 -1
- package/dist/dev/test-matrix.d.ts.map +0 -1
- package/dist/dev/test-matrix.js.map +0 -1
- package/dist/drain.d.ts.map +0 -1
- package/dist/drain.js.map +0 -1
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js.map +0 -1
- package/dist/executable.d.ts.map +0 -1
- package/dist/executable.js.map +0 -1
- package/dist/exit-codes.d.ts.map +0 -1
- package/dist/exit-codes.js.map +0 -1
- package/dist/failure.d.ts.map +0 -1
- package/dist/failure.js.map +0 -1
- package/dist/http/body.d.ts.map +0 -1
- package/dist/http/body.js.map +0 -1
- package/dist/http/index.d.ts.map +0 -1
- package/dist/http/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/keyring.d.ts.map +0 -1
- package/dist/keyring.js.map +0 -1
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js.map +0 -1
- package/dist/logging.d.ts.map +0 -1
- package/dist/logging.js.map +0 -1
- package/dist/mcp/index.d.ts.map +0 -1
- package/dist/mcp/index.js.map +0 -1
- package/dist/output-buffer.d.ts.map +0 -1
- package/dist/output-buffer.js.map +0 -1
- package/dist/paths.d.ts.map +0 -1
- package/dist/paths.js.map +0 -1
- package/dist/pretty.d.ts.map +0 -1
- package/dist/pretty.js.map +0 -1
- package/dist/query/dates.d.ts.map +0 -1
- package/dist/query/dates.js.map +0 -1
- package/dist/query/evaluate.d.ts.map +0 -1
- package/dist/query/evaluate.js.map +0 -1
- package/dist/query/fields.d.ts.map +0 -1
- package/dist/query/fields.js.map +0 -1
- package/dist/query/help.d.ts.map +0 -1
- package/dist/query/help.js.map +0 -1
- package/dist/query/index.d.ts.map +0 -1
- package/dist/query/index.js.map +0 -1
- package/dist/query/parser.d.ts.map +0 -1
- package/dist/query/parser.js.map +0 -1
- package/dist/query/registry.d.ts.map +0 -1
- package/dist/query/registry.js.map +0 -1
- package/dist/query/types.d.ts.map +0 -1
- package/dist/query/types.js.map +0 -1
- package/dist/query/validate.d.ts.map +0 -1
- package/dist/query/validate.js.map +0 -1
- package/dist/release/fold.d.ts.map +0 -1
- package/dist/release/fold.js.map +0 -1
- package/dist/release/index.d.ts.map +0 -1
- package/dist/release/index.js.map +0 -1
- package/dist/release/markdown.d.ts.map +0 -1
- package/dist/release/markdown.js.map +0 -1
- package/dist/release/structure.d.ts.map +0 -1
- package/dist/release/structure.js.map +0 -1
- package/dist/renderer.d.ts.map +0 -1
- package/dist/renderer.js.map +0 -1
- package/dist/result-fields.d.ts.map +0 -1
- package/dist/result-fields.js.map +0 -1
- package/dist/retry.d.ts.map +0 -1
- package/dist/retry.js.map +0 -1
- package/dist/sanitize.d.ts.map +0 -1
- package/dist/sanitize.js.map +0 -1
- package/dist/skill/index.d.ts.map +0 -1
- package/dist/skill/index.js.map +0 -1
- package/dist/standards/audit.d.ts.map +0 -1
- package/dist/standards/audit.js.map +0 -1
- package/dist/standards/effects.d.ts.map +0 -1
- package/dist/standards/effects.js.map +0 -1
- package/dist/standards/errors.d.ts.map +0 -1
- package/dist/standards/errors.js.map +0 -1
- package/dist/standards/fields.d.ts.map +0 -1
- package/dist/standards/fields.js.map +0 -1
- package/dist/standards/flags-how.d.ts.map +0 -1
- package/dist/standards/flags-how.js.map +0 -1
- package/dist/standards/flags-what.d.ts.map +0 -1
- package/dist/standards/flags-what.js.map +0 -1
- package/dist/standards/identifiers.d.ts.map +0 -1
- package/dist/standards/identifiers.js.map +0 -1
- package/dist/standards/index.d.ts.map +0 -1
- package/dist/standards/index.js.map +0 -1
- package/dist/standards/lint.d.ts.map +0 -1
- package/dist/standards/lint.js.map +0 -1
- package/dist/standards/log.d.ts.map +0 -1
- package/dist/standards/log.js.map +0 -1
- package/dist/standards/output.d.ts.map +0 -1
- package/dist/standards/output.js.map +0 -1
- package/dist/standards/registry.d.ts.map +0 -1
- package/dist/standards/registry.js.map +0 -1
- package/dist/standards/steps.d.ts.map +0 -1
- package/dist/standards/steps.js.map +0 -1
- package/dist/standards/tables.d.ts.map +0 -1
- package/dist/standards/tables.js.map +0 -1
- package/dist/standards/vocabulary.d.ts.map +0 -1
- package/dist/standards/vocabulary.js.map +0 -1
- package/dist/streams.d.ts.map +0 -1
- package/dist/streams.js.map +0 -1
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js.map +0 -1
- package/dist/testing/network.d.ts.map +0 -1
- package/dist/testing/network.js.map +0 -1
- package/dist/testing/sandbox.d.ts.map +0 -1
- package/dist/testing/sandbox.js.map +0 -1
- package/dist/testing/setup.d.ts.map +0 -1
- package/dist/testing/setup.js.map +0 -1
- package/dist/time.d.ts.map +0 -1
- package/dist/time.js.map +0 -1
- package/dist/update/index.d.ts.map +0 -1
- package/dist/update/index.js.map +0 -1
package/README.md
CHANGED
|
@@ -35,7 +35,15 @@ Every WireCat tool is built on it: [tg-cli](https://github.com/WireCatLabs/tg-cl
|
|
|
35
35
|
messaging engine — and through it the mail, notes, Zoom and Drive tools.
|
|
36
36
|
|
|
37
37
|
Up to version 0.20.0 (October 2026) this package was `@wirecat/cli-core`. That name now belongs to the shared
|
|
38
|
-
messaging engine: in older changelogs, plans and issues, "cli-core" means this package.
|
|
38
|
+
messaging engine: in older changelogs, plans and issues, "cli-core" means this package. Those old
|
|
39
|
+
`@wirecat/cli-core` versions (0.18–0.20) are deprecated on npm.
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
npm install @wirecat/cli-base
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
It is ESM only, for Node 22 and later: `import` it (`require()` works from Node 22.12). Add `commander` if you use
|
|
46
|
+
`/skill`, and `vitest` if you use `/testing/setup`.
|
|
39
47
|
|
|
40
48
|
**One rule shapes everything here: in a machine mode, stdout carries data and nothing else.** No spinner, no `✓`, no
|
|
41
49
|
warning, no ANSI. Diagnostics go to stderr, in every mode including the pretty one. That is the contract a script or
|
|
@@ -77,7 +85,7 @@ Three lines this package does not cross:
|
|
|
77
85
|
renderer; what is written, and where, is the host's call.
|
|
78
86
|
|
|
79
87
|
Five runtime dependencies: valibot and its JSON Schema converter, cli-table3, picocolors and cross-spawn. Commander is
|
|
80
|
-
an optional peer,
|
|
88
|
+
an optional peer: `/commands` and `/completion` use only its types, and `/skill` needs it installed at run time.
|
|
81
89
|
|
|
82
90
|
## Features
|
|
83
91
|
|
|
@@ -133,6 +141,13 @@ Credentials resolve environment → keyring → file, warning once and falling t
|
|
|
133
141
|
**No compiler is involved.** Prebuilt binaries cover twelve platform triples, and the Linux one speaks D-Bus itself,
|
|
134
142
|
so libsecret is not a requirement. Checked against `@napi-rs/keyring` 2.1.0 on 2026-09-19.
|
|
135
143
|
|
|
144
|
+
This repository's CI runs the tests on Linux only. macOS runs the path tests when they change, and that run does not
|
|
145
|
+
block a merge (`macos.yml`); nothing runs on Windows here. A CLI built on this library can run its own unit suite
|
|
146
|
+
on macOS and Windows through `node-ci.yml` with `platforms: true`; here, Full validation started by hand with
|
|
147
|
+
`platforms` does the same. On 2026-10-18 that run passed on macOS and failed 14 tests on Windows (file modes,
|
|
148
|
+
spawning `npm` and `tsc`). In every test the keyring is a fake, so no test reaches a real Keychain or Credential
|
|
149
|
+
Manager.
|
|
150
|
+
|
|
136
151
|
Two traps worth designing for: the keyring is global, so a throwaway config directory overwrites the real secret
|
|
137
152
|
unless you pass `isolated: true`; and a locked Linux keyring can block on a prompt rather than fail.
|
|
138
153
|
|
package/dist/batch.d.ts
CHANGED
|
@@ -57,4 +57,3 @@ export declare const runBatch: (requests: readonly PreparedBatchRequest[], optio
|
|
|
57
57
|
fields?: readonly string[];
|
|
58
58
|
}) => Promise<BatchReport>;
|
|
59
59
|
export declare const projectBatchAnswers: (report: BatchReport, fields: readonly string[]) => BatchReport;
|
|
60
|
-
//# sourceMappingURL=batch.d.ts.map
|
package/dist/batch.js
CHANGED
package/dist/codegen/index.d.ts
CHANGED
|
@@ -9,4 +9,3 @@ export { identifier, kebab } from "./names.js";
|
|
|
9
9
|
export { applyOverrides, CodegenError, type GenerateOptions, generate, validateModel, type WriteOptions, writeArtifacts, } from "./pipeline.js";
|
|
10
10
|
export { typesGenerator } from "./typescript.js";
|
|
11
11
|
export { type ValibotOptions, valibotGenerator } from "./valibot.js";
|
|
12
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/codegen/index.js
CHANGED
|
@@ -8,4 +8,3 @@ export { identifier, kebab } from "./names.js";
|
|
|
8
8
|
export { applyOverrides, CodegenError, generate, validateModel, writeArtifacts, } from "./pipeline.js";
|
|
9
9
|
export { typesGenerator } from "./typescript.js";
|
|
10
10
|
export { valibotGenerator } from "./valibot.js";
|
|
11
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -44,4 +44,3 @@ export interface CoverageOptions {
|
|
|
44
44
|
}
|
|
45
45
|
/** Every operation the source has, and how it is reached — the page a reviewer diffs after a sync. */
|
|
46
46
|
export declare const coverageGenerator: (options: CoverageOptions) => CodeGenerator;
|
|
47
|
-
//# sourceMappingURL=manifest.d.ts.map
|
package/dist/codegen/manifest.js
CHANGED
package/dist/codegen/model.d.ts
CHANGED
package/dist/codegen/model.js
CHANGED
package/dist/codegen/names.d.ts
CHANGED
package/dist/codegen/names.js
CHANGED
|
@@ -21,4 +21,3 @@ export interface WriteOptions {
|
|
|
21
21
|
}
|
|
22
22
|
/** Paths whose committed content differs from what was generated — written, or with `check`, only reported. */
|
|
23
23
|
export declare const writeArtifacts: (artifacts: readonly GeneratedArtifact[], options: WriteOptions) => string[];
|
|
24
|
-
//# sourceMappingURL=pipeline.d.ts.map
|
package/dist/codegen/pipeline.js
CHANGED
|
@@ -21,4 +21,3 @@ export declare const integer: (range?: Range) => v.SchemaWithPipe<readonly [v.Cu
|
|
|
21
21
|
export declare const number: (range?: Range) => v.SchemaWithPipe<readonly [v.CustomSchema<number | LosslessLike, v.ErrorMessage<v.CustomIssue> | undefined>, v.TransformAction<number | LosslessLike, number>, v.CheckAction<number, "number out of range">]>;
|
|
22
22
|
export declare const unique: (items: readonly unknown[]) => boolean;
|
|
23
23
|
export {};
|
|
24
|
-
//# sourceMappingURL=runtime.d.ts.map
|
package/dist/codegen/runtime.js
CHANGED
|
@@ -35,4 +35,3 @@ export const integer = (range = {}) => v.pipe(v.custom((input) => {
|
|
|
35
35
|
}, "expected an integer within ±2^53"), v.transform((input) => Number(digitsOf(input))), v.check((value) => inRange(value, range), "integer out of range"));
|
|
36
36
|
export const number = (range = {}) => v.pipe(v.custom((input) => (isLossless(input) ? Number.isFinite(Number(input.value)) : Number.isFinite(input)), "expected a number"), v.transform((input) => (isLossless(input) ? Number(input.value) : input)), v.check((value) => inRange(value, range), "number out of range"));
|
|
37
37
|
export const unique = (items) => new Set(items.map((item) => JSON.stringify(item))).size === items.length;
|
|
38
|
-
//# sourceMappingURL=runtime.js.map
|
package/dist/codegen/tree.d.ts
CHANGED
package/dist/codegen/tree.js
CHANGED
package/dist/codegen/valibot.js
CHANGED
|
@@ -129,4 +129,3 @@ export const valibotGenerator = (options) => (model) => {
|
|
|
129
129
|
const registry = `export const schemas = {\n${tree.named.map(({ name }) => ` ${name},`).join("\n")}\n} as const\n`;
|
|
130
130
|
return [{ path: options.path, content: `${header.join("\n")}\n${declarations.join("\n")}\n${registry}` }];
|
|
131
131
|
};
|
|
132
|
-
//# sourceMappingURL=valibot.js.map
|
|
@@ -71,4 +71,3 @@ export interface CommandsDocumentAbout {
|
|
|
71
71
|
}
|
|
72
72
|
/** The whole tree; a CLI that answers `commands <path>` adds `scope` and `inherited_options` itself. */
|
|
73
73
|
export declare const commandsDocument: (root: Command, about: CommandsDocumentAbout) => CommandsDocument;
|
|
74
|
-
//# sourceMappingURL=document.d.ts.map
|
package/dist/commands/index.d.ts
CHANGED
package/dist/commands/index.js
CHANGED
package/dist/commands/page.d.ts
CHANGED
|
@@ -78,11 +78,12 @@ export type CommandsPage = {
|
|
|
78
78
|
options: readonly OptionInfo[];
|
|
79
79
|
labels: CommandsPageLabels;
|
|
80
80
|
text: CommandsPageText;
|
|
81
|
+
/** Markdown paragraphs closing a command's section — cli-core's Returns, Next usually and Example. */
|
|
82
|
+
details?: (command: CommandInfo) => readonly string[];
|
|
81
83
|
};
|
|
82
84
|
/**
|
|
83
85
|
* The whole `docs/commands.md`: every command at any depth, every option and argument, the exit
|
|
84
86
|
* codes. Descriptions are quoted as `--help` prints them, untranslated — a translation here would
|
|
85
87
|
* give the sentence a second home, and the one on screen is the one that gets corrected.
|
|
86
88
|
*/
|
|
87
|
-
export declare const commandsPage: ({ cli, commands, options, labels, text }: CommandsPage) => string;
|
|
88
|
-
//# sourceMappingURL=page.d.ts.map
|
|
89
|
+
export declare const commandsPage: ({ cli, commands, options, labels, text, details }: CommandsPage) => string;
|
package/dist/commands/page.js
CHANGED
|
@@ -44,7 +44,7 @@ const sentence = (text) => {
|
|
|
44
44
|
* codes. Descriptions are quoted as `--help` prints them, untranslated — a translation here would
|
|
45
45
|
* give the sentence a second home, and the one on screen is the one that gets corrected.
|
|
46
46
|
*/
|
|
47
|
-
export const commandsPage = ({ cli, commands, options, labels, text }) => {
|
|
47
|
+
export const commandsPage = ({ cli, commands, options, labels, text, details }) => {
|
|
48
48
|
// What a value may be and what it is when left out: Commander keeps both out of the description.
|
|
49
49
|
const extras = ({ choices, default: fallback }) => [
|
|
50
50
|
choices ? ` ${labels.oneOf}: ${choices.map((choice) => `\`${choice}\``).join(", ")}.` : "",
|
|
@@ -75,6 +75,8 @@ export const commandsPage = ({ cli, commands, options, labels, text }) => {
|
|
|
75
75
|
parts.push("", `| ${labels.argument} | | ${labels.isWhat} |`, "|---|---|---|", argumentRows(command.arguments));
|
|
76
76
|
if (command.options.length > 0)
|
|
77
77
|
parts.push("", `| ${labels.option} | ${labels.does} |`, "|---|---|", optionRows(command.options));
|
|
78
|
+
for (const paragraph of details?.(command) ?? [])
|
|
79
|
+
parts.push("", paragraph);
|
|
78
80
|
return parts;
|
|
79
81
|
};
|
|
80
82
|
// A group shows its own usage only when it takes options of its own, as `doctor --online` does.
|
|
@@ -111,4 +113,3 @@ export const commandsPage = ({ cli, commands, options, labels, text }) => {
|
|
|
111
113
|
.join("\n\n")
|
|
112
114
|
.concat("\n");
|
|
113
115
|
};
|
|
114
|
-
//# sourceMappingURL=page.js.map
|
|
@@ -119,4 +119,3 @@ export declare const flatten: (commands: readonly CommandInfo[]) => CommandInfo[
|
|
|
119
119
|
* in snake_case. Hand it to `stepOf` and `errorObjectOf` as `targets`.
|
|
120
120
|
*/
|
|
121
121
|
export declare const stepTargets: (root: Command) => ((command: string) => StepTarget | undefined);
|
|
122
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -34,4 +34,3 @@ export declare const NO_FILE_COMPLETION = 4;
|
|
|
34
34
|
export declare const suggest: ({ commands, globalOptions, words, sources }: CompletionRequest) => Suggestion[];
|
|
35
35
|
/** The answer in the form the shell script reads. */
|
|
36
36
|
export declare const formatSuggestions: (suggestions: readonly Suggestion[]) => string;
|
|
37
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/completion/index.js
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -16,4 +16,3 @@ export declare const writeSecurely: (path: string, contents: string | Uint8Array
|
|
|
16
16
|
export declare const loadConfigFile: <TSchema extends v.GenericSchema>(path: string, schema: TSchema, fallback: () => v.InferOutput<TSchema>) => v.InferOutput<TSchema>;
|
|
17
17
|
/** Config is not a secret, so it is `0644`; the credential file next to it is not. */
|
|
18
18
|
export declare const saveConfigFile: (path: string, config: unknown) => void;
|
|
19
|
-
//# sourceMappingURL=config.d.ts.map
|
package/dist/config.js
CHANGED
package/dist/credentials.d.ts
CHANGED
package/dist/credentials.js
CHANGED
package/dist/deadline.d.ts
CHANGED
package/dist/deadline.js
CHANGED
package/dist/dev/audit.d.ts
CHANGED
|
@@ -61,4 +61,3 @@ export declare const clisOf: (target: string) => string[];
|
|
|
61
61
|
export declare const auditClis: (inputs: readonly AuditInput[], options: AuditOptions, rules?: readonly AuditRule[]) => AuditResult;
|
|
62
62
|
/** One line per CLI and rule that found something, then one total per CLI. */
|
|
63
63
|
export declare const scorecardTable: (rows: readonly ScoreRow[]) => string;
|
|
64
|
-
//# sourceMappingURL=audit.d.ts.map
|
package/dist/dev/audit.js
CHANGED
package/dist/dev/bin.d.ts
CHANGED
package/dist/dev/bin.js
CHANGED
package/dist/dev/land.d.ts
CHANGED
package/dist/dev/land.js
CHANGED
package/dist/dev/lint.d.ts
CHANGED
|
@@ -47,4 +47,3 @@ export interface Judgement {
|
|
|
47
47
|
export declare const judge: (violations: readonly Violation[], baseline: Readonly<Record<string, readonly string[]>>, overrides: readonly Override[], budget: number, rules?: readonly LintRule[]) => Judgement;
|
|
48
48
|
/** What `--write-baseline` writes: per rule, the targets no override covers. A rule with none gets no file. */
|
|
49
49
|
export declare const baselineOf: (violations: readonly Violation[], overrides: readonly Override[], rules?: readonly LintRule[]) => Record<string, string[]>;
|
|
50
|
-
//# sourceMappingURL=lint.d.ts.map
|
package/dist/dev/lint.js
CHANGED
package/dist/dev/main.d.ts
CHANGED
package/dist/dev/main.js
CHANGED
package/dist/dev/next-version.js
CHANGED
package/dist/dev/slow-tests.d.ts
CHANGED
package/dist/dev/slow-tests.js
CHANGED
package/dist/dev/test-matrix.js
CHANGED
package/dist/drain.d.ts
CHANGED
package/dist/drain.js
CHANGED
package/dist/errors.d.ts
CHANGED
package/dist/errors.js
CHANGED
package/dist/executable.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
export declare const executableOnPath: (command: string, env: NodeJS.ProcessEnv, platform?: NodeJS.Platform, exists?: (path: string) => boolean) => string;
|
|
2
2
|
export declare const executableEnvironment: (env: NodeJS.ProcessEnv, platform?: NodeJS.Platform) => NodeJS.ProcessEnv;
|
|
3
|
-
//# sourceMappingURL=executable.d.ts.map
|
package/dist/executable.js
CHANGED
package/dist/exit-codes.d.ts
CHANGED
package/dist/exit-codes.js
CHANGED
package/dist/failure.d.ts
CHANGED
|
@@ -101,4 +101,3 @@ export interface CatchCrashesOptions extends FailureContext {
|
|
|
101
101
|
* Node's stack trace. Call it first thing; it returns the function that removes it.
|
|
102
102
|
*/
|
|
103
103
|
export declare const catchCrashes: (options: CatchCrashesOptions) => (() => void);
|
|
104
|
-
//# sourceMappingURL=failure.d.ts.map
|
package/dist/failure.js
CHANGED
package/dist/http/body.d.ts
CHANGED
package/dist/http/body.js
CHANGED
package/dist/http/index.d.ts
CHANGED
|
@@ -18,4 +18,3 @@ export declare const providerWaitMs: (headers: Headers, now: WallClock) => numbe
|
|
|
18
18
|
export declare const retryableStatus: (status: number) => boolean;
|
|
19
19
|
export declare const statusToCode: (status: number) => ErrorCode;
|
|
20
20
|
export { type JsonResponseOptions, readJsonResponse } from "./body.js";
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/http/index.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -18,4 +18,3 @@ export { backoffMs, DEFAULT_RETRY, type RetryConfig } from "./retry.js";
|
|
|
18
18
|
export { singleLine, visibleControls } from "./sanitize.js";
|
|
19
19
|
export { captureStreams, processStreams, type Streams } from "./streams.js";
|
|
20
20
|
export { abortError, type MonotonicClock, monotonic, realSleep, type SleepLike, type SleepReason, type WallClock, wallClock, } from "./time.js";
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.js
CHANGED
|
@@ -16,4 +16,3 @@ export { backoffMs, DEFAULT_RETRY } from "./retry.js";
|
|
|
16
16
|
export { singleLine, visibleControls } from "./sanitize.js";
|
|
17
17
|
export { captureStreams, processStreams } from "./streams.js";
|
|
18
18
|
export { abortError, monotonic, realSleep, wallClock, } from "./time.js";
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
package/dist/keyring.d.ts
CHANGED
|
@@ -24,4 +24,3 @@ export declare const memoryKeyring: (initial?: Record<string, string>) => Keyrin
|
|
|
24
24
|
};
|
|
25
25
|
/** Refuses every operation, so the fallback path can be tested. */
|
|
26
26
|
export declare const brokenKeyring: (message?: string) => KeyringStore;
|
|
27
|
-
//# sourceMappingURL=keyring.d.ts.map
|
package/dist/keyring.js
CHANGED
package/dist/logger.d.ts
CHANGED
package/dist/logger.js
CHANGED
package/dist/logging.d.ts
CHANGED
|
@@ -51,4 +51,3 @@ export declare const logRecordOf: ({ severity, event, time, runId, traceId, comm
|
|
|
51
51
|
* Appended synchronously: a log exists to explain the exit that would have dropped a buffered tail.
|
|
52
52
|
*/
|
|
53
53
|
export declare const createRecordLog: ({ to, runId, command, resource, traceId, redact, allow, onError, now, }: RecordLogOptions) => Logger;
|
|
54
|
-
//# sourceMappingURL=logging.d.ts.map
|
package/dist/logging.js
CHANGED
package/dist/mcp/index.d.ts
CHANGED
|
@@ -29,4 +29,3 @@ export declare const probeStdio: (entry: StdioEntry, { timeoutMs, start, }?: {
|
|
|
29
29
|
timeoutMs?: number;
|
|
30
30
|
start?: (file: string, args: string[], env: NodeJS.ProcessEnv) => ChildProcessWithoutNullStreams;
|
|
31
31
|
}) => Promise<ProbeResult>;
|
|
32
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/mcp/index.js
CHANGED
package/dist/output-buffer.d.ts
CHANGED
package/dist/output-buffer.js
CHANGED
package/dist/paths.d.ts
CHANGED
|
@@ -32,4 +32,3 @@ export declare const resolvePaths: (options: PathsOptions) => Paths;
|
|
|
32
32
|
/** Whether any of the three directories came from the environment rather than the OS convention. */
|
|
33
33
|
export declare const pathsAreOverridden: ({ appName, prefix, env }: PathsOptions) => boolean;
|
|
34
34
|
export declare const configFilePath: (configDir: string, fileName?: string) => string;
|
|
35
|
-
//# sourceMappingURL=paths.d.ts.map
|
package/dist/paths.js
CHANGED
|
@@ -42,4 +42,3 @@ export const resolvePaths = (options) => {
|
|
|
42
42
|
/** Whether any of the three directories came from the environment rather than the OS convention. */
|
|
43
43
|
export const pathsAreOverridden = ({ appName, prefix, env = process.env }) => PATH_KINDS.some((kind) => env[overrideName(appName, prefix, kind)] !== undefined);
|
|
44
44
|
export const configFilePath = (configDir, fileName = "config.json") => join(configDir, fileName);
|
|
45
|
-
//# sourceMappingURL=paths.js.map
|
package/dist/pretty.d.ts
CHANGED
|
@@ -9,4 +9,3 @@ export interface PrettyOptions {
|
|
|
9
9
|
export declare const renderPretty: (value: unknown, options: PrettyOptions) => string;
|
|
10
10
|
/** Shifts every line right; an empty line stays empty, so no trailing spaces reach the terminal. */
|
|
11
11
|
export declare const indent: (text: string, spaces: number) => string;
|
|
12
|
-
//# sourceMappingURL=pretty.d.ts.map
|
package/dist/pretty.js
CHANGED
package/dist/query/dates.d.ts
CHANGED
|
@@ -12,4 +12,3 @@ export declare const dateEndpoint: (value: string, zone: string, side: "lower" |
|
|
|
12
12
|
inclusive: boolean;
|
|
13
13
|
};
|
|
14
14
|
export declare const dateRange: (lower: string, upper: string, lowerInclusive: boolean, upperInclusive: boolean, zone: string, span: Span, now?: number) => DateRange;
|
|
15
|
-
//# sourceMappingURL=dates.d.ts.map
|
package/dist/query/dates.js
CHANGED
package/dist/query/evaluate.d.ts
CHANGED
|
@@ -12,4 +12,3 @@ export interface EvaluateOptions {
|
|
|
12
12
|
* matches everything else.
|
|
13
13
|
*/
|
|
14
14
|
export declare const evaluate: (ast: QueryAst, fields: readonly FieldSpec[], item: Readonly<Record<string, unknown>>, options?: EvaluateOptions) => boolean;
|
|
15
|
-
//# sourceMappingURL=evaluate.d.ts.map
|
package/dist/query/evaluate.js
CHANGED
|
@@ -67,4 +67,3 @@ const matches = (node, item, byName, options) => {
|
|
|
67
67
|
* matches everything else.
|
|
68
68
|
*/
|
|
69
69
|
export const evaluate = (ast, fields, item, options = {}) => matches(ast.root, item, new Map(fields.map((field) => [field.name, field])), options);
|
|
70
|
-
//# sourceMappingURL=evaluate.js.map
|