@lih-x-x/kmr 1.0.50 → 1.0.52
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/cli.js +3 -3
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -6,9 +6,9 @@ async function checkUpdate() {
|
|
|
6
6
|
try {
|
|
7
7
|
const res = await fetch(`https://registry.npmjs.org/${"@lih-x-x/kmr"}/latest`, { signal: AbortSignal.timeout(3e3) });
|
|
8
8
|
const data = await res.json();
|
|
9
|
-
if (data.version && data.version !== "1.0.
|
|
9
|
+
if (data.version && data.version !== "1.0.52") {
|
|
10
10
|
console.log(`
|
|
11
|
-
\u2B06\uFE0F \u65B0\u7248\u672C\u53EF\u7528: ${"1.0.
|
|
11
|
+
\u2B06\uFE0F \u65B0\u7248\u672C\u53EF\u7528: ${"1.0.52"} \u2192 ${data.version}`);
|
|
12
12
|
console.log(` \u8FD0\u884C npm install -g ${"@lih-x-x/kmr"} \u66F4\u65B0
|
|
13
13
|
`);
|
|
14
14
|
}
|
|
@@ -56,7 +56,7 @@ KMR\uFF08Key Meetings Record\uFF09\u2014 \u4F1A\u8BAE\u6316\u6398\u673A
|
|
|
56
56
|
kmr --help \u663E\u793A\u5E2E\u52A9
|
|
57
57
|
`);
|
|
58
58
|
} else if (command === "--version" || command === "-v") {
|
|
59
|
-
console.log("1.0.
|
|
59
|
+
console.log("1.0.52");
|
|
60
60
|
} else if (command === "list") {
|
|
61
61
|
const { loadConfig } = await import("./config-L2SVVMAR.js");
|
|
62
62
|
const { JsonStore } = await import("./jsonStore-AL73KEUG.js");
|
package/dist/index.js
CHANGED
|
@@ -713,11 +713,11 @@ ${text}`;
|
|
|
713
713
|
try {
|
|
714
714
|
await execFileAsync(
|
|
715
715
|
"acpx",
|
|
716
|
-
["--allowed-tools", "Terminal(kmr *)", agentCmd, "-s", sessionName, SESSION_SKILL],
|
|
716
|
+
["--approve-all", "--allowed-tools", "Terminal(kmr *)", agentCmd, "-s", sessionName, SESSION_SKILL],
|
|
717
717
|
{ timeout: this.timeout, maxBuffer: 1024 * 1024, env: getExecEnv() }
|
|
718
718
|
);
|
|
719
719
|
} catch (err) {
|
|
720
|
-
console.error(`[session] \u89D2\u8272\u8BBE\u5B9A\u5931\u8D25:`, err.message);
|
|
720
|
+
console.error(`[session] \u89D2\u8272\u8BBE\u5B9A\u5931\u8D25:`, err.stderr || err.message);
|
|
721
721
|
}
|
|
722
722
|
await this.trackNewPids(pidsBefore2);
|
|
723
723
|
this.activeSessions.set(userId, {
|
|
@@ -732,13 +732,14 @@ ${text}`;
|
|
|
732
732
|
try {
|
|
733
733
|
const { stdout } = await execFileAsync(
|
|
734
734
|
"acpx",
|
|
735
|
-
["--allowed-tools", "Terminal(kmr *)", agentCmd, "-s", sessionName, text],
|
|
735
|
+
["--approve-all", "--allowed-tools", "Terminal(kmr *)", agentCmd, "-s", sessionName, text],
|
|
736
736
|
{ timeout: this.timeout, maxBuffer: 1024 * 1024, env: getExecEnv() }
|
|
737
737
|
);
|
|
738
738
|
await this.trackNewPids(pidsBefore);
|
|
739
739
|
return this.extractReply(stdout);
|
|
740
740
|
} catch (err) {
|
|
741
741
|
await this.trackNewPids(pidsBefore);
|
|
742
|
+
console.error(`[session] sendToSession \u5931\u8D25:`, err.stderr || err.message);
|
|
742
743
|
if (err.killed) {
|
|
743
744
|
throw new Error(`AI \u56DE\u590D\u8D85\u65F6 (${this.timeout}ms)`);
|
|
744
745
|
}
|