@wirecat/cli-base 0.83.0 → 0.84.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
CHANGED
|
@@ -8,6 +8,33 @@ 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.84.0 — 08.11.2026
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- **A reusable `release-start.yml` workflow starts a release from GitHub, replacing `bin/release` on a laptop.** A CLI
|
|
16
|
+
adds a small `workflow_dispatch` caller; one run restores and folds the changelog, raises a version npm already has
|
|
17
|
+
through one pull request, merges it once GitHub reports it mergeable (required checks only), and starts the
|
|
18
|
+
repository's own `release.yml` with the merged commit. It needs a GitHub App token, because a pull request opened
|
|
19
|
+
with `GITHUB_TOKEN` does not run its checks on its own. Nothing calls it yet; setup and the open points are in
|
|
20
|
+
[`docs/dev/release-workflow.md`](docs/dev/release-workflow.md).
|
|
21
|
+
- **Vocabulary for memories that follow their sources, and for sources added by hand** (cli-memo). The verb
|
|
22
|
+
`challenge`: say a record no longer holds, citing what contradicts it; it only proposes. The noun `sources`: what
|
|
23
|
+
the owner adds by hand to read from. Flags `--quote <ref=words...>` (the words of an `--evidence` reference a
|
|
24
|
+
record rests on), `--suggest <text>` (wording offered to the owner, deciding nothing), `--keep-copy` (keep the
|
|
25
|
+
original file as well as its text) and `--max-chars <n>` (a cap in characters; the `--max-*-bytes` budgets count
|
|
26
|
+
bytes, and text read for a person is cut by characters).
|
|
27
|
+
|
|
28
|
+
## 0.83.1 — 08.11.2026
|
|
29
|
+
|
|
30
|
+
### Fixed
|
|
31
|
+
|
|
32
|
+
- **`cli-dev changelog restore` and the other `--land` steps read an output past 1 MiB.** Their git and gh calls had
|
|
33
|
+
Node's default 1 MiB output limit, so `restore` failed once a released `CHANGELOG.md` passed that size, as
|
|
34
|
+
cli-core's did at 0.607.0, and its error printed the changelog instead of the cause. The limit is now 64 MiB, the
|
|
35
|
+
same as `@wirecat/cli-base/release`, and a call that cannot run says why (`ENOBUFS`, `ENOENT`). A release script
|
|
36
|
+
that pins an older cli-base for `changelog restore` should take this version.
|
|
37
|
+
|
|
11
38
|
## 0.83.0 — 08.11.2026
|
|
12
39
|
|
|
13
40
|
### Added
|
package/dist/dev/land.js
CHANGED
|
@@ -3,7 +3,10 @@ import spawn from "cross-spawn";
|
|
|
3
3
|
import { foldUnreleased, mergeRepeatedHeadings, restoreReleased } from "../release/index.js";
|
|
4
4
|
export const processShell = (cwd) => ({
|
|
5
5
|
run: (command, args) => {
|
|
6
|
-
|
|
6
|
+
// Node's default 1 MiB output limit cut `git show` of a changelog past that size (cli-core 0.607.0).
|
|
7
|
+
const result = spawn.sync(command, [...args], { cwd, encoding: "utf8", maxBuffer: 64 * 1024 * 1024 });
|
|
8
|
+
if (result.error)
|
|
9
|
+
return { ok: false, out: result.error.message };
|
|
7
10
|
return { ok: result.status === 0, out: `${result.stdout ?? ""}${result.stderr ?? ""}`.trim() };
|
|
8
11
|
},
|
|
9
12
|
sleep: (ms) => Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms),
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/** Memories and facts that rest on cited sources, and sources the owner adds by hand. */
|
|
2
|
+
export const KNOWLEDGE_FLAGS = [
|
|
3
|
+
{
|
|
4
|
+
name: "--quote",
|
|
5
|
+
value: "<ref=words...>",
|
|
6
|
+
role: "value",
|
|
7
|
+
type: "list",
|
|
8
|
+
meaning: "the words an --evidence reference says that a record rests on, as <ref>=<words>, one per reference",
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
name: "--suggest",
|
|
12
|
+
value: "<text>",
|
|
13
|
+
role: "value",
|
|
14
|
+
type: "string",
|
|
15
|
+
meaning: "wording offered for the owner to take or leave; it decides nothing",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: "--keep-copy",
|
|
19
|
+
role: "mode",
|
|
20
|
+
type: "switch",
|
|
21
|
+
meaning: "keep a copy of the original file as well as its text",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "--max-chars",
|
|
25
|
+
value: "<n>",
|
|
26
|
+
role: "budget",
|
|
27
|
+
type: "count",
|
|
28
|
+
meaning: "at most this many characters read",
|
|
29
|
+
unit: "characters",
|
|
30
|
+
},
|
|
31
|
+
];
|
|
@@ -2,6 +2,7 @@ import * as v from "valibot";
|
|
|
2
2
|
import { CALENDAR_FLAGS } from "./flags-calendar.js";
|
|
3
3
|
import { CRM_FLAGS } from "./flags-crm.js";
|
|
4
4
|
import { HOW_FLAGS } from "./flags-how.js";
|
|
5
|
+
import { KNOWLEDGE_FLAGS } from "./flags-knowledge.js";
|
|
5
6
|
import { MAIL_FLAGS } from "./flags-mail.js";
|
|
6
7
|
import { PRIVACY_FLAGS } from "./flags-privacy.js";
|
|
7
8
|
import { SCHEDULE_FLAGS } from "./flags-schedule.js";
|
|
@@ -193,6 +194,7 @@ const verbs = [
|
|
|
193
194
|
["assign", "name the person responsible for work, with their task role"],
|
|
194
195
|
["reverse", "record that an accepted decision no longer holds, without replacing it"],
|
|
195
196
|
["invalidate", "mark a derived record whose supporting evidence no longer holds"],
|
|
197
|
+
["challenge", "say a record no longer holds, citing what contradicts it; it only proposes, and the owner decides"],
|
|
196
198
|
["acknowledge", "record successful delivery using the exact receipt issued when the item was claimed"],
|
|
197
199
|
["confirm", "the owner accepts what an agent proposed"],
|
|
198
200
|
["reject", "the owner refuses what an agent proposed"],
|
|
@@ -252,6 +254,7 @@ const collections = [
|
|
|
252
254
|
["tracking", "the chats whose member lists are fetched daily"],
|
|
253
255
|
["documents", "files imported from Google Drive or Docs, or linked in a chat"],
|
|
254
256
|
["notes", "text the owner writes, or files from a notes folder"],
|
|
257
|
+
["sources", "what the owner adds by hand to read from: a file, a web page or a pasted text, kept as its text"],
|
|
255
258
|
["projects", "the owner's work units with a task key"],
|
|
256
259
|
[
|
|
257
260
|
"annotations",
|
|
@@ -417,6 +420,7 @@ export const VOCABULARY = defineVocabulary({
|
|
|
417
420
|
...PRIVACY_FLAGS,
|
|
418
421
|
...CALENDAR_FLAGS,
|
|
419
422
|
...MAIL_FLAGS,
|
|
423
|
+
...KNOWLEDGE_FLAGS,
|
|
420
424
|
...CRM_FLAGS,
|
|
421
425
|
...SCHEDULE_FLAGS,
|
|
422
426
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirecat/cli-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.84.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",
|