agent-afk 5.115.2 → 5.115.4

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 (59) hide show
  1. package/dist/agent/abort-graph.d.ts +3 -3
  2. package/dist/agent/afk-mode-gate.d.ts +2 -2
  3. package/dist/agent/background-registry.d.ts +3 -3
  4. package/dist/agent/daemon/scheduler.d.ts +2 -1
  5. package/dist/agent/default-hook-registry.d.ts +2 -2
  6. package/dist/agent/mcp/manager.d.ts +2 -2
  7. package/dist/agent/providers/anthropic-direct/build-dispatcher.d.ts +2 -2
  8. package/dist/agent/providers/anthropic-direct/query/compact-handler.d.ts +1 -1
  9. package/dist/agent/providers/anthropic-direct/query-maintenance.d.ts +1 -1
  10. package/dist/agent/providers/anthropic-direct/query-options.d.ts +1 -1
  11. package/dist/agent/providers/anthropic-direct/query-turn-driver.d.ts +1 -1
  12. package/dist/agent/providers/anthropic-direct/request-types.d.ts +1 -1
  13. package/dist/agent/providers/anthropic-direct/tracing-fetch.d.ts +2 -2
  14. package/dist/agent/providers/openai-compatible/compact.d.ts +2 -2
  15. package/dist/agent/providers/openai-compatible/query/dispatch-append.d.ts +2 -2
  16. package/dist/agent/providers/openai-compatible/query/stream-drive.d.ts +2 -2
  17. package/dist/agent/providers/openai-compatible/query.d.ts +2 -2
  18. package/dist/agent/providers/shared/turn-trace.d.ts +2 -2
  19. package/dist/agent/query.d.ts +2 -0
  20. package/dist/agent/session/agent-session.d.ts +3 -2
  21. package/dist/agent/session/closure-emitter.d.ts +2 -2
  22. package/dist/agent/session/hooks-dispatch.d.ts +2 -2
  23. package/dist/agent/session/stream-consumer.d.ts +2 -2
  24. package/dist/agent/session/wire-executors.d.ts +3 -3
  25. package/dist/agent/subagent/fork-types.d.ts +2 -2
  26. package/dist/agent/subagent/handle.d.ts +2 -2
  27. package/dist/agent/subagent-hooks.d.ts +2 -2
  28. package/dist/agent/subagent.d.ts +2 -2
  29. package/dist/agent/tools/compose-executor.d.ts +3 -3
  30. package/dist/agent/tools/dispatcher.d.ts +2 -2
  31. package/dist/agent/tools/nesting.d.ts +2 -2
  32. package/dist/agent/tools/skill-executor/types.d.ts +2 -2
  33. package/dist/agent/tools/skill-executor.d.ts +2 -2
  34. package/dist/agent/tools/subagent/child-config.d.ts +2 -2
  35. package/dist/agent/tools/subagent/foreground-promotion.d.ts +2 -2
  36. package/dist/agent/tools/subagent-executor.d.ts +3 -3
  37. package/dist/agent/tools/types.d.ts +2 -2
  38. package/dist/agent/trace/emit.d.ts +13 -13
  39. package/dist/agent/trace/index.d.ts +1 -1
  40. package/dist/agent/trace/writer.d.ts +3 -1
  41. package/dist/agent/types/config-types.d.ts +2 -2
  42. package/dist/cli/commands/daemon.d.ts +1 -1
  43. package/dist/cli/commands/interactive/boot-warning-recorder.d.ts +2 -2
  44. package/dist/cli/commands/interactive/bootstrap-hooks.d.ts +2 -2
  45. package/dist/cli/commands/interactive/bootstrap-mcp.d.ts +2 -2
  46. package/dist/cli.mjs +349 -349
  47. package/dist/index.mjs +4 -4
  48. package/dist/skills/index.d.ts +2 -2
  49. package/dist/skills/mint/_phases/build.d.ts +2 -2
  50. package/dist/skills/mint/_phases/heal.d.ts +2 -2
  51. package/dist/skills/mint/_phases/parallelize-dispatch.d.ts +2 -2
  52. package/dist/skills/mint/_phases/plan.d.ts +2 -2
  53. package/dist/skills/mint/_phases/research.d.ts +2 -2
  54. package/dist/skills/mint/_phases/ship.d.ts +2 -2
  55. package/dist/skills/mint/_phases/spec.d.ts +2 -2
  56. package/dist/skills/mint/_phases/verify.d.ts +2 -2
  57. package/dist/telegram/construct-session.d.ts +1 -1
  58. package/dist/telegram.mjs +5 -5
  59. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import type { AgentModelInput, IAgentSession } from '../agent/types.js';
