@nuxt/devtools-kit 4.0.0-alpha.3 → 4.0.0-alpha.6
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/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/shared/{devtools-kit.CijV1blW.d.cts → devtools-kit.BwQLAI1z.d.cts} +25 -24
- package/dist/shared/{devtools-kit.CijV1blW.d.mts → devtools-kit.BwQLAI1z.d.mts} +25 -24
- package/dist/shared/{devtools-kit.CijV1blW.d.ts → devtools-kit.BwQLAI1z.d.ts} +25 -24
- package/dist/types.d.cts +3 -2
- package/dist/types.d.mts +3 -2
- package/dist/types.d.ts +3 -2
- package/package.json +7 -7
package/dist/index.d.cts
CHANGED
|
@@ -2,8 +2,9 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
import { BirpcGroup } from 'birpc';
|
|
3
3
|
import { ChildProcess } from 'node:child_process';
|
|
4
4
|
import { Result } from 'tinyexec';
|
|
5
|
-
import {
|
|
5
|
+
import { r as ModuleCustomTab, O as NuxtDevtoolsInfo, a4 as SubprocessOptions, a9 as TerminalState } from './shared/devtools-kit.BwQLAI1z.cjs';
|
|
6
6
|
import 'vue';
|
|
7
|
+
import '@vitejs/devtools-kit';
|
|
7
8
|
import 'nuxt/schema';
|
|
8
9
|
import 'unimport';
|
|
9
10
|
import 'vue-router';
|
package/dist/index.d.mts
CHANGED
|
@@ -2,8 +2,9 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
import { BirpcGroup } from 'birpc';
|
|
3
3
|
import { ChildProcess } from 'node:child_process';
|
|
4
4
|
import { Result } from 'tinyexec';
|
|
5
|
-
import {
|
|
5
|
+
import { r as ModuleCustomTab, O as NuxtDevtoolsInfo, a4 as SubprocessOptions, a9 as TerminalState } from './shared/devtools-kit.BwQLAI1z.mjs';
|
|
6
6
|
import 'vue';
|
|
7
|
+
import '@vitejs/devtools-kit';
|
|
7
8
|
import 'nuxt/schema';
|
|
8
9
|
import 'unimport';
|
|
9
10
|
import 'vue-router';
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import * as _nuxt_schema from '@nuxt/schema';
|
|
|
2
2
|
import { BirpcGroup } from 'birpc';
|
|
3
3
|
import { ChildProcess } from 'node:child_process';
|
|
4
4
|
import { Result } from 'tinyexec';
|
|
5
|
-
import {
|
|
5
|
+
import { r as ModuleCustomTab, O as NuxtDevtoolsInfo, a4 as SubprocessOptions, a9 as TerminalState } from './shared/devtools-kit.BwQLAI1z.js';
|
|
6
6
|
import 'vue';
|
|
7
|
+
import '@vitejs/devtools-kit';
|
|
7
8
|
import 'nuxt/schema';
|
|
8
9
|
import 'unimport';
|
|
9
10
|
import 'vue-router';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VNode, MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { DevToolsNodeContext } from '@vitejs/devtools-kit';
|
|
2
3
|
import { BirpcGroup } from 'birpc';
|
|
3
4
|
import { Component, NuxtOptions, NuxtPage, NuxtLayout, NuxtApp, NuxtDebugModuleMutationRecord, Nuxt } from 'nuxt/schema';
|
|
4
5
|
import { Import, UnimportMeta } from 'unimport';
|
|
@@ -595,7 +596,7 @@ interface TerminalState extends TerminalInfo {
|
|
|
595
596
|
interface ServerFunctions {
|
|
596
597
|
getServerConfig: () => NuxtOptions;
|
|
597
598
|
getServerDebugContext: () => Promise<ServerDebugContext | undefined>;
|
|
598
|
-
getServerData: (
|
|
599
|
+
getServerData: () => Promise<NuxtServerData>;
|
|
599
600
|
getServerRuntimeConfig: () => Record<string, any>;
|
|
600
601
|
getModuleOptions: () => ModuleOptions;
|
|
601
602
|
getComponents: () => Component[];
|
|
@@ -614,36 +615,36 @@ interface ServerFunctions {
|
|
|
614
615
|
clearOptions: () => Promise<void>;
|
|
615
616
|
checkForUpdateFor: (name: string) => Promise<PackageUpdateInfo | undefined>;
|
|
616
617
|
getNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<string[] | undefined>;
|
|
617
|
-
runNpmCommand: (
|
|
618
|
+
runNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<{
|
|
618
619
|
processId: string;
|
|
619
620
|
} | undefined>;
|
|
620
621
|
getTerminals: () => TerminalInfo[];
|
|
621
|
-
getTerminalDetail: (
|
|
622
|
-
runTerminalAction: (
|
|
622
|
+
getTerminalDetail: (id: string) => Promise<TerminalInfo | undefined>;
|
|
623
|
+
runTerminalAction: (id: string, action: TerminalAction) => Promise<boolean>;
|
|
623
624
|
getStorageMounts: () => Promise<StorageMounts>;
|
|
624
625
|
getStorageKeys: (base?: string) => Promise<string[]>;
|
|
625
|
-
getStorageItem: (
|
|
626
|
-
setStorageItem: (
|
|
627
|
-
removeStorageItem: (
|
|
626
|
+
getStorageItem: (key: string) => Promise<StorageValue>;
|
|
627
|
+
setStorageItem: (key: string, value: StorageValue) => Promise<void>;
|
|
628
|
+
removeStorageItem: (key: string) => Promise<void>;
|
|
628
629
|
getAnalyzeBuildInfo: () => Promise<AnalyzeBuildsInfo>;
|
|
629
630
|
generateAnalyzeBuildName: () => Promise<string>;
|
|
630
|
-
startAnalyzeBuild: (
|
|
631
|
-
clearAnalyzeBuilds: (
|
|
632
|
-
getImageMeta: (
|
|
633
|
-
getTextAssetContent: (
|
|
634
|
-
writeStaticAssets: (
|
|
635
|
-
deleteStaticAsset: (
|
|
636
|
-
renameStaticAsset: (
|
|
631
|
+
startAnalyzeBuild: (name: string) => Promise<string>;
|
|
632
|
+
clearAnalyzeBuilds: (names?: string[]) => Promise<void>;
|
|
633
|
+
getImageMeta: (filepath: string) => Promise<ImageMeta | undefined>;
|
|
634
|
+
getTextAssetContent: (filepath: string, limit?: number) => Promise<string | undefined>;
|
|
635
|
+
writeStaticAssets: (file: AssetEntry[], folder: string) => Promise<string[]>;
|
|
636
|
+
deleteStaticAsset: (filepath: string) => Promise<void>;
|
|
637
|
+
renameStaticAsset: (oldPath: string, newPath: string) => Promise<void>;
|
|
637
638
|
telemetryEvent: (payload: object, immediate?: boolean) => void;
|
|
638
639
|
customTabAction: (name: string, action: number) => Promise<boolean>;
|
|
639
|
-
enablePages: (
|
|
640
|
+
enablePages: () => Promise<void>;
|
|
640
641
|
openInEditor: (filepath: string) => Promise<boolean>;
|
|
641
|
-
restartNuxt: (
|
|
642
|
-
installNuxtModule: (
|
|
643
|
-
uninstallNuxtModule: (
|
|
642
|
+
restartNuxt: (hard?: boolean) => Promise<void>;
|
|
643
|
+
installNuxtModule: (name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
644
|
+
uninstallNuxtModule: (name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
644
645
|
enableTimeline: (dry: boolean) => Promise<[string, string]>;
|
|
645
646
|
requestForAuth: (info?: string, origin?: string) => Promise<void>;
|
|
646
|
-
verifyAuthToken: (
|
|
647
|
+
verifyAuthToken: () => Promise<boolean>;
|
|
647
648
|
}
|
|
648
649
|
interface ClientFunctions {
|
|
649
650
|
refresh: (event: ClientUpdateEvent) => void;
|
|
@@ -694,6 +695,10 @@ interface NuxtDevtoolsServerContext {
|
|
|
694
695
|
nuxt: Nuxt;
|
|
695
696
|
options: ModuleOptions;
|
|
696
697
|
rpc: NuxtDevtoolsRpc;
|
|
698
|
+
/**
|
|
699
|
+
* The Vite DevTools Kit context, available after connection.
|
|
700
|
+
*/
|
|
701
|
+
devtoolsKit: DevToolsNodeContext | undefined;
|
|
697
702
|
/**
|
|
698
703
|
* Hook to open file in editor
|
|
699
704
|
*/
|
|
@@ -702,10 +707,6 @@ interface NuxtDevtoolsServerContext {
|
|
|
702
707
|
* Invalidate client cache for a function and ask for re-fetching
|
|
703
708
|
*/
|
|
704
709
|
refresh: (event: keyof ServerFunctions) => void;
|
|
705
|
-
/**
|
|
706
|
-
* @deprecated Auth is now handled by Vite DevTools. This is a noop.
|
|
707
|
-
*/
|
|
708
|
-
ensureDevAuthToken: (token: string) => Promise<void>;
|
|
709
710
|
extendServerRpc: <ClientFunctions extends object = Record<string, unknown>, ServerFunctions extends object = Record<string, unknown>>(name: string, functions: ServerFunctions) => BirpcGroup<ClientFunctions, ServerFunctions>;
|
|
710
711
|
}
|
|
711
712
|
interface NuxtDevtoolsInfo {
|
|
@@ -788,4 +789,4 @@ declare module '@nuxt/schema' {
|
|
|
788
789
|
}
|
|
789
790
|
}
|
|
790
791
|
|
|
791
|
-
export type {
|
|
792
|
+
export type { ServerFunctions as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleType as D, ModuleVNodeView as E, ModuleView as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, NpmCommandType as J, NuxtDevToolsOptions as K, LoadingTimeMetric as L, MaintainerInfo as M, NpmCommandOptions as N, NuxtDevtoolsInfo as O, NuxtDevtoolsRpc as P, NuxtDevtoolsServerContext as Q, NuxtServerData as R, PackageManagerName as S, PackageUpdateInfo as T, Payload as U, PluginInfoWithMetic as V, PluginMetric as W, RouteInfo as X, ScannedNitroTasks as Y, ServerDebugContext as Z, ServerDebugModuleMutationRecord as _, AnalyzeBuildsInfo as a, ServerRouteInfo as a0, ServerRouteInput as a1, ServerRouteInputType as a2, ServerTaskInfo as a3, SubprocessOptions as a4, TabCategory as a5, TerminalAction as a6, TerminalBase as a7, TerminalInfo as a8, TerminalState as a9, VSCodeIntegrationOptions as aa, VSCodeTunnelOptions as ab, VueInspectorClient as ac, VueInspectorData as ad, AssetEntry as b, AssetInfo as c, AssetType as d, AutoImportsWithMetadata as e, ClientFunctions as f, ClientUpdateEvent as g, CodeServerOptions as h, CodeServerType as i, CodeSnippet as j, CompatibilityStatus as k, ComponentRelationship as l, ComponentWithRelationships as m, InstallModuleReturn as n, InstalledModuleInfo as o, ModuleBuiltinTab as p, ModuleCompatibility as q, ModuleCustomTab as r, ModuleIframeTabLazyOptions as s, ModuleIframeView as t, ModuleLaunchAction as u, ModuleLaunchView as v, ModuleOptions as w, ModuleStaticInfo as x, ModuleStats as y, ModuleTabInfo as z };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VNode, MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { DevToolsNodeContext } from '@vitejs/devtools-kit';
|
|
2
3
|
import { BirpcGroup } from 'birpc';
|
|
3
4
|
import { Component, NuxtOptions, NuxtPage, NuxtLayout, NuxtApp, NuxtDebugModuleMutationRecord, Nuxt } from 'nuxt/schema';
|
|
4
5
|
import { Import, UnimportMeta } from 'unimport';
|
|
@@ -595,7 +596,7 @@ interface TerminalState extends TerminalInfo {
|
|
|
595
596
|
interface ServerFunctions {
|
|
596
597
|
getServerConfig: () => NuxtOptions;
|
|
597
598
|
getServerDebugContext: () => Promise<ServerDebugContext | undefined>;
|
|
598
|
-
getServerData: (
|
|
599
|
+
getServerData: () => Promise<NuxtServerData>;
|
|
599
600
|
getServerRuntimeConfig: () => Record<string, any>;
|
|
600
601
|
getModuleOptions: () => ModuleOptions;
|
|
601
602
|
getComponents: () => Component[];
|
|
@@ -614,36 +615,36 @@ interface ServerFunctions {
|
|
|
614
615
|
clearOptions: () => Promise<void>;
|
|
615
616
|
checkForUpdateFor: (name: string) => Promise<PackageUpdateInfo | undefined>;
|
|
616
617
|
getNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<string[] | undefined>;
|
|
617
|
-
runNpmCommand: (
|
|
618
|
+
runNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<{
|
|
618
619
|
processId: string;
|
|
619
620
|
} | undefined>;
|
|
620
621
|
getTerminals: () => TerminalInfo[];
|
|
621
|
-
getTerminalDetail: (
|
|
622
|
-
runTerminalAction: (
|
|
622
|
+
getTerminalDetail: (id: string) => Promise<TerminalInfo | undefined>;
|
|
623
|
+
runTerminalAction: (id: string, action: TerminalAction) => Promise<boolean>;
|
|
623
624
|
getStorageMounts: () => Promise<StorageMounts>;
|
|
624
625
|
getStorageKeys: (base?: string) => Promise<string[]>;
|
|
625
|
-
getStorageItem: (
|
|
626
|
-
setStorageItem: (
|
|
627
|
-
removeStorageItem: (
|
|
626
|
+
getStorageItem: (key: string) => Promise<StorageValue>;
|
|
627
|
+
setStorageItem: (key: string, value: StorageValue) => Promise<void>;
|
|
628
|
+
removeStorageItem: (key: string) => Promise<void>;
|
|
628
629
|
getAnalyzeBuildInfo: () => Promise<AnalyzeBuildsInfo>;
|
|
629
630
|
generateAnalyzeBuildName: () => Promise<string>;
|
|
630
|
-
startAnalyzeBuild: (
|
|
631
|
-
clearAnalyzeBuilds: (
|
|
632
|
-
getImageMeta: (
|
|
633
|
-
getTextAssetContent: (
|
|
634
|
-
writeStaticAssets: (
|
|
635
|
-
deleteStaticAsset: (
|
|
636
|
-
renameStaticAsset: (
|
|
631
|
+
startAnalyzeBuild: (name: string) => Promise<string>;
|
|
632
|
+
clearAnalyzeBuilds: (names?: string[]) => Promise<void>;
|
|
633
|
+
getImageMeta: (filepath: string) => Promise<ImageMeta | undefined>;
|
|
634
|
+
getTextAssetContent: (filepath: string, limit?: number) => Promise<string | undefined>;
|
|
635
|
+
writeStaticAssets: (file: AssetEntry[], folder: string) => Promise<string[]>;
|
|
636
|
+
deleteStaticAsset: (filepath: string) => Promise<void>;
|
|
637
|
+
renameStaticAsset: (oldPath: string, newPath: string) => Promise<void>;
|
|
637
638
|
telemetryEvent: (payload: object, immediate?: boolean) => void;
|
|
638
639
|
customTabAction: (name: string, action: number) => Promise<boolean>;
|
|
639
|
-
enablePages: (
|
|
640
|
+
enablePages: () => Promise<void>;
|
|
640
641
|
openInEditor: (filepath: string) => Promise<boolean>;
|
|
641
|
-
restartNuxt: (
|
|
642
|
-
installNuxtModule: (
|
|
643
|
-
uninstallNuxtModule: (
|
|
642
|
+
restartNuxt: (hard?: boolean) => Promise<void>;
|
|
643
|
+
installNuxtModule: (name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
644
|
+
uninstallNuxtModule: (name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
644
645
|
enableTimeline: (dry: boolean) => Promise<[string, string]>;
|
|
645
646
|
requestForAuth: (info?: string, origin?: string) => Promise<void>;
|
|
646
|
-
verifyAuthToken: (
|
|
647
|
+
verifyAuthToken: () => Promise<boolean>;
|
|
647
648
|
}
|
|
648
649
|
interface ClientFunctions {
|
|
649
650
|
refresh: (event: ClientUpdateEvent) => void;
|
|
@@ -694,6 +695,10 @@ interface NuxtDevtoolsServerContext {
|
|
|
694
695
|
nuxt: Nuxt;
|
|
695
696
|
options: ModuleOptions;
|
|
696
697
|
rpc: NuxtDevtoolsRpc;
|
|
698
|
+
/**
|
|
699
|
+
* The Vite DevTools Kit context, available after connection.
|
|
700
|
+
*/
|
|
701
|
+
devtoolsKit: DevToolsNodeContext | undefined;
|
|
697
702
|
/**
|
|
698
703
|
* Hook to open file in editor
|
|
699
704
|
*/
|
|
@@ -702,10 +707,6 @@ interface NuxtDevtoolsServerContext {
|
|
|
702
707
|
* Invalidate client cache for a function and ask for re-fetching
|
|
703
708
|
*/
|
|
704
709
|
refresh: (event: keyof ServerFunctions) => void;
|
|
705
|
-
/**
|
|
706
|
-
* @deprecated Auth is now handled by Vite DevTools. This is a noop.
|
|
707
|
-
*/
|
|
708
|
-
ensureDevAuthToken: (token: string) => Promise<void>;
|
|
709
710
|
extendServerRpc: <ClientFunctions extends object = Record<string, unknown>, ServerFunctions extends object = Record<string, unknown>>(name: string, functions: ServerFunctions) => BirpcGroup<ClientFunctions, ServerFunctions>;
|
|
710
711
|
}
|
|
711
712
|
interface NuxtDevtoolsInfo {
|
|
@@ -788,4 +789,4 @@ declare module '@nuxt/schema' {
|
|
|
788
789
|
}
|
|
789
790
|
}
|
|
790
791
|
|
|
791
|
-
export type {
|
|
792
|
+
export type { ServerFunctions as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleType as D, ModuleVNodeView as E, ModuleView as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, NpmCommandType as J, NuxtDevToolsOptions as K, LoadingTimeMetric as L, MaintainerInfo as M, NpmCommandOptions as N, NuxtDevtoolsInfo as O, NuxtDevtoolsRpc as P, NuxtDevtoolsServerContext as Q, NuxtServerData as R, PackageManagerName as S, PackageUpdateInfo as T, Payload as U, PluginInfoWithMetic as V, PluginMetric as W, RouteInfo as X, ScannedNitroTasks as Y, ServerDebugContext as Z, ServerDebugModuleMutationRecord as _, AnalyzeBuildsInfo as a, ServerRouteInfo as a0, ServerRouteInput as a1, ServerRouteInputType as a2, ServerTaskInfo as a3, SubprocessOptions as a4, TabCategory as a5, TerminalAction as a6, TerminalBase as a7, TerminalInfo as a8, TerminalState as a9, VSCodeIntegrationOptions as aa, VSCodeTunnelOptions as ab, VueInspectorClient as ac, VueInspectorData as ad, AssetEntry as b, AssetInfo as c, AssetType as d, AutoImportsWithMetadata as e, ClientFunctions as f, ClientUpdateEvent as g, CodeServerOptions as h, CodeServerType as i, CodeSnippet as j, CompatibilityStatus as k, ComponentRelationship as l, ComponentWithRelationships as m, InstallModuleReturn as n, InstalledModuleInfo as o, ModuleBuiltinTab as p, ModuleCompatibility as q, ModuleCustomTab as r, ModuleIframeTabLazyOptions as s, ModuleIframeView as t, ModuleLaunchAction as u, ModuleLaunchView as v, ModuleOptions as w, ModuleStaticInfo as x, ModuleStats as y, ModuleTabInfo as z };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VNode, MaybeRefOrGetter } from 'vue';
|
|
2
|
+
import { DevToolsNodeContext } from '@vitejs/devtools-kit';
|
|
2
3
|
import { BirpcGroup } from 'birpc';
|
|
3
4
|
import { Component, NuxtOptions, NuxtPage, NuxtLayout, NuxtApp, NuxtDebugModuleMutationRecord, Nuxt } from 'nuxt/schema';
|
|
4
5
|
import { Import, UnimportMeta } from 'unimport';
|
|
@@ -595,7 +596,7 @@ interface TerminalState extends TerminalInfo {
|
|
|
595
596
|
interface ServerFunctions {
|
|
596
597
|
getServerConfig: () => NuxtOptions;
|
|
597
598
|
getServerDebugContext: () => Promise<ServerDebugContext | undefined>;
|
|
598
|
-
getServerData: (
|
|
599
|
+
getServerData: () => Promise<NuxtServerData>;
|
|
599
600
|
getServerRuntimeConfig: () => Record<string, any>;
|
|
600
601
|
getModuleOptions: () => ModuleOptions;
|
|
601
602
|
getComponents: () => Component[];
|
|
@@ -614,36 +615,36 @@ interface ServerFunctions {
|
|
|
614
615
|
clearOptions: () => Promise<void>;
|
|
615
616
|
checkForUpdateFor: (name: string) => Promise<PackageUpdateInfo | undefined>;
|
|
616
617
|
getNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<string[] | undefined>;
|
|
617
|
-
runNpmCommand: (
|
|
618
|
+
runNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<{
|
|
618
619
|
processId: string;
|
|
619
620
|
} | undefined>;
|
|
620
621
|
getTerminals: () => TerminalInfo[];
|
|
621
|
-
getTerminalDetail: (
|
|
622
|
-
runTerminalAction: (
|
|
622
|
+
getTerminalDetail: (id: string) => Promise<TerminalInfo | undefined>;
|
|
623
|
+
runTerminalAction: (id: string, action: TerminalAction) => Promise<boolean>;
|
|
623
624
|
getStorageMounts: () => Promise<StorageMounts>;
|
|
624
625
|
getStorageKeys: (base?: string) => Promise<string[]>;
|
|
625
|
-
getStorageItem: (
|
|
626
|
-
setStorageItem: (
|
|
627
|
-
removeStorageItem: (
|
|
626
|
+
getStorageItem: (key: string) => Promise<StorageValue>;
|
|
627
|
+
setStorageItem: (key: string, value: StorageValue) => Promise<void>;
|
|
628
|
+
removeStorageItem: (key: string) => Promise<void>;
|
|
628
629
|
getAnalyzeBuildInfo: () => Promise<AnalyzeBuildsInfo>;
|
|
629
630
|
generateAnalyzeBuildName: () => Promise<string>;
|
|
630
|
-
startAnalyzeBuild: (
|
|
631
|
-
clearAnalyzeBuilds: (
|
|
632
|
-
getImageMeta: (
|
|
633
|
-
getTextAssetContent: (
|
|
634
|
-
writeStaticAssets: (
|
|
635
|
-
deleteStaticAsset: (
|
|
636
|
-
renameStaticAsset: (
|
|
631
|
+
startAnalyzeBuild: (name: string) => Promise<string>;
|
|
632
|
+
clearAnalyzeBuilds: (names?: string[]) => Promise<void>;
|
|
633
|
+
getImageMeta: (filepath: string) => Promise<ImageMeta | undefined>;
|
|
634
|
+
getTextAssetContent: (filepath: string, limit?: number) => Promise<string | undefined>;
|
|
635
|
+
writeStaticAssets: (file: AssetEntry[], folder: string) => Promise<string[]>;
|
|
636
|
+
deleteStaticAsset: (filepath: string) => Promise<void>;
|
|
637
|
+
renameStaticAsset: (oldPath: string, newPath: string) => Promise<void>;
|
|
637
638
|
telemetryEvent: (payload: object, immediate?: boolean) => void;
|
|
638
639
|
customTabAction: (name: string, action: number) => Promise<boolean>;
|
|
639
|
-
enablePages: (
|
|
640
|
+
enablePages: () => Promise<void>;
|
|
640
641
|
openInEditor: (filepath: string) => Promise<boolean>;
|
|
641
|
-
restartNuxt: (
|
|
642
|
-
installNuxtModule: (
|
|
643
|
-
uninstallNuxtModule: (
|
|
642
|
+
restartNuxt: (hard?: boolean) => Promise<void>;
|
|
643
|
+
installNuxtModule: (name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
644
|
+
uninstallNuxtModule: (name: string, dry?: boolean) => Promise<InstallModuleReturn>;
|
|
644
645
|
enableTimeline: (dry: boolean) => Promise<[string, string]>;
|
|
645
646
|
requestForAuth: (info?: string, origin?: string) => Promise<void>;
|
|
646
|
-
verifyAuthToken: (
|
|
647
|
+
verifyAuthToken: () => Promise<boolean>;
|
|
647
648
|
}
|
|
648
649
|
interface ClientFunctions {
|
|
649
650
|
refresh: (event: ClientUpdateEvent) => void;
|
|
@@ -694,6 +695,10 @@ interface NuxtDevtoolsServerContext {
|
|
|
694
695
|
nuxt: Nuxt;
|
|
695
696
|
options: ModuleOptions;
|
|
696
697
|
rpc: NuxtDevtoolsRpc;
|
|
698
|
+
/**
|
|
699
|
+
* The Vite DevTools Kit context, available after connection.
|
|
700
|
+
*/
|
|
701
|
+
devtoolsKit: DevToolsNodeContext | undefined;
|
|
697
702
|
/**
|
|
698
703
|
* Hook to open file in editor
|
|
699
704
|
*/
|
|
@@ -702,10 +707,6 @@ interface NuxtDevtoolsServerContext {
|
|
|
702
707
|
* Invalidate client cache for a function and ask for re-fetching
|
|
703
708
|
*/
|
|
704
709
|
refresh: (event: keyof ServerFunctions) => void;
|
|
705
|
-
/**
|
|
706
|
-
* @deprecated Auth is now handled by Vite DevTools. This is a noop.
|
|
707
|
-
*/
|
|
708
|
-
ensureDevAuthToken: (token: string) => Promise<void>;
|
|
709
710
|
extendServerRpc: <ClientFunctions extends object = Record<string, unknown>, ServerFunctions extends object = Record<string, unknown>>(name: string, functions: ServerFunctions) => BirpcGroup<ClientFunctions, ServerFunctions>;
|
|
710
711
|
}
|
|
711
712
|
interface NuxtDevtoolsInfo {
|
|
@@ -788,4 +789,4 @@ declare module '@nuxt/schema' {
|
|
|
788
789
|
}
|
|
789
790
|
}
|
|
790
791
|
|
|
791
|
-
export type {
|
|
792
|
+
export type { ServerFunctions as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleType as D, ModuleVNodeView as E, ModuleView as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, NpmCommandType as J, NuxtDevToolsOptions as K, LoadingTimeMetric as L, MaintainerInfo as M, NpmCommandOptions as N, NuxtDevtoolsInfo as O, NuxtDevtoolsRpc as P, NuxtDevtoolsServerContext as Q, NuxtServerData as R, PackageManagerName as S, PackageUpdateInfo as T, Payload as U, PluginInfoWithMetic as V, PluginMetric as W, RouteInfo as X, ScannedNitroTasks as Y, ServerDebugContext as Z, ServerDebugModuleMutationRecord as _, AnalyzeBuildsInfo as a, ServerRouteInfo as a0, ServerRouteInput as a1, ServerRouteInputType as a2, ServerTaskInfo as a3, SubprocessOptions as a4, TabCategory as a5, TerminalAction as a6, TerminalBase as a7, TerminalInfo as a8, TerminalState as a9, VSCodeIntegrationOptions as aa, VSCodeTunnelOptions as ab, VueInspectorClient as ac, VueInspectorData as ad, AssetEntry as b, AssetInfo as c, AssetType as d, AutoImportsWithMetadata as e, ClientFunctions as f, ClientUpdateEvent as g, CodeServerOptions as h, CodeServerType as i, CodeSnippet as j, CompatibilityStatus as k, ComponentRelationship as l, ComponentWithRelationships as m, InstallModuleReturn as n, InstalledModuleInfo as o, ModuleBuiltinTab as p, ModuleCompatibility as q, ModuleCustomTab as r, ModuleIframeTabLazyOptions as s, ModuleIframeView as t, ModuleLaunchAction as u, ModuleLaunchView as v, ModuleOptions as w, ModuleStaticInfo as x, ModuleStats as y, ModuleTabInfo as z };
|
package/dist/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AnalyzeBuildMeta,
|
|
1
|
+
import { $ as ServerFunctions, H as HookInfo, W as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.BwQLAI1z.cjs';
|
|
2
|
+
export { A as AnalyzeBuildMeta, a as AnalyzeBuildsInfo, b as AssetEntry, c as AssetInfo, d as AssetType, e as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, f as ClientFunctions, g as ClientUpdateEvent, h as CodeServerOptions, i as CodeServerType, j as CodeSnippet, k as CompatibilityStatus, l as ComponentRelationship, m as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, n as InstallModuleReturn, o as InstalledModuleInfo, M as MaintainerInfo, p as ModuleBuiltinTab, q as ModuleCompatibility, r as ModuleCustomTab, s as ModuleIframeTabLazyOptions, t as ModuleIframeView, u as ModuleLaunchAction, v as ModuleLaunchView, w as ModuleOptions, x as ModuleStaticInfo, y as ModuleStats, z as ModuleTabInfo, D as ModuleType, E as ModuleVNodeView, F as ModuleView, N as NpmCommandOptions, J as NpmCommandType, K as NuxtDevToolsOptions, O as NuxtDevtoolsInfo, P as NuxtDevtoolsRpc, Q as NuxtDevtoolsServerContext, R as NuxtServerData, S as PackageManagerName, T as PackageUpdateInfo, U as Payload, V as PluginInfoWithMetic, X as RouteInfo, Y as ScannedNitroTasks, Z as ServerDebugContext, _ as ServerDebugModuleMutationRecord, a0 as ServerRouteInfo, a1 as ServerRouteInput, a2 as ServerRouteInputType, a3 as ServerTaskInfo, a4 as SubprocessOptions, a5 as TabCategory, a6 as TerminalAction, a7 as TerminalBase, a8 as TerminalInfo, a9 as TerminalState, aa as VSCodeIntegrationOptions, ab as VSCodeTunnelOptions, ac as VueInspectorClient, ad as VueInspectorData } from './shared/devtools-kit.BwQLAI1z.cjs';
|
|
3
3
|
import { Hookable } from 'hookable';
|
|
4
4
|
import { NuxtApp } from 'nuxt/app';
|
|
5
5
|
import { AppConfig } from 'nuxt/schema';
|
|
@@ -7,6 +7,7 @@ import { $Fetch } from 'ofetch';
|
|
|
7
7
|
import { BuiltinLanguage } from 'shiki';
|
|
8
8
|
import { Ref } from 'vue';
|
|
9
9
|
import { StackFrame } from 'error-stack-parser-es';
|
|
10
|
+
import '@vitejs/devtools-kit';
|
|
10
11
|
import 'birpc';
|
|
11
12
|
import 'unimport';
|
|
12
13
|
import 'vue-router';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AnalyzeBuildMeta,
|
|
1
|
+
import { $ as ServerFunctions, H as HookInfo, W as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.BwQLAI1z.mjs';
|
|
2
|
+
export { A as AnalyzeBuildMeta, a as AnalyzeBuildsInfo, b as AssetEntry, c as AssetInfo, d as AssetType, e as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, f as ClientFunctions, g as ClientUpdateEvent, h as CodeServerOptions, i as CodeServerType, j as CodeSnippet, k as CompatibilityStatus, l as ComponentRelationship, m as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, n as InstallModuleReturn, o as InstalledModuleInfo, M as MaintainerInfo, p as ModuleBuiltinTab, q as ModuleCompatibility, r as ModuleCustomTab, s as ModuleIframeTabLazyOptions, t as ModuleIframeView, u as ModuleLaunchAction, v as ModuleLaunchView, w as ModuleOptions, x as ModuleStaticInfo, y as ModuleStats, z as ModuleTabInfo, D as ModuleType, E as ModuleVNodeView, F as ModuleView, N as NpmCommandOptions, J as NpmCommandType, K as NuxtDevToolsOptions, O as NuxtDevtoolsInfo, P as NuxtDevtoolsRpc, Q as NuxtDevtoolsServerContext, R as NuxtServerData, S as PackageManagerName, T as PackageUpdateInfo, U as Payload, V as PluginInfoWithMetic, X as RouteInfo, Y as ScannedNitroTasks, Z as ServerDebugContext, _ as ServerDebugModuleMutationRecord, a0 as ServerRouteInfo, a1 as ServerRouteInput, a2 as ServerRouteInputType, a3 as ServerTaskInfo, a4 as SubprocessOptions, a5 as TabCategory, a6 as TerminalAction, a7 as TerminalBase, a8 as TerminalInfo, a9 as TerminalState, aa as VSCodeIntegrationOptions, ab as VSCodeTunnelOptions, ac as VueInspectorClient, ad as VueInspectorData } from './shared/devtools-kit.BwQLAI1z.mjs';
|
|
3
3
|
import { Hookable } from 'hookable';
|
|
4
4
|
import { NuxtApp } from 'nuxt/app';
|
|
5
5
|
import { AppConfig } from 'nuxt/schema';
|
|
@@ -7,6 +7,7 @@ import { $Fetch } from 'ofetch';
|
|
|
7
7
|
import { BuiltinLanguage } from 'shiki';
|
|
8
8
|
import { Ref } from 'vue';
|
|
9
9
|
import { StackFrame } from 'error-stack-parser-es';
|
|
10
|
+
import '@vitejs/devtools-kit';
|
|
10
11
|
import 'birpc';
|
|
11
12
|
import 'unimport';
|
|
12
13
|
import 'vue-router';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AnalyzeBuildMeta,
|
|
1
|
+
import { $ as ServerFunctions, H as HookInfo, W as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.BwQLAI1z.js';
|
|
2
|
+
export { A as AnalyzeBuildMeta, a as AnalyzeBuildsInfo, b as AssetEntry, c as AssetInfo, d as AssetType, e as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, f as ClientFunctions, g as ClientUpdateEvent, h as CodeServerOptions, i as CodeServerType, j as CodeSnippet, k as CompatibilityStatus, l as ComponentRelationship, m as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, n as InstallModuleReturn, o as InstalledModuleInfo, M as MaintainerInfo, p as ModuleBuiltinTab, q as ModuleCompatibility, r as ModuleCustomTab, s as ModuleIframeTabLazyOptions, t as ModuleIframeView, u as ModuleLaunchAction, v as ModuleLaunchView, w as ModuleOptions, x as ModuleStaticInfo, y as ModuleStats, z as ModuleTabInfo, D as ModuleType, E as ModuleVNodeView, F as ModuleView, N as NpmCommandOptions, J as NpmCommandType, K as NuxtDevToolsOptions, O as NuxtDevtoolsInfo, P as NuxtDevtoolsRpc, Q as NuxtDevtoolsServerContext, R as NuxtServerData, S as PackageManagerName, T as PackageUpdateInfo, U as Payload, V as PluginInfoWithMetic, X as RouteInfo, Y as ScannedNitroTasks, Z as ServerDebugContext, _ as ServerDebugModuleMutationRecord, a0 as ServerRouteInfo, a1 as ServerRouteInput, a2 as ServerRouteInputType, a3 as ServerTaskInfo, a4 as SubprocessOptions, a5 as TabCategory, a6 as TerminalAction, a7 as TerminalBase, a8 as TerminalInfo, a9 as TerminalState, aa as VSCodeIntegrationOptions, ab as VSCodeTunnelOptions, ac as VueInspectorClient, ad as VueInspectorData } from './shared/devtools-kit.BwQLAI1z.js';
|
|
3
3
|
import { Hookable } from 'hookable';
|
|
4
4
|
import { NuxtApp } from 'nuxt/app';
|
|
5
5
|
import { AppConfig } from 'nuxt/schema';
|
|
@@ -7,6 +7,7 @@ import { $Fetch } from 'ofetch';
|
|
|
7
7
|
import { BuiltinLanguage } from 'shiki';
|
|
8
8
|
import { Ref } from 'vue';
|
|
9
9
|
import { StackFrame } from 'error-stack-parser-es';
|
|
10
|
+
import '@vitejs/devtools-kit';
|
|
10
11
|
import 'birpc';
|
|
11
12
|
import 'unimport';
|
|
12
13
|
import 'vue-router';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/devtools-kit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.6",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://devtools.nuxt.com/module/utils-kit",
|
|
7
7
|
"repository": {
|
|
@@ -41,17 +41,17 @@
|
|
|
41
41
|
"vite": ">=6.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@nuxt/kit": "^4.4.
|
|
45
|
-
"tinyexec": "^1.
|
|
44
|
+
"@nuxt/kit": "^4.4.6",
|
|
45
|
+
"tinyexec": "^1.2.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@nuxt/schema": "^4.4.
|
|
48
|
+
"@nuxt/schema": "^4.4.6",
|
|
49
49
|
"birpc": "^4.0.0",
|
|
50
50
|
"error-stack-parser-es": "^1.0.5",
|
|
51
|
-
"hookable": "^6.1.
|
|
51
|
+
"hookable": "^6.1.1",
|
|
52
52
|
"unbuild": "^3.6.1",
|
|
53
|
-
"unimport": "^6.0
|
|
54
|
-
"vue-router": "^5.0
|
|
53
|
+
"unimport": "^6.3.0",
|
|
54
|
+
"vue-router": "^5.1.0"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "unbuild",
|