@dxos/plugin-debug 0.8.4-main.dedc0f3 → 0.8.4-main.e8ec1fe

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 (65) hide show
  1. package/dist/lib/browser/{DevtoolsOverviewContainer-EPD6EWT5.mjs → DevtoolsOverviewContainer-JXVZVPHN.mjs} +2 -2
  2. package/dist/lib/browser/{DevtoolsOverviewContainer-EPD6EWT5.mjs.map → DevtoolsOverviewContainer-JXVZVPHN.mjs.map} +1 -1
  3. package/dist/lib/browser/{SpaceGenerator-DANYBPYZ.mjs → SpaceGenerator-46TAISVE.mjs} +222 -47
  4. package/dist/lib/browser/SpaceGenerator-46TAISVE.mjs.map +7 -0
  5. package/dist/lib/browser/{app-graph-builder-JTIEFOWZ.mjs → app-graph-builder-CRH2HJKT.mjs} +60 -59
  6. package/dist/lib/browser/app-graph-builder-CRH2HJKT.mjs.map +7 -0
  7. package/dist/lib/browser/{chunk-AJA6RYN3.mjs → chunk-SRV2AIGJ.mjs} +2 -2
  8. package/dist/lib/browser/chunk-SRV2AIGJ.mjs.map +7 -0
  9. package/dist/lib/browser/chunk-WZFZ4ESO.mjs +20 -0
  10. package/dist/lib/browser/chunk-WZFZ4ESO.mjs.map +7 -0
  11. package/dist/lib/browser/index.mjs +11 -14
  12. package/dist/lib/browser/index.mjs.map +3 -3
  13. package/dist/lib/browser/meta.json +1 -1
  14. package/dist/lib/browser/{react-context-NVAGLAJD.mjs → react-context-P2YDWEWI.mjs} +6 -6
  15. package/dist/lib/browser/react-context-P2YDWEWI.mjs.map +7 -0
  16. package/dist/lib/browser/{react-surface-YLOWSIBU.mjs → react-surface-2SNVZDEA.mjs} +85 -84
  17. package/dist/lib/browser/react-surface-2SNVZDEA.mjs.map +7 -0
  18. package/dist/lib/browser/{settings-LSSWLM5I.mjs → settings-SQXR3OAH.mjs} +5 -5
  19. package/dist/lib/browser/{settings-LSSWLM5I.mjs.map → settings-SQXR3OAH.mjs.map} +1 -1
  20. package/dist/types/src/DebugPlugin.d.ts +1 -1
  21. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  22. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  23. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  24. package/dist/types/src/components/DebugObjectPanel.d.ts.map +1 -1
  25. package/dist/types/src/components/DebugSettings.d.ts.map +1 -1
  26. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +2 -2
  27. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  28. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -1
  29. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +1 -1
  30. package/dist/types/src/components/SpaceGenerator/presets.d.ts +6 -4
  31. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  32. package/dist/types/src/components/Wireframe.d.ts +1 -1
  33. package/dist/types/src/components/Wireframe.d.ts.map +1 -1
  34. package/dist/types/src/meta.d.ts +0 -1
  35. package/dist/types/src/meta.d.ts.map +1 -1
  36. package/dist/types/src/translations.d.ts +1 -1
  37. package/dist/types/src/types.d.ts +1 -1
  38. package/dist/types/src/types.d.ts.map +1 -1
  39. package/dist/types/tsconfig.tsbuildinfo +1 -1
  40. package/package.json +67 -64
  41. package/src/DebugPlugin.tsx +5 -6
  42. package/src/capabilities/app-graph-builder.ts +59 -58
  43. package/src/capabilities/react-context.tsx +2 -2
  44. package/src/capabilities/react-surface.tsx +70 -50
  45. package/src/components/DebugObjectPanel.tsx +2 -4
  46. package/src/components/DebugSettings.tsx +39 -18
  47. package/src/components/DebugStatus.tsx +2 -2
  48. package/src/components/DevtoolsOverviewContainer.tsx +1 -1
  49. package/src/components/SpaceGenerator/ObjectGenerator.tsx +16 -22
  50. package/src/components/SpaceGenerator/SchemaTable.tsx +2 -2
  51. package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +3 -5
  52. package/src/components/SpaceGenerator/SpaceGenerator.tsx +6 -6
  53. package/src/components/SpaceGenerator/draw-util.ts +2 -2
  54. package/src/components/SpaceGenerator/presets.ts +179 -13
  55. package/src/components/Wireframe.tsx +2 -3
  56. package/src/meta.ts +6 -5
  57. package/src/translations.ts +1 -1
  58. package/src/types.ts +1 -1
  59. package/dist/lib/browser/SpaceGenerator-DANYBPYZ.mjs.map +0 -7
  60. package/dist/lib/browser/app-graph-builder-JTIEFOWZ.mjs.map +0 -7
  61. package/dist/lib/browser/chunk-5XPIRNQS.mjs +0 -18
  62. package/dist/lib/browser/chunk-5XPIRNQS.mjs.map +0 -7
  63. package/dist/lib/browser/chunk-AJA6RYN3.mjs.map +0 -7
  64. package/dist/lib/browser/react-context-NVAGLAJD.mjs.map +0 -7
  65. package/dist/lib/browser/react-surface-YLOWSIBU.mjs.map +0 -7
