lalph 0.3.118 → 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.
- package/dist/cli.mjs +86 -109
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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@
|
|
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@
|
|
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@
|
|
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@
|
|
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
|
|
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
|
-
|
|
227963
|
-
|
|
227964
|
-
|
|
227965
|
-
|
|
227966
|
-
|
|
227967
|
-
|
|
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 (!
|
|
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$
|
|
227982
|
+
return fail$6(make$15({
|
|
227998
227983
|
module: "OpenAiClient",
|
|
227999
227984
|
method: "createResponseStream",
|
|
228000
227985
|
reason: reasonFromHttpStatus({
|
|
@@ -228014,47 +227999,39 @@ const makeSocket = /* @__PURE__ */ gen(function* () {
|
|
|
228014
227999
|
})
|
|
228015
228000
|
}));
|
|
228016
228001
|
}
|
|
228017
|
-
offerUnsafe(
|
|
228018
|
-
} catch
|
|
228019
|
-
|
|
228020
|
-
|
|
228021
|
-
|
|
228022
|
-
|
|
228023
|
-
|
|
228024
|
-
|
|
228025
|
-
|
|
228026
|
-
|
|
228027
|
-
|
|
228028
|
-
|
|
228029
|
-
|
|
228030
|
-
|
|
228031
|
-
|
|
228032
|
-
|
|
228033
|
-
|
|
228034
|
-
},
|
|
228035
|
-
description: pretty$1(cause)
|
|
228036
|
-
})
|
|
228037
|
-
})) : void_$2;
|
|
228038
|
-
}), repeat(exponential(100, 1.5).pipe(either(spaced({ seconds: 5 })), jittered)), forkScoped);
|
|
228002
|
+
offerUnsafe(incoming, event);
|
|
228003
|
+
} catch {}
|
|
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 }));
|
|
228039
228019
|
return {
|
|
228040
228020
|
send,
|
|
228041
|
-
|
|
228042
|
-
reset
|
|
228021
|
+
incoming
|
|
228043
228022
|
};
|
|
228044
228023
|
})
|
|
228045
228024
|
});
|
|
228025
|
+
yield* forkScoped(get$11(queueRef));
|
|
228046
228026
|
const semaphore = makeUnsafe$9(1);
|
|
228047
228027
|
return OpenAiSocket.serviceMap({ createResponseStream(options) {
|
|
228048
228028
|
const stream = gen(function* () {
|
|
228049
228029
|
yield* acquireRelease(semaphore.take(1), () => semaphore.release(1), { interruptible: true });
|
|
228050
|
-
const { send,
|
|
228051
|
-
const incoming = yield* unbounded();
|
|
228030
|
+
const { send, incoming } = yield* get$11(queueRef);
|
|
228052
228031
|
let done = false;
|
|
228053
|
-
yield* acquireRelease(send(
|
|
228054
|
-
|
|
228055
|
-
|
|
228056
|
-
else if (done) return void_$2;
|
|
228057
|
-
return cancel;
|
|
228032
|
+
yield* acquireRelease(send(options), () => {
|
|
228033
|
+
if (done) return void_$2;
|
|
228034
|
+
return invalidate$2(queueRef);
|
|
228058
228035
|
}, { interruptible: true }).pipe(forkScoped({ startImmediately: true }));
|
|
228059
228036
|
return fromQueue(incoming).pipe(takeUntil((e) => {
|
|
228060
228037
|
done = e.type === "response.completed" || e.type === "response.incomplete";
|
|
@@ -228064,14 +228041,14 @@ const makeSocket = /* @__PURE__ */ gen(function* () {
|
|
|
228064
228041
|
return succeed$4([fromWeb(request, new Response()), stream]);
|
|
228065
228042
|
} }).pipe(add$3(ResponseIdTracker, tracker));
|
|
228066
228043
|
});
|
|
228067
|
-
const decodeEvent = /* @__PURE__ */ decodeUnknownSync(/* @__PURE__ */ fromJsonString(/* @__PURE__ */ Union$2([
|
|
228044
|
+
const decodeEvent = /* @__PURE__ */ decodeUnknownSync(/* @__PURE__ */ fromJsonString(/* @__PURE__ */ Union$2([/* @__PURE__ */ Struct$2({
|
|
228068
228045
|
type: /* @__PURE__ */ Literal("error"),
|
|
228069
|
-
status: Number$1,
|
|
228046
|
+
status: /* @__PURE__ */ Number$1.pipe(/* @__PURE__ */ withDecodingDefault(() => 500)),
|
|
228070
228047
|
error: /* @__PURE__ */ Struct$2({
|
|
228071
228048
|
type: String$1,
|
|
228072
228049
|
message: String$1
|
|
228073
228050
|
})
|
|
228074
|
-
})])));
|
|
228051
|
+
}), ResponseStreamEvent])));
|
|
228075
228052
|
/**
|
|
228076
228053
|
* Uses OpenAI's websocket mode for all responses that use the Layer.
|
|
228077
228054
|
*
|
|
@@ -228187,7 +228164,7 @@ const mapProviderResults = (inputLength, results) => {
|
|
|
228187
228164
|
return succeed$4(embeddings);
|
|
228188
228165
|
};
|
|
228189
228166
|
//#endregion
|
|
228190
|
-
//#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@
|
|
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
|
|
228191
228168
|
/**
|
|
228192
228169
|
* OpenAI Embedding Model implementation.
|
|
228193
228170
|
*
|
|
@@ -228572,7 +228549,7 @@ const formats = [
|
|
|
228572
228549
|
"uuid"
|
|
228573
228550
|
];
|
|
228574
228551
|
//#endregion
|
|
228575
|
-
//#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@
|
|
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
|
|
228576
228553
|
const finishReasonMap$1 = {
|
|
228577
228554
|
content_filter: "content-filter",
|
|
228578
228555
|
function_call: "tool-calls",
|
|
@@ -228590,7 +228567,7 @@ const resolveFinishReason$1 = (finishReason, hasToolCalls) => {
|
|
|
228590
228567
|
return reason;
|
|
228591
228568
|
};
|
|
228592
228569
|
//#endregion
|
|
228593
|
-
//#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@
|
|
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
|
|
228594
228571
|
/**
|
|
228595
228572
|
* OpenAI telemetry attributes for OpenTelemetry integration.
|
|
228596
228573
|
*
|
|
@@ -228619,7 +228596,7 @@ const addGenAIAnnotations$1 = /* @__PURE__ */ dual(2, (span, options) => {
|
|
|
228619
228596
|
}
|
|
228620
228597
|
});
|
|
228621
228598
|
//#endregion
|
|
228622
|
-
//#region node_modules/.pnpm/@effect+ai-openai@https+++pkg.pr.new+Effect-TS+effect-smol+@effect+ai-openai@
|
|
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
|
|
228623
228600
|
/**
|
|
228624
228601
|
* OpenAI Language Model implementation.
|
|
228625
228602
|
*
|
|
@@ -230387,7 +230364,7 @@ const transformToolCallParams = /* @__PURE__ */ fnUntraced(function* (tools, too
|
|
|
230387
230364
|
})));
|
|
230388
230365
|
});
|
|
230389
230366
|
//#endregion
|
|
230390
|
-
//#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-
|
|
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
|
|
230391
230368
|
/**
|
|
230392
230369
|
* @since 1.0.0
|
|
230393
230370
|
*/
|
|
@@ -230607,7 +230584,7 @@ var CodexAuth = class CodexAuth extends Service$1()("clanka/CodexAuth") {
|
|
|
230607
230584
|
static layerClient = this.layerClientNoDeps.pipe(provide$3(CodexAuth.layer));
|
|
230608
230585
|
};
|
|
230609
230586
|
//#endregion
|
|
230610
|
-
//#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-
|
|
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
|
|
230611
230588
|
/**
|
|
230612
230589
|
* @since 1.0.0
|
|
230613
230590
|
*/
|
|
@@ -230633,7 +230610,7 @@ const layerModel = (model, options) => layer$7({
|
|
|
230633
230610
|
}
|
|
230634
230611
|
}).pipe(merge$6(AgentModelConfig.layer({ systemPromptTransform: (system, effect) => withConfigOverride(effect, { instructions: system }) })));
|
|
230635
230612
|
//#endregion
|
|
230636
|
-
//#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-
|
|
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
|
|
230637
230614
|
/**
|
|
230638
230615
|
* @since 1.0.0
|
|
230639
230616
|
*/
|
|
@@ -232393,7 +232370,7 @@ const getUsageDetailNumber = (details, field) => {
|
|
|
232393
232370
|
return typeof value === "number" ? value : void 0;
|
|
232394
232371
|
};
|
|
232395
232372
|
//#endregion
|
|
232396
|
-
//#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-
|
|
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
|
|
232397
232374
|
/**
|
|
232398
232375
|
* @since 1.0.0
|
|
232399
232376
|
*/
|
|
@@ -232584,7 +232561,7 @@ var GithubCopilotAuth = class GithubCopilotAuth extends Service$1()("clanka/Gith
|
|
|
232584
232561
|
static layerClient = this.layerClientNoDeps.pipe(provide$3(GithubCopilotAuth.layer));
|
|
232585
232562
|
};
|
|
232586
232563
|
//#endregion
|
|
232587
|
-
//#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-
|
|
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
|
|
232588
232565
|
/**
|
|
232589
232566
|
* @since 1.0.0
|
|
232590
232567
|
*/
|
|
@@ -233004,7 +232981,7 @@ Object.defineProperties(createChalk.prototype, styles);
|
|
|
233004
232981
|
const chalk = createChalk();
|
|
233005
232982
|
createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
233006
232983
|
//#endregion
|
|
233007
|
-
//#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-
|
|
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
|
|
233008
232985
|
/**
|
|
233009
232986
|
* @since 1.0.0
|
|
233010
232987
|
*/
|
|
@@ -233712,7 +233689,7 @@ select * from ${sql(options.tableName)} where ${sql(idColumn)} = LAST_INSERT_ID(
|
|
|
233712
233689
|
};
|
|
233713
233690
|
});
|
|
233714
233691
|
//#endregion
|
|
233715
|
-
//#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-
|
|
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
|
|
233716
233693
|
/**
|
|
233717
233694
|
* @since 1.0.0
|
|
233718
233695
|
* @category Models
|
|
@@ -233978,7 +233955,7 @@ const run$1 = /* @__PURE__ */ make$25({});
|
|
|
233978
233955
|
*/
|
|
233979
233956
|
const layer$1 = (options) => effectDiscard(run$1(options));
|
|
233980
233957
|
//#endregion
|
|
233981
|
-
//#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-
|
|
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
|
|
233982
233959
|
/**
|
|
233983
233960
|
* Binary extension for each platform
|
|
233984
233961
|
*/
|
|
@@ -234095,7 +234072,7 @@ function getExtensionPath() {
|
|
|
234095
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`);
|
|
234096
234073
|
}
|
|
234097
234074
|
//#endregion
|
|
234098
|
-
//#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-
|
|
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
|
|
234099
234076
|
/**
|
|
234100
234077
|
* @since 1.0.0
|
|
234101
234078
|
*/
|
|
@@ -234123,7 +234100,7 @@ const SqliteLayer = (database) => layer$1({ loader: fromRecord({ "0001_create_ch
|
|
|
234123
234100
|
yield* fs.makeDirectory(directory, { recursive: true });
|
|
234124
234101
|
}))));
|
|
234125
234102
|
//#endregion
|
|
234126
|
-
//#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-
|
|
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
|
|
234127
234104
|
/**
|
|
234128
234105
|
* @since 1.0.0
|
|
234129
234106
|
*/
|
|
@@ -243802,7 +243779,7 @@ const commandEdit = make$60("edit").pipe(withDescription("Open the selected proj
|
|
|
243802
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));
|
|
243803
243780
|
//#endregion
|
|
243804
243781
|
//#region package.json
|
|
243805
|
-
var version = "0.3.
|
|
243782
|
+
var version = "0.3.120";
|
|
243806
243783
|
//#endregion
|
|
243807
243784
|
//#region src/Tracing.ts
|
|
243808
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.
|
|
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@
|
|
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",
|