caveat-cli 0.17.7 → 0.18.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
@@ -22,6 +22,7 @@ Built and maintained by [Quo](https://x.com/QLyun35332) at [kitepon.dev](https:/
22
22
  npm install -g caveat-cli
23
23
  caveat init # Claude Code MCP + hooks
24
24
  caveat codex-hook install # optional: native Codex hooks
25
+ caveat cursor-hook install # optional: native Cursor hooks
25
26
  ```
26
27
 
27
28
  On macOS with Homebrew Node, Caveat installs hook commands through the stable
@@ -98,6 +99,7 @@ If you want `~/.caveat/own/` to live elsewhere (e.g. a git-tracked directory you
98
99
  - `git` for `caveat community add` / `caveat community pull`
99
100
  - Claude Code installed if you want Claude MCP / hooks integration. Without it, `caveat init --skip-claude` still provisions local state.
100
101
  - Codex installed if you want native Codex hooks via `caveat codex-hook install`.
102
+ - Cursor installed if you want native Cursor hooks via `caveat cursor-hook install`.
101
103
 
102
104
  Release install smoke:
103
105
 
@@ -107,6 +109,7 @@ npm install -g caveat-cli
107
109
  caveat --version
108
110
  caveat init
109
111
  caveat codex-hook install
112
+ caveat cursor-hook install
110
113
  ```
111
114
 
112
115
  ## License
@@ -15237,6 +15237,9 @@ function createKeyserverKeyProvider(opts) {
15237
15237
  function isWindows(platform = process.platform) {
15238
15238
  return platform === "win32";
15239
15239
  }
15240
+ function isWindowsEnv(env, platform = process.platform) {
15241
+ return env.OS === "Windows_NT" || isWindows(platform);
15242
+ }
15240
15243
  function isPrivateOwnerStat(stat, uid, platform = process.platform) {
15241
15244
  return isWindows(platform) || (stat.mode & 63) === 0 && (uid === void 0 || stat.uid === uid);
15242
15245
  }
@@ -17318,7 +17321,8 @@ var definitions = {
17318
17321
  "CAVEAT.MCP_SERVER_FAILED": { component: "mcp", severity: "high", template: "Caveat MCP server failed" },
17319
17322
  "CAVEAT.MCP_TOOL_FAILED": { component: "mcp_tool", severity: "high", template: "Caveat MCP tool handler failed" },
17320
17323
  "CAVEAT.CLAUDE_HOOK_FAILED": { component: "claude_hook", severity: "high", template: "Caveat Claude hook failed" },
17321
- "CAVEAT.CODEX_HOOK_FAILED": { component: "codex_hook", severity: "high", template: "Caveat Codex hook failed" }
17324
+ "CAVEAT.CODEX_HOOK_FAILED": { component: "codex_hook", severity: "high", template: "Caveat Codex hook failed" },
17325
+ "CAVEAT.CURSOR_HOOK_FAILED": { component: "cursor_hook", severity: "high", template: "Caveat Cursor hook failed" }
17322
17326
  };
17323
17327
  function normalizeOptions(options2 = {}) {
17324
17328
  return "env" in options2 || "configPath" in options2 || "storePath" in options2 || "version" in options2 || "isWindows" in options2 ? options2 : { env: options2 };
@@ -17329,7 +17333,7 @@ var validTime = (v) => typeof v === "string" && Number.isFinite(Date.parse(v)) &
17329
17333
  var validVersion = (v) => typeof v === "string" && /^\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.-]+)?$/.test(v);
17330
17334
  var validOs = (v) => typeof v === "string" && ["darwin", "linux", "windows"].includes(v);
17331
17335
  var validArch = (v) => typeof v === "string" && ["x64", "arm64", "arm", "ia32"].includes(v);
17332
- var windows = (env) => env.OS === "Windows_NT" || isWindows(hostPlatform());
17336
+ var windows = (env) => isWindowsEnv(env, hostPlatform());
17333
17337
  function defaultFactoryReporterConfigPath(env = process.env) {
17334
17338
  const home = env.HOME || env.USERPROFILE || homedir3();
17335
17339
  return windows(env) ? join13(env.LOCALAPPDATA || join13(home, "AppData", "Local"), "dotagents", "factory-reporter", "config.json") : join13(env.XDG_CONFIG_HOME || join13(home, ".config"), "dotagents", "factory-reporter.json");
@@ -18005,4 +18009,4 @@ strip-bom-string/index.js:
18005
18009
  js-yaml/dist/js-yaml.mjs:
18006
18010
  (*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT *)
18007
18011
  */
18008
- //# sourceMappingURL=chunk-ZBHCOA6R.js.map
18012
+ //# sourceMappingURL=chunk-KAULUIC4.js.map