@wirecat/wirecat 1.0.0 → 2.0.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/README.md +10 -11
- package/contracts/wirecat.json +1 -1
- package/dist/answer.js +14 -6
- package/dist/bin/wcat-wirecat.js +2 -2
- package/dist/bundle/{auto-YETGUQ2J.js → auto-FUO5KVI4.js} +6 -5
- package/dist/bundle/{chunk-KPJVVFQF.js → chunk-5WFO6JWX.js} +11 -5
- package/dist/bundle/{chunk-3ME37WWB.js → chunk-E6ATHTD4.js} +1 -1
- package/dist/bundle/{chunk-X5OK73GU.js → chunk-EXGRACGB.js} +12 -1
- package/dist/bundle/{chunk-KNFSW562.js → chunk-FJI2GGCP.js} +2 -2
- package/dist/bundle/{chunk-4WI3FO7T.js → chunk-GEOUDXRA.js} +6 -6
- package/dist/bundle/{chunk-GGRL6DTE.js → chunk-KDZBXQEF.js} +3 -3
- package/dist/bundle/{chunk-DWQQRBQV.js → chunk-KGZHDTL7.js} +2 -2
- package/dist/bundle/{chunk-ZC4PRE6C.js → chunk-PFPRK73R.js} +1 -1
- package/dist/bundle/{chunk-FOWR5KJS.js → chunk-VU2Y645U.js} +3 -3
- package/dist/bundle/{chunk-WMPDRWVF.js → chunk-WV25HYY7.js} +3 -3
- package/dist/bundle/{entry-S4DSYEAY.js → entry-5EWNCB5P.js} +6 -6
- package/dist/bundle/{failure-FALOD7QW.js → failure-QMAD62PD.js} +4 -4
- package/dist/bundle/{from-memo-XVOLSUOM.js → from-memo-6657KRIY.js} +7 -6
- package/dist/bundle/{program-XSZSINBU.js → program-TSDADT6D.js} +133 -54
- package/dist/bundle/{server-GQ4NZUDL.js → server-3YTTY2HK.js} +74 -31
- package/dist/bundle/{update-2EH5KHTV.js → update-JVDUBORQ.js} +4 -4
- package/dist/bundle/wcat-wirecat.js +3 -3
- package/dist/config-command.js +1 -1
- package/dist/context/command.js +1 -1
- package/dist/context/context.js +1 -1
- package/dist/knowledge/project-gather-command.js +1 -1
- package/dist/mcp/catalogue.js +2 -0
- package/dist/mcp/permissions.js +1 -1
- package/dist/mcp/server.js +11 -19
- package/dist/reasons.js +5 -5
- package/dist/ref-alias.js +57 -0
- package/dist/run/import.js +37 -6
- package/dist/search/answers.js +22 -17
- package/dist/search/command.js +13 -10
- package/dist/show/command.js +63 -5
- package/dist/store/source-list.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +2 -2
- package/skills/wcat/SKILL.md +1 -1
- package/skills/wcat/topics/mcp.md +3 -3
- package/skills/wcat/topics/search.md +3 -3
package/README.md
CHANGED
|
@@ -48,18 +48,17 @@ is missing, so this search used words only. `--json` returns structured results
|
|
|
48
48
|
You need Node.js 22.16+ or 24+ (not 23). wcat is tested on Linux; macOS and Windows are not tested yet.
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
|
-
|
|
52
|
-
wcat skill install --for all
|
|
53
|
-
npm install -g @wirecat/files-cli # notes and documents come from the files CLI
|
|
51
|
+
pnpm add -g @wirecat/wirecat @wirecat/files-cli # files brings in notes and documents
|
|
52
|
+
wcat-wirecat skill install --for all # the agent skill; this first start also adds `wcat`
|
|
54
53
|
files folders add /path/to/notes # your notes folder; Obsidian format when it is a vault
|
|
55
54
|
wcat sync # runs files sync, embeds stored mail, links people; run again after edits
|
|
56
55
|
wcat search notes "budget"
|
|
57
56
|
```
|
|
58
57
|
|
|
59
|
-
|
|
60
|
-
npm
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
pnpm keeps one copy of each package for all WireCat tools. npm works too:
|
|
59
|
+
`npm install -g @wirecat/wirecat @wirecat/files-cli`. A global install does not install the agent skill, and pnpm
|
|
60
|
+
does not run wcat's install script, so the second line does both. On Windows, open a new terminal if `wcat` is not
|
|
61
|
+
found.
|
|
63
62
|
|
|
64
63
|
That is all notes need. wcat runs `wcat-files sync` itself when the files CLI is installed. Then add more context:
|
|
65
64
|
|
|
@@ -73,8 +72,8 @@ That is all notes need. wcat runs `wcat-files sync` itself when the files CLI is
|
|
|
73
72
|
- **Your agent:** `wcat skill install --for all` puts wcat's skill where Claude Code, Codex and Gemini CLI read
|
|
74
73
|
it; `wcat skill show` prints it.
|
|
75
74
|
|
|
76
|
-
Or ask your agent: "Help me install wcat with `
|
|
77
|
-
`wcat skill install --for all`, read `wcat --help`, then help me connect a notes folder I choose with the files CLI."
|
|
75
|
+
Or ask your agent: "Help me install wcat with `pnpm add -g @wirecat/wirecat @wirecat/files-cli` and
|
|
76
|
+
`wcat-wirecat skill install --for all`, read `wcat --help`, then help me connect a notes folder I choose with the files CLI."
|
|
78
77
|
|
|
79
78
|
More: [installation](https://github.com/WireCatLabs/wirecat/blob/main/docs/installation.md) ·
|
|
80
79
|
[install wcat on wirecat.dev](https://wirecat.dev/en/docs/wcat/installation)
|
|
@@ -180,7 +179,7 @@ More: [technical docs](#technical-docs) · [wcat on wirecat.dev](https://wirecat
|
|
|
180
179
|
|
|
181
180
|
Notes and documents belong to the [files](https://github.com/WireCatLabs/files-cli) CLI: `files folders add`, `files sync`, `files notes add` and the
|
|
182
181
|
rest. wcat reads what it stored: `wcat search notes`, `wcat context`, `wcat tags` and `wcat tasks` see those notes,
|
|
183
|
-
and `wcat show note:<id>`
|
|
182
|
+
and `wcat show note:<id>` gives a note's text, the first 2000 characters unless `--max-chars` asks for more. `wcat sync` runs `wcat-files sync`
|
|
184
183
|
when the files CLI is on PATH.
|
|
185
184
|
|
|
186
185
|
More: [notes on wirecat.dev](https://wirecat.dev/en/docs/files)
|
|
@@ -335,7 +334,7 @@ More: [search](https://github.com/WireCatLabs/wirecat/blob/main/docs/search.md)
|
|
|
335
334
|
|
|
336
335
|
- **Searched by words only:** the local meaning model is not downloaded. Install it through tg, max or wa;
|
|
337
336
|
they share the model folder. Without it, word search still works ([search by meaning](docs/search.md)).
|
|
338
|
-
- **`wcat sync --only notes` fails with `files.not-installed`:** install the files CLI, `
|
|
337
|
+
- **`wcat sync --only notes` fails with `files.not-installed`:** install the files CLI, `pnpm add -g @wirecat/files-cli`.
|
|
339
338
|
- **A name is refused:** two people share it; use one of the ids it lists.
|
|
340
339
|
- **`wcat answers create` asks for a scope:** add `--all`, or `--source`.
|
|
341
340
|
- **An empty search:** the store holds nothing that matches — not proof that it never happened. Try the
|
package/contracts/wirecat.json
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"path": [
|
|
23
23
|
"show"
|
|
24
24
|
],
|
|
25
|
-
"summary": "what any reference names, and the command that opens it",
|
|
25
|
+
"summary": "what any reference names, and the command that opens it; a note or document with its text",
|
|
26
26
|
"effects": {
|
|
27
27
|
"remote": "none",
|
|
28
28
|
"local": "read"
|
package/dist/answer.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CliError, createRenderer } from "@wirecat/cli-base";
|
|
2
2
|
import { COMPACT_FLAG } from "@wirecat/cli-base/standards";
|
|
3
|
-
import { compactText, currentRun, itemOf, listOf, openStore, renderAnswer, rootOf, sealed, } from "@wirecat/cli-core";
|
|
3
|
+
import { compactText, currentRun, itemOf, listOf, openStore, renderAnswer, resolveOutput, rootOf, sealed, } from "@wirecat/cli-core";
|
|
4
4
|
import { STORE_CLIENT } from "./app.js";
|
|
5
5
|
import { decisionPolicy } from "./config.js";
|
|
6
6
|
import { snakeKeys } from "./output.js";
|
|
7
7
|
import { rowOf, sectionRowOf } from "./rows.js";
|
|
8
8
|
import { crmNotes } from "./store/crm-viewer.js";
|
|
9
|
+
import { terminalOf } from "./terminal.js";
|
|
9
10
|
export const itemAnswer = (value, extra) => itemOf(snakeKeys(value), extra);
|
|
10
11
|
/**
|
|
11
12
|
* A list. One that takes neither `--cursor` nor `--page` shows more only by a higher `--limit`, so it names no
|
|
@@ -60,6 +61,13 @@ const compactView = (command, full) => (kept) => {
|
|
|
60
61
|
...(full ? { textChars: 0 } : {}),
|
|
61
62
|
}, sectionRowOf);
|
|
62
63
|
};
|
|
64
|
+
/**
|
|
65
|
+
* cli-core's rule for every CLI: `--json`, or a pipe, gets JSON; a person at a terminal gets text. wcat's terminal is
|
|
66
|
+
* the one `createProgram` was handed, so a test stands for either.
|
|
67
|
+
*/
|
|
68
|
+
export const formatOf = (command, json, streams) => resolveOutput({ json: json === true, tty: terminalOf(command).present, streams }).format;
|
|
69
|
+
/** A person reads this run's answer as text, so notes about the search may go to stderr beside it. */
|
|
70
|
+
export const readsText = (command, json, streams) => command.optsWithGlobals().compact !== true && formatOf(command, json, streams) === "pretty";
|
|
63
71
|
/** The answer is judged by the command that ran — whether it may be partial — so the root remembers it. */
|
|
64
72
|
export const trackAnswers = (program) => {
|
|
65
73
|
currentRun();
|
|
@@ -73,20 +81,20 @@ export const trackAnswers = (program) => {
|
|
|
73
81
|
});
|
|
74
82
|
};
|
|
75
83
|
/**
|
|
76
|
-
* Prints answers through cli-core's renderer: the whole envelope for `--json
|
|
77
|
-
* otherwise `text`, or plain lines where a command has no text view.
|
|
84
|
+
* Prints answers through cli-core's renderer: the whole envelope for `--json` or a pipe, one line per item for
|
|
85
|
+
* `--compact`, otherwise `text`, or plain lines where a command has no text view.
|
|
78
86
|
*/
|
|
79
87
|
export const answers = (program, streams, env) => {
|
|
80
88
|
const print = (json, body, text, asked) => {
|
|
81
|
-
const format = json ? "json" : "pretty";
|
|
82
89
|
const root = rootOf(program);
|
|
83
90
|
const leaf = running.get(root) ?? root;
|
|
84
91
|
const { compact = asked, full } = leaf.optsWithGlobals();
|
|
92
|
+
// In compact form the next steps are # lines on stdout; printing them again on stderr would say them twice.
|
|
93
|
+
const drawn = compact === true && !json;
|
|
94
|
+
const format = drawn ? "pretty" : formatOf(leaf, json, streams);
|
|
85
95
|
const renderer = createRenderer({ format, color: false, streams });
|
|
86
96
|
for (const note of noted.get(body) ?? [])
|
|
87
97
|
renderer.note(note);
|
|
88
|
-
// In compact form the next steps are # lines on stdout; printing them again on stderr would say them twice.
|
|
89
|
-
const drawn = compact === true && !json;
|
|
90
98
|
renderAnswer(leaf, { renderer: drawn ? { ...renderer, note: () => undefined } : renderer, format, streams }, body, drawn ? compactView(leaf, full === true) : () => `${text ?? plainText(body, leaf)}\n`);
|
|
91
99
|
};
|
|
92
100
|
return {
|
package/dist/bin/wcat-wirecat.js
CHANGED
|
@@ -9,7 +9,7 @@ if (
|
|
|
9
9
|
(words[0] === "--version" || words[0] === "-V") &&
|
|
10
10
|
!Object.keys(process.env).some((key) => key.endsWith("_TEST_ARGV_LOG"))
|
|
11
11
|
) {
|
|
12
|
-
process.stdout.write("
|
|
12
|
+
process.stdout.write("2.0.0\n")
|
|
13
13
|
} else {
|
|
14
14
|
// Before the bundle compiles: the bundle's own call comes after its chunks.
|
|
15
15
|
module.enableCompileCache()
|
|
@@ -26,7 +26,7 @@ if (
|
|
|
26
26
|
: next(specifier, context),
|
|
27
27
|
})
|
|
28
28
|
}
|
|
29
|
-
const chunks = ["../bundle/auto-
|
|
29
|
+
const chunks = ["../bundle/auto-FUO5KVI4.js","../bundle/entry-5EWNCB5P.js","../bundle/failure-QMAD62PD.js","../bundle/from-memo-6657KRIY.js","../bundle/program-TSDADT6D.js","../bundle/server-3YTTY2HK.js","../bundle/update-JVDUBORQ.js"]
|
|
30
30
|
const preload = () =>
|
|
31
31
|
Promise.allSettled([
|
|
32
32
|
...chunks.map((chunk) => import(chunk)),
|
|
@@ -17,12 +17,13 @@ import {
|
|
|
17
17
|
serviceUnit,
|
|
18
18
|
timerUnit,
|
|
19
19
|
unitDir
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WV25HYY7.js";
|
|
21
21
|
import "./chunk-7O7XM37N.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-5WFO6JWX.js";
|
|
23
|
+
import "./chunk-FJI2GGCP.js";
|
|
24
|
+
import "./chunk-EXGRACGB.js";
|
|
25
|
+
import "./chunk-E6ATHTD4.js";
|
|
26
|
+
import "./chunk-GEOUDXRA.js";
|
|
26
27
|
export {
|
|
27
28
|
DEFAULT_EVERY,
|
|
28
29
|
PLACE_VARIABLES,
|
|
@@ -2,16 +2,19 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
decisionPolicy
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FJI2GGCP.js";
|
|
6
|
+
import {
|
|
7
|
+
terminalOf
|
|
8
|
+
} from "./chunk-E6ATHTD4.js";
|
|
6
9
|
import {
|
|
7
10
|
STORE_CLIENT,
|
|
8
11
|
__name
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GEOUDXRA.js";
|
|
10
13
|
|
|
11
14
|
// dist/answer.js
|
|
12
15
|
import { CliError as CliError2, createRenderer } from "@wirecat/cli-base";
|
|
13
16
|
import { COMPACT_FLAG } from "@wirecat/cli-base/standards";
|
|
14
|
-
import { compactText, currentRun, itemOf, listOf, openStore, renderAnswer, rootOf, sealed } from "@wirecat/cli-core";
|
|
17
|
+
import { compactText, currentRun, itemOf, listOf, openStore, renderAnswer, resolveOutput as resolveOutput2, rootOf, sealed } from "@wirecat/cli-core";
|
|
15
18
|
|
|
16
19
|
// dist/output.js
|
|
17
20
|
import { resolveOutput, snakeKeysKeeping } from "@wirecat/cli-core";
|
|
@@ -359,6 +362,8 @@ var compactView = /* @__PURE__ */ __name((command, full) => (kept) => {
|
|
|
359
362
|
...full ? { textChars: 0 } : {}
|
|
360
363
|
}, sectionRowOf);
|
|
361
364
|
}, "compactView");
|
|
365
|
+
var formatOf = /* @__PURE__ */ __name((command, json, streams) => resolveOutput2({ json: json === true, tty: terminalOf(command).present, streams }).format, "formatOf");
|
|
366
|
+
var readsText = /* @__PURE__ */ __name((command, json, streams) => command.optsWithGlobals().compact !== true && formatOf(command, json, streams) === "pretty", "readsText");
|
|
362
367
|
var trackAnswers = /* @__PURE__ */ __name((program) => {
|
|
363
368
|
currentRun();
|
|
364
369
|
program.option(COMPACT_FLAG, "one line per item for an agent: reference first, text last, paging and next steps as # lines").hook("preAction", (root, leaf) => {
|
|
@@ -370,14 +375,14 @@ var trackAnswers = /* @__PURE__ */ __name((program) => {
|
|
|
370
375
|
}, "trackAnswers");
|
|
371
376
|
var answers = /* @__PURE__ */ __name((program, streams, env) => {
|
|
372
377
|
const print = /* @__PURE__ */ __name((json, body, text, asked) => {
|
|
373
|
-
const format = json ? "json" : "pretty";
|
|
374
378
|
const root = rootOf(program);
|
|
375
379
|
const leaf = running.get(root) ?? root;
|
|
376
380
|
const { compact = asked, full } = leaf.optsWithGlobals();
|
|
381
|
+
const drawn = compact === true && !json;
|
|
382
|
+
const format = drawn ? "pretty" : formatOf(leaf, json, streams);
|
|
377
383
|
const renderer = createRenderer({ format, color: false, streams });
|
|
378
384
|
for (const note of noted.get(body) ?? [])
|
|
379
385
|
renderer.note(note);
|
|
380
|
-
const drawn = compact === true && !json;
|
|
381
386
|
renderAnswer(leaf, { renderer: drawn ? { ...renderer, note: /* @__PURE__ */ __name(() => void 0, "note") } : renderer, format, streams }, body, drawn ? compactView(leaf, full === true) : () => `${text ?? plainText(body, leaf)}
|
|
382
387
|
`);
|
|
383
388
|
}, "print");
|
|
@@ -411,6 +416,7 @@ export {
|
|
|
411
416
|
shortenedBy,
|
|
412
417
|
timezone,
|
|
413
418
|
plainText,
|
|
419
|
+
readsText,
|
|
414
420
|
trackAnswers,
|
|
415
421
|
answers
|
|
416
422
|
};
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
__name
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GEOUDXRA.js";
|
|
6
6
|
|
|
7
7
|
// dist/terminal.js
|
|
8
8
|
var MACHINE_FLAGS = /* @__PURE__ */ new Set(["--json", "--jsonl"]);
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
__name
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GEOUDXRA.js";
|
|
6
6
|
|
|
7
7
|
// node_modules/.pnpm/valibot@1.5.0_typescript@7.0.2/node_modules/valibot/dist/index.mjs
|
|
8
8
|
var store$4;
|
|
@@ -136,6 +136,16 @@ function check(requirement, message$1) {
|
|
|
136
136
|
}
|
|
137
137
|
__name(check, "check");
|
|
138
138
|
// @__NO_SIDE_EFFECTS__
|
|
139
|
+
function description(description_) {
|
|
140
|
+
return {
|
|
141
|
+
kind: "metadata",
|
|
142
|
+
type: "description",
|
|
143
|
+
reference: description,
|
|
144
|
+
description: description_
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
__name(description, "description");
|
|
148
|
+
// @__NO_SIDE_EFFECTS__
|
|
139
149
|
function integer(message$1) {
|
|
140
150
|
return {
|
|
141
151
|
kind: "validation",
|
|
@@ -782,6 +792,7 @@ __name(safeParse, "safeParse");
|
|
|
782
792
|
export {
|
|
783
793
|
ValiError,
|
|
784
794
|
check,
|
|
795
|
+
description,
|
|
785
796
|
integer,
|
|
786
797
|
maxLength,
|
|
787
798
|
minLength,
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
union,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-EXGRACGB.js";
|
|
23
23
|
import {
|
|
24
24
|
__name
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-GEOUDXRA.js";
|
|
26
26
|
|
|
27
27
|
// dist/config.js
|
|
28
28
|
import { CliError as CliError2, configFilePath, resolvePaths, saveConfigFile } from "@wirecat/cli-base";
|
|
@@ -183,7 +183,7 @@ var REASONS = defineReasons([
|
|
|
183
183
|
{
|
|
184
184
|
reason: "folder.unbound",
|
|
185
185
|
code: "configuration_error",
|
|
186
|
-
message: "the notes folder {path} has no folder id;
|
|
186
|
+
message: "the notes folder {path} has no folder id; files folders add or files folders update gives it one",
|
|
187
187
|
details: ["path"]
|
|
188
188
|
},
|
|
189
189
|
{ reason: "folder.not-found", code: "not_found", message: "the store has no such folder of notes", details: [] },
|
|
@@ -202,7 +202,7 @@ var REASONS = defineReasons([
|
|
|
202
202
|
{
|
|
203
203
|
reason: "notes.folder-missing",
|
|
204
204
|
code: "not_found",
|
|
205
|
-
message: "the notes folder {path} is missing \u2014 connect its disk; if it moved,
|
|
205
|
+
message: "the notes folder {path} is missing \u2014 connect its disk; if it moved, files folders update <id> <new path>",
|
|
206
206
|
details: ["path"]
|
|
207
207
|
},
|
|
208
208
|
{
|
|
@@ -294,7 +294,7 @@ var REASONS = defineReasons([
|
|
|
294
294
|
{
|
|
295
295
|
reason: "reader.none-chosen",
|
|
296
296
|
code: "configuration_error",
|
|
297
|
-
message: "no reader is chosen for sources; the owner picks one with
|
|
297
|
+
message: "no reader is chosen for sources; the owner picks one with files sources readers set <reader>",
|
|
298
298
|
details: ["readers"]
|
|
299
299
|
},
|
|
300
300
|
{
|
|
@@ -312,7 +312,7 @@ var REASONS = defineReasons([
|
|
|
312
312
|
{
|
|
313
313
|
reason: "reader.unavailable",
|
|
314
314
|
code: "configuration_error",
|
|
315
|
-
message: "the chosen reader cannot read now;
|
|
315
|
+
message: "the chosen reader cannot read now; files sources readers list says why and what fixes it",
|
|
316
316
|
details: []
|
|
317
317
|
},
|
|
318
318
|
{
|
|
@@ -324,7 +324,7 @@ var REASONS = defineReasons([
|
|
|
324
324
|
{
|
|
325
325
|
reason: "reader.model-missing",
|
|
326
326
|
code: "configuration_error",
|
|
327
|
-
message: "the reader needs a model the owner names;
|
|
327
|
+
message: "the reader needs a model the owner names; files sources readers set <reader> --model <model>",
|
|
328
328
|
details: []
|
|
329
329
|
},
|
|
330
330
|
{
|
|
@@ -372,7 +372,7 @@ var REASONS = defineReasons([
|
|
|
372
372
|
]);
|
|
373
373
|
|
|
374
374
|
// dist/version.js
|
|
375
|
-
var VERSION = "
|
|
375
|
+
var VERSION = "2.0.0";
|
|
376
376
|
|
|
377
377
|
// dist/app.js
|
|
378
378
|
var APP = {
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
inspectConfig,
|
|
5
5
|
loadConfig,
|
|
6
6
|
memoPermissionKeys
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FJI2GGCP.js";
|
|
8
8
|
import {
|
|
9
9
|
APP,
|
|
10
10
|
__name
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-GEOUDXRA.js";
|
|
12
12
|
|
|
13
13
|
// dist/read-only.js
|
|
14
14
|
import { metaOf } from "@wirecat/cli-base/commands";
|
|
@@ -74,7 +74,7 @@ var memoLevels = /* @__PURE__ */ __name((env, overrides = [], defaults = { "mcp.
|
|
|
74
74
|
for (const entry of overrides) {
|
|
75
75
|
const match = /^([a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*)=(deny|readonly|ask|allow)$/.exec(entry);
|
|
76
76
|
if (!match)
|
|
77
|
-
throw new CliError("validation_error", "--permission takes a command path and level, e.g.
|
|
77
|
+
throw new CliError("validation_error", "--permission takes a command path and level, e.g. memories.add=deny");
|
|
78
78
|
changed[match[1]] = match[2];
|
|
79
79
|
}
|
|
80
80
|
const levels = layerPermissions([
|
|
@@ -2,12 +2,12 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FJI2GGCP.js";
|
|
6
6
|
import {
|
|
7
7
|
APP,
|
|
8
8
|
VERSION,
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-GEOUDXRA.js";
|
|
11
11
|
|
|
12
12
|
// dist/update.js
|
|
13
13
|
import { join } from "node:path";
|
|
@@ -2,15 +2,15 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
ValiError
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EXGRACGB.js";
|
|
6
6
|
import {
|
|
7
7
|
interactiveOf,
|
|
8
8
|
optionsOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E6ATHTD4.js";
|
|
10
10
|
import {
|
|
11
11
|
APP,
|
|
12
12
|
__name
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GEOUDXRA.js";
|
|
14
14
|
|
|
15
15
|
// dist/failure.js
|
|
16
16
|
import { CliError, errorObjectOf, errorRecordOf, exitCodeOfError, mcpErrorResult, renderError } from "@wirecat/cli-base";
|
|
@@ -3,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
answers,
|
|
5
5
|
itemAnswer
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5WFO6JWX.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig,
|
|
9
9
|
updateConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-FJI2GGCP.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-GEOUDXRA.js";
|
|
14
14
|
|
|
15
15
|
// dist/run/auto.js
|
|
16
16
|
import { execFile } from "node:child_process";
|
|
@@ -2,11 +2,11 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
interactiveOf
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-E6ATHTD4.js";
|
|
6
6
|
import {
|
|
7
7
|
APP,
|
|
8
8
|
__name
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GEOUDXRA.js";
|
|
10
10
|
|
|
11
11
|
// dist/run/entry.js
|
|
12
12
|
import { errorObjectOf, exitCodeOfError, processStreams, renderError } from "@wirecat/cli-base";
|
|
@@ -20,9 +20,9 @@ var memoEntry = /* @__PURE__ */ __name((io) => {
|
|
|
20
20
|
reasons: APP.errors.reasons,
|
|
21
21
|
...io === void 0 ? {} : { io },
|
|
22
22
|
run: /* @__PURE__ */ __name(async (entry) => {
|
|
23
|
-
failure = await import("./failure-
|
|
24
|
-
const { createProgram, liftGroup, refuseJoinedPath } = await import("./program-
|
|
25
|
-
const { autoNotice, followInstall } = await import("./auto-
|
|
23
|
+
failure = await import("./failure-QMAD62PD.js");
|
|
24
|
+
const { createProgram, liftGroup, refuseJoinedPath } = await import("./program-TSDADT6D.js");
|
|
25
|
+
const { autoNotice, followInstall } = await import("./auto-FUO5KVI4.js");
|
|
26
26
|
const lifting = createProgram({ signal: entry.signal });
|
|
27
27
|
programs.set(entry, lifting);
|
|
28
28
|
const { group, rest: args } = await liftGroup(lifting, entry.args, entry.env);
|
|
@@ -33,7 +33,7 @@ var memoEntry = /* @__PURE__ */ __name((io) => {
|
|
|
33
33
|
if (notice2)
|
|
34
34
|
processStreams.diagnostic(notice2);
|
|
35
35
|
}
|
|
36
|
-
const { updateNotice } = await import("./update-
|
|
36
|
+
const { updateNotice } = await import("./update-JVDUBORQ.js");
|
|
37
37
|
const notice = updateNotice(args);
|
|
38
38
|
program.hook("preAction", (_root, command) => entry.atStart(command));
|
|
39
39
|
failure.throwParseFailures(program);
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
recognisable,
|
|
7
7
|
reportFailure,
|
|
8
8
|
throwParseFailures
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-VU2Y645U.js";
|
|
10
|
+
import "./chunk-EXGRACGB.js";
|
|
11
|
+
import "./chunk-E6ATHTD4.js";
|
|
12
|
+
import "./chunk-GEOUDXRA.js";
|
|
13
13
|
export {
|
|
14
14
|
errorObject,
|
|
15
15
|
mcpFailure,
|
|
@@ -2,20 +2,21 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
replaceMemoSkill
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PFPRK73R.js";
|
|
6
6
|
import {
|
|
7
7
|
applyAuto,
|
|
8
8
|
autoState,
|
|
9
9
|
unitDir
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WV25HYY7.js";
|
|
11
11
|
import "./chunk-7O7XM37N.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-5WFO6JWX.js";
|
|
13
|
+
import "./chunk-FJI2GGCP.js";
|
|
14
|
+
import "./chunk-EXGRACGB.js";
|
|
15
|
+
import "./chunk-E6ATHTD4.js";
|
|
15
16
|
import {
|
|
16
17
|
APP,
|
|
17
18
|
__name
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-GEOUDXRA.js";
|
|
19
20
|
|
|
20
21
|
// dist/migrate/from-memo.js
|
|
21
22
|
import { closeSync, cpSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, renameSync, rmdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|