@wirecat/wirecat 2.0.0 → 3.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 CHANGED
@@ -56,9 +56,9 @@ wcat search notes "budget"
56
56
  ```
57
57
 
58
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.
59
+ `npm install -g @wirecat/wirecat @wirecat/files-cli`. wcat has no install script, so a global install adds only
60
+ `wcat-wirecat`: the second line installs the agent skill and adds `wcat`. On Windows, open a new terminal if `wcat`
61
+ is not found.
62
62
 
63
63
  That is all notes need. wcat runs `wcat-files sync` itself when the files CLI is installed. Then add more context:
64
64
 
@@ -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("2.0.0\n")
12
+ process.stdout.write("3.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-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"]
29
+ const chunks = ["../bundle/auto-3FV2LT4H.js","../bundle/entry-AVDRO3VG.js","../bundle/failure-G76RKGKM.js","../bundle/from-memo-6KTXNOZ4.js","../bundle/program-Z3B5EUUU.js","../bundle/server-7IWWFZ4E.js","../bundle/update-73FDIPRR.js"]
30
30
  const preload = () =>
31
31
  Promise.allSettled([
32
32
  ...chunks.map((chunk) => import(chunk)),
@@ -17,13 +17,13 @@ import {
17
17
  serviceUnit,
18
18
  timerUnit,
19
19
  unitDir
20
- } from "./chunk-WV25HYY7.js";
20
+ } from "./chunk-ZE2T4EOA.js";
21
21
  import "./chunk-7O7XM37N.js";
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";
22
+ import "./chunk-QCTRIEC4.js";
23
+ import "./chunk-GQOQZT23.js";
24
+ import "./chunk-LTI3MDYQ.js";
25
+ import "./chunk-ORLHR3ZY.js";
26
+ import "./chunk-5APBHODO.js";
27
27
  export {
28
28
  DEFAULT_EVERY,
29
29
  PLACE_VARIABLES,
@@ -372,7 +372,7 @@ var REASONS = defineReasons([
372
372
  ]);
373
373
 
374
374
  // dist/version.js
375
- var VERSION = "2.0.0";
375
+ var VERSION = "3.0.0";
376
376
 
377
377
  // dist/app.js
378
378
  var APP = {
@@ -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-EXGRACGB.js";
5
+ } from "./chunk-LTI3MDYQ.js";
6
6
  import {
7
7
  interactiveOf,
8
8
  optionsOf
9
- } from "./chunk-E6ATHTD4.js";
9
+ } from "./chunk-ORLHR3ZY.js";
10
10
  import {
11
11
  APP,
12
12
  __name
13
- } from "./chunk-GEOUDXRA.js";
13
+ } from "./chunk-5APBHODO.js";
14
14
 
15
15
  // dist/failure.js
16
16
  import { CliError, errorObjectOf, errorRecordOf, exitCodeOfError, mcpErrorResult, renderError } from "@wirecat/cli-base";
@@ -19,10 +19,10 @@ import {
19
19
  string,
20
20
  union,
21
21
  unknown
22
- } from "./chunk-EXGRACGB.js";
22
+ } from "./chunk-LTI3MDYQ.js";
23
23
  import {
24
24
  __name
25
- } from "./chunk-GEOUDXRA.js";
25
+ } from "./chunk-5APBHODO.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-FJI2GGCP.js";
5
+ } from "./chunk-GQOQZT23.js";
6
6
  import {
7
7
  APP,
8
8
  VERSION,
9
9
  __name
10
- } from "./chunk-GEOUDXRA.js";
10
+ } from "./chunk-5APBHODO.js";
11
11
 
12
12
  // dist/update.js
13
13
  import { join } from "node:path";
@@ -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-GEOUDXRA.js";
5
+ } from "./chunk-5APBHODO.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;
@@ -4,11 +4,11 @@ import {
4
4
  inspectConfig,
5
5
  loadConfig,
6
6
  memoPermissionKeys
7
- } from "./chunk-FJI2GGCP.js";
7
+ } from "./chunk-GQOQZT23.js";
8
8
  import {
9
9
  APP,
10
10
  __name
11
- } from "./chunk-GEOUDXRA.js";
11
+ } from "./chunk-5APBHODO.js";
12
12
 
13
13
  // dist/read-only.js
14
14
  import { metaOf } from "@wirecat/cli-base/commands";
@@ -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-GEOUDXRA.js";
5
+ } from "./chunk-5APBHODO.js";
6
6
 
7
7
  // dist/terminal.js
8
8
  var MACHINE_FLAGS = /* @__PURE__ */ new Set(["--json", "--jsonl"]);
@@ -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-FJI2GGCP.js";
5
+ } from "./chunk-GQOQZT23.js";
6
6
  import {
7
7
  terminalOf
8
- } from "./chunk-E6ATHTD4.js";
8
+ } from "./chunk-ORLHR3ZY.js";
9
9
  import {
10
10
  STORE_CLIENT,
11
11
  __name
12
- } from "./chunk-GEOUDXRA.js";
12
+ } from "./chunk-5APBHODO.js";
13
13
 
14
14
  // dist/answer.js
15
15
  import { CliError as CliError2, createRenderer } from "@wirecat/cli-base";
@@ -3,7 +3,7 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  APP,
5
5
  __name
6
- } from "./chunk-GEOUDXRA.js";
6
+ } from "./chunk-5APBHODO.js";
7
7
 
8
8
  // dist/migrate/skill.js
9
9
  import { readFileSync, rmSync } from "node:fs";
@@ -3,14 +3,14 @@ const require = __bundleRequire(import.meta.url);
3
3
  import {
4
4
  answers,
5
5
  itemAnswer
6
- } from "./chunk-5WFO6JWX.js";
6
+ } from "./chunk-QCTRIEC4.js";
7
7
  import {
8
8
  loadConfig,
9
9
  updateConfig
10
- } from "./chunk-FJI2GGCP.js";
10
+ } from "./chunk-GQOQZT23.js";
11
11
  import {
12
12
  __name
13
- } from "./chunk-GEOUDXRA.js";
13
+ } from "./chunk-5APBHODO.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-E6ATHTD4.js";
5
+ } from "./chunk-ORLHR3ZY.js";
6
6
  import {
7
7
  APP,
8
8
  __name
9
- } from "./chunk-GEOUDXRA.js";
9
+ } from "./chunk-5APBHODO.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-QMAD62PD.js");
24
- const { createProgram, liftGroup, refuseJoinedPath } = await import("./program-TSDADT6D.js");
25
- const { autoNotice, followInstall } = await import("./auto-FUO5KVI4.js");
23
+ failure = await import("./failure-G76RKGKM.js");
24
+ const { createProgram, liftGroup, refuseJoinedPath } = await import("./program-Z3B5EUUU.js");
25
+ const { autoNotice, followInstall } = await import("./auto-3FV2LT4H.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-JVDUBORQ.js");
36
+ const { updateNotice } = await import("./update-73FDIPRR.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-VU2Y645U.js";
10
- import "./chunk-EXGRACGB.js";
11
- import "./chunk-E6ATHTD4.js";
12
- import "./chunk-GEOUDXRA.js";
9
+ } from "./chunk-DJLUI6E6.js";
10
+ import "./chunk-LTI3MDYQ.js";
11
+ import "./chunk-ORLHR3ZY.js";
12
+ import "./chunk-5APBHODO.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-PFPRK73R.js";
5
+ } from "./chunk-TMMASKOU.js";
6
6
  import {
7
7
  applyAuto,
8
8
  autoState,
9
9
  unitDir
10
- } from "./chunk-WV25HYY7.js";
10
+ } from "./chunk-ZE2T4EOA.js";
11
11
  import "./chunk-7O7XM37N.js";
12
- import "./chunk-5WFO6JWX.js";
13
- import "./chunk-FJI2GGCP.js";
14
- import "./chunk-EXGRACGB.js";
15
- import "./chunk-E6ATHTD4.js";
12
+ import "./chunk-QCTRIEC4.js";
13
+ import "./chunk-GQOQZT23.js";
14
+ import "./chunk-LTI3MDYQ.js";
15
+ import "./chunk-ORLHR3ZY.js";
16
16
  import {
17
17
  APP,
18
18
  __name
19
- } from "./chunk-GEOUDXRA.js";
19
+ } from "./chunk-5APBHODO.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-PFPRK73R.js";
5
+ } from "./chunk-TMMASKOU.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-WV25HYY7.js";
13
+ } from "./chunk-ZE2T4EOA.js";
14
14
  import {
15
15
  PACKAGE,
16
16
  installer,
17
17
  upgradeCommand
18
- } from "./chunk-KGZHDTL7.js";
18
+ } from "./chunk-KR5QSKQ6.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-KDZBXQEF.js";
26
+ } from "./chunk-O6KHNKUM.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-5WFO6JWX.js";
51
+ } from "./chunk-QCTRIEC4.js";
52
52
  import {
53
53
  errorObject,
54
54
  recognisable
55
- } from "./chunk-VU2Y645U.js";
55
+ } from "./chunk-DJLUI6E6.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-FJI2GGCP.js";
70
+ } from "./chunk-GQOQZT23.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-EXGRACGB.js";
84
+ } from "./chunk-LTI3MDYQ.js";
85
85
  import {
86
86
  provideTerminal,
87
87
  terminalOf
88
- } from "./chunk-E6ATHTD4.js";
88
+ } from "./chunk-ORLHR3ZY.js";
89
89
  import {
90
90
  APP,
91
91
  REASONS,
92
92
  STORE_CLIENT,
93
93
  VERSION,
94
94
  __name
95
- } from "./chunk-GEOUDXRA.js";
95
+ } from "./chunk-5APBHODO.js";
96
96
 
97
97
  // dist/program.js
98
98
  import { fileURLToPath } from "node:url";
@@ -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-3YTTY2HK.js");
10942
+ const { createMemoServer } = await import("./server-7IWWFZ4E.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-KDZBXQEF.js";
8
+ } from "./chunk-O6KHNKUM.js";
9
9
  import {
10
10
  itemAnswer
11
- } from "./chunk-5WFO6JWX.js";
11
+ } from "./chunk-QCTRIEC4.js";
12
12
  import {
13
13
  errorObject,
14
14
  mcpFailure,
15
15
  throwParseFailures
16
- } from "./chunk-VU2Y645U.js";
16
+ } from "./chunk-DJLUI6E6.js";
17
17
  import {
18
18
  grantLevels
19
- } from "./chunk-FJI2GGCP.js";
19
+ } from "./chunk-GQOQZT23.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-EXGRACGB.js";
29
- import "./chunk-E6ATHTD4.js";
28
+ } from "./chunk-LTI3MDYQ.js";
29
+ import "./chunk-ORLHR3ZY.js";
30
30
  import {
31
31
  APP,
32
32
  STORE_CLIENT,
33
33
  VERSION,
34
34
  __name
35
- } from "./chunk-GEOUDXRA.js";
35
+ } from "./chunk-5APBHODO.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-KGZHDTL7.js";
10
+ } from "./chunk-KR5QSKQ6.js";
11
11
  import "./chunk-7O7XM37N.js";
12
- import "./chunk-FJI2GGCP.js";
13
- import "./chunk-EXGRACGB.js";
14
- import "./chunk-GEOUDXRA.js";
12
+ import "./chunk-GQOQZT23.js";
13
+ import "./chunk-LTI3MDYQ.js";
14
+ import "./chunk-5APBHODO.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-GEOUDXRA.js";
7
+ } from "./chunk-5APBHODO.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-6657KRIY.js");
72
+ const { migrateFromMemo } = await import("./from-memo-6KTXNOZ4.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-5EWNCB5P.js");
81
+ const { memoEntry } = await import("./entry-AVDRO3VG.js");
82
82
  await startCli(memoEntry());
83
83
  }
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = "2.0.0";
1
+ export const VERSION = "3.0.0";
2
2
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecat/wirecat",
3
- "version": "2.0.0",
3
+ "version": "3.0.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",
@@ -22,7 +22,6 @@
22
22
  "contracts/wirecat.json",
23
23
  "scenarios",
24
24
  "skills",
25
- "install",
26
25
  "README.md",
27
26
  "LICENSE",
28
27
  "THIRD_PARTY_NOTICES"
@@ -38,7 +37,6 @@
38
37
  "lint:commands": "node --experimental-strip-types scripts/sandboxed.ts cli-dev lint --cli dist/bin/wcat-wirecat.js --budget 32",
39
38
  "release:check": "cli-dev changelog level && pnpm lint && pnpm typecheck && pnpm test && pnpm build && node --experimental-strip-types scripts/commands.ts --check && pnpm lint:commands && pnpm secrets:scan",
40
39
  "prepare": "lefthook install || true",
41
- "postinstall": "node install/postinstall.mjs",
42
40
  "secrets:scan": "gitleaks git --no-banner --redact .",
43
41
  "prepublishOnly": "pnpm build",
44
42
  "standards:check": "node config/wirecat/check.mjs",
@@ -1,47 +0,0 @@
1
- import { dirname, join, resolve } from "node:path";
2
- import { fileURLToPath, pathToFileURL } from "node:url";
3
- import { installSkill } from "@wirecat/cli-base/skill";
4
- import { binFolder, ensureLauncher } from "@wirecat/cli-base/wcat";
5
- import { APP } from "../app.js";
6
- import { DESKTOP } from "../identity.js";
7
- const root = resolve(dirname(fileURLToPath(import.meta.url)), "../..");
8
- const TARGETS = {
9
- all: ["claude", "agents"],
10
- claude: ["claude"],
11
- codex: ["agents"],
12
- cursor: ["agents"],
13
- gemini: ["agents"],
14
- };
15
- /**
16
- * The package cannot declare a `wcat` bin: npm refuses one over the launcher another WireCat tool wrote. So the
17
- * install writes the launcher, as every start of wcat-wirecat does again.
18
- */
19
- export const writeLauncher = ({ env = process.env, packageRoot = root, platform = process.platform, } = {}) => {
20
- const folder = binFolder({
21
- name: DESKTOP.command,
22
- script: join(packageRoot, "dist", "bin", "wcat-wirecat.js"),
23
- env,
24
- platform,
25
- });
26
- return folder ? ensureLauncher({ ...folder, platform }) : undefined;
27
- };
28
- /**
29
- * A global npm install puts the skill where agents look only when WCAT_INSTALL_AGENT names one: npm hides a
30
- * lifecycle script's output, so writing into the owner's agent folders must be asked for.
31
- */
32
- export const completeGlobalInstall = ({ env = process.env, packageRoot = root, note = (message) => process.stderr.write(`${message}\n`), } = {}) => {
33
- if (env.npm_config_global !== "true")
34
- return;
35
- writeLauncher({ env, packageRoot });
36
- const agent = env.WCAT_INSTALL_AGENT;
37
- if (agent === undefined || agent === "none") {
38
- note("wcat: agent skill not installed; run wcat skill install --for all.");
39
- return;
40
- }
41
- const targets = TARGETS[agent];
42
- if (targets === undefined)
43
- throw new Error("WCAT_INSTALL_AGENT must be all, codex, cursor, claude, gemini or none");
44
- installSkill({ command: APP.command, appName: APP.appName, version: APP.version }, pathToFileURL(join(packageRoot, "skills/wcat/SKILL.md")), { env, targets });
45
- note("wcat: agent skill installed. Agent: read wcat skill show before using wcat.");
46
- };
47
- //# sourceMappingURL=postinstall.js.map
@@ -1,9 +0,0 @@
1
- if (process.env.npm_config_global === "true") {
2
- try {
3
- const { completeGlobalInstall } = await import("../dist/install/postinstall.js")
4
- completeGlobalInstall()
5
- } catch (error) {
6
- process.stderr.write(`wcat installation incomplete: ${error instanceof Error ? error.message : String(error)}\n`)
7
- process.exitCode = 1
8
- }
9
- }