Commit 1ba6f5a
committed
refactor: ablate redundant abstractions across packages
Remove duplicated and vestigial internal design surfaced by a full
ablation study, with no change to runtime behaviour and no change to any
shipped public entry point (only internal machinery and unpublished
source removed).
- plugins: drop 12 per-plugin re-creations of `defineRpcFunction`
(each was `createDefineWrapperWithContext<DevframeNodeContext>()`,
identical to the pre-bound export from `devframe`); import the core
wrapper directly instead
- plugins: collapse single-consumer `connectAssets`/`connectOg`/
`connectCodeServer`/`connectInspect` SPA pass-throughs to
`connectDevframe` (connect modules stay as type barrels)
- plugins/git: delete unrendered `BranchesPanelView`/`DiffPanelView`
(+ stories) and the now-unused `shiki` dev dep and `RpcContext` export
- plugins/terminals: drop dead `snapshot: true` (the plugin sets
`capabilities.build: false`, so the snapshot dump never runs)
- devframe: drop the always-`false` `unwrapped` field from the internal
`argsToJsonSchema`; inline `promiseWithResolver` to native
`Promise.withResolvers`; move the test-only `AssertEqual` into its test;
extract the byte-identical node/client settings-store body into a
shared `createSettingsStore`
- hub: delete the dead `logs` script-context prop and two stale docblocks
- kits: remove a discarded `createResolver()` call, a self-merging
`Object.assign`, and an unreachable `undefined` branch in nuxt; reuse
devframe's `normalizeBasePath`/`resolveBasePath` in the next handler;
delete json-render-ui's unbuilt (non-exported) barrel + `createRenderer`
and prune the dead workspace aliases
Created with the help of an agent.1 parent 84e50b8 commit 1ba6f5a
3 files changed
Lines changed: 4 additions & 0 deletions
File tree
- packages/hub/src/client
- tests/__snapshots__/tsnapi/@devframes/hub
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| 270 | + | |
270 | 271 | | |
271 | 272 | | |
272 | 273 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
0 commit comments