@polka-codes/runner 0.9.53 → 0.9.55
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 +16 -16
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -471,7 +471,7 @@ var require_config = __commonJS(() => {
|
|
|
471
471
|
})();
|
|
472
472
|
});
|
|
473
473
|
|
|
474
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
474
|
+
// ../../node_modules/.bun/commander@14.0.2/node_modules/commander/lib/error.js
|
|
475
475
|
var require_error = __commonJS((exports) => {
|
|
476
476
|
class CommanderError extends Error {
|
|
477
477
|
constructor(exitCode, code, message) {
|
|
@@ -495,7 +495,7 @@ var require_error = __commonJS((exports) => {
|
|
|
495
495
|
exports.InvalidArgumentError = InvalidArgumentError;
|
|
496
496
|
});
|
|
497
497
|
|
|
498
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
498
|
+
// ../../node_modules/.bun/commander@14.0.2/node_modules/commander/lib/argument.js
|
|
499
499
|
var require_argument = __commonJS((exports) => {
|
|
500
500
|
var { InvalidArgumentError } = require_error();
|
|
501
501
|
|
|
@@ -575,7 +575,7 @@ var require_argument = __commonJS((exports) => {
|
|
|
575
575
|
exports.humanReadableArgName = humanReadableArgName;
|
|
576
576
|
});
|
|
577
577
|
|
|
578
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
578
|
+
// ../../node_modules/.bun/commander@14.0.2/node_modules/commander/lib/help.js
|
|
579
579
|
var require_help = __commonJS((exports) => {
|
|
580
580
|
var { humanReadableArgName } = require_argument();
|
|
581
581
|
|
|
@@ -932,7 +932,7 @@ ${itemIndentStr}`);
|
|
|
932
932
|
exports.stripColor = stripColor;
|
|
933
933
|
});
|
|
934
934
|
|
|
935
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
935
|
+
// ../../node_modules/.bun/commander@14.0.2/node_modules/commander/lib/option.js
|
|
936
936
|
var require_option = __commonJS((exports) => {
|
|
937
937
|
var { InvalidArgumentError } = require_error();
|
|
938
938
|
|
|
@@ -1116,7 +1116,7 @@ var require_option = __commonJS((exports) => {
|
|
|
1116
1116
|
exports.DualOptions = DualOptions;
|
|
1117
1117
|
});
|
|
1118
1118
|
|
|
1119
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
1119
|
+
// ../../node_modules/.bun/commander@14.0.2/node_modules/commander/lib/suggestSimilar.js
|
|
1120
1120
|
var require_suggestSimilar = __commonJS((exports) => {
|
|
1121
1121
|
var maxDistance = 3;
|
|
1122
1122
|
function editDistance(a, b) {
|
|
@@ -1189,7 +1189,7 @@ var require_suggestSimilar = __commonJS((exports) => {
|
|
|
1189
1189
|
exports.suggestSimilar = suggestSimilar;
|
|
1190
1190
|
});
|
|
1191
1191
|
|
|
1192
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
1192
|
+
// ../../node_modules/.bun/commander@14.0.2/node_modules/commander/lib/command.js
|
|
1193
1193
|
var require_command = __commonJS((exports) => {
|
|
1194
1194
|
var EventEmitter = __require("node:events").EventEmitter;
|
|
1195
1195
|
var childProcess = __require("node:child_process");
|
|
@@ -2048,7 +2048,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2048
2048
|
return arg.length > 1 && arg[0] === "-";
|
|
2049
2049
|
}
|
|
2050
2050
|
const negativeNumberArg = (arg) => {
|
|
2051
|
-
if (
|
|
2051
|
+
if (!/^-(\d+|\d*\.\d+)(e[+-]?\d+)?$/.test(arg))
|
|
2052
2052
|
return false;
|
|
2053
2053
|
return !this._getCommandAndAncestors().some((cmd) => cmd.options.map((opt) => opt.short).some((short) => /^-\d$/.test(short)));
|
|
2054
2054
|
};
|
|
@@ -2544,7 +2544,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2544
2544
|
exports.useColor = useColor;
|
|
2545
2545
|
});
|
|
2546
2546
|
|
|
2547
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
2547
|
+
// ../../node_modules/.bun/commander@14.0.2/node_modules/commander/index.js
|
|
2548
2548
|
var require_commander = __commonJS((exports) => {
|
|
2549
2549
|
var { Argument } = require_argument();
|
|
2550
2550
|
var { Command } = require_command();
|
|
@@ -23553,7 +23553,7 @@ var require_websocket_server = __commonJS((exports, module) => {
|
|
|
23553
23553
|
// src/index.ts
|
|
23554
23554
|
var import_config = __toESM(require_config(), 1);
|
|
23555
23555
|
|
|
23556
|
-
// ../../node_modules/.bun/commander@14.0.
|
|
23556
|
+
// ../../node_modules/.bun/commander@14.0.2/node_modules/commander/esm.mjs
|
|
23557
23557
|
var import__ = __toESM(require_commander(), 1);
|
|
23558
23558
|
var {
|
|
23559
23559
|
program,
|
|
@@ -23569,7 +23569,7 @@ var {
|
|
|
23569
23569
|
Help
|
|
23570
23570
|
} = import__.default;
|
|
23571
23571
|
// package.json
|
|
23572
|
-
var version = "0.9.
|
|
23572
|
+
var version = "0.9.55";
|
|
23573
23573
|
|
|
23574
23574
|
// src/runner.ts
|
|
23575
23575
|
import { execSync } from "node:child_process";
|
|
@@ -36670,7 +36670,7 @@ var toolInfo9 = {
|
|
|
36670
36670
|
return true;
|
|
36671
36671
|
}
|
|
36672
36672
|
return val;
|
|
36673
|
-
}, exports_external.boolean().
|
|
36673
|
+
}, exports_external.boolean().nullish().default(false)).describe("Whether to include ignored files. Use true to include files ignored by .gitignore.").meta({ usageValue: "true or false (optional)" })
|
|
36674
36674
|
}).meta({
|
|
36675
36675
|
examples: [
|
|
36676
36676
|
{
|
|
@@ -36701,7 +36701,7 @@ var handler9 = async (provider, args) => {
|
|
|
36701
36701
|
const { path: paths, includeIgnored } = toolInfo9.parameters.parse(args);
|
|
36702
36702
|
const resp = [];
|
|
36703
36703
|
for (const path of paths) {
|
|
36704
|
-
const fileContent = await provider.readFile(path, includeIgnored);
|
|
36704
|
+
const fileContent = await provider.readFile(path, includeIgnored ?? false);
|
|
36705
36705
|
if (!fileContent) {
|
|
36706
36706
|
resp.push(`<read_file_file_content path="${path}" file_not_found="true" />`);
|
|
36707
36707
|
} else {
|
|
@@ -36731,12 +36731,12 @@ var toolInfo10 = {
|
|
|
36731
36731
|
name: "readMemory",
|
|
36732
36732
|
description: "Reads content from a memory topic. Use this to retrieve information stored in previous steps. If no topic is specified, reads from the default topic.",
|
|
36733
36733
|
parameters: exports_external.object({
|
|
36734
|
-
topic: exports_external.string().
|
|
36734
|
+
topic: exports_external.string().nullish().describe('The topic to read from memory. Defaults to ":default:".')
|
|
36735
36735
|
})
|
|
36736
36736
|
};
|
|
36737
36737
|
var handler10 = async (provider, args) => {
|
|
36738
36738
|
const { topic } = toolInfo10.parameters.parse(args);
|
|
36739
|
-
const content = await provider.readMemory(topic);
|
|
36739
|
+
const content = await provider.readMemory(topic ?? undefined);
|
|
36740
36740
|
if (content) {
|
|
36741
36741
|
return {
|
|
36742
36742
|
type: "Reply" /* Reply */,
|
|
@@ -37199,7 +37199,7 @@ var toolInfo15 = {
|
|
|
37199
37199
|
parameters: exports_external.object({
|
|
37200
37200
|
operation: exports_external.enum(["append", "replace", "remove"]).describe("The operation to perform."),
|
|
37201
37201
|
topic: exports_external.string().nullish().describe('The topic to update in memory. Defaults to ":default:".'),
|
|
37202
|
-
content: exports_external.string().
|
|
37202
|
+
content: exports_external.string().nullish().describe("The content for append or replace operations. Must be omitted for remove operation.")
|
|
37203
37203
|
}).superRefine((data, ctx) => {
|
|
37204
37204
|
if (data.operation === "append" || data.operation === "replace") {
|
|
37205
37205
|
if (data.content === undefined) {
|
|
@@ -37231,7 +37231,7 @@ var handler15 = async (provider, args) => {
|
|
|
37231
37231
|
};
|
|
37232
37232
|
}
|
|
37233
37233
|
const params = toolInfo15.parameters.parse(args);
|
|
37234
|
-
await provider.updateMemory(params.operation, params.topic ?? undefined,
|
|
37234
|
+
await provider.updateMemory(params.operation, params.topic ?? undefined, params.content ?? undefined);
|
|
37235
37235
|
switch (params.operation) {
|
|
37236
37236
|
case "append":
|
|
37237
37237
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polka-codes/runner",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.55",
|
|
4
4
|
"license": "AGPL-3.0",
|
|
5
5
|
"author": "github@polka.codes",
|
|
6
6
|
"type": "module",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@ai-sdk/provider": "^2.0.0",
|
|
21
|
-
"@polka-codes/cli-shared": "0.9.
|
|
22
|
-
"@polka-codes/core": "0.9.
|
|
23
|
-
"commander": "^14.0.
|
|
21
|
+
"@polka-codes/cli-shared": "0.9.53",
|
|
22
|
+
"@polka-codes/core": "0.9.53",
|
|
23
|
+
"commander": "^14.0.2",
|
|
24
24
|
"dotenv": "^17.2.3",
|
|
25
25
|
"ignore": "^7.0.5",
|
|
26
26
|
"ws": "^8.18.3",
|