oh-my-opencode-kikokikok 2.15.4 → 2.15.5

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.4",
2256
+ version: "2.15.5",
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
@@ -43846,7 +43846,10 @@ class LettaAdapter {
43846
43846
  })
43847
43847
  });
43848
43848
  const data = await response2.json();
43849
+ console.log("[LettaAdapter.add] Raw API response:", JSON.stringify(data, null, 2));
43849
43850
  const passage = Array.isArray(data) ? data[0] : data;
43851
+ console.log("[LettaAdapter.add] Extracted passage:", JSON.stringify(passage, null, 2));
43852
+ console.log("[LettaAdapter.add] passage.id:", passage?.id);
43850
43853
  return this.passageToMemory(passage, input.layer, agent.id);
43851
43854
  }
43852
43855
  async search(input) {
@@ -44001,16 +44004,20 @@ class LettaAdapter {
44001
44004
  }
44002
44005
  }
44003
44006
  async getOrCreateAgent(layer) {
44007
+ console.log(`[LettaAdapter.getOrCreateAgent] Looking for agent for layer: ${layer}`);
44004
44008
  const existing = await this.getAgent(layer);
44005
44009
  if (existing) {
44010
+ console.log(`[LettaAdapter.getOrCreateAgent] Found existing agent: ${existing.id} (${existing.name})`);
44006
44011
  const needsUpdate = await this.agentNeedsEmbeddingUpdate(existing);
44007
44012
  if (needsUpdate) {
44008
44013
  return this.recreateAgentWithCorrectEmbedding(existing, layer);
44009
44014
  }
44010
44015
  return existing;
44011
44016
  }
44017
+ console.log(`[LettaAdapter.getOrCreateAgent] No existing agent, creating new one for layer: ${layer}`);
44012
44018
  const embeddingModel = await this.detectEmbeddingModel();
44013
44019
  const agentName = this.getAgentName(layer);
44020
+ console.log(`[LettaAdapter.getOrCreateAgent] Creating agent with name: ${agentName}, embedding: ${embeddingModel}`);
44014
44021
  const response2 = await this.request("/v1/agents", {
44015
44022
  method: "POST",
44016
44023
  body: JSON.stringify({
@@ -44029,6 +44036,7 @@ class LettaAdapter {
44029
44036
  })
44030
44037
  });
44031
44038
  const agent = await response2.json();
44039
+ console.log(`[LettaAdapter.getOrCreateAgent] Created agent: ${agent.id} (${agent.name})`);
44032
44040
  this.agentCache.set(layer, agent);
44033
44041
  return agent;
44034
44042
  }
@@ -44099,6 +44107,10 @@ class LettaAdapter {
44099
44107
  if (this.config.apiKey) {
44100
44108
  headers["Authorization"] = `Bearer ${this.config.apiKey}`;
44101
44109
  }
44110
+ console.log(`[LettaAdapter.request] ${options.method} ${this.endpoint}${path7}`);
44111
+ if (options.body) {
44112
+ console.log(`[LettaAdapter.request] Body: ${options.body.slice(0, 500)}`);
44113
+ }
44102
44114
  const response2 = await fetch(`${this.endpoint}${path7}`, {
44103
44115
  method: options.method,
44104
44116
  headers,
@@ -44107,6 +44119,7 @@ class LettaAdapter {
44107
44119
  });
44108
44120
  if (!response2.ok) {
44109
44121
  const text = await response2.text().catch(() => "");
44122
+ console.log(`[LettaAdapter.request] Error ${response2.status}: ${text}`);
44110
44123
  throw new Error(`Letta API error: ${response2.status} ${response2.statusText} - ${text}`);
44111
44124
  }
44112
44125
  return response2;
@@ -44143,6 +44156,9 @@ class LettaAdapter {
44143
44156
  return ["user", "session", "project", "team", "org", "company", "agent"];
44144
44157
  }
44145
44158
  passageToMemory(passage, layer, agentId) {
44159
+ console.log("[LettaAdapter.passageToMemory] Input passage keys:", Object.keys(passage || {}));
44160
+ console.log("[LettaAdapter.passageToMemory] passage.id:", passage?.id);
44161
+ console.log("[LettaAdapter.passageToMemory] passage.text:", passage?.text?.slice(0, 50));
44146
44162
  return {
44147
44163
  id: passage.id,
44148
44164
  content: passage.text,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oh-my-opencode-kikokikok",
3
- "version": "2.15.4",
3
+ "version": "2.15.5",
4
4
  "description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",