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.
Files changed (43) hide show
  1. package/dist/agent/lsp/async-mutex.d.ts +13 -0
  2. package/dist/agent/lsp/client-handlers.d.ts +58 -0
  3. package/dist/agent/lsp/client-process.d.ts +19 -0
  4. package/dist/agent/lsp/client.d.ts +54 -0
  5. package/dist/agent/lsp/diagnostics-store.d.ts +17 -0
  6. package/dist/agent/lsp/document-sync.d.ts +20 -0
  7. package/dist/agent/lsp/install.d.ts +14 -0
  8. package/dist/agent/lsp/install.footprint.d.ts +5 -0
  9. package/dist/agent/lsp/install.grants.d.ts +10 -0
  10. package/dist/agent/lsp/install.npm.d.ts +21 -0
  11. package/dist/agent/lsp/pool.d.ts +30 -0
  12. package/dist/agent/lsp/query.d.ts +18 -0
  13. package/dist/agent/lsp/registry.d.ts +12 -0
  14. package/dist/agent/lsp/server-spec.d.ts +53 -0
  15. package/dist/agent/lsp/typescript-default.d.ts +5 -0
  16. package/dist/agent/plugins/load-entrypoints.d.ts +12 -0
  17. package/dist/agent/plugins/plugin-runtime-api.d.ts +6 -0
  18. package/dist/agent/plugins/plugin-session-context.d.ts +3 -0
  19. package/dist/agent/session/manager-shutdown-config.d.ts +1 -1
  20. package/dist/agent/subagent/result.d.ts +1 -0
  21. package/dist/agent/tools/handlers/lsp-diagnostics.d.ts +2 -2
  22. package/dist/agent/tools/handlers/lsp-shared.d.ts +2 -8
  23. package/dist/agent/tools/handlers/lsp-symbols.d.ts +2 -1
  24. package/dist/agent/tools/skill-bridge.d.ts +4 -1
  25. package/dist/agent/tools/subagent/child-config.d.ts +11 -0
  26. package/dist/cli/commands/update.d.ts +1 -1
  27. package/dist/cli/health-rail.d.ts +4 -0
  28. package/dist/cli/health-rail.format.d.ts +2 -0
  29. package/dist/cli.mjs +578 -584
  30. package/dist/config/env.d.ts +8 -0
  31. package/dist/config/env.tools.d.ts +8 -0
  32. package/dist/improve/scan/detectors/tool-failure-density.d.ts +7 -0
  33. package/dist/improve/schemas.d.ts +1 -0
  34. package/dist/index.mjs +432 -438
  35. package/dist/paths.lsp.d.ts +4 -0
  36. package/dist/telegram/bg-injection.d.ts +1 -0
  37. package/dist/telegram/handlers/message.wake-idle.d.ts +3 -0
  38. package/dist/telegram.mjs +462 -468
  39. package/dist/utils/kill-process-group.d.ts +1 -0
  40. package/dist/utils/npm-cli.d.ts +1 -0
  41. package/dist/web-server/session-owner.d.ts +1 -0
  42. package/dist/web-server/session-owner.lifecycle.d.ts +1 -1
  43. package/package.json +2 -1
@@ -4,3 +4,4 @@ export interface KillProcessGroupDeps {
4
4
  spawn?: typeof spawn;
5
5
  }
6
6
  export declare function killProcessGroup(pid: number, signal?: NodeJS.Signals, deps?: KillProcessGroupDeps): void;
7
+ export declare function killProcessGroupAndWait(pid: number, signal?: NodeJS.Signals, deps?: KillProcessGroupDeps, timeoutMs?: number): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function resolveNpmCli(execPath?: string, existsFn?: (p: string) => boolean, realpathFn?: (p: string) => string): string | undefined;
@@ -47,6 +47,7 @@ export declare class SessionOwner {
47
47
  isBusy(sessionId: string): boolean;
48
48
  reserveTurn(sessionId: string): void;
49
49
  releaseTurn(sessionId: string): void;
50
+ retire(id: string): void;
50
51
  interrupt(sessionId: string): Promise<void>;
51
52
  list(): OwnedSessionInfo[];
52
53
  getSession(id: string): import('../agent/session/agent-session.js').AgentSession | undefined;
@@ -2,7 +2,7 @@ import { findSession } from '../cli/session-store.js';
2
2
  import type { SlashContext } from '../cli/slash/types.js';
3
3
  import type { CommandControl } from './shared/command-wire.js';
4
4
  import type { SessionOwner } from './session-owner.js';
5
- export declare function handleWebExit(_owner: SessionOwner, sessionId: string, ctx: SlashContext): Promise<CommandControl>;
5
+ export declare function handleWebExit(owner: SessionOwner, sessionId: string, ctx: SlashContext): Promise<CommandControl>;
6
6
  export declare function handleWebResumeList(ctx: SlashContext): Promise<'continue'>;
7
7
  export declare function handleWebResumeTarget(owner: SessionOwner, _sessionId: string, ctx: SlashContext, target: string): Promise<CommandControl | 'continue'>;
8
8
  type StoredSession = NonNullable<ReturnType<typeof findSession>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-afk",
3
- "version": "5.335.1",
3
+ "version": "5.336.0",
4
4
  "description": "Open-source coding-agent harness you can actually change — own the loop (prompts, gates, routing, skills, terminal states), use any model, run long tasks while you're away.",
5
5
  "main": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",
@@ -162,6 +162,7 @@
162
162
  "telegraf": "^4.16.3",
163
163
  "turndown": "^7.2.4",
164
164
  "undici": "^8.11.2",
165
+ "vscode-jsonrpc": "^9.0.3",
165
166
  "wrap-ansi": "^10.0.0",
166
167
  "zod": "^4.3.6"
167
168
  },