coding-friend-cli 1.30.0 → 1.31.1
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-2S6K2QY3.js → chunk-65S7Q5PW.js} +6 -2
- package/dist/{chunk-AJ57KPF7.js → chunk-YMCAGIYB.js} +1 -1
- package/dist/{chunk-CNUERVBN.js → chunk-ZEROY3CW.js} +2 -2
- package/dist/{config-L3U5MDSI.js → config-GO2O43UV.js} +7 -3
- package/dist/{host-VEGLP74L.js → host-DTWSRS2U.js} +1 -1
- package/dist/index.js +18 -18
- package/dist/{init-3GJVRRIL.js → init-B3Y5TFTW.js} +9 -3
- package/dist/{mcp-SW54A2I6.js → mcp-JL2EUJBT.js} +3 -3
- package/dist/{memory-7VINMRJK.js → memory-VOLXT5SX.js} +3 -3
- package/dist/{permission-HU36DY4C.js → permission-EIOCPY2C.js} +4 -0
- package/dist/{session-MNFU7GIO.js → session-COIV2PO5.js} +1 -1
- package/dist/{status-NLBA3ZBK.js → status-RQUCLZFN.js} +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -7,14 +7,14 @@ import {
|
|
|
7
7
|
getMemoryMcpStatus,
|
|
8
8
|
memoryConfigMenu,
|
|
9
9
|
writeMemoryMcpEntry
|
|
10
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
3
|
+
} from "./chunk-YMCAGIYB.js";
|
|
4
4
|
import "./chunk-RZRT7NGT.js";
|
|
5
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-65S7Q5PW.js";
|
|
6
6
|
import {
|
|
7
7
|
findStatuslineHookPath,
|
|
8
8
|
getCurrentAccountEmail,
|
|
@@ -407,6 +407,10 @@ async function editAutoApprove(globalCfg, localCfg) {
|
|
|
407
407
|
log,
|
|
408
408
|
(message) => confirm({ message, default: true })
|
|
409
409
|
);
|
|
410
|
+
log.dim(
|
|
411
|
+
"Tip: Fine-tune with autoApproveAllowExtra / autoApproveIgnore in config.json"
|
|
412
|
+
);
|
|
413
|
+
log.dim("Docs: https://cf.dinhanhthi.com/docs/reference/auto-approve/");
|
|
410
414
|
}
|
|
411
415
|
}
|
|
412
416
|
async function editStatusline() {
|
|
@@ -587,7 +591,7 @@ async function editPermissions() {
|
|
|
587
591
|
)
|
|
588
592
|
});
|
|
589
593
|
if (choice === BACK) return;
|
|
590
|
-
const { permissionCommand } = await import("./permission-
|
|
594
|
+
const { permissionCommand } = await import("./permission-EIOCPY2C.js");
|
|
591
595
|
switch (choice) {
|
|
592
596
|
case "interactive":
|
|
593
597
|
await permissionCommand({});
|
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-
|
|
33
|
+
const { initCommand } = await import("./init-B3Y5TFTW.js");
|
|
34
34
|
await initCommand();
|
|
35
35
|
});
|
|
36
36
|
program.command("config").description("Manage Coding Friend configuration").action(async () => {
|
|
37
|
-
const { configCommand } = await import("./config-
|
|
37
|
+
const { configCommand } = await import("./config-GO2O43UV.js");
|
|
38
38
|
await configCommand();
|
|
39
39
|
});
|
|
40
40
|
program.command("host").description("Build and serve learning docs as a static website").argument("[path]", "path to docs folder").option("-p, --port <port>", "port number", "3333").action(async (path, opts) => {
|
|
41
|
-
const { hostCommand } = await import("./host-
|
|
41
|
+
const { hostCommand } = await import("./host-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-
|
|
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-
|
|
52
|
+
const { permissionCommand } = await import("./permission-EIOCPY2C.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-
|
|
64
|
+
const { statusCommand } = await import("./status-RQUCLZFN.js");
|
|
65
65
|
await statusCommand();
|
|
66
66
|
});
|
|
67
67
|
var session = program.command("session").description("Save and load Claude Code sessions across machines");
|
|
@@ -76,11 +76,11 @@ session.command("save").description("Save current Claude Code session to sync fo
|
|
|
76
76
|
"-s, --session-id <id>",
|
|
77
77
|
"session UUID to save (default: auto-detect newest)"
|
|
78
78
|
).option("-l, --label <label>", "label for this session").action(async (opts) => {
|
|
79
|
-
const { sessionSaveCommand } = await import("./session-
|
|
79
|
+
const { sessionSaveCommand } = await import("./session-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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
5
|
+
} from "./chunk-ZEROY3CW.js";
|
|
6
6
|
import {
|
|
7
7
|
memoryConfigMenu
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YMCAGIYB.js";
|
|
9
9
|
import {
|
|
10
10
|
getLibPath
|
|
11
11
|
} from "./chunk-RZRT7NGT.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-65S7Q5PW.js";
|
|
13
13
|
import {
|
|
14
14
|
findStatuslineHookPath,
|
|
15
15
|
getCurrentAccountEmail,
|
|
@@ -850,6 +850,12 @@ async function initMenu(gitAvailable) {
|
|
|
850
850
|
log,
|
|
851
851
|
(message) => confirm({ message, default: true })
|
|
852
852
|
);
|
|
853
|
+
log.dim(
|
|
854
|
+
"Tip: Fine-tune with autoApproveAllowExtra / autoApproveIgnore in config.json"
|
|
855
|
+
);
|
|
856
|
+
log.dim(
|
|
857
|
+
"Docs: https://cf.dinhanhthi.com/docs/reference/auto-approve/"
|
|
858
|
+
);
|
|
853
859
|
}
|
|
854
860
|
break;
|
|
855
861
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureMemoryBuilt,
|
|
3
3
|
printMemoryMcpConfig
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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-
|
|
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-
|
|
17
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-ZEROY3CW.js";
|
|
17
|
+
import "./chunk-YMCAGIYB.js";
|
|
18
18
|
import "./chunk-RZRT7NGT.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-65S7Q5PW.js";
|
|
20
20
|
import "./chunk-DHH6SRXV.js";
|
|
21
21
|
import "./chunk-HPNRQYLM.js";
|
|
22
22
|
import "./chunk-EVGXUDX4.js";
|
|
@@ -205,6 +205,10 @@ async function autoApproveFlow() {
|
|
|
205
205
|
log,
|
|
206
206
|
(message) => confirm({ message, default: true })
|
|
207
207
|
);
|
|
208
|
+
log.dim(
|
|
209
|
+
"Tip: Fine-tune with autoApproveAllowExtra / autoApproveIgnore in config.json"
|
|
210
|
+
);
|
|
211
|
+
log.dim("Docs: https://cf.dinhanhthi.com/docs/reference/auto-approve/");
|
|
208
212
|
}
|
|
209
213
|
}
|
|
210
214
|
async function permissionCommand(opts) {
|