@reopt-ai/opt-devtool 1.0.1 → 1.0.2

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 (41) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +4 -2
  3. package/dist/brandapp/index.cjs +11 -8
  4. package/dist/brandapp/index.d.cts +14 -17
  5. package/dist/brandapp/index.d.ts +14 -17
  6. package/dist/brandapp/index.js +11 -8
  7. package/dist/datagrid/index.cjs +5 -5
  8. package/dist/datagrid/index.d.cts +3 -6
  9. package/dist/datagrid/index.d.ts +3 -6
  10. package/dist/datagrid/index.js +5 -5
  11. package/dist/editor/index.cjs +5 -5
  12. package/dist/editor/index.d.cts +3 -6
  13. package/dist/editor/index.d.ts +3 -6
  14. package/dist/editor/index.js +5 -5
  15. package/dist/harness/index.cjs +1 -1
  16. package/dist/harness/index.d.cts +6 -8
  17. package/dist/harness/index.d.ts +6 -8
  18. package/dist/harness/index.js +1 -2
  19. package/dist/{harness-DU8hP98g.js → harness-CJZXBH3w.js} +15 -23
  20. package/dist/{harness-CoRqiJWO.cjs → harness-CPOp9Wlj.cjs} +21 -23
  21. package/dist/index.cjs +46 -80
  22. package/dist/index.d.cts +7 -13
  23. package/dist/index.d.ts +7 -13
  24. package/dist/index.js +44 -78
  25. package/dist/{provider-Bn7CAE_Y.js → provider-Cjg2rSYG.js} +6 -12
  26. package/dist/{provider-CLRiXjfD.cjs → provider-H53ZWHCo.cjs} +8 -15
  27. package/dist/theme/index.cjs +9 -7
  28. package/dist/theme/index.d.cts +5 -8
  29. package/dist/theme/index.d.ts +5 -8
  30. package/dist/theme/index.js +9 -7
  31. package/dist/{theme-isolate-F-oX2d4W.js → theme-isolate-BOo3J259.js} +2 -3
  32. package/dist/{theme-isolate-DgSS935z.cjs → theme-isolate-D9AMkYrD.cjs} +2 -3
  33. package/dist/{types-DvhcaPXA.js → types-BKmW0EBr.js} +1 -2
  34. package/dist/{types-B_abMm2B.cjs → types-Bz4DijhU.cjs} +1 -2
  35. package/dist/{types-oHbLkgEH.d.ts → types-D_lNT2Nr.d.cts} +0 -4
  36. package/dist/{types-oHbLkgEH.d.cts → types-D_lNT2Nr.d.ts} +0 -4
  37. package/dist/ui/index.cjs +1 -1
  38. package/dist/ui/index.d.cts +1 -1
  39. package/dist/ui/index.d.ts +1 -1
  40. package/dist/ui/index.js +1 -2
  41. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -7,6 +7,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.0.2] - 2026-11-28
11
+
12
+ ### Changed
13
+
14
+ - The root entry no longer imports `@reopt-ai/opt-shell` values.
15
+ `SHELL_SNAPSHOT_EVENT` / `SHELL_THEME_EVENT` are mirrored as literals (with a
16
+ parity test against opt-shell), so `@reopt-ai/opt-devtool` resolves without
17
+ the optional opt-shell peer installed. Type-only imports remain.
18
+
19
+ ## [1.0.1] - 2026-07-29
20
+
21
+ ### Changed
22
+
23
+ - Tidied the header controls and package boundaries, and moved the published
24
+ artifacts onto tsdown.
25
+
26
+ ## [0.1.1] - 2026-06-13
27
+
28
+ ### Changed
29
+
30
+ - Follow the `opt-harness` to `opt-shell` rebrand.
31
+
10
32
  ## [1.0.0] - 2026-07-12
11
33
 
12
34
  ### Changed
package/README.md CHANGED
@@ -152,5 +152,7 @@ Available `OptDevtoolConfig` flags: `visible`, `showGuide`, `showTabOrder`,
152
152
  - Reads private React Fiber expando keys (`__reactFiber$`,
153
153
  `__reactInternalInstance$`, `__reactContainer$`) to surface component
154
154
  ancestry. Wrapped in try/catch so failures degrade silently.
155
- - The legacy `opt-ui-helper-configure` event is still accepted for backward
156
- compatibility but is deprecated and will be removed in 0.3.0.
155
+ - The legacy `opt-ui-helper-configure` event (opt-ui `UIDebugger`'s
156
+ `OPT_UI_HELPER_CONFIGURE_EVENT`, public through opt-ui 1.2.x) is still
157
+ accepted for backward compatibility. It is deprecated and will be removed in
158
+ the next major (2.0.0).
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  "use client";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_provider = require("../provider-CLRiXjfD.cjs");
4
+ const require_provider = require("../provider-H53ZWHCo.cjs");
5
5
  let react = require("react");
