Commit 1832a08
committed
feat: data-inspector plugin, cross-plugin services, storage scopes
Promotes the data-inspector spike to a real plugin and lands the two core
primitives it design-required:
devframe core:
- ctx.services — typed, namespaced cross-plugin service registry
(provide/get/whenAvailable, augmentable DevframeServicesRegistry,
DF0037 on duplicate providers); whenAvailable absorbs setup-order
differences between provider and consumer
- getStorageDir scopes become workspace/project/global: workspace is the
committable .devframe/ dir (team-shared), project is the per-checkout
node_modules dir (the old 'workspace'), global stays per-user; all
hosts and call sites migrated (settings and dock prefs now persist
under 'project')
@devframes/plugin-data-inspector:
- process-global source registry (globalThis Symbol store): sources are
{ id, title, description?, icon?, data: value | (async) factory,
static?, queries? }; registerDataSource() needs no context, the same
store is provided as the 'devframes:plugin:data-inspector:sources'
context service, and changes broadcast to connected UIs
- isomorphic engine (normalize/skeleton/jora bridges) — the Map/Set
methods duck-type live collections AND their normalized tags, so
saved queries stay portable between live and static modes
- Vue + @antfu/design SPA with discovery's CodeMirror jora editor
(remote stat-mode suggestions), struct viewer with type badges,
shape panel, filters, per-source drafts, URL state, saved queries
(workspace/project scopes via the new storage classes)
- standalone CLI: inspect .json/.jsonl files, attach to a process
running the in-process agent (loopback + pre-shared-token auth by
default, discovery file handshake), and build self-contained static
exports that run the engine client-side
- unit tests for registry/engine/saved-queries/file loaders; core
services tests; API snapshots updated
The prototype example is replaced by the plugin; the minimal Vite hub
dogfoods it with the live ViteDevServer registered as a source.1 parent 7af5d63 commit 1832a08
107 files changed
Lines changed: 3040 additions & 1134 deletions
File tree
- docs
- errors
- guide
- examples
- minimal-next-devframe-hub/src/client/devframe
- minimal-vite-devframe-hub
- src
- prototype-data-inspector
- .devframe/data-inspector
- src
- spa
- components
- composables
- storybook-hub/src
- packages
- devframe/src
- adapters/mcp
- node
- __tests__
- types
- hub/src/node
- plugins/data-inspector
- src
- agent
- client
- engine
- node
- registry
- rpc
- functions
- spa
- components
- composables
- test
- tests/__snapshots__/tsnapi
- @devframes/plugin-data-inspector
- devframe
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
120 | 146 | | |
121 | 147 | | |
122 | 148 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
183 | 185 | | |
184 | 186 | | |
185 | 187 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
21 | 51 | | |
22 | 52 | | |
23 | 53 | | |
| |||
28 | 58 | | |
29 | 59 | | |
30 | 60 | | |
| 61 | + | |
31 | 62 | | |
32 | 63 | | |
33 | 64 | | |
| |||
Lines changed: 0 additions & 11 deletions
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments