agent-afk 5.356.0 → 5.358.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 (100) hide show
  1. package/dist/agent/auth/credential-resolver.d.ts +2 -1
  2. package/dist/agent/auth/keychain.d.ts +1 -0
  3. package/dist/agent/dag-subagent.d.ts +1 -0
  4. package/dist/agent/lsp/client-handlers.d.ts +4 -0
  5. package/dist/agent/lsp/client.d.ts +9 -0
  6. package/dist/agent/lsp/diagnostics-store.d.ts +1 -0
  7. package/dist/agent/lsp/document-sync.d.ts +3 -1
  8. package/dist/agent/lsp/install.d.ts +10 -0
  9. package/dist/agent/lsp/pool.d.ts +1 -0
  10. package/dist/agent/lsp/query.d.ts +1 -0
  11. package/dist/agent/outcomes/compute-outcomes.d.ts +1 -0
  12. package/dist/agent/outcomes/git-range.d.ts +1 -0
  13. package/dist/agent/outcomes/outcomes-ledger.d.ts +3 -0
  14. package/dist/agent/outcomes/outcomes-v1.schema.d.ts +2 -0
  15. package/dist/agent/outcomes/schema.d.ts +1 -0
  16. package/dist/agent/prompt-experiment.d.ts +2 -0
  17. package/dist/agent/providers/anthropic-direct/build-dispatcher.d.ts +2 -0
  18. package/dist/agent/providers/anthropic-direct/provider-options.d.ts +1 -0
  19. package/dist/agent/providers/anthropic-direct/provider-query-setup.d.ts +1 -0
  20. package/dist/agent/providers/anthropic-direct/provider-runtime.d.ts +1 -0
  21. package/dist/agent/providers/anthropic-direct/query/client-setup.d.ts +2 -0
  22. package/dist/agent/providers/anthropic-direct/query/closed-router-rotate.d.ts +10 -0
  23. package/dist/agent/providers/anthropic-direct/query/compact-handler.d.ts +1 -1
  24. package/dist/agent/providers/anthropic-direct/query/prompt-assembly.d.ts +1 -0
  25. package/dist/agent/providers/anthropic-direct/query/usage-limit-park-loop.d.ts +5 -0
  26. package/dist/agent/providers/anthropic-direct/query/usage-limit-pause.d.ts +4 -4
  27. package/dist/agent/providers/anthropic-direct/query-maintenance.d.ts +1 -1
  28. package/dist/agent/providers/anthropic-direct/query-options.d.ts +1 -0
  29. package/dist/agent/providers/anthropic-direct/query-runtime.d.ts +2 -1
  30. package/dist/agent/providers/anthropic-direct/query-turn-driver.d.ts +2 -1
  31. package/dist/agent/providers/anthropic-direct/usage-headers-writer.d.ts +31 -0
  32. package/dist/agent/providers/index.d.ts +1 -0
  33. package/dist/agent/providers/openai-compatible/compact.d.ts +1 -1
  34. package/dist/agent/providers/openai-compatible/index.dispatcher-opts.d.ts +4 -2
  35. package/dist/agent/providers/openai-compatible/index.options.d.ts +1 -0
  36. package/dist/agent/providers/openai-compatible/query/compact-handler.d.ts +1 -1
  37. package/dist/agent/providers/openai-compatible/system-prompt-wiring.d.ts +1 -0
  38. package/dist/agent/providers/shared/compaction.d.ts +1 -0
  39. package/dist/agent/providers/shared/compaction.summarizer-input.d.ts +4 -1
  40. package/dist/agent/providers/shared/lsp-install-eligibility.d.ts +2 -0
  41. package/dist/agent/providers/shared/tool-grant.d.ts +1 -0
  42. package/dist/agent/session/ledger-lifecycle.d.ts +2 -0
  43. package/dist/agent/session/provider-lifecycle.d.ts +2 -1
  44. package/dist/agent/session/wire-executors.d.ts +2 -1
  45. package/dist/agent/subagent/identity-preamble.d.ts +1 -1
  46. package/dist/agent/subagent/identity-preamble.worktree.d.ts +3 -0
  47. package/dist/agent/tool-category.d.ts +2 -1
  48. package/dist/agent/tools/compose-input-parse.d.ts +1 -0
  49. package/dist/agent/tools/dispatcher.d.ts +4 -2
  50. package/dist/agent/tools/dispatcher.handler-context.d.ts +4 -0
  51. package/dist/agent/tools/dispatcher.ledger.d.ts +6 -1
  52. package/dist/agent/tools/dispatcher.options.d.ts +2 -0
  53. package/dist/agent/tools/dispatcher.pre-dispatch-gates.bash.d.ts +6 -0
  54. package/dist/agent/tools/dispatcher.pre-dispatch-gates.d.ts +1 -0
  55. package/dist/agent/tools/handlers/grep.pipe-retry.d.ts +2 -2
  56. package/dist/agent/tools/handlers/lsp-diagnostics.d.ts +2 -2
  57. package/dist/agent/tools/handlers/lsp-install-consent.d.ts +3 -0
  58. package/dist/agent/tools/handlers/lsp-refactor-actions.d.ts +21 -0
  59. package/dist/agent/tools/handlers/lsp-refactor-input.d.ts +16 -0
  60. package/dist/agent/tools/handlers/lsp-refactor-symbols.d.ts +10 -0
  61. package/dist/agent/tools/handlers/lsp-refactor.d.ts +4 -0
  62. package/dist/agent/tools/handlers/lsp-server.d.ts +15 -0
  63. package/dist/agent/tools/handlers/lsp-symbols.d.ts +2 -1
  64. package/dist/agent/tools/handlers/lsp-workspace-edit-parse.d.ts +19 -0
  65. package/dist/agent/tools/handlers/lsp-workspace-edit.d.ts +18 -0
  66. package/dist/agent/tools/handlers/patch-apply-engine.d.ts +1 -1
  67. package/dist/agent/tools/handlers/patch-apply-guard.d.ts +2 -0
  68. package/dist/agent/tools/handlers/worktree.create-note.d.ts +1 -0
  69. package/dist/agent/tools/nesting.d.ts +1 -0
  70. package/dist/agent/tools/readonly-bash.destructive-git.d.ts +8 -0
  71. package/dist/agent/tools/readonly-bash.destructive-git.heredoc.d.ts +7 -0
  72. package/dist/agent/tools/readonly-bash.destructive-git.nested.d.ts +5 -0
  73. package/dist/agent/tools/readonly-bash.tokenizer.d.ts +5 -0
  74. package/dist/agent/tools/subagent/input-parse.d.ts +1 -0
  75. package/dist/agent/tools/subagent-executor.execute-once.helpers.d.ts +1 -1
  76. package/dist/agent/tools/types.d.ts +1 -0
  77. package/dist/agent/trace/cost.d.ts +0 -1
  78. package/dist/agent/trace/emit.d.ts +2 -1
  79. package/dist/agent/trace/events.compaction.d.ts +2 -0
  80. package/dist/agent/trace/events.d.ts +2 -0
  81. package/dist/agent/trace/types.compaction.d.ts +36 -0
  82. package/dist/agent/trace/types.d.ts +2 -34
  83. package/dist/agent/trace/writer.d.ts +2 -1
  84. package/dist/agent/types/config-types.d.ts +1 -0
  85. package/dist/agent/worktree/isolated-slug.d.ts +11 -0
  86. package/dist/agent/worktree/worktree-scratch.d.ts +13 -0
  87. package/dist/agent/worktree/worktree-sweep.classify.d.ts +1 -0
  88. package/dist/bundled-plugins/awa-bundled/skills/diagnose/SKILL.md +1 -1
  89. package/dist/bundled-plugins/awa-bundled/skills/refactor/SKILL.md +1 -1
  90. package/dist/bundled-plugins/awa-bundled/skills/ship/SKILL.md +17 -8
  91. package/dist/cli/slash/plugin-skills/state.d.ts +1 -0
  92. package/dist/cli.mjs +681 -659
  93. package/dist/config/env.d.ts +29 -0
  94. package/dist/config/env.misc.d.ts +14 -0
  95. package/dist/config/env.prompt-experiment.d.ts +15 -0
  96. package/dist/index.mjs +496 -474
  97. package/dist/paths.d.ts +1 -0
  98. package/dist/remote/remote-subagent-handle.d.ts +5 -2
  99. package/dist/telegram.mjs +538 -517
  100. package/package.json +1 -1
