@shipers-dev/multi 0.15.0 → 0.15.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 +12 -14
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -16293,7 +16293,7 @@ import { join as join5, dirname as dirname3 } from "path";
|
|
|
16293
16293
|
// package.json
|
|
16294
16294
|
var package_default = {
|
|
16295
16295
|
name: "@shipers-dev/multi",
|
|
16296
|
-
version: "0.
|
|
16296
|
+
version: "0.15.1",
|
|
16297
16297
|
type: "module",
|
|
16298
16298
|
bin: {
|
|
16299
16299
|
"multi-agent": "./dist/index.js"
|
|
@@ -16303,7 +16303,8 @@ var package_default = {
|
|
|
16303
16303
|
],
|
|
16304
16304
|
scripts: {
|
|
16305
16305
|
dev: "bun run src/index.ts",
|
|
16306
|
-
build: "bun build src/index.ts --outdir=dist --target=bun"
|
|
16306
|
+
build: "bun build src/index.ts --outdir=dist --target=bun",
|
|
16307
|
+
prepublishOnly: "bun run build"
|
|
16307
16308
|
},
|
|
16308
16309
|
dependencies: {
|
|
16309
16310
|
"@agentclientprotocol/sdk": "^0.20.0",
|
|
@@ -17276,12 +17277,14 @@ _${bits.join(" \xB7 ")}_`);
|
|
|
17276
17277
|
}
|
|
17277
17278
|
}
|
|
17278
17279
|
};
|
|
17279
|
-
let preferType;
|
|
17280
|
-
|
|
17281
|
-
|
|
17282
|
-
|
|
17283
|
-
|
|
17284
|
-
|
|
17280
|
+
let preferType = task.agent_runtime || undefined;
|
|
17281
|
+
if (!preferType) {
|
|
17282
|
+
try {
|
|
17283
|
+
const a = await apiClient.get(`${apiUrl}/api/agents/${task.agent_id}`);
|
|
17284
|
+
if (a.data?.type)
|
|
17285
|
+
preferType = a.data.type;
|
|
17286
|
+
} catch {}
|
|
17287
|
+
}
|
|
17285
17288
|
const acpCapable = detected.filter((d) => d.type === "claude-code");
|
|
17286
17289
|
const useAcp = preferType !== "pi" && acpCapable.length > 0 && process.env.MULTI_LEGACY !== "1";
|
|
17287
17290
|
const useAcpx = !useAcp && preferType && ["pi", "codex", "openclaw"].includes(preferType) && process.env.MULTI_LEGACY !== "1";
|
|
@@ -17354,12 +17357,7 @@ ${body}
|
|
|
17354
17357
|
---
|
|
17355
17358
|
|
|
17356
17359
|
${userPart}` : userPart;
|
|
17357
|
-
let preferredType = "claude-code";
|
|
17358
|
-
try {
|
|
17359
|
-
const a = await apiClient.get(`${apiUrl}/api/agents/${task.agent_id}`);
|
|
17360
|
-
if (a.data?.type)
|
|
17361
|
-
preferredType = a.data.type;
|
|
17362
|
-
} catch {}
|
|
17360
|
+
let preferredType = preferType || "claude-code";
|
|
17363
17361
|
const chosen = acpCapable.find((d) => d.type === preferredType) || acpCapable[0];
|
|
17364
17362
|
const adapterBin = await resolveAcpAdapter(chosen.type, chosen.path);
|
|
17365
17363
|
if (!adapterBin)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipers-dev/multi",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"multi-agent": "./dist/index.js"
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
12
|
"dev": "bun run src/index.ts",
|
|
13
|
-
"build": "bun build src/index.ts --outdir=dist --target=bun"
|
|
13
|
+
"build": "bun build src/index.ts --outdir=dist --target=bun",
|
|
14
|
+
"prepublishOnly": "bun run build"
|
|
14
15
|
},
|
|
15
16
|
"dependencies": {
|
|
16
17
|
"@agentclientprotocol/sdk": "^0.20.0",
|