@polka-codes/runner 0.9.21 → 0.9.23
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 +14 -9
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -18209,7 +18209,7 @@ var require_ignore = __commonJS((exports, module) => {
|
|
|
18209
18209
|
define2(module.exports, Symbol.for("setupWindows"), setupWindows);
|
|
18210
18210
|
});
|
|
18211
18211
|
|
|
18212
|
-
//
|
|
18212
|
+
// ../cli-shared/node_modules/mime-types/node_modules/mime-db/db.json
|
|
18213
18213
|
var require_db = __commonJS((exports, module) => {
|
|
18214
18214
|
module.exports = {
|
|
18215
18215
|
"application/1d-interleaved-parityfec": {
|
|
@@ -27555,7 +27555,7 @@ var require_db = __commonJS((exports, module) => {
|
|
|
27555
27555
|
};
|
|
27556
27556
|
});
|
|
27557
27557
|
|
|
27558
|
-
//
|
|
27558
|
+
// ../cli-shared/node_modules/mime-types/node_modules/mime-db/index.js
|
|
27559
27559
|
var require_mime_db = __commonJS((exports, module) => {
|
|
27560
27560
|
/*!
|
|
27561
27561
|
* mime-db
|
|
@@ -27566,7 +27566,7 @@ var require_mime_db = __commonJS((exports, module) => {
|
|
|
27566
27566
|
module.exports = require_db();
|
|
27567
27567
|
});
|
|
27568
27568
|
|
|
27569
|
-
//
|
|
27569
|
+
// ../cli-shared/node_modules/mime-types/mimeScore.js
|
|
27570
27570
|
var require_mimeScore = __commonJS((exports, module) => {
|
|
27571
27571
|
var FACET_SCORES = {
|
|
27572
27572
|
"prs.": 100,
|
|
@@ -30458,7 +30458,7 @@ var {
|
|
|
30458
30458
|
Help
|
|
30459
30459
|
} = import__.default;
|
|
30460
30460
|
// package.json
|
|
30461
|
-
var version = "0.9.
|
|
30461
|
+
var version = "0.9.23";
|
|
30462
30462
|
|
|
30463
30463
|
// src/runner.ts
|
|
30464
30464
|
import { execSync } from "node:child_process";
|
|
@@ -67445,8 +67445,13 @@ class MultiAgent {
|
|
|
67445
67445
|
throw new Error("An active agent already exists");
|
|
67446
67446
|
}
|
|
67447
67447
|
this.#originalTask = options.task;
|
|
67448
|
-
|
|
67449
|
-
|
|
67448
|
+
const userContent = options.files ?? [];
|
|
67449
|
+
userContent.push({
|
|
67450
|
+
type: "text",
|
|
67451
|
+
text: `<task>${options.task}</task>
|
|
67452
|
+
<context>${options.context}</context>`
|
|
67453
|
+
});
|
|
67454
|
+
return this.#startTask(options.agentName, userContent);
|
|
67450
67455
|
}
|
|
67451
67456
|
async continueTask(userMessage) {
|
|
67452
67457
|
if (!this.#agents.length) {
|
|
@@ -73445,7 +73450,7 @@ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursor
|
|
|
73445
73450
|
// ../cli-shared/src/provider.ts
|
|
73446
73451
|
var import_ignore2 = __toESM(require_ignore(), 1);
|
|
73447
73452
|
|
|
73448
|
-
//
|
|
73453
|
+
// ../cli-shared/node_modules/mime-types/index.js
|
|
73449
73454
|
/*!
|
|
73450
73455
|
* mime-types
|
|
73451
73456
|
* Copyright(c) 2014 Jonathan Ong
|
|
@@ -73725,7 +73730,7 @@ var getProvider = (_agentName, _config, options = {}) => {
|
|
|
73725
73730
|
const data2 = await readFile(resolvedPath);
|
|
73726
73731
|
const mediaType2 = $lookup(resolvedPath) || "application/octet-stream";
|
|
73727
73732
|
return {
|
|
73728
|
-
base64Data: data2.
|
|
73733
|
+
base64Data: data2.toString("base64"),
|
|
73729
73734
|
mediaType: mediaType2
|
|
73730
73735
|
};
|
|
73731
73736
|
}
|
|
@@ -73736,7 +73741,7 @@ var getProvider = (_agentName, _config, options = {}) => {
|
|
|
73736
73741
|
const data = await response.arrayBuffer();
|
|
73737
73742
|
const mediaType = $lookup(url3) || "application/octet-stream";
|
|
73738
73743
|
return {
|
|
73739
|
-
base64Data: Buffer.from(data).
|
|
73744
|
+
base64Data: Buffer.from(data).toString("base64"),
|
|
73740
73745
|
mediaType
|
|
73741
73746
|
};
|
|
73742
73747
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polka-codes/runner",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.23",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"author": "github@polka.codes",
|
|
6
6
|
"type": "module",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"build": "bun build src/index.ts --outdir dist --target node"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@polka-codes/cli-shared": "0.9.
|
|
21
|
-
"@polka-codes/core": "0.9.
|
|
20
|
+
"@polka-codes/cli-shared": "0.9.22",
|
|
21
|
+
"@polka-codes/core": "0.9.22",
|
|
22
22
|
"commander": "^14.0.0",
|
|
23
23
|
"dotenv": "^16.4.7",
|
|
24
24
|
"ignore": "^7.0.3",
|