@wirecat/wirecat 3.1.0 → 3.3.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.
@@ -9,10 +9,10 @@ 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("3.1.0\n")
12
+ process.stdout.write("3.3.0\n")
13
13
  try {
14
14
  const { wcatStart } = await import("@wirecat/cli-base/wcat/start")
15
- await wcatStart({ command: "wirecat", version: "3.1.0" })
15
+ await wcatStart({ command: "wirecat", version: "3.3.0" })
16
16
  } catch {}
17
17
  } else {
18
18
  // Before the bundle compiles: the bundle's own call comes after its chunks.
@@ -30,7 +30,7 @@ if (
30
30
  : next(specifier, context),
31
31
  })
32
32
  }
33
- const chunks = ["../bundle/auto-E53HHXZL.js","../bundle/entry-NYNIPO4E.js","../bundle/failure-HOXBTWHH.js","../bundle/from-memo-JJ3FJDMI.js","../bundle/program-LZ6BT7F3.js","../bundle/server-CKNUQEOS.js","../bundle/update-6B7X3ORN.js"]
33
+ const chunks = ["../bundle/auto-IUQBKETH.js","../bundle/entry-YMJ5OQLG.js","../bundle/failure-PEN3PLVX.js","../bundle/from-memo-32XWAJR7.js","../bundle/program-IIE6X5KH.js","../bundle/server-DJ67V7ME.js","../bundle/update-VOKFSCFI.js"]
34
34
  const preload = () =>
35
35
  Promise.allSettled([
36
36
  ...chunks.map((chunk) => import(chunk)),
@@ -17,13 +17,13 @@ import {
17
17
  serviceUnit,
18
18
  timerUnit,
19
19
  unitDir
20
- } from "./chunk-7VQHLBB6.js";
20
+ } from "./chunk-MNOFUY5J.js";
21
21
  import "./chunk-7O7XM37N.js";
22
- import "./chunk-LYFAUTB4.js";
23
- import "./chunk-WN2ZE2B2.js";
24
- import "./chunk-AZCU4W66.js";
25
- import "./chunk-SKKTORZN.js";
26
- import "./chunk-XJ44XU5A.js";
22
+ import "./chunk-IZ7IWXKJ.js";
23
+ import "./chunk-M7LPI53P.js";
24
+ import "./chunk-4KCMGJER.js";
25
+ import "./chunk-27WGDFS5.js";
26
+ import "./chunk-CHGSY3OQ.js";
27
27
  export {
28
28
  DEFAULT_EVERY,
29
29
  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-XJ44XU5A.js";
5
+ } from "./chunk-CHGSY3OQ.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-XJ44XU5A.js";
5
+ } from "./chunk-CHGSY3OQ.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;
@@ -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-WN2ZE2B2.js";
5
+ } from "./chunk-M7LPI53P.js";
6
6
  import {
7
7
  APP,
8
8
  VERSION,
9
9
  __name
10
- } from "./chunk-XJ44XU5A.js";
10
+ } from "./chunk-CHGSY3OQ.js";
11
11
 
12
12
  // dist/update.js
13
13
  import { join } from "node:path";
@@ -372,7 +372,7 @@ var REASONS = defineReasons([
372
372
  ]);
373
373
 
374
374
  // dist/version.js
375
- var VERSION = "3.1.0";
375
+ var VERSION = "3.3.0";
376
376
 
377
377
  // dist/app.js
378
378
  var APP = {
@@ -2,14 +2,14 @@ import { createRequire as __bundleRequire } from "node:module";
2
2
  const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  decisionPolicy
5
- } from "./chunk-WN2ZE2B2.js";
5
+ } from "./chunk-M7LPI53P.js";
6
6
  import {
7
7
  terminalOf
8
- } from "./chunk-SKKTORZN.js";
8
+ } from "./chunk-27WGDFS5.js";
9
9
  import {
10
10
  STORE_CLIENT,
11
11
  __name
12
- } from "./chunk-XJ44XU5A.js";
12
+ } from "./chunk-CHGSY3OQ.js";
13
13
 
14
14
  // dist/answer.js
15
15
  import { CliError as CliError2, createRenderer } from "@wirecat/cli-base";
@@ -19,10 +19,10 @@ import {
19
19
  string,
20
20
  union,
21
21
  unknown
22
- } from "./chunk-AZCU4W66.js";
22
+ } from "./chunk-4KCMGJER.js";
23
23
  import {
24
24
  __name
25
- } from "./chunk-XJ44XU5A.js";
25
+ } from "./chunk-CHGSY3OQ.js";
26
26
 
27
27
  // dist/config.js
