@nuxt/devtools-kit 1.0.8 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as execa from 'execa';
2
2
  import * as _nuxt_schema from '@nuxt/schema';
3
3
  import { BirpcGroup } from 'birpc';
4
- import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.54b1e285.cjs';
4
+ import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.60a5ddfa.cjs';
5
5
  import 'vue';
6
6
  import 'nuxt/schema';
7
7
  import 'nitropack';
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as execa from 'execa';
2
2
  import * as _nuxt_schema from '@nuxt/schema';
3
3
  import { BirpcGroup } from 'birpc';
4
- import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.54b1e285.mjs';
4
+ import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.60a5ddfa.mjs';
5
5
  import 'vue';
6
6
  import 'nuxt/schema';
7
7
  import 'nitropack';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as execa from 'execa';
2
2
  import * as _nuxt_schema from '@nuxt/schema';
3
3
  import { BirpcGroup } from 'birpc';
4
- import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.54b1e285.js';
4
+ import { M as ModuleCustomTab, S as SubprocessOptions, T as TerminalState, N as NuxtDevtoolsInfo } from './shared/devtools-kit.60a5ddfa.js';
5
5
  import 'vue';
6
6
  import 'nuxt/schema';
7
7
  import 'nitropack';
@@ -185,6 +185,24 @@ interface Payload {
185
185
  state?: Record<string, any>;
186
186
  functions?: Record<string, any>;
187
187
  }
188
+ interface ServerTaskInfo {
189
+ name: string;
190
+ handler: string;
191
+ description: string;
192
+ type: 'collection' | 'task';
193
+ tasks?: ServerTaskInfo[];
194
+ }
195
+ interface ScannedNitroTasks {
196
+ tasks: {
197
+ [name: string]: {
198
+ handler: string;
199
+ description: string;
200
+ };
201
+ };
202
+ scheduledTasks: {
203
+ [cron: string]: string[];
204
+ };
205
+ }
188
206
  interface PluginInfoWithMetic {
189
207
  src: string;
190
208
  mode?: 'client' | 'server' | 'all';
@@ -289,6 +307,7 @@ interface AssetInfo {
289
307
  filePath: string;
290
308
  size: number;
291
309
  mtime: number;
310
+ layer?: string;
292
311
  }
293
312
  interface AssetEntry {
294
313
  path: string;
@@ -484,6 +503,12 @@ interface NuxtDevToolsOptions {
484
503
  inputDefaults: Record<string, ServerRouteInput[]>;
485
504
  sendFrom: 'app' | 'devtools';
486
505
  };
506
+ serverTasks: {
507
+ enabled: boolean;
508
+ selectedTask: ServerTaskInfo | null;
509
+ view: 'tree' | 'list';
510
+ inputDefaults: Record<string, ServerRouteInput[]>;
511
+ };
487
512
  assets: {
488
513
  view: 'grid' | 'list';
489
514
  };
@@ -552,67 +577,68 @@ interface AnalyzeBuildsInfo {
552
577
  }
553
578
 
554
579
  interface ServerFunctions {
555
- getServerConfig(): NuxtOptions;
556
- getServerRuntimeConfig(): Record<string, any>;
557
- getModuleOptions(): ModuleOptions;
558
- getComponents(): Component[];
559
- getComponentsRelationships(): Promise<ComponentRelationship[]>;
560
- getAutoImports(): AutoImportsWithMetadata;
561
- getServerPages(): NuxtPage[];
562
- getCustomTabs(): ModuleCustomTab[];
563
- getServerHooks(): HookInfo[];
564
- getServerLayouts(): NuxtLayout[];
565
- getStaticAssets(): Promise<AssetInfo[]>;
566
- getServerRoutes(): ServerRouteInfo[];
567
- getServerApp(): NuxtApp | undefined;
568
- getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
569
- updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
570
- clearOptions(): Promise<void>;
571
- checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
572
- getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
573
- runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
580
+ getServerConfig: () => NuxtOptions;
581
+ getServerRuntimeConfig: () => Record<string, any>;
582
+ getModuleOptions: () => ModuleOptions;
583
+ getComponents: () => Component[];
584
+ getComponentsRelationships: () => Promise<ComponentRelationship[]>;
585
+ getAutoImports: () => AutoImportsWithMetadata;
586
+ getServerPages: () => NuxtPage[];
587
+ getCustomTabs: () => ModuleCustomTab[];
588
+ getServerHooks: () => HookInfo[];
589
+ getServerLayouts: () => NuxtLayout[];
590
+ getStaticAssets: () => Promise<AssetInfo[]>;
591
+ getServerRoutes: () => ServerRouteInfo[];
592
+ getServerTasks: () => ScannedNitroTasks | null;
593
+ getServerApp: () => NuxtApp | undefined;
594
+ getOptions: <T extends keyof NuxtDevToolsOptions>(tab: T) => Promise<NuxtDevToolsOptions[T]>;
595
+ updateOptions: <T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>) => Promise<void>;
596
+ clearOptions: () => Promise<void>;
597
+ checkForUpdateFor: (name: string) => Promise<PackageUpdateInfo | undefined>;
598
+ getNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<string[] | undefined>;
599
+ runNpmCommand: (token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<{
574
600
  processId: string;
575
601
  } | undefined>;
576
- getTerminals(): TerminalInfo[];
577
- getTerminalDetail(token: string, id: string): Promise<TerminalInfo | undefined>;
578
- runTerminalAction(token: string, id: string, action: TerminalAction): Promise<boolean>;
579
- getStorageMounts(): Promise<StorageMounts>;
580
- getStorageKeys(base?: string): Promise<string[]>;
581
- getStorageItem(token: string, key: string): Promise<StorageValue>;
582
- setStorageItem(token: string, key: string, value: StorageValue): Promise<void>;
583
- removeStorageItem(token: string, key: string): Promise<void>;
584
- getAnalyzeBuildInfo(): Promise<AnalyzeBuildsInfo>;
585
- generateAnalyzeBuildName(): Promise<string>;
586
- startAnalyzeBuild(token: string, name: string): Promise<string>;
587
- clearAnalyzeBuilds(token: string, names?: string[]): Promise<void>;
588
- getImageMeta(token: string, filepath: string): Promise<ImageMeta | undefined>;
589
- getTextAssetContent(token: string, filepath: string, limit?: number): Promise<string | undefined>;
590
- writeStaticAssets(token: string, file: AssetEntry[], folder: string): Promise<string[]>;
591
- deleteStaticAsset(token: string, filepath: string): Promise<void>;
592
- renameStaticAsset(token: string, oldPath: string, newPath: string): Promise<void>;
593
- telemetryEvent(payload: object, immediate?: boolean): void;
594
- customTabAction(name: string, action: number): Promise<boolean>;
595
- runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>): Promise<void>;
596
- openInEditor(filepath: string): Promise<boolean>;
597
- restartNuxt(token: string, hard?: boolean): Promise<void>;
598
- installNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
599
- uninstallNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
600
- enableTimeline(dry: boolean): Promise<[string, string]>;
601
- requestForAuth(info?: string, origin?: string): Promise<void>;
602
- verifyAuthToken(token: string): Promise<boolean>;
602
+ getTerminals: () => TerminalInfo[];
603
+ getTerminalDetail: (token: string, id: string) => Promise<TerminalInfo | undefined>;
604
+ runTerminalAction: (token: string, id: string, action: TerminalAction) => Promise<boolean>;
605
+ getStorageMounts: () => Promise<StorageMounts>;
606
+ getStorageKeys: (base?: string) => Promise<string[]>;
607
+ getStorageItem: (token: string, key: string) => Promise<StorageValue>;
608
+ setStorageItem: (token: string, key: string, value: StorageValue) => Promise<void>;
609
+ removeStorageItem: (token: string, key: string) => Promise<void>;
610
+ getAnalyzeBuildInfo: () => Promise<AnalyzeBuildsInfo>;
611
+ generateAnalyzeBuildName: () => Promise<string>;
612
+ startAnalyzeBuild: (token: string, name: string) => Promise<string>;
613
+ clearAnalyzeBuilds: (token: string, names?: string[]) => Promise<void>;
614
+ getImageMeta: (token: string, filepath: string) => Promise<ImageMeta | undefined>;
615
+ getTextAssetContent: (token: string, filepath: string, limit?: number) => Promise<string | undefined>;
616
+ writeStaticAssets: (token: string, file: AssetEntry[], folder: string) => Promise<string[]>;
617
+ deleteStaticAsset: (token: string, filepath: string) => Promise<void>;
618
+ renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
619
+ telemetryEvent: (payload: object, immediate?: boolean) => void;
620
+ customTabAction: (name: string, action: number) => Promise<boolean>;
621
+ runWizard: <T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>) => Promise<void>;
622
+ openInEditor: (filepath: string) => Promise<boolean>;
623
+ restartNuxt: (token: string, hard?: boolean) => Promise<void>;
624
+ installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
625
+ uninstallNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
626
+ enableTimeline: (dry: boolean) => Promise<[string, string]>;
627
+ requestForAuth: (info?: string, origin?: string) => Promise<void>;
628
+ verifyAuthToken: (token: string) => Promise<boolean>;
603
629
  }