@@ -1,16 +1,17 @@
1
1
  import {
2
2
  Devtools
3
- } from "./chunk-AJA6RYN3.mjs";
3
+ } from "./chunk-SRV2AIGJ.mjs";
4
4
  import {
5
- DEBUG_PLUGIN
6
- } from "./chunk-5XPIRNQS.mjs";
5
+ meta
6
+ } from "./chunk-WZFZ4ESO.mjs";
7
7
 
8
8
  // src/capabilities/react-surface.tsx
9
- import { pipe } from "effect";
9
+ import * as Function from "effect/Function";
10
10
  import React5, { useCallback } from "react";
11
- import { Capabilities as Capabilities2, LayoutAction, chain, contributes, createIntent, createSurface, useCapability, useIntentDispatcher } from "@dxos/app-framework";
11
+ import { Capabilities as Capabilities2, LayoutAction, chain, contributes, createIntent, createSurface } from "@dxos/app-framework";
12
+ import { useCapability, useIntentDispatcher } from "@dxos/app-framework/react";
12
13
  import { AutomergePanel, ConfigPanel, CredentialsPanel, DeviceListPanel, DiagnosticsPanel, EdgeDashboardPanel, FeedsPanel, IdentityPanel, InvocationTraceContainer, KeyringPanel, LoggingPanel, MembersPanel, MetadataPanel, NetworkPanel, ObjectsPanel, QueuesPanel, SchemaPanel, SignalPanel, SpaceInfoPanel, SpaceListPanel, StoragePanel, SwarmPanel, TestingPanel, TracingPanel, WorkflowPanel } from "@dxos/devtools";
13
- import { Obj } from "@dxos/echo";
14
+ import { Obj as Obj2 } from "@dxos/echo";
14
15
  import { SettingsStore } from "@dxos/local-storage";
15
16
  import { log as log2 } from "@dxos/log";
16
17
  import { ClientCapabilities } from "@dxos/plugin-client";
@@ -19,7 +20,7 @@ import { ScriptAction } from "@dxos/plugin-script/types";
19
20
  import { SpaceAction } from "@dxos/plugin-space/types";
20
21
  import { SpaceState, isSpace, parseId } from "@dxos/react-client/echo";
21
22
  import { StackItem as StackItem2 } from "@dxos/react-ui-stack";
22
- import { DataType } from "@dxos/schema";
23
+ import { Collection } from "@dxos/schema";
23
24
 
24
25
  // src/components/index.ts
25
26
  import { lazy } from "react";
@@ -29,7 +30,7 @@ import { useSignals as _useSignals } from "@preact-signals/safe-react/tracking";
29
30
  import React from "react";
30
31
  import { Clipboard, Input, Toolbar } from "@dxos/react-ui";
31
32
  import { StackItem } from "@dxos/react-ui-stack";
32
- import { SyntaxHighlighter } from "@dxos/react-ui-syntax-highlighter";
33
+ import { Json } from "@dxos/react-ui-syntax-highlighter";
33
34
  var DebugObjectPanel = ({ object }) => {
34
35
  var _effect = _useSignals();
35
36
  try {
@@ -41,10 +42,9 @@ var DebugObjectPanel = ({ object }) => {
41
42
  value: dxn
42
43
  }), /* @__PURE__ */ React.createElement(Clipboard.IconButton, {
43
44
  value: dxn
44
- }))), /* @__PURE__ */ React.createElement(SyntaxHighlighter, {
45
- language: "json",
46
- classNames: "text-xs"
47
- }, JSON.stringify(object, null, 2))));
45
+ }))), /* @__PURE__ */ React.createElement(Json, {
46
+ data: object
47
+ })));
48
48
  } finally {
49
49
  _effect.f();
50
50
  }
