@creator-notes/cnotes 0.146.0 → 0.147.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "creator-notes-cli",
3
- "version": "0.146.0",
3
+ "version": "0.147.0",
4
4
  "description": "CreatorNotes CLI: create notes, build canvases, search knowledge from the terminal",
5
5
  "author": {
6
6
  "name": "CreatorNotes",
@@ -247,13 +247,13 @@ async function runInit(program, nonInteractive) {
247
247
  console.log(` ${WARN} ${dim("Connection")} could not reach API`);
248
248
  }
249
249
  }
250
- // ── Skill (Claude Code + Codex + Cursor) + global install ───
250
+ // ── Skill (Claude Code + Codex + Cursor + Grok) + global install ───
251
251
  await maybeInstallSkill();
252
252
  const installedGlobally = await maybeInstallGlobally();
253
253
  // ── Conversation capture (Claude Code SessionStart hook) ────
254
254
  await maybeInstallSessionHook(installedGlobally);
255
255
  // ── Optional: MCP for Claude Desktop ────────────────────────
256
- // Claude Code, Codex and Cursor use the cnotes skill (installed above), so they
256
+ // Claude Code, Codex, Cursor and Grok use the cnotes skill (installed above), so they
257
257
  // don't need MCP. Claude Desktop has no skill mechanism — MCP is how it reaches
258
258
  // CreatorNotes. Codex users who still want MCP can run `cnotes mcp setup-codex`.
259
259
  console.log();
@@ -306,7 +306,7 @@ async function runInit(program, nonInteractive) {
306
306
  * - hand the agent a sign-in handoff when unauthenticated
307
307
  * (open URL, user signs in, paste the key into the `auth login --token-stdin` heredoc),
308
308
  * - auto-select the workspace when there's exactly one (or list IDs to pick),
309
- * - install the cnotes skill for whichever agents are present (Claude Code, Codex, Cursor),
309
+ * - install the cnotes skill for whichever agents are present (Claude Code, Codex, Cursor, Grok),
310
310
  * and set a non-zero exit code whenever setup is NOT yet complete so the agent
311
311
  * never reports false success.
312
312
  */
@@ -439,7 +439,7 @@ async function runInitNonInteractive() {
439
439
  }
440
440
  // ── Skill install ───────────────────────────────────────────
441
441
  async function maybeInstallSkill() {
442
- // Install for whichever agents the user actually has (Claude Code, Codex, Cursor).
442
+ // Install for whichever agents the user actually has (Claude Code, Codex, Cursor, Grok).
443
443
  const targets = SKILL_TARGETS.filter(hasAgentConfigDir);
444
444
  if (targets.length === 0)
445
445
  return;
@@ -24,7 +24,7 @@ function resolveTargets(agentOpt) {
24
24
  export function registerSkillsCommands(program) {
25
25
  const skills = program
26
26
  .command("skills")
27
- .description("Install bundled agent skills (e.g. fat-marker flows, how-to filmstrips, wayfind, goal tree, shaping, attention planner, transcript timeline, teach a workspace) into Claude Code, Codex, or Cursor");
27
+ .description("Install bundled agent skills (e.g. fat-marker flows, how-to filmstrips, wayfind, goal tree, shaping, attention planner, transcript timeline, teach a workspace) into Claude Code, Codex, Cursor or Grok");
28
28
  skills
29
29
  .command("list")
30
30
  .description("List the skills this CLI can install, and whether each agent's copy is current")
@@ -66,7 +66,7 @@ export function registerSkillsCommands(program) {
66
66
  skills
67
67
  .command("install <name>")
68
68
  .description("Install a bundled skill into your agent's skills dir")
69
- .option("--agent <agent>", "Which agent to install for: claude, codex, cursor, or all (default: auto-detect)")
69
+ .option("--agent <agent>", "Which agent to install for: claude, codex, cursor, grok, or all (default: auto-detect)")
70
70
  .option("--force", "Replace a folder of the same name that is not a cnotes skill (by default it is left alone)")
71
71
  .addHelpText("after", `
72
72
  Examples:
@@ -5,6 +5,7 @@
5
5
  * - Claude Code → ~/.claude/skills/cnotes/SKILL.md
6
6
  * - OpenAI Codex → ~/.codex/skills/cnotes/SKILL.md
7
7
  * - Cursor → ~/.cursor/skills/cnotes/SKILL.md
8
+ * - Grok → ~/.grok/skills/cnotes/SKILL.md
8
9
  *
9
10
  * The skill ships inside the published package at <package>/skills/cnotes/SKILL.md.
10
11
  * At runtime this file lives at <package>/dist/lib/install-skill.js, so the
@@ -39,11 +40,20 @@ function skillsRootDir() {
39
40
  * a Cursor user who already installed for Claude Code sees the skill anyway.
40
41
  * The explicit target is for Cursor-only setups, and so `--agent cursor` names
41
42
  * the thing the user actually runs.
43
+ *
44
+ * `grok` is xAI's directory, ~/.grok/skills. xAI documents it as the
45
+ * user-level skills directory of Grok Build, its terminal agent
46
+ * (docs.x.ai/build/features/skills-plugins-marketplaces). xAI documents no
47
+ * directory for Grok Bot: a Bot's skills live in a library inside the app
48
+ * (docs.x.ai/grok-bot/skills-routines-and-automations), and whether a Bot's
49
+ * computer also reads ~/.grok/skills is not stated there. So the label is the
50
+ * directory's owner, "Grok", not one product.
42
51
  */
43
52
  const AGENTS = {
44
53
  claude: { dir: ".claude", label: "Claude Code" },
45
54
  codex: { dir: ".codex", label: "Codex" },
46
55
  cursor: { dir: ".cursor", label: "Cursor" },
56
+ grok: { dir: ".grok", label: "Grok" },
47
57
  };
48
58
  export const SKILL_TARGETS = Object.keys(AGENTS);
49
59
  /** Human-facing label for a target (used in init/output messages). */
@@ -274,8 +284,8 @@ export function installSkillFolder(name, target, options = {}) {
274
284
  * Runs on every CLI invocation (cheap: one file compare per installed skill
275
285
  * per target). It never installs for an agent the user hasn't opted into — it
276
286
  * only updates a skill that already exists, so a plain `npm update -g
277
- * @creator-notes/cnotes` is enough to get the latest skills for Claude, Codex
278
- * and Cursor without re-running `cnotes init` or `cnotes skills install`.
287
+ * @creator-notes/cnotes` is enough to get the latest skills for Claude, Codex,
288
+ * Cursor and Grok without re-running `cnotes init` or `cnotes skills install`.
279
289
  * Every catalog skill is refreshed, not only the core one: the catalog copies
280
290
  * used to be installed once and never again, so an agent could run a wayfind
281
291
  * or attention-planner from months earlier that taught a rule the core had
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@creator-notes/cnotes",
3
- "version": "0.146.0",
3
+ "version": "0.147.0",
4
4
  "description": "CLI for CreatorNotes — create notes, build canvases, search knowledge from the terminal",
5
5
  "type": "module",
6
6
  "bin": {