lalph 0.3.87 → 0.3.88

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/cli.mjs +31 -28
  2. package/package.json +3 -3
package/dist/cli.mjs CHANGED
@@ -181580,7 +181580,7 @@ var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(e
181580
181580
  });
181581
181581
  Ze.glob = Ze;
181582
181582
  //#endregion
181583
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/ApplyPatch.js
181583
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/ApplyPatch.js
181584
181584
  /**
181585
181585
  * @since 1.0.0
181586
181586
  */
@@ -196453,7 +196453,7 @@ var StreamableHTTPClientTransport = class {
196453
196453
  }
196454
196454
  };
196455
196455
  //#endregion
196456
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/McpClient.js
196456
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/McpClient.js
196457
196457
  /**
196458
196458
  * @since 1.0.0
196459
196459
  */
@@ -196498,7 +196498,7 @@ const layer$13 = effect$1(McpClient, gen(function* () {
196498
196498
  });
196499
196499
  }));
196500
196500
  //#endregion
196501
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/ExaSearch.js
196501
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/ExaSearch.js
196502
196502
  /**
196503
196503
  * @since 1.0.0
196504
196504
  */
@@ -211448,7 +211448,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin$1(((exports) => {
211448
211448
  exports.impl = impl;
211449
211449
  }));
211450
211450
  //#endregion
211451
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/WebToMarkdown.js
211451
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/WebToMarkdown.js
211452
211452
  /**
211453
211453
  * @since 1.0.0
211454
211454
  */
@@ -215066,7 +215066,7 @@ const mapProviderResults = (inputLength, results) => {
215066
215066
  return succeed$3(embeddings);
215067
215067
  };
215068
215068
  //#endregion
215069
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/ChunkRepo.js
215069
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/ChunkRepo.js
215070
215070
  /**
215071
215071
  * @since 1.0.0
215072
215072
  * @category Models
@@ -215197,7 +215197,7 @@ const layer$10 = effect$1(ChunkRepo, gen(function* () {
215197
215197
  });
215198
215198
  }));
215199
215199
  //#endregion
215200
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/CodeChunker.js
215200
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/CodeChunker.js
215201
215201
  /**
215202
215202
  * @since 1.0.0
215203
215203
  */
@@ -215790,7 +215790,7 @@ const run$1 = /* @__PURE__ */ make$25({});
215790
215790
  */
215791
215791
  const layer$7 = (options) => effectDiscard(run$1(options));
215792
215792
  //#endregion
215793
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/internal/sqlite-vector.js
215793
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/internal/sqlite-vector.js
215794
215794
  /**
215795
215795
  * Binary extension for each platform
215796
215796
  */
@@ -215907,7 +215907,7 @@ function getExtensionPath() {
215907
215907
  throw new ExtensionNotFoundError(`SQLite Vector extension not found for platform: ${getCurrentPlatform()}\n\nThe platform-specific package "${getPlatformPackageName()}" is not installed.\nThis usually happens when:\n 1. Your platform is not supported\n 2. npm failed to install optional dependencies\n 3. You're installing with --no-optional flag\n\nTry running: npm install --force`);
215908
215908
  }
215909
215909
  //#endregion
215910
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/Sqlite.js
215910
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/Sqlite.js
215911
215911
  /**
215912
215912
  * @since 1.0.0
215913
215913
  */
@@ -215935,7 +215935,7 @@ const SqliteLayer = (database) => layer$7({ loader: fromRecord({ "0001_create_ch
215935
215935
  yield* fs.makeDirectory(directory, { recursive: true });
215936
215936
  }))));
215937
215937
  //#endregion
215938
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/SemanticSearch.js
215938
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/SemanticSearch.js
215939
215939
  /**
215940
215940
  * @since 1.0.0
215941
215941
  */
@@ -216077,7 +216077,7 @@ const maybeRemoveFile = (path) => serviceOption(SemanticSearch).pipe(flatMap$4(m
216077
216077
  onSome: (service) => service.removeFile(path)
216078
216078
  })));
216079
216079
  //#endregion
216080
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/AgentTools.js
216080
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/AgentTools.js
216081
216081
  /**
216082
216082
  * @since 1.0.0
216083
216083
  */
