adhdev 0.8.89 → 0.8.90
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 +16 -9
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -11940,8 +11940,8 @@ function buildCliParseInput(options) {
|
|
|
11940
11940
|
scope,
|
|
11941
11941
|
runtimeSettings
|
|
11942
11942
|
} = options;
|
|
11943
|
-
const buffer = scope ? sliceFromOffset(accumulatedBuffer, scope.bufferStart)
|
|
11944
|
-
const rawBuffer = scope ? sliceFromOffset(accumulatedRawBuffer, scope.rawBufferStart)
|
|
11943
|
+
const buffer = scope ? sliceFromOffset(accumulatedBuffer, scope.bufferStart) : accumulatedBuffer;
|
|
11944
|
+
const rawBuffer = scope ? sliceFromOffset(accumulatedRawBuffer, scope.rawBufferStart) : accumulatedRawBuffer;
|
|
11945
11945
|
const screenText = terminalScreenText;
|
|
11946
11946
|
const recentBuffer = buffer.slice(-1e3) || recentOutputBuffer;
|
|
11947
11947
|
return {
|
|
@@ -11973,8 +11973,8 @@ function summarizeCliTraceMessages(messages, limit = 3) {
|
|
|
11973
11973
|
}
|
|
11974
11974
|
function buildCliTraceParseSnapshot(options) {
|
|
11975
11975
|
const { accumulatedBuffer, accumulatedRawBuffer, responseBuffer, partialResponse, scope } = options;
|
|
11976
|
-
const scopedBuffer = scope ? sliceFromOffset(accumulatedBuffer, scope.bufferStart)
|
|
11977
|
-
const scopedRawBuffer = scope ? sliceFromOffset(accumulatedRawBuffer, scope.rawBufferStart)
|
|
11976
|
+
const scopedBuffer = scope ? sliceFromOffset(accumulatedBuffer, scope.bufferStart) : accumulatedBuffer;
|
|
11977
|
+
const scopedRawBuffer = scope ? sliceFromOffset(accumulatedRawBuffer, scope.rawBufferStart) : accumulatedRawBuffer;
|
|
11978
11978
|
return {
|
|
11979
11979
|
currentTurnScope: scope || null,
|
|
11980
11980
|
responseBuffer: summarizeCliTraceText(responseBuffer, 1200),
|
|
@@ -12638,6 +12638,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
12638
12638
|
looksLikeClaudeGeneratingLine(line) {
|
|
12639
12639
|
const trimmed = String(line || "").trim();
|
|
12640
12640
|
if (!trimmed) return false;
|
|
12641
|
+
if (/^⏵⏵\s+accept edits on/i.test(trimmed)) return false;
|
|
12641
12642
|
if (/esc to (cancel|interrupt|stop)/i.test(trimmed)) return true;
|
|
12642
12643
|
if (/^[✻✶✳✢✽⠂⠐⠒⠓⠦⠴⠶⠷⠿]+\s+\S+.*\b(?:thinking|thought for \d+s?)\b/i.test(trimmed)) return true;
|
|
12643
12644
|
if (/^[✻✶✳✢✽⠂⠐⠒⠓⠦⠴⠶⠷⠿]+\s+[A-Z][A-Za-z-]{3,}ing\b.*(?:…|\.{3})/u.test(trimmed)) return true;
|
|
@@ -12950,7 +12951,7 @@ var init_provider_cli_adapter = __esm({
|
|
|
12950
12951
|
`[${this.cliType}] settled diagnostics prompt=${JSON.stringify(this.currentTurnScope.prompt).slice(0, 140)} scriptStatus=${String(scriptStatus || "")} parsedStatus=${String(parsedTranscript?.status || "")} parsedMsgCount=${parsedMessages.length} lastParsedAssistant=${JSON.stringify(summarizeCliTraceText(lastParsedAssistant?.content || "", 120)).slice(0, 160)} visibleIdlePrompt=${String(visibleIdlePrompt)} visibleAssistantCandidate=${String(visibleAssistantCandidate)} responseBuffer=${JSON.stringify(summarizeCliTraceText(this.responseBuffer, 160)).slice(0, 220)} screen=${JSON.stringify(summarizeCliTraceText(screenText, 160)).slice(0, 220)}`
|
|
12951
12952
|
);
|
|
12952
12953
|
}
|
|
12953
|
-
const shouldHoldGenerating = scriptStatus === "idle" && this.isWaitingForResponse && !modal && recentInteractiveActivity && !(visibleIdlePrompt && visibleAssistantCandidate);
|
|
12954
|
+
const shouldHoldGenerating = scriptStatus === "idle" && this.isWaitingForResponse && !modal && recentInteractiveActivity && !(visibleIdlePrompt && visibleAssistantCandidate) && !(parsedTranscript?.status === "idle" && !!lastParsedAssistant);
|
|
12954
12955
|
if (shouldHoldGenerating) {
|
|
12955
12956
|
this.clearIdleFinishCandidate("hold_generating_recent_activity");
|
|
12956
12957
|
this.setStatus("generating", "recent_activity_hold");
|
|
@@ -13352,11 +13353,17 @@ var init_provider_cli_adapter = __esm({
|
|
|
13352
13353
|
return null;
|
|
13353
13354
|
}
|
|
13354
13355
|
}
|
|
13356
|
+
projectEffectiveStatus(startupModal = null) {
|
|
13357
|
+
if (this.parseErrorMessage) return "error";
|
|
13358
|
+
if (startupModal) return "waiting_approval";
|
|
13359
|
+
if (this.isWaitingForResponse && this.currentTurnScope && this.currentStatus === "idle") return "generating";
|
|
13360
|
+
return this.currentStatus;
|
|
13361
|
+
}
|
|
13355
13362
|
// ─── Public API (CliAdapter) ───────────────────
|
|
13356
13363
|
getStatus() {
|
|
13357
13364
|
const screenText = this.terminalScreen.getText() || "";
|
|
13358
13365
|
const startupModal = this.startupParseGate ? this.getStartupConfirmationModal(screenText) : null;
|
|
13359
|
-
const effectiveStatus = this.
|
|
13366
|
+
const effectiveStatus = this.projectEffectiveStatus(startupModal);
|
|
13360
13367
|
return {
|
|
13361
13368
|
status: effectiveStatus,
|
|
13362
13369
|
messages: [...this.committedMessages],
|
|
@@ -14063,7 +14070,7 @@ ${data.message || ""}`.trim();
|
|
|
14063
14070
|
}
|
|
14064
14071
|
this.setStatus("generating", "approval_resolved");
|
|
14065
14072
|
this.onStatusChange?.();
|
|
14066
|
-
const startupTrustModal = /Quick safety check|project trust|trust (?:this project|the contents of this directory|the files in this folder)/i.test(String(modal?.message || ""));
|
|
14073
|
+
const startupTrustModal = /Quick safety check|project trust|Confirm Claude Code project trust|trust (?:this project|the contents of this directory|the files in this folder)/i.test(String(modal?.message || ""));
|
|
14067
14074
|
if (startupTrustModal && buttonIndex in this.approvalKeys) {
|
|
14068
14075
|
this.ptyProcess.write(`${this.approvalKeys[buttonIndex]}\r`);
|
|
14069
14076
|
} else if (this.shouldResolveModalWithEnter(modal, buttonIndex)) {
|
|
@@ -14089,7 +14096,7 @@ ${data.message || ""}`.trim();
|
|
|
14089
14096
|
getDebugState() {
|
|
14090
14097
|
const screenText = sanitizeTerminalText(this.terminalScreen.getText());
|
|
14091
14098
|
const startupModal = this.startupParseGate ? this.getStartupConfirmationModal(screenText) : null;
|
|
14092
|
-
const effectiveStatus =
|
|
14099
|
+
const effectiveStatus = this.projectEffectiveStatus(startupModal);
|
|
14093
14100
|
const effectiveReady = this.ready || !!startupModal;
|
|
14094
14101
|
return {
|
|
14095
14102
|
type: this.cliType,
|
|
@@ -86501,7 +86508,7 @@ var init_adhdev_daemon = __esm({
|
|
|
86501
86508
|
init_version();
|
|
86502
86509
|
init_src();
|
|
86503
86510
|
init_runtime_defaults();
|
|
86504
|
-
pkgVersion = resolvePackageVersion({ injectedVersion: "0.8.
|
|
86511
|
+
pkgVersion = resolvePackageVersion({ injectedVersion: "0.8.90" });
|
|
86505
86512
|
AdhdevDaemon = class _AdhdevDaemon {
|
|
86506
86513
|
localHttpServer = null;
|
|
86507
86514
|
localWss = null;
|