28
28
  import { CliError as CliError2, configFilePath, resolvePaths, saveConfigFile } 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-LYFAUTB4.js";
6
+ } from "./chunk-IZ7IWXKJ.js";
7
7
  import {
8
8
  loadConfig,
9
9
  updateConfig
10
- } from "./chunk-WN2ZE2B2.js";
10
+ } from "./chunk-M7LPI53P.js";
11
11
  import {
12
12
  __name
13
- } from "./chunk-XJ44XU5A.js";
13
+ } from "./chunk-CHGSY3OQ.js";
14
14
 
15
15
  // dist/run/auto.js
16
16
  import { execFile } from "node:child_process";
@@ -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-AZCU4W66.js";
5
+ } from "./chunk-4KCMGJER.js";
6
6
  import {
7
7
  interactiveOf,
8
8
  optionsOf
9
- } from "./chunk-SKKTORZN.js";
9
+ } from "./chunk-27WGDFS5.js";
10
10
  import {
11
11
  APP,
12
12
  __name
13
- } from "./chunk-XJ44XU5A.js";
13
+ } from "./chunk-CHGSY3OQ.js";
14
14
 
15
15
  // dist/failure.js
16
16
  import { CliError, errorObjectOf, errorRecordOf, exitCodeOfError, mcpErrorResult, renderError } from "@wirecat/cli-base";
@@ -4,11 +4,11 @@ import {
4
4
  inspectConfig,
5
5
  loadConfig,
6
6
  memoPermissionKeys
7
- } from "./chunk-WN2ZE2B2.js";
7
+ } from "./chunk-M7LPI53P.js";
8
8
  import {
9
9
  APP,
10
10
  __name
11
- } from "./chunk-XJ44XU5A.js";
11
+ } from "./chunk-CHGSY3OQ.js";
12
12
 
13
13
  // dist/read-only.js
14
14
  import { metaOf } from "@wirecat/cli-base/commands";
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  APP,
5
5
  __name
6
- } from "./chunk-XJ44XU5A.js";
6
+ } from "./chunk-CHGSY3OQ.js";
7
7
 
8
8
  // dist/migrate/skill.js
9
9
  import { readFileSync, rmSync } from "node:fs";
@@ -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-SKKTORZN.js";
5
+ } from "./chunk-27WGDFS5.js";
6
6
  import {
7
7
  APP,
8
8
  __name
9
- } from "./chunk-XJ44XU5A.js";
9
+ } from "./chunk-CHGSY3OQ.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-HOXBTWHH.js");
24
- const { createProgram, liftGroup, refuseJoinedPath } = await import("./program-LZ6BT7F3.js");
25
- const { autoNotice, followInstall } = await import("./auto-E53HHXZL.js");
23
+ failure = await import("./failure-PEN3PLVX.js");
24
+ const { createProgram, liftGroup, refuseJoinedPath } = await import("./program-IIE6X5KH.js");
25
+ const { autoNotice, followInstall } = await import("./auto-IUQBKETH.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-6B7X3ORN.js");
36
+ const { updateNotice } = await import("./update-VOKFSCFI.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-ATI5X5PD.js";
10
- import "./chunk-AZCU4W66.js";
11
- import "./chunk-SKKTORZN.js";
12
- import "./chunk-XJ44XU5A.js";
9
+ } from "./chunk-OQGADDRY.js";
10
+ import "./chunk-4KCMGJER.js";
11
+ import "./chunk-27WGDFS5.js";
12
+ import "./chunk-CHGSY3OQ.js";
13
13
  export {
14
14
  errorObject,
15
15
  mcpFailure,
@@ -2,21 +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-KESDYY2L.js";
5
+ } from "./chunk-XKSFWZLO.js";
6
6
  import {
7
7
  applyAuto,
8
8
  autoState,
9
9
  unitDir
10
- } from "./chunk-7VQHLBB6.js";
10
+ } from "./chunk-MNOFUY5J.js";
11
11
  import "./chunk-7O7XM37N.js";
12
- import "./chunk-LYFAUTB4.js";
13
- import "./chunk-WN2ZE2B2.js";
14
- import "./chunk-AZCU4W66.js";
15
- import "./chunk-SKKTORZN.js";
12
+ import "./chunk-IZ7IWXKJ.js";
13
+ import "./chunk-M7LPI53P.js";
14
+ import "./chunk-4KCMGJER.js";
15
+ import "./chunk-27WGDFS5.js";
16
16
  import {
17
17
  APP,
18
18
  __name
19
- } from "./chunk-XJ44XU5A.js";
19
+ } from "./chunk-CHGSY3OQ.js";
20
20
 
