@andorra-labs/code 0.1.17 → 0.1.19

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 (313) hide show
  1. package/dist/src/account-jev-savings.d.ts +4 -0
  2. package/dist/src/account-jev-savings.js +92 -0
  3. package/dist/src/acp-agent.js +2 -2
  4. package/dist/src/agent-execution.js +441 -53
  5. package/dist/src/agent-mcp.js +7 -1
  6. package/dist/src/agent-modifiers.js +5 -7
  7. package/dist/src/analytics.d.ts +19 -1
  8. package/dist/src/analytics.js +9 -1
  9. package/dist/src/andorra/entry.js +15 -6
  10. package/dist/src/andorra/errors.js +3 -0
  11. package/dist/src/andorra/hosted.d.ts +8 -0
  12. package/dist/src/andorra/hosted.js +22 -3
  13. package/dist/src/andorra/streams.d.ts +49 -0
  14. package/dist/src/andorra/streams.js +98 -0
  15. package/dist/src/antigravity-acp.d.ts +28 -0
  16. package/dist/src/antigravity-acp.js +150 -0
  17. package/dist/src/antigravity-terminal.d.ts +2 -0
  18. package/dist/src/antigravity-terminal.js +214 -0
  19. package/dist/src/app-server/adaptive-routing-settings.d.ts +37 -0
  20. package/dist/src/app-server/adaptive-routing-settings.js +69 -0
  21. package/dist/src/app-server/artifact.d.ts +14 -0
  22. package/dist/src/app-server/artifact.js +46 -0
  23. package/dist/src/app-server/legal-protocol.d.ts +33 -0
  24. package/dist/src/app-server/legal-protocol.js +16 -0
  25. package/dist/src/app-server/protocol.d.ts +34 -3
  26. package/dist/src/app-server/protocol.js +3 -1
  27. package/dist/src/app-server/telemetry-protocol.d.ts +53 -0
  28. package/dist/src/app-server/telemetry-protocol.js +2 -0
  29. package/dist/src/app-server/telemetry.d.ts +38 -0
  30. package/dist/src/app-server/telemetry.js +163 -0
  31. package/dist/src/app-server/workspace.d.ts +21 -0
  32. package/dist/src/app-server/workspace.js +192 -10
  33. package/dist/src/app-server.d.ts +82 -26
  34. package/dist/src/app-server.js +1573 -417
  35. package/dist/src/attachments.d.ts +10 -0
  36. package/dist/src/attachments.js +102 -7
  37. package/dist/src/auth/AuthManager.d.ts +11 -2
  38. package/dist/src/auth/AuthManager.js +56 -13
  39. package/dist/src/auth/index.d.ts +5 -1
  40. package/dist/src/auth/index.js +8 -1
  41. package/dist/src/auth/lifecycle.d.ts +13 -0
  42. package/dist/src/auth/lifecycle.js +109 -0
  43. package/dist/src/auth/store.d.ts +1 -0
  44. package/dist/src/auth/store.js +12 -0
  45. package/dist/src/auth/types.d.ts +12 -0
  46. package/dist/src/automation-runner.js +2 -0
  47. package/dist/src/automation-service.js +7 -2
  48. package/dist/src/automation-tool.js +2 -1
  49. package/dist/src/benchmark-scores.d.ts +88 -0
  50. package/dist/src/benchmark-scores.js +302 -0
  51. package/dist/src/bridge/command.js +16 -1
  52. package/dist/src/bridge/control.d.ts +3 -1
  53. package/dist/src/bridge/control.js +9 -3
  54. package/dist/src/bridge/engines.d.ts +2 -0
  55. package/dist/src/bridge/engines.js +9 -0
  56. package/dist/src/bridge/github.d.ts +108 -0
  57. package/dist/src/bridge/github.js +378 -0
  58. package/dist/src/bridge/host-ops.d.ts +3 -3
  59. package/dist/src/bridge/host-ops.js +14 -2
  60. package/dist/src/bridge/host.d.ts +2 -0
  61. package/dist/src/bridge/host.js +70 -16
  62. package/dist/src/bridge/protocol.d.ts +1 -0
  63. package/dist/src/bridge/protocol.js +1 -0
  64. package/dist/src/browser-panel-tool.d.ts +12 -0
  65. package/dist/src/browser-panel-tool.js +30 -3
  66. package/dist/src/browser-runner.js +53 -62
  67. package/dist/src/browser-server.js +10 -4
  68. package/dist/src/browser-session.d.ts +14 -0
  69. package/dist/src/browser-session.js +57 -12
  70. package/dist/src/browser-view.d.ts +40 -1
  71. package/dist/src/browser-view.js +163 -9
  72. package/dist/src/browser-window-style.d.ts +27 -0
  73. package/dist/src/browser-window-style.js +244 -0
  74. package/dist/src/bug-report-attachments.d.ts +48 -0
  75. package/dist/src/bug-report-attachments.js +327 -0
  76. package/dist/src/bug-report.d.ts +23 -3
  77. package/dist/src/bug-report.js +72 -9
  78. package/dist/src/claude-provider.d.ts +1 -0
  79. package/dist/src/claude-provider.js +77 -36
  80. package/dist/src/cli.d.ts +1 -3
  81. package/dist/src/cli.js +245 -62
  82. package/dist/src/codex-provider.d.ts +1 -0
  83. package/dist/src/codex-provider.js +44 -8
  84. package/dist/src/coding-tools.d.ts +1 -0
  85. package/dist/src/coding-tools.js +28 -7
  86. package/dist/src/command-screens.d.ts +1 -1
  87. package/dist/src/command-screens.js +2 -2
  88. package/dist/src/commands.d.ts +9 -2
  89. package/dist/src/commands.js +69 -64
  90. package/dist/src/completion.js +13 -7
  91. package/dist/src/config.d.ts +14 -3
  92. package/dist/src/config.js +57 -17
  93. package/dist/src/context-budget.d.ts +11 -2
  94. package/dist/src/context-budget.js +38 -4
  95. package/dist/src/context-compaction.d.ts +10 -8
  96. package/dist/src/context-compaction.js +23 -24
  97. package/dist/src/deadline.js +1 -1
  98. package/dist/src/decision/DecisionEngine.d.ts +2 -0
  99. package/dist/src/decision/DecisionManager.d.ts +16 -0
  100. package/dist/src/decision/DecisionManager.js +75 -2
  101. package/dist/src/decision/applyTaskKind.d.ts +8 -0
  102. package/dist/src/decision/applyTaskKind.js +53 -0
  103. package/dist/src/decision/applyToolMenu.js +6 -2
  104. package/dist/src/decision/hostedPolicy.js +6 -3
  105. package/dist/src/decision/optimizationPolicy.d.ts +10 -0
  106. package/dist/src/decision/optimizationPolicy.js +23 -3
  107. package/dist/src/decision/providers/AndorraDecisionProvider.d.ts +4 -1
  108. package/dist/src/decision/providers/AndorraDecisionProvider.js +29 -7
  109. package/dist/src/decision/providers/index.js +1 -1
  110. package/dist/src/decision/taskKind.d.ts +52 -0
  111. package/dist/src/decision/taskKind.js +76 -0
  112. package/dist/src/decision/toolFamilies.js +1 -1
  113. package/dist/src/decision/types.d.ts +3 -1
  114. package/dist/src/default-graph.js +1 -1
  115. package/dist/src/efficiency.d.ts +80 -1
  116. package/dist/src/efficiency.js +119 -4
  117. package/dist/src/effort-routing.d.ts +27 -0
  118. package/dist/src/effort-routing.js +34 -0
  119. package/dist/src/evidence.d.ts +110 -0
  120. package/dist/src/evidence.js +195 -0
  121. package/dist/src/extensions.d.ts +2 -0
  122. package/dist/src/extensions.js +30 -20
  123. package/dist/src/github-app/agent-writes.d.ts +1 -1
  124. package/dist/src/github-app/agent-writes.js +1 -1
  125. package/dist/src/github-app/client.d.ts +19 -0
  126. package/dist/src/github-app/client.js +21 -1
  127. package/dist/src/github-app/event-source.d.ts +0 -5
  128. package/dist/src/github-app/event-source.js +1 -31
  129. package/dist/src/github-app/metrics.d.ts +2 -5
  130. package/dist/src/github-app/metrics.js +2 -14
  131. package/dist/src/github-app/review-loop.d.ts +5 -5
  132. package/dist/src/github-app/review-loop.js +1 -1
  133. package/dist/src/github-app/review-node.d.ts +2 -2
  134. package/dist/src/github-app/triggers.d.ts +3 -3
  135. package/dist/src/github-names.d.ts +7 -0
  136. package/dist/src/github-names.js +7 -0
  137. package/dist/src/glob-search.d.ts +1 -0
  138. package/dist/src/glob-search.js +3 -0
  139. package/dist/src/google-provider.d.ts +5 -28
  140. package/dist/src/google-provider.js +6 -141
  141. package/dist/src/graph-editor-session.d.ts +1 -0
  142. package/dist/src/graph-editor-session.js +2 -0
  143. package/dist/src/graph-health.js +3 -1
  144. package/dist/src/graph-preview.d.ts +2 -0
  145. package/dist/src/graph-preview.js +1 -0
  146. package/dist/src/graph-runner.js +20 -14
  147. package/dist/src/graph-selection.d.ts +3 -1
  148. package/dist/src/graph-selection.js +2 -2
  149. package/dist/src/graph-server.d.ts +8 -1
  150. package/dist/src/graph-server.js +49 -12
  151. package/dist/src/graph-sync.d.ts +2 -1
  152. package/dist/src/graph-sync.js +13 -0
  153. package/dist/src/graph-ui/app.js +49 -8
  154. package/dist/src/graph-ui/index.html +1 -1
  155. package/dist/src/graphs.d.ts +23 -1
  156. package/dist/src/graphs.js +58 -7
  157. package/dist/src/grok-provider.js +17 -14
  158. package/dist/src/hardened-runtime.js +39 -25
  159. package/dist/src/jev-savings.d.ts +4 -0
  160. package/dist/src/jev-savings.js +13 -0
  161. package/dist/src/legal/client.d.ts +25 -0
  162. package/dist/src/legal/client.js +47 -0
  163. package/dist/src/legal/command.d.ts +13 -0
  164. package/dist/src/legal/command.js +98 -0
  165. package/dist/src/legal/documents.d.ts +2 -0
  166. package/dist/src/legal/documents.js +14 -0
  167. package/dist/src/legal/gate.d.ts +13 -0
  168. package/dist/src/legal/gate.js +96 -0
  169. package/dist/src/legal/manifest.d.ts +21 -0
  170. package/dist/src/legal/manifest.js +23 -0
  171. package/dist/src/legal/receipt.d.ts +13 -0
  172. package/dist/src/legal/receipt.js +137 -0
  173. package/dist/src/legal/release.d.ts +27 -0
  174. package/dist/src/legal/release.js +28 -0
  175. package/dist/src/managed-sign-in.d.ts +0 -1
  176. package/dist/src/managed-sign-in.js +0 -13
  177. package/dist/src/membership.d.ts +27 -1
  178. package/dist/src/membership.js +139 -7
  179. package/dist/src/model-health-cache.js +1 -1
  180. package/dist/src/model-metadata.js +3 -7
  181. package/dist/src/model-override.d.ts +2 -1
  182. package/dist/src/model-override.js +9 -0
  183. package/dist/src/model-pool.d.ts +99 -0
  184. package/dist/src/model-pool.js +136 -0
  185. package/dist/src/model-relay/local.js +5 -0
  186. package/dist/src/model-relay/remote.d.ts +2 -0
  187. package/dist/src/model-relay/remote.js +4 -0
  188. package/dist/src/model-tiers.d.ts +16 -1
  189. package/dist/src/model-tiers.js +31 -7
  190. package/dist/src/opencode-cli-provider.js +59 -56
  191. package/dist/src/opencode-provider.js +16 -13
  192. package/dist/src/permissions.d.ts +5 -0
  193. package/dist/src/permissions.js +7 -0
  194. package/dist/src/plan-pass.js +2 -1
  195. package/dist/src/pool-scores.d.ts +45 -0
  196. package/dist/src/pool-scores.js +40 -0
  197. package/dist/src/provider-connection.js +3 -17
  198. package/dist/src/provider-engine.d.ts +13 -1
  199. package/dist/src/provider-engine.js +116 -12
  200. package/dist/src/provider-request-error.d.ts +8 -0
  201. package/dist/src/provider-request-error.js +12 -0
  202. package/dist/src/provider-settings.d.ts +1 -1
  203. package/dist/src/provider-settings.js +36 -18
  204. package/dist/src/provider-turn-deadline.d.ts +39 -0
  205. package/dist/src/provider-turn-deadline.js +139 -0
  206. package/dist/src/providers.d.ts +8 -9
  207. package/dist/src/providers.js +211 -150
  208. package/dist/src/pull-request-merge.d.ts +1 -8
  209. package/dist/src/pull-request-merge.js +0 -4
  210. package/dist/src/pull-requests.d.ts +83 -57
  211. package/dist/src/pull-requests.js +266 -225
  212. package/dist/src/qa/runtime/ProcessManager.d.ts +5 -1
  213. package/dist/src/qa/runtime/ProcessManager.js +9 -3
  214. package/dist/src/react-runtime.js +245 -71
  215. package/dist/src/reasoning-probe-cloud.d.ts +10 -0
  216. package/dist/src/reasoning-probe-cloud.js +209 -0
  217. package/dist/src/remote/engine-pool.d.ts +3 -0
  218. package/dist/src/remote/engine-pool.js +88 -21
  219. package/dist/src/remote/recovery.d.ts +6 -0
  220. package/dist/src/remote/recovery.js +37 -0
  221. package/dist/src/run-records.d.ts +13 -3
  222. package/dist/src/run-records.js +59 -34
  223. package/dist/src/runtime.d.ts +47 -2
  224. package/dist/src/runtime.js +33 -7
  225. package/dist/src/session-summary.d.ts +8 -0
  226. package/dist/src/session-summary.js +34 -0
  227. package/dist/src/sessions.d.ts +32 -0
  228. package/dist/src/sessions.js +65 -3
  229. package/dist/src/shell.js +6 -0
  230. package/dist/src/side-panel.js +36 -2
  231. package/dist/src/sign-in-detection.d.ts +1 -1
  232. package/dist/src/sign-in-detection.js +4 -10
  233. package/dist/src/sign-in-offer.js +1 -1
  234. package/dist/src/skill-commands.js +1 -1
  235. package/dist/src/skills/bundled/bug-report/SKILL.md +51 -7
  236. package/dist/src/skills/bundled/graph-manager/SKILL.md +2 -2
  237. package/dist/src/skills/bundled/graph-manager/patterns.md +13 -19
  238. package/dist/src/skills/bundled/provenance.json +3 -3
  239. package/dist/src/subagent-run.js +50 -50
  240. package/dist/src/subscription-usage.d.ts +50 -0
  241. package/dist/src/subscription-usage.js +92 -0
  242. package/dist/src/task-checkout.d.ts +157 -0
  243. package/dist/src/task-checkout.js +628 -0
  244. package/dist/src/telemetry/access.d.ts +18 -0
  245. package/dist/src/telemetry/access.js +43 -0
  246. package/dist/src/telemetry/aggregate.d.ts +18 -2
  247. package/dist/src/telemetry/aggregate.js +22 -9
  248. package/dist/src/telemetry/capture-core.d.ts +33 -14
  249. package/dist/src/telemetry/capture-core.js +124 -25
  250. package/dist/src/telemetry/capture.d.ts +3 -2
  251. package/dist/src/telemetry/capture.js +21 -1
  252. package/dist/src/telemetry/decision-capture.js +4 -0
  253. package/dist/src/telemetry/emitter.d.ts +6 -7
  254. package/dist/src/telemetry/emitter.js +124 -29
  255. package/dist/src/telemetry/gate.d.ts +41 -2
  256. package/dist/src/telemetry/gate.js +89 -4
  257. package/dist/src/telemetry/home.d.ts +1 -0
  258. package/dist/src/telemetry/home.js +20 -0
  259. package/dist/src/telemetry/identity.d.ts +6 -3
  260. package/dist/src/telemetry/identity.js +19 -6
  261. package/dist/src/telemetry/lifecycle.d.ts +8 -0
  262. package/dist/src/telemetry/lifecycle.js +76 -0
  263. package/dist/src/telemetry/outbox.d.ts +13 -8
  264. package/dist/src/telemetry/outbox.js +68 -12
  265. package/dist/src/telemetry/permission-command.d.ts +38 -0
  266. package/dist/src/telemetry/permission-command.js +208 -0
  267. package/dist/src/telemetry/permission.d.ts +168 -0
  268. package/dist/src/telemetry/permission.js +662 -0
  269. package/dist/src/telemetry/record-installation.d.ts +1 -0
  270. package/dist/src/telemetry/record-installation.js +9 -0
  271. package/dist/src/telemetry/region-data.d.ts +12 -0
  272. package/dist/src/telemetry/region-data.js +1314 -0
  273. package/dist/src/telemetry/region.d.ts +34 -0
  274. package/dist/src/telemetry/region.js +87 -0
  275. package/dist/src/telemetry/run-privacy.d.ts +11 -0
  276. package/dist/src/telemetry/run-privacy.js +165 -0
  277. package/dist/src/telemetry/schema.d.ts +27 -6
  278. package/dist/src/telemetry/schema.js +109 -14
  279. package/dist/src/telemetry/state.d.ts +11 -7
  280. package/dist/src/telemetry/state.js +39 -6
  281. package/dist/src/telemetry/surface.d.ts +20 -3
  282. package/dist/src/telemetry/surface.js +71 -15
  283. package/dist/src/telemetry/uploader.d.ts +6 -11
  284. package/dist/src/telemetry/uploader.js +72 -46
  285. package/dist/src/telemetry/uploads.d.ts +5 -1
  286. package/dist/src/telemetry/uploads.js +25 -6
  287. package/dist/src/telemetry/version.d.ts +5 -0
  288. package/dist/src/telemetry/version.js +34 -0
  289. package/dist/src/telemetry/workspace.d.ts +4 -1
  290. package/dist/src/telemetry/workspace.js +18 -3
  291. package/dist/src/terminal-ui.d.ts +3 -0
  292. package/dist/src/terminal-ui.js +48 -6
  293. package/dist/src/test-edit-guard.d.ts +30 -0
  294. package/dist/src/test-edit-guard.js +167 -2
  295. package/dist/src/thinking-level-detect.d.ts +13 -0
  296. package/dist/src/thinking-level-detect.js +52 -0
  297. package/dist/src/thinking-levels.d.ts +30 -0
  298. package/dist/src/thinking-levels.js +131 -0
  299. package/dist/src/timers.d.ts +3 -0
  300. package/dist/src/todos.d.ts +2 -1
  301. package/dist/src/todos.js +24 -4
  302. package/dist/src/tool-argument-coercion.d.ts +7 -0
  303. package/dist/src/tool-argument-coercion.js +49 -0
  304. package/dist/src/tool-catalog.d.ts +2 -2
  305. package/dist/src/tool-catalog.js +1 -1
  306. package/dist/src/tools.js +67 -22
  307. package/dist/src/transcript.js +3 -2
  308. package/dist/src/types.d.ts +48 -1
  309. package/dist/src/update.js +4 -0
  310. package/dist/src/usage-analytics.d.ts +7 -0
  311. package/dist/src/usage-analytics.js +85 -13
  312. package/dist/telemetry-consent-v1 +1 -0
  313. package/package.json +97 -96
