@agentstep/agent-sdk 0.5.12 → 0.5.13

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.
@@ -64,6 +64,9 @@ import {
64
64
  import {
65
65
  getAgent
66
66
  } from "./chunk-WT3SEE34.js";
67
+ import {
68
+ getConfig
69
+ } from "./chunk-WKGJQIRC.js";
67
70
  import {
68
71
  init_clock,
69
72
  nowMs
@@ -660,7 +663,8 @@ function handlePostEvents(request, sessionId) {
660
663
  const row = getSessionRow(sessionId);
661
664
  if (row) {
662
665
  const env = getEnvironment(row.environment_id);
663
- if (env?.config?.type === "self_hosted") {
666
+ const canExecuteInline = !!getConfig().defaultProvider || !!env?.config?.provider;
667
+ if (env?.config?.type === "self_hosted" && !canExecuteInline) {
664
668
  const { createWorkItem } = await import("./db/work.js");
665
669
  const { updateSessionStatus } = await import("./db/sessions.js");
666
670
  const inputsJson = JSON.stringify(appended.pendingForTurn);
@@ -3,7 +3,7 @@ import {
3
3
  executeServerSideTool,
4
4
  handleListEvents,
5
5
  handlePostEvents
6
- } from "../chunk-6X3G5SAS.js";
6
+ } from "../chunk-B4COQYOI.js";
7
7
  import "../chunk-HHS6EHSG.js";
8
8
  import "../chunk-G7Y5YGLE.js";
9
9
  import "../chunk-LOWHDHDD.js";
@@ -100,7 +100,7 @@ import {
100
100
  import {
101
101
  handleListEvents,
102
102
  handlePostEvents
103
- } from "../chunk-6X3G5SAS.js";
103
+ } from "../chunk-B4COQYOI.js";
104
104
  import "../chunk-HHS6EHSG.js";
105
105
  import {
106
106
  handleDeleteFile,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "license": "Apache-2.0",
3
3
  "name": "@agentstep/agent-sdk",
4
- "version": "0.5.12",
4
+ "version": "0.5.13",
5
5
  "description": "Core engine for AgentStep Gateway \u2014 backends, sandbox providers, session orchestration, and vault encryption.",
6
6
  "keywords": [
7
7
  "anthropic",