604
630
  interface ClientFunctions {
605
- refresh(event: ClientUpdateEvent): void;
606
- callHook(hook: string, ...args: any[]): Promise<void>;
607
- navigateTo(path: string): void;
608
- onTerminalData(_: {
631
+ refresh: (event: ClientUpdateEvent) => void;
632
+ callHook: (hook: string, ...args: any[]) => Promise<void>;
633
+ navigateTo: (path: string) => void;
634
+ onTerminalData: (_: {
609
635
  id: string;
610
636
  data: string;
611
- }): void;
612
- onTerminalExit(_: {
637
+ }) => void;
638
+ onTerminalExit: (_: {
613
639
  id: string;
614
640
  code?: number;
615
- }): void;
641
+ }) => void;
616
642
  }
617
643
  type ClientUpdateEvent = keyof ServerFunctions;
618
644
 
@@ -712,4 +738,4 @@ declare module '@nuxt/schema' {
712
738
  }
713
739
  }
714
740
 
715
- export type { ClientUpdateEvent as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStats as D, CompatibilityStatus as E, ModuleType as F, MaintainerInfo as G, HookInfo as H, ImageMeta as I, GitHubContributor as J, AssetType as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetInfo as O, PluginMetric as P, AssetEntry as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, CodeSnippet as U, VueInspectorData as V, ComponentRelationship as W, ComponentWithRelationships as X, WizardFunctions as Y, WizardActions as Z, GetWizardArgs as _, VueInspectorClient as a, NuxtDevtoolsServerContext as a0, InstallModuleReturn as a1, AnalyzeBuildMeta as a2, AnalyzeBuildsInfo as a3, ModuleOptions as a4, ModuleGlobalOptions as a5, VSCodeIntegrationOptions as a6, VSCodeTunnelOptions as a7, NuxtDevToolsOptions as a8, TabCategory as a9, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, CategorizedTabs as k, TerminalBase as l, TerminalAction as m, TerminalInfo as n, PackageUpdateInfo as o, PackageManagerName as p, NpmCommandType as q, NpmCommandOptions as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, PluginInfoWithMetic as w, InstalledModuleInfo as x, ModuleStaticInfo as y, ModuleCompatibility as z };
741
+ export type { WizardActions as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStaticInfo as D, ModuleCompatibility as E, ModuleStats as F, CompatibilityStatus as G, HookInfo as H, ImageMeta as I, ModuleType as J, MaintainerInfo as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, GitHubContributor as O, PluginMetric as P, AssetType as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, AssetInfo as U, VueInspectorData as V, AssetEntry as W, CodeSnippet as X, ComponentRelationship as Y, ComponentWithRelationships as Z, WizardFunctions as _, VueInspectorClient as a, GetWizardArgs as a0, ClientUpdateEvent as a1, NuxtDevtoolsServerContext as a2, InstallModuleReturn as a3, AnalyzeBuildMeta as a4, AnalyzeBuildsInfo as a5, ModuleOptions as a6, ModuleGlobalOptions as a7, VSCodeIntegrationOptions as a8, VSCodeTunnelOptions as a9, NuxtDevToolsOptions as aa, TabCategory as ab, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, CategorizedTabs as k, TerminalBase as l, TerminalAction as m, TerminalInfo as n, PackageUpdateInfo as o, PackageManagerName as p, NpmCommandType as q, NpmCommandOptions as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, ServerTaskInfo as w, ScannedNitroTasks as x, PluginInfoWithMetic as y, InstalledModuleInfo as z };
@@ -185,6 +185,24 @@ interface Payload {
185
185
  state?: Record<string, any>;
186
186
  functions?: Record<string, any>;
187
187
  }
