coding-friend-cli 1.36.0 → 1.36.2

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 (29) hide show
  1. package/dist/{chunk-DUKBBMVM.js → chunk-CDTQL4FI.js} +9 -5
  2. package/dist/{chunk-KIKN5HEH.js → chunk-EAJJVXAE.js} +9 -5
  3. package/dist/{chunk-PQUACN4U.js → chunk-MAGBNYZK.js} +4 -4
  4. package/dist/{chunk-GHR3TNL6.js → chunk-TPGAW67X.js} +35 -15
  5. package/dist/{chunk-7QFJODWB.js → chunk-VV2U7NDN.js} +5 -5
  6. package/dist/{clean-2IRHH4SU.js → clean-MXIMMXDH.js} +5 -5
  7. package/dist/{config-36YY3XLM.js → config-U3UYCC7M.js} +101 -13
  8. package/dist/{disable-35RSJICU.js → disable-HL5OEURT.js} +3 -3
  9. package/dist/{enable-RXWDQRIU.js → enable-CZIOCKKJ.js} +3 -3
  10. package/dist/{host-BYJEZN6T.js → host-PEKK7OOC.js} +5 -5
  11. package/dist/index.js +37 -37
  12. package/dist/{init-QXCMAPXT.js → init-GJ5II4WB.js} +121 -22
  13. package/dist/{install-NALHBTGG.js → install-VFMO45SP.js} +6 -6
  14. package/dist/{learn-PNG2TI2E.js → learn-QQ7XEHDY.js} +5 -5
  15. package/dist/{mcp-6GRHKIQW.js → mcp-372LGOZJ.js} +16 -16
  16. package/dist/{memory-A7OUTQ54.js → memory-XINRMEWB.js} +10 -8
  17. package/dist/{permission-PB3OMKRB.js → permission-I3OFJUYA.js} +11 -11
  18. package/dist/{session-YJJRGQPX.js → session-2R7WWNML.js} +4 -4
  19. package/dist/{status-SG5LCXER.js → status-Z4V7IYOB.js} +12 -12
  20. package/dist/{uninstall-JLSEHXS5.js → uninstall-ASLHT3MH.js} +5 -5
  21. package/dist/{update-MO5BT3C5.js → update-MY2DRJLV.js} +3 -3
  22. package/package.json +1 -1
  23. package/dist/{chunk-EFRPDFO7.js → chunk-IKLMHJH6.js} +3 -3
  24. package/dist/{chunk-TEC25H6C.js → chunk-YIXAQ4R2.js} +3 -3
  25. package/dist/{dev-JSYPSXEZ.js → dev-GKD52XE6.js} +4 -4
  26. package/dist/{guide-ECSMH2AT.js → guide-CO2V4ZLZ.js} +3 -3
  27. package/dist/{mcp-serve-learn-36ZQQQTF.js → mcp-serve-learn-OF3ZJUJC.js} +3 -3
  28. package/dist/{statusline-3Z4DE24F.js → statusline-WDTN3OI4.js} +2 -2
  29. package/dist/{update-check-I2RSVGFO.js → update-check-25SCLHZO.js} +3 -3
package/dist/index.js CHANGED
@@ -14,27 +14,27 @@ 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-NALHBTGG.js");
17
+ const { installCommand } = await import("./install-VFMO45SP.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-JLSEHXS5.js");
21
+ const { uninstallCommand } = await import("./uninstall-ASLHT3MH.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-35RSJICU.js");
25
+ const { disableCommand } = await import("./disable-HL5OEURT.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-RXWDQRIU.js");
29
+ const { enableCommand } = await import("./enable-CZIOCKKJ.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-QXCMAPXT.js");
33
+ const { initCommand } = await import("./init-GJ5II4WB.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-36YY3XLM.js");
37
+ const { configCommand } = await import("./config-U3UYCC7M.js");
38
38
  await configCommand();
39
39
  });
40
40
  var learn = program.command("learn").description("Manage learning docs \u2014 host as a website or push to git");
