tuncss-plan-kit 0.5.0 → 0.6.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.
Files changed (3) hide show
  1. package/README.md +4 -2
  2. package/bin/cli.js +14 -3
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -54,7 +54,9 @@ Note: `agy changelog` is Antigravity's own built-in subcommand for release notes
54
54
 
55
55
  With `--global` the same files go to user-wide locations (`~/.claude/`, `~/.agents/`, `~/.codex/`, `~/.gemini/config/`).
56
56
 
57
- **Antigravity `--global` is a plain file copy to `~/.gemini/config/`** — a single location the desktop app, the `agy` CLI, and the IDE all read, so one install covers them all.
57
+ **Antigravity `--global` is a plain file copy to `~/.gemini/config/`** — a single location the desktop app, the `agy` CLI, and the IDE all read, so one install covers them all. (Antigravity's docs list `~/.gemini/antigravity-cli/skills/` for the CLI, but in practice `agy` reads `~/.gemini/config/skills/` and ignores that folder, so the kit writes only the one.)
58
+
59
+ `npx tuncss-plan-kit init --global` with no `--target` looks at your home directory instead of the current one and installs for every agent it finds: `~/.claude/` → Claude Code, `~/.codex/` → Codex CLI, `~/.gemini/config/` → Antigravity.
58
60
 
59
61
  Project-local is still the default for all three — recommended unless you specifically want the kit available everywhere.
60
62
 
@@ -106,7 +108,7 @@ npx tuncss-plan-kit init [--target=<list>] [--global] [--force]
106
108
 
107
109
  | Flag | Effect |
108
110
  |------|--------|
109
- | `--target=<list>` | Comma-separated. Values: `claude`, `codex`, `antigravity`, `all`. Auto-detected if omitted. |
111
+ | `--target=<list>` | Comma-separated. Values: `claude`, `codex`, `antigravity`, `all`. Auto-detected if omitted (from the current directory, or from your home directory with `--global`). |
110
112
  | `--global` | Install to user-wide locations instead of the current project. |
111
113
  | `--force` | Overwrite existing skill/command files without warning. |
112
114
 
package/bin/cli.js CHANGED
@@ -101,7 +101,8 @@ Commands:
101
101
  Options:
102
102
  --target Comma-separated platforms to install for. Supported:
103
103
  claude, codex, antigravity, all
104
- If omitted, auto-detects from the current directory.
104
+ If omitted, auto-detects from the current directory
105
+ (or from your home directory with --global).
105
106
  --global Install to user-wide locations.
106
107
  --force Overwrite existing skill/command files without warning.
107
108
  (Instruction-file marker blocks are always idempotent.)
@@ -139,6 +140,16 @@ function detectTargets(cwd) {
139
140
  return [...found];
140
141
  }
141
142
 
143
+ // With --global the project directory says nothing about which agents the user
144
+ // runs; their home directory does.
145
+ function detectGlobalTargets(home) {
146
+ const found = [];
147
+ if (exists(path.join(home, ".claude"))) found.push("claude");
148
+ if (exists(path.join(home, ".codex"))) found.push("codex");
149
+ if (exists(path.join(home, ".gemini", "config"))) found.push("antigravity");
150
+ return found;
151
+ }
152
+
142
153
  function ensureDir(dir) {
143
154
  fs.mkdirSync(dir, { recursive: true });
144
155
  }
@@ -284,10 +295,10 @@ function init(args) {
284
295
  targets = SUPPORTED.slice();
285
296
  }
286
297
  if (!targets) {
287
- targets = detectTargets(cwd);
298
+ targets = args.global ? detectGlobalTargets(os.homedir()) : detectTargets(cwd);
288
299
  if (targets.length === 0) {
289
300
  console.error(
290
- "No supported platform detected in this directory.\n" +
301
+ `No supported platform detected in ${args.global ? "your home directory" : "this directory"}.\n` +
291
302
  "Specify one explicitly, e.g.: npx tuncss-plan-kit init --target=claude\n" +
292
303
  "Or install for all three: npx tuncss-plan-kit init --target=all"
293
304
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tuncss-plan-kit",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "Four-skill kit for spec-driven development: brainstorm an idea into a spec, turn the spec into an executable plan, hand the plan off to another LLM agent, and record what changed.",
6
6
  "bin": {