21
21
  // dist/migrate/from-memo.js
22
22
  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-KESDYY2L.js";
5
+ } from "./chunk-XKSFWZLO.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-7VQHLBB6.js";
13
+ } from "./chunk-MNOFUY5J.js";
14
14
  import {
15
15
  PACKAGE,
16
16
  installer,
17
17
  upgradeCommand
18
- } from "./chunk-JJUHY2NU.js";
18
+ } from "./chunk-5DRJTB32.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-4OYT5RVK.js";
26
+ } from "./chunk-PNYLJKEX.js";
27
27
  import {
28
28
  PROPOSAL_ROW,
29
29
  answers,
@@ -48,11 +48,11 @@ import {
48
48
  trackAnswers,
49
49
  wholeList,
50
50
  withStore
51
- } from "./chunk-LYFAUTB4.js";
51
+ } from "./chunk-IZ7IWXKJ.js";
52
52
  import {
53
53
  errorObject,
54
54
  recognisable
55
- } from "./chunk-ATI5X5PD.js";
55
+ } from "./chunk-OQGADDRY.js";
56
56
  import {
57
57
  WCAT_SETTINGS,
58
58
  agentMergesApply,
@@ -67,7 +67,7 @@ import {
67
67
  rawConfig,
68
68
  scheduleLimits,
69
69
  unsetConfigKey
70
- } from "./chunk-WN2ZE2B2.js";
70
+ } from "./chunk-M7LPI53P.js";
71
71
  import {
72
72
  array,
73
73
  boolean,
@@ -81,18 +81,18 @@ import {
81
81
  string,
82
82
  union,
83
83
  unknown
84
- } from "./chunk-AZCU4W66.js";
84
+ } from "./chunk-4KCMGJER.js";
85
85
  import {
86
86
  provideTerminal,
87
87
  terminalOf
88
- } from "./chunk-SKKTORZN.js";
88
+ } from "./chunk-27WGDFS5.js";
89
89
  import {
90
90
  APP,
91
91
  REASONS,
92
92
  STORE_CLIENT,
93
93
  VERSION,
94
94
  __name
95
- } from "./chunk-XJ44XU5A.js";
95
+ } from "./chunk-CHGSY3OQ.js";
96
96
 
97
97
  // dist/program.js
98
98
  import { fileURLToPath } from "node:url";
@@ -4528,7 +4528,7 @@ var meetings = [
4528
4528
  {
4529
4529
  command: ["meetings", "list"],
4530
4530
  field: "description",
4531
- before: "meetings, newest first: the service's and the stored ones, kept in the store",
4531
+ before: "meetings, newest first: the stored ones and the service's, which it never stores",
4532
4532
  after: "meetings, calls and calendar events of every account as one row per real meeting, latest start first",
4533
4533
  reason: REASON2
4534
4534
  },
@@ -4682,7 +4682,7 @@ var meetings = [
4682
4682
  before: [
4683
4683
  {
4684
4684
  flags: "--backend <archive|server|both>",
4685
- description: "where to read: the store (archive), the service (server), or both, kept in the store (default: both)",
4685
+ description: "where to read: the store (archive), the service (server), or both, never stored (default: both)",
4686
4686
  takes_value: true,
4687
4687
  mandatory: false
4688
4688
  },
@@ -4802,7 +4802,7 @@ var meetings = [
4802
4802
  before: [
4803
4803
  {
4804
4804
  flags: "--backend <archive|server|both>",
4805
- description: "where to read: the store (archive), the service (server), or both, kept in the store (default: both)",
4805
+ description: "where to read: the store (archive), the service (server), or both, never stored (default: both)",
4806
4806
  takes_value: true,
4807
4807
  mandatory: false
4808
4808
  }
@@ -10939,7 +10939,7 @@ var mcpCommandDefinition = /* @__PURE__ */ __name((program, streams, env, create
10939
10939
  }).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) => {
10940
10940
  if (!options.http && (options.port !== void 0 || options.publicUrl !== void 0))
10941
10941
  throw new CliError46("validation_error", "--port and --public-url require --http");
10942
- const { createMemoServer } = await import("./server-CKNUQEOS.js");
10942
+ const { createMemoServer } = await import("./server-DJ67V7ME.js");
10943
10943
  const build = /* @__PURE__ */ __name(() => createMemoServer(env, createProgram2, options.permission), "build");
10944
10944
  if (options.http) {
10945
10945
  const { httpLockFile, mcpUrlOf, portOf, publicUrlOf, serveOverHttp } = await import("@wirecat/cli-core/mcp");
@@ -5,18 +5,18 @@ import {
5
5
  memoLevels,
6
6
  readOnly,
7
7
  refuseUnknownPermissions
8
- } from "./chunk-4OYT5RVK.js";
8
+ } from "./chunk-PNYLJKEX.js";
9
9
  import {
10
10
  itemAnswer
11
- } from "./chunk-LYFAUTB4.js";
11
+ } from "./chunk-IZ7IWXKJ.js";
12
12
  import {
13
13
  errorObject,
14
14
  mcpFailure,
15
15
  throwParseFailures
16
- } from "./chunk-ATI5X5PD.js";
16
+ } from "./chunk-OQGADDRY.js";
17
17
  import {
18
18
  grantLevels
19
- } from "./chunk-WN2ZE2B2.js";
19
+ } from "./chunk-M7LPI53P.js";
20
20
  import {
21
21
  description,
22
22
  object,
@@ -25,14 +25,14 @@ import {
25
25
  pipe,
26
26
  strictObject,
27
27
  string
28
- } from "./chunk-AZCU4W66.js";
29
- import "./chunk-SKKTORZN.js";
28
+ } from "./chunk-4KCMGJER.js";
29
+ import "./chunk-27WGDFS5.js";
30
30
  import {
31
31
  APP,
32
32
  STORE_CLIENT,
33
33
  VERSION,
34
34
  __name
35
- } from "./chunk-XJ44XU5A.js";
35
+ } from "./chunk-CHGSY3OQ.js";
36
36
 
37
37
  // dist/mcp/server.js
38
38
  import { McpServer } from "@modelcontextprotocol/server";
@@ -7,11 +7,11 @@ import {
7
7
  runUpdate,
8
8
  updateNotice,
9
9
  upgradeCommand
10
- } from "./chunk-JJUHY2NU.js";
10
+ } from "./chunk-5DRJTB32.js";
11
11
  import "./chunk-7O7XM37N.js";
