@shipers-dev/multi 0.47.0 → 0.47.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/index.js +7 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36909,7 +36909,7 @@ async function processUserMessage(chat2, userMsg, peer, ctx) {
|
|
|
36909
36909
|
});
|
|
36910
36910
|
}
|
|
36911
36911
|
log4(`[chat ${chat2.id}] plan exec: ${res.ok} ok, ${res.fail} fail, ${errors3.length} parse-err`);
|
|
36912
|
-
return { ok: res.ok, fail: res.fail };
|
|
36912
|
+
return { ok: res.ok, fail: res.fail, lines: res.lines };
|
|
36913
36913
|
} catch (e) {
|
|
36914
36914
|
log4(`[chat ${chat2.id}] post-turn err: ${e.message}`);
|
|
36915
36915
|
return null;
|
|
@@ -36918,13 +36918,15 @@ async function processUserMessage(chat2, userMsg, peer, ctx) {
|
|
|
36918
36918
|
await runOneTurn(userMsg.text, true);
|
|
36919
36919
|
const firstPlan = await execAndPostPlan();
|
|
36920
36920
|
if (firstPlan && firstPlan.ok > 0) {
|
|
36921
|
+
const resultText = firstPlan.lines.join(`
|
|
36922
|
+
`).slice(0, 6000);
|
|
36921
36923
|
const followupPrompt = `[multi system note — auto-injected, not from the user]
|
|
36922
36924
|
|
|
36923
|
-
` + `Your previous plan block was executed. Results:
|
|
36925
|
+
` + `Your previous multi-plan block was executed. Results below:
|
|
36924
36926
|
|
|
36925
|
-
|
|
36927
|
+
` + `${resultText}
|
|
36926
36928
|
|
|
36927
|
-
` + `If
|
|
36929
|
+
` + `If these results need a follow-up multi-plan action (e.g. commenting on a newly-created issue using its returned KEY, or chaining work that depends on freshly-created ids), append ONE more multi-plan block now. Otherwise reply with a short confirmation to the user that summarises the outcome. Do NOT repeat actions you already ran successfully.`;
|
|
36928
36930
|
await runOneTurn(followupPrompt, false);
|
|
36929
36931
|
await execAndPostPlan();
|
|
36930
36932
|
}
|
|
@@ -37796,7 +37798,7 @@ import { parseArgs } from "util";
|
|
|
37796
37798
|
// package.json
|
|
37797
37799
|
var package_default = {
|
|
37798
37800
|
name: "@shipers-dev/multi",
|
|
37799
|
-
version: "0.47.
|
|
37801
|
+
version: "0.47.1",
|
|
37800
37802
|
type: "module",
|
|
37801
37803
|
bin: {
|
|
37802
37804
|
"multi-agent": "./dist/index.js"
|