@the-magic-tower/fixhive-opencode-plugin 0.1.15 → 0.1.16
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/cloud/client.d.ts.map +1 -1
- package/dist/index.js +4 -28
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/cloud/client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/cloud/client.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAI3B;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAC/D,gBAAgB,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;IAClE,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACtF,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC3F,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IACjF,aAAa,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAClD,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;IACjD,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IAC1D,gBAAgB,IAAI,MAAM,CAAC;IAC3B,mBAAmB,IAAI,OAAO,CAAC;CAChC;AA6BD;;;GAGG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CA0RvF;AAID,eAAO,MAAM,WAAW;;CAEvB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
8
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
9
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
10
|
-
for (let key of __getOwnPropNames(mod))
|
|
11
|
-
if (!__hasOwnProp.call(to, key))
|
|
12
|
-
__defProp(to, key, {
|
|
13
|
-
get: () => mod[key],
|
|
14
|
-
enumerable: true
|
|
15
|
-
});
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __require = import.meta.require;
|
|
19
|
-
|
|
20
2
|
// src/plugin/index.ts
|
|
21
3
|
import { tool as tool2 } from "@opencode-ai/plugin";
|
|
22
4
|
import { existsSync as existsSync2, readFileSync } from "fs";
|
|
@@ -858,6 +840,9 @@ class LocalStore {
|
|
|
858
840
|
}
|
|
859
841
|
}
|
|
860
842
|
|
|
843
|
+
// src/cloud/client.ts
|
|
844
|
+
import { createClient } from "@supabase/supabase-js";
|
|
845
|
+
|
|
861
846
|
// src/cloud/embedding.ts
|
|
862
847
|
import OpenAI from "openai";
|
|
863
848
|
var DEFAULT_MODEL = "text-embedding-3-small";
|
|
@@ -949,14 +934,6 @@ function createEmbeddingService(config) {
|
|
|
949
934
|
}
|
|
950
935
|
|
|
951
936
|
// src/cloud/client.ts
|
|
952
|
-
var createClient;
|
|
953
|
-
async function getCreateClient() {
|
|
954
|
-
if (!createClient) {
|
|
955
|
-
const supabase = await import("@supabase/supabase-js");
|
|
956
|
-
createClient = supabase.createClient;
|
|
957
|
-
}
|
|
958
|
-
return createClient;
|
|
959
|
-
}
|
|
960
937
|
function mapToKnowledgeEntry(row) {
|
|
961
938
|
return {
|
|
962
939
|
id: row.id,
|
|
@@ -981,8 +958,7 @@ function mapToKnowledgeEntry(row) {
|
|
|
981
958
|
};
|
|
982
959
|
}
|
|
983
960
|
async function createCloudClient(config) {
|
|
984
|
-
const
|
|
985
|
-
const supabase = createClientFn(config.supabaseUrl, config.supabaseAnonKey);
|
|
961
|
+
const supabase = createClient(config.supabaseUrl, config.supabaseAnonKey);
|
|
986
962
|
let embedding = null;
|
|
987
963
|
if (config.openaiApiKey) {
|
|
988
964
|
try {
|