@octen.ai/cli 0.1.8 → 0.1.9
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 +2 -0
- package/dist/commands/configureSkills.js +19 -14
- package/dist/util/detectClient.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -151,6 +151,8 @@ octen configure-skills --claude-code --set-key --api-key <key>
|
|
|
151
151
|
|
|
152
152
|
Supported clients: Claude Code, Cursor, Codex, OpenClaw, Hermes.
|
|
153
153
|
|
|
154
|
+
Claude Desktop reads the same `~/.claude/skills` as Claude Code, so `--claude-code` already installs skills the desktop app will use. `--claude-desktop` is accepted as an explicit alias for that shared target.
|
|
155
|
+
|
|
154
156
|
`--set-key` also writes OCTEN_API_KEY into the client's env config (Claude Code `~/.claude/settings.json`, Codex `config.toml`, OpenClaw `.env`); Cursor/Hermes print a shell-profile hint. The key comes from `--api-key` or the `OCTEN_API_KEY` environment variable.
|
|
155
157
|
|
|
156
158
|
Only clients detected as installed are configured; `--all` skips the rest, and an explicitly-named client that isn't detected is skipped unless you pass `--force`.
|
|
@@ -15,6 +15,7 @@ export function registerConfigureSkills(program, internal = {}) {
|
|
|
15
15
|
.description("Install Octen Agent Skills into AI clients")
|
|
16
16
|
.option("--all", "install into all supported clients")
|
|
17
17
|
.option("--claude-code", "install into Claude Code")
|
|
18
|
+
.option("--claude-desktop", "install for Claude Desktop (shares Claude Code's ~/.claude/skills)")
|
|
18
19
|
.option("--cursor", "install into Cursor")
|
|
19
20
|
.option("--codex", "install into Codex")
|
|
20
21
|
.option("--openclaw", "install into OpenClaw")
|
|
@@ -42,16 +43,9 @@ export function registerConfigureSkills(program, internal = {}) {
|
|
|
42
43
|
// package root, so ../../skills resolves to the package-root skills/ dir in both.
|
|
43
44
|
const bundledDir = fileURLToPath(new URL("../../skills", import.meta.url));
|
|
44
45
|
const cacheDir = join(home, ".cache/octen-cli/skills");
|
|
45
|
-
// Determine selected clients
|
|
46
|
-
const clientFlagMap = {
|
|
47
|
-
"claude-code": "claudeCode",
|
|
48
|
-
cursor: "cursor",
|
|
49
|
-
codex: "codex",
|
|
50
|
-
openclaw: "openclaw",
|
|
51
|
-
hermes: "hermes",
|
|
52
|
-
};
|
|
53
46
|
const anySelected = opts.all ||
|
|
54
47
|
opts.claudeCode ||
|
|
48
|
+
opts.claudeDesktop ||
|
|
55
49
|
opts.cursor ||
|
|
56
50
|
opts.codex ||
|
|
57
51
|
opts.openclaw ||
|
|
@@ -91,12 +85,20 @@ export function registerConfigureSkills(program, internal = {}) {
|
|
|
91
85
|
}
|
|
92
86
|
else {
|
|
93
87
|
// Explicit per-client flags: warn + skip not-installed unless --force.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
88
|
+
// --claude-desktop maps to claude-code: Claude Desktop reads the same
|
|
89
|
+
// ~/.claude/skills, so it's configured once there (deduped).
|
|
90
|
+
const wantedIds = new Set();
|
|
91
|
+
if (opts.claudeCode || opts.claudeDesktop)
|
|
92
|
+
wantedIds.add("claude-code");
|
|
93
|
+
if (opts.cursor)
|
|
94
|
+
wantedIds.add("cursor");
|
|
95
|
+
if (opts.codex)
|
|
96
|
+
wantedIds.add("codex");
|
|
97
|
+
if (opts.openclaw)
|
|
98
|
+
wantedIds.add("openclaw");
|
|
99
|
+
if (opts.hermes)
|
|
100
|
+
wantedIds.add("hermes");
|
|
101
|
+
const requested = SKILL_CLIENTS.filter((c) => wantedIds.has(c.id));
|
|
100
102
|
selected = requested.filter((c) => {
|
|
101
103
|
if (opts.force || isInstalled(c.id))
|
|
102
104
|
return true;
|
|
@@ -143,6 +145,9 @@ export function registerConfigureSkills(program, internal = {}) {
|
|
|
143
145
|
if (anyFailed) {
|
|
144
146
|
process.exitCode = 1;
|
|
145
147
|
}
|
|
148
|
+
if (opts.claudeDesktop) {
|
|
149
|
+
process.stdout.write("note: Claude Desktop reads ~/.claude/skills (shared with Claude Code) — installed skills apply to both.\n");
|
|
150
|
+
}
|
|
146
151
|
if (opts.setKey) {
|
|
147
152
|
const g = command.optsWithGlobals();
|
|
148
153
|
const key = g.apiKey || process.env.OCTEN_API_KEY;
|
|
@@ -32,7 +32,12 @@ export function isClientInstalled(id, opts) {
|
|
|
32
32
|
const home = opts?.home ?? os.homedir();
|
|
33
33
|
switch (id) {
|
|
34
34
|
case "claude-code":
|
|
35
|
-
|
|
35
|
+
// Covers the Claude Code CLI (binary / ~/.claude.json) AND the desktop app,
|
|
36
|
+
// which bundles the Claude Code engine and shares the same ~/.claude config.
|
|
37
|
+
return (binOnPath("claude") ||
|
|
38
|
+
existsSync(join(home, ".claude.json")) ||
|
|
39
|
+
appExists("Claude") ||
|
|
40
|
+
existsSync(join(home, "Library/Application Support/Claude/claude-code")));
|
|
36
41
|
case "cursor":
|
|
37
42
|
return binOnPath("cursor") || appExists("Cursor");
|
|
38
43
|
case "codex":
|