autodev-cli 1.4.67 → 1.4.68
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.
|
@@ -2,33 +2,37 @@ import { RateLimitDetector } from '../rateLimit';
|
|
|
2
2
|
import type { ProviderId } from '../providers';
|
|
3
3
|
/** True while a grok turn is running for the given workspace root. */
|
|
4
4
|
export declare function isGrokTuiBusy(root: string): boolean;
|
|
5
|
+
/** Epoch-ms of the most recent streamed pane activity, or 0 if none. */
|
|
6
|
+
export declare function getGrokTuiLastActivity(root: string): number;
|
|
7
|
+
/** Force-clear the busy flag for a root whose turn appears hung. */
|
|
8
|
+
export declare function forceIdleGrokTui(root: string): void;
|
|
9
|
+
/** True if tmux is installed and runnable. Cached after first probe. */
|
|
10
|
+
export declare function tmuxAvailable(): boolean;
|
|
5
11
|
interface GrokRunOptions {
|
|
6
12
|
model?: string;
|
|
7
|
-
/** Reveal the output panel (VS Code shell only). */
|
|
8
13
|
showOutput?: () => void;
|
|
9
14
|
/** grok-tui: resume/continue a session so context accumulates across tasks. */
|
|
10
15
|
persist?: boolean;
|
|
11
|
-
/** Session id to resume (from resolveSession). Ignored unless `persist`. */
|
|
12
16
|
sessionId?: string;
|
|
13
|
-
/** Provider id used to persist a freshly-created session id. */
|
|
14
17
|
providerId?: ProviderId;
|
|
15
18
|
}
|
|
19
|
+
export declare function sendGrokPrompt(root: string, promptFilePath: string, stdoutFile: string, exitFile: string, log: (msg: string) => void, opts?: GrokRunOptions): void;
|
|
20
|
+
/** grok-cli: stateless — a fresh HEADLESS grok process every task. */
|
|
21
|
+
export declare function sendGrokCliPrompt(root: string, promptFilePath: string, stdoutFile: string, exitFile: string, log: (msg: string) => void, model?: string, showOutput?: () => void): void;
|
|
16
22
|
/**
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
23
|
+
* grok-tui: persistent — run the turn in the per-workspace tmux session so
|
|
24
|
+
* grok's in-process context accumulates across tasks. Falls back to the old
|
|
25
|
+
* headless spawn (with --resume) when tmux is unavailable so nothing regresses.
|
|
26
|
+
*/
|
|
27
|
+
export declare function sendGrokTuiPrompt(root: string, promptFilePath: string, resolvedSessionId: string | undefined, stdoutFile: string, exitFile: string, log: (msg: string) => void, model?: string, showOutput?: () => void): void;
|
|
28
|
+
export declare function steerGrokTui(root: string, text: string, log: (msg: string) => void): Promise<boolean>;
|
|
29
|
+
/**
|
|
30
|
+
* Called by taskLoop reset interval / provider close. Kills any live grok for
|
|
31
|
+
* this root — the tmux session AND any headless child — while PRESERVING the
|
|
32
|
+
* persisted session id so a later task relaunches with --resume (context intact).
|
|
20
33
|
*/
|
|
21
|
-
export declare function sendGrokPrompt(root: string,
|
|
22
|
-
/** Absolute path to the combined agent-profile + message file. */
|
|
23
|
-
promptFilePath: string, stdoutFile: string, exitFile: string, log: (msg: string) => void, opts?: GrokRunOptions): void;
|
|
24
|
-
/** grok-cli: stateless — a fresh grok process every task (no session flags). */
|
|
25
|
-
export declare function sendGrokCliPrompt(root: string, promptFilePath: string, stdoutFile: string, exitFile: string, log: (msg: string) => void, model?: string, showOutput?: () => void): void;
|
|
26
|
-
/** grok-tui: persistent — resume the workspace session so context accumulates. */
|
|
27
|
-
export declare function sendGrokTuiPrompt(root: string, promptFilePath: string,
|
|
28
|
-
/** Session id from resolveSession (undefined on the first task). */
|
|
29
|
-
resolvedSessionId: string | undefined, stdoutFile: string, exitFile: string, log: (msg: string) => void, model?: string, showOutput?: () => void): void;
|
|
30
34
|
export declare function closeGrokTuiSession(root: string, _log: (msg: string) => void): void;
|
|
31
|
-
/** Kill all
|
|
35
|
+
/** Kill all live grok sessions — called on SDK/extension shutdown. */
|
|
32
36
|
export declare function closeAllGrokTuiSessions(): void;
|
|
33
37
|
export declare function detectGrokTuiRateLimit(stdoutContent: string): ReturnType<typeof RateLimitDetector.detect>;
|
|
34
38
|
export {};
|