@polka-codes/runner 0.9.54 → 0.9.56

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -23569,7 +23569,7 @@ var {
23569
23569
  Help
23570
23570
  } = import__.default;
23571
23571
  // package.json
23572
- var version = "0.9.54";
23572
+ var version = "0.9.56";
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().optional().default(false)).describe("Whether to include ignored files. Use true to include files ignored by .gitignore.").meta({ usageValue: "true or false (optional)" })
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().optional().describe('The topic to read from memory. Defaults to ":default:".')
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().optional().describe("The content for append or replace operations. Must be omitted for remove operation.")
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, "content" in params ? params.content : 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.54",
3
+ "version": "0.9.56",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",