@polka-codes/cli-shared 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 +13 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -15711,7 +15711,7 @@ var require_ignore = __commonJS((exports, module) => {
|
|
|
15711
15711
|
define2(module.exports, Symbol.for("setupWindows"), setupWindows);
|
|
15712
15712
|
});
|
|
15713
15713
|
|
|
15714
|
-
//
|
|
15714
|
+
// node_modules/mime-types/node_modules/mime-db/db.json
|
|
15715
15715
|
var require_db = __commonJS((exports, module) => {
|
|
15716
15716
|
module.exports = {
|
|
15717
15717
|
"application/1d-interleaved-parityfec": {
|
|
@@ -25057,7 +25057,7 @@ var require_db = __commonJS((exports, module) => {
|
|
|
25057
25057
|
};
|
|
25058
25058
|
});
|
|
25059
25059
|
|
|
25060
|
-
//
|
|
25060
|
+
// node_modules/mime-types/node_modules/mime-db/index.js
|
|
25061
25061
|
var require_mime_db = __commonJS((exports, module) => {
|
|
25062
25062
|
/*!
|
|
25063
25063
|
* mime-db
|
|
@@ -25068,7 +25068,7 @@ var require_mime_db = __commonJS((exports, module) => {
|
|
|
25068
25068
|
module.exports = require_db();
|
|
25069
25069
|
});
|
|
25070
25070
|
|
|
25071
|
-
//
|
|
25071
|
+
// node_modules/mime-types/mimeScore.js
|
|
25072
25072
|
var require_mimeScore = __commonJS((exports, module) => {
|
|
25073
25073
|
var FACET_SCORES = {
|
|
25074
25074
|
"prs.": 100,
|
|
@@ -62083,8 +62083,13 @@ class MultiAgent {
|
|
|
62083
62083
|
throw new Error("An active agent already exists");
|
|
62084
62084
|
}
|
|
62085
62085
|
this.#originalTask = options.task;
|
|
62086
|
-
|
|
62087
|
-
|
|
62086
|
+
const userContent = options.files ?? [];
|
|
62087
|
+
userContent.push({
|
|
62088
|
+
type: "text",
|
|
62089
|
+
text: `<task>${options.task}</task>
|
|
62090
|
+
<context>${options.context}</context>`
|
|
62091
|
+
});
|
|
62092
|
+
return this.#startTask(options.agentName, userContent);
|
|
62088
62093
|
}
|
|
62089
62094
|
async continueTask(userMessage) {
|
|
62090
62095
|
if (!this.#agents.length) {
|
|
@@ -68097,7 +68102,7 @@ ${page}${helpTipBottom}${choiceDescription}${import_ansi_escapes2.default.cursor
|
|
|
68097
68102
|
// src/provider.ts
|
|
68098
68103
|
var import_ignore2 = __toESM(require_ignore(), 1);
|
|
68099
68104
|
|
|
68100
|
-
//
|
|
68105
|
+
// node_modules/mime-types/index.js
|
|
68101
68106
|
/*!
|
|
68102
68107
|
* mime-types
|
|
68103
68108
|
* Copyright(c) 2014 Jonathan Ong
|
|
@@ -68377,7 +68382,7 @@ var getProvider = (_agentName, _config, options = {}) => {
|
|
|
68377
68382
|
const data2 = await readFile(resolvedPath);
|
|
68378
68383
|
const mediaType2 = $lookup(resolvedPath) || "application/octet-stream";
|
|
68379
68384
|
return {
|
|
68380
|
-
base64Data: data2.
|
|
68385
|
+
base64Data: data2.toString("base64"),
|
|
68381
68386
|
mediaType: mediaType2
|
|
68382
68387
|
};
|
|
68383
68388
|
}
|
|
@@ -68388,7 +68393,7 @@ var getProvider = (_agentName, _config, options = {}) => {
|
|
|
68388
68393
|
const data = await response.arrayBuffer();
|
|
68389
68394
|
const mediaType = $lookup(url3) || "application/octet-stream";
|
|
68390
68395
|
return {
|
|
68391
|
-
base64Data: Buffer.from(data).
|
|
68396
|
+
base64Data: Buffer.from(data).toString("base64"),
|
|
68392
68397
|
mediaType
|
|
68393
68398
|
};
|
|
68394
68399
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polka-codes/cli-shared",
|
|
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",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@ai-sdk/provider-utils": "^3.0.0",
|
|
21
|
-
"@polka-codes/core": "0.9.
|
|
21
|
+
"@polka-codes/core": "0.9.22",
|
|
22
22
|
"ignore": "^7.0.3",
|
|
23
23
|
"lodash": "^4.17.21",
|
|
24
24
|
"mime-types": "^3.0.1",
|