coding-friend-cli 1.31.0 → 1.31.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.
@@ -75,7 +75,9 @@ var ConfigSchema = z.strictObject({
75
75
  learn: LearnConfigSchema.optional(),
76
76
  statusline: StatuslineConfigSchema.optional(),
77
77
  memory: MemoryConfigSchema.optional(),
78
- autoApprove: z.boolean().optional()
78
+ autoApprove: z.boolean().optional(),
79
+ autoApproveIgnore: z.array(z.string()).optional(),
80
+ autoApproveAllowExtra: z.array(z.string()).optional()
79
81
  });
80
82
  var KNOWN_KEYS = [
81
83
  "language",
@@ -83,7 +85,9 @@ var KNOWN_KEYS = [
83
85
  "learn",
84
86
  "statusline",
85
87
  "memory",
86
- "autoApprove"
88
+ "autoApprove",
89
+ "autoApproveIgnore",
90
+ "autoApproveAllowExtra"
87
91
  ];
88
92
  function suggestKey(unknown) {
89
93
  let best = null;
@@ -79,12 +79,6 @@ var STATIC_RULES = [
79
79
  category: "Core Utilities",
80
80
  recommended: true
81
81
  },
82
- {
83
- rule: "Bash(node -e *)",
84
- description: "[execute] Run inline Node.js \xB7 Used by: memory-capture hook JSON parsing",
85
- category: "Core Utilities",
86
- recommended: true
87
- },
88
82
  {
89
83
  rule: "Bash(touch /tmp/coding-friend/*)",
90
84
  description: "[write] Create temp marker files \xB7 Used by: /cf-review mark-reviewed",
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RZRT7NGT.js";
4
4
  import {
5
5
  resolveMemoryDir
6
- } from "./chunk-2S6K2QY3.js";
6
+ } from "./chunk-65S7Q5PW.js";
7
7
  import {
8
8
  BACK,
9
9
  askScope,
@@ -7,14 +7,14 @@ import {
7
7
  getMemoryMcpStatus,
8
8
  memoryConfigMenu,
9
9
  writeMemoryMcpEntry
10
- } from "./chunk-AJ57KPF7.js";
10
+ } from "./chunk-YMCAGIYB.js";
11
11
  import {
12
12
  getLibPath
13
13
  } from "./chunk-RZRT7NGT.js";
14
14
  import {
15
15
  loadConfig,
16
16
  resolveMemoryDir
17
- } from "./chunk-2S6K2QY3.js";
17
+ } from "./chunk-65S7Q5PW.js";
18
18
  import {
19
19
  showConfigHint
20
20
  } from "./chunk-HPNRQYLM.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  memoryConfigMenu
3
- } from "./chunk-AJ57KPF7.js";
3
+ } from "./chunk-YMCAGIYB.js";
4
4
  import "./chunk-RZRT7NGT.js";