188
+ interface ServerTaskInfo {
189
+ name: string;
190
+ handler: string;
191
+ description: string;
192
+ type: 'collection' | 'task';
193
+ tasks?: ServerTaskInfo[];
194
+ }
195
+ interface ScannedNitroTasks {
196
+ tasks: {
197
+ [name: string]: {
198
+ handler: string;
199
+ description: string;
200
+ };
201
+ };
202
+ scheduledTasks: {
203
+ [cron: string]: string[];
204
+ };
205
+ }
188
206
  interface PluginInfoWithMetic {
189
207
  src: string;
190
208
  mode?: 'client' | 'server' | 'all';
@@ -289,6 +307,7 @@ interface AssetInfo {
289
307
  filePath: string;
290
308
  size: number;
291
309
  mtime: number;
310
+ layer?: string;
292
311
  }
293
312
  interface AssetEntry {
294
313
  path: string;
@@ -484,6 +503,12 @@ interface NuxtDevToolsOptions {
484
503
  inputDefaults: Record<string, ServerRouteInput[]>;
485
504
  sendFrom: 'app' | 'devtools';
486
505
  };
506
+ serverTasks: {
507
+ enabled: boolean;
508
+ selectedTask: ServerTaskInfo | null;
509
+ view: 'tree' | 'list';
510
+ inputDefaults: Record<string, ServerRouteInput[]>;
511
+ };
487
512
  assets: {
488
513
  view: 'grid' | 'list';
489
514
  };
@@ -552,67 +577,68 @@ interface AnalyzeBuildsInfo {
552
577
  }
553
578
 
554
579
  interface ServerFunctions {
555
- getServerConfig(): NuxtOptions;
556
- getServerRuntimeConfig(): Record<string, any>;
557
- getModuleOptions(): ModuleOptions;
558
- getComponents(): Component[];
559
- getComponentsRelationships(): Promise<ComponentRelationship[]>;
560
- getAutoImports(): AutoImportsWithMetadata;
561
- getServerPages(): NuxtPage[];
562
- getCustomTabs(): ModuleCustomTab[];
563
- getServerHooks(): HookInfo[];
564
- getServerLayouts(): NuxtLayout[];
565
- getStaticAssets(): Promise<AssetInfo[]>;
566
- getServerRoutes(): ServerRouteInfo[];
567
- getServerApp(): NuxtApp | undefined;
568
- getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
569
- updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
570
- clearOptions(): Promise<void>;
571
- checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
572
- getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
573
- runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
580
+ getServerConfig: () => NuxtOptions;
581
+ getServerRuntimeConfig: () => Record<string, any>;
582
+ getModuleOptions: () => ModuleOptions;
583
+ getComponents: () => Component[];
584
+ getComponentsRelationships: () => Promise<ComponentRelationship[]>;
585
+ getAutoImports: () => AutoImportsWithMetadata;
586
+ getServerPages: () => NuxtPage[];
587
+ getCustomTabs: () => ModuleCustomTab[];
588
+ getServerHooks: () => HookInfo[];
589
+ getServerLayouts: () => NuxtLayout[];
590
+ getStaticAssets: () => Promise<AssetInfo[]>;
591
+ getServerRoutes: () => ServerRouteInfo[];
592
+ getServerTasks: () => ScannedNitroTasks | null;
593
+ getServerApp: () => NuxtApp | undefined;
594
+ getOptions: <T extends keyof NuxtDevToolsOptions>(tab: T) => Promise<NuxtDevToolsOptions[T]>;
595
+ updateOptions: <T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>) => Promise<void>;
596
+ clearOptions: () => Promise<void>;
597
+ checkForUpdateFor: (name: string) => Promise<PackageUpdateInfo | undefined>;
598
+ getNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<string[] | undefined>;
599
+ runNpmCommand: (token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<{
574
600
  processId: string;
575
601
  } | undefined>;
576
- getTerminals(): TerminalInfo[];
577
- getTerminalDetail(token: string, id: string): Promise<TerminalInfo | undefined>;
578
- runTerminalAction(token: string, id: string, action: TerminalAction): Promise<boolean>;
579
- getStorageMounts(): Promise<StorageMounts>;
580
- getStorageKeys(base?: string): Promise<string[]>;
581
- getStorageItem(token: string, key: string): Promise<StorageValue>;
582
- setStorageItem(token: string, key: string, value: StorageValue): Promise<void>;
583
- removeStorageItem(token: string, key: string): Promise<void>;
584
- getAnalyzeBuildInfo(): Promise<AnalyzeBuildsInfo>;
585
- generateAnalyzeBuildName(): Promise<string>;
586
- startAnalyzeBuild(token: string, name: string): Promise<string>;
587
- clearAnalyzeBuilds(token: string, names?: string[]): Promise<void>;
588
- getImageMeta(token: string, filepath: string): Promise<ImageMeta | undefined>;
589
- getTextAssetContent(token: string, filepath: string, limit?: number): Promise<string | undefined>;
590
- writeStaticAssets(token: string, file: AssetEntry[], folder: string): Promise<string[]>;
591
- deleteStaticAsset(token: string, filepath: string): Promise<void>;
592
- renameStaticAsset(token: string, oldPath: string, newPath: string): Promise<void>;
593
- telemetryEvent(payload: object, immediate?: boolean): void;
594
- customTabAction(name: string, action: number): Promise<boolean>;
595
- runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>): Promise<void>;
596
- openInEditor(filepath: string): Promise<boolean>;
597
- restartNuxt(token: string, hard?: boolean): Promise<void>;
598
- installNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
599
- uninstallNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
600
- enableTimeline(dry: boolean): Promise<[string, string]>;
601
- requestForAuth(info?: string, origin?: string): Promise<void>;
602
- verifyAuthToken(token: string): Promise<boolean>;
602
+ getTerminals: () => TerminalInfo[];
603
+ getTerminalDetail: (token: string, id: string) => Promise<TerminalInfo | undefined>;
604
+ runTerminalAction: (token: string, id: string, action: TerminalAction) => Promise<boolean>;
605
+ getStorageMounts: () => Promise<StorageMounts>;
606
+ getStorageKeys: (base?: string) => Promise<string[]>;
607
+ getStorageItem: (token: string, key: string) => Promise<StorageValue>;
608
+ setStorageItem: (token: string, key: string, value: StorageValue) => Promise<void>;
609
+ removeStorageItem: (token: string, key: string) => Promise<void>;
610
+ getAnalyzeBuildInfo: () => Promise<AnalyzeBuildsInfo>;
611
+ generateAnalyzeBuildName: () => Promise<string>;
612
+ startAnalyzeBuild: (token: string, name: string) => Promise<string>;
613
+ clearAnalyzeBuilds: (token: string, names?: string[]) => Promise<void>;
614
+ getImageMeta: (token: string, filepath: string) => Promise<ImageMeta | undefined>;
615
+ getTextAssetContent: (token: string, filepath: string, limit?: number) => Promise<string | undefined>;
616
+ writeStaticAssets: (token: string, file: AssetEntry[], folder: string) => Promise<string[]>;
617
+ deleteStaticAsset: (token: string, filepath: string) => Promise<void>;
618
+ renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
619
+ telemetryEvent: (payload: object, immediate?: boolean) => void;
620
+ customTabAction: (name: string, action: number) => Promise<boolean>;
621
+ runWizard: <T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>) => Promise<void>;
622
+ openInEditor: (filepath: string) => Promise<boolean>;
623
+ restartNuxt: (token: string, hard?: boolean) => Promise<void>;
624
+ installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
625
+ uninstallNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
626
+ enableTimeline: (dry: boolean) => Promise<[string, string]>;
627
+ requestForAuth: (info?: string, origin?: string) => Promise<void>;
628
+ verifyAuthToken: (token: string) => Promise<boolean>;
603
629
  }
604
630
  interface ClientFunctions {
605
- refresh(event: ClientUpdateEvent): void;
606
- callHook(hook: string, ...args: any[]): Promise<void>;
607
- navigateTo(path: string): void;
608
- onTerminalData(_: {
631
+ refresh: (event: ClientUpdateEvent) => void;
632
+ callHook: (hook: string, ...args: any[]) => Promise<void>;
633
+ navigateTo: (path: string) => void;
634
+ onTerminalData: (_: {
609
635
  id: string;
610
636
  data: string;
611
- }): void;
612
- onTerminalExit(_: {
637
+ }) => void;
638
+ onTerminalExit: (_: {
613
639
  id: string;
614
640
  code?: number;
615
- }): void;
641
+ }) => void;
616
642
  }
617
643
  type ClientUpdateEvent = keyof ServerFunctions;
618
644
 
