coding-friend-cli 1.36.1 → 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.
@@ -80,7 +80,9 @@ var ConfigSchema = z.strictObject({
80
80
  review: ReviewConfigSchema.optional(),
81
81
  autoApprove: z.boolean().optional(),
82
82
  autoApproveIgnore: z.array(z.string()).optional(),
83
- autoApproveAllowExtra: z.array(z.string()).optional()
83
+ autoApproveAllowExtra: z.array(z.string()).optional(),
84
+ disableGUIPlan: z.boolean().optional(),
85
+ guiPlanFormat: z.enum(["html", "md"]).optional()
84
86
  });
85
87
  var KNOWN_KEYS = [
86
88
  "language",
@@ -92,7 +94,9 @@ var KNOWN_KEYS = [
92
94
  "review",
93
95
  "autoApprove",
94
96
  "autoApproveIgnore",
95
- "autoApproveAllowExtra"
97
+ "autoApproveAllowExtra",
98
+ "disableGUIPlan",
99
+ "guiPlanFormat"
96
100
  ];
97
101
  function suggestKey(unknown) {
98
102
  let best = null;
@@ -249,7 +249,7 @@ async function updateCommand(opts) {
249
249
  }
250
250
  }
251
251
  if (doCli) {
252
- const { refreshMemoryAfterUpdate } = await import("./memory-5U6GGTVI.js");
252
+ const { refreshMemoryAfterUpdate } = await import("./memory-XINRMEWB.js");
253
253
  await refreshMemoryAfterUpdate();
254
254
  }
255
255
  if (doStatusline) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeMemoryMcpEntry
3
- } from "./chunk-2MOPHSMC.js";
3
+ } from "./chunk-VV2U7NDN.js";
4
4
  import {
5
5
  readJson
6
6
  } from "./chunk-5UVDWG5L.js";
@@ -2,16 +2,16 @@ import {
2
2
  checkMemoryMcpHealth,
3
3
  printHealthSection,
4
4
  warnStaleMcpJson
5
- } from "./chunk-HILXDUVZ.js";
5
+ } from "./chunk-MAGBNYZK.js";
6
6
  import {
7
7
  getMemoryMcpStatus,
8
8
  memoryConfigMenu,
9
9
  writeMemoryMcpEntry
10
- } from "./chunk-2MOPHSMC.js";
10
+ } from "./chunk-VV2U7NDN.js";
11
11
  import {
12
12
  loadConfig,
13
13
  resolveMemoryDir
14
- } from "./chunk-YOXXIXMQ.js";
14
+ } from "./chunk-CDTQL4FI.js";
15
15
  import {
16
16
  getLibPath
17
17
  } from "./chunk-RZRT7NGT.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveMemoryDir
3
- } from "./chunk-YOXXIXMQ.js";
3
+ } from "./chunk-CDTQL4FI.js";
4
4
  import {
5
5
  getLibPath
6
6
  } from "./chunk-RZRT7NGT.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadConfig,
3
3
  resolveMemoryDir
4
- } from "./chunk-YOXXIXMQ.js";
4
+ } from "./chunk-CDTQL4FI.js";
5
5
  import "./chunk-57EGAXYI.js";
6
6
  import "./chunk-5UVDWG5L.js";
7
7
  import {
@@ -11,10 +11,10 @@ import {
11
11
  } from "./chunk-YIXAQ4R2.js";
12
12
  import {
13
13
  memoryConfigMenu
14
- } from "./chunk-2MOPHSMC.js";
14
+ } from "./chunk-VV2U7NDN.js";
15
15
  import {
16
16
  resolveLearnDir
17
- } from "./chunk-YOXXIXMQ.js";
17
+ } from "./chunk-CDTQL4FI.js";
18
18
  import "./chunk-RZRT7NGT.js";
19
19
  import {
20
20
  findStatuslineHookPath,
@@ -432,6 +432,85 @@ async function learnSubMenu() {
432
432
  }
433
433
  }
434
434
  }
