alink-cli 0.11.5 → 0.11.6
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/bin.mjs +9 -5
- package/dist/bin.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bin.mjs
CHANGED
|
@@ -84880,16 +84880,20 @@ const makeAcpPatchedProtocol = fn("makeAcpPatchedProtocol")(function* (options)
|
|
|
84880
84880
|
function isProtocolError(value) {
|
|
84881
84881
|
return typeof value === "object" && value !== null && "code" in value && typeof value.code === "number" && "message" in value && typeof value.message === "string";
|
|
84882
84882
|
}
|
|
84883
|
-
|
|
84883
|
+
//#endregion
|
|
84884
|
+
//#region ../effect-acp/src/rpc.ts
|
|
84885
|
+
const NonCanonicalPromptStopReasonResponse = Struct({
|
|
84884
84886
|
_meta: optionalKey(NullOr(Record(String$1, Unknown))),
|
|
84885
|
-
stopReason:
|
|
84887
|
+
stopReason: Unknown,
|
|
84886
84888
|
usage: optionalKey(NullOr(Usage)),
|
|
84887
84889
|
userMessageId: optionalKey(NullOr(String$1))
|
|
84888
|
-
})
|
|
84889
|
-
|
|
84890
|
+
});
|
|
84891
|
+
const isCanonicalPromptResponse = is(PromptResponse);
|
|
84892
|
+
const PromptResponseCompat = Union([PromptResponse, NonCanonicalPromptStopReasonResponse]).pipe(decodeTo(toType(PromptResponse), transform$1({
|
|
84893
|
+
decode: (response) => isCanonicalPromptResponse(response) ? response : {
|
|
84890
84894
|
...response,
|
|
84891
84895
|
stopReason: "end_turn"
|
|
84892
|
-
}
|
|
84896
|
+
},
|
|
84893
84897
|
encode: (response) => response
|
|
84894
84898
|
})));
|
|
84895
84899
|
const InitializeRpc = make$52(AGENT_METHODS.initialize, {
|