coding-friend-cli 1.20.1 → 1.21.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/dist/{chunk-V23HBD3E.js → chunk-3KXYEC2T.js} +6 -4
- package/dist/{chunk-JFGLNTZI.js → chunk-5UEY7HQX.js} +6 -4
- package/dist/chunk-5UVDWG5L.js +28 -0
- package/dist/{chunk-C5LYVVEI.js → chunk-BIX7AJU3.js} +6 -4
- package/dist/{chunk-RWUTFVRB.js → chunk-DO6FV6BL.js} +4 -30
- package/dist/{chunk-CYQU33FY.js → chunk-EVGXUDX4.js} +2 -1
- package/dist/{chunk-7CAIGH2Y.js → chunk-HEBLANJO.js} +37 -1
- package/dist/{chunk-PHQK2MMO.js → chunk-PDVSGGH6.js} +8 -6
- package/dist/{chunk-POC2WHU2.js → chunk-PRIH34UB.js} +4 -0
- package/dist/{chunk-NEQZP5D4.js → chunk-PYTEAC6K.js} +3 -1
- package/dist/{chunk-QMD7P67N.js → chunk-SIQJPT47.js} +5 -3
- package/dist/{chunk-ORACWEDN.js → chunk-TRIALFOQ.js} +17 -10
- package/dist/{config-RLSM3UAF.js → config-5I3XJEEL.js} +13 -11
- package/dist/{dev-7DLYIXBO.js → dev-4A5CTBGK.js} +13 -10
- package/dist/{disable-XYZRE3TD.js → disable-FNMRPUO7.js} +5 -4
- package/dist/{enable-3NZBQWLQ.js → enable-HUKTMK5U.js} +5 -4
- package/dist/{host-QDWBFJB2.js → host-V5O3PDCF.js} +5 -4
- package/dist/index.js +37 -31
- package/dist/{init-ONUC6QMM.js → init-3XMC6YJI.js} +33 -15
- package/dist/{install-35IWHBIS.js → install-5ZBHH2OM.js} +9 -8
- package/dist/{mcp-GFIOFXOL.js → mcp-U34LFD34.js} +5 -4
- package/dist/{memory-N6Q2ENBI.js → memory-PDENAODU.js} +10 -8
- package/dist/{permission-Z3LOBJ4X.js → permission-BEC6YZQA.js} +15 -8
- package/dist/postinstall.js +1 -1
- package/dist/{session-JGRF5SNX.js → session-ZDJ2APGL.js} +25 -13
- package/dist/{status-WK3TBDN7.js → status-F6WASK7N.js} +14 -12
- package/dist/{statusline-6Y2EBAFQ.js → statusline-AISH77XP.js} +10 -4
- package/dist/{uninstall-NNCEKPIE.js → uninstall-RJ6SBB76.js} +10 -8
- package/dist/update-536C3YG7.js +22 -0
- package/dist/update-check-L5TNWT2J.js +91 -0
- package/package.json +1 -1
- package/dist/update-NZ2HRWEN.js +0 -21
package/dist/index.js
CHANGED
|
@@ -14,54 +14,54 @@ program.name("cf").description(
|
|
|
14
14
|
"coding-friend CLI \u2014 host learning docs, setup MCP, init projects"
|
|
15
15
|
).version(pkg.version, "-v, --version");
|
|
16
16
|
program.command("install").description("Install the Coding Friend plugin into Claude Code").option("--user", "Install at user scope (all projects)").option("--global", "Install at user scope (all projects)").option("--project", "Install at project scope (shared via git)").option("--local", "Install at local scope (this machine only)").action(async (opts) => {
|
|
17
|
-
const { installCommand } = await import("./install-
|
|
17
|
+
const { installCommand } = await import("./install-5ZBHH2OM.js");
|
|
18
18
|
await installCommand(opts);
|
|
19
19
|
});
|
|
20
20
|
program.command("uninstall").description("Uninstall the Coding Friend plugin from Claude Code").option("--user", "Uninstall from user scope (all projects)").option("--global", "Uninstall from user scope (all projects)").option("--project", "Uninstall from project scope").option("--local", "Uninstall from local scope").action(async (opts) => {
|
|
21
|
-
const { uninstallCommand } = await import("./uninstall-
|
|
21
|
+
const { uninstallCommand } = await import("./uninstall-RJ6SBB76.js");
|
|
22
22
|
await uninstallCommand(opts);
|
|
23
23
|
});
|
|
24
24
|
program.command("disable").description("Disable the Coding Friend plugin without uninstalling").option("--user", "Disable at user scope (all projects)").option("--global", "Disable at user scope (all projects)").option("--project", "Disable at project scope").option("--local", "Disable at local scope").action(async (opts) => {
|
|
25
|
-
const { disableCommand } = await import("./disable-
|
|
25
|
+
const { disableCommand } = await import("./disable-FNMRPUO7.js");
|
|
26
26
|
await disableCommand(opts);
|
|
27
27
|
});
|
|
28
28
|
program.command("enable").description("Re-enable the Coding Friend plugin").option("--user", "Enable at user scope (all projects)").option("--global", "Enable at user scope (all projects)").option("--project", "Enable at project scope").option("--local", "Enable at local scope").action(async (opts) => {
|
|
29
|
-
const { enableCommand } = await import("./enable-
|
|
29
|
+
const { enableCommand } = await import("./enable-HUKTMK5U.js");
|
|
30
30
|
await enableCommand(opts);
|
|
31
31
|
});
|
|
32
32
|
program.command("init").description("Initialize coding-friend in current project").action(async () => {
|
|
33
|
-
const { initCommand } = await import("./init-
|
|
33
|
+
const { initCommand } = await import("./init-3XMC6YJI.js");
|
|
34
34
|
await initCommand();
|
|
35
35
|
});
|
|
36
36
|
program.command("config").description("Manage Coding Friend configuration").action(async () => {
|
|
37
|
-
const { configCommand } = await import("./config-
|
|
37
|
+
const { configCommand } = await import("./config-5I3XJEEL.js");
|
|
38
38
|
await configCommand();
|
|
39
39
|
});
|
|
40
40
|
program.command("host").description("Build and serve learning docs as a static website").argument("[path]", "path to docs folder").option("-p, --port <port>", "port number", "3333").action(async (path, opts) => {
|
|
41
|
-
const { hostCommand } = await import("./host-
|
|
41
|
+
const { hostCommand } = await import("./host-V5O3PDCF.js");
|
|
42
42
|
await hostCommand(path, opts);
|
|
43
43
|
});
|
|
44
44
|
program.command("mcp").description("Setup MCP server for learning docs").argument("[path]", "path to docs folder").action(async (path) => {
|
|
45
|
-
const { mcpCommand } = await import("./mcp-
|
|
45
|
+
const { mcpCommand } = await import("./mcp-U34LFD34.js");
|
|
46
46
|
await mcpCommand(path);
|
|
47
47
|
});
|
|
48
48
|
program.command("permission").description("Manage Claude Code permission rules for Coding Friend").option("--all", "Apply all recommended permissions without prompts").option("--user", "Save to user-level settings (~/.claude/settings.json)").option(
|
|
49
49
|
"--project",
|
|
50
50
|
"Save to project-level settings (.claude/settings.local.json)"
|
|
51
51
|
).action(async (opts) => {
|
|
52
|
-
const { permissionCommand } = await import("./permission-
|
|
52
|
+
const { permissionCommand } = await import("./permission-BEC6YZQA.js");
|
|
53
53
|
await permissionCommand(opts);
|
|
54
54
|
});
|
|
55
55
|
program.command("statusline").description("Setup coding-friend statusline in Claude Code").action(async () => {
|
|
56
|
-
const { statuslineCommand } = await import("./statusline-
|
|
56
|
+
const { statuslineCommand } = await import("./statusline-AISH77XP.js");
|
|
57
57
|
await statuslineCommand();
|
|
58
58
|
});
|
|
59
59
|
program.command("update").description("Update coding-friend plugin, CLI, and statusline").option("--cli", "Update only the CLI (npm package)").option("--plugin", "Update only the Claude Code plugin").option("--statusline", "Update only the statusline").option("--user", "Update plugin at user scope (all projects)").option("--global", "Update plugin at user scope (all projects)").option("--project", "Update plugin at project scope").option("--local", "Update plugin at local scope").action(async (opts) => {
|
|
60
|
-
const { updateCommand } = await import("./update-
|
|
60
|
+
const { updateCommand } = await import("./update-536C3YG7.js");
|
|
61
61
|
await updateCommand(opts);
|
|
62
62
|
});
|
|
63
63
|
program.command("status").description("Show comprehensive Coding Friend status").action(async () => {
|
|
64
|
-
const { statusCommand } = await import("./status-
|
|
64
|
+
const { statusCommand } = await import("./status-F6WASK7N.js");
|
|
65
65
|
await statusCommand();
|
|
66
66
|
});
|
|
67
67
|
var session = program.command("session").description("Save and load Claude Code sessions across machines");
|
|
@@ -76,11 +76,11 @@ session.command("save").description("Save current Claude Code session to sync fo
|
|
|
76
76
|
"-s, --session-id <id>",
|
|
77
77
|
"session UUID to save (default: auto-detect newest)"
|
|
78
78
|
).option("-l, --label <label>", "label for this session").action(async (opts) => {
|
|
79
|
-
const { sessionSaveCommand } = await import("./session-
|
|
79
|
+
const { sessionSaveCommand } = await import("./session-ZDJ2APGL.js");
|
|
80
80
|
await sessionSaveCommand(opts);
|
|
81
81
|
});
|
|
82
82
|
session.command("load").description("Load a saved session from sync folder").action(async () => {
|
|
83
|
-
const { sessionLoadCommand } = await import("./session-
|
|
83
|
+
const { sessionLoadCommand } = await import("./session-ZDJ2APGL.js");
|
|
84
84
|
await sessionLoadCommand();
|
|
85
85
|
});
|
|
86
86
|
var memory = program.command("memory").description("AI memory system \u2014 store and search project knowledge");
|
|
@@ -100,43 +100,43 @@ Memory subcommands:
|
|
|
100
100
|
memory mcp Show MCP server setup instructions`
|
|
101
101
|
);
|
|
102
102
|
memory.command("status").description("Show memory system status").action(async () => {
|
|
103
|
-
const { memoryStatusCommand } = await import("./memory-
|
|
103
|
+
const { memoryStatusCommand } = await import("./memory-PDENAODU.js");
|
|
104
104
|
await memoryStatusCommand();
|
|
105
105
|
});
|
|
106
106
|
memory.command("search").description("Search memories by query").argument("<query>", "search query").action(async (query) => {
|
|
107
|
-
const { memorySearchCommand } = await import("./memory-
|
|
107
|
+
const { memorySearchCommand } = await import("./memory-PDENAODU.js");
|
|
108
108
|
await memorySearchCommand(query);
|
|
109
109
|
});
|
|
110
110
|
memory.command("list").description(
|
|
111
111
|
"List memories in current project, or all projects with --projects"
|
|
112
112
|
).option("--projects", "List all project databases with size and metadata").action(async (opts) => {
|
|
113
|
-
const { memoryListCommand } = await import("./memory-
|
|
113
|
+
const { memoryListCommand } = await import("./memory-PDENAODU.js");
|
|
114
114
|
await memoryListCommand(opts);
|
|
115
115
|
});
|
|
116
116
|
memory.command("init").description(
|
|
117
117
|
"Initialize memory system \u2014 interactive wizard (first time) or config menu"
|
|
118
118
|
).action(async () => {
|
|
119
|
-
const { memoryInitCommand } = await import("./memory-
|
|
119
|
+
const { memoryInitCommand } = await import("./memory-PDENAODU.js");
|
|
120
120
|
await memoryInitCommand();
|
|
121
121
|
});
|
|
122
122
|
memory.command("config").description("Configure memory system settings").action(async () => {
|
|
123
|
-
const { memoryConfigCommand } = await import("./memory-
|
|
123
|
+
const { memoryConfigCommand } = await import("./memory-PDENAODU.js");
|
|
124
124
|
await memoryConfigCommand();
|
|
125
125
|
});
|
|
126
126
|
memory.command("start-daemon").description("Start the memory daemon (Tier 2 \u2014 MiniSearch)").action(async () => {
|
|
127
|
-
const { memoryStartDaemonCommand } = await import("./memory-
|
|
127
|
+
const { memoryStartDaemonCommand } = await import("./memory-PDENAODU.js");
|
|
128
128
|
await memoryStartDaemonCommand();
|
|
129
129
|
});
|
|
130
130
|
memory.command("stop-daemon").description("Stop the memory daemon").action(async () => {
|
|
131
|
-
const { memoryStopDaemonCommand } = await import("./memory-
|
|
131
|
+
const { memoryStopDaemonCommand } = await import("./memory-PDENAODU.js");
|
|
132
132
|
await memoryStopDaemonCommand();
|
|
133
133
|
});
|
|
134
134
|
memory.command("rebuild").description("Rebuild the daemon search index").action(async () => {
|
|
135
|
-
const { memoryRebuildCommand } = await import("./memory-
|
|
135
|
+
const { memoryRebuildCommand } = await import("./memory-PDENAODU.js");
|
|
136
136
|
await memoryRebuildCommand();
|
|
137
137
|
});
|
|
138
138
|
memory.command("mcp").description("Show MCP server setup instructions").action(async () => {
|
|
139
|
-
const { memoryMcpCommand } = await import("./memory-
|
|
139
|
+
const { memoryMcpCommand } = await import("./memory-PDENAODU.js");
|
|
140
140
|
await memoryMcpCommand();
|
|
141
141
|
});
|
|
142
142
|
memory.command("rm").description("Remove a project database").option("--project-id <id>", "Project ID to remove").option("--all", "Remove all project databases").option(
|
|
@@ -144,7 +144,7 @@ memory.command("rm").description("Remove a project database").option("--project-
|
|
|
144
144
|
"Remove orphaned projects (source dir missing or 0 memories)"
|
|
145
145
|
).action(
|
|
146
146
|
async (opts) => {
|
|
147
|
-
const { memoryRmCommand } = await import("./memory-
|
|
147
|
+
const { memoryRmCommand } = await import("./memory-PDENAODU.js");
|
|
148
148
|
await memoryRmCommand(opts);
|
|
149
149
|
}
|
|
150
150
|
);
|
|
@@ -161,35 +161,41 @@ Dev subcommands:
|
|
|
161
161
|
dev update [path] Update local dev plugin to latest version`
|
|
162
162
|
);
|
|
163
163
|
dev.command("on").description("Switch to local plugin source").argument("[path]", "path to local coding-friend repo (default: cwd)").action(async (path) => {
|
|
164
|
-
const { devOnCommand } = await import("./dev-
|
|
164
|
+
const { devOnCommand } = await import("./dev-4A5CTBGK.js");
|
|
165
165
|
await devOnCommand(path);
|
|
166
166
|
});
|
|
167
167
|
dev.command("off").description("Switch back to remote marketplace").action(async () => {
|
|
168
|
-
const { devOffCommand } = await import("./dev-
|
|
168
|
+
const { devOffCommand } = await import("./dev-4A5CTBGK.js");
|
|
169
169
|
await devOffCommand();
|
|
170
170
|
});
|
|
171
171
|
dev.command("status").description("Show current dev mode").action(async () => {
|
|
172
|
-
const { devStatusCommand } = await import("./dev-
|
|
172
|
+
const { devStatusCommand } = await import("./dev-4A5CTBGK.js");
|
|
173
173
|
await devStatusCommand();
|
|
174
174
|
});
|
|
175
175
|
dev.command("sync").description(
|
|
176
176
|
"Copy local source files to plugin cache (no version bump needed)"
|
|
177
177
|
).action(async () => {
|
|
178
|
-
const { devSyncCommand } = await import("./dev-
|
|
178
|
+
const { devSyncCommand } = await import("./dev-4A5CTBGK.js");
|
|
179
179
|
await devSyncCommand();
|
|
180
180
|
});
|
|
181
181
|
dev.command("restart").description("Reinstall local dev plugin (off + on)").argument(
|
|
182
182
|
"[path]",
|
|
183
183
|
"path to local coding-friend repo (default: saved path or cwd)"
|
|
184
184
|
).action(async (path) => {
|
|
185
|
-
const { devRestartCommand } = await import("./dev-
|
|
185
|
+
const { devRestartCommand } = await import("./dev-4A5CTBGK.js");
|
|
186
186
|
await devRestartCommand(path);
|
|
187
187
|
});
|
|
188
188
|
dev.command("update").description("Update local dev plugin to latest version (off + on)").argument(
|
|
189
189
|
"[path]",
|
|
190
190
|
"path to local coding-friend repo (default: saved path or cwd)"
|
|
191
191
|
).action(async (path) => {
|
|
192
|
-
const { devUpdateCommand } = await import("./dev-
|
|
192
|
+
const { devUpdateCommand } = await import("./dev-4A5CTBGK.js");
|
|
193
193
|
await devUpdateCommand(path);
|
|
194
194
|
});
|
|
195
|
-
program.
|
|
195
|
+
program.hook("postAction", async () => {
|
|
196
|
+
const topCmd = process.argv[2];
|
|
197
|
+
if (topCmd === "update") return;
|
|
198
|
+
const { checkAndNotifyCliUpdate } = await import("./update-check-L5TNWT2J.js");
|
|
199
|
+
checkAndNotifyCliUpdate(pkg.version);
|
|
200
|
+
});
|
|
201
|
+
await program.parseAsync();
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getExistingRules,
|
|
7
7
|
getMissingRules,
|
|
8
8
|
logPluginScriptWarning
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-HEBLANJO.js";
|
|
10
10
|
import {
|
|
11
11
|
getLibPath
|
|
12
12
|
} from "./chunk-RZRT7NGT.js";
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
saveStatuslineConfig,
|
|
17
17
|
selectStatuslineComponents,
|
|
18
18
|
writeStatuslineSettings
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-TRIALFOQ.js";
|
|
20
20
|
import {
|
|
21
21
|
DEFAULT_CONFIG
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-PRIH34UB.js";
|
|
23
23
|
import {
|
|
24
24
|
ensureShellCompletion,
|
|
25
25
|
hasShellCompletion
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-PYTEAC6K.js";
|
|
27
27
|
import {
|
|
28
28
|
BACK,
|
|
29
29
|
applyDocsDirChange,
|
|
@@ -34,21 +34,23 @@ import {
|
|
|
34
34
|
getScopeLabel,
|
|
35
35
|
injectBackChoice,
|
|
36
36
|
showConfigHint
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-BIX7AJU3.js";
|
|
38
38
|
import {
|
|
39
39
|
commandExists,
|
|
40
40
|
run
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-EVGXUDX4.js";
|
|
42
|
+
import {
|
|
43
|
+
mergeJson,
|
|
44
|
+
readJson,
|
|
45
|
+
writeJson
|
|
46
|
+
} from "./chunk-5UVDWG5L.js";
|
|
42
47
|
import {
|
|
43
48
|
claudeLocalSettingsPath,
|
|
44
49
|
claudeSettingsPath,
|
|
45
50
|
globalConfigPath,
|
|
46
51
|
localConfigPath,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
resolvePath,
|
|
50
|
-
writeJson
|
|
51
|
-
} from "./chunk-RWUTFVRB.js";
|
|
52
|
+
resolvePath
|
|
53
|
+
} from "./chunk-DO6FV6BL.js";
|
|
52
54
|
import {
|
|
53
55
|
log
|
|
54
56
|
} from "./chunk-W5CD7WTX.js";
|
|
@@ -108,7 +110,14 @@ function paddedScopeLabel(scope) {
|
|
|
108
110
|
}
|
|
109
111
|
function printSetupStatus(globalCfg, localCfg, gitAvailable) {
|
|
110
112
|
const docsDir = getDocsDir(globalCfg, localCfg);
|
|
111
|
-
const subfolders = [
|
|
113
|
+
const subfolders = [
|
|
114
|
+
"plans",
|
|
115
|
+
"memory",
|
|
116
|
+
"research",
|
|
117
|
+
"learn",
|
|
118
|
+
"sessions",
|
|
119
|
+
"reviews"
|
|
120
|
+
];
|
|
112
121
|
const folderStatus = subfolders.map((sub) => ({
|
|
113
122
|
name: `${docsDir}/${sub}`,
|
|
114
123
|
exists: existsSync(`${docsDir}/${sub}`)
|
|
@@ -229,7 +238,8 @@ async function stepDocsDir(globalCfg, localCfg) {
|
|
|
229
238
|
"memory",
|
|
230
239
|
"research",
|
|
231
240
|
"learn",
|
|
232
|
-
"sessions"
|
|
241
|
+
"sessions",
|
|
242
|
+
"reviews"
|
|
233
243
|
];
|
|
234
244
|
ensureDocsFolders(globalValue, DOCS_SUBFOLDERS2);
|
|
235
245
|
return;
|
|
@@ -249,7 +259,14 @@ async function stepDocsDir(globalCfg, localCfg) {
|
|
|
249
259
|
log.dim("Skipped docsDir.");
|
|
250
260
|
return;
|
|
251
261
|
}
|
|
252
|
-
const DOCS_SUBFOLDERS = [
|
|
262
|
+
const DOCS_SUBFOLDERS = [
|
|
263
|
+
"plans",
|
|
264
|
+
"memory",
|
|
265
|
+
"research",
|
|
266
|
+
"learn",
|
|
267
|
+
"sessions",
|
|
268
|
+
"reviews"
|
|
269
|
+
];
|
|
253
270
|
applyDocsDirChange(value, currentValue, scope, DOCS_SUBFOLDERS);
|
|
254
271
|
writeToScope(scope, { docsDir: value });
|
|
255
272
|
}
|
|
@@ -289,6 +306,7 @@ async function stepGitignore(docsDir) {
|
|
|
289
306
|
`${docsDir}/research/`,
|
|
290
307
|
`${docsDir}/learn/`,
|
|
291
308
|
`${docsDir}/sessions/`,
|
|
309
|
+
`${docsDir}/reviews/`,
|
|
292
310
|
".coding-friend/"
|
|
293
311
|
];
|
|
294
312
|
let entries = allEntries;
|
|
@@ -958,7 +976,7 @@ async function initCommand() {
|
|
|
958
976
|
console.log();
|
|
959
977
|
log.congrats("Setup complete!");
|
|
960
978
|
log.dim(
|
|
961
|
-
"Available commands: /cf-ask, /cf-plan, /cf-fix, /cf-commit, /cf-review, /cf-ship, /cf-optimize, /cf-scan, /cf-remember, /cf-learn, /cf-research, /cf-session, /cf-help"
|
|
979
|
+
"Available commands: /cf-ask, /cf-plan, /cf-fix, /cf-commit, /cf-review, /cf-review-out, /cf-review-in, /cf-ship, /cf-optimize, /cf-scan, /cf-remember, /cf-learn, /cf-research, /cf-session, /cf-help"
|
|
962
980
|
);
|
|
963
981
|
}
|
|
964
982
|
export {
|
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLatestVersion,
|
|
3
3
|
semverCompare
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PDVSGGH6.js";
|
|
5
5
|
import {
|
|
6
6
|
enableMarketplaceAutoUpdate,
|
|
7
7
|
isMarketplaceRegistered,
|
|
8
8
|
isPluginDisabled
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5UEY7HQX.js";
|
|
10
10
|
import {
|
|
11
11
|
getInstalledVersion
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-TRIALFOQ.js";
|
|
13
|
+
import "./chunk-PRIH34UB.js";
|
|
14
14
|
import {
|
|
15
15
|
ensureShellCompletion
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PYTEAC6K.js";
|
|
17
17
|
import {
|
|
18
18
|
resolveScope
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BIX7AJU3.js";
|
|
20
20
|
import {
|
|
21
21
|
commandExists,
|
|
22
22
|
run
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EVGXUDX4.js";
|
|
24
|
+
import "./chunk-5UVDWG5L.js";
|
|
24
25
|
import {
|
|
25
26
|
devStatePath
|
|
26
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-DO6FV6BL.js";
|
|
27
28
|
import {
|
|
28
29
|
log
|
|
29
30
|
} from "./chunk-W5CD7WTX.js";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveDocsDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SIQJPT47.js";
|
|
4
4
|
import {
|
|
5
5
|
getLibPath
|
|
6
6
|
} from "./chunk-RZRT7NGT.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-PRIH34UB.js";
|
|
8
8
|
import {
|
|
9
9
|
run
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-EVGXUDX4.js";
|
|
11
|
+
import "./chunk-5UVDWG5L.js";
|
|
12
|
+
import "./chunk-DO6FV6BL.js";
|
|
12
13
|
import {
|
|
13
14
|
log
|
|
14
15
|
} from "./chunk-W5CD7WTX.js";
|
|
@@ -5,27 +5,29 @@ import {
|
|
|
5
5
|
editMemoryEmbedding,
|
|
6
6
|
editMemoryTier,
|
|
7
7
|
memoryConfigMenu
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3KXYEC2T.js";
|
|
9
9
|
import {
|
|
10
10
|
loadConfig,
|
|
11
11
|
resolveMemoryDir
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-SIQJPT47.js";
|
|
13
13
|
import {
|
|
14
14
|
getLibPath
|
|
15
15
|
} from "./chunk-RZRT7NGT.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-PRIH34UB.js";
|
|
17
17
|
import {
|
|
18
18
|
showConfigHint
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-BIX7AJU3.js";
|
|
20
20
|
import {
|
|
21
21
|
run,
|
|
22
22
|
runWithStderr
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-EVGXUDX4.js";
|
|
24
24
|
import {
|
|
25
|
-
globalConfigPath,
|
|
26
|
-
localConfigPath,
|
|
27
25
|
readJson
|
|
28
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-5UVDWG5L.js";
|
|
27
|
+
import {
|
|
28
|
+
globalConfigPath,
|
|
29
|
+
localConfigPath
|
|
30
|
+
} from "./chunk-DO6FV6BL.js";
|
|
29
31
|
import {
|
|
30
32
|
log
|
|
31
33
|
} from "./chunk-W5CD7WTX.js";
|
|
@@ -2,15 +2,17 @@ import {
|
|
|
2
2
|
STATIC_RULES,
|
|
3
3
|
applyPermissions,
|
|
4
4
|
cleanupStalePluginRules,
|
|
5
|
+
extractTag,
|
|
5
6
|
getAllRules,
|
|
6
7
|
getExistingRules,
|
|
7
8
|
groupByCategory,
|
|
8
9
|
logPluginScriptWarning
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-HEBLANJO.js";
|
|
11
|
+
import "./chunk-5UVDWG5L.js";
|
|
10
12
|
import {
|
|
11
13
|
claudeLocalSettingsPath,
|
|
12
14
|
claudeSettingsPath
|
|
13
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DO6FV6BL.js";
|
|
14
16
|
import {
|
|
15
17
|
log
|
|
16
18
|
} from "./chunk-W5CD7WTX.js";
|
|
@@ -113,12 +115,17 @@ async function interactiveFlow(allRules, existing) {
|
|
|
113
115
|
const categoryRules = groups.get(chosen);
|
|
114
116
|
const selected = await checkbox({
|
|
115
117
|
message: `${chosen} permissions:`,
|
|
116
|
-
choices: categoryRules.map((rule) =>
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
118
|
+
choices: categoryRules.map((rule) => {
|
|
119
|
+
const tag = extractTag(rule.description);
|
|
120
|
+
const colorFn = tag ? TAG_COLORS[tag] ?? chalk.cyan : chalk.cyan;
|
|
121
|
+
const prefix = tag ? `${colorFn(tag)} ` : "";
|
|
122
|
+
return {
|
|
123
|
+
name: `${prefix}${rule.rule}`,
|
|
124
|
+
value: rule.rule,
|
|
125
|
+
checked: enabled.has(rule.rule),
|
|
126
|
+
description: colorDescription(rule.description)
|
|
127
|
+
};
|
|
128
|
+
})
|
|
122
129
|
});
|
|
123
130
|
for (const rule of categoryRules) {
|
|
124
131
|
if (selected.includes(rule.rule)) {
|
package/dist/postinstall.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadConfig
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-SIQJPT47.js";
|
|
4
|
+
import "./chunk-PRIH34UB.js";
|
|
5
5
|
import {
|
|
6
|
-
claudeSessionDir,
|
|
7
|
-
encodeProjectPath,
|
|
8
6
|
readJson,
|
|
9
|
-
resolvePath,
|
|
10
7
|
writeJson
|
|
11
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-5UVDWG5L.js";
|
|
9
|
+
import {
|
|
10
|
+
claudeSessionDir,
|
|
11
|
+
encodeProjectPath,
|
|
12
|
+
resolvePath
|
|
13
|
+
} from "./chunk-DO6FV6BL.js";
|
|
12
14
|
import {
|
|
13
15
|
log
|
|
14
16
|
} from "./chunk-W5CD7WTX.js";
|
|
@@ -70,13 +72,23 @@ function listSyncedSessions(syncDir) {
|
|
|
70
72
|
);
|
|
71
73
|
}
|
|
72
74
|
function remapProjectPath(originalPath, currentHome) {
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
75
|
+
const unixPattern = /^(\/(?:Users|home)\/[^/]+)(\/.*)?$/;
|
|
76
|
+
const unixMatch = originalPath.match(unixPattern);
|
|
77
|
+
if (unixMatch) {
|
|
78
|
+
const origHomeDir = unixMatch[1];
|
|
79
|
+
const rest = unixMatch[2] ?? "";
|
|
80
|
+
if (origHomeDir === currentHome) return originalPath;
|
|
81
|
+
return currentHome + rest;
|
|
82
|
+
}
|
|
83
|
+
const winPattern = /^([A-Za-z]:\\Users\\[^\\]+)(\\.*)?$/;
|
|
84
|
+
const winMatch = originalPath.match(winPattern);
|
|
85
|
+
if (winMatch) {
|
|
86
|
+
const origHomeDir = winMatch[1];
|
|
87
|
+
const rest = winMatch[2] ?? "";
|
|
88
|
+
if (origHomeDir === currentHome) return originalPath;
|
|
89
|
+
return currentHome + rest;
|
|
90
|
+
}
|
|
91
|
+
return originalPath;
|
|
80
92
|
}
|
|
81
93
|
function saveSession(opts) {
|
|
82
94
|
const { jsonlPath, sessionId, label, projectPath, syncDir, previewText } = opts;
|
|
@@ -1,36 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveMemoryDir
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SIQJPT47.js";
|
|
4
4
|
import {
|
|
5
5
|
getCliVersion,
|
|
6
6
|
getLatestCliVersion,
|
|
7
7
|
getLatestVersion,
|
|
8
8
|
semverCompare
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PDVSGGH6.js";
|
|
10
10
|
import {
|
|
11
11
|
detectPluginScope,
|
|
12
12
|
isPluginDisabled
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5UEY7HQX.js";
|
|
14
14
|
import {
|
|
15
15
|
getExistingRules
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-HEBLANJO.js";
|
|
17
17
|
import {
|
|
18
18
|
getLibPath
|
|
19
19
|
} from "./chunk-RZRT7NGT.js";
|
|
20
20
|
import {
|
|
21
21
|
getInstalledVersion
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-TRIALFOQ.js";
|
|
23
|
+
import "./chunk-PRIH34UB.js";
|
|
24
|
+
import "./chunk-PYTEAC6K.js";
|
|
25
|
+
import "./chunk-BIX7AJU3.js";
|
|
26
|
+
import "./chunk-EVGXUDX4.js";
|
|
27
|
+
import {
|
|
28
|
+
readJson
|
|
29
|
+
} from "./chunk-5UVDWG5L.js";
|
|
27
30
|
import {
|
|
28
31
|
claudeSettingsPath,
|
|
29
32
|
devStatePath,
|
|
30
33
|
globalConfigPath,
|
|
31
|
-
localConfigPath
|
|
32
|
-
|
|
33
|
-
} from "./chunk-RWUTFVRB.js";
|
|
34
|
+
localConfigPath
|
|
35
|
+
} from "./chunk-DO6FV6BL.js";
|
|
34
36
|
import "./chunk-W5CD7WTX.js";
|
|
35
37
|
|
|
36
38
|
// src/commands/status.ts
|
|
@@ -4,14 +4,15 @@ import {
|
|
|
4
4
|
saveStatuslineConfig,
|
|
5
5
|
selectStatuslineComponents,
|
|
6
6
|
writeStatuslineSettings
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TRIALFOQ.js";
|
|
8
8
|
import {
|
|
9
9
|
ALL_COMPONENT_IDS
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PRIH34UB.js";
|
|
11
11
|
import {
|
|
12
12
|
commandExists
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-EVGXUDX4.js";
|
|
14
|
+
import "./chunk-5UVDWG5L.js";
|
|
15
|
+
import "./chunk-DO6FV6BL.js";
|
|
15
16
|
import {
|
|
16
17
|
log
|
|
17
18
|
} from "./chunk-W5CD7WTX.js";
|
|
@@ -52,6 +53,11 @@ async function statuslineCommand() {
|
|
|
52
53
|
);
|
|
53
54
|
}
|
|
54
55
|
}
|
|
56
|
+
if (components.includes("account") && !components.includes("rate_limit") && !commandExists("jq")) {
|
|
57
|
+
log.warn(
|
|
58
|
+
"Account info requires jq. Install it first, or the statusline will skip account info."
|
|
59
|
+
);
|
|
60
|
+
}
|
|
55
61
|
saveStatuslineConfig(components);
|
|
56
62
|
writeStatuslineSettings(result.hookPath);
|
|
57
63
|
log.success("Statusline configured!");
|
|
@@ -1,27 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isMarketplaceRegistered,
|
|
3
3
|
isPluginInstalled
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5UEY7HQX.js";
|
|
5
5
|
import {
|
|
6
6
|
hasShellCompletion,
|
|
7
7
|
removeShellCompletion
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PYTEAC6K.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveScope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-BIX7AJU3.js";
|
|
12
12
|
import {
|
|
13
13
|
commandExists,
|
|
14
14
|
run
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-EVGXUDX4.js";
|
|
16
|
+
import {
|
|
17
|
+
readJson,
|
|
18
|
+
writeJson
|
|
19
|
+
} from "./chunk-5UVDWG5L.js";
|
|
16
20
|
import {
|
|
17
21
|
claudeSettingsPath,
|
|
18
22
|
devStatePath,
|
|
19
23
|
globalConfigDir,
|
|
20
24
|
marketplaceCachePath,
|
|
21
|
-
marketplaceClonePath
|
|
22
|
-
|
|
23
|
-
writeJson
|
|
24
|
-
} from "./chunk-RWUTFVRB.js";
|
|
25
|
+
marketplaceClonePath
|
|
26
|
+
} from "./chunk-DO6FV6BL.js";
|
|
25
27
|
import {
|
|
26
28
|
log
|
|
27
29
|
} from "./chunk-W5CD7WTX.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCliVersion,
|
|
3
|
+
getLatestCliVersion,
|
|
4
|
+
getLatestVersion,
|
|
5
|
+
semverCompare,
|
|
6
|
+
updateCommand
|
|
7
|
+
} from "./chunk-PDVSGGH6.js";
|
|
8
|
+
import "./chunk-TRIALFOQ.js";
|
|
9
|
+
import "./chunk-PRIH34UB.js";
|
|
10
|
+
import "./chunk-PYTEAC6K.js";
|
|
11
|
+
import "./chunk-BIX7AJU3.js";
|
|
12
|
+
import "./chunk-EVGXUDX4.js";
|
|
13
|
+
import "./chunk-5UVDWG5L.js";
|
|
14
|
+
import "./chunk-DO6FV6BL.js";
|
|
15
|
+
import "./chunk-W5CD7WTX.js";
|
|
16
|
+
export {
|
|
17
|
+
getCliVersion,
|
|
18
|
+
getLatestCliVersion,
|
|
19
|
+
getLatestVersion,
|
|
20
|
+
semverCompare,
|
|
21
|
+
updateCommand
|
|
22
|
+
};
|