@@ -1671,6 +1671,20 @@ export declare const ENV_REGISTRY: readonly [{
1671
1671
  readonly required: false;
1672
1672
  readonly example: "/tmp/whatif-narration/system-prompt.narrate.md";
1673
1673
  readonly category: "misc";
1674
+ }, {
1675
+ readonly name: "AFK_PROMPT_EXPERIMENT";
1676
+ readonly description: string;
1677
+ readonly type: "string";
1678
+ readonly required: false;
1679
+ readonly example: "explore-rewrite";
1680
+ readonly category: "misc";
1681
+ }, {
1682
+ readonly name: "AFK_PROMPT_EXPERIMENT_ARM";
1683
+ readonly description: string;
1684
+ readonly type: "string";
1685
+ readonly required: false;
1686
+ readonly example: "treatment";
1687
+ readonly category: "misc";
1674
1688
  }, {
1675
1689
  readonly name: "AFK_WRITE_DENYLIST";
1676
1690
  readonly description: "Comma-separated list of additional path globs that the write_file tool refuses to write to.";
@@ -1852,6 +1866,13 @@ export declare const ENV_REGISTRY: readonly [{
1852
1866
  readonly default: "turn-end";
1853
1867
  readonly example: "boundary";
1854
1868
  readonly category: "misc";
1869
+ }, {
1870
+ readonly name: "AFK_CLOSED_ROUTER";
1871
+ readonly description: string;
1872
+ readonly type: "boolean";
1873
+ readonly required: false;
1874
+ readonly category: "auth";
1875
+ readonly secret: true;
1855
1876
  }, {
1856
1877
  readonly name: "AFK_OTLP_ENDPOINT";
1857
1878
  readonly description: string;
@@ -1866,6 +1887,13 @@ export declare const ENV_REGISTRY: readonly [{
1866
1887
  readonly required: false;
1867
1888
  readonly example: "Authorization=Bearer tok123,X-Org=acme";
1868
1889
  readonly category: "misc";
1890
+ }, {
1891
+ readonly name: "AFK_SKILLS_MANIFEST_ALWAYS";
1892
+ readonly description: string;
1893
+ readonly type: "boolean";
1894
+ readonly required: false;
1895
+ readonly example: "1";
1896
+ readonly category: "misc";
1869
1897
  }, {
1870
1898
  readonly name: "AFK_UNPROVEN_DIAGNOSIS_GATE";
1871
1899
  readonly description: string;
@@ -1989,5 +2017,6 @@ export type EnvObject = {
1989
2017
  };
1990
2018
  export declare const env: EnvObject;
1991
2019
  export declare function isPlainOutputRequested(): boolean;
2020
+ export declare function isSkillManifestAlways(): boolean;
1992
2021
  export type EnvVarName = keyof EnvObject;
1993
2022
  export { getEnvVarMeta, getMissingRequiredEnvVars, isEnvVarSet, getEnvVarValue, isExplicitlyDisabled, isExplicitlyEnabled, } from './env-helpers.js';
@@ -179,6 +179,13 @@ export declare const MISC_ENV_REGISTRY: readonly [{
179
179
  readonly default: "turn-end";
180
180
  readonly example: "boundary";
181
181
  readonly category: "misc";
182
+ }, {
183
+ readonly name: "AFK_CLOSED_ROUTER";
184
+ readonly description: string;
185
+ readonly type: "boolean";
186
+ readonly required: false;
187
+ readonly category: "auth";
188
+ readonly secret: true;
182
189
  }, {
183
190
  readonly name: "AFK_OTLP_ENDPOINT";
184
191
  readonly description: string;
@@ -193,4 +200,11 @@ export declare const MISC_ENV_REGISTRY: readonly [{
193
200
  readonly required: false;
194
201
  readonly example: "Authorization=Bearer tok123,X-Org=acme";
195
202
  readonly category: "misc";
203
+ }, {
204
+ readonly name: "AFK_SKILLS_MANIFEST_ALWAYS";
205
+ readonly description: string;
206
+ readonly type: "boolean";
207
+ readonly required: false;
208
+ readonly example: "1";
209
+ readonly category: "misc";
196
210
  }];
@@ -0,0 +1,15 @@
1
+ export declare const PROMPT_EXPERIMENT_ENV_REGISTRY: readonly [{
2
+ readonly name: "AFK_PROMPT_EXPERIMENT";
3
+ readonly description: string;
4
+ readonly type: "string";
5
+ readonly required: false;
6
+ readonly example: "explore-rewrite";
7
+ readonly category: "misc";
8
+ }, {
9
+ readonly name: "AFK_PROMPT_EXPERIMENT_ARM";
10
+ readonly description: string;
11
+ readonly type: "string";
12
+ readonly required: false;
13
+ readonly example: "treatment";
14
+ readonly category: "misc";
15
+ }];