@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,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../../rolldown-runtime-emK7D4bc.cjs");
3
- const require_ActionDevtoolsCore = require("../../ActionDevtoolsCore-DtgXwPBZ.cjs");
3
+ const require_ActionDevtoolsCore = require("../../ActionDevtoolsCore-Cb_QR44N.cjs");
4
4
  let _nice_code_util = require("@nice-code/util");
5
5
  let react = require("react");
6
6
  let react_jsx_runtime = require("react/jsx-runtime");
@@ -4288,7 +4288,7 @@ function DomainChip({ compact = false, subtle = false, domain, allDomains, size
4288
4288
  //#endregion
4289
4289
  //#region src/devtools/browser/components/HandlerChips.tsx
4290
4290
  function getExternalLabel(hop) {
4291
- if (hop.handlerType !== "external") return null;
4291
+ if (hop.handlerType !== "peer") return null;
4292
4292
  return hop.handlerClient != null ? `${hop.transport ?? "ext"} → ${hop.handlerClient.envId}` : `→ ${hop.transport ?? "ext"}`;
4293
4293
  }
4294
4294
  /**
@@ -4303,7 +4303,7 @@ function getTransportTooltip(hop) {
4303
4303
  * grouped child-dispatch chip that accumulates several transports for the same runtime).
4304
4304
  */
4305
4305
  function getTransportTooltipForHops(hops) {
4306
- const lines = hops.filter((hop) => hop.handlerType === "external").map((hop) => ({
4306
+ const lines = hops.filter((hop) => hop.handlerType === "peer").map((hop) => ({
4307
4307
  summary: hop.transportSummary,
4308
4308
  url: hop.transportUrl
4309
4309
  })).filter((line) => line.summary != null || line.url != null);
@@ -5036,7 +5036,7 @@ function ActionDetailPanel({ entry, parent, childEntries, onSelectEntry }) {
5036
5036
  const result = [];
5037
5037
  for (const child of childEntries) {
5038
5038
  const firstHop = child.meta.routing[0];
5039
- if (firstHop == null || firstHop.handlerType !== "external") continue;
5039
+ if (firstHop == null || firstHop.handlerType !== "peer") continue;
5040
5040
  const key = `${firstHop.handlerClient?.envId ?? ""}:${firstHop.transport ?? ""}`;
5041
5041
  if (seen.has(key)) continue;
5042
5042
  seen.add(key);
@@ -5339,7 +5339,7 @@ function ActionEntryRow({ entry, isSelected, onClick, isLatest = false, latestTi
5339
5339
  const timestamp = formatTimestamp(entry.startTime);
5340
5340
  const hasGroup = groupEntries != null && groupEntries.length > 1;
5341
5341
  const inboundOrigin = getInboundOrigin(entry);
5342
- const externalChildEntries = childEntries?.filter((child) => child.meta.routing[0]?.handlerType === "external") ?? [];
5342
+ const externalChildEntries = childEntries?.filter((child) => child.meta.routing[0]?.handlerType === "peer") ?? [];
5343
5343
  const nonIoBreakReasons = breakReasons?.filter((r) => r !== "new_input" && r !== "new_output") ?? [];
5344
5344
  const hasBottomError = entry.error != null || entry.abortReason != null;
5345
5345
  const hasBottomContent = externalChildEntries.length > 0 || nonIoBreakReasons.length > 0;