@theokit/agents 0.37.0 → 0.38.0

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/bridge.js CHANGED
@@ -46,7 +46,7 @@ import {
46
46
  translateToUIMessageStream,
47
47
  validateUniqueRoutes,
48
48
  walkAgentMetadata
49
- } from "./chunk-AG4WA4I4.js";
49
+ } from "./chunk-YRVPQ6QC.js";
50
50
  import "./chunk-B24BAVE6.js";
51
51
  import "./chunk-7QVYU63E.js";
52
52
  export {
@@ -999,7 +999,10 @@ async function loadSdkRuntime() {
999
999
  Agent: sdk.Agent,
1000
1000
  defineTool: sdk.defineTool,
1001
1001
  InMemoryConversationStorage: InMemory,
1002
- FileSystemConversationStorage: "FileSystemConversationStorage" in sdk ? sdk.FileSystemConversationStorage : InMemory
1002
+ FileSystemConversationStorage: "FileSystemConversationStorage" in sdk ? sdk.FileSystemConversationStorage : InMemory,
1003
+ ..."defineSkillReadTool" in sdk ? {
1004
+ defineSkillReadTool: sdk.defineSkillReadTool
1005
+ } : {}
1003
1006
  };
1004
1007
  } catch (err) {
1005
1008
  console.warn("[theokit] @theokit/sdk import failed:", err);
@@ -1197,6 +1200,10 @@ function createSdkAgentStream(compiled, compiledTools, apiKey, overrides = {}) {
1197
1200
  }
1198
1201
  const { InMemoryConversationStorage, FileSystemConversationStorage } = rt;
1199
1202
  const sdkTools = buildSdkTools(compiledTools, rt.defineTool, overrides.sdkTools, runContext);
1203
+ const inlineSkills = compiled.skills?.inline;
1204
+ if (inlineSkills !== void 0 && inlineSkills.length > 0 && rt.defineSkillReadTool !== void 0 && !compiledTools.some((t) => t.name === "skill_read")) {
1205
+ sdkTools.push(rt.defineSkillReadTool(inlineSkills));
1206
+ }
1200
1207
  let runContextSource;
1201
1208
  if (overrides.runContext !== void 0) {
1202
1209
  runContextSource = "per-run";
@@ -2976,4 +2983,4 @@ export {
2976
2983
  generateAgentManifest,
2977
2984
  agentsPlugin
2978
2985
  };
2979
- //# sourceMappingURL=chunk-AG4WA4I4.js.map
2986
+ //# sourceMappingURL=chunk-YRVPQ6QC.js.map