larkway 0.3.63 → 0.3.64
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/README.md +1 -1
- package/README.zh.md +1 -1
- package/dist/cli/index.js +9 -0
- package/dist/main.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
You @ the bot in a Feishu thread. It runs on your machine — reading your real codebase, executing commands, opening MRs — and posts the result back. You define what the agent knows and what it can do. Larkway just carries the messages.
|
|
10
10
|
|
|
11
|
-
**Current release: v0.3.
|
|
11
|
+
**Current release: v0.3.64**
|
|
12
12
|
|
|
13
13
|
---
|
|
14
14
|
|
package/README.zh.md
CHANGED
package/dist/cli/index.js
CHANGED
|
@@ -130467,6 +130467,15 @@ function makeSchtasksAdapter(inputs, opts = {}) {
|
|
|
130467
130467
|
"/TR",
|
|
130468
130468
|
`"${launcherPath}"`
|
|
130469
130469
|
]);
|
|
130470
|
+
try {
|
|
130471
|
+
await exec("powershell.exe", [
|
|
130472
|
+
"-NoProfile",
|
|
130473
|
+
"-NonInteractive",
|
|
130474
|
+
"-Command",
|
|
130475
|
+
`$s = New-ScheduledTaskSettingsSet -RestartCount 10 -RestartInterval (New-TimeSpan -Minutes 1); Set-ScheduledTask -TaskName "${taskName}" -Settings $s`
|
|
130476
|
+
]);
|
|
130477
|
+
} catch {
|
|
130478
|
+
}
|
|
130470
130479
|
},
|
|
130471
130480
|
async start() {
|
|
130472
130481
|
await exec("schtasks", ["/Run", "/TN", taskName]);
|
package/dist/main.js
CHANGED
|
@@ -124505,12 +124505,12 @@ var BridgeHandler = class {
|
|
|
124505
124505
|
consecutiveStuckCount: nextStuckCount
|
|
124506
124506
|
});
|
|
124507
124507
|
}
|
|
124508
|
-
const untrustedAnswerFallback = !stoppedByUser && !cardKitTimeoutFailure && result.exitCode === 0 && reportedState
|
|
124508
|
+
const untrustedAnswerFallback = !stoppedByUser && !cardKitTimeoutFailure && result.exitCode === 0 && reportedState?.last_message == null && !trustedAnswerText.trim() && !cardKitProgress?.answerText.trim() ? lastInternalText.trim() : "";
|
|
124509
124509
|
if (untrustedAnswerFallback) {
|
|
124510
124510
|
await recordEvent({
|
|
124511
124511
|
status: "running",
|
|
124512
124512
|
appendPath: "\u6B63\u6587\u56DE\u9000",
|
|
124513
|
-
reason: "\u672C\u8F6E\u65E0 marker \u901A\u9053\u6B63\u6587\u4E0E state.json\uFF0C\u5DF2\u56DE\u9000\u5C55\u793A agent \u6700\u540E\u4E00\u6BB5\u975E\u53EF\u4FE1\u6587\u672C\u3002"
|
|
124513
|
+
reason: reportedState === null ? "\u672C\u8F6E\u65E0 marker \u901A\u9053\u6B63\u6587\u4E0E state.json\uFF0C\u5DF2\u56DE\u9000\u5C55\u793A agent \u6700\u540E\u4E00\u6BB5\u975E\u53EF\u4FE1\u6587\u672C\u3002" : "\u672C\u8F6E\u65E0 marker \u901A\u9053\u6B63\u6587\uFF0Cstate.json \u4E5F\u672A\u63D0\u4F9B last_message\uFF0C\u5DF2\u56DE\u9000\u5C55\u793A agent \u6700\u540E\u4E00\u6BB5\u975E\u53EF\u4FE1\u6587\u672C\u3002"
|
|
124514
124514
|
});
|
|
124515
124515
|
}
|
|
124516
124516
|
const fallbackAnswer = trustedAnswerText.trim() || cardKitProgress?.answerText.trim() || untrustedAnswerFallback || "";
|