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 +1 -1
- package/dist/farm.mjs +1 -1
- package/dist/{index-CL0Gw5-1.d.mts → index-9V3dRAxA.d.mts} +1 -0
- package/dist/{index-CyKvTBcJ.d.mts → index-CQudsm6j.d.mts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{plugin-PB-j5Ck2.mjs → plugin-BPkoZQbf.mjs} +4 -3
- package/dist/plugin.d.mts +1 -1
- package/dist/plugin.mjs +1 -1
- package/dist/rspack.d.mts +1 -1
- package/dist/rspack.mjs +1 -1
- package/dist/{src-aMXlip6o.mjs → src-42lrzRI8.mjs} +1 -1
- package/dist/vite.d.mts +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/webpack.d.mts +1 -1
- package/dist/webpack.mjs +1 -1
- package/package.json +1 -1
package/dist/farm.d.mts
CHANGED
package/dist/farm.mjs
CHANGED
|
@@ -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
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as defineMcpToolRegister, n as resolveClientModule, t as DevpilotPluginContext } from "./index-
|
|
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-
|
|
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-
|
|
2
|
-
import { n as defineMcpToolRegister, t as resolveClientModule } from "./plugin-
|
|
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
|
|
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-
|
|
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
package/dist/rspack.d.mts
CHANGED
package/dist/rspack.mjs
CHANGED
|
@@ -19792,7 +19792,7 @@ var StreamableHTTPServerTransport = class {
|
|
|
19792
19792
|
|
|
19793
19793
|
//#endregion
|
|
19794
19794
|
//#region package.json
|
|
19795
|
-
var version = "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
package/dist/vite.mjs
CHANGED
package/dist/webpack.d.mts
CHANGED
package/dist/webpack.mjs
CHANGED