@nice-code/action 0.14.0 → 0.16.0

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.
Files changed (34) hide show
  1. package/README.md +582 -582
  2. package/build/{ActionDevtoolsCore-CCRLYASa.d.cts → ActionDevtoolsCore-B3JwSaRH.d.cts} +3 -3
  3. package/build/{ActionDevtoolsCore-9PsnscvK.mjs → ActionDevtoolsCore-BcItqP-C.mjs} +7 -7
  4. package/build/ActionDevtoolsCore-BcItqP-C.mjs.map +1 -0
  5. package/build/{ActionDevtoolsCore-CYGD2o6C.d.mts → ActionDevtoolsCore-C4TDUY7-.d.mts} +3 -3
  6. package/build/{ActionDevtoolsCore-DtgXwPBZ.cjs → ActionDevtoolsCore-Cb_QR44N.cjs} +7 -7
  7. package/build/ActionDevtoolsCore-Cb_QR44N.cjs.map +1 -0
  8. package/build/{ActionPayload.types-BN-rXFBK.d.cts → ActionPayload.types-CO_hXlBc.d.cts} +1452 -941
  9. package/build/{ActionPayload.types-D28ELKXC.d.mts → ActionPayload.types-fieMKAgt.d.mts} +1452 -941
  10. package/build/devtools/browser/index.cjs +5 -5
  11. package/build/devtools/browser/index.cjs.map +1 -1
  12. package/build/devtools/browser/index.d.cts +1 -1
  13. package/build/devtools/browser/index.d.mts +1 -1
  14. package/build/devtools/browser/index.mjs +5 -5
  15. package/build/devtools/browser/index.mjs.map +1 -1
  16. package/build/devtools/server/index.cjs +1 -1
  17. package/build/devtools/server/index.cjs.map +1 -1
  18. package/build/devtools/server/index.d.cts +1 -1
  19. package/build/devtools/server/index.d.mts +1 -1
  20. package/build/devtools/server/index.mjs +1 -1
  21. package/build/devtools/server/index.mjs.map +1 -1
  22. package/build/index.cjs +2733 -1963
  23. package/build/index.cjs.map +1 -1
  24. package/build/index.d.cts +2 -2
  25. package/build/index.d.mts +2 -2
  26. package/build/index.mjs +2706 -1950
  27. package/build/index.mjs.map +1 -1
  28. package/build/react-query/index.cjs.map +1 -1
  29. package/build/react-query/index.d.cts +1 -1
  30. package/build/react-query/index.d.mts +1 -1
  31. package/build/react-query/index.mjs.map +1 -1
  32. package/package.json +4 -4
  33. package/build/ActionDevtoolsCore-9PsnscvK.mjs.map +0 -1
  34. package/build/ActionDevtoolsCore-DtgXwPBZ.cjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { a as TDevtoolsActionStatus, i as IDevtoolsObservableDomain, n as IActionDevtoolsCoreOptions, o as TDevtoolsListener, r as IDevtoolsActionEntry, s as TDevtoolsPosition, t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-CCRLYASa.cjs";
1
+ import { a as TDevtoolsActionStatus, i as IDevtoolsObservableDomain, n as IActionDevtoolsCoreOptions, o as TDevtoolsListener, r as IDevtoolsActionEntry, s as TDevtoolsPosition, t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-B3JwSaRH.cjs";
2
2
 
3
3
  //#region src/devtools/browser/NiceActionDevtools.d.ts
4
4
  interface INiceActionDevtoolsProps {
@@ -1,4 +1,4 @@
1
- import { a as TDevtoolsActionStatus, i as IDevtoolsObservableDomain, n as IActionDevtoolsCoreOptions, o as TDevtoolsListener, r as IDevtoolsActionEntry, s as TDevtoolsPosition, t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-CYGD2o6C.mjs";
1
+ import { a as TDevtoolsActionStatus, i as IDevtoolsObservableDomain, n as IActionDevtoolsCoreOptions, o as TDevtoolsListener, r as IDevtoolsActionEntry, s as TDevtoolsPosition, t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-C4TDUY7-.mjs";
2
2
 
3
3
  //#region src/devtools/browser/NiceActionDevtools.d.ts
4
4
  interface INiceActionDevtoolsProps {
@@ -1,4 +1,4 @@
1
- import { t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-9PsnscvK.mjs";
1
+ import { t as ActionDevtoolsCore } from "../../ActionDevtoolsCore-BcItqP-C.mjs";
2
2
  import { createTypedWebLocalStorage } from "@nice-code/util";
3
3
  import { Fragment, useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
4
4
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -4289,7 +4289,7 @@ function DomainChip({ compact = false, subtle = false, domain, allDomains, size
4289
4289
  //#endregion
4290
4290
  //#region src/devtools/browser/components/HandlerChips.tsx
4291
4291
  function getExternalLabel(hop) {
4292
- if (hop.handlerType !== "external") return null;
4292
+ if (hop.handlerType !== "peer") return null;
4293
4293
  return hop.handlerClient != null ? `${hop.transport ?? "ext"} → ${hop.handlerClient.envId}` : `→ ${hop.transport ?? "ext"}`;
4294
4294
  }
4295
4295
  /**
@@ -4304,7 +4304,7 @@ function getTransportTooltip(hop) {
4304
4304
  * grouped child-dispatch chip that accumulates several transports for the same runtime).
4305
4305
  */
4306
4306
  function getTransportTooltipForHops(hops) {
4307
- const lines = hops.filter((hop) => hop.handlerType === "external").map((hop) => ({
4307
+ const lines = hops.filter((hop) => hop.handlerType === "peer").map((hop) => ({
4308
4308
  summary: hop.transportSummary,
4309
4309
  url: hop.transportUrl
4310
4310
  })).filter((line) => line.summary != null || line.url != null);
@@ -5037,7 +5037,7 @@ function ActionDetailPanel({ entry, parent, childEntries, onSelectEntry }) {
5037
5037
  const result = [];
5038
5038
  for (const child of childEntries) {
5039
5039
  const firstHop = child.meta.routing[0];
5040
- if (firstHop == null || firstHop.handlerType !== "external") continue;
5040
+ if (firstHop == null || firstHop.handlerType !== "peer") continue;
5041
5041
  const key = `${firstHop.handlerClient?.envId ?? ""}:${firstHop.transport ?? ""}`;
5042
5042
  if (seen.has(key)) continue;
5043
5043
  seen.add(key);
@@ -5340,7 +5340,7 @@ function ActionEntryRow({ entry, isSelected, onClick, isLatest = false, latestTi
5340
5340
  const timestamp = formatTimestamp(entry.startTime);
5341
5341
  const hasGroup = groupEntries != null && groupEntries.length > 1;
5342
5342
  const inboundOrigin = getInboundOrigin(entry);
5343
- const externalChildEntries = childEntries?.filter((child) => child.meta.routing[0]?.handlerType === "external") ?? [];
5343
+ const externalChildEntries = childEntries?.filter((child) => child.meta.routing[0]?.handlerType === "peer") ?? [];
5344
5344
  const nonIoBreakReasons = breakReasons?.filter((r) => r !== "new_input" && r !== "new_output") ?? [];
5345
5345
  const hasBottomError = entry.error != null || entry.abortReason != null;
5346
5346
  const hasBottomContent = externalChildEntries.length > 0 || nonIoBreakReasons.length > 0;