agent-afk 5.288.2 → 5.289.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/hooks/config-loader.d.ts +3 -0
- package/dist/agent/hooks/disabled-plugin-hooks.d.ts +3 -0
- package/dist/agent/peer/guards.d.ts +1 -0
- package/dist/agent/peer/inbox-retention.d.ts +16 -0
- package/dist/agent/plugins/git.d.ts +1 -0
- package/dist/agent/providers/openai-compatible/query/retry.d.ts +1 -0
- package/dist/agent/tools/compose-executor.d.ts +1 -0
- package/dist/cli/commands/interactive/peer-inbox-notifier.d.ts +1 -0
- package/dist/cli.mjs +360 -357
- package/dist/index.mjs +129 -129
- package/dist/telegram.mjs +154 -154
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { HarnessHookEvent } from '../hooks.js';
|
|
2
2
|
export { compileMatcher, CLAUDE_CODE_ALIASES } from './matcher.js';
|
|
3
|
+
export { isPluginHookDisabled } from './disabled-plugin-hooks.js';
|
|
3
4
|
export interface RawCommandHook {
|
|
4
5
|
type: 'command';
|
|
5
6
|
command: string;
|
|
@@ -31,6 +32,7 @@ export interface LoadedHooksConfig {
|
|
|
31
32
|
allowProjectHooks: boolean;
|
|
32
33
|
pluginHooksEnabled: boolean;
|
|
33
34
|
pluginHookEnv: Record<string, string[]>;
|
|
35
|
+
disabledPluginHooks: Record<string, string[]>;
|
|
34
36
|
sources: string[];
|
|
35
37
|
warnings: string[];
|
|
36
38
|
}
|
|
@@ -40,6 +42,7 @@ interface SingleFileResult {
|
|
|
40
42
|
allowProjectHooks: boolean;
|
|
41
43
|
enablePluginHooks: boolean;
|
|
42
44
|
pluginHookEnv: Record<string, string[]>;
|
|
45
|
+
disabledPluginHooks: Record<string, string[]>;
|
|
43
46
|
sources: string[];
|
|
44
47
|
warnings: string[];
|
|
45
48
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function parseDisabledPluginHooks(file: Record<string, unknown>, path: string, warnings: string[]): Record<string, string[]>;
|
|
2
|
+
export declare function mergeDisabledPluginHooks(target: Record<string, string[]>, incoming: Record<string, string[]>): void;
|
|
3
|
+
export declare function isPluginHookDisabled(disabledPluginHooks: Record<string, string[]>, pluginName: string, event: string, matcher: string | undefined): boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type PeerRefusal = 'self' | 'dead-target' | 'ambiguous-target' | 'unknown-target' | 'no-receiver' | 'too-large' | 'hop-limit' | 'rate-limited' | 'duplicate' | 'inbound-off';
|
|
2
|
+
export declare const PEER_WAKE_BUDGET_WINDOW_MS = 3600000;
|
|
2
3
|
export interface CheckSendGuardsOpts {
|
|
3
4
|
senderId: string;
|
|
4
5
|
targetId: string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const DELIVERED_RETENTION_INTERVAL_MS: number;
|
|
2
|
+
export declare const DELIVERED_RECEIPT_MAX_AGE_MS: number;
|
|
3
|
+
export interface PruneDeliveredReceiptsOpts {
|
|
4
|
+
sessionId: string;
|
|
5
|
+
lastRanMs: number;
|
|
6
|
+
minIntervalMs?: number;
|
|
7
|
+
now?: () => number;
|
|
8
|
+
}
|
|
9
|
+
export interface PruneResult {
|
|
10
|
+
ran: boolean;
|
|
11
|
+
nowMs: number;
|
|
12
|
+
pruned: number;
|
|
13
|
+
skippedHasPending: number;
|
|
14
|
+
skippedFresh: number;
|
|
15
|
+
}
|
|
16
|
+
export declare function pruneDeliveredReceipts(opts: PruneDeliveredReceiptsOpts): Promise<PruneResult>;
|
|
@@ -19,3 +19,4 @@ export declare function checkout(repo: string, ref: string, opts?: CheckoutOptio
|
|
|
19
19
|
export declare function getCommitSha(repo: string, opts?: GitOptions): Promise<string>;
|
|
20
20
|
export declare function tryRevParse(repo: string, rev: string, opts?: GitOptions): Promise<string | null>;
|
|
21
21
|
export declare function getDefaultBranch(repo: string, opts?: GitOptions): Promise<string>;
|
|
22
|
+
export declare function trackedChanges(repo: string, opts?: GitOptions): Promise<string[]>;
|
|
@@ -7,4 +7,5 @@ export declare function __setRetryAfterMaxWaitMs(ms: number | null): void;
|
|
|
7
7
|
export declare function retryAfterDelayMs(err: unknown): number | undefined;
|
|
8
8
|
export declare function getErrorStatus(err: unknown): number | undefined;
|
|
9
9
|
export declare function isRetryableConnectionError(err: unknown): boolean;
|
|
10
|
+
export declare function isOpenAIOverloadError(err: unknown): boolean;
|
|
10
11
|
export declare function isRetryableStreamError(err: unknown): boolean;
|
|
@@ -26,6 +26,7 @@ export interface ComposeExecutorContext {
|
|
|
26
26
|
delegationBudget?: import('./delegation-budget.js').DelegationBudget;
|
|
27
27
|
inboundAttachmentRegistry?: InboundAttachmentReader;
|
|
28
28
|
onSubagentSucceeded?: (usage: import('../subagent/result.js').SubagentTrace['usage'], costUsd: number | undefined) => void;
|
|
29
|
+
credentialModel?: AgentModelInput;
|
|
29
30
|
}
|
|
30
31
|
export interface TruncationEvent {
|
|
31
32
|
nodeId: string;
|