teleton 0.8.0 → 0.8.2

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.
Files changed (44) hide show
  1. package/README.md +28 -11
  2. package/dist/{chunk-H36RFKRI.js → chunk-2IZU3REP.js} +572 -174
  3. package/dist/chunk-3UFPFWYP.js +12 -0
  4. package/dist/{chunk-NUGDTPE4.js → chunk-4L66JHQE.js} +2 -1
  5. package/dist/{chunk-TVRZJIZX.js → chunk-55SKE6YH.js} +4 -4
  6. package/dist/{setup-server-QXED3D2L.js → chunk-57URFK6M.js} +161 -210
  7. package/dist/chunk-5SEMA47R.js +75 -0
  8. package/dist/{chunk-JHYZYFZJ.js → chunk-7YKSXOQQ.js} +17 -2
  9. package/dist/{chunk-IJBWWQE4.js → chunk-C4NKJT2Z.js} +12 -0
  10. package/dist/{chunk-RQBAMUCV.js → chunk-GGXJLMOH.js} +1451 -743
  11. package/dist/{chunk-WIKM24GZ.js → chunk-H7MFXJZK.js} +7 -2
  12. package/dist/{chunk-U56QTM46.js → chunk-HEDJCLA6.js} +85 -44
  13. package/dist/{chunk-QVBSUYVX.js → chunk-J73TA3UM.js} +17 -9
  14. package/dist/{chunk-P36I6OIV.js → chunk-LC4TV3KL.js} +13 -2
  15. package/dist/{chunk-RCMD3U65.js → chunk-NQ6FZKCE.js} +13 -0
  16. package/dist/{chunk-SD4NLLYG.js → chunk-VYKW7FMV.js} +224 -93
  17. package/dist/chunk-W25Z7CM6.js +487 -0
  18. package/dist/{chunk-OJCLKU5Z.js → chunk-WFTC3JJW.js} +16 -0
  19. package/dist/{server-H3QA252W.js → chunk-XBSCYMKM.js} +369 -374
  20. package/dist/{chunk-PHSAHTK4.js → chunk-YOSUPUAJ.js} +75 -7
  21. package/dist/cli/index.js +67 -22
  22. package/dist/{client-LNZTDQSA.js → client-YOOHI776.js} +4 -4
  23. package/dist/{get-my-gifts-OMGKOEPM.js → get-my-gifts-Y7EN7RK4.js} +3 -3
  24. package/dist/index.js +15 -14
  25. package/dist/{memory-AS7WKGTW.js → memory-Q6EWGK2S.js} +7 -5
  26. package/dist/memory-hook-WUXJNVT5.js +18 -0
  27. package/dist/{migrate-POHWYEIW.js → migrate-WFU6COBN.js} +5 -5
  28. package/dist/server-GYZXKIKU.js +787 -0
  29. package/dist/server-YODFBZKG.js +392 -0
  30. package/dist/setup-server-IZBUOJRU.js +215 -0
  31. package/dist/{store-GAFULOOX.js → store-7M4XV6M5.js} +6 -6
  32. package/dist/{task-dependency-resolver-3FIKQ7Z6.js → task-dependency-resolver-L6UUMTHK.js} +3 -3
  33. package/dist/{task-executor-RUTFG6VG.js → task-executor-XBNJLUCS.js} +3 -3
  34. package/dist/{tasks-BEZ4QRI2.js → tasks-WQIKXDX5.js} +1 -1
  35. package/dist/{tool-adapter-IH5VGBOO.js → tool-adapter-IVX2XQJE.js} +1 -1
  36. package/dist/{tool-index-H3SHOJC3.js → tool-index-NYH57UWP.js} +9 -6
  37. package/dist/{transcript-IMNE6KU3.js → transcript-IM7G25OS.js} +2 -2
  38. package/dist/web/assets/index-BfYCdwLI.js +80 -0
  39. package/dist/web/assets/{index-BrVqauzj.css → index-DmlyQVhR.css} +1 -1
  40. package/dist/web/assets/{index.es-DkU1GvWU.js → index.es-DitvF-9H.js} +1 -1
  41. package/dist/web/index.html +2 -2
  42. package/package.json +14 -5
  43. package/dist/chunk-XBE4JB7C.js +0 -8
  44. package/dist/web/assets/index-DYeEkvJ6.js +0 -72
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  serializeEmbedding
3
- } from "./chunk-U56QTM46.js";
3
+ } from "./chunk-HEDJCLA6.js";
4
4
  import "./chunk-VFA7QMCZ.js";