@@ -46,19 +46,19 @@ Learn subcommands:
46
46
  learn push [path] Commit and push learning docs (only if learn dir is the git root)`
47
47
  );
48
48
  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-BYJEZN6T.js");
49
+ const { hostCommand } = await import("./host-PEKK7OOC.js");
50
50
  await hostCommand(path, opts);
51
51
  });
52
52
  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-PNG2TI2E.js");
53
+ const { learnPushCommand } = await import("./learn-QQ7XEHDY.js");
54
54
  await learnPushCommand(path);
55
55
  });
56
56
  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-BYJEZN6T.js");
57
+ const { hostCommand } = await import("./host-PEKK7OOC.js");
58
58
  await hostCommand(path, opts);
59
59
  });
60
60
  program.command("mcp").description("Setup MCP server for learning docs").action(async () => {
61
- const { mcpCommand } = await import("./mcp-6GRHKIQW.js");
61
+ const { mcpCommand } = await import("./mcp-372LGOZJ.js");
62
62
  await mcpCommand();
63
63
  });
64
64
  program.command("mcp-serve").description("Start the cf-memory MCP server (used internally by npx)").argument("<memoryDir>", "path to memory directory").action(async (memoryDir) => {
@@ -66,30 +66,30 @@ program.command("mcp-serve").description("Start the cf-memory MCP server (used i
66
66
  await mcpServeCommand(memoryDir);
67
67
  });
68
68
  program.command("mcp-serve-learn").description("Start the learn MCP server (used internally by npx)").argument("<docsDir>", "path to docs directory").action(async (docsDir) => {
69
- const { mcpServeLearnCommand } = await import("./mcp-serve-learn-36ZQQQTF.js");
69
+ const { mcpServeLearnCommand } = await import("./mcp-serve-learn-OF3ZJUJC.js");
70
70
  await mcpServeLearnCommand(docsDir);
71
71
  });
72
72
  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(
73
73
  "--project",
74
74
  "Save to project-level settings (.claude/settings.local.json)"
75
75
  ).action(async (opts) => {
76
- const { permissionCommand } = await import("./permission-PB3OMKRB.js");
76
+ const { permissionCommand } = await import("./permission-I3OFJUYA.js");
77
77
  await permissionCommand(opts);
78
78
  });
79
79
  program.command("statusline").description("Setup coding-friend statusline in Claude Code").action(async () => {
80
- const { statuslineCommand } = await import("./statusline-3Z4DE24F.js");
80
+ const { statuslineCommand } = await import("./statusline-WDTN3OI4.js");
81
81
  await statuslineCommand();
82
82
  });
83
83
  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-MO5BT3C5.js");
84
+ const { updateCommand } = await import("./update-MY2DRJLV.js");
85
85
  await updateCommand(opts);
86
86
  });
87
87
  program.command("status").description("Show comprehensive Coding Friend status").action(async () => {
88
- const { statusCommand } = await import("./status-SG5LCXER.js");
88
+ const { statusCommand } = await import("./status-Z4V7IYOB.js");
89
89
  await statusCommand();
90
90
  });
91
91
  program.command("clean").description("Clean files generated by Coding Friend in docs/").action(async () => {
92
- const { cleanCommand } = await import("./clean-2IRHH4SU.js");
92
+ const { cleanCommand } = await import("./clean-MXIMMXDH.js");
93
93
  await cleanCommand();
94
94
  });
95
95
  var session = program.command("session").description("[beta] Save and load Claude Code sessions across machines");
@@ -104,11 +104,11 @@ session.command("save").description("Save current Claude Code session to sync fo
104
104
  "-s, --session-id <id>",
105
105
  "session UUID to save (default: auto-detect newest)"
106
106
  ).option("-l, --label <label>", "label for this session").action(async (opts) => {
107
- const { sessionSaveCommand } = await import("./session-YJJRGQPX.js");
107
+ const { sessionSaveCommand } = await import("./session-2R7WWNML.js");
108
108
  await sessionSaveCommand(opts);
109
109
  });
110
110
  session.command("load").description("Load a saved session from sync folder").action(async () => {
111
- const { sessionLoadCommand } = await import("./session-YJJRGQPX.js");
111
+ const { sessionLoadCommand } = await import("./session-2R7WWNML.js");
112
112
  await sessionLoadCommand();
113
113
  });
114
114
  var memory = program.command("memory").description("AI memory system \u2014 store and search project knowledge");
@@ -128,43 +128,43 @@ Memory subcommands:
128
128
  memory mcp Show MCP server setup instructions`
