unplugin-devpilot 0.0.0 → 0.0.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/farm.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as unpluginDevpilot } from "./index-CyKvTBcJ.mjs";
1
+ import { t as unpluginDevpilot } from "./index-CQudsm6j.mjs";
2
2
 
3
3
  //#region src/farm.d.ts
4
4
  /**
package/dist/farm.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as unpluginDevpilot } from "./src-aMXlip6o.mjs";
1
+ import { n as unpluginDevpilot } from "./src-42lrzRI8.mjs";
2
2
 
3
3
  //#region src/farm.ts
4
4
  /**
@@ -4111,6 +4111,7 @@ interface DevpilotPluginContext {
4111
4111
  }
4112
4112
  /**
4113
4113
  * Resolve the module path relative to the plugin to an absolute path
4114
+ * Handles cross-platform paths (Windows, macOS, Linux) and proper escaping for imports
4114
4115
  * @param importMetaUrl - Pass in import.meta.url
4115
4116
  * @param relativePath - Path relative to the plugin
4116
4117
  * @example
@@ -1,4 +1,4 @@
1
- import { r as McpToolRegister, t as DevpilotPluginContext } from "./index-CL0Gw5-1.mjs";
1
+ import { r as McpToolRegister, t as DevpilotPluginContext } from "./index-9V3dRAxA.mjs";
2
2
  import { UnpluginInstance } from "unplugin";
3
3
  import { WebSocket } from "ws";
4
4
 
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { i as defineMcpToolRegister, n as resolveClientModule, t as DevpilotPluginContext } from "./index-CL0Gw5-1.mjs";
2
- import { a as ClientDiscoveryFilter, c as PendingTask, d as ServerFunctions, f as TaskHistory, i as BaseServerFunctions, l as PluginClientFunctions, m as Options, n as clientManager, o as ClientFunctions, p as DevpilotPlugin, r as BaseClientFunctions, s as ClientInfo, t as unpluginDevpilot, u as PluginServerFunctions } from "./index-CyKvTBcJ.mjs";
1
+ import { i as defineMcpToolRegister, n as resolveClientModule, t as DevpilotPluginContext } from "./index-9V3dRAxA.mjs";
2
+ import { a as ClientDiscoveryFilter, c as PendingTask, d as ServerFunctions, f as TaskHistory, i as BaseServerFunctions, l as PluginClientFunctions, m as Options, n as clientManager, o as ClientFunctions, p as DevpilotPlugin, r as BaseClientFunctions, s as ClientInfo, t as unpluginDevpilot, u as PluginServerFunctions } from "./index-CQudsm6j.mjs";
3
3
  export { BaseClientFunctions, BaseServerFunctions, ClientDiscoveryFilter, ClientFunctions, ClientInfo, DevpilotPlugin, DevpilotPluginContext, Options, PendingTask, PluginClientFunctions, PluginServerFunctions, ServerFunctions, TaskHistory, clientManager, unpluginDevpilot as default, unpluginDevpilot, defineMcpToolRegister, resolveClientModule };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as unpluginDevpilot, r as clientManager, t as src_default } from "./src-aMXlip6o.mjs";
2
- import { n as defineMcpToolRegister, t as resolveClientModule } from "./plugin-PB-j5Ck2.mjs";
1
+ import { n as unpluginDevpilot, r as clientManager, t as src_default } from "./src-42lrzRI8.mjs";
2
+ import { n as defineMcpToolRegister, t as resolveClientModule } from "./plugin-BPkoZQbf.mjs";
3
3
 
4
4
  export { clientManager, src_default as default, defineMcpToolRegister, resolveClientModule, unpluginDevpilot };
@@ -1,5 +1,5 @@
1
- import { dirname } from "node:path";
2
- import { fileURLToPath } from "node:url";
1
+ import { dirname, join } from "node:path";
2
+ import { fileURLToPath, pathToFileURL } from "node:url";
3
3
 
4
4
  //#region src/core/plugin/mcp.ts
5
5
  function defineMcpToolRegister(name, config, cb) {
@@ -14,6 +14,7 @@ function defineMcpToolRegister(name, config, cb) {
14
14
  //#region src/core/plugin/index.ts
15
15
  /**
16
16
  * Resolve the module path relative to the plugin to an absolute path
17
+ * Handles cross-platform paths (Windows, macOS, Linux) and proper escaping for imports
17
18
  * @param importMetaUrl - Pass in import.meta.url
18
19
  * @param relativePath - Path relative to the plugin
19
20
  * @example
@@ -29,7 +30,7 @@ function defineMcpToolRegister(name, config, cb) {
29
30
  * ```
30
31
  */
