reifyui 0.13.2 → 0.13.4

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/graph.cjs CHANGED
@@ -2083,7 +2083,7 @@ var fmtDur = (ms) => {
2083
2083
  if (n < 6e4) return `${(n / 1e3).toFixed(1)}s`;
2084
2084
  return `${Math.floor(n / 6e4)}m ${Math.round(n % 6e4 / 1e3)}s`;
2085
2085
  };
2086
- function ActorChip({ actor, copilotMark: copilotMark2 }) {
2086
+ function ActorChip({ actor, copilotMark }) {
2087
2087
  const copilot = actor?.kind === "copilot";
2088
2088
  if (actor?.kind === "api_key" || actor?.type === "api_key") {
2089
2089
  const keyName = actor.name || "API key";
@@ -2094,7 +2094,7 @@ function ActorChip({ actor, copilotMark: copilotMark2 }) {
2094
2094
  }
2095
2095
  const name = copilot ? "Copilot" : actor?.name || "Someone";
2096
2096
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("span", { className: "lg-actor", title: name, children: [
2097
- copilot ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "lg-actor-mark", children: copilotMark2 ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.Bot, { size: 14 }) }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "lg-actor-av", children: (name[0] || "?").toUpperCase() }),
2097
+ copilot ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "lg-actor-mark", children: copilotMark ?? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.Bot, { size: 14 }) }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "lg-actor-av", children: (name[0] || "?").toUpperCase() }),
2098
2098
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "lg-actor-name", children: name })
2099
2099
  ] });
2100
2100
  }
@@ -2126,7 +2126,7 @@ function DetailBlock({ entry }) {
2126
2126
  hasArgs ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(CodeBlock, { code: argsText, language: "json", className: "lg-json" }) : !entry.error && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "lg-detail-none", children: "No further detail for this action." })
2127
2127
  ] });
2128
2128
  }
2129
- function Row({ entry, open, onToggle }) {
2129
+ function Row({ entry, open, onToggle, copilotMark }) {
2130
2130
  const kind = opKind(entry.op, entry.status);
2131
2131
  return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "lg-row-wrap" + (open ? " open" : ""), children: [
2132
2132
  /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("button", { type: "button", className: "lg-row", onClick: onToggle, "aria-expanded": open, children: [
@@ -2151,7 +2151,7 @@ function LogsSkeleton() {
2151
2151
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "lg-skel-right", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Skeleton, { w: 90, h: 12 }) })
2152
2152
  ] }, i)) });
2153
2153
  }
2154
- function LogsPane({ graphId, client, copilotMark: copilotMark2 }) {
2154
+ function LogsPane({ graphId, client, copilotMark }) {
2155
2155
  const [entries, setEntries] = (0, import_react10.useState)([]);
2156
2156
  const [nextCursor, setNextCursor] = (0, import_react10.useState)(null);
2157
2157
  const [loading, setLoading] = (0, import_react10.useState)(true);
@@ -2236,7 +2236,7 @@ function LogsPane({ graphId, client, copilotMark: copilotMark2 }) {
2236
2236
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "big", children: q ? "No matching activity" : "No activity yet" }),
2237
2237
  /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { style: { maxWidth: 420 }, children: q ? "Nothing in this graph\u2019s history matches your search." : "Actions on this graph will appear here." })
2238
2238
  ] }) : /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_jsx_runtime7.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { className: "lg-list scroll", children: [
2239
- entries.map((e) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Row, { entry: e, open: open.has(e.id), onToggle: () => toggle(e.id) }, e.id)),
2239
+ entries.map((e) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Row, { entry: e, open: open.has(e.id), onToggle: () => toggle(e.id), copilotMark }, e.id)),
2240
2240
  nextCursor && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "lg-more", children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("button", { type: "button", className: "btn sm", onClick: loadMore, disabled: loadingMore, children: loadingMore ? "Loading\u2026" : "Load more" }) })
2241
2241
  ] }) })
2242
2242
  ] }) });