adhdev 0.6.18 → 0.6.19
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/cli/index.js +126 -12
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26699,7 +26699,7 @@ var init_dev_server = __esm({
|
|
|
26699
26699
|
this.json(res, 400, { error: `Script '${scriptName}' not found in provider '${type}'`, available: provider.scripts ? Object.keys(provider.scripts) : [] });
|
|
26700
26700
|
return;
|
|
26701
26701
|
}
|
|
26702
|
-
const cdp = this.getCdp(scriptIdeType);
|
|
26702
|
+
const cdp = this.getCdp(scriptIdeType || type);
|
|
26703
26703
|
if (!cdp) {
|
|
26704
26704
|
this.json(res, 503, { error: "No CDP connection available" });
|
|
26705
26705
|
return;
|
|
@@ -28418,9 +28418,11 @@ var init_dev_server = __esm({
|
|
|
28418
28418
|
const baseArgs = [...spawn3.args || []].filter((a) => !interactiveFlags.includes(a));
|
|
28419
28419
|
let shellCmd;
|
|
28420
28420
|
if (command === "claude") {
|
|
28421
|
-
const args = [...baseArgs, "--
|
|
28421
|
+
const args = [...baseArgs, "--dangerously-skip-permissions"];
|
|
28422
|
+
if (model) args.push("--model", model);
|
|
28422
28423
|
const escapedArgs = args.map((a) => `'${a.replace(/'/g, "'\\''")}'`).join(" ");
|
|
28423
|
-
|
|
28424
|
+
const metaPrompt = `Read the file at ${promptFile} and follow ALL the instructions. Implement the specific function requested, then test it via CDP curl targeting 127.0.0.1:19280, wait for confirmation of success, and then close. DO NOT start working on other features not listed in the prompt constraint.`;
|
|
28425
|
+
shellCmd = `${command} ${escapedArgs} -p "${metaPrompt}"`;
|
|
28424
28426
|
} else if (command === "gemini") {
|
|
28425
28427
|
const args = [...baseArgs, "-y", "-s", "false"];
|
|
28426
28428
|
if (model) args.push("-m", model);
|
|
@@ -28436,7 +28438,7 @@ var init_dev_server = __esm({
|
|
|
28436
28438
|
}
|
|
28437
28439
|
if (model) args.push("--model", model);
|
|
28438
28440
|
const escapedArgs = args.map((a) => `'${a.replace(/'/g, "'\\''")}'`).join(" ");
|
|
28439
|
-
const metaPrompt = `Read the file at ${promptFile} and follow ALL
|
|
28441
|
+
const metaPrompt = `Read the file at ${promptFile} and follow ALL instructions recursively. You have full authority to implement ALL required script files, update provider.json configurations based on the reference patterns, and independently test them against 127.0.0.1:19280 via CDP CURL. Upon complete validation of ALL assigned files, print exactly "AUTO_IMPLEMENT_FINISHED" to gracefully close the pipeline. DO NOT WAIT FOR APPROVAL, execute completely autonomously.`;
|
|
28440
28442
|
shellCmd = `${command} ${escapedArgs} "${metaPrompt}"`;
|
|
28441
28443
|
} else {
|
|
28442
28444
|
const escapedArgs = baseArgs.map((a) => `'${a.replace(/'/g, "'\\''")}'`).join(" ");
|
|
@@ -28715,6 +28717,10 @@ var init_dev_server = __esm({
|
|
|
28715
28717
|
lines.push("1. Edit the script files to implement working code");
|
|
28716
28718
|
lines.push("2. After editing, TEST each function using the DevConsole API (see below)");
|
|
28717
28719
|
lines.push("3. If a test fails, fix the implementation and re-test");
|
|
28720
|
+
lines.push("4. **IMPORTANT VERIFICATION LOGIC**: When verifying your implementation, beware of state contamination! You MUST perform strict Integration Testing:");
|
|
28721
|
+
lines.push(" - `openPanel`: Toggle buttons are usually located in the top header, sidebar, or activity bar. Prefer finding and clicking these native UI buttons over extreme CSS injection hacks if possible.");
|
|
28722
|
+
lines.push(" - `listSessions`: If sessions are unmounted when the panel is closed, try to explicitly interact with the UI to open the history/sessions view (e.g., clicking a history icon usually found near the chat header) BEFORE scraping.");
|
|
28723
|
+
lines.push(" - `switchSession`: Prove your switch was successful by subsequently calling `readChat` and explicitly checking that the chat context has actually changed.");
|
|
28718
28724
|
lines.push("");
|
|
28719
28725
|
lines.push("## YOU MUST EXPLORE THE DOM YOURSELF!");
|
|
28720
28726
|
lines.push("I have NOT provided you with the DOM snapshot. You MUST use your command-line tools to discover the IDE structure dynamically!");
|
|
@@ -30574,7 +30580,7 @@ var init_adhdev_daemon = __esm({
|
|
|
30574
30580
|
fs11 = __toESM(require("fs"));
|
|
30575
30581
|
path14 = __toESM(require("path"));
|
|
30576
30582
|
import_chalk2 = __toESM(require("chalk"));
|
|
30577
|
-
pkgVersion = "0.6.
|
|
30583
|
+
pkgVersion = "0.6.19";
|
|
30578
30584
|
if (pkgVersion === "unknown") {
|
|
30579
30585
|
try {
|
|
30580
30586
|
const possiblePaths = [
|