@tankpkg/cli 0.9.0 → 0.9.1
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/dist/bin/tank.js +29 -3
- package/dist/bin/tank.js.map +1 -1
- package/dist/{debug-logger-BJzuguP3.js → debug-logger-nDgSC2MM.js} +2 -2
- package/dist/{debug-logger-BJzuguP3.js.map → debug-logger-nDgSC2MM.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/bin/tank.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as VERSION, c as getConfigDir, i as USER_AGENT, n as flushLogs, o as logger, s as getConfig, t as authFlowLog, u as setConfig } from "../debug-logger-
|
|
2
|
+
import { a as VERSION, c as getConfigDir, i as USER_AGENT, n as flushLogs, o as logger, s as getConfig, t as authFlowLog, u as setConfig } from "../debug-logger-nDgSC2MM.js";
|
|
3
3
|
import { Command } from "commander";
|
|
4
4
|
import chalk from "chalk";
|
|
5
5
|
import fs from "node:fs";
|
|
@@ -3480,7 +3480,26 @@ program.command("scan").description("Scan a local skill for security issues with
|
|
|
3480
3480
|
process.exit(1);
|
|
3481
3481
|
}
|
|
3482
3482
|
});
|
|
3483
|
-
program.command("link").alias("ln").description("Link current skill
|
|
3483
|
+
program.command("link").alias("ln").description("Link current skill to all detected AI agents for local development").addHelpText("after", `
|
|
3484
|
+
Creates symlinks from each agent's skills directory to this skill source,
|
|
3485
|
+
so changes are reflected immediately without re-publishing.
|
|
3486
|
+
|
|
3487
|
+
Must be run from a directory containing a valid tank.json.
|
|
3488
|
+
|
|
3489
|
+
Supported agents:
|
|
3490
|
+
Claude Code ~/.claude/skills
|
|
3491
|
+
OpenCode ~/.config/opencode/skills
|
|
3492
|
+
Cursor ~/.cursor/skills
|
|
3493
|
+
Codex ~/.codex/skills
|
|
3494
|
+
OpenClaw ~/.openclaw/skills
|
|
3495
|
+
Universal ~/.agents/skills
|
|
3496
|
+
|
|
3497
|
+
Examples:
|
|
3498
|
+
$ cd my-skill && tank link Link to all detected agents
|
|
3499
|
+
$ tank doctor Verify link health
|
|
3500
|
+
$ tank unlink Remove all symlinks
|
|
3501
|
+
|
|
3502
|
+
See also: tank unlink, tank doctor`).action(async () => {
|
|
3484
3503
|
try {
|
|
3485
3504
|
await linkCommand();
|
|
3486
3505
|
} catch (err) {
|
|
@@ -3489,7 +3508,14 @@ program.command("link").alias("ln").description("Link current skill directory to
|
|
|
3489
3508
|
process.exit(1);
|
|
3490
3509
|
}
|
|
3491
3510
|
});
|
|
3492
|
-
program.command("unlink").description("Remove skill symlinks from AI agent directories").
|
|
3511
|
+
program.command("unlink").description("Remove skill symlinks from all AI agent directories").addHelpText("after", `
|
|
3512
|
+
Removes the symlinks created by \`tank link\` from every detected agent.
|
|
3513
|
+
Must be run from the same skill directory that was originally linked.
|
|
3514
|
+
|
|
3515
|
+
Examples:
|
|
3516
|
+
$ cd my-skill && tank unlink Remove links for this skill
|
|
3517
|
+
|
|
3518
|
+
See also: tank link, tank doctor`).action(async () => {
|
|
3493
3519
|
try {
|
|
3494
3520
|
await unlinkCommand();
|
|
3495
3521
|
} catch (err) {
|