6
6
  react = require_provider.__toESM(react, 1);
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
- //#region src/brandapp/index.tsx
8
+ // src/brandapp/index.tsx
9
9
  const STATUS_STYLES = {
10
10
  connected: "bg-emerald-400",
11
11
  configured: "bg-blue-400",
@@ -113,13 +113,14 @@ function CollapsibleGroup({ title, trailing, defaultOpen = true, children }) {
113
113
  function SummaryPanel({ snapshot }) {
114
114
  const requiredEnv = getBrandappRequiredEnvSummary(snapshot.env);
115
115
  const status = getBrandappSnapshotStatus(snapshot);
116
+ const statusText = statusLabel(status);
116
117
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
117
118
  className: "rounded-lg bg-white/[0.05] px-2.5 py-2",
118
119
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
119
120
  className: "flex items-center justify-between gap-2",
120
121
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatusDot, {
121
122
  status,
122
- label: `Brandapp ${statusLabel(status)}`
123
+ label: `Brandapp ${statusText}`
123
124
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
124
125
  className: "rounded bg-black/20 px-1.5 py-0.5 font-mono text-[9px] text-white/55",
125
126
  children: [
@@ -176,6 +177,7 @@ function EnvList({ env }) {
176
177
  children: ["Missing required env: ", requiredEnv.missing.join(", ")]
177
178
  }) : null, env.map((item) => {
178
179
  var _ref, _item$maskedValue;
180
+ const status = item.present ? "configured" : item.required ? "missing" : "unknown";
179
181
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
180
182
  className: "grid grid-cols-[minmax(0,1fr)_minmax(4.5rem,auto)] gap-1 rounded-md bg-white/[0.035] px-2 py-1",
181
183
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
@@ -183,7 +185,7 @@ function EnvList({ env }) {
183
185
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
184
186
  className: "flex min-w-0 items-center gap-1.5",
185
187
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatusDot, {
186
- status: item.present ? "configured" : item.required ? "missing" : "unknown",
188
+ status,
187
189
  label: item.name
188
190
  }), item.required ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
189
191
  className: "rounded bg-amber-400/12 px-1 py-0.5 text-[8px] text-amber-300",
@@ -210,6 +212,7 @@ function RouteList({ routes }) {
210
212
  className: "flex flex-col gap-1",
211
213
  children: routes.map((route) => {
212
214
  var _route$status, _route$method, _route$method2;
215
+ const status = (_route$status = route.status) !== null && _route$status !== void 0 ? _route$status : "unknown";
213
216
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
214
217
  className: "min-w-0 rounded-md bg-white/[0.035] px-2 py-1",
215
218
  children: [
@@ -218,7 +221,7 @@ function RouteList({ routes }) {
218
221
  children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
219
222
  className: "min-w-0 truncate",
220
223
  children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(StatusDot, {
221
- status: (_route$status = route.status) !== null && _route$status !== void 0 ? _route$status : "unknown",
224
+ status,
222
225
  label: (_route$method2 = route.method) !== null && _route$method2 !== void 0 ? _route$method2 : "GET"
223
226
  })
224
227
  }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
@@ -459,7 +462,7 @@ function useBrandappDevtoolBridge({ id, label, order = 10, snapshot: controlledS
459
462
  const clear = react.useCallback(() => {
460
463
  if (!isControlled) setUncontrolledSnapshot(null);
461
464
  }, [isControlled]);
462
- require_provider.useOptDevtoolPlugin(react.useMemo(() => ({
465
+ const plugin = react.useMemo(() => ({
463
466
  id,
464
467
  label,
465
468
  order,
@@ -470,13 +473,13 @@ function useBrandappDevtoolBridge({ id, label, order = 10, snapshot: controlledS
470
473
  label,
471
474
  order,
472
475
  snapshot
473
- ]));
476
+ ]);
477
+ require_provider.useOptDevtoolPlugin(plugin);
474
478
  return {
475
479
  inspect,
476
480
  clear
477
481
  };
478
482
  }
479
- //#endregion
480
483
  exports.getBrandappRequiredEnvSummary = getBrandappRequiredEnvSummary;
481
484
  exports.getBrandappSnapshotStatus = getBrandappSnapshotStatus;
482
485
  exports.useBrandappDevtoolBridge = useBrandappDevtoolBridge;
@@ -1,7 +1,6 @@
1
1
 
2
- //#region src/brandapp/index.d.ts
3
- type BrandappDevtoolStatus = "connected" | "configured" | "missing" | "warning" | "error" | "unknown";
4
- interface BrandappDevtoolEnvVar {
2
+ export type BrandappDevtoolStatus = "connected" | "configured" | "missing" | "warning" | "error" | "unknown";
3
+ export interface BrandappDevtoolEnvVar {
5
4
  name: string;
6
5
  present: boolean;
7
6
  required?: boolean;
@@ -9,13 +8,13 @@ interface BrandappDevtoolEnvVar {
9
8
  maskedValue?: string;
10
9
  note?: string;
11
10
  }
12
- interface BrandappDevtoolFeature {
11
+ export interface BrandappDevtoolFeature {
13
12
  id: string;
14
13
  label: string;
15
14
  status: BrandappDevtoolStatus;
16
15
  detail?: string;
17
16
  }
18
- interface BrandappDevtoolRoute {
17
+ export interface BrandappDevtoolRoute {
19
18
  path: string;
20
19
  method?: string;
21
20
  status?: BrandappDevtoolStatus;
@@ -24,7 +23,7 @@ interface BrandappDevtoolRoute {
24
23
  description?: string;
25
24
  lastCheckedAt?: string | number;
26
25
  }
27
- interface BrandappDevtoolEavEntity {
26
+ export interface BrandappDevtoolEavEntity {
28
27
  id: string;
29
28
  name?: string;
30
29
  label?: string;
@@ -32,14 +31,14 @@ interface BrandappDevtoolEavEntity {
32
31
  recordCount?: number;
33
32
  synced?: boolean;
34
33
  }
35
- interface BrandappDevtoolEavState {
34
+ export interface BrandappDevtoolEavState {
36
35
  status?: BrandappDevtoolStatus;
37
36
  schemaHash?: string;
38
37
  lockfileHash?: string;
39
38
  lastSyncAt?: string | number;
40
39
  entities?: BrandappDevtoolEavEntity[];
41
40
  }
42
- interface BrandappDevtoolAuthState {
41
+ export interface BrandappDevtoolAuthState {
43
42
  status?: BrandappDevtoolStatus;
44
43
  provider?: string;
45
44
  session?: "authenticated" | "anonymous" | "loading" | "unknown";
@@ -47,14 +46,14 @@ interface BrandappDevtoolAuthState {
47
46
  organizationId?: string;
48
47
  callbackPath?: string;
49
48
  }
50
- interface BrandappDevtoolAiState {
49
+ export interface BrandappDevtoolAiState {
51
50
  status?: BrandappDevtoolStatus;
52
51
  routePath?: string;
53
52
  defaultModel?: string;
54
53
  models?: string[];
55
54
  creditBalance?: number;
56
55
  }
57
- interface BrandappDevtoolSnapshot {
56
+ export interface BrandappDevtoolSnapshot {
58
57
  brandappId?: string | null;
59
58
  clientId?: string | null;
60
59
  sdkVersion?: string | null;
@@ -69,7 +68,7 @@ interface BrandappDevtoolSnapshot {
69
68
  routes?: BrandappDevtoolRoute[];
70
69
  notes?: string[];
71
70
  }
72
- interface UseBrandappDevtoolBridgeOptions {
71
+ export interface UseBrandappDevtoolBridgeOptions {
73
72
  id: string;
74
73
  label: string;
75
74
  order?: number;
@@ -79,19 +78,17 @@ interface UseBrandappDevtoolBridgeOptions {
79
78
  */
80
79
  snapshot?: BrandappDevtoolSnapshot | null;
81
80
  }
82
- interface RegisteredBrandappDevtoolBridge {
81
+ export interface RegisteredBrandappDevtoolBridge {
83
82
  inspect: (snapshot: BrandappDevtoolSnapshot) => void;
84
83
  clear: () => void;
85
84
  }
86
85
  /** Summarize required Brandapp env vars for status badges and diagnostics. */
87
- declare function getBrandappRequiredEnvSummary(env: readonly BrandappDevtoolEnvVar[] | undefined): {
86
+ export declare function getBrandappRequiredEnvSummary(env: readonly BrandappDevtoolEnvVar[] | undefined): {
88
87
  total: number;
89
88
  present: number;
90
89
  missing: string[];
91
90
  };
92
91
  /** Resolve the top-level Brandapp snapshot status from all reported signals. */
93
- declare function getBrandappSnapshotStatus(snapshot: BrandappDevtoolSnapshot): BrandappDevtoolStatus;
92
+ export declare function getBrandappSnapshotStatus(snapshot: BrandappDevtoolSnapshot): BrandappDevtoolStatus;
94
93
  /** Register a Brandapp SDK integration panel in opt-devtool. */
95
- declare function useBrandappDevtoolBridge({ id, label, order, snapshot: controlledSnapshot }: UseBrandappDevtoolBridgeOptions): RegisteredBrandappDevtoolBridge;
96
- //#endregion
97
- export { BrandappDevtoolAiState, BrandappDevtoolAuthState, BrandappDevtoolEavEntity, BrandappDevtoolEavState, BrandappDevtoolEnvVar, BrandappDevtoolFeature, BrandappDevtoolRoute, BrandappDevtoolSnapshot, BrandappDevtoolStatus, RegisteredBrandappDevtoolBridge, UseBrandappDevtoolBridgeOptions, getBrandappRequiredEnvSummary, getBrandappSnapshotStatus, useBrandappDevtoolBridge };
94
+ export declare function useBrandappDevtoolBridge({ id, label, order, snapshot: controlledSnapshot }: UseBrandappDevtoolBridgeOptions): RegisteredBrandappDevtoolBridge;
@@ -1,7 +1,6 @@
1
1
 
2
- //#region src/brandapp/index.d.ts
3
- type BrandappDevtoolStatus = "connected" | "configured" | "missing" | "warning" | "error" | "unknown";
4
- interface BrandappDevtoolEnvVar {
2
+ export type BrandappDevtoolStatus = "connected" | "configured" | "missing" | "warning" | "error" | "unknown";
3
+ export interface BrandappDevtoolEnvVar {
5
4
  name: string;
6
5
  present: boolean;
7
6
  required?: boolean;
@@ -9,13 +8,13 @@ interface BrandappDevtoolEnvVar {
9
8
  maskedValue?: string;
10
9
  note?: string;
11
10
  }
12
- interface BrandappDevtoolFeature {
11
+ export interface BrandappDevtoolFeature {
13
12
  id: string;
14
13
  label: string;
15
14
  status: BrandappDevtoolStatus;
16
15
  detail?: string;
17
16
  }
18
- interface BrandappDevtoolRoute {
17
+ export interface BrandappDevtoolRoute {
19
18
  path: string;
20
19
  method?: string;
21
20
  status?: BrandappDevtoolStatus;
@@ -24,7 +23,7 @@ interface BrandappDevtoolRoute {
24
23
  description?: string;
25
24
  lastCheckedAt?: string | number;
26
25
  }
27
- interface BrandappDevtoolEavEntity {
26
+ export interface BrandappDevtoolEavEntity {
28
27
  id: string;
29
28
  name?: string;
30
29
  label?: string;
@@ -32,14 +31,14 @@ interface BrandappDevtoolEavEntity {
32
31
  recordCount?: number;
33
32
  synced?: boolean;
34
33
  }
35
- interface BrandappDevtoolEavState {
34
+ export interface BrandappDevtoolEavState {
36
35
  status?: BrandappDevtoolStatus;
37
36
  schemaHash?: string;
38
37
  lockfileHash?: string;
39
38
  lastSyncAt?: string | number;
40
39
  entities?: BrandappDevtoolEavEntity[];
41
40
  }
42
- interface BrandappDevtoolAuthState {
41
+ export interface BrandappDevtoolAuthState {
43
42
  status?: BrandappDevtoolStatus;
44
43
  provider?: string;
45
44
  session?: "authenticated" | "anonymous" | "loading" | "unknown";
@@ -47,14 +46,14 @@ interface BrandappDevtoolAuthState {
47
46
  organizationId?: string;
48
47
  callbackPath?: string;
49
48
  }
50
- interface BrandappDevtoolAiState {
49
+ export interface BrandappDevtoolAiState {
51
50
  status?: BrandappDevtoolStatus;
52
51
  routePath?: string;
53
52
  defaultModel?: string;
54
53
  models?: string[];
55
54
  creditBalance?: number;
56
55
  }
57
- interface BrandappDevtoolSnapshot {
56
+ export interface BrandappDevtoolSnapshot {
58
57
  brandappId?: string | null;
59
58
  clientId?: string | null;
60
59
  sdkVersion?: string | null;
@@ -69,7 +68,7 @@ interface BrandappDevtoolSnapshot {
69
68
  routes?: BrandappDevtoolRoute[];
70
69
  notes?: string[];
71
70
  }
72
- interface UseBrandappDevtoolBridgeOptions {
71
+ export interface UseBrandappDevtoolBridgeOptions {
73
72
  id: string;
74
73
  label: string;
75
74
  order?: number;
@@ -79,19 +78,17 @@ interface UseBrandappDevtoolBridgeOptions {
79
78
  */
80
79
  snapshot?: BrandappDevtoolSnapshot | null;
81
80
  }
82
- interface RegisteredBrandappDevtoolBridge {
81
+ export interface RegisteredBrandappDevtoolBridge {
83
82
  inspect: (snapshot: BrandappDevtoolSnapshot) => void;
84
83
  clear: () => void;
85
84
  }
86
85
  /** Summarize required Brandapp env vars for status badges and diagnostics. */
87
- declare function getBrandappRequiredEnvSummary(env: readonly BrandappDevtoolEnvVar[] | undefined): {
86
+ export declare function getBrandappRequiredEnvSummary(env: readonly BrandappDevtoolEnvVar[] | undefined): {
88
87
  total: number;
89
88
  present: number;
90
89
  missing: string[];
91
90
  };
92
91
  /** Resolve the top-level Brandapp snapshot status from all reported signals. */
93
- declare function getBrandappSnapshotStatus(snapshot: BrandappDevtoolSnapshot): BrandappDevtoolStatus;
92
+ export declare function getBrandappSnapshotStatus(snapshot: BrandappDevtoolSnapshot): BrandappDevtoolStatus;
94
93
  /** Register a Brandapp SDK integration panel in opt-devtool. */
95
- declare function useBrandappDevtoolBridge({ id, label, order, snapshot: controlledSnapshot }: UseBrandappDevtoolBridgeOptions): RegisteredBrandappDevtoolBridge;
96
- //#endregion
97
- export { BrandappDevtoolAiState, BrandappDevtoolAuthState, BrandappDevtoolEavEntity, BrandappDevtoolEavState, BrandappDevtoolEnvVar, BrandappDevtoolFeature, BrandappDevtoolRoute, BrandappDevtoolSnapshot, BrandappDevtoolStatus, RegisteredBrandappDevtoolBridge, UseBrandappDevtoolBridgeOptions, getBrandappRequiredEnvSummary, getBrandappSnapshotStatus, useBrandappDevtoolBridge };
94
+ export declare function useBrandappDevtoolBridge({ id, label, order, snapshot: controlledSnapshot }: UseBrandappDevtoolBridgeOptions): RegisteredBrandappDevtoolBridge;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  "use client";
3
- import { n as useOptDevtoolPlugin } from "../provider-Bn7CAE_Y.js";
3
+ import { n as useOptDevtoolPlugin } from "../provider-Cjg2rSYG.js";
4
4
  import * as React from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- //#region src/brandapp/index.tsx
6
+ // src/brandapp/index.tsx
7
7
  const STATUS_STYLES = {
8
8
  connected: "bg-emerald-400",
9
9
  configured: "bg-blue-400",
@@ -111,13 +111,14 @@ function CollapsibleGroup({ title, trailing, defaultOpen = true, children }) {
111
111
  function SummaryPanel({ snapshot }) {
112
112
  const requiredEnv = getBrandappRequiredEnvSummary(snapshot.env);
113
113
  const status = getBrandappSnapshotStatus(snapshot);
114
+ const statusText = statusLabel(status);
114
115
  return /* @__PURE__ */ jsxs("section", {
115
116
  className: "rounded-lg bg-white/[0.05] px-2.5 py-2",
116
117
  children: [/* @__PURE__ */ jsxs("div", {
117
118
  className: "flex items-center justify-between gap-2",
118
119
  children: [/* @__PURE__ */ jsx(StatusDot, {
119
120
  status,
120
- label: `Brandapp ${statusLabel(status)}`
121
+ label: `Brandapp ${statusText}`
121
122
  }), /* @__PURE__ */ jsxs("span", {
122
123
  className: "rounded bg-black/20 px-1.5 py-0.5 font-mono text-[9px] text-white/55",
123
124
  children: [
@@ -174,6 +175,7 @@ function EnvList({ env }) {
174
175
  children: ["Missing required env: ", requiredEnv.missing.join(", ")]
175
176
  }) : null, env.map((item) => {
176
177
  var _ref, _item$maskedValue;
178
+ const status = item.present ? "configured" : item.required ? "missing" : "unknown";
177
179
  return /* @__PURE__ */ jsxs("div", {
178
180
  className: "grid grid-cols-[minmax(0,1fr)_minmax(4.5rem,auto)] gap-1 rounded-md bg-white/[0.035] px-2 py-1",
179
181
  children: [/* @__PURE__ */ jsxs("div", {
@@ -181,7 +183,7 @@ function EnvList({ env }) {
181
183
  children: [/* @__PURE__ */ jsxs("div", {
182
184
  className: "flex min-w-0 items-center gap-1.5",
183
185
  children: [/* @__PURE__ */ jsx(StatusDot, {
184
- status: item.present ? "configured" : item.required ? "missing" : "unknown",
186
+ status,
185
187
  label: item.name
186
188
  }), item.required ? /* @__PURE__ */ jsx("span", {
187
189
  className: "rounded bg-amber-400/12 px-1 py-0.5 text-[8px] text-amber-300",
@@ -208,6 +210,7 @@ function RouteList({ routes }) {
208
210
  className: "flex flex-col gap-1",
209
211
  children: routes.map((route) => {
210
212
  var _route$status, _route$method, _route$method2;
213
+ const status = (_route$status = route.status) !== null && _route$status !== void 0 ? _route$status : "unknown";
211
214
  return /* @__PURE__ */ jsxs("div", {
212
215
  className: "min-w-0 rounded-md bg-white/[0.035] px-2 py-1",
213
216
  children: [
@@ -216,7 +219,7 @@ function RouteList({ routes }) {
216
219
  children: [/* @__PURE__ */ jsx("span", {
217
220
  className: "min-w-0 truncate",
218
221
  children: /* @__PURE__ */ jsx(StatusDot, {
219
- status: (_route$status = route.status) !== null && _route$status !== void 0 ? _route$status : "unknown",
222
+ status,
220
223
  label: (_route$method2 = route.method) !== null && _route$method2 !== void 0 ? _route$method2 : "GET"
221
224
  })
222
225
  }), /* @__PURE__ */ jsx("span", {
@@ -457,7 +460,7 @@ function useBrandappDevtoolBridge({ id, label, order = 10, snapshot: controlledS
457
460
  const clear = React.useCallback(() => {
458
461
  if (!isControlled) setUncontrolledSnapshot(null);
459
462
  }, [isControlled]);
460
- useOptDevtoolPlugin(React.useMemo(() => ({
463
+ const plugin = React.useMemo(() => ({
461
464
  id,
462
465
  label,
463
466
  order,
@@ -468,11 +471,11 @@ function useBrandappDevtoolBridge({ id, label, order = 10, snapshot: controlledS
468
471
  label,
469
472
  order,
470
473
  snapshot
471
- ]));
474
+ ]);
475
+ useOptDevtoolPlugin(plugin);
472
476
  return {
473
477
  inspect,
474
478
  clear
475
479
  };
476
480
  }
477
- //#endregion
478
481
  export { getBrandappRequiredEnvSummary, getBrandappSnapshotStatus, useBrandappDevtoolBridge };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  "use client";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_provider = require("../provider-CLRiXjfD.cjs");
4
+ const require_provider = require("../provider-H53ZWHCo.cjs");
5
5
  let react = require("react");
6
6
  react = require_provider.__toESM(react, 1);
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
- //#region src/datagrid/index.tsx
8
+ // src/datagrid/index.tsx
9
9
  function StatusDot({ active, label }) {
10
10
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
11
11
  className: "inline-flex items-center gap-1",
@@ -156,7 +156,7 @@ function useDataGridDevtoolBridge({ id, label, order = 20, telemetry }) {
156
156
  const inspect = react.useCallback((nextSnapshot) => {
157
157
  setSnapshot(nextSnapshot);
158
158
  }, []);
159
- require_provider.useOptDevtoolPlugin(react.useMemo(() => ({
159
+ const plugin = react.useMemo(() => ({
160
160
  id,
161
161
  label,
162
162
  order,
@@ -170,8 +170,8 @@ function useDataGridDevtoolBridge({ id, label, order = 20, telemetry }) {
170
170
  order,
171
171
  snapshot,
172
172
  telemetry
173
- ]));
173
+ ]);
174
+ require_provider.useOptDevtoolPlugin(plugin);
174
175
  return { inspect };
175
176
  }
176
- //#endregion
177
177
  exports.useDataGridDevtoolBridge = useDataGridDevtoolBridge;
@@ -1,15 +1,12 @@
1
1
 
2
2
  import { DataGridDevtoolSnapshot, DataGridRemoteTelemetry } from "@reopt-ai/opt-datagrid";
3
- //#region src/datagrid/index.d.ts
4
- interface UseDataGridDevtoolBridgeOptions {
3
+ export interface UseDataGridDevtoolBridgeOptions {
5
4
  id: string;
6
5
  label: string;
7
6
  order?: number;
8
7
  telemetry?: DataGridRemoteTelemetry | null;
9
8
  }
10
- interface RegisteredDataGridDevtoolBridge {
9
+ export interface RegisteredDataGridDevtoolBridge {
11
10
  inspect: (snapshot: DataGridDevtoolSnapshot) => void;
12
11
  }
13
- declare function useDataGridDevtoolBridge({ id, label, order, telemetry }: UseDataGridDevtoolBridgeOptions): RegisteredDataGridDevtoolBridge;
14
- //#endregion
15
- export { RegisteredDataGridDevtoolBridge, UseDataGridDevtoolBridgeOptions, useDataGridDevtoolBridge };
12
+ export declare function useDataGridDevtoolBridge({ id, label, order, telemetry }: UseDataGridDevtoolBridgeOptions): RegisteredDataGridDevtoolBridge;
@@ -1,15 +1,12 @@
1
1
 
2
2
  import { DataGridDevtoolSnapshot, DataGridRemoteTelemetry } from "@reopt-ai/opt-datagrid";
3
- //#region src/datagrid/index.d.ts
4
- interface UseDataGridDevtoolBridgeOptions {
3
+ export interface UseDataGridDevtoolBridgeOptions {
5
4
  id: string;
6
5
  label: string;
7
6
  order?: number;
8
7
  telemetry?: DataGridRemoteTelemetry | null;
9
8
  }
10
- interface RegisteredDataGridDevtoolBridge {
9
+ export interface RegisteredDataGridDevtoolBridge {
11
10
  inspect: (snapshot: DataGridDevtoolSnapshot) => void;
12
11
  }
13
- declare function useDataGridDevtoolBridge({ id, label, order, telemetry }: UseDataGridDevtoolBridgeOptions): RegisteredDataGridDevtoolBridge;
14
- //#endregion
15
- export { RegisteredDataGridDevtoolBridge, UseDataGridDevtoolBridgeOptions, useDataGridDevtoolBridge };
12
+ export declare function useDataGridDevtoolBridge({ id, label, order, telemetry }: UseDataGridDevtoolBridgeOptions): RegisteredDataGridDevtoolBridge;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  "use client";
3
- import { n as useOptDevtoolPlugin } from "../provider-Bn7CAE_Y.js";
3
+ import { n as useOptDevtoolPlugin } from "../provider-Cjg2rSYG.js";
4
4
  import * as React from "react";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
- //#region src/datagrid/index.tsx
6
+ // src/datagrid/index.tsx
7
7
  function StatusDot({ active, label }) {
8
8
  return /* @__PURE__ */ jsxs("span", {
9
9
  className: "inline-flex items-center gap-1",
@@ -154,7 +154,7 @@ function useDataGridDevtoolBridge({ id, label, order = 20, telemetry }) {
154
154
  const inspect = React.useCallback((nextSnapshot) => {
155
155
  setSnapshot(nextSnapshot);
156
156
  }, []);
157
- useOptDevtoolPlugin(React.useMemo(() => ({
157
+ const plugin = React.useMemo(() => ({
158
158
  id,
159
159
  label,
160
160
  order,
@@ -168,8 +168,8 @@ function useDataGridDevtoolBridge({ id, label, order = 20, telemetry }) {
168
168
  order,
169
169
  snapshot,
170
170
  telemetry
171
- ]));
171
+ ]);
172
+ useOptDevtoolPlugin(plugin);
172
173
  return { inspect };
173
174
  }
174
- //#endregion
175
175
  export { useDataGridDevtoolBridge };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  "use client";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_provider = require("../provider-CLRiXjfD.cjs");
4
+ const require_provider = require("../provider-H53ZWHCo.cjs");
5
5
  let react = require("react");
6
6
  react = require_provider.__toESM(react, 1);
7
7
  let react_jsx_runtime = require("react/jsx-runtime");
8
- //#region src/editor/index.tsx
8
+ // src/editor/index.tsx
9
9
  function StatusDot({ active, label, activeClassName = "bg-emerald-400" }) {
10
10
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
11
11
  className: "inline-flex items-center gap-1",
@@ -198,7 +198,7 @@ function useEditorDevtoolBridge({ id, label, order = 30, streamStatus }) {
198
198
  const inspect = react.useCallback((nextSnapshot) => {
199
199
  setSnapshot(nextSnapshot);
200
200
  }, []);
201
- require_provider.useOptDevtoolPlugin(react.useMemo(() => ({
201
+ const plugin = react.useMemo(() => ({
202
202
  id,
203
203
  label,
204
204
  order,
@@ -213,8 +213,8 @@ function useEditorDevtoolBridge({ id, label, order = 30, streamStatus }) {
213
213
  order,
214
214
  snapshot,
215
215
  streamStatus
216
- ]));
216
+ ]);
217
+ require_provider.useOptDevtoolPlugin(plugin);
217
218
  return { inspect };
218
219
  }
219
- //#endregion
220
220
  exports.useEditorDevtoolBridge = useEditorDevtoolBridge;
@@ -1,15 +1,12 @@
1
1
 
2
2
  import { EditorDevtoolSnapshot, StreamStatus } from "@reopt-ai/opt-editor";
3
- //#region src/editor/index.d.ts
4
- interface UseEditorDevtoolBridgeOptions {
3
+ export interface UseEditorDevtoolBridgeOptions {
5
4
  id: string;
6
5
  label: string;
7
6
  order?: number;
8
7
  streamStatus?: StreamStatus | null;
9
8
  }
10
- interface RegisteredEditorDevtoolBridge {
9
+ export interface RegisteredEditorDevtoolBridge {
11
10
  inspect: (snapshot: EditorDevtoolSnapshot) => void;
12
11
  }
13
- declare function useEditorDevtoolBridge({ id, label, order, streamStatus }: UseEditorDevtoolBridgeOptions): RegisteredEditorDevtoolBridge;
14
- //#endregion
15
- export { RegisteredEditorDevtoolBridge, UseEditorDevtoolBridgeOptions, useEditorDevtoolBridge };
12
+ export declare function useEditorDevtoolBridge({ id, label, order, streamStatus }: UseEditorDevtoolBridgeOptions): RegisteredEditorDevtoolBridge;
@@ -1,15 +1,12 @@
1
1
 
2
2
  import { EditorDevtoolSnapshot, StreamStatus } from "@reopt-ai/opt-editor";
3
- //#region src/editor/index.d.ts
4
- interface UseEditorDevtoolBridgeOptions {
3
+ export interface UseEditorDevtoolBridgeOptions {
5
4
  id: string;
6
5
  label: string;
7
6
  order?: number;
8
7
  streamStatus?: StreamStatus | null;
9
8
  }
10
- interface RegisteredEditorDevtoolBridge {
9
+ export interface RegisteredEditorDevtoolBridge {
11
10
  inspect: (snapshot: EditorDevtoolSnapshot) => void;
12
11
  }
13
- declare function useEditorDevtoolBridge({ id, label, order, streamStatus }: UseEditorDevtoolBridgeOptions): RegisteredEditorDevtoolBridge;
14
- //#endregion
15
- export { RegisteredEditorDevtoolBridge, UseEditorDevtoolBridgeOptions, useEditorDevtoolBridge };
12
+ export declare function useEditorDevtoolBridge({ id, label, order, streamStatus }: UseEditorDevtoolBridgeOptions): RegisteredEditorDevtoolBridge;
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  "use client";
3
- import { n as useOptDevtoolPlugin } from "../provider-Bn7CAE_Y.js";
3
+ import { n as useOptDevtoolPlugin } from "../provider-Cjg2rSYG.js";
4
4
  import * as React from "react";
5
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
6
- //#region src/editor/index.tsx
6
+ // src/editor/index.tsx
7
7
  function StatusDot({ active, label, activeClassName = "bg-emerald-400" }) {
8
8
  return /* @__PURE__ */ jsxs("span", {
9
9
  className: "inline-flex items-center gap-1",
@@ -196,7 +196,7 @@ function useEditorDevtoolBridge({ id, label, order = 30, streamStatus }) {
196
196
  const inspect = React.useCallback((nextSnapshot) => {
197
197
  setSnapshot(nextSnapshot);
198
198
  }, []);
199
- useOptDevtoolPlugin(React.useMemo(() => ({
199
+ const plugin = React.useMemo(() => ({
200
200
  id,
201
201
  label,
202
202
  order,
@@ -211,8 +211,8 @@ function useEditorDevtoolBridge({ id, label, order = 30, streamStatus }) {
211
211
  order,
212
212
  snapshot,
213
213
  streamStatus
214
- ]));
214
+ ]);
215
+ useOptDevtoolPlugin(plugin);
215
216
  return { inspect };
216
217
  }
217
- //#endregion
218
218
  export { useEditorDevtoolBridge };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  "use client";
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
4
- const require_harness = require("../harness-CoRqiJWO.cjs");
4
+ const require_harness = require("../harness-CPOp9Wlj.cjs");
5
5
  exports.ShellOverlay = require_harness.ShellOverlay;
6
6
  exports.useShellDevtoolBridge = require_harness.useShellDevtoolBridge;