31
32
  function resolveClientModule(importMetaUrl, relativePath) {
32
- return `${dirname(fileURLToPath(importMetaUrl))}/${relativePath}`;
33
+ return pathToFileURL(join(dirname(fileURLToPath(importMetaUrl)), relativePath)).href;
33
34
  }
34
35
 
35
36
  //#endregion
package/dist/plugin.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { i as defineMcpToolRegister, n as resolveClientModule, r as McpToolRegister, t as DevpilotPluginContext } from "./index-CL0Gw5-1.mjs";
1
+ import { i as defineMcpToolRegister, n as resolveClientModule, r as McpToolRegister, t as DevpilotPluginContext } from "./index-9V3dRAxA.mjs";
2
2
  export { DevpilotPluginContext, McpToolRegister as McpServerRegister, defineMcpToolRegister, resolveClientModule };
package/dist/plugin.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as defineMcpToolRegister, t as resolveClientModule } from "./plugin-PB-j5Ck2.mjs";
1
+ import { n as defineMcpToolRegister, t as resolveClientModule } from "./plugin-BPkoZQbf.mjs";
2
2
 
3
3
  export { defineMcpToolRegister, resolveClientModule };
package/dist/rspack.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as unpluginDevpilot } from "./index-CyKvTBcJ.mjs";
1
+ import { t as unpluginDevpilot } from "./index-CQudsm6j.mjs";
2
2
 
3
3
  //#region src/rspack.d.ts
4
4
  /**
package/dist/rspack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as unpluginDevpilot } from "./src-aMXlip6o.mjs";
1
+ import { n as unpluginDevpilot } from "./src-42lrzRI8.mjs";
2
2
 
3
3
  //#region src/rspack.ts
4
4
  /**
@@ -19792,7 +19792,7 @@ var StreamableHTTPServerTransport = class {
19792
19792
 
19793
19793
  //#endregion
19794
19794
  //#region package.json
19795
- var version = "0.0.0";
19795
+ var version = "0.0.1";
19796
19796
 
19797
19797
  //#endregion
19798
19798
  //#region ../../node_modules/.pnpm/es-toolkit@1.44.0/node_modules/es-toolkit/dist/compat/util/uniqueId.mjs
package/dist/vite.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { t as unpluginDevpilot } from "./index-CyKvTBcJ.mjs";
1
+ import { t as unpluginDevpilot } from "./index-CQudsm6j.mjs";
2
2
 
3
3
  //#region src/vite.d.ts
4
4
  /**
package/dist/vite.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as unpluginDevpilot } from "./src-aMXlip6o.mjs";
1
+ import { n as unpluginDevpilot } from "./src-42lrzRI8.mjs";
2
2
 
3
3
  //#region src/vite.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as unpluginDevpilot } from "./index-CyKvTBcJ.mjs";
1
+ import { t as unpluginDevpilot } from "./index-CQudsm6j.mjs";
2
2
 
3
3
  //#region src/webpack.d.ts
4
4
  /**
package/dist/webpack.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { n as unpluginDevpilot } from "./src-aMXlip6o.mjs";
1
+ import { n as unpluginDevpilot } from "./src-42lrzRI8.mjs";
2
2
 
3
3
  //#region src/webpack.ts
4
4
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "unplugin-devpilot",
3
3
  "type": "module",
4
- "version": "0.0.0",
4
+ "version": "0.0.1",
5
5
  "description": "Description.",
6
6
  "author": "zcf0508 <zcf0508@live.com>",
7
7
  "license": "MIT",