@@ -712,4 +738,4 @@ declare module '@nuxt/schema' {
712
738
  }
713
739
  }
714
740
 
715
- export type { ClientUpdateEvent as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStats as D, CompatibilityStatus as E, ModuleType as F, MaintainerInfo as G, HookInfo as H, ImageMeta as I, GitHubContributor as J, AssetType as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetInfo as O, PluginMetric as P, AssetEntry as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, CodeSnippet as U, VueInspectorData as V, ComponentRelationship as W, ComponentWithRelationships as X, WizardFunctions as Y, WizardActions as Z, GetWizardArgs as _, VueInspectorClient as a, NuxtDevtoolsServerContext as a0, InstallModuleReturn as a1, AnalyzeBuildMeta as a2, AnalyzeBuildsInfo as a3, ModuleOptions as a4, ModuleGlobalOptions as a5, VSCodeIntegrationOptions as a6, VSCodeTunnelOptions as a7, NuxtDevToolsOptions as a8, TabCategory as a9, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, CategorizedTabs as k, TerminalBase as l, TerminalAction as m, TerminalInfo as n, PackageUpdateInfo as o, PackageManagerName as p, NpmCommandType as q, NpmCommandOptions as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, PluginInfoWithMetic as w, InstalledModuleInfo as x, ModuleStaticInfo as y, ModuleCompatibility as z };
741
+ export type { WizardActions as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStaticInfo as D, ModuleCompatibility as E, ModuleStats as F, CompatibilityStatus as G, HookInfo as H, ImageMeta as I, ModuleType as J, MaintainerInfo as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, GitHubContributor as O, PluginMetric as P, AssetType as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, AssetInfo as U, VueInspectorData as V, AssetEntry as W, CodeSnippet as X, ComponentRelationship as Y, ComponentWithRelationships as Z, WizardFunctions as _, VueInspectorClient as a, GetWizardArgs as a0, ClientUpdateEvent as a1, NuxtDevtoolsServerContext as a2, InstallModuleReturn as a3, AnalyzeBuildMeta as a4, AnalyzeBuildsInfo as a5, ModuleOptions as a6, ModuleGlobalOptions as a7, VSCodeIntegrationOptions as a8, VSCodeTunnelOptions as a9, NuxtDevToolsOptions as aa, TabCategory as ab, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, CategorizedTabs as k, TerminalBase as l, TerminalAction as m, TerminalInfo as n, PackageUpdateInfo as o, PackageManagerName as p, NpmCommandType as q, NpmCommandOptions as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, ServerTaskInfo as w, ScannedNitroTasks as x, PluginInfoWithMetic as y, InstalledModuleInfo as z };
@@ -185,6 +185,24 @@ interface Payload {
185
185
  state?: Record<string, any>;
186
186
  functions?: Record<string, any>;
187
187
  }
