agent-afk 5.335.1 → 5.336.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/lsp/async-mutex.d.ts +13 -0
- package/dist/agent/lsp/client-handlers.d.ts +58 -0
- package/dist/agent/lsp/client-process.d.ts +19 -0
- package/dist/agent/lsp/client.d.ts +54 -0
- package/dist/agent/lsp/diagnostics-store.d.ts +17 -0
- package/dist/agent/lsp/document-sync.d.ts +20 -0
- package/dist/agent/lsp/install.d.ts +14 -0
- package/dist/agent/lsp/install.footprint.d.ts +5 -0
- package/dist/agent/lsp/install.grants.d.ts +10 -0
- package/dist/agent/lsp/install.npm.d.ts +21 -0
- package/dist/agent/lsp/pool.d.ts +30 -0
- package/dist/agent/lsp/query.d.ts +18 -0
- package/dist/agent/lsp/registry.d.ts +12 -0
- package/dist/agent/lsp/server-spec.d.ts +53 -0
- package/dist/agent/lsp/typescript-default.d.ts +5 -0
- package/dist/agent/plugins/load-entrypoints.d.ts +12 -0
- package/dist/agent/plugins/plugin-runtime-api.d.ts +6 -0
- package/dist/agent/plugins/plugin-session-context.d.ts +3 -0
- package/dist/agent/session/manager-shutdown-config.d.ts +1 -1
- package/dist/agent/subagent/result.d.ts +1 -0
- package/dist/agent/tools/handlers/lsp-diagnostics.d.ts +2 -2
- package/dist/agent/tools/handlers/lsp-shared.d.ts +2 -8
- package/dist/agent/tools/handlers/lsp-symbols.d.ts +2 -1
- package/dist/agent/tools/skill-bridge.d.ts +4 -1
- package/dist/agent/tools/subagent/child-config.d.ts +11 -0
- package/dist/cli/commands/update.d.ts +1 -1
- package/dist/cli/health-rail.d.ts +4 -0
- package/dist/cli/health-rail.format.d.ts +2 -0
- package/dist/cli.mjs +578 -584
- package/dist/config/env.d.ts +8 -0
- package/dist/config/env.tools.d.ts +8 -0
- package/dist/improve/scan/detectors/tool-failure-density.d.ts +7 -0
- package/dist/improve/schemas.d.ts +1 -0
- package/dist/index.mjs +432 -438
- package/dist/paths.lsp.d.ts +4 -0
- package/dist/telegram/bg-injection.d.ts +1 -0
- package/dist/telegram/handlers/message.wake-idle.d.ts +3 -0
- package/dist/telegram.mjs +462 -468
- package/dist/utils/kill-process-group.d.ts +1 -0
- package/dist/utils/npm-cli.d.ts +1 -0
- package/dist/web-server/session-owner.d.ts +1 -0
- package/dist/web-server/session-owner.lifecycle.d.ts +1 -1
- package/package.json +2 -1
package/dist/config/env.d.ts
CHANGED
|
@@ -1784,6 +1784,14 @@ export declare const ENV_REGISTRY: readonly [{
|
|
|
1784
1784
|
readonly default: "5000";
|
|
1785
1785
|
readonly example: "10000";
|
|
1786
1786
|
readonly category: "misc";
|
|
1787
|
+
}, {
|
|
1788
|
+
readonly name: "AFK_LSP_IDLE_SHUTDOWN_MS";
|
|
1789
|
+
readonly description: string;
|
|
1790
|
+
readonly type: "number";
|
|
1791
|
+
readonly required: false;
|
|
1792
|
+
readonly default: "300000";
|
|
1793
|
+
readonly example: "60000";
|
|
1794
|
+
readonly category: "misc";
|
|
1787
1795
|
}, {
|
|
1788
1796
|
readonly name: "AFK_SUBAGENT_CONTINUATION_MAX_ROUNDS";
|
|
1789
1797
|
readonly description: string;
|
|
@@ -22,4 +22,12 @@ export declare const TOOLS_ENV_REGISTRY: readonly [{
|
|
|
22
22
|
readonly default: "5000";
|
|
23
23
|
readonly example: "10000";
|
|
24
24
|
readonly category: "misc";
|
|
25
|
+
}, {
|
|
26
|
+
readonly name: "AFK_LSP_IDLE_SHUTDOWN_MS";
|
|
27
|
+
readonly description: string;
|
|
28
|
+
readonly type: "number";
|
|
29
|
+
readonly required: false;
|
|
30
|
+
readonly default: "300000";
|
|
31
|
+
readonly example: "60000";
|
|
32
|
+
readonly category: "misc";
|
|
25
33
|
}];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { DetectorResult } from '../../schemas.js';
|
|
2
2
|
import type { SessionRead } from '../reader.js';
|
|
3
|
+
export declare const MAX_ERROR_CLUSTERS = 5;
|
|
4
|
+
export declare function normalizeErrorHead(head: string): string;
|
|
3
5
|
export declare const DEFAULT_TOOL_FAILURE_MIN_FAILURES = 3;
|
|
4
6
|
export declare const DEFAULT_TOOL_FAILURE_MIN_RATE = 0.25;
|
|
5
7
|
export interface ToolFailureDensityOptions {
|
|
@@ -7,4 +9,9 @@ export interface ToolFailureDensityOptions {
|
|
|
7
9
|
minFailureRate?: number;
|
|
8
10
|
}
|
|
9
11
|
export declare function detectToolFailureDensity(sessions: SessionRead[], options?: ToolFailureDensityOptions): DetectorResult[];
|
|
12
|
+
export interface ErrorCluster {
|
|
13
|
+
normalized: string;
|
|
14
|
+
count: number;
|
|
15
|
+
sample: string;
|
|
16
|
+
}
|
|
10
17
|
export declare function makeSlug(toolName: string): string;
|
|
@@ -56,6 +56,7 @@ export declare const FailureCardSchema: z.ZodObject<{
|
|
|
56
56
|
firstSeen: z.ZodString;
|
|
57
57
|
lastSeen: z.ZodString;
|
|
58
58
|
occurrenceCount: z.ZodNumber;
|
|
59
|
+
sightingCount: z.ZodDefault<z.ZodNumber>;
|
|
59
60
|
evidence: z.ZodArray<z.ZodObject<{
|
|
60
61
|
sessionId: z.ZodString;
|
|
61
62
|
tracePath: z.ZodString;
|