@lingjingai/scriptctl 0.62.5 → 0.62.6
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/bin.js
CHANGED
|
@@ -8609,7 +8609,7 @@ function registerToolCommands(program, state2) {
|
|
|
8609
8609
|
// src/usecases/script/review.ts
|
|
8610
8610
|
import * as fs15 from "node:fs";
|
|
8611
8611
|
import * as path13 from "node:path";
|
|
8612
|
-
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
8612
|
+
import { fileURLToPath as fileURLToPath3, pathToFileURL } from "node:url";
|
|
8613
8613
|
var DEFAULT_PROFILE = "review-agent";
|
|
8614
8614
|
function resolveProfile(llm2, override) {
|
|
8615
8615
|
const name = override || DEFAULT_PROFILE;
|
|
@@ -8645,7 +8645,7 @@ function resolveProfile(llm2, override) {
|
|
|
8645
8645
|
async function loadAgent() {
|
|
8646
8646
|
const here = path13.dirname(fileURLToPath3(import.meta.url));
|
|
8647
8647
|
const bundled = path13.join(here, "review-agent.js");
|
|
8648
|
-
const specifier = fs15.existsSync(bundled) ? bundled : "@lingjingai/review-agent";
|
|
8648
|
+
const specifier = fs15.existsSync(bundled) ? pathToFileURL(bundled).href : "@lingjingai/review-agent";
|
|
8649
8649
|
try {
|
|
8650
8650
|
return await import(specifier);
|
|
8651
8651
|
} catch (error) {
|