coding-friend-cli 1.36.2 → 1.36.4
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-57EGAXYI.js → chunk-3WIZA5OZ.js} +4 -0
- package/dist/{chunk-MAGBNYZK.js → chunk-56YJWGAN.js} +1 -1
- package/dist/{chunk-TPGAW67X.js → chunk-AK6RMCAC.js} +3 -3
- package/dist/{chunk-CDTQL4FI.js → chunk-K4WSC62G.js} +2 -1
- package/dist/{chunk-VV2U7NDN.js → chunk-N4WZWRCI.js} +1 -1
- package/dist/{chunk-7SMP5CZ4.js → chunk-XEKQW4RN.js} +1 -1
- package/dist/{chunk-EAJJVXAE.js → chunk-XHP3EBR3.js} +2 -2
- package/dist/{clean-MXIMMXDH.js → clean-Q4VU662V.js} +2 -2
- package/dist/{config-U3UYCC7M.js → config-CTTHWJH5.js} +15 -13
- package/dist/{dev-GKD52XE6.js → dev-IGHMMEP4.js} +2 -2
- package/dist/{host-PEKK7OOC.js → host-NCJMUSME.js} +2 -2
- package/dist/index.js +59 -30
- package/dist/{init-GJ5II4WB.js → init-UABKVDVT.js} +16 -15
- package/dist/{install-VFMO45SP.js → install-R2HDM3N4.js} +3 -3
- package/dist/{learn-QQ7XEHDY.js → learn-K64AUUFB.js} +2 -2
- package/dist/{mcp-372LGOZJ.js → mcp-OMQFSJP4.js} +5 -5
- package/dist/{memory-XINRMEWB.js → memory-Y6GNALG3.js} +5 -5
- package/dist/{session-2R7WWNML.js → session-Q2DLQPYP.js} +2 -2
- package/dist/{status-Z4V7IYOB.js → status-ML4XEDYL.js} +6 -6
- package/dist/{statusline-WDTN3OI4.js → statusline-KKFJPTI7.js} +2 -2
- package/dist/{update-MY2DRJLV.js → update-DIOH45TE.js} +3 -3
- package/package.json +1 -1
|
@@ -13,6 +13,10 @@ var STATUSLINE_COMPONENTS = [
|
|
|
13
13
|
id: "rate_limit",
|
|
14
14
|
label: "Rate limit \u2014 current & weekly usage (requires curl & jq)"
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
id: "session",
|
|
18
|
+
label: "Claude Code session ID (\u{1F194} a1b2c3d4-\u2026)"
|
|
19
|
+
},
|
|
16
20
|
{
|
|
17
21
|
id: "task_agent",
|
|
18
22
|
label: "Task progress & active agent (Tasks: 2/5 | Agent: cf-reviewer)"
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
checkMemoryMcpHealth,
|
|
3
3
|
printHealthSection,
|
|
4
4
|
warnStaleMcpJson
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-56YJWGAN.js";
|
|
6
6
|
import {
|
|
7
7
|
getMemoryMcpStatus,
|
|
8
8
|
memoryConfigMenu,
|
|
9
9
|
writeMemoryMcpEntry
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-N4WZWRCI.js";
|
|
11
11
|
import {
|
|
12
12
|
loadConfig,
|
|
13
13
|
resolveMemoryDir
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-K4WSC62G.js";
|
|
15
15
|
import {
|
|
16
16
|
getLibPath
|
|
17
17
|
} from "./chunk-RZRT7NGT.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_CONFIG
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3WIZA5OZ.js";
|
|
4
4
|
import {
|
|
5
5
|
readJson
|
|
6
6
|
} from "./chunk-5UVDWG5L.js";
|
|
@@ -51,6 +51,7 @@ var StatuslineComponentSchema = z.enum([
|
|
|
51
51
|
"account",
|
|
52
52
|
"context",
|
|
53
53
|
"rate_limit",
|
|
54
|
+
"session",
|
|
54
55
|
"task_agent"
|
|
55
56
|
]);
|
|
56
57
|
var StatuslineConfigSchema = z.object({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureStatusline,
|
|
3
3
|
getInstalledVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XEKQW4RN.js";
|
|
5
5
|
import {
|
|
6
6
|
ensureShellCompletion
|
|
7
7
|
} from "./chunk-667NMPN4.js";
|
|
@@ -249,7 +249,7 @@ async function updateCommand(opts) {
|
|
|
249
249
|
}
|
|
250
250
|
}
|
|
251
251
|
if (doCli) {
|
|
252
|
-
const { refreshMemoryAfterUpdate } = await import("./memory-
|
|
252
|
+
const { refreshMemoryAfterUpdate } = await import("./memory-Y6GNALG3.js");
|
|
253
253
|
await refreshMemoryAfterUpdate();
|
|
254
254
|
}
|
|
255
255
|
if (doStatusline) {
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
} from "./chunk-YIXAQ4R2.js";
|
|
12
12
|
import {
|
|
13
13
|
memoryConfigMenu
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-N4WZWRCI.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveLearnDir
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-K4WSC62G.js";
|
|
18
18
|
import "./chunk-RZRT7NGT.js";
|
|
19
19
|
import {
|
|
20
20
|
findStatuslineHookPath,
|
|
@@ -26,11 +26,11 @@ import {
|
|
|
26
26
|
saveStatuslineConfig,
|
|
27
27
|
selectStatuslineComponents,
|
|
28
28
|
writeStatuslineSettings
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-XEKQW4RN.js";
|
|
30
30
|
import {
|
|
31
31
|
ALL_COMPONENT_IDS,
|
|
32
32
|
DEFAULT_CONFIG
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3WIZA5OZ.js";
|
|
34
34
|
import {
|
|
35
35
|
ensureShellCompletion,
|
|
36
36
|
hasShellCompletion,
|
|
@@ -145,7 +145,7 @@ async function editLearnOutputDir(globalCfg) {
|
|
|
145
145
|
const locationChoices = [];
|
|
146
146
|
if (hasDistinctCurrent) {
|
|
147
147
|
locationChoices.push({
|
|
148
|
-
name: `Keep
|
|
148
|
+
name: `Keep global (${oldOutputDir})`,
|
|
149
149
|
value: "current"
|
|
150
150
|
});
|
|
151
151
|
}
|
|
@@ -256,14 +256,15 @@ async function editLearnLanguage(globalCfg) {
|
|
|
256
256
|
}
|
|
257
257
|
async function editLearnCategories(globalCfg) {
|
|
258
258
|
const existingCats = globalCfg?.learn?.categories;
|
|
259
|
-
const
|
|
259
|
+
const defaultCats = DEFAULT_CONFIG.learn.categories;
|
|
260
|
+
const defaultNames = defaultCats.map((c) => c.name).join(", ");
|
|
260
261
|
const catChoices = [
|
|
261
262
|
{ name: `Use defaults (${defaultNames})`, value: "defaults" }
|
|
262
263
|
];
|
|
263
|
-
if (existingCats && existingCats.length > 0) {
|
|
264
|
+
if (existingCats && existingCats.length > 0 && JSON.stringify(existingCats) !== JSON.stringify(defaultCats)) {
|
|
264
265
|
const existingNames = existingCats.map((c) => c.name).join(", ");
|
|
265
266
|
catChoices.push({
|
|
266
|
-
name: `Keep
|
|
267
|
+
name: `Keep global (${existingNames})`,
|
|
267
268
|
value: "existing"
|
|
268
269
|
});
|
|
269
270
|
}
|
|
@@ -278,7 +279,7 @@ async function editLearnCategories(globalCfg) {
|
|
|
278
279
|
} else if (catChoice === "custom") {
|
|
279
280
|
console.log();
|
|
280
281
|
if (existingCats && existingCats.length > 0) {
|
|
281
|
-
console.log("
|
|
282
|
+
console.log("Global categories:");
|
|
282
283
|
for (const c of existingCats) {
|
|
283
284
|
log.dim(` ${c.name}: ${c.description}`);
|
|
284
285
|
}
|
|
@@ -375,6 +376,7 @@ async function learnSubMenu() {
|
|
|
375
376
|
const langVal = globalCfg?.learn?.language;
|
|
376
377
|
const autoCommitVal = globalCfg?.learn?.autoCommit;
|
|
377
378
|
const readmeVal = globalCfg?.learn?.readmeIndex;
|
|
379
|
+
const catsVal = (globalCfg?.learn?.categories ?? DEFAULT_CONFIG.learn.categories).map((c) => c.name).join(", ");
|
|
378
380
|
const isDisabled = globalCfg?.learn?.disabled ?? false;
|
|
379
381
|
const disabledLabel = isDisabled ? chalk.yellow(" [disabled]") : "";
|
|
380
382
|
const choice = await select({
|
|
@@ -390,7 +392,7 @@ async function learnSubMenu() {
|
|
|
390
392
|
value: "language"
|
|
391
393
|
},
|
|
392
394
|
{
|
|
393
|
-
name:
|
|
395
|
+
name: `Categories (${catsVal})`,
|
|
394
396
|
value: "categories"
|
|
395
397
|
},
|
|
396
398
|
{
|
|
@@ -438,8 +440,8 @@ async function editDisableGUIPlan(globalCfg, localCfg) {
|
|
|
438
440
|
log.dim(`Current: ${currentValue}`);
|
|
439
441
|
}
|
|
440
442
|
const value = await confirm({
|
|
441
|
-
message: "Disable the human overview doc that /cf-plan generates alongside the agent plan?",
|
|
442
|
-
default: currentValue ??
|
|
443
|
+
message: "Disable the human overview doc that /cf-plan generates alongside the agent plan? (off by default)",
|
|
444
|
+
default: currentValue ?? true
|
|
443
445
|
});
|
|
444
446
|
const scope = await askScope();
|
|
445
447
|
if (scope === "back") return;
|
|
@@ -489,7 +491,7 @@ async function planDocsSubMenu() {
|
|
|
489
491
|
choices: injectBackChoice(
|
|
490
492
|
[
|
|
491
493
|
{
|
|
492
|
-
name: `Disable overview doc (${disableVal ??
|
|
494
|
+
name: `Disable overview doc (${disableVal ?? true})`,
|
|
493
495
|
value: "disableGUIPlan"
|
|
494
496
|
},
|
|
495
497
|
{
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
installedPluginsPath
|
|
4
|
+
} from "./chunk-X2H7JJMR.js";
|
|
2
5
|
|
|
3
6
|
// src/index.ts
|
|
4
7
|
import { Command } from "commander";
|
|
@@ -9,12 +12,38 @@ var __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
9
12
|
var pkg = JSON.parse(
|
|
10
13
|
readFileSync(join(__dirname, "..", "package.json"), "utf-8")
|
|
11
14
|
);
|
|
15
|
+
function getInstalledPluginVersion() {
|
|
16
|
+
try {
|
|
17
|
+
const data = JSON.parse(readFileSync(installedPluginsPath(), "utf-8"));
|
|
18
|
+
const plugins = data.plugins ?? data;
|
|
19
|
+
for (const [key, value] of Object.entries(plugins)) {
|
|
20
|
+
if (!key.includes("coding-friend")) continue;
|
|
21
|
+
if (Array.isArray(value) && value.length > 0) {
|
|
22
|
+
const entry = value[0];
|
|
23
|
+
if (typeof entry.version === "string") return entry.version;
|
|
24
|
+
}
|
|
25
|
+
if (typeof value === "object" && value !== null && "version" in value) {
|
|
26
|
+
return value.version;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
} catch {
|
|
30
|
+
}
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
function buildVersionString() {
|
|
34
|
+
const pluginVersion = getInstalledPluginVersion();
|
|
35
|
+
return [
|
|
36
|
+
`CLI ${pkg.version}`,
|
|
37
|
+
`plugin ${pluginVersion ?? "(not installed)"}`
|
|
38
|
+
].join("\n");
|
|
39
|
+
}
|
|
40
|
+
var wantsVersion = process.argv.includes("-v") || process.argv.includes("--version");
|
|
12
41
|
var program = new Command();
|
|
13
42
|
program.name("cf").description(
|
|
14
43
|
"coding-friend CLI \u2014 host learning docs, setup MCP, init projects"
|
|
15
|
-
).version(pkg.version, "-v, --version");
|
|
44
|
+
).version(wantsVersion ? buildVersionString() : pkg.version, "-v, --version");
|
|
16
45
|
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-
|
|
46
|
+
const { installCommand } = await import("./install-R2HDM3N4.js");
|
|
18
47
|
await installCommand(opts);
|
|
19
48
|
});
|
|
20
49
|
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) => {
|
|
@@ -30,11 +59,11 @@ program.command("enable").description("Re-enable the Coding Friend plugin").opti
|
|
|
30
59
|
await enableCommand(opts);
|
|
31
60
|
});
|
|
32
61
|
program.command("init").description("Initialize coding-friend in current project").action(async () => {
|
|
33
|
-
const { initCommand } = await import("./init-
|
|
62
|
+
const { initCommand } = await import("./init-UABKVDVT.js");
|
|
34
63
|
await initCommand();
|
|
35
64
|
});
|
|
36
65
|
program.command("config").description("Manage Coding Friend configuration").action(async () => {
|
|
37
|
-
const { configCommand } = await import("./config-
|
|
66
|
+
const { configCommand } = await import("./config-CTTHWJH5.js");
|
|
38
67
|
await configCommand();
|
|
39
68
|
});
|
|
40
69
|
var learn = program.command("learn").description("Manage learning docs \u2014 host as a website or push to git");
|
|
@@ -46,19 +75,19 @@ Learn subcommands:
|
|
|
46
75
|
learn push [path] Commit and push learning docs (only if learn dir is the git root)`
|
|
47
76
|
);
|
|
48
77
|
learn.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) => {
|
|
49
|
-
const { hostCommand } = await import("./host-
|
|
78
|
+
const { hostCommand } = await import("./host-NCJMUSME.js");
|
|
50
79
|
await hostCommand(path, opts);
|
|
51
80
|
});
|
|
52
81
|
learn.command("push").description("Commit and push learning docs to origin").argument("[path]", "path to docs folder").action(async (path) => {
|
|
53
|
-
const { learnPushCommand } = await import("./learn-
|
|
82
|
+
const { learnPushCommand } = await import("./learn-K64AUUFB.js");
|
|
54
83
|
await learnPushCommand(path);
|
|
55
84
|
});
|
|
56
85
|
program.command("host", { hidden: true }).argument("[path]", "path to docs folder").option("-p, --port <port>", "port number", "3333").action(async (path, opts) => {
|
|
57
|
-
const { hostCommand } = await import("./host-
|
|
86
|
+
const { hostCommand } = await import("./host-NCJMUSME.js");
|
|
58
87
|
await hostCommand(path, opts);
|
|
59
88
|
});
|
|
60
89
|
program.command("mcp").description("Setup MCP server for learning docs").action(async () => {
|
|
61
|
-
const { mcpCommand } = await import("./mcp-
|
|
90
|
+
const { mcpCommand } = await import("./mcp-OMQFSJP4.js");
|
|
62
91
|
await mcpCommand();
|
|
63
92
|
});
|
|
64
93
|
program.command("mcp-serve").description("Start the cf-memory MCP server (used internally by npx)").argument("<memoryDir>", "path to memory directory").action(async (memoryDir) => {
|
|
@@ -77,19 +106,19 @@ program.command("permission").description("Manage Claude Code permission rules f
|
|
|
77
106
|
await permissionCommand(opts);
|
|
78
107
|
});
|
|
79
108
|
program.command("statusline").description("Setup coding-friend statusline in Claude Code").action(async () => {
|
|
80
|
-
const { statuslineCommand } = await import("./statusline-
|
|
109
|
+
const { statuslineCommand } = await import("./statusline-KKFJPTI7.js");
|
|
81
110
|
await statuslineCommand();
|
|
82
111
|
});
|
|
83
112
|
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) => {
|
|
84
|
-
const { updateCommand } = await import("./update-
|
|
113
|
+
const { updateCommand } = await import("./update-DIOH45TE.js");
|
|
85
114
|
await updateCommand(opts);
|
|
86
115
|
});
|
|
87
116
|
program.command("status").description("Show comprehensive Coding Friend status").action(async () => {
|
|
88
|
-
const { statusCommand } = await import("./status-
|
|
117
|
+
const { statusCommand } = await import("./status-ML4XEDYL.js");
|
|
89
118
|
await statusCommand();
|
|
90
119
|
});
|
|
91
120
|
program.command("clean").description("Clean files generated by Coding Friend in docs/").action(async () => {
|
|
92
|
-
const { cleanCommand } = await import("./clean-
|
|
121
|
+
const { cleanCommand } = await import("./clean-Q4VU662V.js");
|
|
93
122
|
await cleanCommand();
|
|
94
123
|
});
|
|
95
124
|
var session = program.command("session").description("[beta] Save and load Claude Code sessions across machines");
|
|
@@ -104,11 +133,11 @@ session.command("save").description("Save current Claude Code session to sync fo
|
|
|
104
133
|
"-s, --session-id <id>",
|
|
105
134
|
"session UUID to save (default: auto-detect newest)"
|
|
106
135
|
).option("-l, --label <label>", "label for this session").action(async (opts) => {
|
|
107
|
-
const { sessionSaveCommand } = await import("./session-
|
|
136
|
+
const { sessionSaveCommand } = await import("./session-Q2DLQPYP.js");
|
|
108
137
|
await sessionSaveCommand(opts);
|
|
109
138
|
});
|
|
110
139
|
session.command("load").description("Load a saved session from sync folder").action(async () => {
|
|
111
|
-
const { sessionLoadCommand } = await import("./session-
|
|
140
|
+
const { sessionLoadCommand } = await import("./session-Q2DLQPYP.js");
|
|
112
141
|
await sessionLoadCommand();
|
|
113
142
|
});
|
|
114
143
|
var memory = program.command("memory").description("AI memory system \u2014 store and search project knowledge");
|
|
@@ -128,43 +157,43 @@ Memory subcommands:
|
|
|
128
157
|
memory mcp Show MCP server setup instructions`
|
|
129
158
|
);
|
|
130
159
|
memory.command("status").description("Show memory system status").action(async () => {
|
|
131
|
-
const { memoryStatusCommand } = await import("./memory-
|
|
160
|
+
const { memoryStatusCommand } = await import("./memory-Y6GNALG3.js");
|
|
132
161
|
await memoryStatusCommand();
|
|
133
162
|
});
|
|
134
163
|
memory.command("search").description("Search memories by query").argument("<query>", "search query").action(async (query) => {
|
|
135
|
-
const { memorySearchCommand } = await import("./memory-
|
|
164
|
+
const { memorySearchCommand } = await import("./memory-Y6GNALG3.js");
|
|
136
165
|
await memorySearchCommand(query);
|
|
137
166
|
});
|
|
138
167
|
memory.command("list").description(
|
|
139
168
|
"List memories in current project, or all projects with --projects"
|
|
140
169
|
).option("--projects", "List all project databases with size and metadata").action(async (opts) => {
|
|
141
|
-
const { memoryListCommand } = await import("./memory-
|
|
170
|
+
const { memoryListCommand } = await import("./memory-Y6GNALG3.js");
|
|
142
171
|
await memoryListCommand(opts);
|
|
143
172
|
});
|
|
144
173
|
memory.command("init").description(
|
|
145
174
|
"Initialize memory system \u2014 interactive wizard (first time) or config menu"
|
|
146
175
|
).action(async () => {
|
|
147
|
-
const { memoryInitCommand } = await import("./memory-
|
|
176
|
+
const { memoryInitCommand } = await import("./memory-Y6GNALG3.js");
|
|
148
177
|
await memoryInitCommand();
|
|
149
178
|
});
|
|
150
179
|
memory.command("config").description("Configure memory system settings").action(async () => {
|
|
151
|
-
const { memoryConfigCommand } = await import("./memory-
|
|
180
|
+
const { memoryConfigCommand } = await import("./memory-Y6GNALG3.js");
|
|
152
181
|
await memoryConfigCommand();
|
|
153
182
|
});
|
|
154
183
|
memory.command("start-daemon").description("Start the memory daemon (Tier 2 \u2014 MiniSearch)").action(async () => {
|
|
155
|
-
const { memoryStartDaemonCommand } = await import("./memory-
|
|
184
|
+
const { memoryStartDaemonCommand } = await import("./memory-Y6GNALG3.js");
|
|
156
185
|
await memoryStartDaemonCommand();
|
|
157
186
|
});
|
|
158
187
|
memory.command("stop-daemon").description("Stop the memory daemon").action(async () => {
|
|
159
|
-
const { memoryStopDaemonCommand } = await import("./memory-
|
|
188
|
+
const { memoryStopDaemonCommand } = await import("./memory-Y6GNALG3.js");
|
|
160
189
|
await memoryStopDaemonCommand();
|
|
161
190
|
});
|
|
162
191
|
memory.command("rebuild").description("Rebuild the daemon search index").action(async () => {
|
|
163
|
-
const { memoryRebuildCommand } = await import("./memory-
|
|
192
|
+
const { memoryRebuildCommand } = await import("./memory-Y6GNALG3.js");
|
|
164
193
|
await memoryRebuildCommand();
|
|
165
194
|
});
|
|
166
195
|
memory.command("mcp").description("Show MCP server setup instructions").action(async () => {
|
|
167
|
-
const { memoryMcpCommand } = await import("./memory-
|
|
196
|
+
const { memoryMcpCommand } = await import("./memory-Y6GNALG3.js");
|
|
168
197
|
await memoryMcpCommand();
|
|
169
198
|
});
|
|
170
199
|
memory.command("rm").description("Remove a project database").option("--project-id <id>", "Project ID to remove").option("--all", "Remove all project databases").option(
|
|
@@ -172,7 +201,7 @@ memory.command("rm").description("Remove a project database").option("--project-
|
|
|
172
201
|
"Remove orphaned projects (source dir missing or 0 memories)"
|
|
173
202
|
).action(
|
|
174
203
|
async (opts) => {
|
|
175
|
-
const { memoryRmCommand } = await import("./memory-
|
|
204
|
+
const { memoryRmCommand } = await import("./memory-Y6GNALG3.js");
|
|
176
205
|
await memoryRmCommand(opts);
|
|
177
206
|
}
|
|
178
207
|
);
|
|
@@ -198,28 +227,28 @@ Dev subcommands:
|
|
|
198
227
|
dev update [path] Update local dev plugin to latest version`
|
|
199
228
|
);
|
|
200
229
|
dev.command("on").description("Switch to local plugin source").argument("[path]", "path to local coding-friend repo (default: cwd)").action(async (path) => {
|
|
201
|
-
const { devOnCommand } = await import("./dev-
|
|
230
|
+
const { devOnCommand } = await import("./dev-IGHMMEP4.js");
|
|
202
231
|
await devOnCommand(path);
|
|
203
232
|
});
|
|
204
233
|
dev.command("off").description("Switch back to remote marketplace").action(async () => {
|
|
205
|
-
const { devOffCommand } = await import("./dev-
|
|
234
|
+
const { devOffCommand } = await import("./dev-IGHMMEP4.js");
|
|
206
235
|
await devOffCommand();
|
|
207
236
|
});
|
|
208
237
|
dev.command("status").description("Show current dev mode").action(async () => {
|
|
209
|
-
const { devStatusCommand } = await import("./dev-
|
|
238
|
+
const { devStatusCommand } = await import("./dev-IGHMMEP4.js");
|
|
210
239
|
await devStatusCommand();
|
|
211
240
|
});
|
|
212
241
|
dev.command("sync").description(
|
|
213
242
|
"Copy local source files to plugin cache (no version bump needed)"
|
|
214
243
|
).action(async () => {
|
|
215
|
-
const { devSyncCommand } = await import("./dev-
|
|
244
|
+
const { devSyncCommand } = await import("./dev-IGHMMEP4.js");
|
|
216
245
|
await devSyncCommand();
|
|
217
246
|
});
|
|
218
247
|
dev.command("restart").description("Reinstall local dev plugin (off + on)").argument(
|
|
219
248
|
"[path]",
|
|
220
249
|
"path to local coding-friend repo (default: saved path or cwd)"
|
|
221
250
|
).action(async (path) => {
|
|
222
|
-
const { devRestartCommand } = await import("./dev-
|
|
251
|
+
const { devRestartCommand } = await import("./dev-IGHMMEP4.js");
|
|
223
252
|
await devRestartCommand(path);
|
|
224
253
|
});
|
|
225
254
|
dev.command("update").description(
|
|
@@ -228,7 +257,7 @@ dev.command("update").description(
|
|
|
228
257
|
"[path]",
|
|
229
258
|
"path to local coding-friend repo (default: saved path or cwd)"
|
|
230
259
|
).action(async (path) => {
|
|
231
|
-
const { devUpdateCommand } = await import("./dev-
|
|
260
|
+
const { devUpdateCommand } = await import("./dev-IGHMMEP4.js");
|
|
232
261
|
await devUpdateCommand(path);
|
|
233
262
|
});
|
|
234
263
|
program.hook("postAction", async () => {
|
|
@@ -15,12 +15,12 @@ import {
|
|
|
15
15
|
ensureMemoryBuilt,
|
|
16
16
|
isMemoryInitialized,
|
|
17
17
|
memoryInitWizard
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-AK6RMCAC.js";
|
|
19
|
+
import "./chunk-56YJWGAN.js";
|
|
20
20
|
import {
|
|
21
21
|
memoryConfigMenu
|
|
22
|
-
} from "./chunk-
|
|
23
|
-
import "./chunk-
|
|
22
|
+
} from "./chunk-N4WZWRCI.js";
|
|
23
|
+
import "./chunk-K4WSC62G.js";
|
|
24
24
|
import {
|
|
25
25
|
getLibPath
|
|
26
26
|
} from "./chunk-RZRT7NGT.js";
|
|
@@ -34,10 +34,10 @@ import {
|
|
|
34
34
|
saveStatuslineConfig,
|
|
35
35
|
selectStatuslineComponents,
|
|
36
36
|
writeStatuslineSettings
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-XEKQW4RN.js";
|
|
38
38
|
import {
|
|
39
39
|
DEFAULT_CONFIG
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-3WIZA5OZ.js";
|
|
41
41
|
import {
|
|
42
42
|
ensureShellCompletion,
|
|
43
43
|
hasShellCompletion
|
|
@@ -408,7 +408,7 @@ async function stepLearnConfig(globalCfg) {
|
|
|
408
408
|
const locationChoices = [];
|
|
409
409
|
if (hasDistinctCurrent) {
|
|
410
410
|
locationChoices.push({
|
|
411
|
-
name: `Keep
|
|
411
|
+
name: `Keep global (${currentOutputDir})`,
|
|
412
412
|
value: "current"
|
|
413
413
|
});
|
|
414
414
|
}
|
|
@@ -449,14 +449,15 @@ async function stepLearnConfig(globalCfg) {
|
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
const existingCats = globalLearn?.categories;
|
|
452
|
-
const
|
|
452
|
+
const defaultCats = DEFAULT_CONFIG.learn.categories;
|
|
453
|
+
const defaultNames = defaultCats.map((c) => c.name).join(", ");
|
|
453
454
|
const catChoices = [
|
|
454
455
|
{ name: `Use defaults (${defaultNames})`, value: "defaults" }
|
|
455
456
|
];
|
|
456
|
-
if (existingCats && existingCats.length > 0) {
|
|
457
|
+
if (existingCats && existingCats.length > 0 && JSON.stringify(existingCats) !== JSON.stringify(defaultCats)) {
|
|
457
458
|
const existingNames = existingCats.map((c) => c.name).join(", ");
|
|
458
459
|
catChoices.push({
|
|
459
|
-
name: `Keep
|
|
460
|
+
name: `Keep global (${existingNames})`,
|
|
460
461
|
value: "existing"
|
|
461
462
|
});
|
|
462
463
|
}
|
|
@@ -472,7 +473,7 @@ async function stepLearnConfig(globalCfg) {
|
|
|
472
473
|
} else if (catChoice === "custom") {
|
|
473
474
|
console.log();
|
|
474
475
|
if (existingCats && existingCats.length > 0) {
|
|
475
|
-
console.log("
|
|
476
|
+
console.log("Global categories in config.json:");
|
|
476
477
|
for (const c of existingCats) {
|
|
477
478
|
log.dim(` ${c.name}: ${c.description}`);
|
|
478
479
|
}
|
|
@@ -725,8 +726,8 @@ async function stepPlanDocs(globalCfg, localCfg) {
|
|
|
725
726
|
"The human overview doc /cf-plan writes next to the agent plan \u2014 enable/disable and choose format."
|
|
726
727
|
);
|
|
727
728
|
const disableChoice = await confirm({
|
|
728
|
-
message: "Disable the /cf-plan human overview doc?",
|
|
729
|
-
default: currentDisable ??
|
|
729
|
+
message: "Disable the /cf-plan human overview doc? (off by default)",
|
|
730
|
+
default: currentDisable ?? true
|
|
730
731
|
});
|
|
731
732
|
let formatChoice;
|
|
732
733
|
if (!disableChoice) {
|
|
@@ -1001,8 +1002,8 @@ async function initMenu(gitAvailable) {
|
|
|
1001
1002
|
}
|
|
1002
1003
|
case "planDocs": {
|
|
1003
1004
|
const planDocsDisableChoice = await confirm({
|
|
1004
|
-
message: "Disable the /cf-plan human overview doc?",
|
|
1005
|
-
default: planDocsDisableVal ??
|
|
1005
|
+
message: "Disable the /cf-plan human overview doc? (off by default)",
|
|
1006
|
+
default: planDocsDisableVal ?? true
|
|
1006
1007
|
});
|
|
1007
1008
|
let planDocsFormatChoice;
|
|
1008
1009
|
if (!planDocsDisableChoice) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getLatestVersion,
|
|
3
3
|
semverCompare
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XHP3EBR3.js";
|
|
5
5
|
import {
|
|
6
6
|
getInstalledVersion
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-XEKQW4RN.js";
|
|
8
|
+
import "./chunk-3WIZA5OZ.js";
|
|
9
9
|
import {
|
|
10
10
|
ensureShellCompletion
|
|
11
11
|
} from "./chunk-667NMPN4.js";
|
|
@@ -8,26 +8,26 @@ import {
|
|
|
8
8
|
import {
|
|
9
9
|
ensureMemoryBuilt,
|
|
10
10
|
printMemoryMcpConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AK6RMCAC.js";
|
|
12
12
|
import {
|
|
13
13
|
checkLearnMcpHealth,
|
|
14
14
|
checkMemoryMcpHealth,
|
|
15
15
|
detectMemoryMcpState,
|
|
16
16
|
printHealthSection,
|
|
17
17
|
warnStaleMcpJson
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-56YJWGAN.js";
|
|
19
19
|
import {
|
|
20
20
|
getMemoryMcpStatus,
|
|
21
21
|
writeMemoryMcpEntry
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-N4WZWRCI.js";
|
|
23
23
|
import {
|
|
24
24
|
resolveLearnDir,
|
|
25
25
|
resolveMemoryDir
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-K4WSC62G.js";
|
|
27
27
|
import {
|
|
28
28
|
getLibPath
|
|
29
29
|
} from "./chunk-RZRT7NGT.js";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-3WIZA5OZ.js";
|
|
31
31
|
import "./chunk-IKLMHJH6.js";
|
|
32
32
|
import {
|
|
33
33
|
run
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
memoryStopDaemonCommand,
|
|
15
15
|
printMemoryMcpConfig,
|
|
16
16
|
refreshMemoryAfterUpdate
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-AK6RMCAC.js";
|
|
18
|
+
import "./chunk-56YJWGAN.js";
|
|
19
|
+
import "./chunk-N4WZWRCI.js";
|
|
20
|
+
import "./chunk-K4WSC62G.js";
|
|
21
21
|
import "./chunk-RZRT7NGT.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-3WIZA5OZ.js";
|
|
23
23
|
import "./chunk-IKLMHJH6.js";
|
|
24
24
|
import "./chunk-EVGXUDX4.js";
|
|
25
25
|
import "./chunk-5UVDWG5L.js";
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
checkLearnMcpHealth,
|
|
12
12
|
checkMemoryMcpHealth
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-56YJWGAN.js";
|
|
14
|
+
import "./chunk-N4WZWRCI.js";
|
|
15
15
|
import {
|
|
16
16
|
resolveLearnDir,
|
|
17
17
|
resolveMemoryDir,
|
|
18
18
|
sanitizeRawConfig
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-K4WSC62G.js";
|
|
20
20
|
import {
|
|
21
21
|
getLibPath
|
|
22
22
|
} from "./chunk-RZRT7NGT.js";
|
|
@@ -25,11 +25,11 @@ import {
|
|
|
25
25
|
getLatestCliVersion,
|
|
26
26
|
getLatestVersion,
|
|
27
27
|
semverCompare
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XHP3EBR3.js";
|
|
29
29
|
import {
|
|
30
30
|
getInstalledVersion
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import "./chunk-
|
|
31
|
+
} from "./chunk-XEKQW4RN.js";
|
|
32
|
+
import "./chunk-3WIZA5OZ.js";
|
|
33
33
|
import "./chunk-667NMPN4.js";
|
|
34
34
|
import {
|
|
35
35
|
detectPluginScope,
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
saveStatuslineConfig,
|
|
9
9
|
selectStatuslineComponents,
|
|
10
10
|
writeStatuslineSettings
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XEKQW4RN.js";
|
|
12
12
|
import {
|
|
13
13
|
ALL_COMPONENT_IDS
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3WIZA5OZ.js";
|
|
15
15
|
import {
|
|
16
16
|
commandExists
|
|
17
17
|
} from "./chunk-EVGXUDX4.js";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
getLatestVersion,
|
|
5
5
|
semverCompare,
|
|
6
6
|
updateCommand
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-XHP3EBR3.js";
|
|
8
|
+
import "./chunk-XEKQW4RN.js";
|
|
9
|
+
import "./chunk-3WIZA5OZ.js";
|
|
10
10
|
import "./chunk-667NMPN4.js";
|
|
11
11
|
import "./chunk-IKLMHJH6.js";
|
|
12
12
|
import "./chunk-EVGXUDX4.js";
|