@nuxt/devtools-kit 4.0.0-alpha.8 → 4.0.0-alpha.9

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.cjs CHANGED
@@ -40,7 +40,11 @@ const diagnosticCodes = {
40
40
  why: (p) => `\`${p.api}\` is deprecated.`,
41
41
  fix: (p) => `Use \`${p.replacement}\` instead.`
42
42
  },
43
- // NDT_DEP_0008 is reserved for the removed `vscode` module option.
43
+ /** Removed `vscode` module option → `codeServer`. */
44
+ NDT_DEP_0008: {
45
+ why: (p) => `\`${p.api}\` is deprecated and its legacy modes are no longer supported.`,
46
+ fix: (p) => `Use \`${p.replacement}\` instead. The legacy value is ignored rather than partially translated.`
47
+ },
44
48
  /** `getServerData()` RPC → the Data Inspector panel's `Nuxt Application` source. */
45
49
  NDT_DEP_0009: {
46
50
  why: (p) => `\`${p.api}\` is deprecated.`,
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import { ViteDevToolsNodeContext } from '@vitejs/devtools-kit';
3
3
  import { BirpcGroup } from 'birpc';
4
4
  import { ChildProcess } from 'node:child_process';
5
5
  import { Result } from 'tinyexec';
6
- import { N as NuxtDevtoolsServerContext, M as ModuleCustomTab, a as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.CC-eVeXW.cjs';
6
+ import { N as NuxtDevtoolsServerContext, M as ModuleCustomTab, a as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.Do7_fnKq.cjs';
7
7
  import * as nostics from 'nostics';
8
8
  import { defineDiagnostics } from 'nostics';
9
9
  export { createConsoleReporter, defineDiagnostics } from 'nostics';
@@ -72,6 +72,11 @@ declare const diagnosticCodes: {
72
72
  why: (p: DeprecationParams) => string;
73
73
  fix: (p: DeprecationParams) => string;
74
74
  };
75
+ /** Removed `vscode` module option → `codeServer`. */
76
+ NDT_DEP_0008: {
77
+ why: (p: DeprecationParams) => string;
78
+ fix: (p: DeprecationParams) => string;
79
+ };
75
80
  /** `getServerData()` RPC → the Data Inspector panel's `Nuxt Application` source. */
76
81
  NDT_DEP_0009: {
77
82
  why: (p: DeprecationParams) => string;
@@ -115,6 +120,11 @@ declare const consoleDiagnostics: nostics.Diagnostics<{
115
120
  why: (p: DeprecationParams) => string;
116
121
  fix: (p: DeprecationParams) => string;
117
122
  };
123
+ /** Removed `vscode` module option → `codeServer`. */
124
+ NDT_DEP_0008: {
125
+ why: (p: DeprecationParams) => string;
126
+ fix: (p: DeprecationParams) => string;
127
+ };
118
128
  /** `getServerData()` RPC → the Data Inspector panel's `Nuxt Application` source. */
119
129
  NDT_DEP_0009: {
120
130
  why: (p: DeprecationParams) => string;
package/dist/index.d.mts CHANGED
@@ -3,7 +3,7 @@ import { ViteDevToolsNodeContext } from '@vitejs/devtools-kit';
3
3
  import { BirpcGroup } from 'birpc';
4
4
  import { ChildProcess } from 'node:child_process';
5
5
  import { Result } from 'tinyexec';
6
- import { N as NuxtDevtoolsServerContext, M as ModuleCustomTab, a as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.CC-eVeXW.mjs';
6
+ import { N as NuxtDevtoolsServerContext, M as ModuleCustomTab, a as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.Do7_fnKq.mjs';
7
7
  import * as nostics from 'nostics';
8
8
  import { defineDiagnostics } from 'nostics';
9
9
  export { createConsoleReporter, defineDiagnostics } from 'nostics';
@@ -72,6 +72,11 @@ declare const diagnosticCodes: {
72
72
  why: (p: DeprecationParams) => string;
73
73
  fix: (p: DeprecationParams) => string;
74
74
  };
75
+ /** Removed `vscode` module option → `codeServer`. */
76
+ NDT_DEP_0008: {
77
+ why: (p: DeprecationParams) => string;
78
+ fix: (p: DeprecationParams) => string;
79
+ };
75
80
  /** `getServerData()` RPC → the Data Inspector panel's `Nuxt Application` source. */
76
81
  NDT_DEP_0009: {
77
82
  why: (p: DeprecationParams) => string;
@@ -115,6 +120,11 @@ declare const consoleDiagnostics: nostics.Diagnostics<{
115
120
  why: (p: DeprecationParams) => string;
116
121
  fix: (p: DeprecationParams) => string;
117
122
  };
123
+ /** Removed `vscode` module option → `codeServer`. */
124
+ NDT_DEP_0008: {
125
+ why: (p: DeprecationParams) => string;
126
+ fix: (p: DeprecationParams) => string;
127
+ };
118
128
  /** `getServerData()` RPC → the Data Inspector panel's `Nuxt Application` source. */
119
129
  NDT_DEP_0009: {
120
130
  why: (p: DeprecationParams) => string;
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { ViteDevToolsNodeContext } from '@vitejs/devtools-kit';
3
3
  import { BirpcGroup } from 'birpc';
4
4
  import { ChildProcess } from 'node:child_process';
5
5
  import { Result } from 'tinyexec';
6
- import { N as NuxtDevtoolsServerContext, M as ModuleCustomTab, a as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.CC-eVeXW.js';
6
+ import { N as NuxtDevtoolsServerContext, M as ModuleCustomTab, a as NuxtDevtoolsInfo, S as SubprocessOptions, T as TerminalState } from './shared/devtools-kit.Do7_fnKq.js';
7
7
  import * as nostics from 'nostics';
8
8
  import { defineDiagnostics } from 'nostics';
9
9
  export { createConsoleReporter, defineDiagnostics } from 'nostics';
@@ -72,6 +72,11 @@ declare const diagnosticCodes: {
72
72
  why: (p: DeprecationParams) => string;
73
73
  fix: (p: DeprecationParams) => string;
74
74
  };
75
+ /** Removed `vscode` module option → `codeServer`. */
76
+ NDT_DEP_0008: {
77
+ why: (p: DeprecationParams) => string;
78
+ fix: (p: DeprecationParams) => string;
79
+ };
75
80
  /** `getServerData()` RPC → the Data Inspector panel's `Nuxt Application` source. */
76
81
  NDT_DEP_0009: {
77
82
  why: (p: DeprecationParams) => string;
@@ -115,6 +120,11 @@ declare const consoleDiagnostics: nostics.Diagnostics<{
115
120
  why: (p: DeprecationParams) => string;
116
121
  fix: (p: DeprecationParams) => string;
117
122
  };
123
+ /** Removed `vscode` module option → `codeServer`. */
124
+ NDT_DEP_0008: {
125
+ why: (p: DeprecationParams) => string;
126
+ fix: (p: DeprecationParams) => string;
127
+ };
118
128
  /** `getServerData()` RPC → the Data Inspector panel's `Nuxt Application` source. */
119
129
  NDT_DEP_0009: {
120
130
  why: (p: DeprecationParams) => string;
package/dist/index.mjs CHANGED
@@ -39,7 +39,11 @@ const diagnosticCodes = {
39
39
  why: (p) => `\`${p.api}\` is deprecated.`,
40
40
  fix: (p) => `Use \`${p.replacement}\` instead.`
41
41
  },
42
- // NDT_DEP_0008 is reserved for the removed `vscode` module option.
42
+ /** Removed `vscode` module option → `codeServer`. */
43
+ NDT_DEP_0008: {
44
+ why: (p) => `\`${p.api}\` is deprecated and its legacy modes are no longer supported.`,
45
+ fix: (p) => `Use \`${p.replacement}\` instead. The legacy value is ignored rather than partially translated.`
46
+ },
43
47
  /** `getServerData()` RPC → the Data Inspector panel's `Nuxt Application` source. */
44
48
  NDT_DEP_0009: {
45
49
  why: (p) => `\`${p.api}\` is deprecated.`,
@@ -130,6 +130,7 @@ interface ModuleBuiltinTab {
130
130
  title?: string;
131
131
  path?: string;
132
132
  category?: TabCategory;
133
+ defaultOrder?: number;
133
134
  show?: () => MaybeRefOrGetter<any>;
134
135
  badge?: () => MaybeRefOrGetter<number | string | undefined>;
135
136
  onClick?: () => void;
@@ -383,13 +384,8 @@ interface ComponentWithRelationships {
383
384
  dependencies?: string[];
384
385
  dependents?: string[];
385
386
  }
386
- interface CodeServerOptions {
387
- codeBinary: string;
388
- launchArg: string;
389
- licenseTermsArg: string;
390
- connectionTokenArg: string;
391
- }
392
387
 
388
+ /** @deprecated Part of the removed `vscode` integration. */
393
389
  type CodeServerType = 'ms-code-cli' | 'ms-code-server' | 'coder-code-server';
394
390
  interface ModuleOptions {
395
391
  /**
@@ -404,8 +400,12 @@ interface ModuleOptions {
404
400
  * This is in static format, for dynamic injection, call `nuxt.hook('devtools:customTabs')` instead
405
401
  */
406
402
  customTabs?: ModuleCustomTab[];
403
+ /** Code Server integration options. */
404
+ codeServer?: CodeServerIntegrationOptions;
407
405
  /**
408
- * VS Code Server integration options.
406
+ * Legacy VS Code Server integration options.
407
+ *
408
+ * @deprecated Use `codeServer`. Legacy modes are no longer supported.
409
409
  */
410
410
  vscode?: VSCodeIntegrationOptions;
411
411
  /**
@@ -494,6 +494,31 @@ interface ModuleOptions {
494
494
  */
495
495
  telemetry?: boolean;
496
496
  }
497
+ interface CodeServerIntegrationOptions {
498
+ /**
499
+ * Enable the Code Server integration.
500
+ *
501
+ * @default true
502
+ */
503
+ enabled?: boolean;
504
+ /** Path or command name for Coder's `code-server` binary. */
505
+ bin?: string;
506
+ /** Workspace opened by Code Server. Defaults to the Nuxt root directory. */
507
+ cwd?: string;
508
+ /** Port for the Code Server process. Defaults to the plugin's free-port behavior. */
509
+ serverPort?: number;
510
+ /** Host for the Code Server process. Defaults to the plugin's loopback host. */
511
+ host?: string;
512
+ /** Additional safe arguments passed to `code-server`. */
513
+ args?: string[];
514
+ /** Additional safe environment variables passed to `code-server`. */
515
+ env?: Record<string, string>;
516
+ /** Suffix used to isolate the authenticated Code Server session cookie. */
517
+ cookieSuffix?: string;
518
+ /** Milliseconds to wait for Code Server to become ready. */
519
+ startTimeout?: number;
520
+ }
521
+ /** @deprecated Use {@link CodeServerIntegrationOptions}. */
497
522
  interface VSCodeIntegrationOptions {
498
523
  /**
499
524
  * Enable VS Code Server integration
@@ -539,6 +564,7 @@ interface VSCodeIntegrationOptions {
539
564
  */
540
565
  host?: string;
541
566
  }
567
+ /** @deprecated Tunnels are not supported by the Code Server integration. */
542
568
  interface VSCodeTunnelOptions {
543
569
  /**
544
570
  * the machine name for port forwarding service
@@ -561,13 +587,10 @@ interface NuxtDevToolsOptions {
561
587
  componentsView: 'list' | 'graph';
562
588
  hiddenTabCategories: string[];
563
589
  hiddenTabs: string[];
564
- interactionCloseOnOutsideClick: boolean;
565
590
  pinnedTabs: string[];
566
591
  scale: number;
567
592
  showExperimentalFeatures: boolean;
568
593
  showHelpButtons: boolean;
569
- sidebarExpanded: boolean;
570
- sidebarScrollable: boolean;
571
594
  };
572
595
  serverRoutes: {
573
596
  selectedRoute: ServerRouteInfo | null;
@@ -909,4 +932,4 @@ declare module '@nuxt/schema' {
909
932
  }
910
933
  }
911
934
 
912
- export type { PluginInfoWithMetic as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleStaticInfo as D, ModuleStats as E, ModuleTabInfo as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, ModuleType as J, ModuleVNodeView as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsServerContext as N, ModuleView as O, PluginMetric as P, NpmCommandOptions as Q, NpmCommandType as R, SubprocessOptions as S, TerminalState as T, NuxtDevToolsOptions as U, NuxtDevtoolsNotifyLevel as V, NuxtDevtoolsRpc as W, NuxtServerData as X, PackageManagerName as Y, PackageUpdateInfo as Z, Payload as _, NuxtDevtoolsInfo as a, RouteInfo as a0, ScannedNitroTasks as a1, ServerDebugContext as a2, ServerDebugModuleMutationRecord as a3, ServerRouteInfo as a4, ServerRouteInput as a5, ServerRouteInputType as a6, ServerTaskInfo as a7, TabCategory as a8, TerminalAction as a9, TerminalBase as aa, TerminalInfo as ab, VSCodeIntegrationOptions as ac, VSCodeTunnelOptions as ad, VueInspectorClient as ae, VueInspectorData as af, ServerFunctions as b, NuxtDevtoolsNotifyInput as c, AnalyzeBuildsInfo as d, AssetEntry as e, AssetInfo as f, AssetType as g, AutoImportsWithMetadata as h, ClientFunctions as i, ClientUpdateEvent as j, CodeServerOptions as k, CodeServerType as l, CodeSnippet as m, CompatibilityStatus as n, ComponentRelationship as o, ComponentWithRelationships as p, InstallModuleReturn as q, InstalledModuleInfo as r, MaintainerInfo as s, ModuleBuiltinTab as t, ModuleCompatibility as u, ModuleIframeTabLazyOptions as v, ModuleIframeView as w, ModuleLaunchAction as x, ModuleLaunchView as y, ModuleOptions as z };
935
+ export type { PluginInfoWithMetic as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleStaticInfo as D, ModuleStats as E, ModuleTabInfo as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, ModuleType as J, ModuleVNodeView as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsServerContext as N, ModuleView as O, PluginMetric as P, NpmCommandOptions as Q, NpmCommandType as R, SubprocessOptions as S, TerminalState as T, NuxtDevToolsOptions as U, NuxtDevtoolsNotifyLevel as V, NuxtDevtoolsRpc as W, NuxtServerData as X, PackageManagerName as Y, PackageUpdateInfo as Z, Payload as _, NuxtDevtoolsInfo as a, RouteInfo as a0, ScannedNitroTasks as a1, ServerDebugContext as a2, ServerDebugModuleMutationRecord as a3, ServerRouteInfo as a4, ServerRouteInput as a5, ServerRouteInputType as a6, ServerTaskInfo as a7, TabCategory as a8, TerminalAction as a9, TerminalBase as aa, TerminalInfo as ab, VSCodeIntegrationOptions as ac, VSCodeTunnelOptions as ad, VueInspectorClient as ae, VueInspectorData as af, ServerFunctions as b, NuxtDevtoolsNotifyInput as c, AnalyzeBuildsInfo as d, AssetEntry as e, AssetInfo as f, AssetType as g, AutoImportsWithMetadata as h, ClientFunctions as i, ClientUpdateEvent as j, CodeServerIntegrationOptions as k, CodeServerType as l, CodeSnippet as m, CompatibilityStatus as n, ComponentRelationship as o, ComponentWithRelationships as p, InstallModuleReturn as q, InstalledModuleInfo as r, MaintainerInfo as s, ModuleBuiltinTab as t, ModuleCompatibility as u, ModuleIframeTabLazyOptions as v, ModuleIframeView as w, ModuleLaunchAction as x, ModuleLaunchView as y, ModuleOptions as z };
@@ -130,6 +130,7 @@ interface ModuleBuiltinTab {
130
130
  title?: string;
131
131
  path?: string;
132
132
  category?: TabCategory;
133
+ defaultOrder?: number;
133
134
  show?: () => MaybeRefOrGetter<any>;
134
135
  badge?: () => MaybeRefOrGetter<number | string | undefined>;
135
136
  onClick?: () => void;
@@ -383,13 +384,8 @@ interface ComponentWithRelationships {
383
384
  dependencies?: string[];
384
385
  dependents?: string[];
385
386
  }
386
- interface CodeServerOptions {
387
- codeBinary: string;
388
- launchArg: string;
389
- licenseTermsArg: string;
390
- connectionTokenArg: string;
391
- }
392
387
 
388
+ /** @deprecated Part of the removed `vscode` integration. */
393
389
  type CodeServerType = 'ms-code-cli' | 'ms-code-server' | 'coder-code-server';
394
390
  interface ModuleOptions {
395
391
  /**
@@ -404,8 +400,12 @@ interface ModuleOptions {
404
400
  * This is in static format, for dynamic injection, call `nuxt.hook('devtools:customTabs')` instead
405
401
  */
406
402
  customTabs?: ModuleCustomTab[];
403
+ /** Code Server integration options. */
404
+ codeServer?: CodeServerIntegrationOptions;
407
405
  /**
408
- * VS Code Server integration options.
406
+ * Legacy VS Code Server integration options.
407
+ *
408
+ * @deprecated Use `codeServer`. Legacy modes are no longer supported.
409
409
  */
410
410
  vscode?: VSCodeIntegrationOptions;
411
411
  /**
@@ -494,6 +494,31 @@ interface ModuleOptions {
494
494
  */
495
495
  telemetry?: boolean;
496
496
  }
497
+ interface CodeServerIntegrationOptions {
498
+ /**
499
+ * Enable the Code Server integration.
500
+ *
501
+ * @default true
502
+ */
503
+ enabled?: boolean;
504
+ /** Path or command name for Coder's `code-server` binary. */
505
+ bin?: string;
506
+ /** Workspace opened by Code Server. Defaults to the Nuxt root directory. */
507
+ cwd?: string;
508
+ /** Port for the Code Server process. Defaults to the plugin's free-port behavior. */
509
+ serverPort?: number;
510
+ /** Host for the Code Server process. Defaults to the plugin's loopback host. */
511
+ host?: string;
512
+ /** Additional safe arguments passed to `code-server`. */
513
+ args?: string[];
514
+ /** Additional safe environment variables passed to `code-server`. */
515
+ env?: Record<string, string>;
516
+ /** Suffix used to isolate the authenticated Code Server session cookie. */
517
+ cookieSuffix?: string;
518
+ /** Milliseconds to wait for Code Server to become ready. */
519
+ startTimeout?: number;
520
+ }
521
+ /** @deprecated Use {@link CodeServerIntegrationOptions}. */
497
522
  interface VSCodeIntegrationOptions {
498
523
  /**
499
524
  * Enable VS Code Server integration
@@ -539,6 +564,7 @@ interface VSCodeIntegrationOptions {
539
564
  */
540
565
  host?: string;
541
566
  }
567
+ /** @deprecated Tunnels are not supported by the Code Server integration. */
542
568
  interface VSCodeTunnelOptions {
543
569
  /**
544
570
  * the machine name for port forwarding service
@@ -561,13 +587,10 @@ interface NuxtDevToolsOptions {
561
587
  componentsView: 'list' | 'graph';
562
588
  hiddenTabCategories: string[];
563
589
  hiddenTabs: string[];
564
- interactionCloseOnOutsideClick: boolean;
565
590
  pinnedTabs: string[];
566
591
  scale: number;
567
592
  showExperimentalFeatures: boolean;
568
593
  showHelpButtons: boolean;
569
- sidebarExpanded: boolean;
570
- sidebarScrollable: boolean;
571
594
  };
572
595
  serverRoutes: {
573
596
  selectedRoute: ServerRouteInfo | null;
@@ -909,4 +932,4 @@ declare module '@nuxt/schema' {
909
932
  }
910
933
  }
911
934
 
912
- export type { PluginInfoWithMetic as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleStaticInfo as D, ModuleStats as E, ModuleTabInfo as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, ModuleType as J, ModuleVNodeView as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsServerContext as N, ModuleView as O, PluginMetric as P, NpmCommandOptions as Q, NpmCommandType as R, SubprocessOptions as S, TerminalState as T, NuxtDevToolsOptions as U, NuxtDevtoolsNotifyLevel as V, NuxtDevtoolsRpc as W, NuxtServerData as X, PackageManagerName as Y, PackageUpdateInfo as Z, Payload as _, NuxtDevtoolsInfo as a, RouteInfo as a0, ScannedNitroTasks as a1, ServerDebugContext as a2, ServerDebugModuleMutationRecord as a3, ServerRouteInfo as a4, ServerRouteInput as a5, ServerRouteInputType as a6, ServerTaskInfo as a7, TabCategory as a8, TerminalAction as a9, TerminalBase as aa, TerminalInfo as ab, VSCodeIntegrationOptions as ac, VSCodeTunnelOptions as ad, VueInspectorClient as ae, VueInspectorData as af, ServerFunctions as b, NuxtDevtoolsNotifyInput as c, AnalyzeBuildsInfo as d, AssetEntry as e, AssetInfo as f, AssetType as g, AutoImportsWithMetadata as h, ClientFunctions as i, ClientUpdateEvent as j, CodeServerOptions as k, CodeServerType as l, CodeSnippet as m, CompatibilityStatus as n, ComponentRelationship as o, ComponentWithRelationships as p, InstallModuleReturn as q, InstalledModuleInfo as r, MaintainerInfo as s, ModuleBuiltinTab as t, ModuleCompatibility as u, ModuleIframeTabLazyOptions as v, ModuleIframeView as w, ModuleLaunchAction as x, ModuleLaunchView as y, ModuleOptions as z };
935
+ export type { PluginInfoWithMetic as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleStaticInfo as D, ModuleStats as E, ModuleTabInfo as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, ModuleType as J, ModuleVNodeView as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsServerContext as N, ModuleView as O, PluginMetric as P, NpmCommandOptions as Q, NpmCommandType as R, SubprocessOptions as S, TerminalState as T, NuxtDevToolsOptions as U, NuxtDevtoolsNotifyLevel as V, NuxtDevtoolsRpc as W, NuxtServerData as X, PackageManagerName as Y, PackageUpdateInfo as Z, Payload as _, NuxtDevtoolsInfo as a, RouteInfo as a0, ScannedNitroTasks as a1, ServerDebugContext as a2, ServerDebugModuleMutationRecord as a3, ServerRouteInfo as a4, ServerRouteInput as a5, ServerRouteInputType as a6, ServerTaskInfo as a7, TabCategory as a8, TerminalAction as a9, TerminalBase as aa, TerminalInfo as ab, VSCodeIntegrationOptions as ac, VSCodeTunnelOptions as ad, VueInspectorClient as ae, VueInspectorData as af, ServerFunctions as b, NuxtDevtoolsNotifyInput as c, AnalyzeBuildsInfo as d, AssetEntry as e, AssetInfo as f, AssetType as g, AutoImportsWithMetadata as h, ClientFunctions as i, ClientUpdateEvent as j, CodeServerIntegrationOptions as k, CodeServerType as l, CodeSnippet as m, CompatibilityStatus as n, ComponentRelationship as o, ComponentWithRelationships as p, InstallModuleReturn as q, InstalledModuleInfo as r, MaintainerInfo as s, ModuleBuiltinTab as t, ModuleCompatibility as u, ModuleIframeTabLazyOptions as v, ModuleIframeView as w, ModuleLaunchAction as x, ModuleLaunchView as y, ModuleOptions as z };
@@ -130,6 +130,7 @@ interface ModuleBuiltinTab {
130
130
  title?: string;
131
131
  path?: string;
132
132
  category?: TabCategory;
133
+ defaultOrder?: number;
133
134
  show?: () => MaybeRefOrGetter<any>;
134
135
  badge?: () => MaybeRefOrGetter<number | string | undefined>;
135
136
  onClick?: () => void;
@@ -383,13 +384,8 @@ interface ComponentWithRelationships {
383
384
  dependencies?: string[];
384
385
  dependents?: string[];
385
386
  }
386
- interface CodeServerOptions {
387
- codeBinary: string;
388
- launchArg: string;
389
- licenseTermsArg: string;
390
- connectionTokenArg: string;
391
- }
392
387
 
388
+ /** @deprecated Part of the removed `vscode` integration. */
393
389
  type CodeServerType = 'ms-code-cli' | 'ms-code-server' | 'coder-code-server';
394
390
  interface ModuleOptions {
395
391
  /**
@@ -404,8 +400,12 @@ interface ModuleOptions {
404
400
  * This is in static format, for dynamic injection, call `nuxt.hook('devtools:customTabs')` instead
405
401
  */
406
402
  customTabs?: ModuleCustomTab[];
403
+ /** Code Server integration options. */
404
+ codeServer?: CodeServerIntegrationOptions;
407
405
  /**
408
- * VS Code Server integration options.
406
+ * Legacy VS Code Server integration options.
407
+ *
408
+ * @deprecated Use `codeServer`. Legacy modes are no longer supported.
409
409
  */
410
410
  vscode?: VSCodeIntegrationOptions;
411
411
  /**
@@ -494,6 +494,31 @@ interface ModuleOptions {
494
494
  */
495
495
  telemetry?: boolean;
496
496
  }
497
+ interface CodeServerIntegrationOptions {
498
+ /**
499
+ * Enable the Code Server integration.
500
+ *
501
+ * @default true
502
+ */
503
+ enabled?: boolean;
504
+ /** Path or command name for Coder's `code-server` binary. */
505
+ bin?: string;
506
+ /** Workspace opened by Code Server. Defaults to the Nuxt root directory. */
507
+ cwd?: string;
508
+ /** Port for the Code Server process. Defaults to the plugin's free-port behavior. */
509
+ serverPort?: number;
510
+ /** Host for the Code Server process. Defaults to the plugin's loopback host. */
511
+ host?: string;
512
+ /** Additional safe arguments passed to `code-server`. */
513
+ args?: string[];
514
+ /** Additional safe environment variables passed to `code-server`. */
515
+ env?: Record<string, string>;
516
+ /** Suffix used to isolate the authenticated Code Server session cookie. */
517
+ cookieSuffix?: string;
518
+ /** Milliseconds to wait for Code Server to become ready. */
519
+ startTimeout?: number;
520
+ }
521
+ /** @deprecated Use {@link CodeServerIntegrationOptions}. */
497
522
  interface VSCodeIntegrationOptions {
498
523
  /**
499
524
  * Enable VS Code Server integration
@@ -539,6 +564,7 @@ interface VSCodeIntegrationOptions {
539
564
  */
540
565
  host?: string;
541
566
  }
567
+ /** @deprecated Tunnels are not supported by the Code Server integration. */
542
568
  interface VSCodeTunnelOptions {
543
569
  /**
544
570
  * the machine name for port forwarding service
@@ -561,13 +587,10 @@ interface NuxtDevToolsOptions {
561
587
  componentsView: 'list' | 'graph';
562
588
  hiddenTabCategories: string[];
563
589
  hiddenTabs: string[];
564
- interactionCloseOnOutsideClick: boolean;
565
590
  pinnedTabs: string[];
566
591
  scale: number;
567
592
  showExperimentalFeatures: boolean;
568
593
  showHelpButtons: boolean;
569
- sidebarExpanded: boolean;
570
- sidebarScrollable: boolean;
571
594
  };
572
595
  serverRoutes: {
573
596
  selectedRoute: ServerRouteInfo | null;
@@ -909,4 +932,4 @@ declare module '@nuxt/schema' {
909
932
  }
910
933
  }
911
934
 
912
- export type { PluginInfoWithMetic as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleStaticInfo as D, ModuleStats as E, ModuleTabInfo as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, ModuleType as J, ModuleVNodeView as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsServerContext as N, ModuleView as O, PluginMetric as P, NpmCommandOptions as Q, NpmCommandType as R, SubprocessOptions as S, TerminalState as T, NuxtDevToolsOptions as U, NuxtDevtoolsNotifyLevel as V, NuxtDevtoolsRpc as W, NuxtServerData as X, PackageManagerName as Y, PackageUpdateInfo as Z, Payload as _, NuxtDevtoolsInfo as a, RouteInfo as a0, ScannedNitroTasks as a1, ServerDebugContext as a2, ServerDebugModuleMutationRecord as a3, ServerRouteInfo as a4, ServerRouteInput as a5, ServerRouteInputType as a6, ServerTaskInfo as a7, TabCategory as a8, TerminalAction as a9, TerminalBase as aa, TerminalInfo as ab, VSCodeIntegrationOptions as ac, VSCodeTunnelOptions as ad, VueInspectorClient as ae, VueInspectorData as af, ServerFunctions as b, NuxtDevtoolsNotifyInput as c, AnalyzeBuildsInfo as d, AssetEntry as e, AssetInfo as f, AssetType as g, AutoImportsWithMetadata as h, ClientFunctions as i, ClientUpdateEvent as j, CodeServerOptions as k, CodeServerType as l, CodeSnippet as m, CompatibilityStatus as n, ComponentRelationship as o, ComponentWithRelationships as p, InstallModuleReturn as q, InstalledModuleInfo as r, MaintainerInfo as s, ModuleBuiltinTab as t, ModuleCompatibility as u, ModuleIframeTabLazyOptions as v, ModuleIframeView as w, ModuleLaunchAction as x, ModuleLaunchView as y, ModuleOptions as z };
935
+ export type { PluginInfoWithMetic as $, AnalyzeBuildMeta as A, BasicModuleInfo as B, CategorizedTabs as C, ModuleStaticInfo as D, ModuleStats as E, ModuleTabInfo as F, GitHubContributor as G, HookInfo as H, ImageMeta as I, ModuleType as J, ModuleVNodeView as K, LoadingTimeMetric as L, ModuleCustomTab as M, NuxtDevtoolsServerContext as N, ModuleView as O, PluginMetric as P, NpmCommandOptions as Q, NpmCommandType as R, SubprocessOptions as S, TerminalState as T, NuxtDevToolsOptions as U, NuxtDevtoolsNotifyLevel as V, NuxtDevtoolsRpc as W, NuxtServerData as X, PackageManagerName as Y, PackageUpdateInfo as Z, Payload as _, NuxtDevtoolsInfo as a, RouteInfo as a0, ScannedNitroTasks as a1, ServerDebugContext as a2, ServerDebugModuleMutationRecord as a3, ServerRouteInfo as a4, ServerRouteInput as a5, ServerRouteInputType as a6, ServerTaskInfo as a7, TabCategory as a8, TerminalAction as a9, TerminalBase as aa, TerminalInfo as ab, VSCodeIntegrationOptions as ac, VSCodeTunnelOptions as ad, VueInspectorClient as ae, VueInspectorData as af, ServerFunctions as b, NuxtDevtoolsNotifyInput as c, AnalyzeBuildsInfo as d, AssetEntry as e, AssetInfo as f, AssetType as g, AutoImportsWithMetadata as h, ClientFunctions as i, ClientUpdateEvent as j, CodeServerIntegrationOptions as k, CodeServerType as l, CodeSnippet as m, CompatibilityStatus as n, ComponentRelationship as o, ComponentWithRelationships as p, InstallModuleReturn as q, InstalledModuleInfo as r, MaintainerInfo as s, ModuleBuiltinTab as t, ModuleCompatibility as u, ModuleIframeTabLazyOptions as v, ModuleIframeView as w, ModuleLaunchAction as x, ModuleLaunchView as y, ModuleOptions as z };
package/dist/types.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { b as ServerFunctions, c as NuxtDevtoolsNotifyInput, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.CC-eVeXW.cjs';
2
- export { A as AnalyzeBuildMeta, d as AnalyzeBuildsInfo, e as AssetEntry, f as AssetInfo, g as AssetType, h as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, i as ClientFunctions, j as ClientUpdateEvent, k as CodeServerOptions, l as CodeServerType, m as CodeSnippet, n as CompatibilityStatus, o as ComponentRelationship, p as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, q as InstallModuleReturn, r as InstalledModuleInfo, s as MaintainerInfo, t as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, a as NuxtDevtoolsInfo, V as NuxtDevtoolsNotifyLevel, W as NuxtDevtoolsRpc, N as NuxtDevtoolsServerContext, X as NuxtServerData, Y as PackageManagerName, Z as PackageUpdateInfo, _ as Payload, $ as PluginInfoWithMetic, a0 as RouteInfo, a1 as ScannedNitroTasks, a2 as ServerDebugContext, a3 as ServerDebugModuleMutationRecord, a4 as ServerRouteInfo, a5 as ServerRouteInput, a6 as ServerRouteInputType, a7 as ServerTaskInfo, S as SubprocessOptions, a8 as TabCategory, a9 as TerminalAction, aa as TerminalBase, ab as TerminalInfo, T as TerminalState, ac as VSCodeIntegrationOptions, ad as VSCodeTunnelOptions, ae as VueInspectorClient, af as VueInspectorData } from './shared/devtools-kit.CC-eVeXW.cjs';
1
+ import { b as ServerFunctions, c as NuxtDevtoolsNotifyInput, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.Do7_fnKq.cjs';
2
+ export { A as AnalyzeBuildMeta, d as AnalyzeBuildsInfo, e as AssetEntry, f as AssetInfo, g as AssetType, h as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, i as ClientFunctions, j as ClientUpdateEvent, k as CodeServerIntegrationOptions, l as CodeServerType, m as CodeSnippet, n as CompatibilityStatus, o as ComponentRelationship, p as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, q as InstallModuleReturn, r as InstalledModuleInfo, s as MaintainerInfo, t as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, a as NuxtDevtoolsInfo, V as NuxtDevtoolsNotifyLevel, W as NuxtDevtoolsRpc, N as NuxtDevtoolsServerContext, X as NuxtServerData, Y as PackageManagerName, Z as PackageUpdateInfo, _ as Payload, $ as PluginInfoWithMetic, a0 as RouteInfo, a1 as ScannedNitroTasks, a2 as ServerDebugContext, a3 as ServerDebugModuleMutationRecord, a4 as ServerRouteInfo, a5 as ServerRouteInput, a6 as ServerRouteInputType, a7 as ServerTaskInfo, S as SubprocessOptions, a8 as TabCategory, a9 as TerminalAction, aa as TerminalBase, ab as TerminalInfo, T as TerminalState, ac as VSCodeIntegrationOptions, ad as VSCodeTunnelOptions, ae as VueInspectorClient, af as VueInspectorData } from './shared/devtools-kit.Do7_fnKq.cjs';
3
3
  import { DevToolsRpcClient } from '@vitejs/devtools-kit/client';
4
4
  import { Hookable } from 'hookable';
5
5
  import { NuxtApp } from 'nuxt/app';
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { b as ServerFunctions, c as NuxtDevtoolsNotifyInput, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.CC-eVeXW.mjs';
2
- export { A as AnalyzeBuildMeta, d as AnalyzeBuildsInfo, e as AssetEntry, f as AssetInfo, g as AssetType, h as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, i as ClientFunctions, j as ClientUpdateEvent, k as CodeServerOptions, l as CodeServerType, m as CodeSnippet, n as CompatibilityStatus, o as ComponentRelationship, p as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, q as InstallModuleReturn, r as InstalledModuleInfo, s as MaintainerInfo, t as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, a as NuxtDevtoolsInfo, V as NuxtDevtoolsNotifyLevel, W as NuxtDevtoolsRpc, N as NuxtDevtoolsServerContext, X as NuxtServerData, Y as PackageManagerName, Z as PackageUpdateInfo, _ as Payload, $ as PluginInfoWithMetic, a0 as RouteInfo, a1 as ScannedNitroTasks, a2 as ServerDebugContext, a3 as ServerDebugModuleMutationRecord, a4 as ServerRouteInfo, a5 as ServerRouteInput, a6 as ServerRouteInputType, a7 as ServerTaskInfo, S as SubprocessOptions, a8 as TabCategory, a9 as TerminalAction, aa as TerminalBase, ab as TerminalInfo, T as TerminalState, ac as VSCodeIntegrationOptions, ad as VSCodeTunnelOptions, ae as VueInspectorClient, af as VueInspectorData } from './shared/devtools-kit.CC-eVeXW.mjs';
1
+ import { b as ServerFunctions, c as NuxtDevtoolsNotifyInput, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.Do7_fnKq.mjs';
2
+ export { A as AnalyzeBuildMeta, d as AnalyzeBuildsInfo, e as AssetEntry, f as AssetInfo, g as AssetType, h as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, i as ClientFunctions, j as ClientUpdateEvent, k as CodeServerIntegrationOptions, l as CodeServerType, m as CodeSnippet, n as CompatibilityStatus, o as ComponentRelationship, p as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, q as InstallModuleReturn, r as InstalledModuleInfo, s as MaintainerInfo, t as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, a as NuxtDevtoolsInfo, V as NuxtDevtoolsNotifyLevel, W as NuxtDevtoolsRpc, N as NuxtDevtoolsServerContext, X as NuxtServerData, Y as PackageManagerName, Z as PackageUpdateInfo, _ as Payload, $ as PluginInfoWithMetic, a0 as RouteInfo, a1 as ScannedNitroTasks, a2 as ServerDebugContext, a3 as ServerDebugModuleMutationRecord, a4 as ServerRouteInfo, a5 as ServerRouteInput, a6 as ServerRouteInputType, a7 as ServerTaskInfo, S as SubprocessOptions, a8 as TabCategory, a9 as TerminalAction, aa as TerminalBase, ab as TerminalInfo, T as TerminalState, ac as VSCodeIntegrationOptions, ad as VSCodeTunnelOptions, ae as VueInspectorClient, af as VueInspectorData } from './shared/devtools-kit.Do7_fnKq.mjs';
3
3
  import { DevToolsRpcClient } from '@vitejs/devtools-kit/client';
4
4
  import { Hookable } from 'hookable';
5
5
  import { NuxtApp } from 'nuxt/app';
package/dist/types.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { b as ServerFunctions, c as NuxtDevtoolsNotifyInput, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.CC-eVeXW.js';
2
- export { A as AnalyzeBuildMeta, d as AnalyzeBuildsInfo, e as AssetEntry, f as AssetInfo, g as AssetType, h as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, i as ClientFunctions, j as ClientUpdateEvent, k as CodeServerOptions, l as CodeServerType, m as CodeSnippet, n as CompatibilityStatus, o as ComponentRelationship, p as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, q as InstallModuleReturn, r as InstalledModuleInfo, s as MaintainerInfo, t as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, a as NuxtDevtoolsInfo, V as NuxtDevtoolsNotifyLevel, W as NuxtDevtoolsRpc, N as NuxtDevtoolsServerContext, X as NuxtServerData, Y as PackageManagerName, Z as PackageUpdateInfo, _ as Payload, $ as PluginInfoWithMetic, a0 as RouteInfo, a1 as ScannedNitroTasks, a2 as ServerDebugContext, a3 as ServerDebugModuleMutationRecord, a4 as ServerRouteInfo, a5 as ServerRouteInput, a6 as ServerRouteInputType, a7 as ServerTaskInfo, S as SubprocessOptions, a8 as TabCategory, a9 as TerminalAction, aa as TerminalBase, ab as TerminalInfo, T as TerminalState, ac as VSCodeIntegrationOptions, ad as VSCodeTunnelOptions, ae as VueInspectorClient, af as VueInspectorData } from './shared/devtools-kit.CC-eVeXW.js';
1
+ import { b as ServerFunctions, c as NuxtDevtoolsNotifyInput, H as HookInfo, P as PluginMetric, L as LoadingTimeMetric } from './shared/devtools-kit.Do7_fnKq.js';
2
+ export { A as AnalyzeBuildMeta, d as AnalyzeBuildsInfo, e as AssetEntry, f as AssetInfo, g as AssetType, h as AutoImportsWithMetadata, B as BasicModuleInfo, C as CategorizedTabs, i as ClientFunctions, j as ClientUpdateEvent, k as CodeServerIntegrationOptions, l as CodeServerType, m as CodeSnippet, n as CompatibilityStatus, o as ComponentRelationship, p as ComponentWithRelationships, G as GitHubContributor, I as ImageMeta, q as InstallModuleReturn, r as InstalledModuleInfo, s as MaintainerInfo, t as ModuleBuiltinTab, u as ModuleCompatibility, M as ModuleCustomTab, v as ModuleIframeTabLazyOptions, w as ModuleIframeView, x as ModuleLaunchAction, y as ModuleLaunchView, z as ModuleOptions, D as ModuleStaticInfo, E as ModuleStats, F as ModuleTabInfo, J as ModuleType, K as ModuleVNodeView, O as ModuleView, Q as NpmCommandOptions, R as NpmCommandType, U as NuxtDevToolsOptions, a as NuxtDevtoolsInfo, V as NuxtDevtoolsNotifyLevel, W as NuxtDevtoolsRpc, N as NuxtDevtoolsServerContext, X as NuxtServerData, Y as PackageManagerName, Z as PackageUpdateInfo, _ as Payload, $ as PluginInfoWithMetic, a0 as RouteInfo, a1 as ScannedNitroTasks, a2 as ServerDebugContext, a3 as ServerDebugModuleMutationRecord, a4 as ServerRouteInfo, a5 as ServerRouteInput, a6 as ServerRouteInputType, a7 as ServerTaskInfo, S as SubprocessOptions, a8 as TabCategory, a9 as TerminalAction, aa as TerminalBase, ab as TerminalInfo, T as TerminalState, ac as VSCodeIntegrationOptions, ad as VSCodeTunnelOptions, ae as VueInspectorClient, af as VueInspectorData } from './shared/devtools-kit.Do7_fnKq.js';
3
3
  import { DevToolsRpcClient } from '@vitejs/devtools-kit/client';
4
4
  import { Hookable } from 'hookable';
5
5
  import { NuxtApp } from 'nuxt/app';
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.8",
4
+ "version": "4.0.0-alpha.9",
5
5
  "license": "MIT",
6
6
  "homepage": "https://devtools.nuxt.com/module/utils-kit",
7
7
  "repository": {