@wirecat/wirecat 1.0.0 → 1.1.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 +9 -10
- package/dist/bin/wcat-wirecat.js +2 -2
- package/dist/bundle/{auto-YETGUQ2J.js → auto-O24ISPOI.js} +5 -5
- package/dist/bundle/{chunk-3ME37WWB.js → chunk-2A3YPENI.js} +1 -1
- package/dist/bundle/{chunk-WMPDRWVF.js → chunk-6BDIFKF5.js} +3 -3
- package/dist/bundle/{chunk-GGRL6DTE.js → chunk-AYHZY24E.js} +3 -3
- package/dist/bundle/{chunk-FOWR5KJS.js → chunk-CKBTMZUX.js} +3 -3
- package/dist/bundle/{chunk-KPJVVFQF.js → chunk-FGXUH3XL.js} +2 -2
- package/dist/bundle/{chunk-X5OK73GU.js → chunk-I5JQBRRC.js} +1 -1
- package/dist/bundle/{chunk-ZC4PRE6C.js → chunk-RKVAWMZT.js} +1 -1
- package/dist/bundle/{chunk-4WI3FO7T.js → chunk-SCDNOUUR.js} +6 -6
- package/dist/bundle/{chunk-KNFSW562.js → chunk-T7TG4JKR.js} +2 -2
- package/dist/bundle/{chunk-DWQQRBQV.js → chunk-XBUCXQKT.js} +2 -2
- package/dist/bundle/{entry-S4DSYEAY.js → entry-EW5A7FYV.js} +6 -6
- package/dist/bundle/{failure-FALOD7QW.js → failure-HMELJ3K5.js} +4 -4
- package/dist/bundle/{from-memo-XVOLSUOM.js → from-memo-F7NTUXAR.js} +6 -6
- package/dist/bundle/{program-XSZSINBU.js → program-7XWGFN4H.js} +15 -15
- package/dist/bundle/{server-GQ4NZUDL.js → server-T7RVBNRW.js} +7 -7
- package/dist/bundle/{update-2EH5KHTV.js → update-JZDS7B6L.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/mcp/permissions.js +1 -1
- package/dist/reasons.js +5 -5
- package/dist/store/source-list.js +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/skills/wcat/topics/mcp.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)
|
|
@@ -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/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("1.
|
|
12
|
+
process.stdout.write("1.1.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-O24ISPOI.js","../bundle/entry-EW5A7FYV.js","../bundle/failure-HMELJ3K5.js","../bundle/from-memo-F7NTUXAR.js","../bundle/program-7XWGFN4H.js","../bundle/server-T7RVBNRW.js","../bundle/update-JZDS7B6L.js"]
|
|
30
30
|
const preload = () =>
|
|
31
31
|
Promise.allSettled([
|
|
32
32
|
...chunks.map((chunk) => import(chunk)),
|
|
@@ -17,12 +17,12 @@ import {
|
|
|
17
17
|
serviceUnit,
|
|
18
18
|
timerUnit,
|
|
19
19
|
unitDir
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6BDIFKF5.js";
|
|
21
21
|
import "./chunk-7O7XM37N.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-FGXUH3XL.js";
|
|
23
|
+
import "./chunk-T7TG4JKR.js";
|
|
24
|
+
import "./chunk-I5JQBRRC.js";
|
|
25
|
+
import "./chunk-SCDNOUUR.js";
|
|
26
26
|
export {
|
|
27
27
|
DEFAULT_EVERY,
|
|
28
28
|
PLACE_VARIABLES,
|
|
@@ -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-SCDNOUUR.js";
|
|
6
6
|
|
|
7
7
|
// dist/terminal.js
|
|
8
8
|
var MACHINE_FLAGS = /* @__PURE__ */ new Set(["--json", "--jsonl"]);
|
|
@@ -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-FGXUH3XL.js";
|
|
7
7
|
import {
|
|
8
8
|
loadConfig,
|
|
9
9
|
updateConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-T7TG4JKR.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SCDNOUUR.js";
|
|
14
14
|
|
|
15
15
|
// dist/run/auto.js
|
|
16
16
|
import { execFile } from "node:child_process";
|
|
@@ -4,11 +4,11 @@ import {
|
|
|
4
4
|
inspectConfig,
|
|
5
5
|
loadConfig,
|
|
6
6
|
memoPermissionKeys
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-T7TG4JKR.js";
|
|
8
8
|
import {
|
|
9
9
|
APP,
|
|
10
10
|
__name
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-SCDNOUUR.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,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-I5JQBRRC.js";
|
|
6
6
|
import {
|
|
7
7
|
interactiveOf,
|
|
8
8
|
optionsOf
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2A3YPENI.js";
|
|
10
10
|
import {
|
|
11
11
|
APP,
|
|
12
12
|
__name
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-SCDNOUUR.js";
|
|
14
14
|
|
|
15
15
|
// dist/failure.js
|
|
16
16
|
import { CliError, errorObjectOf, errorRecordOf, exitCodeOfError, mcpErrorResult, renderError } from "@wirecat/cli-base";
|
|
@@ -2,11 +2,11 @@ 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-T7TG4JKR.js";
|
|
6
6
|
import {
|
|
7
7
|
STORE_CLIENT,
|
|
8
8
|
__name
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SCDNOUUR.js";
|
|
10
10
|
|
|
11
11
|
// dist/answer.js
|
|
12
12
|
import { CliError as CliError2, createRenderer } from "@wirecat/cli-base";
|
|
@@ -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-SCDNOUUR.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;
|
|
@@ -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 = "1.
|
|
375
|
+
var VERSION = "1.1.0";
|
|
376
376
|
|
|
377
377
|
// dist/app.js
|
|
378
378
|
var APP = {
|
|
@@ -19,10 +19,10 @@ import {
|
|
|
19
19
|
string,
|
|
20
20
|
union,
|
|
21
21
|
unknown
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-I5JQBRRC.js";
|
|
23
23
|
import {
|
|
24
24
|
__name
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-SCDNOUUR.js";
|
|
26
26
|
|
|
27
27
|
// dist/config.js
|
|
28
28
|
import { CliError as CliError2, configFilePath, resolvePaths, saveConfigFile } from "@wirecat/cli-base";
|
|
@@ -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-T7TG4JKR.js";
|
|
6
6
|
import {
|
|
7
7
|
APP,
|
|
8
8
|
VERSION,
|
|
9
9
|
__name
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SCDNOUUR.js";
|
|
11
11
|
|
|
12
12
|
// dist/update.js
|
|
13
13
|
import { join } from "node:path";
|
|
@@ -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-2A3YPENI.js";
|
|
6
6
|
import {
|
|
7
7
|
APP,
|
|
8
8
|
__name
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-SCDNOUUR.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-HMELJ3K5.js");
|
|
24
|
+
const { createProgram, liftGroup, refuseJoinedPath } = await import("./program-7XWGFN4H.js");
|
|
25
|
+
const { autoNotice, followInstall } = await import("./auto-O24ISPOI.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-JZDS7B6L.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-CKBTMZUX.js";
|
|
10
|
+
import "./chunk-I5JQBRRC.js";
|
|
11
|
+
import "./chunk-2A3YPENI.js";
|
|
12
|
+
import "./chunk-SCDNOUUR.js";
|
|
13
13
|
export {
|
|
14
14
|
errorObject,
|
|
15
15
|
mcpFailure,
|
|
@@ -2,20 +2,20 @@ 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-RKVAWMZT.js";
|
|
6
6
|
import {
|
|
7
7
|
applyAuto,
|
|
8
8
|
autoState,
|
|
9
9
|
unitDir
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6BDIFKF5.js";
|
|
11
11
|
import "./chunk-7O7XM37N.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-FGXUH3XL.js";
|
|
13
|
+
import "./chunk-T7TG4JKR.js";
|
|
14
|
+
import "./chunk-I5JQBRRC.js";
|
|
15
15
|
import {
|
|
16
16
|
APP,
|
|
17
17
|
__name
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-SCDNOUUR.js";
|
|
19
19
|
|
|
20
20
|
// dist/migrate/from-memo.js
|
|
21
21
|
import { closeSync, cpSync, existsSync, mkdirSync, openSync, readdirSync, readFileSync, renameSync, rmdirSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
@@ -2,7 +2,7 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
removeMemoSkills
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RKVAWMZT.js";
|
|
6
6
|
import {
|
|
7
7
|
UNIT,
|
|
8
8
|
applyAuto,
|
|
@@ -10,12 +10,12 @@ import {
|
|
|
10
10
|
autoState,
|
|
11
11
|
lastAutoRun,
|
|
12
12
|
recordAutoRun
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6BDIFKF5.js";
|
|
14
14
|
import {
|
|
15
15
|
PACKAGE,
|
|
16
16
|
installer,
|
|
17
17
|
upgradeCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-XBUCXQKT.js";
|
|
19
19
|
import "./chunk-7O7XM37N.js";
|
|
20
20
|
import {
|
|
21
21
|
mcpOwnerAllowed,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
readOnly,
|
|
24
24
|
readOnlyAvailability,
|
|
25
25
|
refuseWritesUnderLock
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AYHZY24E.js";
|
|
27
27
|
import {
|
|
28
28
|
PROPOSAL_ROW,
|
|
29
29
|
answers,
|
|
@@ -47,11 +47,11 @@ import {
|
|
|
47
47
|
trackAnswers,
|
|
48
48
|
wholeList,
|
|
49
49
|
withStore
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-FGXUH3XL.js";
|
|
51
51
|
import {
|
|
52
52
|
errorObject,
|
|
53
53
|
recognisable
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-CKBTMZUX.js";
|
|
55
55
|
import {
|
|
56
56
|
WCAT_SETTINGS,
|
|
57
57
|
agentMergesApply,
|
|
@@ -66,7 +66,7 @@ import {
|
|
|
66
66
|
rawConfig,
|
|
67
67
|
scheduleLimits,
|
|
68
68
|
unsetConfigKey
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-T7TG4JKR.js";
|
|
70
70
|
import {
|
|
71
71
|
array,
|
|
72
72
|
boolean,
|
|
@@ -80,18 +80,18 @@ import {
|
|
|
80
80
|
string,
|
|
81
81
|
union,
|
|
82
82
|
unknown
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-I5JQBRRC.js";
|
|
84
84
|
import {
|
|
85
85
|
provideTerminal,
|
|
86
86
|
terminalOf
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-2A3YPENI.js";
|
|
88
88
|
import {
|
|
89
89
|
APP,
|
|
90
90
|
REASONS,
|
|
91
91
|
STORE_CLIENT,
|
|
92
92
|
VERSION,
|
|
93
93
|
__name
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-SCDNOUUR.js";
|
|
95
95
|
|
|
96
96
|
// dist/program.js
|
|
97
97
|
import { fileURLToPath } from "node:url";
|
|
@@ -396,7 +396,7 @@ var storedKeysOf = /* @__PURE__ */ __name(async (store, env, value) => {
|
|
|
396
396
|
}
|
|
397
397
|
return keys;
|
|
398
398
|
}, "storedKeysOf");
|
|
399
|
-
var noStoredAccount = /* @__PURE__ */ __name((value) => new CliError2("not_found", `${value} names no stored account; notes written with
|
|
399
|
+
var noStoredAccount = /* @__PURE__ */ __name((value) => new CliError2("not_found", `${value} names no stored account; notes written with files notes add belong to none \u2014 name a notes folder (notes:<id>), a mailbox or a messenger account`), "noStoredAccount");
|
|
400
400
|
var oneAccountOf = /* @__PURE__ */ __name(async (store, env, value, option = "--source") => {
|
|
401
401
|
if (value === void 0)
|
|
402
402
|
throw await unnamed(store, env, option);
|
|
@@ -2144,7 +2144,7 @@ var configCommand = /* @__PURE__ */ __name((program, streams, env) => {
|
|
|
2144
2144
|
const added = migrateConfig(env);
|
|
2145
2145
|
print(options.json, itemAnswer({ path: configPath(env), added }), added.length > 0 ? `added ${added.join(", ")} to ${configPath(env)}` : `${configPath(env)} already has every setting`);
|
|
2146
2146
|
});
|
|
2147
|
-
annotate5(config.command("unset"), { effects: LOCAL_WRITE3 }).description("remove one setting from the config file, even one wcat does not know").argument("<key>", "the setting's dotted path, as wcat doctor names it, e.g. permissions.
|
|
2147
|
+
annotate5(config.command("unset"), { effects: LOCAL_WRITE3 }).description("remove one setting from the config file, even one wcat does not know").argument("<key>", "the setting's dotted path, as wcat doctor names it, e.g. permissions.memories.add").option("--json", "print JSON; --json=id,title keeps only those fields").addHelpText("after", "\nRuns on a file with problems, so the fix wcat doctor prints works; a file that is not valid JSON is edited by hand.").action((key, options) => {
|
|
2148
2148
|
const removed = unsetConfigKey(key, env);
|
|
2149
2149
|
print(options.json, itemAnswer({ key, removed, path: configPath(env) }), removed ? `removed ${key} from ${configPath(env)}` : `${key} is not in ${configPath(env)}`);
|
|
2150
2150
|
});
|
|
@@ -4010,7 +4010,7 @@ var withNotesAndTasks = /* @__PURE__ */ __name(async (store, _env, { messages, e
|
|
|
4010
4010
|
if ((await store.notes.folders()).length + (await store.notes.documentsAccounts()).length === 0)
|
|
4011
4011
|
notRead.push({
|
|
4012
4012
|
source: "notes",
|
|
4013
|
-
reason: "no folder of notes \u2014
|
|
4013
|
+
reason: "no folder of notes \u2014 files folders add <path>, then files sync"
|
|
4014
4014
|
});
|
|
4015
4015
|
if (!messages.person.identities.some((identity) => identity.provider === "email"))
|
|
4016
4016
|
notRead.push({
|
|
@@ -4130,7 +4130,7 @@ var contextText = /* @__PURE__ */ __name(({ history, messages, events, meetings:
|
|
|
4130
4130
|
...businessLines(business),
|
|
4131
4131
|
"",
|
|
4132
4132
|
"",
|
|
4133
|
-
...notes.about.length === 0 ? ["Note about them none \u2014
|
|
4133
|
+
...notes.about.length === 0 ? ["Note about them none \u2014 files notes links add <identity> <path>"] : ["Notes about them", ...notes.about.map(noteLine)],
|
|
4134
4134
|
...notes.linking.length === 0 ? [] : ["Notes linking them", ...notes.linking.map(noteLine)],
|
|
4135
4135
|
...notes.throughNotes.length === 0 ? [] : ["Notes linking a note about them", ...notes.throughNotes.map(noteLine)],
|
|
4136
4136
|
...notes.hasMore ? [" more \u2014 raise --limit"] : [],
|
|
@@ -10938,7 +10938,7 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
|
|
|
10938
10938
|
}).summary("serve wcat's commands to an AI agent").description("serve wcat commands over MCP on stdio or authenticated HTTP, limited by saved permissions").option("--permission <key=level>", "tighten one saved permission for this server; repeat for more keys", (value, previous = []) => [...previous, value]).option("--http", "serve on 127.0.0.1 behind an HTTPS tunnel with an owner access-code login").option("--port <port>", `local HTTP port (default ${DEFAULT_PORT}); requires --http`).option("--public-url <url>", "tunnel's HTTPS address without /mcp, or a path of it such as https://<name>.ts.net/memo; requires --http").action(async (options) => {
|
|
10939
10939
|
if (!options.http && (options.port !== void 0 || options.publicUrl !== void 0))
|
|
10940
10940
|
throw new CliError46("validation_error", "--port and --public-url require --http");
|
|
10941
|
-
const { createMemoServer } = await import("./server-
|
|
10941
|
+
const { createMemoServer } = await import("./server-T7RVBNRW.js");
|
|
10942
10942
|
const build = /* @__PURE__ */ __name(() => createMemoServer(env, createProgram2, options.permission), "build");
|
|
10943
10943
|
if (options.http) {
|
|
10944
10944
|
const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("@wirecat/cli-core/mcp");
|
|
@@ -5,30 +5,30 @@ import {
|
|
|
5
5
|
memoLevels,
|
|
6
6
|
readOnly,
|
|
7
7
|
refuseUnknownPermissions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-AYHZY24E.js";
|
|
9
9
|
import {
|
|
10
10
|
itemAnswer
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FGXUH3XL.js";
|
|
12
12
|
import {
|
|
13
13
|
errorObject,
|
|
14
14
|
mcpFailure,
|
|
15
15
|
throwParseFailures
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-CKBTMZUX.js";
|
|
17
17
|
import {
|
|
18
18
|
grantLevels
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-T7TG4JKR.js";
|
|
20
20
|
import {
|
|
21
21
|
object,
|
|
22
22
|
parse,
|
|
23
23
|
strictObject
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-I5JQBRRC.js";
|
|
25
|
+
import "./chunk-2A3YPENI.js";
|
|
26
26
|
import {
|
|
27
27
|
APP,
|
|
28
28
|
STORE_CLIENT,
|
|
29
29
|
VERSION,
|
|
30
30
|
__name
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-SCDNOUUR.js";
|
|
32
32
|
|
|
33
33
|
// dist/mcp/server.js
|
|
34
34
|
import { McpServer } from "@modelcontextprotocol/server";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
runUpdate,
|
|
8
8
|
updateNotice,
|
|
9
9
|
upgradeCommand
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XBUCXQKT.js";
|
|
11
11
|
import "./chunk-7O7XM37N.js";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-T7TG4JKR.js";
|
|
13
|
+
import "./chunk-I5JQBRRC.js";
|
|
14
|
+
import "./chunk-SCDNOUUR.js";
|
|
15
15
|
export {
|
|
16
16
|
PACKAGE,
|
|
17
17
|
installer,
|
|
@@ -4,7 +4,7 @@ const require = __bundleRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
APP,
|
|
6
6
|
__name
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-SCDNOUUR.js";
|
|
8
8
|
|
|
9
9
|
// dist/bin/wcat-wirecat.js
|
|
10
10
|
import { enableCompileCache } from "node:module";
|
|
@@ -69,7 +69,7 @@ if (wcat.code !== void 0) {
|
|
|
69
69
|
} else {
|
|
70
70
|
if (mayMigrate(process.env, process.platform, process.argv[1])) {
|
|
71
71
|
try {
|
|
72
|
-
const { migrateFromMemo } = await import("./from-memo-
|
|
72
|
+
const { migrateFromMemo } = await import("./from-memo-F7NTUXAR.js");
|
|
73
73
|
await migrateFromMemo({ env: process.env, warn: /* @__PURE__ */ __name((line) => process.stderr.write(`${line}
|
|
74
74
|
`), "warn") });
|
|
75
75
|
} catch (error) {
|
|
@@ -78,6 +78,6 @@ if (wcat.code !== void 0) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
const { startCli } = await import("@wirecat/cli-core/start");
|
|
81
|
-
const { memoEntry } = await import("./entry-
|
|
81
|
+
const { memoEntry } = await import("./entry-EW5A7FYV.js");
|
|
82
82
|
await startCli(memoEntry());
|
|
83
83
|
}
|
package/dist/config-command.js
CHANGED
|
@@ -28,7 +28,7 @@ export const configCommand = (program, streams, env) => {
|
|
|
28
28
|
});
|
|
29
29
|
annotate(config.command("unset"), { effects: LOCAL_WRITE })
|
|
30
30
|
.description("remove one setting from the config file, even one wcat does not know")
|
|
31
|
-
.argument("<key>", "the setting's dotted path, as wcat doctor names it, e.g. permissions.
|
|
31
|
+
.argument("<key>", "the setting's dotted path, as wcat doctor names it, e.g. permissions.memories.add")
|
|
32
32
|
.option("--json", "print JSON; --json=id,title keeps only those fields")
|
|
33
33
|
.addHelpText("after", "\nRuns on a file with problems, so the fix wcat doctor prints works; a file that is not valid JSON is edited by hand.")
|
|
34
34
|
.action((key, options) => {
|
package/dist/context/command.js
CHANGED
|
@@ -93,7 +93,7 @@ export const contextText = ({ history, messages, events, meetings, notes, notRea
|
|
|
93
93
|
"",
|
|
94
94
|
"",
|
|
95
95
|
...(notes.about.length === 0
|
|
96
|
-
? ["Note about them none —
|
|
96
|
+
? ["Note about them none — files notes links add <identity> <path>"]
|
|
97
97
|
: ["Notes about them", ...notes.about.map(noteLine)]),
|
|
98
98
|
...(notes.linking.length === 0 ? [] : ["Notes linking them", ...notes.linking.map(noteLine)]),
|
|
99
99
|
...(notes.throughNotes.length === 0
|
package/dist/context/context.js
CHANGED
|
@@ -132,7 +132,7 @@ const withNotesAndTasks = async (store, _env, { messages, events, meetings, busi
|
|
|
132
132
|
if ((await store.notes.folders()).length + (await store.notes.documentsAccounts()).length === 0)
|
|
133
133
|
notRead.push({
|
|
134
134
|
source: "notes",
|
|
135
|
-
reason: "no folder of notes —
|
|
135
|
+
reason: "no folder of notes — files folders add <path>, then files sync",
|
|
136
136
|
});
|
|
137
137
|
if (!messages.person.identities.some((identity) => identity.provider === "email"))
|
|
138
138
|
notRead.push({
|
package/dist/mcp/permissions.js
CHANGED
|
@@ -22,7 +22,7 @@ export const memoLevels = (env, overrides = [], defaults = { "mcp.authority": "d
|
|
|
22
22
|
for (const entry of overrides) {
|
|
23
23
|
const match = /^([a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*)=(deny|readonly|ask|allow)$/.exec(entry);
|
|
24
24
|
if (!match)
|
|
25
|
-
throw new CliError("validation_error", "--permission takes a command path and level, e.g.
|
|
25
|
+
throw new CliError("validation_error", "--permission takes a command path and level, e.g. memories.add=deny");
|
|
26
26
|
changed[match[1]] = match[2];
|
|
27
27
|
}
|
|
28
28
|
const levels = layerPermissions([
|
package/dist/reasons.js
CHANGED
|
@@ -178,7 +178,7 @@ export const REASONS = defineReasons([
|
|
|
178
178
|
{
|
|
179
179
|
reason: "folder.unbound",
|
|
180
180
|
code: "configuration_error",
|
|
181
|
-
message: "the notes folder {path} has no folder id;
|
|
181
|
+
message: "the notes folder {path} has no folder id; files folders add or files folders update gives it one",
|
|
182
182
|
details: ["path"],
|
|
183
183
|
},
|
|
184
184
|
{ reason: "folder.not-found", code: "not_found", message: "the store has no such folder of notes", details: [] },
|
|
@@ -197,7 +197,7 @@ export const REASONS = defineReasons([
|
|
|
197
197
|
{
|
|
198
198
|
reason: "notes.folder-missing",
|
|
199
199
|
code: "not_found",
|
|
200
|
-
message: "the notes folder {path} is missing — connect its disk; if it moved,
|
|
200
|
+
message: "the notes folder {path} is missing — connect its disk; if it moved, files folders update <id> <new path>",
|
|
201
201
|
details: ["path"],
|
|
202
202
|
},
|
|
203
203
|
{
|
|
@@ -289,7 +289,7 @@ export const REASONS = defineReasons([
|
|
|
289
289
|
{
|
|
290
290
|
reason: "reader.none-chosen",
|
|
291
291
|
code: "configuration_error",
|
|
292
|
-
message: "no reader is chosen for sources; the owner picks one with
|
|
292
|
+
message: "no reader is chosen for sources; the owner picks one with files sources readers set <reader>",
|
|
293
293
|
details: ["readers"],
|
|
294
294
|
},
|
|
295
295
|
{
|
|
@@ -307,7 +307,7 @@ export const REASONS = defineReasons([
|
|
|
307
307
|
{
|
|
308
308
|
reason: "reader.unavailable",
|
|
309
309
|
code: "configuration_error",
|
|
310
|
-
message: "the chosen reader cannot read now;
|
|
310
|
+
message: "the chosen reader cannot read now; files sources readers list says why and what fixes it",
|
|
311
311
|
details: [],
|
|
312
312
|
},
|
|
313
313
|
{
|
|
@@ -319,7 +319,7 @@ export const REASONS = defineReasons([
|
|
|
319
319
|
{
|
|
320
320
|
reason: "reader.model-missing",
|
|
321
321
|
code: "configuration_error",
|
|
322
|
-
message: "the reader needs a model the owner names;
|
|
322
|
+
message: "the reader needs a model the owner names; files sources readers set <reader> --model <model>",
|
|
323
323
|
details: [],
|
|
324
324
|
},
|
|
325
325
|
{
|
|
@@ -134,7 +134,7 @@ const storedKeysOf = async (store, env, value) => {
|
|
|
134
134
|
}
|
|
135
135
|
return keys;
|
|
136
136
|
};
|
|
137
|
-
const noStoredAccount = (value) => new CliError("not_found", `${value} names no stored account; notes written with
|
|
137
|
+
const noStoredAccount = (value) => new CliError("not_found", `${value} names no stored account; notes written with files notes add belong to none — name a notes folder ` +
|
|
138
138
|
"(notes:<id>), a mailbox or a messenger account");
|
|
139
139
|
/** One account, and the owner names it: none or several is an error listing the choices. */
|
|
140
140
|
export const oneAccountOf = async (store, env, value, option = "--source") => {
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = "1.
|
|
1
|
+
export const VERSION = "1.1.0";
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/package.json
CHANGED
|
@@ -9,13 +9,13 @@ Saved dotted `permissions` keys apply to commands. `deny` keeps a command visibl
|
|
|
9
9
|
`readonly` allows reads, and `ask` or `allow` permits a write. `ask` runs without a terminal question over MCP:
|
|
10
10
|
respect the owner's existing authorization before acting. `mcp.authority` defaults to `deny` for source-folder and mail-rule
|
|
11
11
|
changes. `WCAT_READ_ONLY=1` marks writing commands unavailable and refuses calls. `--permission key=level` can only tighten saved levels.
|
|
12
|
-
Find command arguments before calling them. Through `wcat_read`, open a cited note with `
|
|
13
|
-
(`
|
|
12
|
+
Find command arguments before calling them. Through `wcat_read`, open a cited note or document with `show`
|
|
13
|
+
(`ref: [ref]`) or a message/email with `messages show` (`message: ref`, `full: true` for whole attachment text).
|
|
14
14
|
|
|
15
15
|
`WCAT_GROUP_LOCK=<group>` pins the server to one account group, and it fails closed. Only these run: `context`, `show`,
|
|
16
16
|
`messages show`, `search all|messages|mail|notes|people`, `groups list`, `tags add|remove`, the `deals`, `leads`,
|
|
17
17
|
`organizations`, `pipelines list|show`, `memories`, `facts`, `actions`, `review` and `tasks` commands,
|
|
18
|
-
`projects list|add|context|status|key-documents`, `people list|add`,
|
|
18
|
+
`projects list|add|context|status|key-documents`, `people list|add`,
|
|
19
19
|
`relationships list|add|roles list`. Everything else is
|
|
20
20
|
`permission_error`. Your memories, facts and the owner's notes and tasks show in every group; a reference, a bare id of
|
|
21
21
|
one, another group, `--source all` or an account outside the group is `permission_error`. Do not read around it; say
|