435
+ async function editDisableGUIPlan(globalCfg, localCfg) {
436
+ const currentValue = getMergedValue("disableGUIPlan", globalCfg, localCfg);
437
+ if (currentValue !== void 0) {
438
+ log.dim(`Current: ${currentValue}`);
439
+ }
440
+ const value = await confirm({
441
+ message: "Disable the human overview doc that /cf-plan generates alongside the agent plan?",
442
+ default: currentValue ?? false
443
+ });
444
+ const scope = await askScope();
445
+ if (scope === "back") return;
446
+ writeToScope(scope, { disableGUIPlan: value });
447
+ }
448
+ async function editGuiPlanFormat(globalCfg, localCfg) {
449
+ const currentValue = getMergedValue(
450
+ "guiPlanFormat",
451
+ globalCfg,
452
+ localCfg
453
+ );
454
+ if (currentValue !== void 0) {
455
+ log.dim(`Current: ${currentValue}`);
456
+ }
457
+ const choice = await select({
458
+ message: "Format for the /cf-plan human overview doc?",
459
+ choices: injectBackChoice(
460
+ [
461
+ { name: "HTML", value: "html" },
462
+ { name: "Markdown", value: "md" }
463
+ ],
464
+ "Back"
465
+ ),
466
+ default: currentValue ?? "html"
467
+ });
468
+ if (choice === BACK) return;
469
+ const scope = await askScope();
470
+ if (scope === "back") return;
471
+ writeToScope(scope, { guiPlanFormat: choice });
472
+ }
473
+ async function planDocsSubMenu() {
474
+ while (true) {
475
+ const globalCfg = readJson(globalConfigPath());
476
+ const localCfg = readJson(localConfigPath());
477
+ const disableVal = getMergedValue(
478
+ "disableGUIPlan",
479
+ globalCfg,
480
+ localCfg
481
+ );
482
+ const formatVal = getMergedValue(
483
+ "guiPlanFormat",
484
+ globalCfg,
485
+ localCfg
486
+ );
487
+ const choice = await select({
488
+ message: "Plan docs settings:",
489
+ choices: injectBackChoice(
490
+ [
491
+ {
492
+ name: `Disable overview doc (${disableVal ?? false})`,
493
+ value: "disableGUIPlan"
494
+ },
495
+ {
496
+ name: `Format (${formatVal ?? "html"})`,
497
+ value: "guiPlanFormat"
498
+ }
499
+ ],
500
+ "Back"
501
+ )
502
+ });
503
+ if (choice === BACK) return;
504
+ switch (choice) {
505
+ case "disableGUIPlan":
506
+ await editDisableGUIPlan(globalCfg, localCfg);
507
+ break;
508
+ case "guiPlanFormat":
509
+ await editGuiPlanFormat(globalCfg, localCfg);
510
+ break;
511
+ }
512
+ }
513
+ }
435
514
  async function editTdd(globalCfg, localCfg) {
436
515
  const currentValue = getMergedValue("tdd", globalCfg, localCfg);
437
516
  if (currentValue !== void 0) {
@@ -705,6 +784,7 @@ async function configCommand() {
705
784
  );
706
785
  const reviewScope = getScopeLabel("review", globalCfg, localCfg);
707
786
  const withCodexVal = getMergedValue("review", globalCfg, localCfg)?.withCodex;
787
+ const planDocsScope = getScopeLabel("disableGUIPlan", globalCfg, localCfg);
708
788
  const statuslineStatus = isStatuslineConfigured() ? chalk.green("configured") : chalk.yellow("not configured");
709
789
  const completionStatus = hasShellCompletion() ? chalk.green("installed") : chalk.yellow("not installed");
710
790
  const projectRules = getExistingRules(claudeLocalSettingsPath());
@@ -755,6 +835,11 @@ async function configCommand() {
755
835
  value: "review",
756
836
  description: " Run a Codex second-opinion review alongside Claude's on every /cf-review"
757
837
  },
838
+ {
839
+ name: `Plan docs ${formatScopeLabel(planDocsScope)}`,
840
+ value: "planDocs",
841
+ description: " Human overview doc generated by /cf-plan \u2014 enable/disable + format (html/md)"
842
+ },
758
843
  {
759
844
  name: `Statusline (${statuslineStatus})`,
760
845
  value: "statusline",
@@ -804,6 +889,9 @@ async function configCommand() {
804
889
  case "review":
805
890
  await editReviewWithCodex(globalCfg, localCfg);
806
891
  break;
892
+ case "planDocs":
893
+ await planDocsSubMenu();
894
+ break;
807
895
  case "statusline":
808
896
  await editStatusline();
809
897
  break;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveLearnDir
3
- } from "./chunk-YOXXIXMQ.js";
3
+ } from "./chunk-CDTQL4FI.js";
4
4
  import {
5
5
  getLibPath
6
6
  } from "./chunk-RZRT7NGT.js";
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ 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-H5VELYYZ.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) => {
@@ -30,11 +30,11 @@ program.command("enable").description("Re-enable the Coding Friend plugin").opti
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-ZEGE7T5H.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-NG46PYON.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-SN27RONR.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-27FL56ZT.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-SN27RONR.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-4ODYPJ4N.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) => {
@@ -81,15 +81,15 @@ program.command("statusline").description("Setup coding-friend statusline in Cla
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-DHY2EIY6.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-EAVPCBVN.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-HOVZN7PF.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-YIQMX4BQ.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-YIQMX4BQ.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-5U6GGTVI.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-5U6GGTVI.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-5U6GGTVI.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-5U6GGTVI.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-5U6GGTVI.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-5U6GGTVI.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-5U6GGTVI.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-5U6GGTVI.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-5U6GGTVI.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,7 +172,7 @@ 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-5U6GGTVI.js");
175
+ const { memoryRmCommand } = await import("./memory-XINRMEWB.js");
176
176
  await memoryRmCommand(opts);
177
177
  }
178
178
  );
@@ -15,12 +15,12 @@ import {
15
15
  ensureMemoryBuilt,
16
16
  isMemoryInitialized,
17
17
  memoryInitWizard
18
- } from "./chunk-HF7Y63JR.js";
19
- import "./chunk-HILXDUVZ.js";
18
+ } from "./chunk-TPGAW67X.js";
19
+ import "./chunk-MAGBNYZK.js";
20
20
  import {
21
21
  memoryConfigMenu
22
- } from "./chunk-2MOPHSMC.js";
23
- import "./chunk-YOXXIXMQ.js";
22
+ } from "./chunk-VV2U7NDN.js";
23
+ import "./chunk-CDTQL4FI.js";
24
24
  import {
25
25
  getLibPath
26
26
  } from "./chunk-RZRT7NGT.js";
