@valaxyjs/devtools 1.0.0 → 1.1.0
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/README.md +17 -2
- package/dist/client/assets/{VDCheckbox-BQsCYaxD.js → VDCheckbox-gxTXLn5b.js} +1 -1
- package/dist/client/assets/VDCodeBlock-BGKRf2g7.js +1 -0
- package/dist/client/assets/{VDNumberField-Can2q8VD.js → VDNumberField-BZ6FcLB3.js} +1 -1
- package/dist/client/assets/{VDPostListItem-BGlmD-N3.js → VDPostListItem-BUS63gtf.js} +1 -1
- package/dist/client/assets/{VDPostPanel-CjYE_B3I.js → VDPostPanel-WdBbP5dF.js} +1 -1
- package/dist/client/assets/{VDSelect-Cozhx4qY.js → VDSelect-BtVikUJS.js} +1 -1
- package/dist/client/assets/{VDToggleGroup-Ch8jnCMN.js → VDToggleGroup-78HmJc7e.js} +1 -1
- package/dist/client/assets/{addons-wN900N6P.js → addons-C_-hEQ-2.js} +1 -1
- package/dist/client/assets/{archives-DrTLr9Uc.js → archives-BrKuO4-D.js} +1 -1
- package/dist/client/assets/{batch-edit-tNwm0yaw.js → batch-edit-Dh6nC4Xz.js} +1 -1
- package/dist/client/assets/{browser-agent-rpc-BXhoSh1z-B_H6wwYe.js → browser-agent-rpc-BXhoSh1z-Cucy2MLn.js} +1 -1
- package/dist/client/assets/{categories-tEHj0fN0.js → categories-DSVLI193.js} +1 -1
- package/dist/client/assets/{collections-DZuCp-05.js → collections-OnSIoVHx.js} +1 -1
- package/dist/client/assets/{config-Di1Ylhm8.js → config-ZZGBYiPW.js} +1 -1
- package/dist/client/assets/{debug-ff8JDH7M.js → debug-CYsFt79M.js} +1 -1
- package/dist/client/assets/{editor-ySVA1M8V.js → editor-Bs7ZRgJA.js} +1 -1
- package/dist/client/assets/{index-qslCSpK8.js → index-BRqqPn9F.js} +2 -2
- package/dist/client/assets/{index-fPEmPwYD.css → index-CWQSP-Yn.css} +1 -1
- package/dist/client/assets/{pages-VHlqQIae.js → pages-d61NzKRt.js} +1 -1
- package/dist/client/assets/{posts-BePByYIU.js → posts-hNWOfrAz.js} +1 -1
- package/dist/client/assets/{rpc-CHB0xuhS.js → rpc-wZN2D89J.js} +2 -2
- package/dist/client/assets/{settings-DvvjModb.js → settings-7xwOL5Hb.js} +1 -1
- package/dist/client/assets/{tags-KCkr8YHU.js → tags-ASABTV6u.js} +1 -1
- package/dist/client/index.html +4 -4
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +7 -4
- package/dist/node/definition.d.mts +3 -1
- package/dist/node/definition.d.ts +3 -1
- package/dist/node/definition.mjs +25 -16
- package/dist/node/mcp.mjs +1 -1
- package/dist/shared/{devtools.BbttzjAw.mjs → devtools.B8j-R5wD.mjs} +1 -1
- package/dist/shared/{devtools.cHv3kjQy.d.mts → devtools.BMh6YpUM.d.mts} +7 -0
- package/dist/shared/{devtools.CY2Osfc0.d.ts → devtools.D2_E-yot.d.ts} +7 -0
- package/package.json +2 -2
- package/dist/client/assets/VDCodeBlock-Bt5aM9HW.js +0 -1
|
@@ -3,6 +3,8 @@ import { ServerFunctions, ClientOptions, ClientPostList, ClientCollectionData, C
|
|
|
3
3
|
import * as devframe_rpc from 'devframe/rpc';
|
|
4
4
|
import { RpcDefinitionsToFunctionsWithNamespace } from 'devframe/rpc';
|
|
5
5
|
import * as devframe from 'devframe';
|
|
6
|
+
import { OpenServiceApi } from '@devframes/service-open';
|
|
7
|
+
import { ShikiServiceApi } from '@devframes/service-shiki';
|
|
6
8
|
import { a as ValaxyDevtoolsManifest, V as ValaxyDevtoolsData } from './devtools.qCbHUUKc.js';
|
|
7
9
|
import * as v from 'valibot';
|
|
8
10
|
|
|
@@ -166,6 +168,11 @@ declare function createExtensionRpc(manifest: ReturnType<typeof createManifest>,
|
|
|
166
168
|
}, undefined>, devframe.DevframeNodeContext>];
|
|
167
169
|
declare module 'devframe' {
|
|
168
170
|
interface DevframeRpcServerFunctions extends RpcDefinitionsToFunctionsWithNamespace<'valaxy', ReturnType<typeof createRpcFunctions>> {
|
|
171
|
+
'valaxy:service:open:open-in-editor': OpenServiceApi['openInEditor'];
|
|
172
|
+
'valaxy:service:open:open-in-finder': OpenServiceApi['openInFinder'];
|
|
173
|
+
'valaxy:service:shiki:highlight': ShikiServiceApi['highlight'];
|
|
174
|
+
'valaxy:service:shiki:code-to-hast': ShikiServiceApi['codeToHast'];
|
|
175
|
+
'valaxy:service:shiki:code-to-tokens': ShikiServiceApi['codeToTokens'];
|
|
169
176
|
}
|
|
170
177
|
}
|
|
171
178
|
declare module 'devframe' {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@valaxyjs/devtools",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.1.0",
|
|
5
5
|
"description": "DevTools for Valaxy",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@devframes/agentic": "1.2.0",
|
|
54
54
|
"@devframes/service-open": "1.2.0",
|
|
55
55
|
"@devframes/service-shiki": "1.2.0",
|
|
56
|
-
"@valaxyjs/utils": "1.
|
|
56
|
+
"@valaxyjs/utils": "1.1.0",
|
|
57
57
|
"@vitejs/devtools-kit": "0.7.5",
|
|
58
58
|
"consola": "^3.4.2",
|
|
59
59
|
"cross-spawn": "^7.0.6",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{En as e,In as t,L as n,O as r,Pn as i,St as a,T as o,Xt as s,ar as c,lr as l}from"./app-djZMc7np.js";import{n as u,r as d}from"./rpc-CHB0xuhS.js";import{t as f}from"./index-qslCSpK8.js";function p(t,n=`text`){let r=e(``);return s([()=>i(t),()=>i(n),u],async([e,t,n],i,a)=>{r.value=``;let o=!0;if(a(()=>{o=!1}),e&&n===`connected`)try{let n=await d();if(!o)return;let i=n.services.get(`@devframes/service-shiki`);if(!i)return;let a=await i.rpc.call(`highlight`,{code:e,lang:t});o&&(r.value=a.html)}catch{}},{immediate:!0}),r}var m=[`innerHTML`],h={key:1,tabindex:`0`},g=f(n({__name:`VDCodeBlock`,props:{code:{},lang:{default:`text`},compact:{type:Boolean},wrap:{type:Boolean,default:!0}},setup(e){let n=e,i=p(()=>n.code,()=>n.lang);return(n,s)=>(a(),r(`div`,{class:c([`vd-code min-w-0`,{"vd-code-compact":e.compact,"vd-code-nowrap":!e.wrap}])},[t(i)?(a(),r(`div`,{key:0,innerHTML:t(i)},null,8,m)):(a(),r(`pre`,h,[o(`code`,null,l(e.code),1)]))],2))}}),[[`__scopeId`,`data-v-9fbc0da3`]]);export{g as t};
|