129
129
  );
130
130
  memory.command("status").description("Show memory system status").action(async () => {
131
- const { memoryStatusCommand } = await import("./memory-A7OUTQ54.js");
131
+ const { memoryStatusCommand } = await import("./memory-XINRMEWB.js");
132
132
  await memoryStatusCommand();
133
133
  });
134
134
  memory.command("search").description("Search memories by query").argument("<query>", "search query").action(async (query) => {
135
- const { memorySearchCommand } = await import("./memory-A7OUTQ54.js");
135
+ const { memorySearchCommand } = await import("./memory-XINRMEWB.js");
136
136
  await memorySearchCommand(query);
137
137
  });
138
138
  memory.command("list").description(
139
139
  "List memories in current project, or all projects with --projects"
140
140
  ).option("--projects", "List all project databases with size and metadata").action(async (opts) => {
141
- const { memoryListCommand } = await import("./memory-A7OUTQ54.js");
141
+ const { memoryListCommand } = await import("./memory-XINRMEWB.js");
142
142
  await memoryListCommand(opts);
143
143
  });
144
144
  memory.command("init").description(
145
145
  "Initialize memory system \u2014 interactive wizard (first time) or config menu"
146
146
  ).action(async () => {
147
- const { memoryInitCommand } = await import("./memory-A7OUTQ54.js");
147
+ const { memoryInitCommand } = await import("./memory-XINRMEWB.js");
148
148
  await memoryInitCommand();
149
149
  });
150
150
  memory.command("config").description("Configure memory system settings").action(async () => {
151
- const { memoryConfigCommand } = await import("./memory-A7OUTQ54.js");
151
+ const { memoryConfigCommand } = await import("./memory-XINRMEWB.js");
152
152
  await memoryConfigCommand();
153
153
  });
154
154
  memory.command("start-daemon").description("Start the memory daemon (Tier 2 \u2014 MiniSearch)").action(async () => {
155
- const { memoryStartDaemonCommand } = await import("./memory-A7OUTQ54.js");
155
+ const { memoryStartDaemonCommand } = await import("./memory-XINRMEWB.js");
156
156
  await memoryStartDaemonCommand();
157
157
  });
158
158
  memory.command("stop-daemon").description("Stop the memory daemon").action(async () => {
159
- const { memoryStopDaemonCommand } = await import("./memory-A7OUTQ54.js");
159
+ const { memoryStopDaemonCommand } = await import("./memory-XINRMEWB.js");
160
160
  await memoryStopDaemonCommand();
161
161
  });
162
162
  memory.command("rebuild").description("Rebuild the daemon search index").action(async () => {
163
- const { memoryRebuildCommand } = await import("./memory-A7OUTQ54.js");
163
+ const { memoryRebuildCommand } = await import("./memory-XINRMEWB.js");
164
164
  await memoryRebuildCommand();
165
165
  });
166
166
  memory.command("mcp").description("Show MCP server setup instructions").action(async () => {
167
- const { memoryMcpCommand } = await import("./memory-A7OUTQ54.js");
167
+ const { memoryMcpCommand } = await import("./memory-XINRMEWB.js");
168
168
  await memoryMcpCommand();
169
169
  });
