@oxy-hq/sdk 2.8.0 → 2.9.1

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/shell.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import { a as AppFetcher, n as AgentRunEvent } from "./react-kHG5gkd-.cjs";
2
+ import { a as AppFetcher, n as AgentRunEvent } from "./react-DBG6Pfp_.cjs";
3
3
  import * as React from "react";
4
4
  import { ReactNode } from "react";
5
5
  //#region src/shell/AnswerChart.d.ts
package/dist/shell.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import { a as AppFetcher, n as AgentRunEvent } from "./react-kHG5gkd-.mjs";
2
+ import { a as AppFetcher, n as AgentRunEvent } from "./react-DBG6Pfp_.mjs";
3
3
  import * as React from "react";
4
4
  import { ReactNode } from "react";
5
5
  //#region src/shell/AnswerChart.d.ts
package/dist/shell.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // @oxy/sdk - TypeScript SDK for Oxy data platform
2
- import { i as useAgentRun, l as useResolvedManifest, o as useOxyApp, t as OxyAnswer, v as getOxyAppLogger } from "./react-sT7E4CbA.mjs";
2
+ import { i as useAgentRun, l as useResolvedManifest, o as useOxyApp, t as OxyAnswer, v as getOxyAppLogger } from "./react-sACIu6Ea.mjs";
3
3
  import * as React from "react";
4
4
  import { Fragment, useEffect, useMemo, useState } from "react";
5
5
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -840,14 +840,11 @@ function buildTraceSteps(events) {
840
840
  }
841
841
  break;
842
842
  case "done":
843
- case "cancelled":
844
- if (open) {
845
- settleStepItems(open);
846
- open.status = "done";
847
- open = null;
848
- }
849
- break;
850
- default: break;
843
+ case "cancelled": if (open) {
844
+ settleStepItems(open);
845
+ open.status = "done";
846
+ open = null;
847
+ }
851
848
  }
852
849
  }
853
850
  return steps;
@@ -1934,24 +1931,25 @@ function WorkspaceClock({ timezone }) {
1934
1931
  document.removeEventListener("visibilitychange", onVisible);
1935
1932
  };
1936
1933
  }, []);
1934
+ const text = useMemo(() => {
1935
+ try {
1936
+ return new Intl.DateTimeFormat(void 0, {
1937
+ timeZone: timezone,
1938
+ hour: "numeric",
1939
+ minute: "2-digit",
1940
+ timeZoneName: timezone ? "short" : void 0
1941
+ }).format(now);
1942
+ } catch {
1943
+ return new Intl.DateTimeFormat(void 0, {
1944
+ hour: "numeric",
1945
+ minute: "2-digit"
1946
+ }).format(now);
1947
+ }
1948
+ }, [now, timezone]);
1937
1949
  return /* @__PURE__ */ jsx("span", {
1938
1950
  "data-testid": "topbar-clock",
1939
1951
  className: "oxy-shell-scope oxy-clock",
1940
- children: useMemo(() => {
1941
- try {
1942
- return new Intl.DateTimeFormat(void 0, {
1943
- timeZone: timezone,
1944
- hour: "numeric",
1945
- minute: "2-digit",
1946
- timeZoneName: timezone ? "short" : void 0
1947
- }).format(now);
1948
- } catch {
1949
- return new Intl.DateTimeFormat(void 0, {
1950
- hour: "numeric",
1951
- minute: "2-digit"
1952
- }).format(now);
1953
- }
1954
- }, [now, timezone])
1952
+ children: text
1955
1953
  });
1956
1954
  }
1957
1955