agent-afk 5.49.2 → 5.51.0
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/scheduler.d.ts +5 -0
- package/dist/agent/daemon.d.ts +1 -0
- package/dist/agent/hooks/command-executor.d.ts +1 -0
- package/dist/agent/hooks/config-loader.d.ts +10 -2
- package/dist/agent/session/stream-consumer.d.ts +1 -0
- package/dist/agent/types/message-types.d.ts +1 -0
- package/dist/cli/commands/daemon.d.ts +1 -1
- package/dist/cli/config/types.d.ts +4 -0
- package/dist/cli.mjs +455 -455
- package/dist/index.mjs +5 -5
- package/dist/telegram.mjs +184 -184
- package/package.json +1 -1
|
@@ -14,6 +14,10 @@ export interface SchedulerOptions {
|
|
|
14
14
|
onTaskComplete?: (record: TelemetryRecord, details?: TaskCompletionDetails) => void | Promise<void>;
|
|
15
15
|
pullPollIntervalMs?: number;
|
|
16
16
|
queueDir?: string;
|
|
17
|
+
doneUnverifiedProbe?: (args: {
|
|
18
|
+
responseText: string;
|
|
19
|
+
successfulToolNames: readonly string[];
|
|
20
|
+
}) => boolean;
|
|
17
21
|
}
|
|
18
22
|
export type TelemetryTrigger = 'cron' | 'sessionstart' | 'pull';
|
|
19
23
|
export type TelemetryStatus = 'success' | 'error' | 'skipped';
|
|
@@ -32,6 +36,7 @@ export interface TelemetryRecord {
|
|
|
32
36
|
}
|
|
33
37
|
export interface TaskCompletionDetails {
|
|
34
38
|
responseText?: string;
|
|
39
|
+
doneUnverified?: boolean;
|
|
35
40
|
}
|
|
36
41
|
export declare class CronScheduler {
|
|
37
42
|
private readonly registry;
|
package/dist/agent/daemon.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export interface DaemonOptions {
|
|
|
11
11
|
cooldownMs?: number;
|
|
12
12
|
now?: () => number;
|
|
13
13
|
onTaskComplete?: SchedulerOptions['onTaskComplete'];
|
|
14
|
+
doneUnverifiedProbe?: SchedulerOptions['doneUnverifiedProbe'];
|
|
14
15
|
pullPollIntervalMs?: number;
|
|
15
16
|
queueDir?: string;
|
|
16
17
|
writePortFile?: boolean;
|
|
@@ -14,17 +14,19 @@ export interface ResolvedCommandHook {
|
|
|
14
14
|
type: 'command';
|
|
15
15
|
command: string;
|
|
16
16
|
timeoutMs: number;
|
|
17
|
+
pluginRoot?: string;
|
|
17
18
|
}
|
|
18
19
|
export interface ResolvedMatcherGroup {
|
|
19
20
|
matcher?: string;
|
|
20
21
|
hooks: ResolvedCommandHook[];
|
|
21
|
-
tier?: 'user-global' | 'project-local';
|
|
22
|
+
tier?: 'user-global' | 'project-local' | 'plugin';
|
|
22
23
|
}
|
|
23
24
|
export type ResolvedHooksConfig = Partial<Record<HarnessHookEvent, ResolvedMatcherGroup[]>>;
|
|
24
25
|
export interface LoadedHooksConfig {
|
|
25
26
|
hooks: ResolvedHooksConfig;
|
|
26
27
|
userGlobalEnabled: boolean;
|
|
27
28
|
allowProjectHooks: boolean;
|
|
29
|
+
pluginHooksEnabled: boolean;
|
|
28
30
|
sources: string[];
|
|
29
31
|
warnings: string[];
|
|
30
32
|
}
|
|
@@ -33,12 +35,18 @@ interface SingleFileResult {
|
|
|
33
35
|
hooks: ResolvedHooksConfig;
|
|
34
36
|
enableShellHooks: boolean;
|
|
35
37
|
allowProjectHooks: boolean;
|
|
38
|
+
enablePluginHooks: boolean;
|
|
36
39
|
sources: string[];
|
|
37
40
|
warnings: string[];
|
|
38
41
|
}
|
|
39
|
-
export declare function loadHooksConfigFile(path: string, tier: 'user-global' | 'project-local'): SingleFileResult;
|
|
42
|
+
export declare function loadHooksConfigFile(path: string, tier: 'user-global' | 'project-local' | 'plugin', pluginRoot?: string): SingleFileResult;
|
|
43
|
+
export declare function discoverPluginHooksConfigs(pluginsRoot?: string): Array<{
|
|
44
|
+
path: string;
|
|
45
|
+
pluginRoot: string;
|
|
46
|
+
}>;
|
|
40
47
|
export interface LoadHooksConfigOptions {
|
|
41
48
|
cwd?: string;
|
|
49
|
+
pluginsDir?: string;
|
|
42
50
|
}
|
|
43
51
|
export declare function loadHooksConfig(opts?: LoadHooksConfigOptions): LoadedHooksConfig;
|
|
44
52
|
export {};
|
|
@@ -11,6 +11,7 @@ export type TransformDeps = {
|
|
|
11
11
|
maxBudgetUsd?: number;
|
|
12
12
|
abortBudget?: (reason: string) => void;
|
|
13
13
|
_runningCostUsd?: number;
|
|
14
|
+
_successfulToolNames?: string[];
|
|
14
15
|
traceWriter?: TraceWriter;
|
|
15
16
|
};
|
|
16
17
|
export declare function parsePersistedOutput(content: string): {
|
|
@@ -10,5 +10,5 @@ export interface BuildDaemonSessionFactoryOpts {
|
|
|
10
10
|
cwd?: string;
|
|
11
11
|
}
|
|
12
12
|
export declare function buildDaemonSessionFactory(opts: BuildDaemonSessionFactoryOpts): (config: AgentConfig) => AgentSession;
|
|
13
|
-
export declare function formatTaskCompletion(record: TelemetryRecord, details?: TaskCompletionDetails): string;
|
|
13
|
+
export declare function formatTaskCompletion(record: TelemetryRecord, details?: TaskCompletionDetails, verifyDone?: boolean): string;
|
|
14
14
|
export declare function registerDaemonCommand(program: Command): void;
|
|
@@ -31,6 +31,7 @@ export interface CliConfig {
|
|
|
31
31
|
maxAgeDaysDirty: number;
|
|
32
32
|
scope: string;
|
|
33
33
|
};
|
|
34
|
+
verifyDone?: boolean;
|
|
34
35
|
};
|
|
35
36
|
telegram?: {
|
|
36
37
|
notify?: {
|
|
@@ -54,6 +55,7 @@ export interface CliConfig {
|
|
|
54
55
|
maxSummaryCallsPerSession?: number;
|
|
55
56
|
hooks?: RawHooksConfig;
|
|
56
57
|
enableShellHooks?: boolean;
|
|
58
|
+
enablePluginHooks?: boolean;
|
|
57
59
|
importFrom?: ImportFromConfig;
|
|
58
60
|
}
|
|
59
61
|
export interface ModelSlotConfigEntry {
|
|
@@ -90,6 +92,7 @@ export interface ConfigFileSchema {
|
|
|
90
92
|
maxAgeDaysDirty?: number;
|
|
91
93
|
scope?: string;
|
|
92
94
|
};
|
|
95
|
+
verifyDone?: boolean;
|
|
93
96
|
};
|
|
94
97
|
telegram?: {
|
|
95
98
|
notify?: {
|
|
@@ -113,6 +116,7 @@ export interface ConfigFileSchema {
|
|
|
113
116
|
maxSummaryCallsPerSession?: number;
|
|
114
117
|
hooks?: RawHooksConfig;
|
|
115
118
|
enableShellHooks?: boolean;
|
|
119
|
+
enablePluginHooks?: boolean;
|
|
116
120
|
importFrom?: Partial<Record<ImportSourceBinary, boolean | {
|
|
117
121
|
plugins?: boolean;
|
|
118
122
|
skills?: boolean;
|