@dxos/plugin-debug 0.8.3 → 0.8.4-main.1c7ec43d41

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 (169) hide show
  1. package/dist/lib/browser/index.mjs +19 -123
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/lib/browser/translations.mjs +81 -0
  5. package/dist/lib/browser/translations.mjs.map +7 -0
  6. package/dist/types/src/DebugPlugin.d.ts +4 -1
  7. package/dist/types/src/DebugPlugin.d.ts.map +1 -1
  8. package/dist/types/src/DebugPlugin.node.d.ts +5 -0
  9. package/dist/types/src/DebugPlugin.node.d.ts.map +1 -0
  10. package/dist/types/src/DebugPlugin.test.d.ts +2 -0
  11. package/dist/types/src/DebugPlugin.test.d.ts.map +1 -0
  12. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  13. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  14. package/dist/types/src/capabilities/index.d.ts +8 -5
  15. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  16. package/dist/types/src/capabilities/react-context.d.ts +4 -2
  17. package/dist/types/src/capabilities/react-context.d.ts.map +1 -1
  18. package/dist/types/src/capabilities/react-surface.d.ts +7 -2
  19. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  20. package/dist/types/src/capabilities/settings.d.ts +5 -2
  21. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  22. package/dist/types/src/components/DebugSettings/DebugSettings.d.ts +11 -0
  23. package/dist/types/src/components/DebugSettings/DebugSettings.d.ts.map +1 -0
  24. package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts +99 -0
  25. package/dist/types/src/components/DebugSettings/DebugSettings.stories.d.ts.map +1 -0
  26. package/dist/types/src/components/DebugSettings/index.d.ts +2 -0
  27. package/dist/types/src/components/DebugSettings/index.d.ts.map +1 -0
  28. package/dist/types/src/components/SchemaTable/SchemaTable.d.ts.map +1 -0
  29. package/dist/types/src/components/SchemaTable/index.d.ts +2 -0
  30. package/dist/types/src/components/SchemaTable/index.d.ts.map +1 -0
  31. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts +6 -4
  32. package/dist/types/src/components/SpaceGenerator/ObjectGenerator.d.ts.map +1 -1
  33. package/dist/types/src/components/SpaceGenerator/draw-util.d.ts.map +1 -1
  34. package/dist/types/src/components/SpaceGenerator/index.d.ts +2 -2
  35. package/dist/types/src/components/SpaceGenerator/index.d.ts.map +1 -1
  36. package/dist/types/src/components/SpaceGenerator/presets.d.ts +5 -8
  37. package/dist/types/src/components/SpaceGenerator/presets.d.ts.map +1 -1
  38. package/dist/types/src/components/index.d.ts +4 -9
  39. package/dist/types/src/components/index.d.ts.map +1 -1
  40. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts +8 -0
  41. package/dist/types/src/containers/DebugGraph/DebugGraph.d.ts.map +1 -0
  42. package/dist/types/src/containers/DebugGraph/index.d.ts +2 -0
  43. package/dist/types/src/containers/DebugGraph/index.d.ts.map +1 -0
  44. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts +6 -0
  45. package/dist/types/src/containers/DebugObjectPanel/DebugObjectPanel.d.ts.map +1 -0
  46. package/dist/types/src/containers/DebugObjectPanel/index.d.ts +2 -0
  47. package/dist/types/src/containers/DebugObjectPanel/index.d.ts.map +1 -0
  48. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts +5 -0
  49. package/dist/types/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.d.ts.map +1 -0
  50. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts +2 -0
  51. package/dist/types/src/containers/DebugSpaceObjectsPanel/index.d.ts.map +1 -0
  52. package/dist/types/src/containers/DebugStatus/DebugStatus.d.ts.map +1 -0
  53. package/dist/types/src/containers/DebugStatus/index.d.ts +2 -0
  54. package/dist/types/src/containers/DebugStatus/index.d.ts.map +1 -0
  55. package/dist/types/src/{components → containers/DevtoolsOverviewContainer}/DevtoolsOverviewContainer.d.ts +0 -1
  56. package/dist/types/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.d.ts.map +1 -0
  57. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts +2 -0
  58. package/dist/types/src/containers/DevtoolsOverviewContainer/index.d.ts.map +1 -0
  59. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts +11 -0
  60. package/dist/types/src/containers/SpaceGenerator/SpaceGenerator.d.ts.map +1 -0
  61. package/dist/types/src/containers/SpaceGenerator/index.d.ts +2 -0
  62. package/dist/types/src/containers/SpaceGenerator/index.d.ts.map +1 -0
  63. package/dist/types/src/{components → containers/Wireframe}/Wireframe.d.ts +2 -2
  64. package/dist/types/src/containers/Wireframe/Wireframe.d.ts.map +1 -0
  65. package/dist/types/src/containers/Wireframe/index.d.ts +2 -0
  66. package/dist/types/src/containers/Wireframe/index.d.ts.map +1 -0
  67. package/dist/types/src/containers/index.d.ts +9 -0
  68. package/dist/types/src/containers/index.d.ts.map +1 -0
  69. package/dist/types/src/index.d.ts +3 -1
  70. package/dist/types/src/index.d.ts.map +1 -1
  71. package/dist/types/src/meta.d.ts +2 -3
  72. package/dist/types/src/meta.d.ts.map +1 -1
  73. package/dist/types/src/translations.d.ts +83 -60
  74. package/dist/types/src/translations.d.ts.map +1 -1
  75. package/dist/types/src/types/Settings.d.ts +8 -0
  76. package/dist/types/src/types/Settings.d.ts.map +1 -0
  77. package/dist/types/src/types/index.d.ts +69 -0
  78. package/dist/types/src/types/index.d.ts.map +1 -0
  79. package/dist/types/tsconfig.tsbuildinfo +1 -1
  80. package/package.json +99 -73
  81. package/src/DebugPlugin.node.ts +18 -0
  82. package/src/DebugPlugin.test.ts +29 -0
  83. package/src/DebugPlugin.tsx +30 -37
  84. package/src/capabilities/app-graph-builder.ts +361 -413
  85. package/src/capabilities/index.ts +5 -5
  86. package/src/capabilities/react-context.tsx +16 -7
  87. package/src/capabilities/react-surface.tsx +381 -339
  88. package/src/capabilities/settings.ts +24 -12
  89. package/src/components/DebugSettings/DebugSettings.stories.tsx +36 -0
  90. package/src/components/DebugSettings/DebugSettings.tsx +262 -0
  91. package/src/components/DebugSettings/index.ts +5 -0
  92. package/src/components/SchemaTable/index.ts +5 -0
  93. package/src/components/SpaceGenerator/ObjectGenerator.tsx +44 -46
  94. package/src/components/SpaceGenerator/draw-util.ts +13 -13
  95. package/src/components/SpaceGenerator/index.ts +2 -3
  96. package/src/components/SpaceGenerator/presets.ts +527 -263
  97. package/src/components/index.ts +4 -8
  98. package/src/containers/DebugGraph/DebugGraph.tsx +14 -0
  99. package/src/containers/DebugGraph/index.ts +5 -0
  100. package/src/containers/DebugObjectPanel/DebugObjectPanel.tsx +76 -0
  101. package/src/containers/DebugObjectPanel/index.ts +5 -0
  102. package/src/containers/DebugSpaceObjectsPanel/DebugSpaceObjectsPanel.tsx +47 -0
  103. package/src/containers/DebugSpaceObjectsPanel/index.ts +5 -0
  104. package/src/{components → containers/DebugStatus}/DebugStatus.tsx +43 -21
  105. package/src/containers/DebugStatus/index.ts +5 -0
  106. package/src/containers/DevtoolsOverviewContainer/DevtoolsOverviewContainer.tsx +25 -0
  107. package/src/containers/DevtoolsOverviewContainer/index.ts +5 -0
  108. package/src/containers/SpaceGenerator/SpaceGenerator.tsx +126 -0
  109. package/src/containers/SpaceGenerator/index.ts +5 -0
  110. package/src/{components → containers/Wireframe}/Wireframe.tsx +8 -12
  111. package/src/containers/Wireframe/index.ts +5 -0
  112. package/src/containers/index.ts +13 -0
  113. package/src/index.ts +7 -1
  114. package/src/meta.ts +8 -7
  115. package/src/translations.ts +80 -59
  116. package/src/types/Settings.ts +16 -0
  117. package/src/{types.ts → types/index.ts} +20 -11
  118. package/dist/lib/browser/DebugApp-WSEJPCKY.mjs +0 -225
  119. package/dist/lib/browser/DebugApp-WSEJPCKY.mjs.map +0 -7
  120. package/dist/lib/browser/DevtoolsOverviewContainer-IIIWO77Q.mjs +0 -25
  121. package/dist/lib/browser/DevtoolsOverviewContainer-IIIWO77Q.mjs.map +0 -7
  122. package/dist/lib/browser/SpaceGenerator-VB6IB2LL.mjs +0 -1238
  123. package/dist/lib/browser/SpaceGenerator-VB6IB2LL.mjs.map +0 -7
  124. package/dist/lib/browser/app-graph-builder-6HHJMKVU.mjs +0 -597
  125. package/dist/lib/browser/app-graph-builder-6HHJMKVU.mjs.map +0 -7
  126. package/dist/lib/browser/chunk-47JOZTT2.mjs +0 -18
  127. package/dist/lib/browser/chunk-47JOZTT2.mjs.map +0 -7
  128. package/dist/lib/browser/chunk-KS3YBEL7.mjs +0 -68
  129. package/dist/lib/browser/chunk-KS3YBEL7.mjs.map +0 -7
  130. package/dist/lib/browser/react-context-ZQRD2WG2.mjs +0 -16
  131. package/dist/lib/browser/react-context-ZQRD2WG2.mjs.map +0 -7
  132. package/dist/lib/browser/react-surface-UI6OK73H.mjs +0 -768
  133. package/dist/lib/browser/react-surface-UI6OK73H.mjs.map +0 -7
  134. package/dist/lib/browser/settings-SXQWSIM4.mjs +0 -22
  135. package/dist/lib/browser/settings-SXQWSIM4.mjs.map +0 -7
  136. package/dist/types/src/components/Container.d.ts +0 -5
  137. package/dist/types/src/components/Container.d.ts.map +0 -1
  138. package/dist/types/src/components/DebugApp/DebugApp.d.ts +0 -6
  139. package/dist/types/src/components/DebugApp/DebugApp.d.ts.map +0 -1
  140. package/dist/types/src/components/DebugApp/Tree.d.ts +0 -18
  141. package/dist/types/src/components/DebugApp/Tree.d.ts.map +0 -1
  142. package/dist/types/src/components/DebugApp/index.d.ts +0 -3
  143. package/dist/types/src/components/DebugApp/index.d.ts.map +0 -1
  144. package/dist/types/src/components/DebugObjectPanel.d.ts +0 -7
  145. package/dist/types/src/components/DebugObjectPanel.d.ts.map +0 -1
  146. package/dist/types/src/components/DebugSettings.d.ts +0 -6
  147. package/dist/types/src/components/DebugSettings.d.ts.map +0 -1
  148. package/dist/types/src/components/DebugStatus.d.ts.map +0 -1
  149. package/dist/types/src/components/DevtoolsOverviewContainer.d.ts.map +0 -1
  150. package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +0 -1
  151. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts +0 -9
  152. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +0 -1
  153. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts +0 -6
  154. package/dist/types/src/components/SpaceGenerator/SpaceGenerator.stories.d.ts.map +0 -1
  155. package/dist/types/src/components/Wireframe.d.ts.map +0 -1
  156. package/dist/types/src/types.d.ts +0 -63
  157. package/dist/types/src/types.d.ts.map +0 -1
  158. package/src/components/Container.tsx +0 -15
  159. package/src/components/DebugApp/DebugApp.tsx +0 -77
  160. package/src/components/DebugApp/Tree.tsx +0 -103
  161. package/src/components/DebugApp/index.ts +0 -7
  162. package/src/components/DebugObjectPanel.tsx +0 -35
  163. package/src/components/DebugSettings.tsx +0 -151
  164. package/src/components/DevtoolsOverviewContainer.tsx +0 -20
  165. package/src/components/SpaceGenerator/SpaceGenerator.stories.tsx +0 -52
  166. package/src/components/SpaceGenerator/SpaceGenerator.tsx +0 -179
  167. /package/dist/types/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.d.ts +0 -0
  168. /package/dist/types/src/{components → containers/DebugStatus}/DebugStatus.d.ts +0 -0
  169. /package/src/components/{SpaceGenerator → SchemaTable}/SchemaTable.tsx +0 -0