5
- import "./chunk-2S6K2QY3.js";
5
+ import "./chunk-65S7Q5PW.js";
6
6
  import {
7
7
  findStatuslineHookPath,
8
8
  getCurrentAccountEmail,
@@ -51,7 +51,7 @@ import {
51
51
  import {
52
52
  getAllRules,
53
53
  getExistingRules
54
- } from "./chunk-ADCFJSCP.js";
54
+ } from "./chunk-O27FVQFU.js";
55
55
  import {
56
56
  mergeJson,
57
57
  readJson
@@ -397,7 +397,7 @@ async function editAutoApprove(globalCfg, localCfg) {
397
397
  if (scope === "back") return;
398
398
  writeToScope(scope, { autoApprove: value });
399
399
  if (value) {
400
- const { runDangerousRulesAudit } = await import("./permissions-DDLSTTPS.js");
400
+ const { runDangerousRulesAudit } = await import("./permissions-LYADLYYK.js");
401
401
  await runDangerousRulesAudit(
402
402
  [
403
403
  claudeProjectSettingsPath(),
@@ -591,7 +591,7 @@ async function editPermissions() {
591
591
  )
592
592
  });
593
593
  if (choice === BACK) return;
594
- const { permissionCommand } = await import("./permission-EIOCPY2C.js");
594
+ const { permissionCommand } = await import("./permission-C5R3LMZQ.js");
595
595
  switch (choice) {
596
596
  case "interactive":
597
597
  await permissionCommand({});
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RZRT7NGT.js";
4
4
  import {
5
5
  resolveDocsDir
6
- } from "./chunk-2S6K2QY3.js";
6
+ } from "./chunk-65S7Q5PW.js";
7
7
  import "./chunk-DHH6SRXV.js";
8
8
  import {
9
9
  run,
package/dist/index.js CHANGED
@@ -30,26 +30,26 @@ 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-RGLJY6YH.js");
33
+ const { initCommand } = await import("./init-W55DKHKZ.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-NJE6PLDZ.js");
37
+ const { configCommand } = await import("./config-HH7MY4UD.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-VEGLP74L.js");
41
+ const { hostCommand } = await import("./host-DTWSRS2U.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-SW54A2I6.js");
45
+ const { mcpCommand } = await import("./mcp-JL2EUJBT.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-EIOCPY2C.js");
52
+ const { permissionCommand } = await import("./permission-C5R3LMZQ.js");
53
53
  await permissionCommand(opts);
54
54
  });
55
55
  program.command("statusline").description("Setup coding-friend statusline in Claude Code").action(async () => {
@@ -61,7 +61,7 @@ program.command("update").description("Update coding-friend plugin, CLI, and sta
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-NLBA3ZBK.js");
64
+ const { statusCommand } = await import("./status-CYAKIHFW.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-MNFU7GIO.js");
79
+ const { sessionSaveCommand } = await import("./session-COIV2PO5.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-MNFU7GIO.js");
83
+ const { sessionLoadCommand } = await import("./session-COIV2PO5.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-7VINMRJK.js");
103
+ const { memoryStatusCommand } = await import("./memory-VOLXT5SX.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-7VINMRJK.js");
107
+ const { memorySearchCommand } = await import("./memory-VOLXT5SX.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-7VINMRJK.js");
113
+ const { memoryListCommand } = await import("./memory-VOLXT5SX.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-7VINMRJK.js");
119
+ const { memoryInitCommand } = await import("./memory-VOLXT5SX.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-7VINMRJK.js");
123
+ const { memoryConfigCommand } = await import("./memory-VOLXT5SX.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-7VINMRJK.js");
127
+ const { memoryStartDaemonCommand } = await import("./memory-VOLXT5SX.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-7VINMRJK.js");
131
+ const { memoryStopDaemonCommand } = await import("./memory-VOLXT5SX.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-7VINMRJK.js");
135
+ const { memoryRebuildCommand } = await import("./memory-VOLXT5SX.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-7VINMRJK.js");
139
+ const { memoryMcpCommand } = await import("./memory-VOLXT5SX.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-7VINMRJK.js");
147
+ const { memoryRmCommand } = await import("./memory-VOLXT5SX.js");
148
148
  await memoryRmCommand(opts);
149
149
  }
150
150
  );
@@ -2,14 +2,14 @@ import {
2
2
  ensureMemoryBuilt,
3
3
  isMemoryInitialized,
4
4
  memoryInitWizard
5
- } from "./chunk-CNUERVBN.js";
5
+ } from "./chunk-ZEROY3CW.js";
6
6
  import {
7
7
  memoryConfigMenu
8
- } from "./chunk-AJ57KPF7.js";
8
+ } from "./chunk-YMCAGIYB.js";
9
9
  import {
10
10
  getLibPath
11
11
  } from "./chunk-RZRT7NGT.js";
12
- import "./chunk-2S6K2QY3.js";
12
+ import "./chunk-65S7Q5PW.js";
13
13
  import {
14
14
  findStatuslineHookPath,
15
15
  getCurrentAccountEmail,
@@ -63,7 +63,7 @@ import {
63
63
  getExistingRules,
64
64
  getMissingRules,
65
65
  logPluginScriptWarning
66
- } from "./chunk-ADCFJSCP.js";
66
+ } from "./chunk-O27FVQFU.js";
67
67
  import {
68
68
  mergeJson,
69
69
  readJson,
@@ -315,6 +315,7 @@ async function stepGitignore(docsDir) {
315
315
  `${docsDir}/learn/`,
316
316
  `${docsDir}/sessions/`,
317
317
  `${docsDir}/reviews/`,
318
+ `${docsDir}/context/`,
318
319
  ".coding-friend/"
319
320
  ];
320
321
  let entries = allEntries;
@@ -840,7 +841,7 @@ async function initMenu(gitAvailable) {
840
841
  log.success(`Saved to ${targetPath}`);
841
842
  }
842
843
  if (autoApproveChoice) {
843
- const { runDangerousRulesAudit } = await import("./permissions-DDLSTTPS.js");
844
+ const { runDangerousRulesAudit } = await import("./permissions-LYADLYYK.js");
844
845
  await runDangerousRulesAudit(
845
846
  [
846
847
  claudeProjectSettingsPath(),
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  ensureMemoryBuilt,
3
3
  printMemoryMcpConfig
4
- } from "./chunk-CNUERVBN.js";
5
- import "./chunk-AJ57KPF7.js";
4
+ } from "./chunk-ZEROY3CW.js";
5
+ import "./chunk-YMCAGIYB.js";
6
6
  import {
7
7
  getLibPath
8
8
  } from "./chunk-RZRT7NGT.js";
9
9
  import {
10
10
  resolveDocsDir,
11
11
  resolveMemoryDir
12
- } from "./chunk-2S6K2QY3.js";
12
+ } from "./chunk-65S7Q5PW.js";
13
13
  import "./chunk-DHH6SRXV.js";
14
14
  import "./chunk-HPNRQYLM.js";
15
15
  import {
@@ -13,10 +13,10 @@ import {
13
13
  memoryStatusCommand,
14
14
  memoryStopDaemonCommand,
15
15
  printMemoryMcpConfig
16
- } from "./chunk-CNUERVBN.js";
17
- import "./chunk-AJ57KPF7.js";
16
+ } from "./chunk-ZEROY3CW.js";
17
+ import "./chunk-YMCAGIYB.js";
18
18
  import "./chunk-RZRT7NGT.js";
19
- import "./chunk-2S6K2QY3.js";
19
+ import "./chunk-65S7Q5PW.js";
20
20
  import "./chunk-DHH6SRXV.js";
21
21
  import "./chunk-HPNRQYLM.js";
22
22
  import "./chunk-EVGXUDX4.js";
@@ -26,7 +26,7 @@ import {
26
26
  groupByCategory,
27
27
  logPluginScriptWarning,
28
28
  runDangerousRulesAudit
29
- } from "./chunk-ADCFJSCP.js";
29
+ } from "./chunk-O27FVQFU.js";
30
30
  import {
31
31
  mergeJson,
32
32
  readJson
@@ -15,7 +15,7 @@ import {
15
15
  logPluginScriptWarning,
16
16
  runDangerousRulesAudit,
17
17
  stripDangerousRules
18
- } from "./chunk-ADCFJSCP.js";
18
+ } from "./chunk-O27FVQFU.js";
19
19
  import "./chunk-5UVDWG5L.js";
20
20
  export {
21
21
  DANGEROUS_RULE_PATTERNS,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  loadConfig
3
- } from "./chunk-2S6K2QY3.js";
3
+ } from "./chunk-65S7Q5PW.js";
4
4
  import "./chunk-DHH6SRXV.js";
5
5
  import {
6
6
  claudeSessionDir,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RZRT7NGT.js";
4
4
  import {
5
5
  resolveMemoryDir
6
- } from "./chunk-2S6K2QY3.js";
6
+ } from "./chunk-65S7Q5PW.js";
7
7
  import {
8
8
  getCliVersion,
9
9
  getLatestCliVersion,
@@ -30,7 +30,7 @@ import {
30
30
  import "./chunk-NREZK463.js";
31
31
  import {
32
32
  getExistingRules
33
- } from "./chunk-ADCFJSCP.js";
33
+ } from "./chunk-O27FVQFU.js";
34
34
  import {
35
35
  readJson
36
36
  } from "./chunk-5UVDWG5L.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coding-friend-cli",
3
- "version": "1.31.0",
3
+ "version": "1.31.2",
4
4
  "description": "CLI for coding-friend — host learning docs, setup MCP server, initialize projects",
5
5
  "type": "module",
6
6
  "bin": {