agent-afk 5.337.0 → 5.339.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 (51) hide show
  1. package/dist/agent/background-registry.mark-terminal.d.ts +1 -1
  2. package/dist/agent/background-registry.types.d.ts +1 -1
  3. package/dist/agent/file-checkpoint/bash-checkpoint.d.ts +5 -0
  4. package/dist/agent/file-checkpoint/file-checkpoint.d.ts +6 -0
  5. package/dist/agent/file-checkpoint/git-snapshot.attrs.d.ts +9 -0
  6. package/dist/agent/file-checkpoint/git-snapshot.d.ts +49 -0
  7. package/dist/agent/file-checkpoint/git-snapshot.diff.d.ts +27 -0
  8. package/dist/agent/file-checkpoint/git-snapshot.exec.d.ts +34 -0
  9. package/dist/agent/file-checkpoint/git-snapshot.index.d.ts +6 -0
  10. package/dist/agent/file-checkpoint/rewind-plan.d.ts +1 -0
  11. package/dist/agent/file-checkpoint/turn-log.d.ts +9 -1
  12. package/dist/agent/hooks.d.ts +1 -0
  13. package/dist/agent/provider.d.ts +1 -0
  14. package/dist/agent/providers/anthropic-direct/query-options.d.ts +1 -0
  15. package/dist/agent/providers/anthropic-direct/query-runtime.d.ts +1 -0
  16. package/dist/agent/providers/anthropic-direct/query-turn-driver.d.ts +1 -0
  17. package/dist/agent/providers/anthropic-direct/request-types.d.ts +1 -0
  18. package/dist/agent/providers/openai-compatible/query/turn-driver.d.ts +1 -0
  19. package/dist/agent/providers/openai-compatible/system-prompt-wiring.d.ts +10 -0
  20. package/dist/agent/providers/shared/prompt-fragment-tokens.d.ts +23 -0
  21. package/dist/agent/risk-classifier.d.ts +1 -1
  22. package/dist/agent/session/model-slots.d.ts +2 -0
  23. package/dist/agent/session/session-meta.d.ts +14 -0
  24. package/dist/agent/session/slot-credentials.d.ts +1 -0
  25. package/dist/agent/trace/events.d.ts +5 -0
  26. package/dist/agent/trace/events.session-phase.d.ts +2 -0
  27. package/dist/agent/trace/receipt.d.ts +5 -1
  28. package/dist/agent/trace/receipt.journal.d.ts +10 -0
  29. package/dist/agent/trace/types.session-phase.d.ts +1 -1
  30. package/dist/agent/types/config-types.d.ts +1 -0
  31. package/dist/agent/types/session-types.d.ts +1 -0
  32. package/dist/cli/commands/interactive/mascot-bar.d.ts +1 -0
  33. package/dist/cli/session-store.d.ts +1 -0
  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 +589 -582
  37. package/dist/config/endpoint-semaphore.d.ts +9 -0
  38. package/dist/config/env.d.ts +56 -0
  39. package/dist/config/env.debug.d.ts +7 -0
  40. package/dist/config/env.file-checkpoint.d.ts +21 -0
  41. package/dist/config/env.model-slot-concurrency.d.ts +29 -0
  42. package/dist/config/env.session-storage.d.ts +21 -0
  43. package/dist/improve/propose/template-engine.templates-density.d.ts +2 -0
  44. package/dist/index.mjs +443 -434
  45. package/dist/paths.checkpoint.d.ts +2 -0
  46. package/dist/paths.d.ts +1 -1
  47. package/dist/paths.journal.d.ts +1 -0
  48. package/dist/telegram.mjs +471 -466
  49. package/dist/utils/errors.d.ts +2 -0
  50. package/dist/web-server/fork-ledger.d.ts +1 -0
  51. package/package.json +2 -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.337.0",
3
+ "version": "5.339.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",
@@ -81,6 +81,7 @@
81
81
  "audit:posix:check": "tsx scripts/check-posix-guard.ts --check",
82
82
  "audit:posix:list": "tsx scripts/check-posix-guard.ts --list",
83
83
  "audit:posix:update": "tsx scripts/check-posix-guard.ts --update-baseline",
84
+ "audit:git-locks:check": "tsx scripts/check-git-read-flags.ts",
84
85
  "audit:module-state": "tsx scripts/audit-module-state.ts",
85
86
  "audit:module-state:check": "tsx scripts/audit-module-state.ts --check",
86
87
  "audit:clones": "jscpd --config .jscpd.json",