@@ -0,0 +1,69 @@
1
+ import { type Atom } from '@effect-atom/atom-react';
2
+ import { type Context } from 'react';
3
+ import { Capability } from '@dxos/app-framework';
4
+ import type { TimerCallback, TimerOptions } from '@dxos/async';
5
+ import { type IdbLogStore } from '@dxos/log-store-idb';
6
+ import * as Settings from './Settings';
7
+ export * as Settings from './Settings';
8
+ export type DebugPluginOptions = {
9
+ /** Shared persistent log store for capturing and downloading logs. */
10
+ logStore?: IdbLogStore;
11
+ };
12
+ export type DebugContextType = {
13
+ running: boolean;
14
+ start: (cb: TimerCallback, options: TimerOptions) => void;
15
+ stop: () => void;
16
+ };
17
+ export declare const DebugContext: Context<DebugContextType>;
18
+ export declare namespace DebugCapabilities {
19
+ const Settings: Capability.InterfaceDef<Atom.Writable<Settings.Settings, Settings.Settings>>;
20
+ }
21
+ export declare namespace Devtools {
22
+ const id: string;
23
+ const ToolsExplorer: string;
24
+ namespace Client {
25
+ const id: string;
26
+ const Config: string;
27
+ const Storage: string;
28
+ const Logs: string;
29
+ const Diagnostics: string;
30
+ }
31
+ namespace Halo {
32
+ const id: string;
33
+ const Identity: string;
34
+ const Devices: string;
35
+ const Keyring: string;
36
+ const Credentials: string;
37
+ }
38
+ namespace Echo {
39
+ const id: string;
40
+ const Spaces: string;
41
+ const Space: string;
42
+ const Feeds: string;
43
+ const Objects: string;
44
+ const Schema: string;
45
+ const Automerge: string;
46
+ const Queues: string;
47
+ const Members: string;
48
+ const Metadata: string;
49
+ }
50
+ namespace Mesh {
51
+ const id: string;
52
+ const Signal: string;
53
+ const Swarm: string;
54
+ const Network: string;
55
+ }
56
+ namespace Agent {
57
+ const id: string;
58
+ const Dashboard: string;
59
+ const Search: string;
60
+ }
61
+ namespace Edge {
62
+ const id: string;
63
+ const Dashboard: string;
64
+ const Workflows: string;
65
+ const Traces: string;
66
+ const Testing: string;
67
+ }
68
+ }
69
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,OAAO,CAAC;AAEpD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,qBAAqB,CA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