2
- import type { TraceWriter } from '../agent/trace/index.js';
2
+ import type { TraceSink } from '../agent/trace/index.js';
3
3
  import type { ReadScopeInputs } from '../agent/subagent-read-scope.js';
4
4
  export interface SkillExecutionContext {
5
5
  apiKey?: string;
@@ -7,7 +7,7 @@ export interface SkillExecutionContext {
7
7
  defaultSubagentModel?: AgentModelInput;
8
8
  callId?: string;
9
9
  dispatchSkill?: (name: string, args?: string) => Promise<string>;
10
- traceWriter?: TraceWriter;
10
+ traceWriter?: TraceSink;
11
11
  getReadScopeInputs?: () => ReadScopeInputs;
12
12
  }
13
13
  export interface SkillMetadata {
@@ -1,8 +1,8 @@
1
1
  import type { AgentModelInput } from '../../../agent/types.js';
2
- import type { TraceWriter } from '../../../agent/trace/index.js';
2
+ import type { TraceSink } from '../../../agent/trace/index.js';
3
3
  export interface BuildResult {
4
4
  filesChanged: string[];
5
5
  testsPassed: boolean;
6
6
  notes: string;
7
7
  }
8
- export declare function runBuildPhase(plan: string, orchestrationPlan: unknown, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceWriter): Promise<BuildResult>;
8
+ export declare function runBuildPhase(plan: string, orchestrationPlan: unknown, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink): Promise<BuildResult>;
@@ -1,8 +1,8 @@
1
1
  import type { AgentModelInput, IAgentSession } from '../../../agent/types.js';
2
- import type { TraceWriter } from '../../../agent/trace/index.js';
2
+ import type { TraceSink } from '../../../agent/trace/index.js';
3
3
  import type { VerifyResult } from './verify.js';
4
4
  import type { BuildResult } from './build.js';
5
- export declare function runHealPhase(plan: string, buildResults: BuildResult, verifyResults: VerifyResult, healIterations: number, parentSession: IAgentSession, skillCallId?: string, defaultSubagentModel?: AgentModelInput, dispatchSkill?: (name: string, args?: string) => Promise<string>, parentReadRoots?: string[], traceWriter?: TraceWriter): Promise<{
5
+ export declare function runHealPhase(plan: string, buildResults: BuildResult, verifyResults: VerifyResult, healIterations: number, parentSession: IAgentSession, skillCallId?: string, defaultSubagentModel?: AgentModelInput, dispatchSkill?: (name: string, args?: string) => Promise<string>, parentReadRoots?: string[], traceWriter?: TraceSink): Promise<{
6
6
  healed: boolean;
7
7
  newHealIterations: number;
8
8
  newVerifyResults: VerifyResult;
@@ -1,5 +1,5 @@
1
1
  import type { AgentModelInput, IAgentSession } from '../../../agent/types.js';
2
- import type { TraceWriter } from '../../../agent/trace/index.js';
2
+ import type { TraceSink } from '../../../agent/trace/index.js';
3
3
  export type ParallelizeDispatchResult = {
4
4
  kind: 'skipped';
5
5
  reason: 'too-few-files' | 'skill-body-missing';
@@ -10,4 +10,4 @@ export type ParallelizeDispatchResult = {
10
10
  kind: 'failed';
11
11
  error: string;
12
12
  };
13
- export declare function runParallelizeDispatch(plan: string, parentSession: IAgentSession, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceWriter): Promise<ParallelizeDispatchResult>;
13
+ export declare function runParallelizeDispatch(plan: string, parentSession: IAgentSession, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink): Promise<ParallelizeDispatchResult>;
@@ -1,3 +1,3 @@
1
1
  import type { AgentModelInput } from '../../../agent/types.js';
2
- import type { TraceWriter } from '../../../agent/trace/index.js';
3
- export declare function runPlanPhase(spec: string, research: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceWriter): Promise<string>;
2
+ import type { TraceSink } from '../../../agent/trace/index.js';
3
+ export declare function runPlanPhase(spec: string, research: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink): Promise<string>;
@@ -1,3 +1,3 @@
1
1
  import type { AgentModelInput } from '../../../agent/types.js';
2
- import type { TraceWriter } from '../../../agent/trace/index.js';
3
- export declare function runResearchPhase(spec: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceWriter): Promise<string>;
2
+ import type { TraceSink } from '../../../agent/trace/index.js';
3
+ export declare function runResearchPhase(spec: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink): Promise<string>;
@@ -1,4 +1,4 @@
1
1
  import type { AgentModelInput } from '../../../agent/types.js';
2
- import type { TraceWriter } from '../../../agent/trace/index.js';
2
+ import type { TraceSink } from '../../../agent/trace/index.js';
3
3
  import type { MintState } from '../index.js';
4
- export declare function runShipPhase(state: MintState, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceWriter): Promise<string>;
4
+ export declare function runShipPhase(state: MintState, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink): Promise<string>;
@@ -1,3 +1,3 @@
1
1
  import type { AgentModelInput } from '../../../agent/types.js';
2
- import type { TraceWriter } from '../../../agent/trace/index.js';
3
- export declare function runSpecPhase(idea: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceWriter): Promise<string>;
2
+ import type { TraceSink } from '../../../agent/trace/index.js';
3
+ export declare function runSpecPhase(idea: string, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink): Promise<string>;
@@ -1,10 +1,10 @@
1
1
  import type { BuildResult } from './build.js';
2
2
  import type { AgentModelInput } from '../../../agent/types.js';
3
- import type { TraceWriter } from '../../../agent/trace/index.js';
3
+ import type { TraceSink } from '../../../agent/trace/index.js';
4
4
  export interface VerifyResult {
5
5
  testsPassed: boolean;
6
6
  lintPassed: boolean;
7
7
  designReviewPassed: boolean;
8
8
  issues?: string[];
9
9
  }
10
- export declare function runVerifyPhase(plan: string, buildResults: BuildResult, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceWriter): Promise<VerifyResult>;
10
+ export declare function runVerifyPhase(plan: string, buildResults: BuildResult, parentSessionId: string, parentCwd?: string, skillCallId?: string, defaultSubagentModel?: AgentModelInput, parentReadRoots?: string[], traceWriter?: TraceSink): Promise<VerifyResult>;
@@ -5,7 +5,7 @@ import type { TraceWriter } from '../agent/trace/index.js';
5
5
  export interface ConstructTelegramSessionDeps {
6
6
  createTraceWriter?: () => CreatedTraceWriter | null;
7
7
  traceWriter?: TraceWriter | null;
8
- newSession?: (config: AgentConfig) => AgentSession;
8
+ newSession?: (config: AgentConfig, traceOwner?: TraceWriter) => AgentSession;
9
9
  }
10
10
  export declare function createTelegramTraceWriter(factory?: () => CreatedTraceWriter | null): TraceWriter | null;
11
11
  export declare function constructTelegramSession(baseConfig: AgentConfig, deps?: ConstructTelegramSessionDeps): AgentSession;