oh-my-opencode-kikokikok 2.15.11 → 2.15.13
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/index.js
CHANGED
|
@@ -2253,7 +2253,7 @@ var require_picocolors = __commonJS((exports, module) => {
|
|
|
2253
2253
|
var require_package = __commonJS((exports, module) => {
|
|
2254
2254
|
module.exports = {
|
|
2255
2255
|
name: "oh-my-opencode-kikokikok",
|
|
2256
|
-
version: "2.15.
|
|
2256
|
+
version: "2.15.13",
|
|
2257
2257
|
description: "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
|
|
2258
2258
|
main: "dist/index.js",
|
|
2259
2259
|
types: "dist/index.d.ts",
|
|
@@ -27,6 +27,9 @@ export declare class LettaAdapter {
|
|
|
27
27
|
* Resolves user model name to Letta handle. Letta requires exact handle matches
|
|
28
28
|
* AND valid provider prefix (letta/, openai/). Models with other prefixes like
|
|
29
29
|
* openai-proxy/ will fail agent creation even if registered in the model list.
|
|
30
|
+
*
|
|
31
|
+
* Returns the ORIGINAL handle from the model list (e.g., openai-proxy/model-name).
|
|
32
|
+
* Normalization to Letta-compatible prefixes happens separately in getEmbeddingModel/getLlmModel.
|
|
30
33
|
*/
|
|
31
34
|
private resolveModelHandle;
|
|
32
35
|
private getEmbeddingModel;
|
package/dist/index.js
CHANGED
|
@@ -43786,13 +43786,6 @@ var DEFAULT_EMBEDDING_MODEL = "letta/letta-free";
|
|
|
43786
43786
|
var VALID_PROVIDERS = ["letta", "openai", "openai-proxy"];
|
|
43787
43787
|
var COPILOT_PROXY_ENDPOINT = "http://host.docker.internal:4141/v1";
|
|
43788
43788
|
var COPILOT_PROXY_LOCAL = "http://localhost:4141/v1";
|
|
43789
|
-
function normalizeHandleForLetta(handle) {
|
|
43790
|
-
if (handle.startsWith("openai-proxy/")) {
|
|
43791
|
-
return handle.replace("openai-proxy/", "openai/");
|
|
43792
|
-
}
|
|
43793
|
-
return handle;
|
|
43794
|
-
}
|
|
43795
|
-
|
|
43796
43789
|
class LettaAdapter {
|
|
43797
43790
|
config;
|
|
43798
43791
|
endpoint;
|
|
@@ -43931,8 +43924,7 @@ class LettaAdapter {
|
|
|
43931
43924
|
}
|
|
43932
43925
|
const configModel = this.config.embeddingModel;
|
|
43933
43926
|
if (configModel) {
|
|
43934
|
-
|
|
43935
|
-
this.resolvedEmbeddingModel = normalizeHandleForLetta(resolved);
|
|
43927
|
+
this.resolvedEmbeddingModel = await this.resolveModelHandle(configModel, true);
|
|
43936
43928
|
} else {
|
|
43937
43929
|
const models = await this.getModels();
|
|
43938
43930
|
const hasValidProvider = (handle) => {
|
|
@@ -43943,8 +43935,7 @@ class LettaAdapter {
|
|
|
43943
43935
|
if (validEmbeddingModels.length > 0) {
|
|
43944
43936
|
const preferredName = this.config.preferredEmbeddingModel ?? "text-embedding-3-small";
|
|
43945
43937
|
const preferred = validEmbeddingModels.find((m) => m.name.includes(preferredName));
|
|
43946
|
-
|
|
43947
|
-
this.resolvedEmbeddingModel = normalizeHandleForLetta(handle);
|
|
43938
|
+
this.resolvedEmbeddingModel = preferred?.handle ?? validEmbeddingModels[0].handle;
|
|
43948
43939
|
} else {
|
|
43949
43940
|
this.resolvedEmbeddingModel = DEFAULT_EMBEDDING_MODEL;
|
|
43950
43941
|
}
|
|
@@ -43957,8 +43948,7 @@ class LettaAdapter {
|
|
|
43957
43948
|
}
|
|
43958
43949
|
const configModel = this.config.llmModel;
|
|
43959
43950
|
if (configModel) {
|
|
43960
|
-
|
|
43961
|
-
this.resolvedLlmModel = normalizeHandleForLetta(resolved);
|
|
43951
|
+
this.resolvedLlmModel = await this.resolveModelHandle(configModel, false);
|
|
43962
43952
|
} else {
|
|
43963
43953
|
this.resolvedLlmModel = DEFAULT_LLM_MODEL;
|
|
43964
43954
|
}
|