@andorra-labs/code 0.1.13 → 0.1.14
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.
- package/dist/src/account-presentation.js +4 -1
- package/dist/src/agent-execution.js +300 -140
- package/dist/src/agent-mcp.js +2 -2
- package/dist/src/andorra/endpoint.d.ts +7 -0
- package/dist/src/andorra/endpoint.js +46 -0
- package/dist/src/andorra/entry.d.ts +21 -0
- package/dist/src/andorra/entry.js +100 -0
- package/dist/src/andorra/errors.d.ts +2 -0
- package/dist/src/andorra/errors.js +39 -0
- package/dist/src/andorra/hosted.d.ts +52 -0
- package/dist/src/andorra/hosted.js +126 -0
- package/dist/src/andorra/monitor.d.ts +151 -0
- package/dist/src/andorra/monitor.js +393 -0
- package/dist/src/andorra/notices.d.ts +7 -0
- package/dist/src/andorra/notices.js +15 -0
- package/dist/src/andorra/opt-in.d.ts +58 -0
- package/dist/src/andorra/opt-in.js +112 -0
- package/dist/src/andorra/request-watch.d.ts +6 -0
- package/dist/src/andorra/request-watch.js +10 -0
- package/dist/src/andorra/state.d.ts +86 -0
- package/dist/src/andorra/state.js +238 -0
- package/dist/src/andorra/terminal.d.ts +68 -0
- package/dist/src/andorra/terminal.js +125 -0
- package/dist/src/andorra/usage-format.d.ts +9 -0
- package/dist/src/andorra/usage-format.js +19 -0
- package/dist/src/anthropic-credentials.js +9 -1
- package/dist/src/app-server/protocol.d.ts +6 -2
- package/dist/src/app-server/protocol.js +1 -1
- package/dist/src/app-server.d.ts +27 -0
- package/dist/src/app-server.js +292 -85
- package/dist/src/auth/AuthManager.d.ts +9 -0
- package/dist/src/auth/AuthManager.js +161 -21
- package/dist/src/auth/deployment.d.ts +1 -0
- package/dist/src/auth/deployment.js +1 -0
- package/dist/src/auth/index.d.ts +1 -1
- package/dist/src/auth/index.js +1 -1
- package/dist/src/auth/store.d.ts +26 -0
- package/dist/src/auth/store.js +34 -1
- package/dist/src/browser-runner.js +1 -1
- package/dist/src/browser-stealth.d.ts +19 -1
- package/dist/src/browser-stealth.js +23 -3
- package/dist/src/browser-ui/tokens.css +4 -4
- package/dist/src/browser-view.d.ts +65 -0
- package/dist/src/browser-view.js +229 -16
- package/dist/src/cli.js +43 -26
- package/dist/src/command-screens.d.ts +17 -1
- package/dist/src/command-screens.js +192 -21
- package/dist/src/commands.d.ts +7 -1
- package/dist/src/commands.js +78 -27
- package/dist/src/config.d.ts +6 -1
- package/dist/src/config.js +86 -3
- package/dist/src/dashboard-view.d.ts +2 -0
- package/dist/src/dashboard-view.js +11 -2
- package/dist/src/decision/PreparedSteps.js +1 -1
- package/dist/src/decision/applyToolMenu.js +1 -1
- package/dist/src/decision/toolFamilies.js +1 -1
- package/dist/src/decision/types.d.ts +1 -0
- package/dist/src/graph-health.d.ts +11 -0
- package/dist/src/graph-health.js +36 -4
- package/dist/src/graph-manager-chat.d.ts +33 -0
- package/dist/src/graph-manager-chat.js +159 -5
- package/dist/src/graph-runner.js +27 -0
- package/dist/src/graph-selection.js +2 -1
- package/dist/src/graph-ui/app.js +25 -2
- package/dist/src/graph-ui/manager.js +40 -5
- package/dist/src/graph-ui/style.css +5 -2
- package/dist/src/graph-ui/tokens.css +4 -4
- package/dist/src/graphs.js +1 -3
- package/dist/src/hardened-runtime.js +1 -1
- package/dist/src/membership-errors.js +1 -1
- package/dist/src/membership.d.ts +10 -2
- package/dist/src/membership.js +20 -6
- package/dist/src/model-context-windows.d.ts +2 -0
- package/dist/src/model-context-windows.js +24 -0
- package/dist/src/model-health-cache.js +1 -1
- package/dist/src/model-metadata.d.ts +1 -0
- package/dist/src/model-metadata.js +40 -3
- package/dist/src/palette.d.ts +1 -0
- package/dist/src/palette.js +1 -1
- package/dist/src/permissions.js +17 -4
- package/dist/src/provider-connection.js +15 -0
- package/dist/src/provider-settings.d.ts +16 -1
- package/dist/src/provider-settings.js +36 -20
- package/dist/src/providers.d.ts +14 -2
- package/dist/src/providers.js +69 -11
- package/dist/src/react-runtime.js +12 -7
- package/dist/src/remote/engine-pool.js +5 -4
- package/dist/src/run-control.d.ts +2 -2
- package/dist/src/run-control.js +9 -6
- package/dist/src/runtime.d.ts +2 -0
- package/dist/src/runtime.js +2 -1
- package/dist/src/sessions.d.ts +1 -0
- package/dist/src/sessions.js +4 -2
- package/dist/src/skills/bundled/graph-manager/errors.md +1 -1
- package/dist/src/skills/bundled/provenance.json +738 -738
- package/dist/src/subagent-run.d.ts +2 -0
- package/dist/src/subagent-run.js +14 -3
- package/dist/src/telemetry/schema.d.ts +1 -1
- package/dist/src/telemetry/schema.js +2 -2
- package/dist/src/terminal-ui.d.ts +21 -0
- package/dist/src/terminal-ui.js +73 -10
- package/dist/src/transcript.js +3 -0
- package/dist/src/types.d.ts +3 -0
- package/dist/src/workspace-instructions.js +1 -1
- package/package.json +12 -1
package/dist/src/app-server.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { type GhRunner } from './pull-requests.js';
|
|
|
13
13
|
import { type Completion, type RunResult } from './runtime.js';
|
|
14
14
|
import { CodeIntelligenceManager } from './code-intelligence/CodeIntelligenceManager.js';
|
|
15
15
|
import { type AppServerErrorCode } from './app-server/protocol.js';
|
|
16
|
+
import { type HostedMonitorOptions } from './andorra/monitor.js';
|
|
16
17
|
declare class AppServerError extends Error {
|
|
17
18
|
readonly code: AppServerErrorCode;
|
|
18
19
|
constructor(code: AppServerErrorCode, message: string);
|
|
@@ -43,6 +44,8 @@ export interface AppServerOptions {
|
|
|
43
44
|
signInProbes?: Partial<SignInProbes>;
|
|
44
45
|
gh?: GhRunner;
|
|
45
46
|
pullRequestPollMs?: number;
|
|
47
|
+
hostedCheck?: HostedMonitorOptions['check'];
|
|
48
|
+
hostedNow?: () => number;
|
|
46
49
|
}
|
|
47
50
|
export declare class AppServer {
|
|
48
51
|
private automationCheck?;
|
|
@@ -104,6 +107,7 @@ export declare class AppServer {
|
|
|
104
107
|
private readonly slotWrites;
|
|
105
108
|
private runTask?;
|
|
106
109
|
private readonly titleReleases;
|
|
110
|
+
private readonly titleAnswered;
|
|
107
111
|
private readonly sessionTitles;
|
|
108
112
|
private workGeneration;
|
|
109
113
|
private readonly operations;
|
|
@@ -119,6 +123,8 @@ export declare class AppServer {
|
|
|
119
123
|
private remoteOps;
|
|
120
124
|
private closed;
|
|
121
125
|
private emitsStopped;
|
|
126
|
+
private readonly hosted;
|
|
127
|
+
private hostedStarted;
|
|
122
128
|
private telemetrySettle;
|
|
123
129
|
onStop?: () => void;
|
|
124
130
|
constructor(options: AppServerOptions & {
|
|
@@ -132,6 +138,23 @@ export declare class AppServer {
|
|
|
132
138
|
private emit;
|
|
133
139
|
private log;
|
|
134
140
|
ready(): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Keeps the Andorra entry current from an enabled answer. A missing entry is created only when the user added
|
|
143
|
+
* Andorra: that decision is read inside this engine's queue of config writes and inside the cross-process
|
|
144
|
+
* config lock, so an add or a removal recorded just before, here or in another process, is the one that counts.
|
|
145
|
+
*/
|
|
146
|
+
private applyHostedEntry;
|
|
147
|
+
/**
|
|
148
|
+
* What clients are told about Andorra: its availability, whether it can be added, and, while it is offered and
|
|
149
|
+
* the user has not removed it, the entry to LIST: a provider view built from the hosted answer that is not in
|
|
150
|
+
* the saved config (`listed`). A client shows it as an ordinary provider and saves it with `andorra.add` the
|
|
151
|
+
* first time the user picks it. `usage`, when known, is what to show for the hosted models (HostedMonitor.usage).
|
|
152
|
+
*/
|
|
153
|
+
private hostedStatus;
|
|
154
|
+
/** The user removed the listed, never-saved Andorra: it is no longer listed (Add Provider still offers it). */
|
|
155
|
+
private hideListedEntry;
|
|
156
|
+
/** Saves the Andorra provider because the user asked for it; with `select`, it becomes the active provider in the same write. */
|
|
157
|
+
private addHostedEntry;
|
|
135
158
|
private reapSessions;
|
|
136
159
|
private autoArchiveSessions;
|
|
137
160
|
private currentRun;
|
|
@@ -178,6 +201,8 @@ export declare class AppServer {
|
|
|
178
201
|
private sessionStats;
|
|
179
202
|
private signIn;
|
|
180
203
|
private signOut;
|
|
204
|
+
/** Signing in or out changes what Andorra offers this account: ask now instead of at the next interval. */
|
|
205
|
+
private checkHostedAfterAccountChange;
|
|
181
206
|
private publishAccount;
|
|
182
207
|
private trajectoryIdOf;
|
|
183
208
|
private readSession;
|
|
@@ -194,6 +219,7 @@ export declare class AppServer {
|
|
|
194
219
|
private projectIdFor;
|
|
195
220
|
private createSession;
|
|
196
221
|
private renameSession;
|
|
222
|
+
private setSessionJev;
|
|
197
223
|
private setSessionGoal;
|
|
198
224
|
private emitSessionGoal;
|
|
199
225
|
private compactSession;
|
|
@@ -222,6 +248,7 @@ export declare class AppServer {
|
|
|
222
248
|
private approvePlan;
|
|
223
249
|
private saveRunPermissions;
|
|
224
250
|
private syncCodeIntelPermissions;
|
|
251
|
+
/** `sessionId`: the session whose run will talk to this adapter; a run passes its own, known before `this.run` is set. */
|
|
225
252
|
private resolveModel;
|
|
226
253
|
private analyticsConfigView;
|
|
227
254
|
private resolveProvider;
|