oh-my-opencode-kikokikok 2.15.4 → 2.15.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/cli/index.js +1 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
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.6",
|
|
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",
|
package/dist/index.js
CHANGED
|
@@ -44093,13 +44093,17 @@ class LettaAdapter {
|
|
|
44093
44093
|
}
|
|
44094
44094
|
}
|
|
44095
44095
|
async request(path7, options) {
|
|
44096
|
+
const basePath = path7.split("?")[0];
|
|
44097
|
+
const queryString = path7.includes("?") ? path7.slice(path7.indexOf("?")) : "";
|
|
44098
|
+
const normalizedBase = basePath.endsWith("/") ? basePath : `${basePath}/`;
|
|
44099
|
+
const normalizedPath = `${normalizedBase}${queryString}`;
|
|
44096
44100
|
const headers = {
|
|
44097
44101
|
"Content-Type": "application/json"
|
|
44098
44102
|
};
|
|
44099
44103
|
if (this.config.apiKey) {
|
|
44100
44104
|
headers["Authorization"] = `Bearer ${this.config.apiKey}`;
|
|
44101
44105
|
}
|
|
44102
|
-
const response2 = await fetch(`${this.endpoint}${
|
|
44106
|
+
const response2 = await fetch(`${this.endpoint}${normalizedPath}`, {
|
|
44103
44107
|
method: options.method,
|
|
44104
44108
|
headers,
|
|
44105
44109
|
body: options.body,
|