@tarcisiopgs/lisa 1.23.2 → 1.24.0

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 +18 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -752,6 +752,9 @@ var ClaudeProvider = class {
752
752
  if (opts.model) {
753
753
  flags.push("--model", opts.model);
754
754
  }
755
+ if (opts.providerOptions?.effort) {
756
+ flags.push("--effort", opts.providerOptions.effort);
757
+ }
755
758
  const command = `claude ${flags.join(" ")} "$(cat '${promptFile}')"`;
756
759
  log(`[claude] Running: claude ${flags.join(" ")}`.trim());
757
760
  if (opts.issueId) {
@@ -1229,9 +1232,12 @@ var GeminiProvider = class {
1229
1232
  `
1230
1233
  );
1231
1234
  }
1235
+ const existingNodeOpts = process.env.NODE_OPTIONS ?? "";
1236
+ const heapFlag = "--max-old-space-size=8192";
1237
+ const nodeOptions = existingNodeOpts.includes("max-old-space-size") ? existingNodeOpts : `${existingNodeOpts} ${heapFlag}`.trim();
1232
1238
  const { proc, isPty } = spawnWithPty(command, {
1233
1239
  cwd: opts.cwd,
1234
- env: { ...process.env, ...opts.env }
1240
+ env: { ...process.env, ...opts.env, NODE_OPTIONS: nodeOptions }
1235
1241
  });
1236
1242
  if (proc.pid) opts.onProcess?.(proc.pid);
1237
1243
  const overseer = opts.overseer?.enabled ? startOverseer(proc, opts.cwd, opts.overseer) : null;
@@ -1599,6 +1605,7 @@ async function runWithFallback(models, prompt, opts) {
1599
1605
  if (opts.shouldAbort?.()) {
1600
1606
  break;
1601
1607
  }
1608
+ kanbanEmitter.emit("provider:model-changed", spec.model ?? spec.provider);
1602
1609
  const provider = createProvider(spec.provider);
1603
1610
  const available = await provider.isAvailable();
1604
1611
  if (!available) {
@@ -4142,6 +4149,11 @@ function setupEventListeners() {
4142
4149
  }
4143
4150
 
4144
4151
  // src/loop/helpers.ts
4152
+ function resolveProviderOptions(config2) {
4153
+ const opts = config2.provider_options?.[config2.provider];
4154
+ if (!opts?.effort) return void 0;
4155
+ return { effort: opts.effort };
4156
+ }
4145
4157
  function resolveBaseBranch(config2, repoPath) {
4146
4158
  const workspace = resolve5(config2.workspace);
4147
4159
  const repo = config2.repos.find((r) => resolve5(workspace, r.path) === repoPath);
@@ -5829,6 +5841,7 @@ async function runWorktreeMultiRepoSession(config2, issue2, logFile, session, mo
5829
5841
  overseer: config2.overseer,
5830
5842
  sessionTimeout: config2.loop.session_timeout,
5831
5843
  outputStallTimeout: config2.loop.output_stall_timeout,
5844
+ providerOptions: resolveProviderOptions(config2),
5832
5845
  onProcess: (pid) => {
5833
5846
  activeProviderPids.set(issue2.id, pid);
5834
5847
  },
@@ -5999,6 +6012,7 @@ async function runMultiRepoStep(config2, issue2, step, previousResults, logFile,
5999
6012
  overseer: config2.overseer,
6000
6013
  sessionTimeout: config2.loop.session_timeout,
6001
6014
  outputStallTimeout: config2.loop.output_stall_timeout,
6015
+ providerOptions: resolveProviderOptions(config2),
6002
6016
  env: Object.keys(lifecycleEnv).length > 0 ? lifecycleEnv : void 0,
6003
6017
  onProcess: (pid) => {
6004
6018
  activeProviderPids.set(issue2.id, pid);
@@ -6145,6 +6159,7 @@ async function runNativeWorktreeSession(config2, issue2, logFile, session, model
6145
6159
  overseer: config2.overseer,
6146
6160
  sessionTimeout: config2.loop.session_timeout,
6147
6161
  outputStallTimeout: config2.loop.output_stall_timeout,
6162
+ providerOptions: resolveProviderOptions(config2),
6148
6163
  useNativeWorktree: true,
6149
6164
  env: Object.keys(lifecycleEnv).length > 0 ? lifecycleEnv : void 0,
6150
6165
  onProcess: (pid) => {
@@ -6298,6 +6313,7 @@ async function runManualWorktreeSession(config2, issue2, logFile, session, model
6298
6313
  overseer: config2.overseer,
6299
6314
  sessionTimeout: config2.loop.session_timeout,
6300
6315
  outputStallTimeout: config2.loop.output_stall_timeout,
6316
+ providerOptions: resolveProviderOptions(config2),
6301
6317
  env: Object.keys(lifecycleEnv).length > 0 ? lifecycleEnv : void 0,
6302
6318
  onProcess: (pid) => {
6303
6319
  activeProviderPids.set(issue2.id, pid);
@@ -6685,6 +6701,7 @@ async function runBranchSession(config2, issue2, logFile, session, models) {
6685
6701
  overseer: config2.overseer,
6686
6702
  sessionTimeout: config2.loop.session_timeout,
6687
6703
  outputStallTimeout: config2.loop.output_stall_timeout,
6704
+ providerOptions: resolveProviderOptions(config2),
6688
6705
  env: Object.keys(lifecycleEnv).length > 0 ? lifecycleEnv : void 0,
6689
6706
  onProcess: (pid) => {
6690
6707
  activeProviderPids.set(issue2.id, pid);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarcisiopgs/lisa",
3
- "version": "1.23.2",
3
+ "version": "1.24.0",
4
4
  "description": "Autonomous issue resolver",
5
5
  "keywords": [
6
6
  "loop",