@@ -53,11 +53,12 @@ var DebugObjectPanel = ({ object }) => {
53
53
  // src/components/DebugSettings.tsx
54
54
  import { useSignals as _useSignals2 } from "@preact-signals/safe-react/tracking";
55
55
  import React2, { useEffect, useState } from "react";
56
- import { Capabilities, useCapabilities } from "@dxos/app-framework";
56
+ import { Capabilities } from "@dxos/app-framework";
57
+ import { useCapabilities } from "@dxos/app-framework/react";
57
58
  import { SaveConfig, Storage, defs } from "@dxos/config";
58
59
  import { log } from "@dxos/log";
59
60
  import { useClient } from "@dxos/react-client";
60
- import { Button, Icon, Input as Input2, Select, Toast, useFileDownload, useTranslation } from "@dxos/react-ui";
61
+ import { Icon, IconButton, Input as Input2, Select, Toast, useFileDownload, useTranslation } from "@dxos/react-ui";
61
62
  import { ControlGroup, ControlItemInput, ControlPage, ControlSection } from "@dxos/react-ui-form";
62
63
  import { setDeep } from "@dxos/util";
63
64
  var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-debug/src/components/DebugSettings.tsx";
@@ -68,7 +69,7 @@ var StorageAdapters = {
68
69
  var DebugSettings = ({ settings }) => {
69
70
  var _effect = _useSignals2();
70
71
  try {
71
- const { t } = useTranslation(DEBUG_PLUGIN);
72
+ const { t } = useTranslation(meta.id);
72
73
  const [toast, setToast] = useState();
73
74
  const client = useClient();
74
75
  const download = useFileDownload();
@@ -92,13 +93,13 @@ var DebugSettings = ({ settings }) => {
92
93
  const fileName = `composer-${(/* @__PURE__ */ new Date()).toISOString().replace(/\W/g, "-")}.json`;
93
94
  download(file, fileName);
94
95
  if (upload) {
95
- const info = await upload(new File([
96
+ const info = await upload(client.spaces.default, new File([
96
97
  file
97
- ], fileName), client.spaces.default);
98
+ ], fileName));
98
99
  if (!info) {
99
100
  log.error("diagnostics failed to upload to IPFS", void 0, {
100
101
  F: __dxlog_file,
101
- L: 56,
102
+ L: 59,
102
103
  S: void 0,
103
104
  C: (f, a) => f(...a)
104
105
  });
@@ -118,7 +119,7 @@ var DebugSettings = ({ settings }) => {
118
119
  url
119
120
  }, {
120
121
  F: __dxlog_file,
121
- L: 65,
122
+ L: 74,
122
123
  S: void 0,
123
124
  C: (f, a) => f(...a)
124
125
  });
@@ -141,7 +142,7 @@ var DebugSettings = ({ settings }) => {
141
142
  };
142
143
  return /* @__PURE__ */ React2.createElement(ControlPage, null, /* @__PURE__ */ React2.createElement(ControlSection, {
143
144
  title: t("settings title", {
144
- ns: DEBUG_PLUGIN
145
+ ns: meta.id
145
146
  })
146
147
  }, /* @__PURE__ */ React2.createElement(ControlGroup, null, /* @__PURE__ */ React2.createElement(ControlItemInput, {
147
148
  title: t("settings wireframe")
@@ -150,26 +151,26 @@ var DebugSettings = ({ settings }) => {
150
151
  onCheckedChange: (checked) => settings.wireframe = !!checked
151
152
  })), /* @__PURE__ */ React2.createElement(ControlItemInput, {
152
153
  title: t("settings download diagnostics")
153
- }, /* @__PURE__ */ React2.createElement(Button, {
154
- onClick: handleDownload
155
- }, /* @__PURE__ */ React2.createElement(Icon, {
154
+ }, /* @__PURE__ */ React2.createElement(IconButton, {
156
155
  icon: "ph--download-simple--regular",
157
- size: 5
158
- }))), /* @__PURE__ */ React2.createElement(ControlItemInput, {
156
+ iconOnly: true,
157
+ label: t("settings download diagnostics"),
158
+ onClick: handleDownload
159
+ })), /* @__PURE__ */ React2.createElement(ControlItemInput, {
159
160
  title: t("settings repair")
160
- }, /* @__PURE__ */ React2.createElement(Button, {
161
- onClick: handleRepair
162
- }, /* @__PURE__ */ React2.createElement(Icon, {
161
+ }, /* @__PURE__ */ React2.createElement(IconButton, {
163
162
  icon: "ph--first-aid-kit--regular",
164
- size: 5
165
- }))), toast && /* @__PURE__ */ React2.createElement(Toast.Root, null, /* @__PURE__ */ React2.createElement(Toast.Body, null, /* @__PURE__ */ React2.createElement(Toast.Title, null, /* @__PURE__ */ React2.createElement(Icon, {
163
+ iconOnly: true,
164
+ label: t("settings repair"),
165
+ onClick: handleRepair
166
+ })), toast && /* @__PURE__ */ React2.createElement(Toast.Root, null, /* @__PURE__ */ React2.createElement(Toast.Body, null, /* @__PURE__ */ React2.createElement(Toast.Title, null, /* @__PURE__ */ React2.createElement(Icon, {
166
167
  icon: "ph--gift--duotone",
167
168
  size: 5,
168
169
  classNames: "inline mr-1"
169
170
  }), /* @__PURE__ */ React2.createElement("span", null, toast.title)), toast.description && /* @__PURE__ */ React2.createElement(Toast.Description, null, toast.description))), /* @__PURE__ */ React2.createElement(ControlItemInput, {
170
171
  title: t("settings choose storage adaptor")
171
172
  }, /* @__PURE__ */ React2.createElement(Select.Root, {
172
- value: Object.entries(StorageAdapters).find(([name2, value]) => value === storageConfig?.runtime?.client?.storage?.dataStore)?.[0],
173
+ value: Object.entries(StorageAdapters).find(([_name, value]) => value === storageConfig?.runtime?.client?.storage?.dataStore)?.[0],
173
174
  onValueChange: (value) => {
174
175
  if (confirm(t("settings storage adapter changed alert"))) {
175
176
  updateConfig(storageConfig, setStorageConfig, [
@@ -217,7 +218,7 @@ var ErrorIndicator = () => {
217
218
  var _effect = _useSignals3();
218
219
  try {
219
220
  const [, forceUpdate] = useState2({});
220
- const errorRef = useRef();
221
+ const errorRef = useRef(null);
221
222
  useEffect2(() => {
222
223
  const errorListener = (event) => {
223
224
  const error = event.error ?? event.reason;
@@ -234,7 +235,7 @@ var ErrorIndicator = () => {
234
235
  };
235
236
  }, []);
236
237
  const handleReset = () => {
237
- errorRef.current = void 0;
238
+ errorRef.current = null;
238
239
  forceUpdate({});
239
240
  };
240
241
  if (errorRef.current) {
@@ -343,14 +344,14 @@ var DebugStatus = () => {
343
344
  import { useSignals as _useSignals4 } from "@preact-signals/safe-react/tracking";
344
345
  import React4 from "react";
345
346
  import { useResizeDetector } from "react-resize-detector";
346
- import { fullyQualifiedId } from "@dxos/react-client/echo";
347
+ import { Obj } from "@dxos/echo";
347
348
  import { useAttentionAttributes } from "@dxos/react-ui-attention";
348
- import { SyntaxHighlighter as SyntaxHighlighter2 } from "@dxos/react-ui-syntax-highlighter";
349
+ import { SyntaxHighlighter } from "@dxos/react-ui-syntax-highlighter";
349
350
  import { mx } from "@dxos/react-ui-theme";
350
351
  var Wireframe = ({ classNames, label, object }) => {
351
352
  var _effect = _useSignals4();
352
353
  try {
353
- const attentionAttrs = useAttentionAttributes(fullyQualifiedId(object));
354
+ const attentionAttrs = useAttentionAttributes(Obj.getDXN(object).toString());
354
355
  const { width, height, ref } = useResizeDetector();
355
356
  return /* @__PURE__ */ React4.createElement("div", {
356
357
  ref,
@@ -360,7 +361,7 @@ var Wireframe = ({ classNames, label, object }) => {
360
361
  className: "absolute inset-2 flex flex-col gap-2 overflow-hidden font-mono"
361
362
  }, /* @__PURE__ */ React4.createElement("div", {
362
363
  className: "flex justify-between"
363
- }, /* @__PURE__ */ React4.createElement("div", null, label), /* @__PURE__ */ React4.createElement("div", null, `[${width}x${height}]`)), object && /* @__PURE__ */ React4.createElement(SyntaxHighlighter2, {
364
+ }, /* @__PURE__ */ React4.createElement("div", null, label), /* @__PURE__ */ React4.createElement("div", null, `[${width}x${height}]`)), object && /* @__PURE__ */ React4.createElement(SyntaxHighlighter, {
364
365
  language: "json",
365
366
  classNames: "text-xs opacity-75 rounded"
366
367
  }, JSON.stringify(object, void 0, 2))), /* @__PURE__ */ React4.createElement("svg", {
@@ -394,12 +395,12 @@ var Wireframe = ({ classNames, label, object }) => {
394
395
 
395
396
  // src/components/index.ts
396
397
  var DebugGraph = lazy(() => import("./DebugGraph-EDOH6R2G.mjs"));
397
- var DevtoolsOverviewContainer = lazy(() => import("./DevtoolsOverviewContainer-EPD6EWT5.mjs"));
398
- var SpaceGenerator = lazy(() => import("./SpaceGenerator-DANYBPYZ.mjs"));
398
+ var DevtoolsOverviewContainer = lazy(() => import("./DevtoolsOverviewContainer-JXVZVPHN.mjs"));
399
+ var SpaceGenerator = lazy(() => import("./SpaceGenerator-46TAISVE.mjs"));
399
400
 
400
401
  // src/capabilities/react-surface.tsx
401
402
  var __dxlog_file2 = "/__w/dxos/dxos/packages/plugins/plugin-debug/src/capabilities/react-surface.tsx";
402
- var isSpaceDebug = (data) => data?.type === `${DEBUG_PLUGIN}/space` && isSpace(data.space);
403
+ var isSpaceDebug = (data) => data?.type === `${meta.id}/space` && isSpace(data.space);
403
404
  var isGraphDebug = (data) => data?.graph instanceof Graph && typeof data?.root === "string";
404
405
  var useCurrentSpace = () => {
405
406
  const layout = useCapability(Capabilities2.Layout);
@@ -408,17 +409,17 @@ var useCurrentSpace = () => {
408
409
  const space = spaceId ? client.spaces.get(spaceId) : void 0;
409
410
  return space;
410
411
  };
411
- var react_surface_default = (context) => contributes(Capabilities2.ReactSurface, [
412
+ var react_surface_default = ((context) => contributes(Capabilities2.ReactSurface, [
412
413
  createSurface({
413
- id: `${DEBUG_PLUGIN}/plugin-settings`,
414
+ id: `${meta.id}/plugin-settings`,
414
415
  role: "article",
415
- filter: (data) => data.subject instanceof SettingsStore && data.subject.prefix === DEBUG_PLUGIN,
416
+ filter: (data) => data.subject instanceof SettingsStore && data.subject.prefix === meta.id,
416
417
  component: ({ data: { subject } }) => /* @__PURE__ */ React5.createElement(DebugSettings, {
417
418
  settings: subject.value
418
419
  })
419
420
  }),
420
421
  createSurface({
421
- id: `${DEBUG_PLUGIN}/space`,
422
+ id: `${meta.id}/space`,
422
423
  role: "article",
423
424
  filter: (data) => isSpaceDebug(data.subject),
424
425
  component: ({ data }) => {
@@ -427,8 +428,8 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
427
428
  if (!isSpace(data.subject.space)) {
428
429
  return;
429
430
  }
430
- const collection = data.subject.space.state.get() === SpaceState.SPACE_READY && data.subject.space.properties[DataType.Collection.typename]?.target;
431
- if (!Obj.instanceOf(DataType.Collection, collection)) {
431
+ const collection = data.subject.space.state.get() === SpaceState.SPACE_READY && data.subject.space.properties[Collection.Collection.typename]?.target;
432
+ if (!Obj2.instanceOf(Collection.Collection, collection)) {
432
433
  return;
433
434
  }
434
435
  objects.forEach((object) => {
@@ -447,7 +448,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
447
448
  }
448
449
  }),
449
450
  createSurface({
450
- id: `${DEBUG_PLUGIN}/graph`,
451
+ id: `${meta.id}/app-graph`,
451
452
  role: "article",
452
453
  filter: (data) => isGraphDebug(data.subject),
453
454
  component: ({ data }) => /* @__PURE__ */ React5.createElement(DebugGraph, {
@@ -456,15 +457,15 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
456
457
  })
457
458
  }),
458
459
  createSurface({
459
- id: `${DEBUG_PLUGIN}/wireframe`,
460
+ id: `${meta.id}/wireframe`,
460
461
  role: [
461
462
  "article",
462
463
  "section"
463
464
  ],
464
465
  position: "hoist",
465
466
  filter: (data) => {
466
- const settings = context.getCapability(Capabilities2.SettingsStore).getStore(DEBUG_PLUGIN).value;
467
- return Obj.isObject(data.subject) && !!settings.wireframe;
467
+ const settings = context.getCapability(Capabilities2.SettingsStore).getStore(meta.id).value;
468
+ return Obj2.isObject(data.subject) && !!settings.wireframe;
468
469
  },
469
470
  component: ({ data, role }) => /* @__PURE__ */ React5.createElement(Wireframe, {
470
471
  label: `${role}:${name}`,
@@ -473,20 +474,20 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
473
474
  })
474
475
  }),
475
476
  createSurface({
476
- id: `${DEBUG_PLUGIN}/object-debug`,
477
+ id: `${meta.id}/object-debug`,
477
478
  role: "article",
478
- filter: (data) => data.subject === "debug" && Obj.isObject(data.companionTo),
479
+ filter: (data) => data.subject === "debug" && Obj2.isObject(data.companionTo),
479
480
  component: ({ data }) => /* @__PURE__ */ React5.createElement(DebugObjectPanel, {
480
481
  object: data.companionTo
481
482
  })
482
483
  }),
483
484
  createSurface({
484
- id: `${DEBUG_PLUGIN}/devtools-overview`,
485
+ id: `${meta.id}/devtools-overview`,
485
486
  role: "deck-companion--devtools",
486
487
  component: () => /* @__PURE__ */ React5.createElement(DevtoolsOverviewContainer, null)
487
488
  }),
488
489
  createSurface({
489
- id: `${DEBUG_PLUGIN}/status`,
490
+ id: `${meta.id}/status`,
490
491
  role: "status",
491
492
  component: () => /* @__PURE__ */ React5.createElement(DebugStatus, null)
492
493
  }),
@@ -494,7 +495,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
494
495
  // Devtools
495
496
  //
496
497
  createSurface({
497
- id: `${DEBUG_PLUGIN}/client/config`,
498
+ id: `${meta.id}/client/config`,
498
499
  role: "article",
499
500
  filter: (data) => data.subject === Devtools.Client.Config,
500
501
  component: () => /* @__PURE__ */ React5.createElement(ConfigPanel, {
@@ -502,49 +503,49 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
502
503
  })
503
504
  }),
504
505
  createSurface({
505
- id: `${DEBUG_PLUGIN}/client/storage`,
506
+ id: `${meta.id}/client/storage`,
506
507
  role: "article",
507
508
  filter: (data) => data.subject === Devtools.Client.Storage,
508
509
  component: () => /* @__PURE__ */ React5.createElement(StoragePanel, null)
509
510
  }),
510
511
  createSurface({
511
- id: `${DEBUG_PLUGIN}/client/logs`,
512
+ id: `${meta.id}/client/logs`,
512
513
  role: "article",
513
514
  filter: (data) => data.subject === Devtools.Client.Logs,
514
515
  component: () => /* @__PURE__ */ React5.createElement(LoggingPanel, null)
515
516
  }),
516
517
  createSurface({
517
- id: `${DEBUG_PLUGIN}/client/diagnostics`,
518
+ id: `${meta.id}/client/diagnostics`,
518
519
  role: "article",
519
520
  filter: (data) => data.subject === Devtools.Client.Diagnostics,
520
521
  component: () => /* @__PURE__ */ React5.createElement(DiagnosticsPanel, null)
521
522
  }),
522
523
  createSurface({
523
- id: `${DEBUG_PLUGIN}/client/tracing`,
524
+ id: `${meta.id}/client/tracing`,
524
525
  role: "article",
525
526
  filter: (data) => data.subject === Devtools.Client.Tracing,
526
527
  component: () => /* @__PURE__ */ React5.createElement(TracingPanel, null)
527
528
  }),
528
529
  createSurface({
529
- id: `${DEBUG_PLUGIN}/halo/identity`,
530
+ id: `${meta.id}/halo/identity`,
530
531
  role: "article",
531
532
  filter: (data) => data.subject === Devtools.Halo.Identity,
532
533
  component: () => /* @__PURE__ */ React5.createElement(IdentityPanel, null)
533
534
  }),
534
535
  createSurface({
535
- id: `${DEBUG_PLUGIN}/halo/devices`,
536
+ id: `${meta.id}/halo/devices`,
536
537
  role: "article",
537
538
  filter: (data) => data.subject === Devtools.Halo.Devices,
538
539
  component: () => /* @__PURE__ */ React5.createElement(DeviceListPanel, null)
539
540
  }),
540
541
  createSurface({
541
- id: `${DEBUG_PLUGIN}/halo/keyring`,
542
+ id: `${meta.id}/halo/keyring`,
542
543
  role: "article",
543
544
  filter: (data) => data.subject === Devtools.Halo.Keyring,
544
545
  component: () => /* @__PURE__ */ React5.createElement(KeyringPanel, null)
545
546
  }),
546
547
  createSurface({
547
- id: `${DEBUG_PLUGIN}/halo/credentials`,
548
+ id: `${meta.id}/halo/credentials`,
548
549
  role: "article",
549
550
  filter: (data) => data.subject === Devtools.Halo.Credentials,
550
551
  component: () => {
@@ -555,7 +556,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
555
556
  }
556
557
  }),
557
558
  createSurface({
558
- id: `${DEBUG_PLUGIN}/echo/spaces`,
559
+ id: `${meta.id}/echo/spaces`,
559
560
  role: "article",
560
561
  filter: (data) => data.subject === Devtools.Echo.Spaces,
561
562
  component: () => {
@@ -574,7 +575,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
574
575
  }
575
576
  }),
576
577
  createSurface({
577
- id: `${DEBUG_PLUGIN}/echo/space`,
578
+ id: `${meta.id}/echo/space`,
578
579
  role: "article",
579
580
  filter: (data) => data.subject === Devtools.Echo.Space,
580
581
  component: () => {
@@ -596,7 +597,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
596
597
  }
597
598
  }),
598
599
  createSurface({
599
- id: `${DEBUG_PLUGIN}/echo/feeds`,
600
+ id: `${meta.id}/echo/feeds`,
600
601
  role: "article",
601
602
  filter: (data) => data.subject === Devtools.Echo.Feeds,
602
603
  component: () => {
@@ -607,7 +608,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
607
608
  }
608
609
  }),
609
610
  createSurface({
610
- id: `${DEBUG_PLUGIN}/echo/objects`,
611
+ id: `${meta.id}/echo/objects`,
611
612
  role: "article",
612
613
  filter: (data) => data.subject === Devtools.Echo.Objects,
613
614
  component: () => {
@@ -618,7 +619,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
618
619
  }
619
620
  }),
620
621
  createSurface({
621
- id: `${DEBUG_PLUGIN}/echo/schema`,
622
+ id: `${meta.id}/echo/schema`,
622
623
  role: "article",
623
624
  filter: (data) => data.subject === Devtools.Echo.Schema,
624
625
  component: () => {
@@ -629,7 +630,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
629
630
  }
630
631
  }),
631
632
  createSurface({
632
- id: `${DEBUG_PLUGIN}/echo/automerge`,
633
+ id: `${meta.id}/echo/automerge`,
633
634
  role: "article",
634
635
  filter: (data) => data.subject === Devtools.Echo.Automerge,
635
636
  component: () => {
@@ -640,13 +641,13 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
640
641
  }
641
642
  }),
642
643
  createSurface({
643
- id: `${DEBUG_PLUGIN}/echo/queues`,
644
+ id: `${meta.id}/echo/queues`,
644
645
  role: "article",
645
646
  filter: (data) => data.subject === Devtools.Echo.Queues,
646
647
  component: () => /* @__PURE__ */ React5.createElement(QueuesPanel, null)
647
648
  }),
648
649
  createSurface({
649
- id: `${DEBUG_PLUGIN}/echo/members`,
650
+ id: `${meta.id}/echo/members`,
650
651
  role: "article",
651
652
  filter: (data) => data.subject === Devtools.Echo.Members,
652
653
  component: () => {
@@ -657,25 +658,25 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
657
658
  }
658
659
  }),
659
660
  createSurface({
660
- id: `${DEBUG_PLUGIN}/echo/metadata`,
661
+ id: `${meta.id}/echo/metadata`,
661
662
  role: "article",
662
663
  filter: (data) => data.subject === Devtools.Echo.Metadata,
663
664
  component: () => /* @__PURE__ */ React5.createElement(MetadataPanel, null)
664
665
  }),
665
666
  createSurface({
666
- id: `${DEBUG_PLUGIN}/mesh/signal`,
667
+ id: `${meta.id}/mesh/signal`,
667
668
  role: "article",
668
669
  filter: (data) => data.subject === Devtools.Mesh.Signal,
669
670
  component: () => /* @__PURE__ */ React5.createElement(SignalPanel, null)
670
671
  }),
671
672
  createSurface({
672
- id: `${DEBUG_PLUGIN}/mesh/swarm`,
673
+ id: `${meta.id}/mesh/swarm`,
673
674
  role: "article",
674
675
  filter: (data) => data.subject === Devtools.Mesh.Swarm,
675
676
  component: () => /* @__PURE__ */ React5.createElement(SwarmPanel, null)
676
677
  }),
677
678
  createSurface({
678
- id: `${DEBUG_PLUGIN}/mesh/network`,
679
+ id: `${meta.id}/mesh/network`,
679
680
  role: "article",
680
681
  filter: (data) => data.subject === Devtools.Mesh.Network,
681
682
  component: () => {
@@ -687,19 +688,19 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
687
688
  }),
688
689
  // TODO(wittjosiah): Remove?
689
690
  // createSurface({
690
- // id: `${DEBUG_PLUGIN}/agent/dashboard`,
691
+ // id: `${meta.id}/agent/dashboard`,
691
692
  // role: 'article',
692
693
  // filter: (data): data is any => data.subject === Devtools.Agent.Dashboard,
693
694
  // component: () => <DashboardPanel />,
694
695
  // }),
695
696
  createSurface({
696
- id: `${DEBUG_PLUGIN}/edge/dashboard`,
697
+ id: `${meta.id}/edge/dashboard`,
697
698
  role: "article",
698
699
  filter: (data) => data.subject === Devtools.Edge.Dashboard,
699
700
  component: () => /* @__PURE__ */ React5.createElement(EdgeDashboardPanel, null)
700
701
  }),
701
702
  createSurface({
702
- id: `${DEBUG_PLUGIN}/edge/workflows`,
703
+ id: `${meta.id}/edge/workflows`,
703
704
  role: "article",
704
705
  filter: (data) => data.subject === Devtools.Edge.Workflows,
705
706
  component: () => {
@@ -710,7 +711,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
710
711
  }
711
712
  }),
712
713
  createSurface({
713
- id: `${DEBUG_PLUGIN}/edge/traces`,
714
+ id: `${meta.id}/edge/traces`,
714
715
  role: "article",
715
716
  filter: (data) => data.subject === Devtools.Edge.Traces,
716
717
  component: () => {
@@ -722,7 +723,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
722
723
  }
723
724
  }),
724
725
  createSurface({
725
- id: `${DEBUG_PLUGIN}/edge/testing`,
726
+ id: `${meta.id}/edge/testing`,
726
727
  role: "article",
727
728
  filter: (data) => data.subject === Devtools.Edge.Testing,
728
729
  component: () => {
@@ -738,7 +739,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
738
739
  ]);
739
740
  const onScriptPluginOpen = useCallback(async (space) => {
740
741
  await space.waitUntilReady();
741
- const result = await dispatch(pipe(createIntent(ScriptAction.Create, {
742
+ const result = await dispatch(Function.pipe(createIntent(ScriptAction.CreateScript, {
742
743
  space
743
744
  }), chain(SpaceAction.AddObject, {
744
745
  target: space
@@ -747,7 +748,7 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
747
748
  result
748
749
  }, {
749
750
  F: __dxlog_file2,
750
- L: 388,
751
+ L: 405,
751
752
  S: void 0,
752
753
  C: (f, a) => f(...a)
753
754
  });
@@ -766,8 +767,8 @@ var react_surface_default = (context) => contributes(Capabilities2.ReactSurface,
766
767
  });
767
768
  }
768
769
  })
769
- ]);
770
+ ]));
770
771
  export {
771
772
  react_surface_default as default
772
773
  };
773
- //# sourceMappingURL=react-surface-YLOWSIBU.mjs.map
774
+ //# sourceMappingURL=react-surface-2SNVZDEA.mjs.map