lalph 0.3.86 → 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.
package/dist/cli.mjs CHANGED
@@ -91425,9 +91425,9 @@ const allCliAgents = [
91425
91425
  new CliAgent({
91426
91426
  id: "clanka",
91427
91427
  name: "clanka",
91428
- commandPlan: ({ prompt, prdFilePath, dangerous }) => make$45("opencode", ["--prompt", `@${prdFilePath}
91428
+ commandPlan: ({ prompt, prdFilePath, dangerous }) => make$45("opencode", ["--prompt", prdFilePath ? `@${prdFilePath}
91429
91429
 
91430
- ${prompt}`], {
91430
+ ${prompt}` : prompt], {
91431
91431
  extendEnv: true,
91432
91432
  ...dangerous ? { env: { OPENCODE_PERMISSION: "{\"*\":\"allow\"}" } } : {},
91433
91433
  stdout: "inherit",
@@ -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
  */
@@ -239879,14 +239882,7 @@ ${options.gitFlow.requiresGithubPr ? `\n - Set \`githubPrNumber\` to the PR num
239879
239882
 
239880
239883
  Note: The task should be a specific, actionable item that can be completed in a reasonable amount of time.
239881
239884
  `;
239882
- const keyInformation = (options) => `## Important: Adding new tasks
239883
-
239884
- **If at any point** you discover something that needs fixing, or another task
239885
- that needs doing, immediately add it to the prd.yml file as a new task.
239886
-
239887
- Read the "### Adding tasks" section below carefully for guidelines on creating tasks.
239888
-
239889
- ## Important: Recording key information
239885
+ const keyInformation = (options) => `## Important: Recording key information
239890
239886
 
239891
239887
  This session will time out after a certain period, so make sure to record
239892
239888
  key information that could speed up future work on the task in the description.
@@ -239906,12 +239902,7 @@ If for any reason you get stuck on a task, mark the task back as "todo" by updat
239906
239902
  challenges faced.
239907
239903
 
239908
239904
  ${prdNotes(options)}`;
239909
- const systemClanka = (options) => `## Important: Adding new tasks
239910
-
239911
- **If at any point** you discover something that needs fixing, or another task
239912
- that needs doing, immediately add it as a new task.
239913
-
239914
- ## Important: Recording key information
239905
+ const systemClanka = (options) => `## Important: Recording key information
239915
239906
 
239916
239907
  This session will time out after a certain period, so make sure to record
239917
239908
  key information that could speed up future work on the task in the description.
@@ -239976,9 +239967,6 @@ All steps must be done before the task can be considered complete.${options.task
239976
239967
  2. Implement the task.
239977
239968
  - If this task is a research task, **do not** make any code changes yet.
239978
239969
  - If this task is a research task and you add follow-up tasks, include (at least) "${options.task.id}" in the new task's \`blockedBy\` field.
239979
- - **If at any point** you discover something that needs fixing, or another task
239980
- that needs doing, immediately add it as a new task unless you plan to fix it
239981
- as part of this task.
239982
239970
  - Add important discoveries about the codebase, or challenges faced to the task's
239983
239971
  \`description\`. More details below.
239984
239972
  3. Run any checks / feedback loops, such as type checks, unit tests, or linting.
@@ -240370,11 +240358,11 @@ const addOrUpdateProject = fnUntraced(function* (existing, fromPlanMode = false)
240370
240358
  if (gitFlow === "ralph" && !fromPlanMode) ralphSpec = yield* file$3({ message: "Path to Ralph spec file" }).pipe(fromYieldable, map$9(some$2));
240371
240359
  const researchAgent = yield* toggle({
240372
240360
  message: "Enable research agent?",
240373
- initial: existing ? existing.researchAgent : true
240361
+ initial: existing ? existing.researchAgent : false
240374
240362
  });
240375
240363
  const reviewAgent = yield* toggle({
240376
240364
  message: "Enable review agent?",
240377
- initial: existing ? existing.reviewAgent : true
240365
+ initial: existing ? existing.reviewAgent : false
240378
240366
  });
240379
240367
  const project = new Project$2({
240380
240368
  id: ProjectId.makeUnsafe(id),
@@ -241830,7 +241818,7 @@ const commandEdit = make$58("edit").pipe(withDescription("Open the selected proj
241830
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));
241831
241819
  //#endregion
241832
241820
  //#region package.json
241833
- var version = "0.3.86";
241821
+ var version = "0.3.88";
241834
241822
  //#endregion
241835
241823
  //#region src/commands/projects/ls.ts
241836
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.86",
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",
package/src/Projects.ts CHANGED
@@ -129,11 +129,11 @@ export const addOrUpdateProject = Effect.fnUntraced(function* (
129
129
 
130
130
  const researchAgent = yield* Prompt.toggle({
131
131
  message: "Enable research agent?",
132
- initial: existing ? existing.researchAgent : true,
132
+ initial: existing ? existing.researchAgent : false,
133
133
  })
134
134
  const reviewAgent = yield* Prompt.toggle({
135
135
  message: "Enable review agent?",
136
- initial: existing ? existing.reviewAgent : true,
136
+ initial: existing ? existing.reviewAgent : false,
137
137
  })
138
138
 
139
139
  const project = new Project({
package/src/PromptGen.ts CHANGED
@@ -124,14 +124,7 @@ Note: The task should be a specific, actionable item that can be completed in a
124
124
 
125
125
  const keyInformation = (options: {
126
126
  readonly specsDirectory: string
127
- }) => `## Important: Adding new tasks
128
-
129
- **If at any point** you discover something that needs fixing, or another task
130
- that needs doing, immediately add it to the prd.yml file as a new task.
131
-
132
- Read the "### Adding tasks" section below carefully for guidelines on creating tasks.
133
-
134
- ## Important: Recording key information
127
+ }) => `## Important: Recording key information
135
128
 
136
129
  This session will time out after a certain period, so make sure to record
137
130
  key information that could speed up future work on the task in the description.
@@ -154,12 +147,7 @@ ${prdNotes(options)}`
154
147
 
155
148
  const systemClanka = (options: {
156
149
  readonly specsDirectory: string
157
- }) => `## Important: Adding new tasks
158
-
159
- **If at any point** you discover something that needs fixing, or another task
160
- that needs doing, immediately add it as a new task.
161
-
162
- ## Important: Recording key information
150
+ }) => `## Important: Recording key information
163
151
 
164
152
  This session will time out after a certain period, so make sure to record
165
153
  key information that could speed up future work on the task in the description.
@@ -246,9 +234,6 @@ All steps must be done before the task can be considered complete.${
246
234
  2. Implement the task.
247
235
  - If this task is a research task, **do not** make any code changes yet.
248
236
  - If this task is a research task and you add follow-up tasks, include (at least) "${options.task.id}" in the new task's \`blockedBy\` field.
249
- - **If at any point** you discover something that needs fixing, or another task
250
- that needs doing, immediately add it as a new task unless you plan to fix it
251
- as part of this task.
252
237
  - Add important discoveries about the codebase, or challenges faced to the task's
253
238
  \`description\`. More details below.
254
239
  3. Run any checks / feedback loops, such as type checks, unit tests, or linting.
@@ -36,9 +36,11 @@ const clanka = new CliAgent({
36
36
  "opencode",
37
37
  [
38
38
  "--prompt",
39
- `@${prdFilePath}
39
+ prdFilePath
40
+ ? `@${prdFilePath}
40
41
 
41
- ${prompt}`,
42
+ ${prompt}`
43
+ : prompt,
42
44
  ],
43
45
  {
44
46
  extendEnv: true,