@skilder-ai/runtime 0.5.6 → 0.5.7

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/index.js CHANGED
@@ -117809,7 +117809,7 @@ var SkillService = class SkillService2 extends Service {
117809
117809
  }
117810
117810
  if (toolConfig.__routing.type === "static") {
117811
117811
  this.logger.debug(`Handling static tool ${toolConfig.__routing.toolName} for user ${this.identity.id}`);
117812
- const { response, shouldNotify } = this.handleStaticTool(toolConfig.__routing.toolName, args);
117812
+ const { response, shouldNotify, skillIds } = this.handleStaticTool(toolConfig.__routing.toolName, args);
117813
117813
  if (shouldNotify) {
117814
117814
  this.updateExposedTools();
117815
117815
  }
@@ -117822,7 +117822,8 @@ var SkillService = class SkillService2 extends Service {
117822
117822
  from: this.identity.runtimeExecutionId,
117823
117823
  userId: this.identity.id,
117824
117824
  arguments: args,
117825
- response
117825
+ response,
117826
+ skillIds
117826
117827
  });
117827
117828
  this.logger.info(`Publishing static tool call ${toolConfig.__routing.toolName} to subject: ${message.getSubject()}`);
117828
117829
  this.natsService.publish(message);
@@ -117867,7 +117868,8 @@ var SkillService = class SkillService2 extends Service {
117867
117868
  }
117868
117869
  /**
117869
117870
  * Handle static tool calls by routing to the appropriate handler.
117870
- * Returns the response and whether the exposed tools should be updated (triggering notification).
117871
+ * Returns the response, whether the exposed tools should be updated (triggering notification),
117872
+ * and optionally the skill IDs associated with this tool call.
117871
117873
  */
117872
117874
  handleStaticTool(toolName, args) {
117873
117875
  switch (toolName) {
@@ -117959,7 +117961,8 @@ var SkillService = class SkillService2 extends Service {
117959
117961
  }
117960
117962
  return {
117961
117963
  response: { content: [{ type: "text", text: lines.join("\n") }] },
117962
- shouldNotify: hasNewTools
117964
+ shouldNotify: hasNewTools,
117965
+ skillIds: [skill.id]
117963
117966
  };
117964
117967
  }
117965
117968
  /**
@@ -118137,7 +118140,8 @@ var SkillService = class SkillService2 extends Service {
118137
118140
  }
118138
118141
  return {
118139
118142
  response: { content: [{ type: "text", text: lines.join("\n") }] },
118140
- shouldNotify: hasNewTools
118143
+ shouldNotify: hasNewTools,
118144
+ skillIds: hat.skillIds
118141
118145
  };
118142
118146
  }
118143
118147
  /**