@impulselab/hepha 0.2.719 → 0.2.721

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
@@ -1981,7 +1981,6 @@ var HOST_TOOL_NAMES = {
1981
1981
  // turns out to be something else, and only then (see the pipeline
1982
1982
  // templates). Refused once a human has renamed the chat; never parks.
1983
1983
  RENAME_SESSION: "rename_session",
1984
- // The Implement evidence gate reads it to decide whether a recording is owed.
1985
1984
  DECLARE_USER_FLOW: "declare_user_flow",
1986
1985
  // Files an issue in Hephaistos' own Linear tracker; never parks the turn.
1987
1986
  REPORT_HARNESS_ISSUE: "report_harness_issue",
@@ -4802,10 +4801,17 @@ function isFollowStopStatus(status) {
4802
4801
 
4803
4802
  // ../../packages/realtime/src/events/session/shared/session-status-constants.ts
4804
4803
  var SESSION_SANDBOX_CAPACITY_WAIT_REASON = "No Ares machine has room for this sandbox. Waiting for capacity";
4804
+ var SESSION_ARES_OUTAGE_WAIT_REASON = "Ares is not answering. Retrying automatically";
4805
+
4806
+ // ../../packages/realtime/src/events/session/capacity/sandbox-wait-reasons-constants.ts
4807
+ var SANDBOX_WAIT_REASONS = [
4808
+ SESSION_SANDBOX_CAPACITY_WAIT_REASON,
4809
+ SESSION_ARES_OUTAGE_WAIT_REASON
4810
+ ];
4805
4811
 
4806
4812
  // ../../packages/realtime/src/events/session/capacity/is-sandbox-capacity-park.ts
4807
4813
  function isSandboxCapacityPark(input) {
4808
- return input.status === "waiting_human" && input.statusReason === SESSION_SANDBOX_CAPACITY_WAIT_REASON;
4814
+ return input.status === "waiting_human" && SANDBOX_WAIT_REASONS.some((reason) => reason === input.statusReason);
4809
4815
  }
4810
4816
 
4811
4817
  // src/lib/session/is-follow-stop-session.ts