agent-afk 5.338.1 → 5.340.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 (48) hide show
  1. package/dist/agent/daemon/github-event-poller.d.ts +2 -0
  2. package/dist/agent/file-checkpoint/bash-checkpoint.d.ts +5 -0
  3. package/dist/agent/file-checkpoint/file-checkpoint.d.ts +6 -0
  4. package/dist/agent/file-checkpoint/git-snapshot.attrs.d.ts +9 -0
  5. package/dist/agent/file-checkpoint/git-snapshot.d.ts +49 -0
  6. package/dist/agent/file-checkpoint/git-snapshot.diff.d.ts +27 -0
  7. package/dist/agent/file-checkpoint/git-snapshot.exec.d.ts +34 -0
  8. package/dist/agent/file-checkpoint/git-snapshot.index.d.ts +6 -0
  9. package/dist/agent/file-checkpoint/rewind-plan.d.ts +1 -0
  10. package/dist/agent/file-checkpoint/turn-log.d.ts +9 -1
  11. package/dist/agent/hooks.d.ts +1 -0
  12. package/dist/agent/operator-notify.d.ts +12 -0
  13. package/dist/agent/provider.d.ts +1 -0
  14. package/dist/agent/providers/openai-compatible/system-prompt-wiring.d.ts +10 -0
  15. package/dist/agent/providers/shared/prompt-fragment-tokens.d.ts +23 -0
  16. package/dist/agent/risk-classifier.d.ts +1 -1
  17. package/dist/agent/session/session-meta.d.ts +1 -0
  18. package/dist/agent/session-control/index.d.ts +1 -1
  19. package/dist/agent/session-control/reads.d.ts +0 -2
  20. package/dist/agent/shell-jobs/process-jobs.d.ts +2 -0
  21. package/dist/agent/subscription-usage.d.ts +0 -1
  22. package/dist/agent/tools/hooks/inline-image-hook.d.ts +2 -0
  23. package/dist/agent/tools/hooks/inline-image-render.d.ts +8 -0
  24. package/dist/agent/tools/skill-bridge.d.ts +1 -2
  25. package/dist/agent/tools/subagent-executor.execute-once.read-scope.d.ts +10 -0
  26. package/dist/agent/tools/tool-call-ledger.d.ts +19 -0
  27. package/dist/agent/trace/events.d.ts +5 -0
  28. package/dist/agent/trace/events.session-phase.d.ts +2 -0
  29. package/dist/agent/trace/receipt.journal.d.ts +2 -2
  30. package/dist/agent/trace/types.session-phase.d.ts +1 -1
  31. package/dist/agent/types/session-types.d.ts +1 -0
  32. package/dist/agent/usage/usage-http.d.ts +2 -0
  33. package/dist/cli/render/picker.d.ts +1 -1
  34. package/dist/cli/terminal-compositor.frame.lines.d.ts +1 -1
  35. package/dist/cli/terminal-compositor.types.d.ts +1 -0
  36. package/dist/cli.mjs +612 -601
  37. package/dist/config/env.auth.d.ts +8 -0
  38. package/dist/config/env.d.ts +50 -0
  39. package/dist/config/env.file-checkpoint.d.ts +21 -0
  40. package/dist/config/env.session-storage.d.ts +21 -0
  41. package/dist/config/env.ui.d.ts +21 -0
  42. package/dist/index.mjs +476 -475
  43. package/dist/paths.checkpoint.d.ts +2 -0
  44. package/dist/paths.d.ts +1 -1
  45. package/dist/telegram.mjs +517 -506
  46. package/dist/utils/errors.d.ts +2 -0
  47. package/dist/web-server/fork-ledger.d.ts +1 -0
  48. package/package.json +1 -1
@@ -25,8 +25,10 @@ export declare class HookBlockedError extends Error {
25
25
  constructor(message: string, event: string, reason?: string | undefined, options?: {
26
26
  cause?: unknown;
27
27
  injectContext?: string;
28
+ riskCategory?: import('../agent/risk-classifier.js').RiskCategory;
28
29
  });
29
30
  injectContext?: string;
31
+ riskCategory?: import('../agent/risk-classifier.js').RiskCategory;
30
32
  }
31
33
  export declare class StreamIncompleteError extends Error {
32
34
  toolResultsGathered?: number;
@@ -1,4 +1,5 @@
1
1
  export declare function seedForkLedger(forkId: string, meta: {
2
2
  model: string;
3
3
  cwd?: string;
4
+ forkedFrom?: string;
4
5
  }): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-afk",
3
- "version": "5.338.1",
3
+ "version": "5.340.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",