@@ -1,4 +1,5 @@
1
1
  import { type Config } from './config.js';
2
+ import { AppServerTelemetry } from './app-server/telemetry.js';
2
3
  import { type ProviderConfig } from './providers.js';
3
4
  import { removeCodexAccount } from './codex-auth.js';
4
5
  import { CodexAccountAuth } from './codex-browser-auth.js';
@@ -40,7 +41,7 @@ export interface CloudView {
40
41
  deleteAt?: string;
41
42
  error?: 'boot_timeout' | 'no_capacity';
42
43
  stopReason?: CloudStatus['stopReason'];
43
- /** True when the instance runs a different version from this engine. */
44
+ /** True when a bridge without automatic updates was booted for a different desktop engine version. */
44
45
  outdated: boolean;
45
46
  }
46
47
  export type RelayLinkPort = Pick<RelayLink, 'open' | 'request' | 'host' | 'close' | 'presence' | 'dispose'>;
@@ -67,7 +68,6 @@ export interface AppServerOptions {
67
68
  managedSignIn?: {
68
69
  claude?: ManagedSignInService;
69
70
  grok?: ManagedSignInService;
70
- google?: ManagedSignInService;
71
71
  opencode?: OpenCodeSignInService;
72
72
  };
73
73
  signInProbes?: Partial<SignInProbes>;
@@ -111,6 +111,7 @@ export declare class AppServer {
111
111
  private readonly manualAutomationTasks;
112
112
  private readonly automationController;
113
113
  private readonly directory;
114
+ readonly telemetry: AppServerTelemetry;
114
115
  private readonly output;
115
116
  private readonly error;
116
117
  private readonly checkGraphHealth;
@@ -121,7 +122,6 @@ export declare class AppServer {
121
122
  private readonly anthropicAuth;
122
123
  private readonly claudeSignIn;
123
124
  private readonly grokSignIn;
124
- private readonly googleSignIn;
125
125
  private readonly openCodeSignIn;
126
126
  private readonly signInProbes;
127
127
  private readonly detectedSignIns;
@@ -136,18 +136,17 @@ export declare class AppServer {
136
136
  private readonly githubEvents;
137
137
  /** "@andorra-code" mentions on a task's PR (phase 3): the access check, the 👀 and the wake. */
138
138
  private readonly mentions;
139
- /** The App's bot login (`bot` from `GET /v1/github`, or `as` from a bot write), for the Auto-fix prompt. */
139
+ /** The App's bot login (`bot` from `GET /v1/github`, or `as` from a bot write), for review findings. */
140
140
  private githubBot?;
141
141
  private readonly pullRequestReader;
142
142
  private readonly sessionChanges;
143
- private readonly autoFixWakes;
144
143
  /** Wakes the PR tab's Fix with Agent armed: delivered as the person's request, not as a timer. */
145
144
  private readonly fixWakes;
146
145
  /** Wakes a mention of the App's bot on the task's PR armed: delivered as "Mentioned on GitHub", not as a timer. */
147
146
  private readonly mentionWakes;
148
147
  private readonly reviewWaiters;
149
148
  private readonly reviewWaitsStarting;
150
- /** The Andorra review loop's fixer wakes, beside Auto-fix's: delivered as "Andorra review", routed like Auto-fix's. */
149
+ /** The Andorra review loop's fixer wakes, routed to the node that took the pull request. */
151
150
  private readonly reviewWakes;
152
151
  /** Each review wait's run, when it started, and the review loop it watches (the one running when it started, or after). */
153
152
  private readonly reviewWaitRuns;
@@ -222,7 +221,9 @@ export declare class AppServer {
222
221
  private readonly titleReleases;
223
222
  private readonly titleAnswered;
224
223
  private readonly sessionTitles;
225
- private workGeneration;
224
+ /** Automatic titles waiting to be asked again, by session, after an attempt was refused, failed, or cut short. */
225
+ private readonly titleRetries;
226
+ private readonly draftGraphProbes;
226
227
  private readonly operations;
227
228
  private prepareTask?;
228
229
  private foreignEngineWatch?;
@@ -231,6 +232,8 @@ export declare class AppServer {
231
232
  private codeIntel?;
232
233
  private codeIntelOpening;
233
234
  private readonly engineLinks;
235
+ /** The telemetry lease in force when the current GitHub watch window began; its counts are reported only under that lease. */
236
+ private githubWatchLease;
234
237
  private readonly environmentOptions;
235
238
  private relay?;
236
239
  private environmentIds?;
@@ -242,6 +245,8 @@ export declare class AppServer {
242
245
  /** Bumped when the account changes, so an answer fetched for the previous account is never cached. */
243
246
  private accountGeneration;
244
247
  private closed;
248
+ private readonly antigravityStartups;
249
+ private readonly antigravitySessions;
245
250
  private emitsStopped;
246
251
  private readonly hosted;
247
252
  private hostedStarted;
@@ -283,6 +288,7 @@ export declare class AppServer {
283
288
  handle(line: string): Promise<void>;
284
289
  private dispatchLine;
285
290
  private write;
291
+ private antigravityRequest;
286
292
  private dispatch;
287
293
  private store;
288
294
  private listableWorkspace;
@@ -291,6 +297,7 @@ export declare class AppServer {
291
297
  private slotLock;
292
298
  private setConfig;
293
299
  private projectExtensionEntry;
300
+ private workspacePermissionEntry;
294
301
  private setProjectExtensionEntry;
295
302
  private extensionKind;
296
303
  private skillResources;
@@ -319,6 +326,22 @@ export declare class AppServer {
319
326
  private anthropicProviderAuth;
320
327
  private recordCodexEmail;
321
328
  private testProviderEndpoint;
329
+ private thinkingLevelTarget;
330
+ private thinkingLevelsView;
331
+ private getThinkingLevels;
332
+ /** Finds out which thinking levels a model accepts and saves them. An inconclusive answer saves nothing. */
333
+ private detectThinkingLevels;
334
+ private flushReasoningProbeQueue;
335
+ private setThinkingLevels;
336
+ /** The subscription usage windows of every provider whose client reports them, by provider id. */
337
+ private providerUsage;
338
+ /**
339
+ * Scores every configured model from published benchmarks (the average of three providers' general-purpose scores,
340
+ * at each thinking level they list) and saves the scores that routing chooses by
341
+ * (`efficiency.adaptiveRouting.scores`). A refresh that scores no model saves nothing.
342
+ */
343
+ private refreshRoutingScores;
344
+ private saveThinkingLevels;
322
345
  private operation;
323
346
  private accountStatus;
324
347
  private accountProfile;
@@ -358,12 +381,26 @@ export declare class AppServer {
358
381
  private compactSession;
359
382
  private saveFinalizedSession;
360
383
  private setSessionArchived;
384
+ /** Marks a task's completed turn reviewed, as Needs you's Mark Reviewed does: only the turn the lead was shown. */
385
+ private setSessionReviewed;
361
386
  /** Pins or unpins a task in the rail. The pin is rail-owned like a rename, so this window's own run may be pinned too: the run carries it forward when it saves. */
362
387
  private setSessionPinned;
388
+ /** Moves a task into another project folder: the rail lists it there, and its next run works there. */
389
+ private setSessionWorkspace;
363
390
  private deleteSession;
391
+ private beginRunTelemetry;
364
392
  private startRun;
365
393
  private resumeRun;
366
394
  private switchBranch;
395
+ /** Makes a writing task's worktree before its run starts; the same key returns the same worktree on a retry. */
396
+ private prepareTaskCheckout;
397
+ private sessionCheckoutState;
398
+ private refuseCheckoutChange;
399
+ /** Recreates a task's missing worktree from its branch, or takes the folder it moved to. */
400
+ private recoverSessionCheckout;
401
+ private inspectSessionCheckout;
402
+ /** Removes a task's worktree after the lead saw what it holds; the branch stays when it has commits nothing else has. */
403
+ private removeSessionCheckout;
367
404
  private assertRunning;
368
405
  private prepareRun;
369
406
  private graphForRun;
@@ -371,7 +408,22 @@ export declare class AppServer {
371
408
  private loadResumeGraph;
372
409
  private prepareRunValidated;
373
410
  private titleSessionFromPrompt;
411
+ /** Saves an automatic title under the same lock and guards a user rename takes. */
412
+ /** `saved`: the name landed. `busy`: a run owns the session — the title can land once it settles. `stale`: the record is gone, renamed, already carrying the name, or waiting on a failed final save that recovery owns. */
413
+ private saveSessionTitle;
414
+ /**
415
+ * Names a new task's branch from a model summary of the task (`task/fix-login-redirect-loop`), replacing the random
416
+ * id the start gave it. Runs once the run has answered once, beside the title work. Any failure keeps the random
417
+ * id: the branch name is a nicety, never worth a retry of its own.
418
+ */
419
+ private nameWorktreeBranch;
420
+ private nameWorktreeBranchTracked;
421
+ /** A title that never landed waits and asks again, so one busy moment does not leave the session with its prompt's first words. */
422
+ private scheduleTitleRetry;
423
+ private retrySessionTitle;
424
+ private runTitleRetry;
374
425
  private releaseTitleWaiter;
426
+ /** Abort title work for the session given, or for all: the request on the wire, and a retry that is still waiting is moved back, not dropped. */
375
427
  private cancelSessionTitles;
376
428
  private executeRun;
377
429
  private reasoningAdapter;
@@ -424,6 +476,9 @@ export declare class AppServer {
424
476
  private importGraphVisibilityMethod;
425
477
  private exportAgent;
426
478
  private getGraph;
479
+ private checkDraftGraphModels;
480
+ private graphModelWarning;
481
+ private graphProviderWarning;
427
482
  private selectGraph;
428
483
  private openEditor;
429
484
  private closeEditor;
@@ -451,10 +506,17 @@ export declare class AppServer {
451
506
  * (a person's own action) asks it regardless.
452
507
  */
453
508
  private listedEnvironmentIds;
509
+ private offlineEnvironmentLine;
454
510
  /** A call for a machine whose link is waiting for it to come back fails now instead of at its deadline. */
455
511
  private refuseWhileReconnecting;
456
512
  private hostOperation;
457
513
  private remoteEngineConnect;
514
+ /**
515
+ * Relayed work reaches only a machine that proved it asks before product telemetry and, for coding or policy
516
+ * calls, that it records policy acceptance. The proof is the capabilities its `whoami` named for this link; a
517
+ * machine that could not be asked is refused, never assumed capable.
518
+ */
519
+ private assertRemotePolicy;
458
520
  /** What the machine's `whoami` adds to its host description (grant, capabilities); undefined when it could not be read. */
459
521
  private machineIdentity;
460
522
  /** A reopen whose `whoami` failed asks again once the link is up, and reports the full host with another `reopened`. */
@@ -561,6 +623,8 @@ export declare class AppServer {
561
623
  private remoteOwnerRoots;
562
624
  private remoteOwnerBrowse;
563
625
  private remoteOwnerAddProject;
626
+ /** Asks a Cloud machine to clone a GitHub repository and register it; answered at once, and asked again while it clones. */
627
+ private remoteOwnerGitHubClone;
564
628
  private listProjects;
565
629
  private addProject;
566
630
  private removeProject;
@@ -574,6 +638,7 @@ export declare class AppServer {
574
638
  private listTimers;
575
639
  private emitSessionSkills;
576
640
  private updateSessionSkill;
641
+ private pullRequestForClient;
577
642
  private emitPullRequest;
578
643
  /**
579
644
  * The end of the review loop a wait watches: the loop running when the wait started, or the first one switched on
@@ -583,22 +648,13 @@ export declare class AppServer {
583
648
  /** A wait ended: the marker that held the review loop's round for it goes, unless a newer wait wrote its own. */
584
649
  private clearReviewWaiting;
585
650
  private awaitReview;
586
- /**
587
- * One read of Codex's signals on a waiting session's PR; answers how long until the next read.
588
- *
589
- * A sign-off on the head commit ends the wait as approved, unless a review comment is still to be handed
590
- * over: comments come first. Where Codex shows nothing at all for the head (no eyes, no review, no comment,
591
- * nobody asked yet), the next read comes after the bump delay, and if that one is as quiet the wait posts
592
- * "@codex review", once per head and only in a repository Codex is known to review.
593
- */
651
+ /** Polls GitHub only while the agent has an explicit wait. The record stores activity already reported. */
594
652
  private reviewWaitFromSignals;
595
653
  /**
596
654
  * One look at the record for a wait, in whichever engine process it runs: how the PR or the review loop ended, the
597
- * review loop's next round (taken from the record, so a round another process posted reaches this wait), Auto-fix's
598
- * comments, and the marker that tells the lease holder this run waits.
655
+ * review loop's next round (including one posted by another engine), and the marker that this run is waiting.
599
656
  */
600
657
  private reviewWaitFromRecord;
601
- private recordAutoFixDelivered;
602
658
  private emitSessionChanges;
603
659
  private attachPullRequest;
604
660
  /** How many turns a task's history holds, a running turn included, for the review loop's transcript lines. */
@@ -640,10 +696,10 @@ export declare class AppServer {
640
696
  * gh becomes `not-installed`, with the hint to install the App there: the service never says "not installed".
641
697
  */
642
698
  private githubStatus;
643
- /** Settings → GitHub → "Agent replies on pull requests": `bot` (as the App's bot) or `me` (through gh as the person). Per engine. */
699
+ /** Settings → GitHub → Agent replies on pull requests. */
644
700
  private githubSetAgentWrites;
645
701
  /**
646
- * Who an agent write on this session's PR goes to first, decided one way for the tool and the Auto-fix prompt:
702
+ * Who an agent write on this session's PR goes to first, decided one way for the tool and review findings:
647
703
  * the setting, and the PR's coverage as the event source (or, in another process, the lease holder) last
648
704
  * learned it. Events switched off here, or a PR the source has not looked at yet, are not covered.
649
705
  */
@@ -652,8 +708,8 @@ export declare class AppServer {
652
708
  private agentPullRequestWrite;
653
709
  /** The App's bot login: `GET /v1/github`'s `bot`, read once (bounded) and kept, or learned from a write's `as`. */
654
710
  private githubBotName;
655
- /** For the Auto-fix prompt: whether this session's replies post as the bot (the tool's own rule), and the bot's name. */
656
- private autoFixWrites;
711
+ /** For review findings: whether this session's replies post as the bot (the tool's own rule), and the bot's name. */
712
+ private reviewCommentWrites;
657
713
  /**
658
714
  * For a mention's prompt: who the agent's answer posts as on this session's PR (the pull_request tool's rule),
659
715
  * and the bot's login, which also names the mention (`@andorra-code`, `@andorra-code-dev` on staging).
@@ -665,6 +721,8 @@ export declare class AppServer {
665
721
  */
666
722
  private wakeForMention;
667
723
  private githubConnect;
724
+ /** The repositories the GitHub App can reach for this account's linked GitHub user: what a Cloud machine may clone. */
725
+ private githubRepositories;
668
726
  private githubDisconnect;
669
727
  /**
670
728
  * The PR tab's read of a task's pull request: branches, author, mergeability, description, commits,
@@ -698,7 +756,7 @@ export declare class AppServer {
698
756
  /** A merge-side write's answer, with the merge state read again so the tab shows what GitHub now holds. */
699
757
  private afterMergeWrite;
700
758
  /**
701
- * Merges the task's PR now, or sets it to merge when ready (GitHub's auto-merge), with the method and
759
+ * Merges the task's PR or adds it to the merge queue. A direct merge uses the method and
702
760
  * commit message the person chose, at the head commit they read. Deleting the head branch afterwards
703
761
  * is said separately: the merge has happened even when that fails.
704
762
  */
@@ -766,15 +824,13 @@ export declare class AppServer {
766
824
  * answer), and asks the watcher to catch up on a state it has not seen.
767
825
  */
768
826
  private syncPullRequestRecord;
769
- private cancelAutoFixWake;
770
827
  private pullRequestControl;
771
828
  /**
772
829
  * The Andorra review loop's fixer wake: straight into a run of the session waiting in await_review here (which then holds
773
- * the round), or as the next turn, routed like Auto-fix's to the node that took the PR.
830
+ * the round), or as the next turn at the node that took the PR.
774
831
  */
775
832
  private wakeForReview;
776
833
  private cancelReviewWake;
777
- private wakeForPullRequest;
778
834
  private emitTimers;
779
835
  private settleSessionTimers;
780
836
  private armTimerCheck;