@@ -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-76GDRS54.js";
4
+ } from "./chunk-EAJJVXAE.js";
5
5
  import {
6
6
  getInstalledVersion
7
7
  } from "./chunk-7SMP5CZ4.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveLearnDir
3
- } from "./chunk-YOXXIXMQ.js";
3
+ } from "./chunk-CDTQL4FI.js";
4
4
  import "./chunk-57EGAXYI.js";
5
5
  import {
6
6
  commandExists,
@@ -8,22 +8,22 @@ import {
8
8
  import {
9
9
  ensureMemoryBuilt,
10
10
  printMemoryMcpConfig
11
- } from "./chunk-HF7Y63JR.js";
11
+ } from "./chunk-TPGAW67X.js";
12
12
  import {
13
13
  checkLearnMcpHealth,
14
14
  checkMemoryMcpHealth,
15
15
  detectMemoryMcpState,
16
16
  printHealthSection,
17
17
  warnStaleMcpJson
18
- } from "./chunk-HILXDUVZ.js";
18
+ } from "./chunk-MAGBNYZK.js";
19
19
  import {
20
20
  getMemoryMcpStatus,
21
21
  writeMemoryMcpEntry
22
- } from "./chunk-2MOPHSMC.js";
22
+ } from "./chunk-VV2U7NDN.js";
23
23
  import {
24
24
  resolveLearnDir,
25
25
  resolveMemoryDir
26
- } from "./chunk-YOXXIXMQ.js";
26
+ } from "./chunk-CDTQL4FI.js";
27
27
  import {
28
28
  getLibPath
29
29
  } from "./chunk-RZRT7NGT.js";
@@ -14,10 +14,10 @@ import {
14
14
  memoryStopDaemonCommand,
15
15
  printMemoryMcpConfig,
16
16
  refreshMemoryAfterUpdate
17
- } from "./chunk-HF7Y63JR.js";
18
- import "./chunk-HILXDUVZ.js";
19
- import "./chunk-2MOPHSMC.js";
20
- import "./chunk-YOXXIXMQ.js";
17
+ } from "./chunk-TPGAW67X.js";
18
+ import "./chunk-MAGBNYZK.js";
19
+ import "./chunk-VV2U7NDN.js";
20
+ import "./chunk-CDTQL4FI.js";
21
21
  import "./chunk-RZRT7NGT.js";
22
22
  import "./chunk-57EGAXYI.js";
23
23
  import "./chunk-IKLMHJH6.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-YOXXIXMQ.js";
3
+ } from "./chunk-CDTQL4FI.js";
4
4
  import "./chunk-57EGAXYI.js";
5
5
  import {
6
6
  readJson,
@@ -10,13 +10,13 @@ import {
10
10
  import {
11
11
  checkLearnMcpHealth,
12
12
  checkMemoryMcpHealth
13
- } from "./chunk-HILXDUVZ.js";
14
- import "./chunk-2MOPHSMC.js";
13
+ } from "./chunk-MAGBNYZK.js";
14
+ import "./chunk-VV2U7NDN.js";
15
15
  import {
16
16
  resolveLearnDir,
17
17
  resolveMemoryDir,
18
18
  sanitizeRawConfig
19
- } from "./chunk-YOXXIXMQ.js";
19
+ } from "./chunk-CDTQL4FI.js";
20
20
  import {
21
21
  getLibPath
22
22
  } from "./chunk-RZRT7NGT.js";
@@ -25,7 +25,7 @@ import {
25
25
  getLatestCliVersion,
26
26
  getLatestVersion,
27
27
  semverCompare
28
- } from "./chunk-76GDRS54.js";
28
+ } from "./chunk-EAJJVXAE.js";
29
29
  import {
30
30
  getInstalledVersion
31
31
  } from "./chunk-7SMP5CZ4.js";
@@ -4,7 +4,7 @@ import {
4
4
  getLatestVersion,
5
5
  semverCompare,
6
6
  updateCommand
7
- } from "./chunk-76GDRS54.js";
7
+ } from "./chunk-EAJJVXAE.js";
8
8
  import "./chunk-7SMP5CZ4.js";
9
9
  import "./chunk-57EGAXYI.js";
10
10
  import "./chunk-667NMPN4.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coding-friend-cli",
3
- "version": "1.36.1",
3
+ "version": "1.36.2",
4
4
  "description": "CLI for coding-friend — host learning docs, setup MCP server, initialize projects",
5
5
  "type": "module",
6
6
  "bin": {