lalph 0.3.119 → 0.3.120

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 +82 -103
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -8374,8 +8374,6 @@ const exitIsFailure = (self) => self._tag === "Failure";
8374
8374
  /** @internal */
8375
8375
  const exitFilterCause = (self) => self._tag === "Failure" ? succeed$9(self.cause) : fail$10(self);
8376
8376
  /** @internal */
8377
- const exitHasInterrupts = (self) => self._tag === "Failure" && hasInterrupts$2(self.cause);
8378
- /** @internal */
8379
8377
  const exitVoid = /* @__PURE__ */ exitSucceed(void 0);
8380
8378
  /** @internal */
8381
8379
  const exitMap = /* @__PURE__ */ dual(2, (self, f) => self._tag === "Success" ? exitSucceed(f(self.value)) : self);
@@ -9757,32 +9755,6 @@ const isSuccess$3 = exitIsSuccess;
9757
9755
  */
9758
9756
  const isFailure$2 = exitIsFailure;
9759
9757
  /**
9760
- * Tests whether a failed Exit contains interruptions (Interrupt reasons).
9761
- *
9762
- * - Use to check if a fiber was interrupted
9763
- * - Returns `false` for successful exits
9764
- *
9765
- * Only checks for `Interrupt` reasons in the Cause. A Cause with only `Fail`
9766
- * or `Die` reasons returns `false`.
9767
- *
9768
- * **Example** (Checking for interruptions)
9769
- *
9770
- * ```ts
9771
- * import { Exit } from "effect"
9772
- *
9773
- * console.log(Exit.hasInterrupts(Exit.interrupt(1))) // true
9774
- * console.log(Exit.hasInterrupts(Exit.fail("err"))) // false
9775
- * console.log(Exit.hasInterrupts(Exit.succeed(42))) // false
9776
- * ```
9777
- *
9778
- * @see {@link hasFails} to check for typed errors
9779
- * @see {@link hasDies} to check for defects
9780
- *
9781
- * @category guards
9782
- * @since 4.0.0
9783
- */
9784
- const hasInterrupts$1 = exitHasInterrupts;
9785
- /**
9786
9758
  * Discards the success value of an Exit, replacing it with `void`.
9787
9759
  *
9788
9760
  * - Use when you only care about whether the computation succeeded or failed, not the value
@@ -30009,6 +29981,19 @@ const get$12 = /* @__PURE__ */ fnUntraced(function* (self_) {
30009
29981
  });
30010
29982
  return state.value;
30011
29983
  });
29984
+ /** @internal */
29985
+ const invalidate$3 = (self_) => {
29986
+ const self = self_;
29987
+ return uninterruptible(suspend$3(() => {
29988
+ if (self.state._tag !== "Acquired") return void_$2;
29989
+ const state = self.state;
29990
+ self.state = stateEmpty;
29991
+ state.invalidated = true;
29992
+ if (state.refCount > 0) return void_$2;
29993
+ state.fiber?.interruptUnsafe();
29994
+ return close(state.scope, void_$3);
29995
+ }));
29996
+ };
30012
29997
  //#endregion
30013
29998
  //#region node_modules/.pnpm/effect@4.0.0-beta.40/node_modules/effect/dist/RcRef.js
30014
29999
  /**
@@ -30078,6 +30063,11 @@ const make$70 = make$71;
30078
30063
  * ```
30079
30064
  */
30080
30065
  const get$11 = get$12;
30066
+ /**
30067
+ * @since 3.19.6
30068
+ * @category combinators
30069
+ */
30070
+ const invalidate$2 = invalidate$3;
30081
30071
  //#endregion
30082
30072
  //#region node_modules/.pnpm/effect@4.0.0-beta.40/node_modules/effect/dist/Stream.js
30083
30073
  /**
@@ -182742,7 +182732,7 @@ var ji = Bt, Ii = Object.assign(Qe, { sync: Bt }), zi = Ut, Bi = Object.assign(e
182742
182732
  });
182743
182733
  Ze.glob = Ze;
182744
182734
  //#endregion
182745
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/ApplyPatch.js
182735
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/ApplyPatch.js
182746
182736
  /**
182747
182737
  * @since 1.0.0
182748
182738
  */
@@ -197623,7 +197613,7 @@ var StreamableHTTPClientTransport = class {
197623
197613
  }
197624
197614
  };
197625
197615
  //#endregion
