agent-afk 5.321.2 → 5.321.4
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/agent/daemon/handoff-expiry.d.ts +2 -1
- package/dist/agent/daemon/handoff-maintenance.d.ts +2 -0
- package/dist/agent/daemon/lease-reclaim.d.ts +2 -0
- package/dist/agent/daemon/lease-store.d.ts +1 -0
- package/dist/agent/tools/handlers/remote-agent.d.ts +1 -0
- package/dist/cli.mjs +440 -438
- package/dist/index.mjs +200 -198
- package/dist/remote/remote-run.d.ts +2 -0
- package/dist/remote/remote-script.d.ts +4 -1
- package/dist/remote/ssh-runner.d.ts +1 -2
- package/dist/telegram.mjs +211 -209
- package/package.json +1 -1
|
@@ -24,6 +24,7 @@ export type RemoteRunOutcome = {
|
|
|
24
24
|
reason: string;
|
|
25
25
|
pid?: number;
|
|
26
26
|
partial?: string;
|
|
27
|
+
remoteDetail?: string;
|
|
27
28
|
} | {
|
|
28
29
|
kind: 'aborted';
|
|
29
30
|
pid?: number;
|
|
@@ -32,6 +33,7 @@ export type RemoteRunOutcome = {
|
|
|
32
33
|
reason: string;
|
|
33
34
|
pid: number;
|
|
34
35
|
partial?: string;
|
|
36
|
+
remoteDetail?: string;
|
|
35
37
|
};
|
|
36
38
|
export interface RemoteRunDeps {
|
|
37
39
|
runner: SshRunner;
|
|
@@ -6,14 +6,17 @@ export declare const EXIT_KEYCHAIN_UNLOCK = 5;
|
|
|
6
6
|
export declare function shQuote(value: string): string;
|
|
7
7
|
export declare function shQuotePath(path: string): string;
|
|
8
8
|
export declare function runDirExpr(runId: string): string;
|
|
9
|
+
export declare function makeHeredocDelimiter(payload: string): string;
|
|
10
|
+
export declare function heredocWrite(payload: string, destExpr: string, delim: string): string;
|
|
9
11
|
export interface LaunchScriptOptions {
|
|
10
12
|
runId: string;
|
|
11
13
|
sessionId: string;
|
|
14
|
+
prompt: string;
|
|
12
15
|
cwd?: string;
|
|
13
16
|
model?: string;
|
|
14
17
|
resume?: string;
|
|
15
18
|
afkPath?: string;
|
|
16
|
-
|
|
19
|
+
keychainPassword?: string;
|
|
17
20
|
}
|
|
18
21
|
export declare function buildLaunchScript(opts: LaunchScriptOptions): string;
|
|
19
22
|
export declare function buildFollowScript(runId: string, startLine: number): string;
|
|
@@ -4,7 +4,6 @@ export interface SshExecResult {
|
|
|
4
4
|
stderr: string;
|
|
5
5
|
}
|
|
6
6
|
export interface SshExecOptions {
|
|
7
|
-
stdin?: string;
|
|
8
7
|
signal?: AbortSignal;
|
|
9
8
|
timeoutMs?: number;
|
|
10
9
|
}
|
|
@@ -17,5 +16,5 @@ export interface SshRunner {
|
|
|
17
16
|
stream(target: string, script: string, opts: SshStreamOptions): Promise<SshExecResult>;
|
|
18
17
|
}
|
|
19
18
|
export declare const SSH_CONNECT_FAILURE = 255;
|
|
20
|
-
export declare function sshArgs(target: string
|
|
19
|
+
export declare function sshArgs(target: string): string[];
|
|
21
20
|
export declare const defaultSshRunner: SshRunner;
|