@wirecat/cli-base 0.93.0 → 0.95.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 +56 -0
- package/dist/dev/main.js +4 -3
- package/dist/dev/network.js +6 -3
- package/dist/dev/wcat-lint.d.ts +10 -1
- package/dist/dev/wcat-lint.js +18 -3
- package/dist/release/markdown.js +12 -0
- package/dist/standards/flags-how.js +0 -1
- package/dist/standards/flags-knowledge.js +6 -0
- package/dist/standards/index.d.ts +1 -1
- package/dist/standards/index.js +1 -1
- package/dist/standards/output.d.ts +61 -0
- package/dist/standards/output.js +19 -0
- package/dist/standards/vocabulary.js +1 -0
- package/docs/standards/commands.md +11 -6
- package/docs/standards/docs.md +17 -5
- package/docs/standards/lifecycle.md +9 -5
- package/docs/standards/output.md +6 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,62 @@ Versions before 0.8.0 are in the [git tags](https://github.com/WireCatLabs/cli-b
|
|
|
8
8
|
Every entry says what changed as a caller sees it, why, and what to watch for — the rules are
|
|
9
9
|
[`docs/dev/CONVENTIONS.md`](docs/dev/CONVENTIONS.md#the-changelog).
|
|
10
10
|
|
|
11
|
+
## 0.95.0 — 09.11.2026
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- **`node-ci.yml`: re-running a failed test shard can turn `coverage` green.** `gh run rerun --failed` kept the failed
|
|
16
|
+
attempt's shard report under the same artifact name, and `coverage` merged whichever copy it downloaded last, so a
|
|
17
|
+
flaky test that passed on the re-run still failed coverage on every re-run (cli-core release #2799). The shard and
|
|
18
|
+
argv artifacts now carry the run attempt, and `coverage` takes each shard's latest attempt. A caller picks it up
|
|
19
|
+
by moving its `node-ci.yml` pin.
|
|
20
|
+
|
|
21
|
+
## 0.94.0 — 09.11.2026
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- **`meta.ranking`: what a hosted model did to the order of a search's hits.** An optional, typed block of the answer
|
|
26
|
+
envelope's `meta`: `{ applied, reason_id?, provider, model, endpoint, sent, cost_usd, usage?, ms }`, so a program
|
|
27
|
+
reads whether memo's `search all --harder` reordered, why not (`harder.timeout`…), with which model and at what cost,
|
|
28
|
+
instead of an English sentence under `missing`. `meta` stays strict: any other key is still refused. See
|
|
29
|
+
[WC-OUT-7](docs/standards/output.md#wc-out-7--put-the-facts-about-the-run-in-meta).
|
|
30
|
+
- **The changelog guard accepts a changelog fragment for a breaking title.** A pull request titled `feat!:` or
|
|
31
|
+
`fix(x)!:` passes with a new line under the unreleased heading, as before, or with an added or edited
|
|
32
|
+
`changes/<name>.md` (not `changes/README.md`). cli-core collects such fragments into the version's section at
|
|
33
|
+
release, so open pull requests stop conflicting in `CHANGELOG.md`. A repository gets this when its
|
|
34
|
+
`changelog-guard.yml` pin moves; one without a `changes/` folder sees no difference.
|
|
35
|
+
- **`mentions` is also a view noun**: the people and organizations named in one selected thing's text, as in
|
|
36
|
+
`memo sources mentions document:42`. It stays a collection too, as in `tg <profile> mentions list`. The
|
|
37
|
+
`unknown-verb` lint no longer reports `sources mentions`: memo can drop that override and take its override budget
|
|
38
|
+
back from 14 to 13 after adopting this version.
|
|
39
|
+
- **`cli-dev lint` warns when the shipped manifest lists no hosts.** A `contracts/wirecat.json` without
|
|
40
|
+
`network.hosts` skips `undeclared-host`, and the lint used to pass with only a note. It now prints the `wcat-hosts`
|
|
41
|
+
warning, which does not fail the run: list the hosts in `hosts` of the WCAT identity, `[]` for none, and run
|
|
42
|
+
`cli-dev manifest`. bitrix24-cli is one such CLI. A CLI with no manifest at all still gets only the note. See
|
|
43
|
+
[WC-CMD-32](docs/standards/commands.md#wc-cmd-32--declare-every-host-the-cli-contacts-and-reach-them-only-through-hostfetch).
|
|
44
|
+
|
|
45
|
+
### Changed — may break callers
|
|
46
|
+
|
|
47
|
+
- **`raw-network` also reports the global `fetch` handed on as a value.** `this.#fetch = options.fetch ?? fetch`
|
|
48
|
+
passed, because only a call was matched, so a transport could fall back to the global `fetch` and reach any host. A
|
|
49
|
+
key (`fetch:`), `options.fetch`, `typeof fetch` and the word in a string or comment still pass. Watch for: a CLI
|
|
50
|
+
with that fallback now fails `cli-dev lint` with `<file> fetch`. Those seen are bitrix24-cli,
|
|
51
|
+
whatsapp-cli, mail-cli and cli-template: default to `hostFetch({ hosts: WCAT.hosts ?? [] })` instead, or baseline
|
|
52
|
+
the target.
|
|
53
|
+
- **`cli-dev docs-check` fails an empty pending section.** The [changelog rules](docs/standards/docs.md) already said never to keep one, yet a
|
|
54
|
+
`## Unreleased` with no entry before the next `## ` passed; one with only `###` headings counts as empty too. Watch
|
|
55
|
+
for: cli-memo's changelog has one now, and its `bin/release` writes one back when npm already has the version;
|
|
56
|
+
bitrix24-cli's `bin/release` needs the heading in that case. Remove the heading, and date the version without it,
|
|
57
|
+
as cli-core's `bin/release` does. The changelog rules now also describe the
|
|
58
|
+
`changes/<branch>.md` fragments that the changelog guard accepts.
|
|
59
|
+
|
|
60
|
+
### Fixed
|
|
61
|
+
|
|
62
|
+
- **`--accept-terms` now reads "no longer needed; kept so older scripts still run".** Since cli-core 0.619.0 the
|
|
63
|
+
default embedding model is EmbeddingGemma, which has no licence terms to accept, so the flag does nothing. The
|
|
64
|
+
text matches cli-core's help and its `STANDARD.md` table, which is checked against it. The flag stays in the
|
|
65
|
+
vocabulary so older scripts that pass it still lint.
|
|
66
|
+
|
|
11
67
|
## 0.93.0 — 09.11.2026
|
|
12
68
|
|
|
13
69
|
### Added
|
package/dist/dev/main.js
CHANGED
|
@@ -29,7 +29,7 @@ import { readSources } from "./network.js";
|
|
|
29
29
|
import { nextVersion } from "./next-version.js";
|
|
30
30
|
import { slowTests } from "./slow-tests.js";
|
|
31
31
|
import { matrixPage, matrixRows, parseArgvLog } from "./test-matrix.js";
|
|
32
|
-
import { binNameWarnings, describeWarnings, WCAT_RULES } from "./wcat-lint.js";
|
|
32
|
+
import { binNameWarnings, describeWarnings, hostsWarnings, WCAT_RULES } from "./wcat-lint.js";
|
|
33
33
|
const USAGE = `usage: cli-dev <command> [options]
|
|
34
34
|
|
|
35
35
|
slow-tests [report] [count] the slowest tests and files (report: coverage/tests.json, count: 20)
|
|
@@ -502,8 +502,8 @@ const lintRun = (args, io) => {
|
|
|
502
502
|
if (values["allow-stale"])
|
|
503
503
|
for (const line of stale)
|
|
504
504
|
io.err(`warning ${line}`);
|
|
505
|
-
if (!existsSync(join(io.cwd, MANIFEST_FILE))
|
|
506
|
-
io.err(`undeclared-host: skipped, ${MANIFEST_FILE}
|
|
505
|
+
if (!existsSync(join(io.cwd, MANIFEST_FILE)))
|
|
506
|
+
io.err(`undeclared-host: skipped, no ${MANIFEST_FILE}`);
|
|
507
507
|
return report(io, problems, "lint: ok");
|
|
508
508
|
};
|
|
509
509
|
const shippedManifest = (cwd) => {
|
|
@@ -528,6 +528,7 @@ const wcatWarnings = (cwd, cli) => {
|
|
|
528
528
|
const pkg = existsSync(pkgPath) ? readJson(pkgPath) : {};
|
|
529
529
|
return [
|
|
530
530
|
...binNameWarnings(pkg),
|
|
531
|
+
...hostsWarnings(shippedManifest(cwd)),
|
|
531
532
|
...(cli ? describeWarnings(inEmptyHome(cwd, cli, process.env, (call) => call(["--wcat-describe"]))) : []),
|
|
532
533
|
];
|
|
533
534
|
};
|
package/dist/dev/network.js
CHANGED
|
@@ -50,8 +50,11 @@ const opensNothing = (module, clause) => {
|
|
|
50
50
|
};
|
|
51
51
|
// A file that binds its own `fetch` (an injected FetchLike, `const fetch = hostFetch(…)`) calls that one.
|
|
52
52
|
const BINDS_FETCH = /\b(?:const|let|var|function)\s+fetch\b|[{,(]\s*fetch\s*[,}):=]/;
|
|
53
|
-
const GLOBAL_FETCH_CALL = /(?<![\w$.#])fetch\s*\(/;
|
|
54
53
|
const GLOBAL_FETCH = /(?<!\btypeof\s+)\b(?:globalThis|window|self)\s*\.\s*fetch\b/;
|
|
54
|
+
// A call, or a value handed on to be called later (`options.fetch ?? fetch`); a key (`fetch:`) or a type reaches nothing.
|
|
55
|
+
const GLOBAL_FETCH_USE = /(?<![\w$.#]|\btypeof\s+)fetch\b(?![\w$]|\s*\??\s*:)/;
|
|
56
|
+
const STRINGS_AND_COMMENTS = /\/\/[^\n]*|\/\*[\s\S]*?\*\/|"(?:[^"\\\n]|\\.)*"|'(?:[^'\\\n]|\\.)*'|`(?:[^`\\]|\\.)*`/g;
|
|
57
|
+
const usesGlobalFetch = (code) => GLOBAL_FETCH_USE.test(code.replace(STRINGS_AND_COMMENTS, '""'));
|
|
55
58
|
export const rawNetwork = ({ sources }) => sources.flatMap(({ path, text }) => {
|
|
56
59
|
const code = text
|
|
57
60
|
.split("\n")
|
|
@@ -61,12 +64,12 @@ export const rawNetwork = ({ sources }) => sources.flatMap(({ path, text }) => {
|
|
|
61
64
|
.filter(([, type, clause, exportType, module]) => !type && !exportType && module && NETWORK_MODULES.test(module) && !opensNothing(module, clause))
|
|
62
65
|
.map(([, , , , module]) => module);
|
|
63
66
|
const fetches = [
|
|
64
|
-
...(GLOBAL_FETCH.test(code) || (
|
|
67
|
+
...(GLOBAL_FETCH.test(code) || (!BINDS_FETCH.test(code) && usesGlobalFetch(code)) ? ["fetch"] : []),
|
|
65
68
|
];
|
|
66
69
|
return [...new Set([...modules, ...fetches])].map((what) => ({
|
|
67
70
|
target: `${path} ${what}`,
|
|
68
71
|
message: what === "fetch"
|
|
69
|
-
? "
|
|
72
|
+
? "uses the global fetch: use hostFetch from @wirecat/cli-base/http, which reaches only the declared hosts"
|
|
70
73
|
: `imports ${what}: send HTTP through hostFetch from @wirecat/cli-base/http, or say why in lint/overrides.json`,
|
|
71
74
|
}));
|
|
72
75
|
});
|
package/dist/dev/wcat-lint.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Warnings, not lint rules: an entry in `lint/overrides.json` silences one, with its reason, like any override. */
|
|
2
|
-
export declare const WCAT_RULES: readonly ["wcat-bin-name", "wcat-describe"];
|
|
2
|
+
export declare const WCAT_RULES: readonly ["wcat-bin-name", "wcat-describe", "wcat-hosts"];
|
|
3
3
|
export interface WcatWarning {
|
|
4
4
|
rule: (typeof WCAT_RULES)[number];
|
|
5
5
|
target: string;
|
|
@@ -20,3 +20,12 @@ export declare const describeWarnings: (answer: {
|
|
|
20
20
|
status: number | null;
|
|
21
21
|
stdout: unknown;
|
|
22
22
|
}) => WcatWarning[];
|
|
23
|
+
/**
|
|
24
|
+
* A shipped manifest lists `network.hosts`, `[]` for none; without it `undeclared-host` has nothing to compare. A CLI
|
|
25
|
+
* with no manifest at all may still wait for one (WC-CMD-29), so only the run's note says the check is skipped.
|
|
26
|
+
*/
|
|
27
|
+
export declare const hostsWarnings: (manifest: {
|
|
28
|
+
network?: {
|
|
29
|
+
hosts?: unknown;
|
|
30
|
+
};
|
|
31
|
+
} | undefined) => WcatWarning[];
|
package/dist/dev/wcat-lint.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `cli-dev lint`'s checks for joining `wcat` (WC-CMD-29)
|
|
3
|
-
* its short name until it moves to `wcat-<name>`,
|
|
2
|
+
* `cli-dev lint`'s checks for joining `wcat` (WC-CMD-29) and for the hosts its manifest declares (WC-CMD-32). They warn
|
|
3
|
+
* and never fail the run: every CLI still installs its short name until it moves to `wcat-<name>`, many declare no
|
|
4
|
+
* hosts yet, and each warning becomes a failure once they do.
|
|
4
5
|
*/
|
|
5
6
|
import { parseDescribe } from "../wcat/describe.js";
|
|
7
|
+
import { MANIFEST_FILE } from "../wcat/manifest.js";
|
|
6
8
|
import { DESCRIBE_FLAG, PROGRAM_PREFIX, RESERVED_NAMES, TOOL_NAME } from "../wcat/names.js";
|
|
7
9
|
/** Warnings, not lint rules: an entry in `lint/overrides.json` silences one, with its reason, like any override. */
|
|
8
|
-
export const WCAT_RULES = ["wcat-bin-name", "wcat-describe"];
|
|
10
|
+
export const WCAT_RULES = ["wcat-bin-name", "wcat-describe", "wcat-hosts"];
|
|
9
11
|
const WIRECAT_SCOPE = "@wirecat/";
|
|
10
12
|
/** The commands a `package.json` installs: its `"bin"` keys, or the package's own name for a `"bin"` string. */
|
|
11
13
|
export const binNames = (pkg) => {
|
|
@@ -42,3 +44,16 @@ export const describeWarnings = (answer) => answer.status === 0 && parseDescribe
|
|
|
42
44
|
message: `the CLI does not answer ${DESCRIBE_FLAG}: call wcatStart from @wirecat/cli-base/wcat/start first in its bin`,
|
|
43
45
|
},
|
|
44
46
|
];
|
|
47
|
+
/**
|
|
48
|
+
* A shipped manifest lists `network.hosts`, `[]` for none; without it `undeclared-host` has nothing to compare. A CLI
|
|
49
|
+
* with no manifest at all may still wait for one (WC-CMD-29), so only the run's note says the check is skipped.
|
|
50
|
+
*/
|
|
51
|
+
export const hostsWarnings = (manifest) => manifest === undefined || Array.isArray(manifest.network?.hosts)
|
|
52
|
+
? []
|
|
53
|
+
: [
|
|
54
|
+
{
|
|
55
|
+
rule: "wcat-hosts",
|
|
56
|
+
target: MANIFEST_FILE,
|
|
57
|
+
message: "declares no network.hosts, so undeclared-host is skipped: list every host the CLI contacts in `hosts` of the WCAT identity, [] for none, and run cli-dev manifest",
|
|
58
|
+
},
|
|
59
|
+
];
|
package/dist/release/markdown.js
CHANGED
|
@@ -31,9 +31,16 @@ export const changelogProblems = (text, { version, release, headings, unreleased
|
|
|
31
31
|
let legacy = false;
|
|
32
32
|
if (legacyHeadingsThrough !== undefined && !/^\d+\.\d+\.\d+(?:-[0-9A-Za-z.-]+)?$/.test(legacyHeadingsThrough))
|
|
33
33
|
problems.push(`legacyHeadingsThrough: "${legacyHeadingsThrough}" is not a version`);
|
|
34
|
+
let emptyPending;
|
|
35
|
+
const closePending = () => {
|
|
36
|
+
if (emptyPending)
|
|
37
|
+
problems.push(`${emptyPending}: "${unreleased}" has no entries — remove the heading until there is one`);
|
|
38
|
+
emptyPending = undefined;
|
|
39
|
+
};
|
|
34
40
|
text.split("\n").forEach((line, index) => {
|
|
35
41
|
const where = `CHANGELOG.md:${index + 1}`;
|
|
36
42
|
if (line.startsWith("## ")) {
|
|
43
|
+
closePending();
|
|
37
44
|
section = line.slice(3);
|
|
38
45
|
subheadings = new Set();
|
|
39
46
|
top = first;
|
|
@@ -43,6 +50,8 @@ export const changelogProblems = (text, { version, release, headings, unreleased
|
|
|
43
50
|
problems.push(`${where}: "${unreleased}" is left — date it as ${version} before releasing`);
|
|
44
51
|
else if (!first)
|
|
45
52
|
problems.push(`${where}: "${unreleased}" must be the top section`);
|
|
53
|
+
if (!release)
|
|
54
|
+
emptyPending = where;
|
|
46
55
|
}
|
|
47
56
|
else {
|
|
48
57
|
const found = VERSION_HEADING.exec(line);
|
|
@@ -60,6 +69,8 @@ export const changelogProblems = (text, { version, release, headings, unreleased
|
|
|
60
69
|
first = false;
|
|
61
70
|
return;
|
|
62
71
|
}
|
|
72
|
+
if (line.trim() !== "" && !line.startsWith("#"))
|
|
73
|
+
emptyPending = undefined;
|
|
63
74
|
if (line.startsWith("### ") && !legacy) {
|
|
64
75
|
const heading = line.slice(4);
|
|
65
76
|
if (!headings.includes(heading))
|
|
@@ -74,6 +85,7 @@ export const changelogProblems = (text, { version, release, headings, unreleased
|
|
|
74
85
|
for (const found of line.match(id) ?? [])
|
|
75
86
|
problems.push(`${where}: internal id ${found} — say what changed instead`);
|
|
76
87
|
});
|
|
88
|
+
closePending();
|
|
77
89
|
if (release && first)
|
|
78
90
|
problems.push(`CHANGELOG.md: no section for ${version}`);
|
|
79
91
|
return problems;
|
|
@@ -225,7 +225,6 @@ export const HOW_FLAGS = [
|
|
|
225
225
|
meaning: "expose meeting preparation tools, including their remote schedule reads",
|
|
226
226
|
},
|
|
227
227
|
{ name: "--dry-run", role: "mode", type: "switch", meaning: "judge and plan; do nothing", replaces: ["--estimate"] },
|
|
228
|
-
{ name: "--accept-terms", role: "mode", type: "switch", meaning: "accept the model's licence terms" },
|
|
229
228
|
{
|
|
230
229
|
name: "--as-owner",
|
|
231
230
|
role: "mode",
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
/** Memories and facts that rest on cited sources, and sources the owner adds by hand. */
|
|
2
2
|
export const KNOWLEDGE_FLAGS = [
|
|
3
|
+
{
|
|
4
|
+
name: "--accept-terms",
|
|
5
|
+
role: "mode",
|
|
6
|
+
type: "switch",
|
|
7
|
+
meaning: "no longer needed; kept so older scripts still run",
|
|
8
|
+
},
|
|
3
9
|
{
|
|
4
10
|
name: "--quote",
|
|
5
11
|
value: "<ref=words...>",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { EFFECT_LEVELS, type EffectLevel, type Effects, effectsSchema, writes } from "./effects.js";
|
|
2
2
|
export { BASE_REASONS, COMMON_DETAILS, CRASH_CODE, CRASH_REASON, defineReasons, type ErrorObject, type ErrorReason, errorObjectSchema, } from "./errors.js";
|
|
3
3
|
export { defineLogEvents, isContentKey, LOG_ATTRIBUTE_KEYS, LOG_EVENTS, LOG_SEVERITIES, type LogEvent, type LogRecord, type LogSeverity, logAttributesJsonSchema, logEventProblems, logRecordSchema, traceIdOf, } from "./log.js";
|
|
4
|
-
export { COMPACT_FLAG, clockMeta, type Issue, type ItemEnvelope, isoTime, issueSchema, itemEnvelopeSchema, jsonlEndSchema, jsonlItemSchema, jsonlOf, type ListEnvelope, listEnvelopeSchema, localTime, MAX_NEXT_STEPS, type Meta, type Missing, metaSchema, missingSchema, type NextStep, nextStepSchema, type Page, pageSchema, reference, type Total, totalSchema, } from "./output.js";
|
|
4
|
+
export { COMPACT_FLAG, clockMeta, type Issue, type ItemEnvelope, isoTime, issueSchema, itemEnvelopeSchema, jsonlEndSchema, jsonlItemSchema, jsonlOf, type ListEnvelope, listEnvelopeSchema, localTime, MAX_NEXT_STEPS, type Meta, type Missing, metaSchema, missingSchema, type NextStep, nextStepSchema, type Page, pageSchema, type Ranking, rankingSchema, reference, type Total, totalSchema, } from "./output.js";
|
|
5
5
|
export { fill, jsonSchemaOf, RegistryError } from "./registry.js";
|
|
6
6
|
export { defineSteps, SAME_COMMAND, STEPS, type StepDefinition, type StepInput, type StepTarget, stepOf, } from "./steps.js";
|
package/dist/standards/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { EFFECT_LEVELS, effectsSchema, writes } from "./effects.js";
|
|
2
2
|
export { BASE_REASONS, COMMON_DETAILS, CRASH_CODE, CRASH_REASON, defineReasons, errorObjectSchema, } from "./errors.js";
|
|
3
3
|
export { defineLogEvents, isContentKey, LOG_ATTRIBUTE_KEYS, LOG_EVENTS, LOG_SEVERITIES, logAttributesJsonSchema, logEventProblems, logRecordSchema, traceIdOf, } from "./log.js";
|
|
4
|
-
export { COMPACT_FLAG, clockMeta, isoTime, issueSchema, itemEnvelopeSchema, jsonlEndSchema, jsonlItemSchema, jsonlOf, listEnvelopeSchema, localTime, MAX_NEXT_STEPS, metaSchema, missingSchema, nextStepSchema, pageSchema, reference, totalSchema, } from "./output.js";
|
|
4
|
+
export { COMPACT_FLAG, clockMeta, isoTime, issueSchema, itemEnvelopeSchema, jsonlEndSchema, jsonlItemSchema, jsonlOf, listEnvelopeSchema, localTime, MAX_NEXT_STEPS, metaSchema, missingSchema, nextStepSchema, pageSchema, rankingSchema, reference, totalSchema, } from "./output.js";
|
|
5
5
|
export { fill, jsonSchemaOf, RegistryError } from "./registry.js";
|
|
6
6
|
export { defineSteps, SAME_COMMAND, STEPS, stepOf, } from "./steps.js";
|
|
@@ -74,6 +74,24 @@ export declare const issueSchema: v.StrictObjectSchema<{
|
|
|
74
74
|
* `complete: false` (with `issues`): some source failed or was skipped. `truncated`: a size cap cut the answer.
|
|
75
75
|
* Neither is `page.has_more`.
|
|
76
76
|
*/
|
|
77
|
+
/**
|
|
78
|
+
* What a hosted model did to the order of a search's hits (memo's `search all --harder`): `applied` when its order
|
|
79
|
+
* replaced the plain one, else `reason_id` says why. `cost_usd` is null for a model with no known price.
|
|
80
|
+
*/
|
|
81
|
+
export declare const rankingSchema: v.StrictObjectSchema<{
|
|
82
|
+
readonly applied: v.BooleanSchema<undefined>;
|
|
83
|
+
readonly reason_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "dotted lower-case words, such as `page.next`">]>, undefined>;
|
|
84
|
+
readonly provider: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
85
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
86
|
+
readonly endpoint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
87
|
+
readonly sent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
88
|
+
readonly cost_usd: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
89
|
+
readonly usage: v.OptionalSchema<v.StrictObjectSchema<{
|
|
90
|
+
readonly input: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
91
|
+
readonly output: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
92
|
+
}, undefined>, undefined>;
|
|
93
|
+
readonly ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
94
|
+
}, undefined>;
|
|
77
95
|
export declare const metaSchema: v.StrictObjectSchema<{
|
|
78
96
|
readonly run_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
79
97
|
readonly duration_ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -94,6 +112,20 @@ export declare const metaSchema: v.StrictObjectSchema<{
|
|
|
94
112
|
readonly since: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
95
113
|
readonly until: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
96
114
|
}, undefined>, undefined>;
|
|
115
|
+
readonly ranking: v.OptionalSchema<v.StrictObjectSchema<{
|
|
116
|
+
readonly applied: v.BooleanSchema<undefined>;
|
|
117
|
+
readonly reason_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "dotted lower-case words, such as `page.next`">]>, undefined>;
|
|
118
|
+
readonly provider: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
119
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
120
|
+
readonly endpoint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
121
|
+
readonly sent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
122
|
+
readonly cost_usd: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
123
|
+
readonly usage: v.OptionalSchema<v.StrictObjectSchema<{
|
|
124
|
+
readonly input: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
125
|
+
readonly output: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
126
|
+
}, undefined>, undefined>;
|
|
127
|
+
readonly ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
128
|
+
}, undefined>, undefined>;
|
|
97
129
|
}, undefined>;
|
|
98
130
|
/**
|
|
99
131
|
* `meta.now`, `meta.now_local` and `meta.timezone` for an answer an agent plans by (WC-TIME-7): the moment in UTC, the
|
|
@@ -186,6 +218,20 @@ export declare const listEnvelopeSchema: <T extends v.GenericSchema>(item: T) =>
|
|
|
186
218
|
readonly since: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
187
219
|
readonly until: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
188
220
|
}, undefined>, undefined>;
|
|
221
|
+
readonly ranking: v.OptionalSchema<v.StrictObjectSchema<{
|
|
222
|
+
readonly applied: v.BooleanSchema<undefined>;
|
|
223
|
+
readonly reason_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "dotted lower-case words, such as `page.next`">]>, undefined>;
|
|
224
|
+
readonly provider: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
225
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
226
|
+
readonly endpoint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
227
|
+
readonly sent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
228
|
+
readonly cost_usd: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
229
|
+
readonly usage: v.OptionalSchema<v.StrictObjectSchema<{
|
|
230
|
+
readonly input: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
231
|
+
readonly output: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
232
|
+
}, undefined>, undefined>;
|
|
233
|
+
readonly ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
234
|
+
}, undefined>, undefined>;
|
|
189
235
|
}, undefined>;
|
|
190
236
|
}, undefined>;
|
|
191
237
|
export declare const itemEnvelopeSchema: <T extends v.GenericSchema>(item: T) => v.StrictObjectSchema<{
|
|
@@ -251,6 +297,20 @@ export declare const itemEnvelopeSchema: <T extends v.GenericSchema>(item: T) =>
|
|
|
251
297
|
readonly since: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
252
298
|
readonly until: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "an ISO 8601 time in UTC">, v.EndsWithAction<string, "Z", "an ISO 8601 time in UTC, ending in `Z`">]>, undefined>;
|
|
253
299
|
}, undefined>, undefined>;
|
|
300
|
+
readonly ranking: v.OptionalSchema<v.StrictObjectSchema<{
|
|
301
|
+
readonly applied: v.BooleanSchema<undefined>;
|
|
302
|
+
readonly reason_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "dotted lower-case words, such as `page.next`">]>, undefined>;
|
|
303
|
+
readonly provider: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
304
|
+
readonly model: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
305
|
+
readonly endpoint: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "must not be empty">]>;
|
|
306
|
+
readonly sent: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
307
|
+
readonly cost_usd: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
308
|
+
readonly usage: v.OptionalSchema<v.StrictObjectSchema<{
|
|
309
|
+
readonly input: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
310
|
+
readonly output: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
311
|
+
}, undefined>, undefined>;
|
|
312
|
+
readonly ms: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
313
|
+
}, undefined>, undefined>;
|
|
254
314
|
}, undefined>;
|
|
255
315
|
}, undefined>;
|
|
256
316
|
export type NextStep = v.InferOutput<typeof nextStepSchema>;
|
|
@@ -258,6 +318,7 @@ export type Missing = v.InferOutput<typeof missingSchema>;
|
|
|
258
318
|
export type Page = v.InferOutput<typeof pageSchema>;
|
|
259
319
|
export type Issue = v.InferOutput<typeof issueSchema>;
|
|
260
320
|
export type Meta = v.InferOutput<typeof metaSchema>;
|
|
321
|
+
export type Ranking = v.InferOutput<typeof rankingSchema>;
|
|
261
322
|
export interface ListEnvelope<T> {
|
|
262
323
|
items: T[];
|
|
263
324
|
page: Page;
|
package/dist/standards/output.js
CHANGED
|
@@ -77,6 +77,24 @@ export const issueSchema = v.strictObject({
|
|
|
77
77
|
* `complete: false` (with `issues`): some source failed or was skipped. `truncated`: a size cap cut the answer.
|
|
78
78
|
* Neither is `page.has_more`.
|
|
79
79
|
*/
|
|
80
|
+
/**
|
|
81
|
+
* What a hosted model did to the order of a search's hits (memo's `search all --harder`): `applied` when its order
|
|
82
|
+
* replaced the plain one, else `reason_id` says why. `cost_usd` is null for a model with no known price.
|
|
83
|
+
*/
|
|
84
|
+
export const rankingSchema = v.strictObject({
|
|
85
|
+
applied: v.boolean(),
|
|
86
|
+
reason_id: v.optional(dottedId),
|
|
87
|
+
provider: text,
|
|
88
|
+
model: text,
|
|
89
|
+
endpoint: text,
|
|
90
|
+
sent: v.pipe(v.number(), v.integer(), v.minValue(0)),
|
|
91
|
+
cost_usd: v.nullable(v.pipe(v.number(), v.minValue(0))),
|
|
92
|
+
usage: v.optional(v.strictObject({
|
|
93
|
+
input: v.pipe(v.number(), v.integer(), v.minValue(0)),
|
|
94
|
+
output: v.pipe(v.number(), v.integer(), v.minValue(0)),
|
|
95
|
+
})),
|
|
96
|
+
ms: v.pipe(v.number(), v.integer(), v.minValue(0)),
|
|
97
|
+
});
|
|
80
98
|
export const metaSchema = v.strictObject({
|
|
81
99
|
run_id: text,
|
|
82
100
|
duration_ms: v.pipe(v.number(), v.integer(), v.minValue(0)),
|
|
@@ -89,6 +107,7 @@ export const metaSchema = v.strictObject({
|
|
|
89
107
|
now: v.optional(isoTime),
|
|
90
108
|
now_local: v.optional(localTime),
|
|
91
109
|
window: v.optional(v.strictObject({ since: v.optional(isoTime), until: v.optional(isoTime) })),
|
|
110
|
+
ranking: v.optional(rankingSchema),
|
|
92
111
|
});
|
|
93
112
|
const offsetOf = (at, zone) => {
|
|
94
113
|
const name = new Intl.DateTimeFormat("en-US", { timeZone: zone, timeZoneName: "longOffset" })
|
|
@@ -372,6 +372,7 @@ const views = [
|
|
|
372
372
|
["categories", "the categories a thing takes, with what each means"],
|
|
373
373
|
["domains", "the internet domains links point to, most linked first"],
|
|
374
374
|
["places", "the street addresses confirmed as places, most mentioned first"],
|
|
375
|
+
["mentions", "the people and organizations named in a selected thing's text"],
|
|
375
376
|
["comments", "replies attached to a selected source item"],
|
|
376
377
|
["links", "links held for a selected thing"],
|
|
377
378
|
["voters", "people whose recorded votes are visible for a selected poll"],
|
|
@@ -468,16 +468,21 @@ the machine and checks every redirect.
|
|
|
468
468
|
- **Why:** before the person installs a CLI WireCat has not reviewed, Desktop shows where its data goes. A list the
|
|
469
469
|
developer types can be wrong, so the CLI enforces it on itself at run time, and the lint finds network code that
|
|
470
470
|
goes around it.
|
|
471
|
-
- **Enforced by:** `raw-network` · `undeclared-host` · `src/
|
|
471
|
+
- **Enforced by:** `raw-network` · `undeclared-host` · `src/dev/wcat-lint.ts` ·
|
|
472
|
+
`src/http/fetch.ts` · `src/wcat/manifest.ts`.
|
|
472
473
|
- **Example:** `hosts: ["api.acme.example"]` in the identity, then
|
|
473
474
|
`const fetch = hostFetch({ hosts: WCAT.hosts ?? [] })`. `raw-network` reports `src/api.ts node:https` for an
|
|
474
|
-
import of `node:https
|
|
475
|
-
`collector.acme.dev`, naming the files, for a URL whose host
|
|
475
|
+
import of `node:https`, and `src/api.ts fetch` for the global `fetch` called or handed on as a value
|
|
476
|
+
(`options.fetch ?? fetch`); `undeclared-host` reports `collector.acme.dev`, naming the files, for a URL whose host
|
|
477
|
+
the shipped manifest does not list.
|
|
476
478
|
- **Exceptions:** network code that cannot use `hostFetch` (a socket protocol, a provider SDK) says why in
|
|
477
479
|
`lint/overrides.json`, and still lists its hosts. The lint is not a sandbox: a dependency, a computed URL or `eval`
|
|
478
|
-
passes it, which is why Desktop also scans the package and flags what it finds.
|
|
479
|
-
|
|
480
|
-
|
|
480
|
+
passes it, which is why Desktop also scans the package and flags what it finds. A shipped manifest without
|
|
481
|
+
`network.hosts` skips `undeclared-host`, and `cli-dev lint` warns (`wcat-hosts`) but passes, because many CLIs list
|
|
482
|
+
no hosts yet; the warning becomes a failure once they do. With no manifest at all, the run only says the check is
|
|
483
|
+
skipped.
|
|
484
|
+
- **Applies to:** all CLIs, and third-party CLIs that join `wcat`. **Since:** the release after cli-base 0.84.0; the
|
|
485
|
+
global fetch as a value and the missing-hosts warning since the release after 0.93.0.
|
|
481
486
|
**Rulings:** none.
|
|
482
487
|
|
|
483
488
|
## Sources
|
package/docs/standards/docs.md
CHANGED
|
@@ -143,9 +143,17 @@ Rule ids on this page are `WC-DOC-<n>`. How to read a rule, how ids work and whi
|
|
|
143
143
|
- **Example:** `## Unreleased` at the top while work is merged; a release dates it as `## 0.41.0 — 17.10.2026`. Each
|
|
144
144
|
version heading and the pending heading appear once. The pending section exists only while it has entries: after a
|
|
145
145
|
release the changelog opens on the dated section, and the next entry adds `## Unreleased` back. Never keep an empty
|
|
146
|
-
one
|
|
147
|
-
|
|
148
|
-
- **
|
|
146
|
+
one: `cli-dev docs-check` fails a pending heading with no entry before the next `## `, also one with only `###`
|
|
147
|
+
headings under it.
|
|
148
|
+
- **Exceptions:** max-cli names the pending section `## Не выпущено`. A repository may keep its pending entries in
|
|
149
|
+
changelog fragments instead, so open pull requests stop conflicting on the same lines: each pull request adds
|
|
150
|
+
`changes/<branch>.md` (lower case, `/` as `-`) with one or more of the WC-DOC-15 headings as `###` and its entries
|
|
151
|
+
under them. Its release collects them into the version's section and deletes them, so `CHANGELOG.md` then usually
|
|
152
|
+
has no pending section at all. cli-core, cli-memo and bitrix24-cli do this, each with its own
|
|
153
|
+
`scripts/changelog-fragments.ts` in `pnpm docs:check` for the fragments' names and headings; `cli-dev docs-check`
|
|
154
|
+
does not read them.
|
|
155
|
+
- **Applies to:** all CLIs and shared libraries. **Since:** cli-base 0.41.0; the empty-section check since the
|
|
156
|
+
release after 0.93.0. **Rulings:** none.
|
|
149
157
|
|
|
150
158
|
### WC-DOC-15 · Changelog entries go under five fixed headings, each at most once per section
|
|
151
159
|
|
|
@@ -199,8 +207,12 @@ Rule ids on this page are `WC-DOC-<n>`. How to read a rule, how ids work and whi
|
|
|
199
207
|
|
|
200
208
|
- **Why:** a breaking change with no changelog line reaches callers with no warning.
|
|
201
209
|
- **Enforced by:** `changelog-guard.yml`.
|
|
202
|
-
- **Example:** a title `feat(store)!: …` fails the guard unless the pull request adds a line under `## Unreleased
|
|
203
|
-
-
|
|
210
|
+
- **Example:** a title `feat(store)!: …` fails the guard unless the pull request adds a line under `## Unreleased`,
|
|
211
|
+
or adds or edits a changelog fragment (WC-DOC-14): a file `changes/<name>.md`, other than `changes/README.md`, with
|
|
212
|
+
at least one line that is not blank and not a heading. The guard checks neither the file's name nor its headings;
|
|
213
|
+
the repository's own `docs:check` does.
|
|
214
|
+
- **Exceptions:** the guard accepts a fragment only when `changelog-guard.yml` is pinned at cli-base #555's commit or
|
|
215
|
+
later, which every release after cli-base 0.93.0 includes.
|
|
204
216
|
- **Applies to:** every repository that calls the changelog guard. **Since:** cli-base 0.41.0. **Rulings:** none.
|
|
205
217
|
|
|
206
218
|
### WC-DOC-20 · A released section is frozen, and a new entry goes under an existing heading
|
|
@@ -24,9 +24,11 @@ and [WC-SECR-2](security.md#wc-secr-2--a-log-keeps-only-known-attribute-keys-and
|
|
|
24
24
|
`feat/runs` branch (2026-10-25). zm's `resolveSettings` also returns `keepFailedRuns: false`, which turns off the
|
|
25
25
|
failure log cli-core's `run` would keep.
|
|
26
26
|
- **WC-LIFE-16:** cli-core's shared calendar `sync`, from cli-core 0.464.0 (cli-core #2118); gcal has it. The
|
|
27
|
-
deadlines of WC-LIFE-5 come with the same release.
|
|
28
|
-
|
|
29
|
-
`
|
|
27
|
+
deadlines of WC-LIFE-5 come with the same release. cli-core's shared CRM `sync`, from cli-core 0.591.0 (cli-core
|
|
28
|
+
#2553), declares `cooperative` and `partial` and takes `--max-pages`; b24 has it. The other syncs (`messages sync`
|
|
29
|
+
in tg, max and wa, drive's `sync`, memo's mail import, zm's `recordings sync`) are cooperative but spend no request
|
|
30
|
+
budget yet. gcal sets `requestMs` to 1.5 s, b24 to 1 s: a Bitrix24 portal allows 2 requests a second, shared by
|
|
31
|
+
every app and webhook.
|
|
30
32
|
|
|
31
33
|
## One-shot commands
|
|
32
34
|
|
|
@@ -288,10 +290,12 @@ status command answers how far it is
|
|
|
288
290
|
- **Enforced by:** `cli-core: src/background/budget.test.ts` · `cli-core: src/calendar/testing/sync-contract.ts`.
|
|
289
291
|
- **Example:** `gcal personal sync` over MCP has 45 s: margin 6.75 s, so with gcal's 1.5 s about 25 requests. It
|
|
290
292
|
answers `state: "partial"`, `stopped: "requests"`, `progress: { calendars, calendarsDone, requests, saved }`, and
|
|
291
|
-
`next` with `gcal personal sync`; `gcal personal store status` shows each calendar's progress.
|
|
293
|
+
`next` with `gcal personal sync`; `gcal personal store status` shows each calendar's progress. `b24 work sync`, with
|
|
294
|
+
b24's 1 s, gets 38 requests in the same 45 s. cli-core builds the budget
|
|
292
295
|
with `runBudgetOf(command, maxPages)` from `@wirecat/cli-core/cli` over `runBudget` in
|
|
293
296
|
`@wirecat/cli-core/background`.
|
|
294
|
-
- **Exceptions:** known gaps, as of 2026-
|
|
297
|
+
- **Exceptions:** known gaps, as of 2026-11-09: only cli-core's calendar and CRM syncs spend a budget, so gcal and
|
|
298
|
+
b24 (see "Who follows"). The
|
|
295
299
|
continuing step names the command, not the MCP tool, and until the WC-CMD-17 follow-up the router sends that
|
|
296
300
|
command to `write`, not `read`.
|
|
297
301
|
- **Applies to:** every CLI with a sync. **Since:** cli-base 0.65.0. **Rulings:** the owner's deadlines and request
|
package/docs/standards/output.md
CHANGED
|
@@ -82,11 +82,15 @@ JSON Schema 2020-12.
|
|
|
82
82
|
|
|
83
83
|
- **Why:** `run_id` finds the run later, and `complete` says whether the answer can be trusted as whole.
|
|
84
84
|
- **Enforced by:** review only.
|
|
85
|
-
- **Example:** `{ run_id, duration_ms, accounts?, complete, issues?, truncated?, timezone?, window? }`.
|
|
85
|
+
- **Example:** `{ run_id, duration_ms, accounts?, complete, issues?, truncated?, timezone?, window?, ranking? }`.
|
|
86
|
+
`timezone`
|
|
86
87
|
names the zone a time without one was read or shown in, and `window` the UTC bounds a date filter used
|
|
87
88
|
([Time](time.md)). `complete: false` with
|
|
88
89
|
`issues: [{ code, reason?, source }]` says a source failed or was skipped. `truncated` says a size cap cut the
|
|
89
|
-
answer. Neither one means another page exists: that is `page.has_more`.
|
|
90
|
+
answer. Neither one means another page exists: that is `page.has_more`. `ranking` says what a hosted model did to
|
|
91
|
+
the order of a search's hits: `{ applied, reason_id?, provider, model, endpoint, sent, cost_usd, usage?, ms }`, with
|
|
92
|
+
`reason_id` (such as `harder.timeout`) when its order was not used and `cost_usd: null` for a model with no known
|
|
93
|
+
price. A program reads it instead of parsing a sentence.
|
|
90
94
|
- **Exceptions:** none.
|
|
91
95
|
- **Applies to:** all CLIs. **Since:** cli-base 0.41.0. **Rulings:** none.
|
|
92
96
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.95.0",
|
|
4
4
|
"description": "The parts every command line tool needs: output modes, terminal rendering, error model, exit codes, credentials, clocks",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Viacheslav Ptsarev",
|