12
- import "./chunk-WN2ZE2B2.js";
13
- import "./chunk-AZCU4W66.js";
14
- import "./chunk-XJ44XU5A.js";
12
+ import "./chunk-M7LPI53P.js";
13
+ import "./chunk-4KCMGJER.js";
14
+ import "./chunk-CHGSY3OQ.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-XJ44XU5A.js";
7
+ } from "./chunk-CHGSY3OQ.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-JJ3FJDMI.js");
72
+ const { migrateFromMemo } = await import("./from-memo-32XWAJR7.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-NYNIPO4E.js");
81
+ const { memoEntry } = await import("./entry-YMJ5OQLG.js");
82
82
  await startCli(memoEntry());
83
83
  }
@@ -30,7 +30,7 @@ export const meetings = [
30
30
  {
31
31
  command: ["meetings", "list"],
32
32
  field: "description",
33
- before: "meetings, newest first: the service's and the stored ones, kept in the store",
33
+ before: "meetings, newest first: the stored ones and the service's, which it never stores",
34
34
  after: "meetings, calls and calendar events of every account as one row per real meeting, latest start first",
35
35
  reason: REASON,
36
36
  },
@@ -184,7 +184,7 @@ export const meetings = [
184
184
  before: [
185
185
  {
186
186
  flags: "--backend <archive|server|both>",
187
- description: "where to read: the store (archive), the service (server), or both, kept in the store (default: both)",
187
+ description: "where to read: the store (archive), the service (server), or both, never stored (default: both)",
188
188
  takes_value: true,
189
189
  mandatory: false,
190
190
  },
@@ -304,7 +304,7 @@ export const meetings = [
304
304
  before: [
305
305
  {
306
306
  flags: "--backend <archive|server|both>",
307
- description: "where to read: the store (archive), the service (server), or both, kept in the store (default: both)",
307
+ description: "where to read: the store (archive), the service (server), or both, never stored (default: both)",
308
308
  takes_value: true,
309
309
  mandatory: false,
310
310
  },
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = "3.1.0";
1
+ export const VERSION = "3.3.0";
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/wirecat",
3
- "version": "3.1.0",
3
+ "version": "3.3.0",
4
4
  "description": "Local context for AI agents across messengers, mail and notes, from a local store",
5
5
  "mcpName": "dev.wirecat/wirecat",
6
6
  "license": "Apache-2.0",
@@ -60,7 +60,7 @@
60
60
  "dependencies": {
61
61
  "@modelcontextprotocol/server": "2.4.0",
62
62
  "@wirecat/cli-base": "3.0.0",
63
- "@wirecat/cli-core": "3.3.0",
63
+ "@wirecat/cli-core": "3.4.1",
64
64
  "commander": "15.0.0",
65
65
  "valibot": "1.5.0"
66
66
  },