@fdcn/sourcefed 0.2.0 → 0.2.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/opencode.js +3 -0
- package/dist/pi.js +3 -0
- package/package.json +1 -1
package/dist/opencode.js
CHANGED
|
@@ -14,6 +14,7 @@ import { readFileSync } from "node:fs";
|
|
|
14
14
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
15
15
|
|
|
16
16
|
// adapters/opencode/bridge.ts
|
|
17
|
+
import { existsSync } from "node:fs";
|
|
17
18
|
import { fileURLToPath } from "node:url";
|
|
18
19
|
var activeBridge;
|
|
19
20
|
var OpenCodeBridge = class {
|
|
@@ -94,6 +95,8 @@ var OpenCodeBridge = class {
|
|
|
94
95
|
}
|
|
95
96
|
};
|
|
96
97
|
function cliEntry() {
|
|
98
|
+
const bundled = fileURLToPath(new URL("./cli.js", import.meta.url));
|
|
99
|
+
if (existsSync(bundled)) return bundled;
|
|
97
100
|
return fileURLToPath(import.meta.resolve("@sourcefed/cli"));
|
|
98
101
|
}
|
|
99
102
|
function setOpenCodeBridge(bridge) {
|
package/dist/pi.js
CHANGED
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
import "./chunk-MLKGABMK.js";
|
|
8
8
|
|
|
9
9
|
// adapters/pi/src/index.ts
|
|
10
|
+
import { existsSync } from "node:fs";
|
|
10
11
|
import { fileURLToPath } from "node:url";
|
|
11
12
|
import { Type } from "typebox";
|
|
12
13
|
|
|
@@ -236,6 +237,8 @@ ${queued.event.body}` : ""}`,
|
|
|
236
237
|
}
|
|
237
238
|
}
|
|
238
239
|
function cliEntry() {
|
|
240
|
+
const bundled = fileURLToPath(new URL("./cli.js", import.meta.url));
|
|
241
|
+
if (existsSync(bundled)) return bundled;
|
|
239
242
|
return fileURLToPath(import.meta.resolve("@sourcefed/cli"));
|
|
240
243
|
}
|
|
241
244
|
function toolResult(result) {
|