@standardagents/builder 0.37.1 → 0.37.3
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/built-in-routes.js +8 -5
- package/dist/built-in-routes.js.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/runtime.js +7 -4
- package/dist/runtime.js.map +1 -1
- package/package.json +5 -5
package/dist/built-in-routes.js
CHANGED
|
@@ -13301,7 +13301,7 @@ var init_ThreadStateImpl = __esm({
|
|
|
13301
13301
|
const toolCallId = this._flowState?.currentToolCall?.id;
|
|
13302
13302
|
const canPark = !!(toolCallId && this._executionState && typeof instance.dispatchClientTool === "function");
|
|
13303
13303
|
const side = this._flowState?.currentSide === "b" ? "b" : "a";
|
|
13304
|
-
const mustParkForApproval =
|
|
13304
|
+
const mustParkForApproval = await this.forwardedCallNeedsApproval(request);
|
|
13305
13305
|
if (mustParkForApproval && canPark && toolCallId && typeof instance.hasBridge === "function" && await instance.hasBridge()) {
|
|
13306
13306
|
await instance.dispatchClientTool(request, toolCallId, side);
|
|
13307
13307
|
const getDelivered = instance.getDeliveredClientToolResult;
|
|
@@ -13894,14 +13894,17 @@ var init_ThreadStateImpl = __esm({
|
|
|
13894
13894
|
* dispatcher recorded in the runtime context instead.
|
|
13895
13895
|
*/
|
|
13896
13896
|
_getRuntimeEnv() {
|
|
13897
|
+
const contextEnv = this._runtimeContext.env;
|
|
13898
|
+
if (contextEnv?.AGENT_BUILDER) {
|
|
13899
|
+
return contextEnv;
|
|
13900
|
+
}
|
|
13897
13901
|
const instanceEnv = this._threadInstance.env;
|
|
13898
|
-
|
|
13899
|
-
if (!env2?.AGENT_BUILDER) {
|
|
13902
|
+
if (!instanceEnv?.AGENT_BUILDER) {
|
|
13900
13903
|
throw new Error(
|
|
13901
13904
|
"No runtime environment available on this ThreadState. Stub-backed states must be constructed with runtimeContext.env."
|
|
13902
13905
|
);
|
|
13903
13906
|
}
|
|
13904
|
-
return
|
|
13907
|
+
return instanceEnv;
|
|
13905
13908
|
}
|
|
13906
13909
|
/** The per-user hub stub for this thread's user (user-scope surfaces). */
|
|
13907
13910
|
_getUserHubStub(userId) {
|
|
@@ -67909,7 +67912,7 @@ var config_get_default = defineController2(async ({ config, env: env2, req }) =>
|
|
|
67909
67912
|
});
|
|
67910
67913
|
|
|
67911
67914
|
// src/version.ts
|
|
67912
|
-
var BUILDER_VERSION = "0.37.
|
|
67915
|
+
var BUILDER_VERSION = "0.37.3".length > 0 ? "0.37.3" : "dev";
|
|
67913
67916
|
|
|
67914
67917
|
// src/api/diagnostics.get.ts
|
|
67915
67918
|
init_LLMRequest();
|