197626
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/McpClient.js
197616
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/McpClient.js
197627
197617
  /**
197628
197618
  * @since 1.0.0
197629
197619
  */
@@ -197668,7 +197658,7 @@ const layer$13 = effect$1(McpClient, gen(function* () {
197668
197658
  });
197669
197659
  }));
197670
197660
  //#endregion
197671
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/ExaSearch.js
197661
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/ExaSearch.js
197672
197662
  /**
197673
197663
  * @since 1.0.0
197674
197664
  */
@@ -212618,7 +212608,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin$1(((exports) => {
212618
212608
  exports.impl = impl;
212619
212609
  }));
212620
212610
  //#endregion
212621
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/WebToMarkdown.js
212611
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/WebToMarkdown.js
212622
212612
  /**
212623
212613
  * @since 1.0.0
212624
212614
  */
@@ -215757,7 +215747,7 @@ function isEmptyParamsRecord(indexSignature) {
215757
215747
  return indexSignature.parameter === string$3 && isNever(indexSignature.type);
215758
215748
  }
215759
215749
  //#endregion
215760
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/SemanticSearch/Service.js
215750
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/SemanticSearch/Service.js
215761
215751
  /**
215762
215752
  * @since 1.0.0
215763
215753
  */
@@ -215783,7 +215773,7 @@ const maybeRemoveFile = (path) => serviceOption(SemanticSearch).pipe(flatMap$5(m
215783
215773
  onSome: (service) => service.removeFile(path)
215784
215774
  })));
215785
215775
  //#endregion
215786
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/AgentTools.js
215776
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/AgentTools.js
215787
215777
  /**
215788
215778
  * @since 1.0.0
215789
215779
  */
