stable-harness 0.0.62 → 0.0.63

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.
@@ -1 +1 @@
1
- export function resolveToolCallRecoveryPolicy(e){const o=e.workspace.runtime;if(!function shouldDefaultToolCallRecovery(e){if(0===e.agent.tools.length)return!1;const o=e.agent.modelRef?e.workspace.models.get(e.agent.modelRef):void 0;return"openai-compatible"===o?.provider||"openai-compatible"===readString(o?.config?.toolCallingMode)||"structured"===readString(o?.config?.toolCallingMode)}(e)||function hasExplicitToolCallRecovery(e){const o=readRecord(e.recovery);return"boolean"==typeof readRecord(o.toolCall).enabled}(o))return o;const r=readRecord(o.recovery),t=readRecord(r.toolCall);return{...o,recovery:{...r,toolCall:{...t,enabled:!0,defaultedForStructuredToolCalling:!0}}}}function readRecord(e){return"object"!=typeof e||null===e||Array.isArray(e)?{}:e}function readString(e){return"string"==typeof e&&e.trim()?e.trim():void 0}
1
+ export function resolveToolCallRecoveryPolicy(e){const o=e.workspace.runtime;if(!function shouldDefaultToolCallRecovery(e){if(0===e.agent.tools.length)return!1;const o=e.agent.modelRef?e.workspace.models.get(e.agent.modelRef):void 0;return"openai-compatible"===o?.provider||"openai-compatible"===readString(o?.config?.toolCallingMode)||"structured"===readString(o?.config?.toolCallingMode)||function hasDirectBackendModel(e){const o=readRecord(e.config);return void 0!==readRecord(o.deepagents).model}(e.agent)}(e)||function hasExplicitToolCallRecovery(e){const o=readRecord(e.recovery);return"boolean"==typeof readRecord(o.toolCall).enabled}(o))return o;const r=readRecord(o.recovery),t=readRecord(r.toolCall);return{...o,recovery:{...r,toolCall:{...t,enabled:!0,defaultedForStructuredToolCalling:!0}}}}function readRecord(e){return"object"!=typeof e||null===e||Array.isArray(e)?{}:e}function readString(e){return"string"==typeof e&&e.trim()?e.trim():void 0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stable-harness",
3
- "version": "0.0.62",
3
+ "version": "0.0.63",
4
4
  "type": "module",
5
5
  "description": "Stable application runtime and operator control plane for agent workspaces.",
6
6
  "license": "Apache-2.0",
@@ -1 +1 @@
1
- export function resolveToolCallRecoveryPolicy(e){const o=e.workspace.runtime;if(!function shouldDefaultToolCallRecovery(e){if(0===e.agent.tools.length)return!1;const o=e.agent.modelRef?e.workspace.models.get(e.agent.modelRef):void 0;return"openai-compatible"===o?.provider||"openai-compatible"===readString(o?.config?.toolCallingMode)||"structured"===readString(o?.config?.toolCallingMode)}(e)||function hasExplicitToolCallRecovery(e){const o=readRecord(e.recovery);return"boolean"==typeof readRecord(o.toolCall).enabled}(o))return o;const r=readRecord(o.recovery),t=readRecord(r.toolCall);return{...o,recovery:{...r,toolCall:{...t,enabled:!0,defaultedForStructuredToolCalling:!0}}}}function readRecord(e){return"object"!=typeof e||null===e||Array.isArray(e)?{}:e}function readString(e){return"string"==typeof e&&e.trim()?e.trim():void 0}
1
+ export function resolveToolCallRecoveryPolicy(e){const o=e.workspace.runtime;if(!function shouldDefaultToolCallRecovery(e){if(0===e.agent.tools.length)return!1;const o=e.agent.modelRef?e.workspace.models.get(e.agent.modelRef):void 0;return"openai-compatible"===o?.provider||"openai-compatible"===readString(o?.config?.toolCallingMode)||"structured"===readString(o?.config?.toolCallingMode)||function hasDirectBackendModel(e){const o=readRecord(e.config);return void 0!==readRecord(o.deepagents).model}(e.agent)}(e)||function hasExplicitToolCallRecovery(e){const o=readRecord(e.recovery);return"boolean"==typeof readRecord(o.toolCall).enabled}(o))return o;const r=readRecord(o.recovery),t=readRecord(r.toolCall);return{...o,recovery:{...r,toolCall:{...t,enabled:!0,defaultedForStructuredToolCalling:!0}}}}function readRecord(e){return"object"!=typeof e||null===e||Array.isArray(e)?{}:e}function readString(e){return"string"==typeof e&&e.trim()?e.trim():void 0}