@@ -216150,7 +216150,7 @@ const AgentTools = make$14(make$13("readFile", {
216150
216150
  }),
216151
216151
  dependencies: [CurrentDirectory]
216152
216152
  }), make$13("applyPatch", {
216153
- description: "Apply a git diff / unified diff patch, or a wrapped patch, across one or more files.",
216153
+ description: "Add, update or remove multiple files with a git diff / unified diff / wrapped patch.",
216154
216154
  parameters: String$1.annotate({ identifier: "patch" }),
216155
216155
  success: String$1,
216156
216156
  dependencies: [CurrentDirectory]
@@ -216428,7 +216428,7 @@ const AgentToolHandlers = AgentToolHandlersNoDeps.pipe(provide$3([layer$12, laye
216428
216428
  AgentToolHandlersNoDeps.pipe(provide$3([mock(ExaSearch)({}), mock(WebToMarkdown)({})]));
216429
216429
  var ApplyPatchError = class extends TaggedClass$2("ApplyPatchError") {};
216430
216430
  //#endregion
216431
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/TypeBuilder.js
216431
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/TypeBuilder.js
216432
216432
  const resolveDocumentation = resolveAt("documentation");
216433
216433
  const identifierPattern = /^[$A-Z_a-z][$0-9A-Z_a-z]*$/u;
216434
216434
  const Precedence = {
@@ -216701,7 +216701,7 @@ const render = (schema, options) => {
216701
216701
  return printNode({ text: documentation === void 0 ? rendered.text : `${renderJsDoc(documentation, 0, printerOptions)}${printerOptions.newLine}${rendered.text}` }, printerOptions);
216702
216702
  };
216703
216703
  //#endregion
216704
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/ToolkitRenderer.js
216704
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/ToolkitRenderer.js
216705
216705
  /**
216706
216706
  * @since 1.0.0
216707
216707
  */
@@ -216723,7 +216723,7 @@ declare function ${name}(${params}): Promise<${render(tool.successSchema)}>`);
216723
216723
  }) });
216724
216724
  };
216725
216725
  //#endregion
216726
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/ScriptPreprocessing.js
216726
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/ScriptPreprocessing.js
216727
216727
  const isIdentifierChar = (char) => char !== void 0 && /[A-Za-z0-9_$]/.test(char);
216728
216728
  const isIdentifierStartChar = (char) => char !== void 0 && /[A-Za-z_$]/.test(char);
216729
216729
  const hasIdentifierBoundary = (text, index, length) => !isIdentifierChar(text[index - 1]) && !isIdentifierChar(text[index + length]);
@@ -216766,20 +216766,22 @@ const needsTemplateEscaping = (text) => {
216766
216766
  }
216767
216767
  return false;
216768
216768
  };
216769
+ const normalizePatchEscapedQuotes = (text) => text.includes("*** Begin Patch") ? text.replace(/\\"([A-Za-z0-9_$.-]+)\\"/g, "\"$1\"") : text;
216769
216770
  const escapeTemplateLiteralContent = (text) => {
216770
- if (!needsTemplateEscaping(text)) return text;
216771
+ const normalized = normalizePatchEscapedQuotes(text);
216772
+ if (!needsTemplateEscaping(normalized)) return normalized;
216771
216773
  let out = "";
216772
- for (let i = 0; i < text.length; i++) {
216773
- const char = text[i];
216774
+ for (let i = 0; i < normalized.length; i++) {
216775
+ const char = normalized[i];
216774
216776
  if (char === "\\") {
216775
216777
  out += "\\\\";
216776
216778
  continue;
216777
216779
  }
216778
- if (char === "`" && !isEscaped(text, i)) {
216780
+ if (char === "`" && !isEscaped(normalized, i)) {
216779
216781
  out += "\\`";
216780
216782
  continue;
216781
216783
  }
216782
- if (char === "$" && text[i + 1] === "{" && !isEscaped(text, i)) {
216784
+ if (char === "$" && normalized[i + 1] === "{" && !isEscaped(normalized, i)) {
216783
216785
  out += "\\$";
216784
216786
  continue;
216785
216787
  }
@@ -217001,13 +217003,14 @@ const fixAssignedTemplatesForToolCalls = (script) => {
217001
217003
  const identifiers = /* @__PURE__ */ new Set();
217002
217004
  for (const functionName of ["applyPatch", "taskComplete"]) for (const identifier of collectCallArgumentIdentifiers(script, functionName)) identifiers.add(identifier);
217003
217005
  for (const identifier of collectWriteFileContentIdentifiers(script)) identifiers.add(identifier);
217006
+ if (script.includes("*** Begin Patch")) identifiers.add("patch");
217004
217007
  let out = script;
217005
217008
  for (const identifier of identifiers) out = fixAssignedTemplate(out, identifier);
217006
217009
  return out;
217007
217010
  };
217008
217011
  const preprocessScript = (script) => fixAssignedTemplatesForToolCalls(["applyPatch", "taskComplete"].reduce((current, functionName) => fixCallTemplateArgument(current, functionName), fixWriteFileContentTemplates(script)));
217009
217012
  //#endregion
217010
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/AgentExecutor.js
217013
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/AgentExecutor.js
217011
217014
  /**
217012
217015
  * @since 1.0.0
217013
217016
  */
@@ -217192,7 +217195,7 @@ var QueueWriteStream = class extends Writable {
217192
217195
  }
217193
217196
  };
217194
217197
  //#endregion
217195
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/ScriptExtraction.js
217198
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/ScriptExtraction.js
217196
217199
  const stripWrappingCodeFence = (script) => {
217197
217200
  const lines = script.split(/\r?\n/);
217198
217201
  if (lines.length < 2) return script;
@@ -218741,7 +218744,7 @@ const applySpanTransformer = (transformer, response, options) => {
218741
218744
  });
218742
218745
  };
218743
218746
  //#endregion
218744
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/Agent.js
218747
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/Agent.js
218745
218748
  /**
218746
218749
  * @since 1.0.0
218747
218750
  */
@@ -230071,7 +230074,7 @@ const transformToolCallParams = /* @__PURE__ */ fnUntraced(function* (tools, too
230071
230074
  })));
230072
230075
  });
230073
230076
  //#endregion
230074
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/CodexAuth.js
230077
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/CodexAuth.js
230075
230078
  /**
230076
230079
  * @since 1.0.0
230077
230080
  */
@@ -230291,7 +230294,7 @@ var CodexAuth = class CodexAuth extends Service$1()("clanka/CodexAuth") {
230291
230294
  static layerClient = this.layerClientNoDeps.pipe(provide$3(CodexAuth.layer));
230292
230295
  };
230293
230296
  //#endregion
230294
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/Codex.js
230297
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/Codex.js
230295
230298
  /**
230296
230299
  * @since 1.0.0
230297
230300
  */
@@ -231603,7 +231606,7 @@ const getUsageDetailNumber = (details, field) => {
231603
231606
  return typeof value === "number" ? value : void 0;
231604
231607
  };
231605
231608
  //#endregion
231606
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/CopilotAuth.js
231609
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/CopilotAuth.js
231607
231610
  /**
231608
231611
  * @since 1.0.0
231609
231612
  */
@@ -231794,7 +231797,7 @@ var GithubCopilotAuth = class GithubCopilotAuth extends Service$1()("clanka/Gith
231794
231797
  static layerClient = this.layerClientNoDeps.pipe(provide$3(GithubCopilotAuth.layer));
231795
231798
  };
231796
231799
  //#endregion
231797
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/Copilot.js
231800
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/Copilot.js
231798
231801
  /**
231799
231802
  * @since 1.0.0
231800
231803
  */
@@ -232214,7 +232217,7 @@ Object.defineProperties(createChalk.prototype, styles);
232214
232217
  const chalk = createChalk();
232215
232218
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
232216
232219
  //#endregion
232217
- //#region node_modules/.pnpm/clanka@0.2.16_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_5dcb2d2797192c163d235bd5caad43db/node_modules/clanka/dist/OutputFormatter.js
232220
+ //#region node_modules/.pnpm/clanka@0.2.17_@effect+ai-openai-compat@4.0.0-beta.35_effect@https+++pkg.pr.new+Effect-T_c137ee36ffe489921e912f65ea0addc5/node_modules/clanka/dist/OutputFormatter.js
232218
232221
  /**
232219
232222
  * @since 1.0.0
232220
232223
  */
@@ -241815,7 +241818,7 @@ const commandEdit = make$58("edit").pipe(withDescription("Open the selected proj
241815
241818
  const commandSource = make$58("source").pipe(withDescription("Select the issue source to use (e.g. GitHub Issues or Linear). This applies to all projects."), withHandler(() => selectIssueSource), provide(Settings.layer));
241816
241819
  //#endregion
241817
241820
  //#region package.json
241818
- var version = "0.3.87";
241821
+ var version = "0.3.88";
241819
241822
  //#endregion
241820
241823
  //#region src/commands/projects/ls.ts
241821
241824
  const commandProjectsLs = make$58("ls").pipe(withDescription("List configured projects and how they run (enabled state, concurrency, branch, git flow, review agent)."), withHandler(fnUntraced(function* () {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.3.87",
4
+ "version": "0.3.88",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -44,8 +44,8 @@
44
44
  "@linear/sdk": "^78.0.0",
45
45
  "@octokit/plugin-rest-endpoint-methods": "^17.0.0",
46
46
  "@octokit/types": "^16.0.0",
47
- "@typescript/native-preview": "7.0.0-dev.20260318.1",
48
- "clanka": "^0.2.16",
47
+ "@typescript/native-preview": "7.0.0-dev.20260319.1",
48
+ "clanka": "^0.2.17",
49
49
  "concurrently": "^9.2.1",
50
50
  "effect": "https://pkg.pr.new/Effect-TS/effect-smol/effect@89c3e98",
51
51
  "husky": "^9.1.7",