188
+ interface ServerTaskInfo {
189
+ name: string;
190
+ handler: string;
191
+ description: string;
192
+ type: 'collection' | 'task';
193
+ tasks?: ServerTaskInfo[];
194
+ }
195
+ interface ScannedNitroTasks {
196
+ tasks: {
197
+ [name: string]: {
198
+ handler: string;
199
+ description: string;
200
+ };
201
+ };
202
+ scheduledTasks: {
203
+ [cron: string]: string[];
204
+ };
205
+ }
188
206
  interface PluginInfoWithMetic {
189
207
  src: string;
190
208
  mode?: 'client' | 'server' | 'all';
@@ -289,6 +307,7 @@ interface AssetInfo {
289
307
  filePath: string;
290
308
  size: number;
291
309
  mtime: number;
310
+ layer?: string;
292
311
  }
293
312
  interface AssetEntry {
294
313
  path: string;
@@ -484,6 +503,12 @@ interface NuxtDevToolsOptions {
484
503
  inputDefaults: Record<string, ServerRouteInput[]>;
485
504
  sendFrom: 'app' | 'devtools';
486
505
  };
506
+ serverTasks: {
507
+ enabled: boolean;
508
+ selectedTask: ServerTaskInfo | null;
509
+ view: 'tree' | 'list';
510
+ inputDefaults: Record<string, ServerRouteInput[]>;
511
+ };
487
512
  assets: {
488
513
  view: 'grid' | 'list';
489
514
  };
@@ -552,67 +577,68 @@ interface AnalyzeBuildsInfo {
552
577
  }
553
578
 
554
579
  interface ServerFunctions {
555
- getServerConfig(): NuxtOptions;
556
- getServerRuntimeConfig(): Record<string, any>;
557
- getModuleOptions(): ModuleOptions;
558
- getComponents(): Component[];
559
- getComponentsRelationships(): Promise<ComponentRelationship[]>;
560
- getAutoImports(): AutoImportsWithMetadata;
561
- getServerPages(): NuxtPage[];
562
- getCustomTabs(): ModuleCustomTab[];
563
- getServerHooks(): HookInfo[];
564
- getServerLayouts(): NuxtLayout[];
565
- getStaticAssets(): Promise<AssetInfo[]>;
566
- getServerRoutes(): ServerRouteInfo[];
567
- getServerApp(): NuxtApp | undefined;
568
- getOptions<T extends keyof NuxtDevToolsOptions>(tab: T): Promise<NuxtDevToolsOptions[T]>;
569
- updateOptions<T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>): Promise<void>;
570
- clearOptions(): Promise<void>;
571
- checkForUpdateFor(name: string): Promise<PackageUpdateInfo | undefined>;
572
- getNpmCommand(command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<string[] | undefined>;
573
- runNpmCommand(token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions): Promise<{
580
+ getServerConfig: () => NuxtOptions;
581
+ getServerRuntimeConfig: () => Record<string, any>;
582
+ getModuleOptions: () => ModuleOptions;
583
+ getComponents: () => Component[];
584
+ getComponentsRelationships: () => Promise<ComponentRelationship[]>;
585
+ getAutoImports: () => AutoImportsWithMetadata;
586
+ getServerPages: () => NuxtPage[];
587
+ getCustomTabs: () => ModuleCustomTab[];
588
+ getServerHooks: () => HookInfo[];
589
+ getServerLayouts: () => NuxtLayout[];
590
+ getStaticAssets: () => Promise<AssetInfo[]>;
591
+ getServerRoutes: () => ServerRouteInfo[];
592
+ getServerTasks: () => ScannedNitroTasks | null;
593
+ getServerApp: () => NuxtApp | undefined;
594
+ getOptions: <T extends keyof NuxtDevToolsOptions>(tab: T) => Promise<NuxtDevToolsOptions[T]>;
595
+ updateOptions: <T extends keyof NuxtDevToolsOptions>(tab: T, settings: Partial<NuxtDevToolsOptions[T]>) => Promise<void>;
596
+ clearOptions: () => Promise<void>;
597
+ checkForUpdateFor: (name: string) => Promise<PackageUpdateInfo | undefined>;
598
+ getNpmCommand: (command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<string[] | undefined>;
599
+ runNpmCommand: (token: string, command: NpmCommandType, packageName: string, options?: NpmCommandOptions) => Promise<{
574
600
  processId: string;
575
601
  } | undefined>;
576
- getTerminals(): TerminalInfo[];
577
- getTerminalDetail(token: string, id: string): Promise<TerminalInfo | undefined>;
578
- runTerminalAction(token: string, id: string, action: TerminalAction): Promise<boolean>;
579
- getStorageMounts(): Promise<StorageMounts>;
580
- getStorageKeys(base?: string): Promise<string[]>;
581
- getStorageItem(token: string, key: string): Promise<StorageValue>;
582
- setStorageItem(token: string, key: string, value: StorageValue): Promise<void>;
583
- removeStorageItem(token: string, key: string): Promise<void>;
584
- getAnalyzeBuildInfo(): Promise<AnalyzeBuildsInfo>;
585
- generateAnalyzeBuildName(): Promise<string>;
586
- startAnalyzeBuild(token: string, name: string): Promise<string>;
587
- clearAnalyzeBuilds(token: string, names?: string[]): Promise<void>;
588
- getImageMeta(token: string, filepath: string): Promise<ImageMeta | undefined>;
589
- getTextAssetContent(token: string, filepath: string, limit?: number): Promise<string | undefined>;
590
- writeStaticAssets(token: string, file: AssetEntry[], folder: string): Promise<string[]>;
591
- deleteStaticAsset(token: string, filepath: string): Promise<void>;
592
- renameStaticAsset(token: string, oldPath: string, newPath: string): Promise<void>;
593
- telemetryEvent(payload: object, immediate?: boolean): void;
594
- customTabAction(name: string, action: number): Promise<boolean>;
595
- runWizard<T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>): Promise<void>;
596
- openInEditor(filepath: string): Promise<boolean>;
597
- restartNuxt(token: string, hard?: boolean): Promise<void>;
598
- installNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
599
- uninstallNuxtModule(token: string, name: string, dry?: boolean): Promise<InstallModuleReturn>;
600
- enableTimeline(dry: boolean): Promise<[string, string]>;
601
- requestForAuth(info?: string, origin?: string): Promise<void>;
602
- verifyAuthToken(token: string): Promise<boolean>;
602
+ getTerminals: () => TerminalInfo[];
603
+ getTerminalDetail: (token: string, id: string) => Promise<TerminalInfo | undefined>;
604
+ runTerminalAction: (token: string, id: string, action: TerminalAction) => Promise<boolean>;
605
+ getStorageMounts: () => Promise<StorageMounts>;
606
+ getStorageKeys: (base?: string) => Promise<string[]>;
607
+ getStorageItem: (token: string, key: string) => Promise<StorageValue>;
608
+ setStorageItem: (token: string, key: string, value: StorageValue) => Promise<void>;
609
+ removeStorageItem: (token: string, key: string) => Promise<void>;
610
+ getAnalyzeBuildInfo: () => Promise<AnalyzeBuildsInfo>;
611
+ generateAnalyzeBuildName: () => Promise<string>;
612
+ startAnalyzeBuild: (token: string, name: string) => Promise<string>;
613
+ clearAnalyzeBuilds: (token: string, names?: string[]) => Promise<void>;
614
+ getImageMeta: (token: string, filepath: string) => Promise<ImageMeta | undefined>;
615
+ getTextAssetContent: (token: string, filepath: string, limit?: number) => Promise<string | undefined>;
616
+ writeStaticAssets: (token: string, file: AssetEntry[], folder: string) => Promise<string[]>;
617
+ deleteStaticAsset: (token: string, filepath: string) => Promise<void>;
618
+ renameStaticAsset: (token: string, oldPath: string, newPath: string) => Promise<void>;
619
+ telemetryEvent: (payload: object, immediate?: boolean) => void;
620
+ customTabAction: (name: string, action: number) => Promise<boolean>;
621
+ runWizard: <T extends WizardActions>(token: string, name: T, ...args: GetWizardArgs<T>) => Promise<void>;
622
+ openInEditor: (filepath: string) => Promise<boolean>;
623
+ restartNuxt: (token: string, hard?: boolean) => Promise<void>;
624
+ installNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
625
+ uninstallNuxtModule: (token: string, name: string, dry?: boolean) => Promise<InstallModuleReturn>;
626
+ enableTimeline: (dry: boolean) => Promise<[string, string]>;
627
+ requestForAuth: (info?: string, origin?: string) => Promise<void>;
628
+ verifyAuthToken: (token: string) => Promise<boolean>;
603
629
  }
604
630
  interface ClientFunctions {
605
- refresh(event: ClientUpdateEvent): void;
606
- callHook(hook: string, ...args: any[]): Promise<void>;
607
- navigateTo(path: string): void;
608
- onTerminalData(_: {
631
+ refresh: (event: ClientUpdateEvent) => void;
632
+ callHook: (hook: string, ...args: any[]) => Promise<void>;
633
+ navigateTo: (path: string) => void;
634
+ onTerminalData: (_: {
609
635
  id: string;
610
636
  data: string;
611
- }): void;
612
- onTerminalExit(_: {
637
+ }) => void;
638
+ onTerminalExit: (_: {
613
639
  id: string;
614
640
  code?: number;
615
- }): void;
641
+ }) => void;
616
642
  }
617
643
  type ClientUpdateEvent = keyof ServerFunctions;
618
644
 
@@ -712,4 +738,4 @@ declare module '@nuxt/schema' {
712
738
  }
713
739
  }
714
740
 
715
- export type { ClientUpdateEvent as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStats as D, CompatibilityStatus as E, ModuleType as F, MaintainerInfo as G, HookInfo as H, ImageMeta as I, GitHubContributor as J, AssetType as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, AssetInfo as O, PluginMetric as P, AssetEntry as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, CodeSnippet as U, VueInspectorData as V, ComponentRelationship as W, ComponentWithRelationships as X, WizardFunctions as Y, WizardActions as Z, GetWizardArgs as _, VueInspectorClient as a, NuxtDevtoolsServerContext as a0, InstallModuleReturn as a1, AnalyzeBuildMeta as a2, AnalyzeBuildsInfo as a3, ModuleOptions as a4, ModuleGlobalOptions as a5, VSCodeIntegrationOptions as a6, VSCodeTunnelOptions as a7, NuxtDevToolsOptions as a8, TabCategory as a9, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, CategorizedTabs as k, TerminalBase as l, TerminalAction as m, TerminalInfo as n, PackageUpdateInfo as o, PackageManagerName as p, NpmCommandType as q, NpmCommandOptions as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, PluginInfoWithMetic as w, InstalledModuleInfo as x, ModuleStaticInfo as y, ModuleCompatibility as z };
741
+ export type { WizardActions as $, AutoImportsWithMetadata as A, BasicModuleInfo as B, ClientFunctions as C, ModuleStaticInfo as D, ModuleCompatibility as E, ModuleStats as F, CompatibilityStatus as G, HookInfo as H, ImageMeta as I, ModuleType as J, MaintainerInfo as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsInfo as N, GitHubContributor as O, PluginMetric as P, AssetType as Q, RouteInfo as R, SubprocessOptions as S, TerminalState as T, AssetInfo as U, VueInspectorData as V, AssetEntry as W, CodeSnippet as X, ComponentRelationship as Y, ComponentWithRelationships as Z, WizardFunctions as _, VueInspectorClient as a, GetWizardArgs as a0, ClientUpdateEvent as a1, NuxtDevtoolsServerContext as a2, InstallModuleReturn as a3, AnalyzeBuildMeta as a4, AnalyzeBuildsInfo as a5, ModuleOptions as a6, ModuleGlobalOptions as a7, VSCodeIntegrationOptions as a8, VSCodeTunnelOptions as a9, NuxtDevToolsOptions as aa, TabCategory as ab, ServerFunctions as b, ModuleLaunchView as c, ModuleIframeView as d, ModuleVNodeView as e, ModuleLaunchAction as f, ModuleView as g, ModuleIframeTabLazyOptions as h, ModuleBuiltinTab as i, ModuleTabInfo as j, CategorizedTabs as k, TerminalBase as l, TerminalAction as m, TerminalInfo as n, PackageUpdateInfo as o, PackageManagerName as p, NpmCommandType as q, NpmCommandOptions as r, ServerRouteInfo as s, ServerRouteInputType as t, ServerRouteInput as u, Payload as v, ServerTaskInfo as w, ScannedNitroTasks as x, PluginInfoWithMetic as y, InstalledModuleInfo as z };
package/dist/types.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.54b1e285.cjs';
2
- export { a2 as AnalyzeBuildMeta, a3 as AnalyzeBuildsInfo, Q as AssetEntry, O as AssetInfo, K as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, $ as ClientUpdateEvent, U as CodeSnippet, E as CompatibilityStatus, W as ComponentRelationship, X as ComponentWithRelationships, _ as GetWizardArgs, J as GitHubContributor, I as ImageMeta, a1 as InstallModuleReturn, x as InstalledModuleInfo, G as MaintainerInfo, i as ModuleBuiltinTab, z as ModuleCompatibility, M as ModuleCustomTab, a5 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a4 as ModuleOptions, y as ModuleStaticInfo, D as ModuleStats, j as ModuleTabInfo, F as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a8 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a0 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, w as PluginInfoWithMetic, R as RouteInfo, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, S as SubprocessOptions, a9 as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a6 as VSCodeIntegrationOptions, a7 as VSCodeTunnelOptions, Z as WizardActions, Y as WizardFunctions } from './shared/devtools-kit.54b1e285.cjs';
1
+ import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.60a5ddfa.cjs';
2
+ export { a4 as AnalyzeBuildMeta, a5 as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, a1 as ClientUpdateEvent, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, a0 as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a3 as InstallModuleReturn, z as InstalledModuleInfo, K as MaintainerInfo, i as ModuleBuiltinTab, E as ModuleCompatibility, M as ModuleCustomTab, a7 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a6 as ModuleOptions, D as ModuleStaticInfo, F as ModuleStats, j as ModuleTabInfo, J as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, aa as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a2 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, y as PluginInfoWithMetic, R as RouteInfo, x as ScannedNitroTasks, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, ab as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a8 as VSCodeIntegrationOptions, a9 as VSCodeTunnelOptions, $ as WizardActions, _ as WizardFunctions } from './shared/devtools-kit.60a5ddfa.cjs';
3
3
  import { Ref } from 'vue';
4
4
  import { AppConfig } from 'nuxt/schema';
5
5
  import { NuxtApp } from 'nuxt/app';
6
6
  import { Hookable } from 'hookable';
7
7
  import { BirpcReturn } from 'birpc';
8
- import { BuiltinLanguage } from 'shikiji';
8
+ import { BuiltinLanguage } from 'shiki';
9
9
  import { $Fetch } from 'ofetch';
10
10
  import { StackFrame } from 'error-stack-parser-es';
11
11
  import 'nitropack';
@@ -111,7 +111,7 @@ interface NuxtDevtoolsClientHooks {
111
111
  interface NuxtDevtoolsHostClient {
112
112
  nuxt: NuxtApp;
113
113
  hooks: Hookable<NuxtDevtoolsClientHooks>;
114
- getIframe(): HTMLIFrameElement | undefined;
114
+ getIframe: () => HTMLIFrameElement | undefined;
115
115
  inspector?: {
116
116
  instance?: VueInspectorClient;
117
117
  enable: () => void;
@@ -120,11 +120,11 @@ interface NuxtDevtoolsHostClient {
120
120
  isEnabled: Ref<boolean>;
121
121
  };
122
122
  devtools: {
123
- close(): void;
124
- open(): void;
125
- toggle(): void;
126
- reload(): void;
127
- navigate(path: string): void;
123
+ close: () => void;
124
+ open: () => void;
125
+ toggle: () => void;
126
+ reload: () => void;
127
+ navigate: (path: string) => void;
128
128
  /**
129
129
  * Popup the DevTools frame into Picture-in-Picture mode
130
130
  *
@@ -134,27 +134,27 @@ interface NuxtDevtoolsHostClient {
134
134
  *
135
135
  * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
136
136
  */
137
- popup?(): any;
137
+ popup?: () => any;
138
138
  };
139
139
  app: {
140
- reload(): void;
141
- navigate(path: string, hard?: boolean): void;
140
+ reload: () => void;
141
+ navigate: (path: string, hard?: boolean) => void;
142
142
  appConfig: AppConfig;
143
143
  colorMode: Ref<'dark' | 'light'>;
144
144
  frameState: Ref<DevToolsFrameState>;
145
145
  $fetch: $Fetch;
146
146
  };
147
147
  metrics: {
148
- clientHooks(): HookInfo[];
149
- clientPlugins(): PluginMetric[] | undefined;
150
- clientTimeline(): TimelineMetrics | undefined;
151
- loading(): LoadingTimeMetric;
148
+ clientHooks: () => HookInfo[];
149
+ clientPlugins: () => PluginMetric[] | undefined;
150
+ clientTimeline: () => TimelineMetrics | undefined;
151
+ loading: () => LoadingTimeMetric;
152
152
  };
153
153
  /**
154
154
  * Update client
155
155
  * @internal
156
156
  */
157
- syncClient(): NuxtDevtoolsHostClient;
157
+ syncClient: () => NuxtDevtoolsHostClient;
158
158
  }
159
159
  interface NuxtDevtoolsClient {
160
160
  rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
@@ -171,7 +171,7 @@ interface NuxtDevtoolsIframeClient {
171
171
  devtools: NuxtDevtoolsClient;
172
172
  }
173
173
  interface NuxtDevtoolsGlobal {
174
- setClient(client: NuxtDevtoolsHostClient): void;
174
+ setClient: (client: NuxtDevtoolsHostClient) => void;
175
175
  }
176
176
 
177
177
  export { ClientFunctions, type DevToolsFrameState, HookInfo, LoadingTimeMetric, type NuxtDevtoolsClient, type NuxtDevtoolsClientHooks, type NuxtDevtoolsGlobal, type NuxtDevtoolsHostClient, type NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, type TimelineEvent, type TimelineEventFunction, type TimelineEventNormalized, type TimelineEventRoute, type TimelineEventsSegment, type TimelineMetrics, type TimelineOptions, type TimelineServerState, VueInspectorClient, VueInspectorData };
package/dist/types.d.mts CHANGED
@@ -1,11 +1,11 @@
1
- import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.54b1e285.mjs';
2
- export { a2 as AnalyzeBuildMeta, a3 as AnalyzeBuildsInfo, Q as AssetEntry, O as AssetInfo, K as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, $ as ClientUpdateEvent, U as CodeSnippet, E as CompatibilityStatus, W as ComponentRelationship, X as ComponentWithRelationships, _ as GetWizardArgs, J as GitHubContributor, I as ImageMeta, a1 as InstallModuleReturn, x as InstalledModuleInfo, G as MaintainerInfo, i as ModuleBuiltinTab, z as ModuleCompatibility, M as ModuleCustomTab, a5 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a4 as ModuleOptions, y as ModuleStaticInfo, D as ModuleStats, j as ModuleTabInfo, F as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a8 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a0 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, w as PluginInfoWithMetic, R as RouteInfo, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, S as SubprocessOptions, a9 as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a6 as VSCodeIntegrationOptions, a7 as VSCodeTunnelOptions, Z as WizardActions, Y as WizardFunctions } from './shared/devtools-kit.54b1e285.mjs';
1
+ import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.60a5ddfa.mjs';
2
+ export { a4 as AnalyzeBuildMeta, a5 as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, a1 as ClientUpdateEvent, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, a0 as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a3 as InstallModuleReturn, z as InstalledModuleInfo, K as MaintainerInfo, i as ModuleBuiltinTab, E as ModuleCompatibility, M as ModuleCustomTab, a7 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a6 as ModuleOptions, D as ModuleStaticInfo, F as ModuleStats, j as ModuleTabInfo, J as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, aa as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a2 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, y as PluginInfoWithMetic, R as RouteInfo, x as ScannedNitroTasks, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, ab as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a8 as VSCodeIntegrationOptions, a9 as VSCodeTunnelOptions, $ as WizardActions, _ as WizardFunctions } from './shared/devtools-kit.60a5ddfa.mjs';
3
3
  import { Ref } from 'vue';
4
4
  import { AppConfig } from 'nuxt/schema';
5
5
  import { NuxtApp } from 'nuxt/app';
6
6
  import { Hookable } from 'hookable';
7
7
  import { BirpcReturn } from 'birpc';
8
- import { BuiltinLanguage } from 'shikiji';
8
+ import { BuiltinLanguage } from 'shiki';
9
9
  import { $Fetch } from 'ofetch';
10
10
  import { StackFrame } from 'error-stack-parser-es';
11
11
  import 'nitropack';
@@ -111,7 +111,7 @@ interface NuxtDevtoolsClientHooks {
111
111
  interface NuxtDevtoolsHostClient {
112
112
  nuxt: NuxtApp;
113
113
  hooks: Hookable<NuxtDevtoolsClientHooks>;
114
- getIframe(): HTMLIFrameElement | undefined;
114
+ getIframe: () => HTMLIFrameElement | undefined;
115
115
  inspector?: {
116
116
  instance?: VueInspectorClient;
117
117
  enable: () => void;
@@ -120,11 +120,11 @@ interface NuxtDevtoolsHostClient {
120
120
  isEnabled: Ref<boolean>;
121
121
  };
122
122
  devtools: {
123
- close(): void;
124
- open(): void;
125
- toggle(): void;
126
- reload(): void;
127
- navigate(path: string): void;
123
+ close: () => void;
124
+ open: () => void;
125
+ toggle: () => void;
126
+ reload: () => void;
127
+ navigate: (path: string) => void;
128
128
  /**
129
129
  * Popup the DevTools frame into Picture-in-Picture mode
130
130
  *
@@ -134,27 +134,27 @@ interface NuxtDevtoolsHostClient {
134
134
  *
135
135
  * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
136
136
  */
137
- popup?(): any;
137
+ popup?: () => any;
138
138
  };
139
139
  app: {
140
- reload(): void;
141
- navigate(path: string, hard?: boolean): void;
140
+ reload: () => void;
141
+ navigate: (path: string, hard?: boolean) => void;
142
142
  appConfig: AppConfig;
143
143
  colorMode: Ref<'dark' | 'light'>;
144
144
  frameState: Ref<DevToolsFrameState>;
145
145
  $fetch: $Fetch;
146
146
  };
147
147
  metrics: {
148
- clientHooks(): HookInfo[];
149
- clientPlugins(): PluginMetric[] | undefined;
150
- clientTimeline(): TimelineMetrics | undefined;
151
- loading(): LoadingTimeMetric;
148
+ clientHooks: () => HookInfo[];
149
+ clientPlugins: () => PluginMetric[] | undefined;
150
+ clientTimeline: () => TimelineMetrics | undefined;
151
+ loading: () => LoadingTimeMetric;
152
152
  };
153
153
  /**
154
154
  * Update client
155
155
  * @internal
156
156
  */
157
- syncClient(): NuxtDevtoolsHostClient;
157
+ syncClient: () => NuxtDevtoolsHostClient;
158
158
  }
159
159
  interface NuxtDevtoolsClient {
160
160
  rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
@@ -171,7 +171,7 @@ interface NuxtDevtoolsIframeClient {
171
171
  devtools: NuxtDevtoolsClient;
172
172
  }
173
173
  interface NuxtDevtoolsGlobal {
174
- setClient(client: NuxtDevtoolsHostClient): void;
174
+ setClient: (client: NuxtDevtoolsHostClient) => void;
175
175
  }
176
176
 
177
177
  export { ClientFunctions, type DevToolsFrameState, HookInfo, LoadingTimeMetric, type NuxtDevtoolsClient, type NuxtDevtoolsClientHooks, type NuxtDevtoolsGlobal, type NuxtDevtoolsHostClient, type NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, type TimelineEvent, type TimelineEventFunction, type TimelineEventNormalized, type TimelineEventRoute, type TimelineEventsSegment, type TimelineMetrics, type TimelineOptions, type TimelineServerState, VueInspectorClient, VueInspectorData };
package/dist/types.d.ts CHANGED
@@ -1,11 +1,11 @@
1
- import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.54b1e285.js';
2
- export { a2 as AnalyzeBuildMeta, a3 as AnalyzeBuildsInfo, Q as AssetEntry, O as AssetInfo, K as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, $ as ClientUpdateEvent, U as CodeSnippet, E as CompatibilityStatus, W as ComponentRelationship, X as ComponentWithRelationships, _ as GetWizardArgs, J as GitHubContributor, I as ImageMeta, a1 as InstallModuleReturn, x as InstalledModuleInfo, G as MaintainerInfo, i as ModuleBuiltinTab, z as ModuleCompatibility, M as ModuleCustomTab, a5 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a4 as ModuleOptions, y as ModuleStaticInfo, D as ModuleStats, j as ModuleTabInfo, F as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, a8 as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a0 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, w as PluginInfoWithMetic, R as RouteInfo, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, S as SubprocessOptions, a9 as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a6 as VSCodeIntegrationOptions, a7 as VSCodeTunnelOptions, Z as WizardActions, Y as WizardFunctions } from './shared/devtools-kit.54b1e285.js';
1
+ import { V as VueInspectorData, a as VueInspectorClient, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric, b as ServerFunctions, C as ClientFunctions } from './shared/devtools-kit.60a5ddfa.js';
2
+ export { a4 as AnalyzeBuildMeta, a5 as AnalyzeBuildsInfo, W as AssetEntry, U as AssetInfo, Q as AssetType, A as AutoImportsWithMetadata, B as BasicModuleInfo, k as CategorizedTabs, a1 as ClientUpdateEvent, X as CodeSnippet, G as CompatibilityStatus, Y as ComponentRelationship, Z as ComponentWithRelationships, a0 as GetWizardArgs, O as GitHubContributor, I as ImageMeta, a3 as InstallModuleReturn, z as InstalledModuleInfo, K as MaintainerInfo, i as ModuleBuiltinTab, E as ModuleCompatibility, M as ModuleCustomTab, a7 as ModuleGlobalOptions, h as ModuleIframeTabLazyOptions, d as ModuleIframeView, f as ModuleLaunchAction, c as ModuleLaunchView, a6 as ModuleOptions, D as ModuleStaticInfo, F as ModuleStats, j as ModuleTabInfo, J as ModuleType, e as ModuleVNodeView, g as ModuleView, r as NpmCommandOptions, q as NpmCommandType, aa as NuxtDevToolsOptions, N as NuxtDevtoolsInfo, a2 as NuxtDevtoolsServerContext, p as PackageManagerName, o as PackageUpdateInfo, v as Payload, y as PluginInfoWithMetic, R as RouteInfo, x as ScannedNitroTasks, s as ServerRouteInfo, u as ServerRouteInput, t as ServerRouteInputType, w as ServerTaskInfo, S as SubprocessOptions, ab as TabCategory, m as TerminalAction, l as TerminalBase, n as TerminalInfo, T as TerminalState, a8 as VSCodeIntegrationOptions, a9 as VSCodeTunnelOptions, $ as WizardActions, _ as WizardFunctions } from './shared/devtools-kit.60a5ddfa.js';
3
3
  import { Ref } from 'vue';
4
4
  import { AppConfig } from 'nuxt/schema';
5
5
  import { NuxtApp } from 'nuxt/app';
6
6
  import { Hookable } from 'hookable';
7
7
  import { BirpcReturn } from 'birpc';
8
- import { BuiltinLanguage } from 'shikiji';
8
+ import { BuiltinLanguage } from 'shiki';
9
9
  import { $Fetch } from 'ofetch';
10
10
  import { StackFrame } from 'error-stack-parser-es';
11
11
  import 'nitropack';
@@ -111,7 +111,7 @@ interface NuxtDevtoolsClientHooks {
111
111
  interface NuxtDevtoolsHostClient {
112
112
  nuxt: NuxtApp;
113
113
  hooks: Hookable<NuxtDevtoolsClientHooks>;
114
- getIframe(): HTMLIFrameElement | undefined;
114
+ getIframe: () => HTMLIFrameElement | undefined;
115
115
  inspector?: {
116
116
  instance?: VueInspectorClient;
117
117
  enable: () => void;
@@ -120,11 +120,11 @@ interface NuxtDevtoolsHostClient {
120
120
  isEnabled: Ref<boolean>;
121
121
  };
122
122
  devtools: {
123
- close(): void;
124
- open(): void;
125
- toggle(): void;
126
- reload(): void;
127
- navigate(path: string): void;
123
+ close: () => void;
124
+ open: () => void;
125
+ toggle: () => void;
126
+ reload: () => void;
127
+ navigate: (path: string) => void;
128
128
  /**
129
129
  * Popup the DevTools frame into Picture-in-Picture mode
130
130
  *
@@ -134,27 +134,27 @@ interface NuxtDevtoolsHostClient {
134
134
  *
135
135
  * @see https://developer.chrome.com/docs/web-platform/document-picture-in-picture/
136
136
  */
137
- popup?(): any;
137
+ popup?: () => any;
138
138
  };
139
139
  app: {
140
- reload(): void;
141
- navigate(path: string, hard?: boolean): void;
140
+ reload: () => void;
141
+ navigate: (path: string, hard?: boolean) => void;
142
142
  appConfig: AppConfig;
143
143
  colorMode: Ref<'dark' | 'light'>;
144
144
  frameState: Ref<DevToolsFrameState>;
145
145
  $fetch: $Fetch;
146
146
  };
147
147
  metrics: {
148
- clientHooks(): HookInfo[];
149
- clientPlugins(): PluginMetric[] | undefined;
150
- clientTimeline(): TimelineMetrics | undefined;
151
- loading(): LoadingTimeMetric;
148
+ clientHooks: () => HookInfo[];
149
+ clientPlugins: () => PluginMetric[] | undefined;
150
+ clientTimeline: () => TimelineMetrics | undefined;
151
+ loading: () => LoadingTimeMetric;
152
152
  };
153
153
  /**
154
154
  * Update client
155
155
  * @internal
156
156
  */
157
- syncClient(): NuxtDevtoolsHostClient;
157
+ syncClient: () => NuxtDevtoolsHostClient;
158
158
  }
159
159
  interface NuxtDevtoolsClient {
160
160
  rpc: BirpcReturn<ServerFunctions, ClientFunctions>;
@@ -171,7 +171,7 @@ interface NuxtDevtoolsIframeClient {
171
171
  devtools: NuxtDevtoolsClient;
172
172
  }
173
173
  interface NuxtDevtoolsGlobal {
174
- setClient(client: NuxtDevtoolsHostClient): void;
174
+ setClient: (client: NuxtDevtoolsHostClient) => void;
175
175
  }
176
176
 
177
177
  export { ClientFunctions, type DevToolsFrameState, HookInfo, LoadingTimeMetric, type NuxtDevtoolsClient, type NuxtDevtoolsClientHooks, type NuxtDevtoolsGlobal, type NuxtDevtoolsHostClient, type NuxtDevtoolsIframeClient, PluginMetric, ServerFunctions, type TimelineEvent, type TimelineEventFunction, type TimelineEventNormalized, type TimelineEventRoute, type TimelineEventsSegment, type TimelineMetrics, type TimelineOptions, type TimelineServerState, VueInspectorClient, VueInspectorData };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/devtools-kit",
3
3
  "type": "module",
4
- "version": "1.0.8",
4
+ "version": "1.1.1",
5
5
  "license": "MIT",
6
6
  "homepage": "https://devtools.nuxt.com/module/utils-kit",
7
7
  "repository": {
@@ -38,18 +38,18 @@
38
38
  "vite": "*"
39
39
  },
40
40
  "dependencies": {
41
- "@nuxt/kit": "^3.9.1",
42
- "@nuxt/schema": "^3.9.1",
41
+ "@nuxt/kit": "^3.11.1",
42
+ "@nuxt/schema": "^3.11.1",
43
43
  "execa": "^7.2.0"
44
44
  },
45
45
  "devDependencies": {
46
- "birpc": "^0.2.14",
46
+ "birpc": "^0.2.17",
47
47
  "error-stack-parser-es": "^0.1.1",
48
48
  "hookable": "^5.5.3",
49
49
  "unbuild": "^2.0.0",
50
50
  "unimport": "^3.7.1",
51
51
  "vite-plugin-vue-inspector": "^4.0.2",
52
- "vue-router": "^4.2.5"
52
+ "vue-router": "^4.3.0"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "unbuild",