agent-afk 5.287.0 → 5.287.2
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/tools/handlers/bash-interrupted.d.ts +20 -0
- package/dist/agent/tools/handlers/write-file.atomic.d.ts +8 -0
- package/dist/cli/config/types.d.ts +0 -2
- package/dist/cli.mjs +371 -370
- package/dist/config/env.d.ts +1 -1
- package/dist/config/env.daemon.d.ts +1 -1
- package/dist/http-client/scrape-diagnostics.d.ts +2 -0
- package/dist/http-client/scrape.d.ts +12 -0
- package/dist/index.mjs +146 -145
- package/dist/telegram.mjs +175 -174
- package/dist/utils/atomic-write.d.ts +2 -0
- package/package.json +3 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type BashInterruptKind = 'aborted' | 'timeout';
|
|
2
|
+
export interface BashInterruptInput {
|
|
3
|
+
kind: BashInterruptKind;
|
|
4
|
+
stdout: string;
|
|
5
|
+
stderr: string;
|
|
6
|
+
startedAt: number;
|
|
7
|
+
timeoutMs: number;
|
|
8
|
+
context?: {
|
|
9
|
+
sessionId?: string | undefined;
|
|
10
|
+
toolUseId?: string | undefined;
|
|
11
|
+
} | undefined;
|
|
12
|
+
}
|
|
13
|
+
export interface BashInterruptResult {
|
|
14
|
+
content: string;
|
|
15
|
+
isError: true;
|
|
16
|
+
truncated?: true;
|
|
17
|
+
capturePath?: string;
|
|
18
|
+
durationMs: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function interruptedBashResult(input: BashInterruptInput): BashInterruptResult;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function resolveWriteTarget(filePath: string): Promise<string>;
|
|
2
|
+
export declare class WriteAbortedUntouchedError extends Error {
|
|
3
|
+
readonly target: string;
|
|
4
|
+
constructor(target: string, options?: {
|
|
5
|
+
cause?: unknown;
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
export declare function commitFileWrite(filePath: string, content: string, signal: AbortSignal, validateTarget?: (target: string) => void): Promise<void>;
|
|
@@ -7,7 +7,6 @@ export interface AutoRoutingConfig {
|
|
|
7
7
|
interactive?: boolean;
|
|
8
8
|
chat?: boolean;
|
|
9
9
|
telegram?: boolean;
|
|
10
|
-
daemon?: boolean;
|
|
11
10
|
}
|
|
12
11
|
export interface CliConfig {
|
|
13
12
|
apiKey?: string;
|
|
@@ -88,7 +87,6 @@ export interface ConfigFileSchema {
|
|
|
88
87
|
interactive?: boolean;
|
|
89
88
|
chat?: boolean;
|
|
90
89
|
telegram?: boolean;
|
|
91
|
-
daemon?: boolean;
|
|
92
90
|
};
|
|
93
91
|
daemon?: {
|
|
94
92
|
task?: string;
|