170
170
  memory.command("rm").description("Remove a project database").option("--project-id <id>", "Project ID to remove").option("--all", "Remove all project databases").option(
@@ -172,17 +172,17 @@ memory.command("rm").description("Remove a project database").option("--project-
172
172
  "Remove orphaned projects (source dir missing or 0 memories)"
173
173
  ).action(
174
174
  async (opts) => {
175
- const { memoryRmCommand } = await import("./memory-A7OUTQ54.js");
175
+ const { memoryRmCommand } = await import("./memory-XINRMEWB.js");
176
176
  await memoryRmCommand(opts);
177
177
  }
178
178
  );
179
179
  var guide = program.command("guide").description("Manage custom skill guides");
180
180
  guide.command("create").description("Create a custom guide for a skill").argument("<skill-name>", "skill to create guide for (e.g. cf-commit)").action(async (skillName) => {
181
- const { guideCreateCommand } = await import("./guide-ECSMH2AT.js");
181
+ const { guideCreateCommand } = await import("./guide-CO2V4ZLZ.js");
182
182
  guideCreateCommand(skillName);
183
183
  });
184
184
  guide.command("list").description("List existing custom guides").action(async () => {
185
- const { guideListCommand } = await import("./guide-ECSMH2AT.js");
185
+ const { guideListCommand } = await import("./guide-CO2V4ZLZ.js");
186
186
  guideListCommand();
187
187
  });
188
188
  var dev = program.command("dev").description("Development mode commands");
@@ -198,28 +198,28 @@ Dev subcommands:
198
198
  dev update [path] Update local dev plugin to latest version`
199
199
  );
200
200
  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-JSYPSXEZ.js");
201
+ const { devOnCommand } = await import("./dev-GKD52XE6.js");
202
202
  await devOnCommand(path);
203
203
  });
204
204
  dev.command("off").description("Switch back to remote marketplace").action(async () => {
205
- const { devOffCommand } = await import("./dev-JSYPSXEZ.js");
205
+ const { devOffCommand } = await import("./dev-GKD52XE6.js");
206
206
  await devOffCommand();
207
207
  });
208
208
  dev.command("status").description("Show current dev mode").action(async () => {
209
- const { devStatusCommand } = await import("./dev-JSYPSXEZ.js");
209
+ const { devStatusCommand } = await import("./dev-GKD52XE6.js");
210
210
  await devStatusCommand();
211
211
  });
212
212
  dev.command("sync").description(
213
213
  "Copy local source files to plugin cache (no version bump needed)"
214
214
  ).action(async () => {
215
- const { devSyncCommand } = await import("./dev-JSYPSXEZ.js");
215
+ const { devSyncCommand } = await import("./dev-GKD52XE6.js");
216
216
  await devSyncCommand();
217
217
  });
218
218
  dev.command("restart").description("Reinstall local dev plugin (off + on)").argument(
219
219
  "[path]",
220
220
  "path to local coding-friend repo (default: saved path or cwd)"
221
221
  ).action(async (path) => {
222
- const { devRestartCommand } = await import("./dev-JSYPSXEZ.js");
222
+ const { devRestartCommand } = await import("./dev-GKD52XE6.js");
223
223
  await devRestartCommand(path);
224
224
  });
225
225
  dev.command("update").description(
@@ -228,13 +228,13 @@ dev.command("update").description(
228
228
  "[path]",
229
229
  "path to local coding-friend repo (default: saved path or cwd)"
230
230
  ).action(async (path) => {
231
- const { devUpdateCommand } = await import("./dev-JSYPSXEZ.js");
231
+ const { devUpdateCommand } = await import("./dev-GKD52XE6.js");
232
232
  await devUpdateCommand(path);
233
233
  });
234
234
  program.hook("postAction", async () => {
235
235
  const topCmd = process.argv[2];
236
236
  if (topCmd === "update") return;
237
- const { checkAndNotifyCliUpdate } = await import("./update-check-I2RSVGFO.js");
237
+ const { checkAndNotifyCliUpdate } = await import("./update-check-25SCLHZO.js");
238
238
  checkAndNotifyCliUpdate(pkg.version);
239
239
  });
240
240
  await program.parseAsync();
@@ -1,17 +1,26 @@
1
1
  import {
2
- ensureMemoryBuilt,
3
- isMemoryInitialized,
4
- memoryInitWizard
5
- } from "./chunk-GHR3TNL6.js";
6
- import "./chunk-PQUACN4U.js";
2
+ applyPermissions,
3
+ buildLearnDirRules,
4
+ cleanupStalePluginRules,
5
+ getAllRules,
6
+ getExistingRules,
7
+ getMissingRules,
8
+ logPluginScriptWarning
9
+ } from "./chunk-O5ZKLFSL.js";
7
10
  import {
8
11
  isLearnMcpRegistered,
9
12
  registerLearnMcp
10
- } from "./chunk-TEC25H6C.js";
13
+ } from "./chunk-YIXAQ4R2.js";
14
+ import {
15
+ ensureMemoryBuilt,
16
+ isMemoryInitialized,
17
+ memoryInitWizard
18
+ } from "./chunk-TPGAW67X.js";
19
+ import "./chunk-MAGBNYZK.js";
11
20
  import {
12
21
  memoryConfigMenu
13
- } from "./chunk-7QFJODWB.js";
14
- import "./chunk-DUKBBMVM.js";
22
+ } from "./chunk-VV2U7NDN.js";
23
+ import "./chunk-CDTQL4FI.js";
15
24
  import {
16
25
  getLibPath
17
26
  } from "./chunk-RZRT7NGT.js";
@@ -43,24 +52,11 @@ import {
43
52
  getScopeLabel,
44
53
  injectBackChoice,
45
54
  showConfigHint
46
- } from "./chunk-EFRPDFO7.js";
55
+ } from "./chunk-IKLMHJH6.js";
47
56
  import {
48
57
  commandExists,
49
58
  run
50
59
  } from "./chunk-EVGXUDX4.js";
51
- import {
52
- log,
53
- printBanner
54
- } from "./chunk-NREZK463.js";
55
- import {
56
- applyPermissions,
57
- buildLearnDirRules,
58
- cleanupStalePluginRules,
59
- getAllRules,
60
- getExistingRules,
61
- getMissingRules,
62
- logPluginScriptWarning
63
- } from "./chunk-O5ZKLFSL.js";
64
60
  import {
65
61
  mergeJson,
66
62
  readJson,
@@ -74,6 +70,10 @@ import {
74
70
  localConfigPath,
75
71
  resolvePath
76
72
  } from "./chunk-X2H7JJMR.js";
73
+ import {
74
+ log,
75
+ printBanner
76
+ } from "./chunk-NREZK463.js";
77
77
 
78
78
  // src/commands/init.ts
79
79
  import { checkbox, confirm, input, select } from "@inquirer/prompts";
@@ -712,6 +712,53 @@ async function stepAutoApprove(globalCfg, localCfg) {
712
712
  log.dim("Docs: https://cf.dinhanhthi.com/docs/reference/auto-approve/");
713
713
  }
714
714
  }
715
+ async function stepPlanDocs(globalCfg, localCfg) {
716
+ const currentDisable = getMergedValue(
717
+ "disableGUIPlan",
718
+ globalCfg,
719
+ localCfg
720
+ );
721
+ const currentFormat = getMergedValue("guiPlanFormat", globalCfg, localCfg);
722
+ const scopeLabel = getScopeLabel("disableGUIPlan", globalCfg, localCfg);
723
+ printStepHeader(
724
+ `Plan docs ${formatScopeLabel(scopeLabel)}`,
725
+ "The human overview doc /cf-plan writes next to the agent plan \u2014 enable/disable and choose format."
726
+ );
727
+ const disableChoice = await confirm({
728
+ message: "Disable the /cf-plan human overview doc?",
729
+ default: currentDisable ?? false
730
+ });
731
+ let formatChoice;
732
+ if (!disableChoice) {
733
+ const fmt = await select({
734
+ message: "Format for the human overview doc?",
735
+ choices: injectBackChoice(
736
+ [
737
+ { name: "HTML", value: "html" },
738
+ { name: "Markdown", value: "md" }
739
+ ],
740
+ "Skip plan docs config"
741
+ ),
742
+ default: currentFormat ?? "html"
743
+ });
744
+ if (fmt === BACK) {
745
+ log.dim("Skipped plan docs config.");
746
+ return;
747
+ }
748
+ formatChoice = fmt;
749
+ }
750
+ const scope = await askScope();
751
+ if (scope === "back") {
752
+ log.dim("Skipped plan docs config.");
753
+ return;
754
+ }
755
+ const targetPath = scope === "global" ? globalConfigPath() : localConfigPath();
756
+ mergeJson(targetPath, {
757
+ disableGUIPlan: disableChoice,
758
+ ...formatChoice !== void 0 ? { guiPlanFormat: formatChoice } : {}
759
+ });
760
+ log.success(`Saved to ${targetPath}`);
761
+ }
715
762
  async function stepClaudePermissions(externalLearnDir, autoCommit) {
716
763
  const scope = await select({
717
764
  message: "Where should permissions be saved?",
@@ -799,6 +846,17 @@ async function initMenu(gitAvailable) {
799
846
  globalCfg,
800
847
  localCfg
801
848
  );
849
+ const planDocsScope = getScopeLabel("disableGUIPlan", globalCfg, localCfg);
850
+ const planDocsDisableVal = getMergedValue(
851
+ "disableGUIPlan",
852
+ globalCfg,
853
+ localCfg
854
+ );
855
+ const planDocsFormatVal = getMergedValue(
856
+ "guiPlanFormat",
857
+ globalCfg,
858
+ localCfg
859
+ );
802
860
  const projectRules = getExistingRules(claudeLocalSettingsPath());
803
861
  const userRules = getExistingRules(claudeSettingsPath());
804
862
  const allRules = getAllRules();
@@ -855,6 +913,11 @@ async function initMenu(gitAvailable) {
855
913
  value: "autoApprove",
856
914
  description: " Auto-approve safe tool calls, block destructive ones, prompt for ambiguous"
857
915
  },
916
+ {
917
+ name: `Plan docs ${formatScopeLabel(planDocsScope)}`,
918
+ value: "planDocs",
919
+ description: " /cf-plan human overview doc \u2014 enable/disable + format (html/md)"
920
+ },
858
921
  {
859
922
  name: `Permissions (${permissionStatus} rules)`,
860
923
  value: "permissions",
@@ -936,6 +999,41 @@ async function initMenu(gitAvailable) {
936
999
  }
937
1000
  break;
938
1001
  }
1002
+ case "planDocs": {
1003
+ const planDocsDisableChoice = await confirm({
1004
+ message: "Disable the /cf-plan human overview doc?",
1005
+ default: planDocsDisableVal ?? false
1006
+ });
1007
+ let planDocsFormatChoice;
1008
+ if (!planDocsDisableChoice) {
1009
+ const fmt = await select({
1010
+ message: "Format for the human overview doc?",
1011
+ choices: injectBackChoice(
1012
+ [
1013
+ { name: "HTML", value: "html" },
1014
+ { name: "Markdown", value: "md" }
1015
+ ],
1016
+ "Skip plan docs config"
1017
+ ),
1018
+ default: planDocsFormatVal ?? "html"
1019
+ });
1020
+ if (fmt === BACK) {
1021
+ log.dim("Skipped plan docs config.");
1022
+ break;
1023
+ }
1024
+ planDocsFormatChoice = fmt;
1025
+ }
1026
+ const planDocsTargetScope = await askScope();
1027
+ if (planDocsTargetScope !== "back") {
1028
+ const targetPath = planDocsTargetScope === "global" ? globalConfigPath() : localConfigPath();
1029
+ mergeJson(targetPath, {
1030
+ disableGUIPlan: planDocsDisableChoice,
1031
+ ...planDocsFormatChoice !== void 0 ? { guiPlanFormat: planDocsFormatChoice } : {}
1032
+ });
1033
+ log.success(`Saved to ${targetPath}`);
1034
+ }
1035
+ break;
1036
+ }
939
1037
  case "permissions": {
940
1038
  const learnCfg = globalCfg?.learn;
941
1039
  const learnOutputDir = learnCfg?.outputDir ?? DEFAULT_CONFIG.learn.outputDir;
@@ -1074,6 +1172,7 @@ async function initCommand() {
1074
1172
  const finalLocal = readJson(localConfigPath());
1075
1173
  await stepTdd(finalGlobal, finalLocal);
1076
1174
  await stepAutoApprove(finalGlobal, finalLocal);
1175
+ await stepPlanDocs(finalGlobal, finalLocal);
1077
1176
  printStepHeader(
1078
1177
  "Configure Claude permissions",
1079
1178
  "Grants Coding Friend skills/hooks the permissions they need, so you get fewer prompts."
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getLatestVersion,
3
3
  semverCompare
4
- } from "./chunk-KIKN5HEH.js";
4
+ } from "./chunk-EAJJVXAE.js";
5
5
  import {
6
6
  getInstalledVersion
7
7
  } from "./chunk-7SMP5CZ4.js";
@@ -16,19 +16,19 @@ import {
16
16
  } from "./chunk-GZT3YPAP.js";
17
17
  import {
18
18
  resolveScope
19
- } from "./chunk-EFRPDFO7.js";
19
+ } from "./chunk-IKLMHJH6.js";
20
20
  import {
21
21
  commandExists,
22
22
  run
23
23
  } from "./chunk-EVGXUDX4.js";
24
- import {
25
- log,
26
- printBanner
27
- } from "./chunk-NREZK463.js";
28
24
  import "./chunk-5UVDWG5L.js";
29
25
  import {
30
26
  devStatePath
31
27
  } from "./chunk-X2H7JJMR.js";
28
+ import {
29
+ log,
30
+ printBanner
31
+ } from "./chunk-NREZK463.js";
32
32
 
33
33
  // src/commands/install.ts
34
34
  import { existsSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveLearnDir
3
- } from "./chunk-DUKBBMVM.js";
3
+ } from "./chunk-CDTQL4FI.js";
4
4
  import "./chunk-57EGAXYI.js";
5
5
  import {
6
6
  commandExists,
@@ -8,16 +8,16 @@ import {
8
8
  runWithStderr,
9
9
  streamExec
10
10
  } from "./chunk-EVGXUDX4.js";
11
- import {
12
- log,
13
- printBanner
14
- } from "./chunk-NREZK463.js";
15
11
  import {
16
12
  readJson
17
13
  } from "./chunk-5UVDWG5L.js";
18
14
  import {
19
15
  globalConfigPath
20
16
  } from "./chunk-X2H7JJMR.js";
17
+ import {
18
+ log,
19
+ printBanner
20
+ } from "./chunk-NREZK463.js";
21
21
 
22
22
  // src/commands/learn.ts
23
23
  import { existsSync } from "fs";
@@ -1,47 +1,47 @@
1
+ import {
2
+ listMdFilesRecursive
3
+ } from "./chunk-2DTXVMPQ.js";
4
+ import {
5
+ isLearnMcpRegistered,
6
+ registerLearnMcp
7
+ } from "./chunk-YIXAQ4R2.js";
1
8
  import {
2
9
  ensureMemoryBuilt,
3
10
  printMemoryMcpConfig
4
- } from "./chunk-GHR3TNL6.js";
11
+ } from "./chunk-TPGAW67X.js";
5
12
  import {
6
13
  checkLearnMcpHealth,
7
14
  checkMemoryMcpHealth,
8
15
  detectMemoryMcpState,
9
16
  printHealthSection,
10
17
  warnStaleMcpJson
11
- } from "./chunk-PQUACN4U.js";
12
- import {
13
- listMdFilesRecursive
14
- } from "./chunk-2DTXVMPQ.js";
15
- import {
16
- isLearnMcpRegistered,
17
- registerLearnMcp
18
- } from "./chunk-TEC25H6C.js";
18
+ } from "./chunk-MAGBNYZK.js";
19
19
  import {
20
20
  getMemoryMcpStatus,
21
21
  writeMemoryMcpEntry
22
- } from "./chunk-7QFJODWB.js";
22
+ } from "./chunk-VV2U7NDN.js";
23
23
  import {
24
24
  resolveLearnDir,
25
25
  resolveMemoryDir
26
- } from "./chunk-DUKBBMVM.js";
26
+ } from "./chunk-CDTQL4FI.js";
27
27
  import {
28
28
  getLibPath
29
29
  } from "./chunk-RZRT7NGT.js";
30
30
  import "./chunk-57EGAXYI.js";
31
- import "./chunk-EFRPDFO7.js";
31
+ import "./chunk-IKLMHJH6.js";
32
32
  import {
33
33
  run
34
34
  } from "./chunk-EVGXUDX4.js";
35
- import {
36
- log,
37
- printBanner
38
- } from "./chunk-NREZK463.js";
39
35
  import {
40
36
  readJson
41
37
  } from "./chunk-5UVDWG5L.js";
42
38
  import {
43
39
  globalConfigPath
44
40
  } from "./chunk-X2H7JJMR.js";
41
+ import {
42
+ log,
43
+ printBanner
44
+ } from "./chunk-NREZK463.js";
45
45
 
46
46
  // src/commands/mcp.ts
47
47
  import { confirm } from "@inquirer/prompts";
@@ -12,18 +12,19 @@ import {
12
12
  memoryStartDaemonCommand,
13
13
  memoryStatusCommand,
14
14
  memoryStopDaemonCommand,
15
- printMemoryMcpConfig
16
- } from "./chunk-GHR3TNL6.js";
17
- import "./chunk-PQUACN4U.js";
18
- import "./chunk-7QFJODWB.js";
19
- import "./chunk-DUKBBMVM.js";
15
+ printMemoryMcpConfig,
16
+ refreshMemoryAfterUpdate
17
+ } from "./chunk-TPGAW67X.js";
18
+ import "./chunk-MAGBNYZK.js";
19
+ import "./chunk-VV2U7NDN.js";
20
+ import "./chunk-CDTQL4FI.js";
20
21
  import "./chunk-RZRT7NGT.js";
21
22
  import "./chunk-57EGAXYI.js";
22
- import "./chunk-EFRPDFO7.js";
23
+ import "./chunk-IKLMHJH6.js";
23
24
  import "./chunk-EVGXUDX4.js";
24
- import "./chunk-NREZK463.js";
25
25
  import "./chunk-5UVDWG5L.js";
26
26
  import "./chunk-X2H7JJMR.js";
27
+ import "./chunk-NREZK463.js";
27
28
  export {
28
29
  ensureMemoryBuilt,
29
30
  isMemoryInitialized,
@@ -38,5 +39,6 @@ export {
38
39
  memoryStartDaemonCommand,
39
40
  memoryStatusCommand,
40
41
  memoryStopDaemonCommand,
41
- printMemoryMcpConfig
42
+ printMemoryMcpConfig,
43
+ refreshMemoryAfterUpdate
42
44
  };
@@ -1,14 +1,3 @@
1
- import {
2
- askScope,
3
- formatScopeLabel,
4
- getMergedValue,
5
- getScopeLabel
6
- } from "./chunk-EFRPDFO7.js";
7
- import "./chunk-EVGXUDX4.js";
8
- import {
9
- log,
10
- printBanner
11
- } from "./chunk-NREZK463.js";
12
1
  import {
13
2
  STATIC_RULES,
14
3
  applyPermissions,
@@ -20,6 +9,13 @@ import {
20
9
  logPluginScriptWarning,
21
10
  runDangerousRulesAudit
22
11
  } from "./chunk-O5ZKLFSL.js";
12
+ import {
13
+ askScope,
14
+ formatScopeLabel,
15
+ getMergedValue,
16
+ getScopeLabel
17
+ } from "./chunk-IKLMHJH6.js";
18
+ import "./chunk-EVGXUDX4.js";
23
19
  import {
24
20
  mergeJson,
25
21
  readJson
@@ -31,6 +27,10 @@ import {
31
27
  globalConfigPath,
32
28
  localConfigPath
33
29
  } from "./chunk-X2H7JJMR.js";
30
+ import {
31
+ log,
32
+ printBanner
33
+ } from "./chunk-NREZK463.js";
34
34
 
35
35
  // src/commands/permission.ts
36
36
  import { checkbox, confirm, select } from "@inquirer/prompts";
@@ -1,10 +1,7 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-DUKBBMVM.js";
3
+ } from "./chunk-CDTQL4FI.js";
4
4
  import "./chunk-57EGAXYI.js";
5
- import {
6
- log
7
- } from "./chunk-NREZK463.js";
8
5
  import {
9
6
  readJson,
10
7
  writeJson
@@ -14,6 +11,9 @@ import {
14
11
  encodeProjectPath,
15
12
  resolvePath
16
13
  } from "./chunk-X2H7JJMR.js";
14
+ import {
15
+ log
16
+ } from "./chunk-NREZK463.js";
17
17
 
18
18
  // src/commands/session.ts
19
19
  import { input, select } from "@inquirer/prompts";