devframe 0.9.0-beta.4 → 0.9.0-beta.5
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.
- package/dist/{_shared-CGPVmXUM.mjs → _shared-CKZPvSrN.mjs} +2 -1
- package/dist/{_shared-Bm8p4-fD.d.mts → _shared-QkI6ljJS.d.mts} +2 -2
- package/dist/adapters/build.d.mts +10 -12
- package/dist/adapters/build.mjs +23 -27
- package/dist/adapters/cac.d.mts +1 -1
- package/dist/adapters/cac.mjs +3 -4
- package/dist/adapters/dev.d.mts +19 -5
- package/dist/adapters/dev.mjs +2 -2
- package/dist/adapters/embedded.d.mts +1 -1
- package/dist/adapters/initiate.d.mts +4 -3
- package/dist/adapters/initiate.mjs +1 -1
- package/dist/adapters/mcp.d.mts +1 -1
- package/dist/adapters/mcp.mjs +1 -1
- package/dist/cli/main.mjs +2 -2
- package/dist/client/index.d.mts +1 -1
- package/dist/client/index.mjs +2 -1175
- package/dist/constants.d.mts +1 -2
- package/dist/constants.mjs +1 -2
- package/dist/{context-DV4uWieM.d.mts → context-CQkRTbAc.d.mts} +1 -1
- package/dist/{context-b6iSomtv.mjs → context-D0HD0F7C.mjs} +19 -7
- package/dist/{context-CMSryXs-.mjs → context-D0jErmlx.mjs} +1 -1
- package/dist/{dev-4xjiynUD.mjs → dev-QEuT8SOF.mjs} +15 -9
- package/dist/{devframe-5oblos7I.d.mts → devframe-Cfx6doi4.d.mts} +41 -64
- package/dist/{diagnostics-C7IGWppM.mjs → diagnostics-DEuH3P5O.mjs} +32 -0
- package/dist/{host-agent-BBkKT27Q.mjs → host-agent-C5HjzfBz.mjs} +41 -3
- package/dist/{host-h3-CzCZwtuV.mjs → host-h3-Crkzm42q.mjs} +2 -2
- package/dist/{http-Z0w9baEe.mjs → http-CVwj7b4g.mjs} +2 -2
- package/dist/{index-BzDl02lt.d.mts → index-MYi1SZVL.d.mts} +2 -2
- package/dist/index.d.mts +3 -2
- package/dist/{instance-registry-Du_hbx-j.mjs → instance-registry-M2p-z6xE.mjs} +1 -1
- package/dist/{instance-shell-B0TwOxCl.mjs → instance-shell-DJ8s-MFw.mjs} +5 -5
- package/dist/{instance-shell-B-BSVp37.d.mts → instance-shell-D_UA0Idz.d.mts} +2 -2
- package/dist/internal/index.d.mts +72 -10
- package/dist/internal/index.mjs +7 -7
- package/dist/node/auth.d.mts +2 -2
- package/dist/node/auth.mjs +1 -1
- package/dist/node/hub-internals.d.mts +2 -2
- package/dist/node/hub-internals.mjs +2 -2
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/recipes/common-rpc-functions.d.mts +1 -1
- package/dist/recipes/interactive-auth.d.mts +2 -2
- package/dist/recipes/interactive-auth.mjs +2 -2
- package/dist/remote-assets-DclsYyoL.d.mts +106 -0
- package/dist/rpc/transports/ws-bun.d.mts +1 -1
- package/dist/{rpc-core-B4Qm66Qt.d.mts → rpc-core-C8JQ3p7A.d.mts} +2 -2
- package/dist/{rpc-core-Cva-0pw0.mjs → rpc-core-IhcWl_xn.mjs} +1 -1
- package/dist/state-Cc1IeSmQ.mjs +1291 -0
- package/dist/storage-BVuipbGS.mjs +137 -0
- package/dist/types/index.d.mts +3 -2
- package/dist/utils/events.d.mts +1 -1
- package/dist/utils/open.d.mts +2 -10
- package/dist/utils/open.mjs +56 -1
- package/dist/utils/remote-assets.d.mts +15 -0
- package/dist/utils/remote-assets.mjs +309 -0
- package/dist/utils/serve-static.d.mts +13 -5
- package/dist/utils/serve-static.mjs +103 -9
- package/dist/utils/shared-state.d.mts +1 -1
- package/dist/utils/streaming-channel.d.mts +1 -1
- package/package.json +2 -3
- package/skills/devframe/SKILL.md +4 -5
- package/dist/open-Dz4V4irZ.mjs +0 -547
- package/dist/state-BeUHDDjk.mjs +0 -108
- package/dist/storage-CaUVrBrG.mjs +0 -1122
- package/skills/devframe/templates/spa-devframe.ts +0 -38
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// Devframe with setupBrowser + SPA query-loader — deployable as a static site.
|
|
2
|
-
// Host adapters (e.g. the `vite` adapter for Vite DevTools) auto-derive their
|
|
3
|
-
// mount entry from `id` / `name` / `icon`.
|
|
4
|
-
import { defineDevframe, defineRpcFunction } from 'devframe'
|
|
5
|
-
// Recommended: source version/packageName/homepage/description from your
|
|
6
|
-
// package.json so the published metadata stays in sync. The import-attribute
|
|
7
|
-
// form resolves under both bundlers and Node's native TypeScript execution.
|
|
8
|
-
import pkg from '../package.json' with { type: 'json' }
|
|
9
|
-
import * as v from 'valibot'
|
|
10
|
-
|
|
11
|
-
export default defineDevframe({
|
|
12
|
-
id: 'my-inspector',
|
|
13
|
-
name: 'My Inspector',
|
|
14
|
-
version: pkg.version,
|
|
15
|
-
packageName: pkg.name,
|
|
16
|
-
homepage: pkg.homepage,
|
|
17
|
-
description: pkg.description,
|
|
18
|
-
icon: 'ph:magnifying-glass-duotone',
|
|
19
|
-
setup(ctx) {
|
|
20
|
-
const my = ctx.scope('my-inspector')
|
|
21
|
-
my.rpc.register(defineRpcFunction({
|
|
22
|
-
name: 'analyze', // -> my-inspector:analyze
|
|
23
|
-
type: 'query',
|
|
24
|
-
args: [v.object({ url: v.string() })],
|
|
25
|
-
returns: v.object({ url: v.string(), verdict: v.literal('ok') }),
|
|
26
|
-
handler: ({ url }: { url: string }) => {
|
|
27
|
-
// Server-side implementation (used by CLI/build adapters).
|
|
28
|
-
return { url, verdict: 'ok' as const }
|
|
29
|
-
},
|
|
30
|
-
}))
|
|
31
|
-
},
|
|
32
|
-
setupBrowser() {
|
|
33
|
-
// Browser-side implementation — used by the SPA adapter so the
|
|
34
|
-
// deployed static site can answer RPC without a server.
|
|
35
|
-
// (Wire up an in-browser handler here once the SPA adapter lands.)
|
|
36
|
-
},
|
|
37
|
-
spa: { loader: 'query' },
|
|
38
|
-
})
|