5
5
  import {
6
6
  TOOL_RAG_KEYWORD_WEIGHT,
7
7
  TOOL_RAG_MIN_SCORE,
8
8
  TOOL_RAG_VECTOR_WEIGHT
9
- } from "./chunk-IJBWWQE4.js";
9
+ } from "./chunk-C4NKJT2Z.js";
10
10
  import "./chunk-XQUHC3JZ.js";
11
11
  import "./chunk-R4YSJ4EY.js";
12
12
  import "./chunk-EYWNOHMJ.js";
13
13
  import {
14
14
  createLogger
15
- } from "./chunk-RCMD3U65.js";
15
+ } from "./chunk-NQ6FZKCE.js";
16
16
  import "./chunk-3RG5ZIWI.js";
17
17
 
18
18
  // src/agent/tools/tool-index.ts
@@ -139,7 +139,7 @@ var ToolIndex = class {
139
139
  const e = entries[i];
140
140
  insertTool.run(e.name, e.description, e.searchText);
141
141
  if (insertVec && embeddings[i]?.length > 0) {
142
- deleteVec.run(e.name);
142
+ deleteVec?.run(e.name);
143
143
  insertVec.run(e.name, serializeEmbedding(embeddings[i]));
144
144
  }
145
145
  }
@@ -227,6 +227,9 @@ var ToolIndex = class {
227
227
  }
228
228
  mergeResults(vectorResults, keywordResults, limit) {
229
229
  const byName = /* @__PURE__ */ new Map();
230
+ const hasVectorResults = vectorResults.length > 0;
231
+ const effectiveKeywordWeight = hasVectorResults ? TOOL_RAG_KEYWORD_WEIGHT : 1;
232
+ const effectiveVectorWeight = hasVectorResults ? TOOL_RAG_VECTOR_WEIGHT : 0;
230
233
  for (const r of vectorResults) {
231
234
  byName.set(r.name, { ...r, vectorScore: r.score });
232
235
  }
@@ -234,11 +237,11 @@ var ToolIndex = class {
234
237
  const existing = byName.get(r.name);
235
238
  if (existing) {
236
239
  existing.keywordScore = r.keywordScore;
237
- existing.score = TOOL_RAG_VECTOR_WEIGHT * (existing.vectorScore ?? 0) + TOOL_RAG_KEYWORD_WEIGHT * (r.keywordScore ?? 0);
240
+ existing.score = effectiveVectorWeight * (existing.vectorScore ?? 0) + effectiveKeywordWeight * (r.keywordScore ?? 0);
238
241
  } else {
239
242
  byName.set(r.name, {
240
243
  ...r,
241
- score: TOOL_RAG_KEYWORD_WEIGHT * (r.keywordScore ?? 0)
244
+ score: effectiveKeywordWeight * (r.keywordScore ?? 0)
242
245
  });
243
246
  }
244
247
  }
@@ -7,9 +7,9 @@ import {
7
7
  getTranscriptSize,
8
8
  readTranscript,
9
9
  transcriptExists
10
- } from "./chunk-P36I6OIV.js";
10
+ } from "./chunk-LC4TV3KL.js";
11
11
  import "./chunk-EYWNOHMJ.js";
12
- import "./chunk-RCMD3U65.js";
12
+ import "./chunk-NQ6FZKCE.js";
13
13
  import "./chunk-3RG5ZIWI.js";
14
14
  export {
15
15
  appendToTranscript,