@@ -216186,7 +216176,7 @@ const AgentToolHandlers = AgentToolHandlersNoDeps.pipe(provide$3([layer$12, laye
216186
216176
  AgentToolHandlersNoDeps.pipe(provide$3([mock(ExaSearch)({}), mock(WebToMarkdown)({})]));
216187
216177
  var ApplyPatchError = class extends TaggedClass$2("ApplyPatchError") {};
216188
216178
  //#endregion
216189
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/TypeBuilder.js
216179
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/TypeBuilder.js
216190
216180
  const resolveDocumentation = resolveAt("documentation");
216191
216181
  const identifierPattern = /^[$A-Z_a-z][$0-9A-Z_a-z]*$/u;
216192
216182
  const Precedence = {
@@ -216459,7 +216449,7 @@ const render = (schema, options) => {
216459
216449
  return printNode({ text: documentation === void 0 ? rendered.text : `${renderJsDoc(documentation, 0, printerOptions)}${printerOptions.newLine}${rendered.text}` }, printerOptions);
216460
216450
  };
216461
216451
  //#endregion
216462
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/ToolkitRenderer.js
216452
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/ToolkitRenderer.js
216463
216453
  /**
216464
216454
  * @since 1.0.0
216465
216455
  */
@@ -216481,7 +216471,7 @@ declare function ${name}(${params}): Promise<${render(tool.successSchema)}>`);
216481
216471
  }) });
216482
216472
  };
216483
216473
  //#endregion
216484
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/ScriptPreprocessing.js
216474
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/ScriptPreprocessing.js
216485
216475
  const callTemplateTargets = ["applyPatch", "taskComplete"];
216486
216476
  const objectPropertyTargets = [{
216487
216477
  functionName: "writeFile",
@@ -217093,7 +217083,7 @@ const rewriteAssignedTargets = (script) => {
217093
217083
  };
217094
217084
  const preprocessScript = (script) => rewriteAssignedTargets(rewriteDirectTemplates(script));
217095
217085
  //#endregion
217096
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/AgentExecutor.js
217086
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/AgentExecutor.js
217097
217087
  /**
217098
217088
  * @since 1.0.0
217099
217089
  */
@@ -217278,7 +217268,7 @@ var QueueWriteStream = class extends Writable {
217278
217268
  }
217279
217269
  };
217280
217270
  //#endregion
217281
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/ScriptExtraction.js
217271
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/ScriptExtraction.js
217282
217272
  const stripWrappingCodeFence = (script) => {
217283
217273
  const lines = script.split(/\r?\n/);
217284
217274
  if (lines.length < 2) return script;
@@ -218827,7 +218817,7 @@ const applySpanTransformer = (transformer, response, options) => {
218827
218817
  });
218828
218818
  };
218829
218819
  //#endregion
218830
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/Agent.js
218820
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/Agent.js
218831
218821
  /**
218832
218822
  * @since 1.0.0
218833
218823
  */
@@ -219573,7 +219563,7 @@ var Retry = class Retry extends TaggedClass$2("Retry") {
219573
219563
  }
219574
219564
  };
219575
219565
  //#endregion
219576
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@3f8f598_ef_4206d54cc4fd1c3d7714c8c3d961419d/node_modules/@effect/ai-openai/dist/Generated.js
219566
+ //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@b1cedbd_ef_4821d157fac02f3171f7ac0566af4359/node_modules/@effect/ai-openai/dist/Generated.js
219577
219567
  /**
219578
219568
  * @since 1.0.0
219579
219569
  */ const AdminApiKey = /* @__PURE__ */ Struct$2({
@@ -227641,7 +227631,7 @@ const OpenAiClientError = (tag, cause, response) => new OpenAiClientErrorImpl({
227641
227631
  request: response.request
227642
227632
  });
227643
227633
  //#endregion
227644
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@3f8f598_ef_4206d54cc4fd1c3d7714c8c3d961419d/node_modules/@effect/ai-openai/dist/internal/errors.js
227634
+ //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@b1cedbd_ef_4821d157fac02f3171f7ac0566af4359/node_modules/@effect/ai-openai/dist/internal/errors.js
227645
227635
  /** @internal */
227646
227636
  const OpenAiErrorBody$1 = /* @__PURE__ */ Struct$2({ error: /* @__PURE__ */ Struct$2({
227647
227637
  message: String$1,
@@ -227854,7 +227844,7 @@ const mapStatusCodeToReason$1 = ({ status, headers, message, metadata, http }) =
227854
227844
  }
227855
227845
  };
227856
227846
  //#endregion
227857
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@3f8f598_ef_4206d54cc4fd1c3d7714c8c3d961419d/node_modules/@effect/ai-openai/dist/OpenAiConfig.js
227847
+ //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@b1cedbd_ef_4821d157fac02f3171f7ac0566af4359/node_modules/@effect/ai-openai/dist/OpenAiConfig.js
227858
227848
  /**
227859
227849
  * @since 1.0.0
227860
227850
  */
@@ -227869,7 +227859,7 @@ var OpenAiConfig$1 = class OpenAiConfig$1 extends Service$1()("@effect/ai-openai
227869
227859
  static getOrUndefined = /* @__PURE__ */ map$10(/* @__PURE__ */ services(), (context) => context.mapUnsafe.get(OpenAiConfig$1.key));
227870
227860
  };
227871
227861
  //#endregion
227872
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@3f8f598_ef_4206d54cc4fd1c3d7714c8c3d961419d/node_modules/@effect/ai-openai/dist/OpenAiClient.js
227862
+ //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@b1cedbd_ef_4821d157fac02f3171f7ac0566af4359/node_modules/@effect/ai-openai/dist/OpenAiClient.js
227873
227863
  /**
227874
227864
  * OpenAI Client module for interacting with OpenAI's API.
227875
227865
  *
@@ -227954,19 +227944,19 @@ const makeSocket = /* @__PURE__ */ gen(function* () {
227954
227944
  const client = yield* OpenAiClient$1;
227955
227945
  const tracker = yield* make$11;
227956
227946
  const request = yield* orDie$2(client.client.httpClient.preprocess(post("/responses")));
227957
- const socket = yield* makeWebSocket(request.url.replace(/^http/, "ws")).pipe(updateService(WebSocketConstructor, (f) => (url) => f(url, { headers: request.headers })));
227947
+ const decoder = new TextDecoder();
227958
227948
  const queueRef = yield* make$70({
227959
227949
  idleTimeToLive: 6e4,
227960
227950
  acquire: gen(function* () {
227951
+ const request = yield* orDie$2(client.client.httpClient.preprocess(post("/responses")));
227952
+ const socket = yield* makeWebSocket(request.url.replace(/^http/, "ws")).pipe(updateService(WebSocketConstructor, (f) => (url) => f(url, { headers: request.headers })));
227961
227953
  const write = yield* socket.writer;
227962
- let currentQueue = null;
227963
- const send = (queue, message) => suspend$3(() => {
227964
- currentQueue = queue;
227965
- return write(JSON.stringify({
227966
- type: "response.create",
227967
- ...message
227968
- }));
227969
- }).pipe(mapError$2((_error) => make$15({
227954
+ tracker.clearUnsafe();
227955
+ let incoming = yield* unbounded();
227956
+ const send = (message) => write(JSON.stringify({
227957
+ type: "response.create",
227958
+ ...message
227959
+ })).pipe(mapError$2((_error) => make$15({
227970
227960
  module: "OpenAiClient",
227971
227961
  method: "createResponseStream",
227972
227962
  reason: new NetworkError({
@@ -227981,20 +227971,15 @@ const makeSocket = /* @__PURE__ */ gen(function* () {
227981
227971
  description: "Failed to send message over WebSocket"
227982
227972
  })
227983
227973
  })));
227984
- const cancel = suspend$3(() => write(JSON.stringify({ type: "response.cancel" }))).pipe(ignore$1);
227985
- const reset = () => {
227986
- currentQueue = null;
227987
- };
227988
- const decoder = new TextDecoder();
227989
227974
  yield* socket.runRaw((msg) => {
227990
- if (!currentQueue) return;
227975
+ if (!incoming) return;
227991
227976
  const text = typeof msg === "string" ? msg : decoder.decode(msg);
227992
227977
  try {
227993
227978
  const event = decodeEvent(text);
227994
227979
  if (event.type === "error") tracker.clearUnsafe();
227995
227980
  if (event.type === "error" && "status" in event) {
227996
227981
  const json = JSON.stringify(event.error);
227997
- return fail$4(currentQueue, make$15({
227982
+ return fail$6(make$15({
227998
227983
  module: "OpenAiClient",
227999
227984
  method: "createResponseStream",
228000
227985
  reason: reasonFromHttpStatus({
@@ -228014,45 +227999,39 @@ const makeSocket = /* @__PURE__ */ gen(function* () {
228014
227999
  })
228015
228000
  }));
228016
228001
  }
228017
- offerUnsafe(currentQueue, event);
228002
+ offerUnsafe(incoming, event);
228018
228003
  } catch {}
228019
- }).pipe(catchCause$1((cause) => {
228020
- tracker.clearUnsafe();
228021
- return currentQueue ? fail$4(currentQueue, make$15({
228022
- module: "OpenAiClient",
228023
- method: "createResponseStream",
228024
- reason: new NetworkError({
228025
- reason: "TransportError",
228026
- request: {
228027
- method: "POST",
228028
- url: request.url,
228029
- urlParams: [],
228030
- hash: void 0,
228031
- headers: request.headers
228032
- },
228033
- description: pretty$1(cause)
228034
- })
228035
- })) : void_$2;
228036
- }), repeat(exponential(100, 1.5).pipe(either(spaced({ seconds: 5 })), jittered)), forkScoped);
228004
+ }).pipe(catchCause$1((cause) => fail$4(incoming, make$15({
228005
+ module: "OpenAiClient",
228006
+ method: "createResponseStream",
228007
+ reason: new NetworkError({
228008
+ reason: "TransportError",
228009
+ request: {
228010
+ method: "POST",
228011
+ url: request.url,
228012
+ urlParams: [],
228013
+ hash: void 0,
228014
+ headers: request.headers
228015
+ },
228016
+ description: pretty$1(cause)
228017
+ })
228018
+ }))), ensuring$2(invalidate$2(queueRef)), forkScoped({ startImmediately: true }));
228037
228019
  return {
228038
228020
  send,
228039
- cancel,
228040
- reset
228021
+ incoming
228041
228022
  };
228042
228023
  })
228043
228024
  });
228025
+ yield* forkScoped(get$11(queueRef));
228044
228026
  const semaphore = makeUnsafe$9(1);
228045
228027
  return OpenAiSocket.serviceMap({ createResponseStream(options) {
228046
228028
  const stream = gen(function* () {
228047
228029
  yield* acquireRelease(semaphore.take(1), () => semaphore.release(1), { interruptible: true });
228048
- const { send, cancel, reset } = yield* get$11(queueRef);
228049
- const incoming = yield* unbounded();
228030
+ const { send, incoming } = yield* get$11(queueRef);
228050
228031
  let done = false;
228051
- yield* acquireRelease(send(incoming, options), (_, exit) => {
228052
- reset();
228053
- if (isFailure$2(exit) && !hasInterrupts$1(exit)) return void_$2;
228054
- else if (done) return void_$2;
228055
- return cancel;
228032
+ yield* acquireRelease(send(options), () => {
228033
+ if (done) return void_$2;
228034
+ return invalidate$2(queueRef);
228056
228035
  }, { interruptible: true }).pipe(forkScoped({ startImmediately: true }));
228057
228036
  return fromQueue(incoming).pipe(takeUntil((e) => {
228058
228037
  done = e.type === "response.completed" || e.type === "response.incomplete";
@@ -228185,7 +228164,7 @@ const mapProviderResults = (inputLength, results) => {
228185
228164
  return succeed$4(embeddings);
228186
228165
  };
228187
228166
  //#endregion
228188
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@3f8f598_ef_4206d54cc4fd1c3d7714c8c3d961419d/node_modules/@effect/ai-openai/dist/OpenAiEmbeddingModel.js
228167
+ //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@b1cedbd_ef_4821d157fac02f3171f7ac0566af4359/node_modules/@effect/ai-openai/dist/OpenAiEmbeddingModel.js
228189
228168
  /**
228190
228169
  * OpenAI Embedding Model implementation.
228191
228170
  *
@@ -228570,7 +228549,7 @@ const formats = [
228570
228549
  "uuid"
228571
228550
  ];
228572
228551
  //#endregion
228573
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@3f8f598_ef_4206d54cc4fd1c3d7714c8c3d961419d/node_modules/@effect/ai-openai/dist/internal/utilities.js
228552
+ //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@b1cedbd_ef_4821d157fac02f3171f7ac0566af4359/node_modules/@effect/ai-openai/dist/internal/utilities.js
228574
228553
  const finishReasonMap$1 = {
228575
228554
  content_filter: "content-filter",
228576
228555
  function_call: "tool-calls",
@@ -228588,7 +228567,7 @@ const resolveFinishReason$1 = (finishReason, hasToolCalls) => {
228588
228567
  return reason;
228589
228568
  };
228590
228569
  //#endregion
228591
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@3f8f598_ef_4206d54cc4fd1c3d7714c8c3d961419d/node_modules/@effect/ai-openai/dist/OpenAiTelemetry.js
228570
+ //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@b1cedbd_ef_4821d157fac02f3171f7ac0566af4359/node_modules/@effect/ai-openai/dist/OpenAiTelemetry.js
228592
228571
  /**
228593
228572
  * OpenAI telemetry attributes for OpenTelemetry integration.
228594
228573
  *
@@ -228617,7 +228596,7 @@ const addGenAIAnnotations$1 = /* @__PURE__ */ dual(2, (span, options) => {
228617
228596
  }
228618
228597
  });
228619
228598
  //#endregion
228620
- //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@3f8f598_ef_4206d54cc4fd1c3d7714c8c3d961419d/node_modules/@effect/ai-openai/dist/OpenAiLanguageModel.js
228599
+ //#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@b1cedbd_ef_4821d157fac02f3171f7ac0566af4359/node_modules/@effect/ai-openai/dist/OpenAiLanguageModel.js
228621
228600
  /**
228622
228601
  * OpenAI Language Model implementation.
228623
228602
  *
@@ -230385,7 +230364,7 @@ const transformToolCallParams = /* @__PURE__ */ fnUntraced(function* (tools, too
230385
230364
  })));
230386
230365
  });
230387
230366
  //#endregion
230388
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/CodexAuth.js
230367
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/CodexAuth.js
230389
230368
  /**
230390
230369
  * @since 1.0.0
230391
230370
  */
@@ -230605,7 +230584,7 @@ var CodexAuth = class CodexAuth extends Service$1()("clanka/CodexAuth") {
230605
230584
  static layerClient = this.layerClientNoDeps.pipe(provide$3(CodexAuth.layer));
230606
230585
  };
230607
230586
  //#endregion
230608
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/Codex.js
230587
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/Codex.js
230609
230588
  /**
230610
230589
  * @since 1.0.0
230611
230590
  */
@@ -230631,7 +230610,7 @@ const layerModel = (model, options) => layer$7({
230631
230610
  }
230632
230611
  }).pipe(merge$6(AgentModelConfig.layer({ systemPromptTransform: (system, effect) => withConfigOverride(effect, { instructions: system }) })));
230633
230612
  //#endregion
230634
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/CodeChunker.js
230613
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/CodeChunker.js
230635
230614
  /**
230636
230615
  * @since 1.0.0
230637
230616
  */
@@ -232391,7 +232370,7 @@ const getUsageDetailNumber = (details, field) => {
232391
232370
  return typeof value === "number" ? value : void 0;
232392
232371
  };
232393
232372
  //#endregion
232394
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/CopilotAuth.js
232373
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/CopilotAuth.js
232395
232374
  /**
232396
232375
  * @since 1.0.0
232397
232376
  */
@@ -232582,7 +232561,7 @@ var GithubCopilotAuth = class GithubCopilotAuth extends Service$1()("clanka/Gith
232582
232561
  static layerClient = this.layerClientNoDeps.pipe(provide$3(GithubCopilotAuth.layer));
232583
232562
  };
232584
232563
  //#endregion
232585
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/Copilot.js
232564
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/Copilot.js
232586
232565
  /**
232587
232566
  * @since 1.0.0
232588
232567
  */
@@ -233002,7 +232981,7 @@ Object.defineProperties(createChalk.prototype, styles);
233002
232981
  const chalk = createChalk();
233003
232982
  createChalk({ level: stderrColor ? stderrColor.level : 0 });
233004
232983
  //#endregion
233005
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/OutputFormatter.js
232984
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/OutputFormatter.js
233006
232985
  /**
233007
232986
  * @since 1.0.0
233008
232987
  */
@@ -233710,7 +233689,7 @@ select * from ${sql(options.tableName)} where ${sql(idColumn)} = LAST_INSERT_ID(
233710
233689
  };
233711
233690
  });
233712
233691
  //#endregion
233713
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/ChunkRepo.js
233692
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/ChunkRepo.js
233714
233693
  /**
233715
233694
  * @since 1.0.0
233716
233695
  * @category Models
@@ -233976,7 +233955,7 @@ const run$1 = /* @__PURE__ */ make$25({});
233976
233955
  */
233977
233956
  const layer$1 = (options) => effectDiscard(run$1(options));
233978
233957
  //#endregion
233979
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/internal/sqlite-vector.js
233958
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/internal/sqlite-vector.js
233980
233959
  /**
233981
233960
  * Binary extension for each platform
233982
233961
  */
@@ -234093,7 +234072,7 @@ function getExtensionPath() {
234093
234072
  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`);
234094
234073
  }
234095
234074
  //#endregion
234096
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/Sqlite.js
234075
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/Sqlite.js
234097
234076
  /**
234098
234077
  * @since 1.0.0
234099
234078
  */
@@ -234121,7 +234100,7 @@ const SqliteLayer = (database) => layer$1({ loader: fromRecord({ "0001_create_ch
234121
234100
  yield* fs.makeDirectory(directory, { recursive: true });
234122
234101
  }))));
234123
234102
  //#endregion
234124
- //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_8eff9ad9450cf57bc8042f3e9c1aa943/node_modules/clanka/dist/SemanticSearch.js
234103
+ //#region node_modules/.pnpm/clanka@0.2.45_@effect+ai-openai-compat@4.0.0-beta.40_effect@4.0.0-beta.40__@effect+ai-o_b44ad6a592aebf006d858763ce8a040d/node_modules/clanka/dist/SemanticSearch.js
234125
234104
  /**
234126
234105
  * @since 1.0.0
234127
234106
  */
@@ -243800,7 +243779,7 @@ const commandEdit = make$60("edit").pipe(withDescription("Open the selected proj
243800
243779
  const commandSource = make$60("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));
243801
243780
  //#endregion
243802
243781
  //#region package.json
243803
- var version = "0.3.119";
243782
+ var version = "0.3.120";
243804
243783
  //#endregion
243805
243784
  //#region src/Tracing.ts
243806
243785
  const TracingLayer = unwrap$3(gen(function* () {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lalph",
3
3
  "type": "module",
4
- "version": "0.3.119",
4
+ "version": "0.3.120",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -37,7 +37,7 @@
37
37
  "devDependencies": {
38
38
  "@changesets/changelog-github": "^0.6.0",
39
39
  "@changesets/cli": "^2.30.0",
40
- "@effect/ai-openai": "https://pkg.pr.new/Effect-TS/effect-smol/@effect/ai-openai@3f8f598",
40
+ "@effect/ai-openai": "https://pkg.pr.new/Effect-TS/effect-smol/@effect/ai-openai@b1cedbd",
41
41
  "@effect/ai-openai-compat": "4.0.0-beta.40",
42
42
  "@effect/language-service": "^0.84.0",
43
43
  "@effect/platform-node": "4.0.0-beta.40",