@ubean/devtools 0.7.11 → 0.7.13
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/client/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<link rel="icon" href="https://img.soybeanjs.dev/logo-ubean.svg?v=202608192144" type="image/svg+xml" />
|
|
7
7
|
<title>Ubean DevTools</title>
|
|
8
|
-
<script type="module" crossorigin src="./assets/index-
|
|
8
|
+
<script type="module" crossorigin src="./assets/index-DQUIF836.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="./assets/index-DtJRaHHQ.css">
|
|
10
10
|
</head>
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ubean/devtools",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
4
4
|
"description": "DevTools for the ubean framework — server middleware, RPC, and the iframe SPA client",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"@codemirror/state": "6.7.6",
|
|
28
28
|
"@codemirror/theme-one-dark": "6.1.3",
|
|
29
29
|
"@codemirror/view": "6.43.15",
|
|
30
|
-
"@devframes/hub": "^1.
|
|
31
|
-
"@devframes/hub-ui": "^1.
|
|
32
|
-
"@devframes/vite": "^1.
|
|
30
|
+
"@devframes/hub": "^1.3.0",
|
|
31
|
+
"@devframes/hub-ui": "^1.3.0",
|
|
32
|
+
"@devframes/vite": "^1.3.0",
|
|
33
33
|
"@soybeanjs/unocss-preset": "^0.2.0",
|
|
34
34
|
"@types/node": "^26.6.6",
|
|
35
|
-
"@vean/ui": "^0.51.
|
|
36
|
-
"@vean/unocss": "^0.51.
|
|
35
|
+
"@vean/ui": "^0.51.4",
|
|
36
|
+
"@vean/unocss": "^0.51.4",
|
|
37
37
|
"@vitejs/plugin-vue": "^6.0.10",
|
|
38
38
|
"@xterm/addon-fit": "^0.11.0",
|
|
39
39
|
"@xterm/xterm": "^6.0.0",
|
|
40
|
-
"devframe": "^1.
|
|
40
|
+
"devframe": "^1.3.0",
|
|
41
41
|
"hono": "4.13.14",
|
|
42
42
|
"typescript": "npm:typescript-native-bridge@latest",
|
|
43
43
|
"unocss": "^66.12.0",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
}
|
|
59
59
|
},
|
|
60
60
|
"optionalDependencies": {
|
|
61
|
-
"@ai-sdk/openai-compatible": "3.0.
|
|
62
|
-
"ai": "7.0.
|
|
61
|
+
"@ai-sdk/openai-compatible": "3.0.82",
|
|
62
|
+
"ai": "7.0.159"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"build": "pnpm run build:server && pnpm run build:client",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as e}from"./index-BPu7ugSA.js";var t=Symbol.for(`devframe:browser-agent-registry`),{tools:n,listeners:r}=globalThis[t]??={tools:new Map,listeners:new Set};function i(){return[...n.values()]}function a(e){return r.add(e),()=>r.delete(e)}var o=`devframe:client-id`,s;function c(t=globalThis.window){try{let n=t?.sessionStorage;if(n){let t=n.getItem(o);return t||(t=e(),n.setItem(o,t)),t}}catch{}return s??=e(),s}function l(e){e.client.register({name:`devframe:agent:invoke-client-tool`,type:`action`,jsonSerializable:!0,handler:async(e,t)=>{let n=i().find(t=>t.id===e);if(!n)throw Error(`[devframe/agent] browser tool "${e}" not found`);return await n.invoke(t)}});let t=!1,n=!1,r=0,o=()=>{t||n||(t=!0,queueMicrotask(async()=>{if(t=!1,n)return;let a=i().map(({invoke:e,...t})=>t);(a.length!==0||r!==0)&&(r=a.length,await e.callOptional(`devframe:agent:sync-client-tools`,c(),a).catch(()=>{}))}))},s=a(o),l=e.events.on(`connection:status`,e=>{e===`connected`&&o()});return o(),()=>{n=!0,s(),l()}}export{l as setupBrowserAgentRpcBridge};
|