@andorra-labs/code 0.1.14 → 0.1.15
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/acp-agent.d.ts +54 -0
- package/dist/src/acp-agent.js +991 -0
- package/dist/src/agent-execution.js +4 -0
- package/dist/src/agent-mcp-catalog.js +2 -0
- package/dist/src/agent-mcp.d.ts +2 -0
- package/dist/src/agent-mcp.js +84 -2
- package/dist/src/andorra/entry.js +21 -3
- package/dist/src/andorra/hosted.d.ts +3 -0
- package/dist/src/andorra/hosted.js +5 -1
- package/dist/src/andorra/notices.d.ts +10 -1
- package/dist/src/andorra/notices.js +25 -2
- package/dist/src/andorra/terminal.d.ts +2 -0
- package/dist/src/andorra/terminal.js +2 -2
- package/dist/src/app-server/protocol.d.ts +6 -2
- package/dist/src/app-server/protocol.js +1 -1
- package/dist/src/app-server/workspace.d.ts +1 -0
- package/dist/src/app-server/workspace.js +141 -10
- package/dist/src/app-server.d.ts +8 -0
- package/dist/src/app-server.js +87 -41
- package/dist/src/auth/AuthManager.js +4 -4
- package/dist/src/browser-bridge.d.ts +1 -0
- package/dist/src/browser-bridge.js +5 -2
- package/dist/src/browser-external-app.d.ts +27 -0
- package/dist/src/browser-external-app.js +60 -0
- package/dist/src/browser-panel-tool.d.ts +6 -0
- package/dist/src/browser-panel-tool.js +36 -0
- package/dist/src/browser-server.d.ts +5 -0
- package/dist/src/browser-server.js +27 -3
- package/dist/src/browser-view.d.ts +16 -0
- package/dist/src/browser-view.js +60 -2
- package/dist/src/bug-report.d.ts +81 -0
- package/dist/src/bug-report.js +235 -0
- package/dist/src/claude-provider.d.ts +2 -1
- package/dist/src/claude-provider.js +10 -8
- package/dist/src/cli-sign-in.d.ts +3 -1
- package/dist/src/cli-sign-in.js +4 -1
- package/dist/src/cli.js +164 -34
- package/dist/src/coding-tools.js +7 -7
- package/dist/src/command-screens.d.ts +9 -2
- package/dist/src/command-screens.js +161 -94
- package/dist/src/commands.d.ts +1 -1
- package/dist/src/commands.js +1 -0
- package/dist/src/completion-gates.d.ts +22 -0
- package/dist/src/completion-gates.js +11 -0
- package/dist/src/config.d.ts +5 -0
- package/dist/src/config.js +48 -0
- package/dist/src/google-provider.d.ts +31 -0
- package/dist/src/google-provider.js +153 -0
- package/dist/src/graph-health.js +1 -1
- package/dist/src/graph-manager-chat.js +6 -1
- package/dist/src/graph-sync.d.ts +1 -0
- package/dist/src/graph-sync.js +93 -34
- package/dist/src/graph-tool.d.ts +2 -0
- package/dist/src/graph-tool.js +2 -2
- package/dist/src/graph-ui/app.js +67 -8
- package/dist/src/graph-ui/edge-router.js +121 -53
- package/dist/src/graph-visibility.d.ts +31 -0
- package/dist/src/graph-visibility.js +102 -0
- package/dist/src/live-model.d.ts +24 -0
- package/dist/src/live-model.js +37 -0
- package/dist/src/managed-sign-in.d.ts +1 -0
- package/dist/src/managed-sign-in.js +13 -0
- package/dist/src/membership-errors.d.ts +2 -0
- package/dist/src/membership-errors.js +5 -1
- package/dist/src/membership.d.ts +3 -0
- package/dist/src/membership.js +19 -2
- package/dist/src/model-health-cache.js +1 -1
- package/dist/src/model-metadata.js +8 -1
- package/dist/src/paged-transcript.d.ts +2 -0
- package/dist/src/paged-transcript.js +16 -0
- package/dist/src/provider-connection.js +17 -0
- package/dist/src/provider-engine.d.ts +5 -0
- package/dist/src/provider-engine.js +3 -3
- package/dist/src/provider-import.js +3 -1
- package/dist/src/provider-settings.js +14 -2
- package/dist/src/providers.d.ts +16 -2
- package/dist/src/providers.js +36 -12
- package/dist/src/react-runtime.js +21 -5
- package/dist/src/read-document-tool.d.ts +2 -0
- package/dist/src/read-document-tool.js +6 -6
- package/dist/src/remote/engine-pool.js +26 -2
- package/dist/src/runtime-environment.d.ts +1 -0
- package/dist/src/runtime-environment.js +13 -0
- package/dist/src/save-lock.js +14 -7
- package/dist/src/session-title.d.ts +3 -0
- package/dist/src/session-title.js +5 -2
- package/dist/src/sign-in-detection.d.ts +1 -1
- package/dist/src/sign-in-detection.js +10 -3
- package/dist/src/sign-in-offer.js +1 -1
- package/dist/src/skill-commands.js +1 -1
- package/dist/src/skills/bundled/bug-report/SKILL.md +80 -0
- package/dist/src/skills/bundled/graph-manager/SKILL.md +9 -1
- package/dist/src/skills/bundled/graph-manager/errors.md +1 -0
- package/dist/src/skills/bundled/provenance.json +7 -2
- package/dist/src/skills/runtime-skills.js +1 -0
- package/dist/src/telemetry/uploader.d.ts +7 -1
- package/dist/src/telemetry/uploader.js +11 -2
- package/dist/src/terminal-links.d.ts +16 -0
- package/dist/src/terminal-links.js +113 -0
- package/dist/src/terminal-ui.d.ts +8 -1
- package/dist/src/terminal-ui.js +40 -14
- package/dist/src/tool-catalog.js +1 -1
- package/dist/src/trajectory.js +6 -1
- package/dist/src/transcript.d.ts +2 -0
- package/dist/src/transcript.js +2 -1
- package/dist/src/types.d.ts +2 -0
- package/package.json +2 -1
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ContentBlock, ToolCallContent, ToolKind } from '@agentclientprotocol/sdk';
|
|
2
|
+
import { type AppServerOptions } from './app-server.js';
|
|
3
|
+
import type { FileDiff } from './file-diff.js';
|
|
4
|
+
/** The one sign-in the agent offers: Andorra's own browser OAuth flow, run by the agent (ACP "Agent Auth"). */
|
|
5
|
+
export declare const ACP_AUTH_METHOD_ID = "andorra-login";
|
|
6
|
+
/** Session configuration option ids. Clients read the category, not the id. */
|
|
7
|
+
export declare const ACP_MODEL_OPTION = "model";
|
|
8
|
+
export declare const ACP_EFFORT_OPTION = "reasoning_effort";
|
|
9
|
+
export interface AcpAgentOptions extends AppServerOptions {
|
|
10
|
+
version?: string;
|
|
11
|
+
input?: NodeJS.ReadableStream;
|
|
12
|
+
/** Where JSON-RPC goes. Nothing else may write to it. */
|
|
13
|
+
protocolOutput?: NodeJS.WritableStream;
|
|
14
|
+
/** How to start an extra engine for concurrent prompts. Defaults to this CLI's `app-server --stdio`. */
|
|
15
|
+
engineCommand?: string[];
|
|
16
|
+
}
|
|
17
|
+
export declare function promptText(blocks: readonly ContentBlock[]): string;
|
|
18
|
+
export declare function toolKind(name: string): ToolKind;
|
|
19
|
+
/** A short, readable title for a tool call: what it reads, changes, searches for or runs. */
|
|
20
|
+
export declare function toolTitle(name: string, input: unknown, cwd: string): string;
|
|
21
|
+
/** A file's text for a diff: null when it does not exist, undefined when it cannot be shown whole. */
|
|
22
|
+
export type FileSnapshot = string | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* An edit as ACP content. With the file's own text from before and after the edit, and both agreeing with the
|
|
25
|
+
* engine's line diff, one ACP diff carrying the two texts exactly (line endings included), which is what the
|
|
26
|
+
* protocol's diff means. Otherwise (a large file, a clipped diff, a snapshot that does not match) the engine's hunks
|
|
27
|
+
* as a text diff with their line positions. Text is never reconstructed from the diff's display lines.
|
|
28
|
+
*/
|
|
29
|
+
export declare function editContent(path: string, diff: FileDiff, before: FileSnapshot, after: FileSnapshot): ToolCallContent[];
|
|
30
|
+
interface ProviderView {
|
|
31
|
+
id: string;
|
|
32
|
+
type: string;
|
|
33
|
+
model: string;
|
|
34
|
+
models?: string[];
|
|
35
|
+
modelNames?: Record<string, string>;
|
|
36
|
+
label?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
reasoningEffort?: string;
|
|
39
|
+
}
|
|
40
|
+
interface ModelPair {
|
|
41
|
+
provider: string;
|
|
42
|
+
model: string;
|
|
43
|
+
}
|
|
44
|
+
interface Catalog {
|
|
45
|
+
providers: ProviderView[];
|
|
46
|
+
active?: string;
|
|
47
|
+
}
|
|
48
|
+
/** A model option value: the provider id (no slashes), a slash, then the model id as the provider spells it. */
|
|
49
|
+
export declare function modelValue(pair: ModelPair): string;
|
|
50
|
+
/** Find the model a client picked: a listed value, `provider/model` for a configured provider, or a model id one provider lists. */
|
|
51
|
+
export declare function resolveModelChoice(value: string, catalog: Catalog): ModelPair | undefined;
|
|
52
|
+
/** Serve Andorra Code as an ACP agent: JSON-RPC over stdio, one message per line. */
|
|
53
|
+
export declare function runAcpAgent(options?: AcpAgentOptions): Promise<number>;
|
|
54
|
+
export {};
|