@andorra-labs/code 0.1.10 → 0.1.12
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/README.md +31 -205
- package/THIRD_PARTY_NOTICES.md +30 -0
- package/dist/src/agent-execution.js +50 -2
- package/dist/src/agent-mcp.js +5 -0
- package/dist/src/app-server/protocol.d.ts +9 -1
- package/dist/src/app-server/protocol.js +1 -1
- package/dist/src/app-server.d.ts +49 -1
- package/dist/src/app-server.js +353 -64
- package/dist/src/automation-service.js +1 -1
- package/dist/src/browser-panel-tool.d.ts +24 -3
- package/dist/src/browser-panel-tool.js +80 -6
- package/dist/src/browser-runner.js +3 -1
- package/dist/src/browser-session.d.ts +8 -0
- package/dist/src/browser-session.js +27 -1
- package/dist/src/browser-ui/app.js +237 -15
- package/dist/src/browser-ui/index.html +5 -5
- package/dist/src/browser-ui/style.css +110 -65
- package/dist/src/browser-ui/tokens.css +27 -26
- package/dist/src/browser-view.d.ts +16 -0
- package/dist/src/browser-view.js +38 -2
- package/dist/src/claude-provider.js +15 -2
- package/dist/src/cli.d.ts +2 -1
- package/dist/src/cli.js +175 -43
- package/dist/src/code-intelligence/CodeIntelligenceManager.js +1 -1
- package/dist/src/codex-provider.js +6 -3
- package/dist/src/coding-tools.d.ts +26 -1
- package/dist/src/coding-tools.js +104 -33
- package/dist/src/command-screens.js +1 -1
- package/dist/src/commands.js +1 -1
- package/dist/src/completion-gates.d.ts +42 -7
- package/dist/src/completion-gates.js +55 -9
- package/dist/src/completion.d.ts +51 -1
- package/dist/src/completion.js +164 -5
- package/dist/src/config.d.ts +1 -0
- package/dist/src/config.js +2 -0
- package/dist/src/dashboard-view.js +2 -2
- package/dist/src/deadline.js +4 -0
- package/dist/src/decision/PreparedSteps.js +1 -1
- package/dist/src/delegation-changes.js +19 -2
- package/dist/src/diff-preview.d.ts +1 -0
- package/dist/src/diff-preview.js +12 -3
- package/dist/src/engine-streams.d.ts +22 -0
- package/dist/src/engine-streams.js +16 -0
- package/dist/src/extensions.js +17 -6
- package/dist/src/file-read-key.d.ts +8 -0
- package/dist/src/file-read-key.js +12 -0
- package/dist/src/graph-editor-session.js +2 -1
- package/dist/src/graph-health.d.ts +21 -0
- package/dist/src/graph-health.js +46 -0
- package/dist/src/graph-manager-chat.d.ts +52 -3
- package/dist/src/graph-manager-chat.js +62 -17
- package/dist/src/graph-runner.js +62 -5
- package/dist/src/graph-server.d.ts +1 -1
- package/dist/src/graph-server.js +48 -27
- package/dist/src/graph-sync.d.ts +8 -0
- package/dist/src/graph-sync.js +54 -3
- package/dist/src/graph-tool.js +1 -1
- package/dist/src/graph-ui/app.js +362 -123
- package/dist/src/graph-ui/controls.css +95 -22
- package/dist/src/graph-ui/controls.js +31 -1
- package/dist/src/graph-ui/embed.js +62 -13
- package/dist/src/graph-ui/icons.js +7 -0
- package/dist/src/graph-ui/index.html +4 -4
- package/dist/src/graph-ui/manager-state.js +143 -5
- package/dist/src/graph-ui/manager.css +21 -20
- package/dist/src/graph-ui/manager.js +337 -75
- package/dist/src/graph-ui/model-picker.js +279 -0
- package/dist/src/graph-ui/provider-glyphs/alibaba-cloud.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/anthropic.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/aws-bedrock.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/claude.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/deepseek.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/fireworks.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/kimi.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/minimax.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/openai.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/opencode.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/openrouter.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/xai.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/xiaomi-mimo.png +0 -0
- package/dist/src/graph-ui/provider-glyphs/zai.png +0 -0
- package/dist/src/graph-ui/skill-picker.js +1 -1
- package/dist/src/graph-ui/studio-canvas.js +8 -8
- package/dist/src/graph-ui/studio.css +18 -15
- package/dist/src/graph-ui/studio.js +92 -35
- package/dist/src/graph-ui/style.css +122 -79
- package/dist/src/graph-ui/theme.js +2 -2
- package/dist/src/graph-ui/tokens.css +33 -29
- package/dist/src/graphs.d.ts +5 -2
- package/dist/src/graphs.js +10 -9
- package/dist/src/mcp.d.ts +52 -14
- package/dist/src/mcp.js +285 -128
- package/dist/src/membership-errors.d.ts +7 -1
- package/dist/src/membership-errors.js +9 -3
- package/dist/src/memory/ProjectMemory.d.ts +77 -0
- package/dist/src/memory/ProjectMemory.js +310 -0
- package/dist/src/memory/index.d.ts +1 -0
- package/dist/src/memory/index.js +1 -0
- package/dist/src/opencode-provider.js +5 -6
- package/dist/src/package-name.d.ts +3 -0
- package/dist/src/package-name.js +3 -0
- package/dist/src/provider-engine.js +2 -2
- package/dist/src/pull-requests.d.ts +42 -6
- package/dist/src/pull-requests.js +11 -3
- package/dist/src/qa/runtime/PtyManager.js +2 -1
- package/dist/src/react-runtime.js +137 -22
- package/dist/src/read-document-doc.d.ts +20 -0
- package/dist/src/read-document-doc.js +524 -0
- package/dist/src/read-document-docx.d.ts +21 -0
- package/dist/src/read-document-docx.js +584 -0
- package/dist/src/read-document-text.d.ts +29 -0
- package/dist/src/read-document-text.js +67 -0
- package/dist/src/read-document-tool.d.ts +48 -0
- package/dist/src/read-document-tool.js +162 -0
- package/dist/src/read-document.d.ts +78 -0
- package/dist/src/read-document.js +353 -0
- package/dist/src/read-image.d.ts +29 -2
- package/dist/src/read-image.js +42 -17
- package/dist/src/remote/cert.d.ts +1 -1
- package/dist/src/remote/cert.js +2 -7
- package/dist/src/remote/client.js +1 -1
- package/dist/src/remote/pem.d.ts +6 -0
- package/dist/src/remote/pem.js +11 -0
- package/dist/src/run-records.js +49 -10
- package/dist/src/runtime.d.ts +21 -0
- package/dist/src/runtime.js +10 -1
- package/dist/src/session-changes.d.ts +6 -1
- package/dist/src/session-changes.js +13 -5
- package/dist/src/sessions.d.ts +3 -1
- package/dist/src/sessions.js +5 -3
- package/dist/src/side-panel.d.ts +6 -1
- package/dist/src/side-panel.js +12 -10
- package/dist/src/sign-in-detection.d.ts +82 -0
- package/dist/src/sign-in-detection.js +197 -0
- package/dist/src/sign-in-offer.d.ts +35 -0
- package/dist/src/sign-in-offer.js +116 -0
- package/dist/src/skills/bundled/create-skill/SKILL.md +1 -1
- package/dist/src/skills/bundled/diagram/SKILL.md +1 -1
- package/dist/src/skills/bundled/graph-manager/SKILL.md +59 -7
- package/dist/src/skills/bundled/graph-manager/patterns.md +27 -0
- package/dist/src/skills/bundled/provenance.json +4 -4
- package/dist/src/skills/runtime-skills.d.ts +6 -0
- package/dist/src/skills/runtime-skills.js +16 -3
- package/dist/src/stall-recovery.d.ts +6 -2
- package/dist/src/stall-recovery.js +7 -2
- package/dist/src/stray-files.d.ts +14 -0
- package/dist/src/stray-files.js +81 -0
- package/dist/src/subagent-run.js +6 -1
- package/dist/src/terminal-ui.d.ts +1 -1
- package/dist/src/terminal-ui.js +11 -5
- package/dist/src/time-limit.d.ts +53 -0
- package/dist/src/time-limit.js +79 -0
- package/dist/src/tool-activity.js +1 -1
- package/dist/src/tool-schema-compatibility.d.ts +7 -2
- package/dist/src/tool-schema-compatibility.js +8 -4
- package/dist/src/tools.js +92 -7
- package/dist/src/transcript.d.ts +5 -0
- package/dist/src/transcript.js +12 -4
- package/dist/src/types.d.ts +8 -0
- package/dist/src/untracked-file-removal.d.ts +3 -0
- package/dist/src/untracked-file-removal.js +125 -0
- package/dist/src/update-check.js +1 -1
- package/dist/src/update.d.ts +11 -1
- package/dist/src/update.js +27 -5
- package/dist/src/usage-analytics.d.ts +3 -1
- package/dist/src/usage-analytics.js +16 -2
- package/dist/src/workspace-git-metadata.d.ts +15 -0
- package/dist/src/workspace-git-metadata.js +50 -1
- package/dist/src/workspace-instructions.js +1 -1
- package/package.json +6 -26
- package/docs/README.md +0 -36
- package/docs/agents/README.md +0 -62
- package/docs/agents/install-for-agents.md +0 -56
- package/docs/agents/mcp-server.md +0 -212
- package/docs/agents/subagent-mode.md +0 -149
- package/docs/concepts/README.md +0 -47
- package/docs/concepts/jev-actionable-routing.md +0 -113
- package/docs/concepts/jev-decision-thresholds.md +0 -412
- package/docs/concepts/jev-efficiency.md +0 -217
- package/docs/concepts/jev-eval-2026-11-01.md +0 -78
- package/docs/concepts/limits.md +0 -52
- package/docs/concepts/memory.md +0 -10
- package/docs/concepts/security.md +0 -50
- package/docs/concepts/workspace-instructions.md +0 -29
- package/docs/getting-started/README.md +0 -82
- package/docs/getting-started/accounts.md +0 -78
- package/docs/getting-started/configure-providers.md +0 -132
- package/docs/guides/README.md +0 -13
- package/docs/guides/browser.md +0 -39
- package/docs/guides/desktop-app.md +0 -414
- package/docs/guides/extensions.md +0 -102
- package/docs/guides/graph-builder.md +0 -116
- package/docs/guides/headless.md +0 -46
- package/docs/guides/tui.md +0 -75
- package/docs/guides/update.md +0 -70
- package/docs/guides/web-search.md +0 -51
- package/docs/guides/windows-code-signing.md +0 -319
- package/docs/llms.txt +0 -45
- package/docs/reference/README.md +0 -7
- package/docs/reference/cli.md +0 -76
- package/docs/reference/config.md +0 -91
- package/docs/reference/slash-commands.md +0 -59
- package/docs/superpowers/plans/2026-11-01-claude-console-sign-in.md +0 -111
- package/docs/superpowers/plans/2026-11-01-jev-node-opt-in.md +0 -910
- package/docs/superpowers/plans/2026-11-02-workflow-pane.md +0 -398
- package/docs/superpowers/plans/2026-11-06-graph-soft-delete.md +0 -125
- package/docs/superpowers/plans/2026-11-09-orchestrator-delegation.md +0 -295
- package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +0 -203
- package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +0 -79
- package/docs/superpowers/specs/2026-10-31-work-line-summary-design.md +0 -50
- package/docs/superpowers/specs/2026-11-01-claude-console-sign-in-design.md +0 -176
- package/docs/superpowers/specs/2026-11-01-jev-node-opt-in-design.md +0 -164
- package/docs/superpowers/specs/2026-11-01-pr-section-design.md +0 -111
- package/docs/superpowers/specs/2026-11-02-workflow-pane-design.md +0 -130
- package/docs/superpowers/specs/2026-11-06-bundled-skills-design.md +0 -206
- package/docs/superpowers/specs/2026-11-09-orchestrator-delegation-design.md +0 -291
- package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +0 -182
- package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +0 -156
- package/scripts/jev-efficiency-eval.mjs +0 -187
- package/scripts/jev-efficiency-live.mjs +0 -193
- package/scripts/zcode-engine-replay.mjs +0 -223
- package/tests/agent-centric-mcp-test-plan.md +0 -208
- package/tests/analytics-settings-test-plan.md +0 -165
- package/tests/browser-cli-smoke.mjs +0 -276
- package/tests/browser-test-plan.md +0 -280
- package/tests/chat-side-panel-test-plan.md +0 -309
- package/tests/decision-engine-test-plan.md +0 -163
- package/tests/default-active-jev-test-plan.md +0 -85
- package/tests/harness-extensions-test-plan.md +0 -113
- package/tests/jev-all-decisions-test-plan.md +0 -156
- package/tests/jev-efficiency/criteria.json +0 -158
- package/tests/jev-efficiency/workloads.mjs +0 -242
- package/tests/jev-efficiency-test-plan.md +0 -198
- package/tests/permissions-sandbox-probe.mjs +0 -74
- package/tests/permissions-test-plan.md +0 -191
- package/tests/product-telemetry-test-plan.md +0 -536
- package/tests/thinking-stream-preview-test-plan.md +0 -136
- package/tests/zcode-react-engine-test-plan.md +0 -396
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
# Windows code signing
|
|
2
|
-
|
|
3
|
-
## Public release notes
|
|
4
|
-
|
|
5
|
-
The update manifest's `notes` field and the Desktop Release workflow's `release_notes` input are
|
|
6
|
-
displayed to customers. Describe user-visible changes there; do not include private commit IDs,
|
|
7
|
-
branch names, checkout paths, or build provenance. Keep source and signing evidence in the private
|
|
8
|
-
pull request and QA records. A concise default is "A new version of Andorra Code is available."
|
|
9
|
-
|
|
10
|
-
Correcting notes on a published version changes only the manifest's `notes` field. Preserve the
|
|
11
|
-
version, publication date, platform URLs, and updater signatures; never replace a published
|
|
12
|
-
installer under the same version. Use a conditional write against the current manifest ETag and
|
|
13
|
-
invalidate `/desktop/latest.json` after the write.
|
|
14
|
-
|
|
15
|
-
## Release versions and the CLI prerequisite
|
|
16
|
-
|
|
17
|
-
The GUI and the CLI are released together and must carry the same version. Before building a new
|
|
18
|
-
installer, bump the root and desktop `package.json` versions and their lockfile package entries,
|
|
19
|
-
plus Tauri's `tauri.conf.json`, `Cargo.toml` and the application entry in `Cargo.lock`, to the
|
|
20
|
-
same new version.
|
|
21
|
-
|
|
22
|
-
Publish `@andorra-labs/code@<version>` to npm **before** the desktop release. The installer carries
|
|
23
|
-
no engine: the Windows installer runs `npm install -g @andorra-labs/code@<version>`, and every
|
|
24
|
-
platform's window refuses to start a CLI from another version. The Desktop Release workflow's
|
|
25
|
-
Validate job fails when that version is not on npm. An explicit engine path or `ANDORRA_CLI`
|
|
26
|
-
remains a user-managed override that is not version-checked.
|
|
27
|
-
|
|
28
|
-
The desktop bundles carry two independent signatures. They answer different questions and neither
|
|
29
|
-
replaces the other.
|
|
30
|
-
|
|
31
|
-
| Signature | Produced by | Answers | Key material |
|
|
32
|
-
| --- | --- | --- | --- |
|
|
33
|
-
| Authenticode | Azure Artifact Signing (formerly Azure Trusted Signing), through `signtool.exe` | Windows SmartScreen, the UAC publisher name, and "Properties → Digital Signatures" | None in the repository; the service issues a three-day certificate per request |
|
|
34
|
-
| minisign | Tauri, at bundle time | "Is this update file the one the release produced?" for the in-app updater | `TAURI_SIGNING_PRIVATE_KEY`, a repository secret |
|
|
35
|
-
|
|
36
|
-
This guide covers the Authenticode signature. The updater signature is configured in
|
|
37
|
-
`.github/workflows/desktop-release.yml`.
|
|
38
|
-
|
|
39
|
-
## How the build signs
|
|
40
|
-
|
|
41
|
-
`desktop/src-tauri/tauri.conf.json` names the signing command:
|
|
42
|
-
|
|
43
|
-
```json
|
|
44
|
-
"bundle": {
|
|
45
|
-
"windows": {
|
|
46
|
-
"signCommand": { "cmd": "node", "args": ["../scripts/sign-windows.mjs", "%1"] }
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Tauri replaces `%1` with the file to sign and runs the command from `desktop/src-tauri/`, not from
|
|
52
|
-
`desktop/`. That is why the script path starts with `../`, and why a path relative to `desktop/`
|
|
53
|
-
fails the build with the unhelpful message `failed to run node`: the bundler reports a non-zero
|
|
54
|
-
sign command this way and discards what the command printed. Run the command by hand (or
|
|
55
|
-
`npm run sign:check`) to see the real error.
|
|
56
|
-
|
|
57
|
-
Tauri invokes the command for every PE file it puts on disk:
|
|
58
|
-
|
|
59
|
-
- the application executable (`target/release/andorra-desktop.exe`),
|
|
60
|
-
- the NSIS plugin DLLs under `target/release/nsis/<arch>/Plugins/`,
|
|
61
|
-
- the uninstaller it generates at build time (a `.tmp` file in `%TEMP%`, through the
|
|
62
|
-
`!uninstfinalize` hook in the vendored `nsis-template.nsi`),
|
|
63
|
-
- the final `setup.exe`.
|
|
64
|
-
|
|
65
|
-
The vendored hook carries the `= 0` comparison (`!uninstfinalize '...' = 0`) because NSIS
|
|
66
|
-
otherwise ignores the finalize command's exit code, which would let a failed uninstaller
|
|
67
|
-
signature produce a bundle that passes every later check while shipping an unsigned
|
|
68
|
-
uninstaller. With the comparison, a non-zero exit aborts `makensis` and the bundle fails.
|
|
69
|
-
|
|
70
|
-
The script imports only Node builtins, so a bundling job still installs nothing from the
|
|
71
|
-
application's lockfile.
|
|
72
|
-
|
|
73
|
-
`desktop/scripts/sign-windows.mjs` reads its configuration from the environment, writes a
|
|
74
|
-
`metadata.json` into a temporary directory, calls `signtool.exe` with the Artifact Signing dlib, and
|
|
75
|
-
deletes the metadata file afterwards. No account name, endpoint, or credential is written to the
|
|
76
|
-
repository.
|
|
77
|
-
|
|
78
|
-
### Environment
|
|
79
|
-
|
|
80
|
-
| Variable | Required | Meaning |
|
|
81
|
-
| --- | --- | --- |
|
|
82
|
-
| `ANDORRA_SIGNING_ENDPOINT` | yes | `https://<region>.codesigning.azure.net` for the account's region |
|
|
83
|
-
| `ANDORRA_SIGNING_ACCOUNT` | yes | Artifact Signing account name |
|
|
84
|
-
| `ANDORRA_SIGNING_PROFILE` | yes | certificate profile name |
|
|
85
|
-
| `ANDORRA_SIGNING_REQUIRED` | releases only | `1` turns a skipped signature into a failed build |
|
|
86
|
-
| `ANDORRA_SIGNING_CORRELATION_ID` | no | opaque value recorded on the signing request |
|
|
87
|
-
| `ANDORRA_SIGNING_DESCRIPTION` | no | Authenticode description, shown in the UAC prompt; default `Andorra Code` |
|
|
88
|
-
| `ANDORRA_SIGNING_DEBUG` | no | `1` passes `/debug` to signtool |
|
|
89
|
-
| `ANDORRA_SIGNTOOL` | no | explicit `signtool.exe` |
|
|
90
|
-
| `ANDORRA_SIGNING_DLIB` | no | explicit `Azure.CodeSigning.Dlib.dll` or its folder |
|
|
91
|
-
|
|
92
|
-
Authentication is `DefaultAzureCredential` inside the dlib: `AZURE_TENANT_ID` + `AZURE_CLIENT_ID`
|
|
93
|
-
with either `AZURE_CLIENT_SECRET` or `AZURE_FEDERATED_TOKEN_FILE` when they are set, otherwise the
|
|
94
|
-
account signed in to the Azure CLI. The interactive-browser credential is disabled in the generated
|
|
95
|
-
metadata, because a bundling command that opens a browser window waits forever in CI and in a
|
|
96
|
-
non-interactive shell; a missing sign-in fails instead, and `az login` is the fix.
|
|
97
|
-
|
|
98
|
-
The dlib spawns `az` from `PATH`, and a per-user install of the Azure CLI is often not there. The
|
|
99
|
-
script finds the documented install location, prepends its directory for the signtool child process,
|
|
100
|
-
and leaves the machine's `PATH` alone.
|
|
101
|
-
|
|
102
|
-
Without the three required variables a developer build succeeds and prints a warning that the
|
|
103
|
-
bundle is unsigned. A release sets `ANDORRA_SIGNING_REQUIRED=1`, and then a missing variable, a
|
|
104
|
-
missing tool, or a signtool failure fails the bundling job.
|
|
105
|
-
|
|
106
|
-
## Checking the workstation
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
npm run sign:check --prefix desktop
|
|
110
|
-
```
|
|
111
|
-
|
|
112
|
-
The command prints one row per prerequisite and exits non-zero only under `--require`. A ready
|
|
113
|
-
workstation looks like this:
|
|
114
|
-
|
|
115
|
-
```text
|
|
116
|
-
Azure Artifact Signing self-check
|
|
117
|
-
configuration ok https://eus.codesigning.azure.net · andorrasigning · andorra-code
|
|
118
|
-
signtool.exe ok C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\signtool.exe (10.0.26100.0)
|
|
119
|
-
Artifact Signing dlib ok C:\Users\<you>\AppData\Local\Microsoft\MicrosoftArtifactSigningClientTools\Azure.CodeSigning.Dlib.dll
|
|
120
|
-
.NET 8 runtime ok 8.0.8
|
|
121
|
-
Azure credentials ok azure-cli: <you>@andorralabs.com
|
|
122
|
-
```
|
|
123
|
-
|
|
124
|
-
Prerequisites, in install order:
|
|
125
|
-
|
|
126
|
-
```powershell
|
|
127
|
-
# 1. signtool, from the Windows 10/11 SDK (Windows 11 SDK 10.0.22621.755 or newer;
|
|
128
|
-
# 10.0.26100.0 recommended). The 10.0.20348 server SDK is explicitly unsupported.
|
|
129
|
-
winget install --exact --id Microsoft.WindowsSDK.10.0.26100
|
|
130
|
-
|
|
131
|
-
# 2. .NET 8 desktop runtime, which loads the signing plugin
|
|
132
|
-
winget install --exact --id Microsoft.DotNet.Runtime.8
|
|
133
|
-
|
|
134
|
-
# 3. The Artifact Signing client tools (the dlib), from Microsoft
|
|
135
|
-
winget install --exact --id Microsoft.Azure.ArtifactSigningClientTools
|
|
136
|
-
```
|
|
137
|
-
|
|
138
|
-
The client tools install under `%LOCALAPPDATA%\Microsoft\MicrosoftArtifactSigningClientTools\` for a
|
|
139
|
-
per-user install and under `%ProgramFiles%\Microsoft\` for a machine-wide one. The script searches
|
|
140
|
-
both, plus the NuGet cache, so the exact folder name is not part of the contract.
|
|
141
|
-
|
|
142
|
-
Then sign in once per session:
|
|
143
|
-
|
|
144
|
-
```powershell
|
|
145
|
-
az login
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
A per-user Azure CLI install is often not on `PATH`; the script looks in the documented location
|
|
149
|
-
(`%ProgramFiles%\Microsoft SDKs\Azure\CLI2\wbin\az.cmd`) and prepends it for the signing child
|
|
150
|
-
process, so `az login` is enough without editing `PATH`.
|
|
151
|
-
|
|
152
|
-
## One-time Azure setup
|
|
153
|
-
|
|
154
|
-
You need a Microsoft Entra tenant, an Azure subscription, and the Artifact Signing eligibility
|
|
155
|
-
approval this team already has. Identity validation can be started only from the Azure portal and
|
|
156
|
-
is the long pole (1–20 business days).
|
|
157
|
-
|
|
158
|
-
```bash
|
|
159
|
-
az login
|
|
160
|
-
az provider register --namespace Microsoft.CodeSigning
|
|
161
|
-
az extension add --name artifact-signing
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
Create the account. The region decides the endpoint every build and CI run must name, so pick one
|
|
165
|
-
and keep it: the endpoint table is in Microsoft's
|
|
166
|
-
[quickstart](https://learn.microsoft.com/en-us/azure/artifact-signing/quickstart).
|
|
167
|
-
|
|
168
|
-
```bash
|
|
169
|
-
az group create --name rg-andorra-signing --location eastus
|
|
170
|
-
az artifact-signing create --name andorrasigning --resource-group rg-andorra-signing \
|
|
171
|
-
--location eastus --sku Basic
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
In the portal, on the new account:
|
|
175
|
-
|
|
176
|
-
1. **Identity validations → New identity → Organization → Public.** Organization validation puts
|
|
177
|
-
the legal entity on the certificate; individual validation puts a person. For an installer
|
|
178
|
-
published by Andorra Labs, use the organization. You must hold the *Artifact Signing Identity
|
|
179
|
-
Verifier* role to create it.
|
|
180
|
-
2. Wait for the validation to reach **Completed**, then copy its **Identity validation ID**.
|
|
181
|
-
3. **Certificate profiles → Create → Public Trust**, name it `andorra-code`, and select the
|
|
182
|
-
completed identity validation. Leave *Program Type* at None.
|
|
183
|
-
|
|
184
|
-
Or create the profile from the CLI once the validation is complete:
|
|
185
|
-
|
|
186
|
-
```bash
|
|
187
|
-
az artifact-signing certificate-profile create \
|
|
188
|
-
--resource-group rg-andorra-signing \
|
|
189
|
-
--account-name andorrasigning \
|
|
190
|
-
--name andorra-code \
|
|
191
|
-
--profile-type PublicTrust \
|
|
192
|
-
--identity-validation-id <identity-validation-id>
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
### The identity that signs
|
|
196
|
-
|
|
197
|
-
Local builds sign as whoever ran `az login`. CI needs its own identity, and it should be an app
|
|
198
|
-
registration with a federated credential, not a client secret:
|
|
199
|
-
|
|
200
|
-
```bash
|
|
201
|
-
APP_ID=$(az ad app create --display-name andorra-code-signing --query appId -o tsv)
|
|
202
|
-
az ad sp create --id "$APP_ID"
|
|
203
|
-
|
|
204
|
-
az ad app federated-credential create --id "$APP_ID" --parameters '{
|
|
205
|
-
"name": "andorra-code-releases",
|
|
206
|
-
"issuer": "https://token.actions.githubusercontent.com",
|
|
207
|
-
"subject": "repo:Andorra-Labs/Andorra-Code:ref:refs/heads/main",
|
|
208
|
-
"audiences": ["api://AzureADTokenExchange"]
|
|
209
|
-
}'
|
|
210
|
-
|
|
211
|
-
az role assignment create \
|
|
212
|
-
--assignee "$APP_ID" \
|
|
213
|
-
--role "Artifact Signing Certificate Profile Signer" \
|
|
214
|
-
--scope "/subscriptions/<subscription-id>/resourceGroups/rg-andorra-signing/providers/Microsoft.CodeSigning/codeSigningAccounts/andorrasigning/certificateProfiles/andorra-code"
|
|
215
|
-
```
|
|
216
|
-
|
|
217
|
-
The release workflow runs on `workflow_dispatch` from `main`, which is what the branch subject
|
|
218
|
-
above covers. Narrowing it to a GitHub environment (`subject: repo:…:environment:release`) is
|
|
219
|
-
stricter; if you do that, add the environment to the `bundle-windows` job.
|
|
220
|
-
|
|
221
|
-
### Repository configuration for releases
|
|
222
|
-
|
|
223
|
-
| Kind | Name | Value |
|
|
224
|
-
| --- | --- | --- |
|
|
225
|
-
| variable | `SIGNING_ENDPOINT` | `https://eus.codesigning.azure.net` (the account's region) |
|
|
226
|
-
| variable | `SIGNING_ACCOUNT` | `andorrasigning` |
|
|
227
|
-
| variable | `SIGNING_PROFILE` | `andorra-code` |
|
|
228
|
-
| variable | `AZURE_CLIENT_ID` | the app registration's application (client) ID |
|
|
229
|
-
| variable | `AZURE_TENANT_ID` | the Entra tenant ID |
|
|
230
|
-
| variable | `AZURE_SUBSCRIPTION_ID` | the subscription that holds the account |
|
|
231
|
-
|
|
232
|
-
None of these is a secret: `azure/login` exchanges GitHub's short-lived OIDC token for an Azure CLI
|
|
233
|
-
session, and the dlib authenticates with that session. The bundling job fails before it builds
|
|
234
|
-
anything when one of them is missing.
|
|
235
|
-
|
|
236
|
-
### Signing a local release build
|
|
237
|
-
|
|
238
|
-
```bash
|
|
239
|
-
export ANDORRA_SIGNING_ENDPOINT=https://eus.codesigning.azure.net
|
|
240
|
-
export ANDORRA_SIGNING_ACCOUNT=andorrasigning
|
|
241
|
-
export ANDORRA_SIGNING_PROFILE=andorra-code
|
|
242
|
-
export ANDORRA_SIGNING_REQUIRED=1
|
|
243
|
-
|
|
244
|
-
npm run desktop:build --prefix desktop
|
|
245
|
-
```
|
|
246
|
-
|
|
247
|
-
`ANDORRA_SIGNING_REQUIRED=1` is the difference between "I built an installer" and "I built the
|
|
248
|
-
installer I intend to publish": it refuses to produce an unsigned bundle.
|
|
249
|
-
|
|
250
|
-
## Verifying a signature
|
|
251
|
-
|
|
252
|
-
After a build, before publishing:
|
|
253
|
-
|
|
254
|
-
```powershell
|
|
255
|
-
$setup = Get-ChildItem 'desktop\src-tauri\target\release\bundle\nsis\*.exe'
|
|
256
|
-
Get-AuthenticodeSignature $setup.FullName |
|
|
257
|
-
Format-List Path, Status, StatusMessage, SignerCertificate, TimeStamperCertificate
|
|
258
|
-
```
|
|
259
|
-
|
|
260
|
-
Expected:
|
|
261
|
-
|
|
262
|
-
- `Status` is `Valid`.
|
|
263
|
-
- `SignerCertificate.Subject` names the legal entity from the completed identity validation
|
|
264
|
-
(`CN=Andorra Labs, …`), not a person and not a self-signed certificate.
|
|
265
|
-
- `TimeStamperCertificate` is present. Artifact Signing certificates are valid for three days, so an
|
|
266
|
-
unstamped signature stops verifying almost immediately and older installers would report as
|
|
267
|
-
untrusted.
|
|
268
|
-
|
|
269
|
-
The same verdict from the SDK directly, which also validates the chain against the current trusted
|
|
270
|
-
roots:
|
|
271
|
-
|
|
272
|
-
```powershell
|
|
273
|
-
& "${env:ProgramFiles(x86)}\Windows Kits\10\bin\10.0.26100.0\x64\signtool.exe" verify /pa /v $setup.FullName
|
|
274
|
-
```
|
|
275
|
-
|
|
276
|
-
Explorer shows the same signature under the setup file's **Properties → Digital Signatures** tab.
|
|
277
|
-
|
|
278
|
-
SmartScreen reputation is not part of verification: a valid signature from a new publisher can
|
|
279
|
-
still show "Windows protected your PC" until downloads accumulate. That is expected and does not
|
|
280
|
-
indicate a broken signature.
|
|
281
|
-
|
|
282
|
-
## Releasing
|
|
283
|
-
|
|
284
|
-
`.github/workflows/desktop-release.yml` → `bundle-windows` does, in order:
|
|
285
|
-
|
|
286
|
-
1. Refuses to run when any repository variable above is unset.
|
|
287
|
-
2. Signs in with `azure/login@v3` using the federated credential (`id-token: write`). The action
|
|
288
|
-
runs `az login` with the OIDC token, and the dlib later authenticates through that CLI session.
|
|
289
|
-
3. Installs the Artifact Signing client tools with `winget`.
|
|
290
|
-
4. Runs `tauri bundle` with the `ANDORRA_SIGNING_*` variables and `ANDORRA_SIGNING_REQUIRED=1`, so
|
|
291
|
-
the app executable, the uninstaller, and the setup executable are all signed.
|
|
292
|
-
5. Verifies every produced `.exe` with `Get-AuthenticodeSignature`: `Status` must be `Valid` and a
|
|
293
|
-
timestamp must be present. The job fails otherwise, and the manifest is never written.
|
|
294
|
-
|
|
295
|
-
The updater's minisign signature is produced in the same step from
|
|
296
|
-
`TAURI_SIGNING_PRIVATE_KEY`; it is unchanged by this setup and both signatures must be present on a
|
|
297
|
-
published release.
|
|
298
|
-
|
|
299
|
-
## Troubleshooting
|
|
300
|
-
|
|
301
|
-
| Symptom | Likely cause | Fix |
|
|
302
|
-
| --- | --- | --- |
|
|
303
|
-
| `signtool exited with 1`, `Azure.Identity: AuthenticationFailed` | no credential reached the dlib | `az login` locally, or check the OIDC app registration and `id-token: write` in CI |
|
|
304
|
-
| `403 Forbidden` / `SignerSign() failed` | the endpoint region differs from the account's region, or the identity lacks *Certificate Profile Signer* | use the region's exact endpoint from the table above; grant the role at the profile scope |
|
|
305
|
-
| `The specified module could not be found` when signtool loads the dlib | .NET 8 runtime missing | install `Microsoft.DotNet.Runtime.8` |
|
|
306
|
-
| `Artifact Signing dlib ... not found` | client tools not installed, or installed in an unusual place | `winget install -e --id Microsoft.Azure.ArtifactSigningClientTools`, or set `ANDORRA_SIGNING_DLIB` |
|
|
307
|
-
| `signtool.exe not found` | SDK missing or older than 10.0.2261.755 | install a current Windows SDK, or set `ANDORRA_SIGNTOOL` |
|
|
308
|
-
| The build warns "signing skipped" on a machine that should sign | the three required variables are not exported in that shell | run `npm run sign:check --prefix desktop` |
|
|
309
|
-
| The bundler fails with `failed to run node` and nothing else | the `signCommand` script path is relative to the wrong directory | it must be `../scripts/sign-windows.mjs`, relative to `desktop/src-tauri/`; run the command from that directory by hand to see the real message |
|
|
310
|
-
| Timestamp request fails | outbound access to `http://timestamp.acs.microsoft.com` blocked | allow the host (port 80 is enough; the response is signed) |
|
|
311
|
-
|
|
312
|
-
## What not to do
|
|
313
|
-
|
|
314
|
-
- Do not commit a `metadata.json`, an account name, or a credential. The script builds the metadata
|
|
315
|
-
file in the system temporary directory and removes it on the way out.
|
|
316
|
-
- Do not add a client secret for CI to make `azure/login` simpler. The federated credential exists
|
|
317
|
-
so there is nothing to rotate or leak.
|
|
318
|
-
- Do not treat the Authenticode signature as a substitute for the updater's minisign signature.
|
|
319
|
-
Windows reads the first; Tauri's updater reads the second.
|
package/docs/llms.txt
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# Andorra Code
|
|
2
|
-
|
|
3
|
-
> Andorra Code is a terminal-first coding agent. Work runs on a visible graph of agent nodes
|
|
4
|
-
> with typed handoffs, driven by your own model providers. This file indexes the documentation
|
|
5
|
-
> for AI agents. Every page below is published on the documentation site at the path given.
|
|
6
|
-
|
|
7
|
-
## Getting started
|
|
8
|
-
|
|
9
|
-
- [Getting started](getting-started/README.md): Install from source (Node 22.19+), configure a provider with /providers, run the first task.
|
|
10
|
-
- [Configure providers](getting-started/configure-providers.md): /providers screen, API keys and environment fallback, model discovery and health checks, local servers, config.json provider registry.
|
|
11
|
-
- [Accounts, membership, and hosted Jev](getting-started/accounts.md): andorra login/logout/auth status, free vs paid access, /jev routing service and quotas.
|
|
12
|
-
|
|
13
|
-
## Concepts
|
|
14
|
-
|
|
15
|
-
- [Concepts overview](concepts/README.md): the graph is the harness — agent nodes, Orchestrator intake and routing, Condition/Loop/Parallel, typed handoffs, immutable revisions; default runs a single Andorra Agent, the Orchestrator workflow is the paid :andorra graph.
|
|
16
|
-
- [Workspace instructions](concepts/workspace-instructions.md): ANDORRA.md preferred, then AGENTS.md, then agents.md; never combined; 16,000-character cap; per-node Prompt overrides.
|
|
17
|
-
- [Memory](concepts/memory.md): no persistent memory service ships; CodeGraph and local command lessons; leftover Graphiti settings are ignored.
|
|
18
|
-
- [Limits](concepts/limits.md): limits block (wallTimeMs, maxIterations, maxToolCalls, maxContextChars, maxCompletionRepairs); defaults unlimited; request-level bounds; token totals are telemetry.
|
|
19
|
-
- [Security and permissions](concepts/security.md): approvals vs /yolo, workspace containment, secrets handling, headless permission denials.
|
|
20
|
-
- [Jev decision thresholds](concepts/jev-decision-thresholds.md): what gates each Jev action, what the hosted service answered in the 3D-Dodge run, and why the thresholds stay while the service is calibrated.
|
|
21
|
-
- [Efficiency features](concepts/jev-efficiency.md): the off-by-default `efficiency` switches (prepared continuations, post-tool round gating, tool-result filtering, context selection, catalog selection, adaptive model-tier routing), their safety rules, accounting, and the deterministic evaluation (`npm run eval:jev`).
|
|
22
|
-
|
|
23
|
-
## Guides
|
|
24
|
-
|
|
25
|
-
- [The TUI](guides/tui.md): transcript, composer, slash completion, side panel, todo panel, dashboard, mouse handling.
|
|
26
|
-
- [Graph Builder](guides/graph-builder.md): andorra graph; the human editor for nodes, outcome routing with written criteria, loops, joins, conversation reuse, cloud backup; paid feature. Agents author graphs through the Agent MCP server instead.
|
|
27
|
-
- [Headless mode](guides/headless.md): --prompt (headless on its own; --no-tui/--json optional); exit codes 0/1/130; Orchestrator graphs return needs_clarification; --yolo for non-interactive writes.
|
|
28
|
-
- [Extensions](guides/extensions.md): /skills, /mcp, /plugins — install formats, MCP server config (stdio/HTTP), limits, /logout codex.
|
|
29
|
-
- [Browser workspace](guides/browser.md): /browser local web client with projects, sessions, steering, approvals.
|
|
30
|
-
- [Desktop client](guides/desktop-app.md): the Tauri desktop app — projects, conversation, terminal drawer, runs, account, remote workspaces.
|
|
31
|
-
- [Update](guides/update.md): andorra update (main branch, clean tree required).
|
|
32
|
-
|
|
33
|
-
## Reference
|
|
34
|
-
|
|
35
|
-
- [CLI](reference/cli.md): all subcommands and flags — interactive, headless, graph, mcp-server, app-server, remote, update, login, logout, auth status.
|
|
36
|
-
- [Slash commands](reference/slash-commands.md): every in-TUI command with behavior notes and keyboard reference.
|
|
37
|
-
- [Configuration and files](reference/config.md): ~/.andorracode layout, config.json schema, environment variables.
|
|
38
|
-
|
|
39
|
-
## For AI agents
|
|
40
|
-
|
|
41
|
-
Authoring a graph? Use `andorra mcp-server --stdio`, not the Graph Builder UI: begin a draft, upsert nodes and edges, validate, publish.
|
|
42
|
-
|
|
43
|
-
- [For AI agents](agents/README.md): how to read these docs, raw URLs, grounding rules, and which surface to use for which task.
|
|
44
|
-
- [Install Andorra Code via an AI agent](agents/install-for-agents.md): deterministic copy-paste install procedure for a coding agent to execute.
|
|
45
|
-
- [Agent MCP server](agents/mcp-server.md): andorra mcp-server --stdio — the supported surface for an agent to author and edit graphs (begin, upsert, validate, publish), plus session monitoring tools, error codes, drafts, paid-membership gate, security model.
|
package/docs/reference/README.md
DELETED
package/docs/reference/cli.md
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
# CLI
|
|
2
|
-
|
|
3
|
-
`andorra` is the primary command; `andorracode` is an alias for the same binary. This page is the complete command-line surface.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
andorra [--cwd path] [--provider id] [--model id] [--graph id]
|
|
9
|
-
[--run-input file.json] [--run-state file.json] [--yolo] [--jev on|off] [--debug]
|
|
10
|
-
andorra --prompt "task" [--json] [--yolo] [--jev on|off] [--no-tui] [--debug]
|
|
11
|
-
andorra subagent --prompt "task" [--provider id] [--model id] [--read-only] [--cwd path]
|
|
12
|
-
andorra graph [--no-open]
|
|
13
|
-
andorra automations list | run <id> | service status|start|stop|install|uninstall | serve [--home <directory>]
|
|
14
|
-
andorra mcp-server --stdio
|
|
15
|
-
andorra app-server --stdio
|
|
16
|
-
andorra remote serve [--port N] [--insecure-http] [--rotate-cert]
|
|
17
|
-
andorra remote status
|
|
18
|
-
andorra remote code
|
|
19
|
-
andorra remote devices | andorra remote revoke <device-id>
|
|
20
|
-
andorra remote share <path> [--label name] | andorra remote unshare <share-id>
|
|
21
|
-
andorra remote pair <pairing-code> [--name nickname]
|
|
22
|
-
andorra remote workspaces | andorra remote unpair <workspace-id>
|
|
23
|
-
andorra remote rotate-cert
|
|
24
|
-
andorra update [--break-lock]
|
|
25
|
-
andorra login [--no-browser]
|
|
26
|
-
andorra logout [--all]
|
|
27
|
-
andorra auth status
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
`andorra -h`/`--help` prints this usage plus the slash-command reference; `andorra --version` prints the installed version. `andorra setup` prints a pointer to `/providers` — the standalone setup wizard was removed.
|
|
31
|
-
|
|
32
|
-
## Flags
|
|
33
|
-
|
|
34
|
-
| Flag | Applies to | Behavior |
|
|
35
|
-
| --- | --- | --- |
|
|
36
|
-
| `--cwd path` | both | Set the workspace directory instead of the current folder. Works in interactive and headless mode. |
|
|
37
|
-
| `--provider id` | both | Start with the given provider. |
|
|
38
|
-
| `--model id` | both | Start with the given model. |
|
|
39
|
-
| `--graph id` | both | Start with the given graph for this session only; make it permanent with `/graph`. `--graph :andorra` selects the paid Andorra workflow graph. |
|
|
40
|
-
| `--run-input file.json` | both | Provide a JSON object satisfying a custom graph's required run inputs (for example `{"environment":"staging"}`). The prompt always supplies the canonical `task` input. |
|
|
41
|
-
| `--run-state file.json` | both | Provide initial shared run state for a custom graph (for example `{"ticket":123}`). State is freshly cloned per run. |
|
|
42
|
-
| `--yolo` | both | Session-only Full Access: host files, shell, and network without approval, the same as `/yolo on`. Retains tool allowlists and argument checks, but not workspace containment; it is not a sandbox. |
|
|
43
|
-
| `--jev on|off` | both | Session-only Jev decision policy, overriding the saved `jevEnabled` preference without writing it. `on` still needs a signed-in account and an Agent node that opts in; when Jev cannot run, the run log records `decision.unavailable` with the reason and one notice is printed. `/jev on|off` during the session replaces the flag; `/jev status` says the flag is in effect. |
|
|
44
|
-
| `--prompt "task"`, `-p "task"` | headless | Run one task non-interactively; any `--prompt` invocation is headless and never opens the terminal UI. `--json` prints a machine-readable result object — an optional companion, not a requirement. |
|
|
45
|
-
| `--no-tui` | headless | Accepted for compatibility and changes nothing: a `--prompt` run already has no terminal UI. Requires `--prompt`. |
|
|
46
|
-
| `--json` | headless | Print one machine-readable result object on stdout (status, run ID, graph revision, completion, usage, tool count). Startup errors go to stderr. |
|
|
47
|
-
| `--debug` | both | Write a debug journal. |
|
|
48
|
-
| `--configure` | interactive | Open the local browser Graph Builder (same as `andorra graph`). |
|
|
49
|
-
|
|
50
|
-
## Subcommands
|
|
51
|
-
|
|
52
|
-
| Command | Behavior |
|
|
53
|
-
| --- | --- |
|
|
54
|
-
| `andorra` | Open the interactive TUI in the current (or `--cwd`) directory. |
|
|
55
|
-
| `andorra subagent --prompt "task" [--provider id] [--model id] [--read-only] [--cwd path]` | Run the built-in Andorra Agent graph once for a calling agent and print the result as one JSON line. A provider and model are mandatory, per call or from the saved `/subagent` setting. Exit codes `0`, `1`, `130`, `143`. See [Subagent mode](../agents/subagent-mode.md). |
|
|
56
|
-
| `andorra graph [--no-open]` | Start the local Graph Builder server and open the browser. `--no-open` prints the session URL instead. Ctrl+C stops the server; closing the tab leaves it running. |
|
|
57
|
-
| `andorra mcp-server --stdio` | Run the local stdio MCP server: the supported surface for an agent to author and edit graphs, plus session monitoring. See [Agent MCP server](../agents/mcp-server.md). |
|
|
58
|
-
| `andorra automations <subcommand>` | Scheduled automations, with JSON output: `list`, `run <id>`, `service status\|start\|stop\|install\|uninstall` for the background service, and `serve [--home <directory>]` to run that service in the foreground. See [Desktop client](../guides/desktop-app.md). |
|
|
59
|
-
| `andorra app-server --stdio` | Run the JSON-lines app server that drives the desktop client. Not for humans; see [Desktop client](../guides/desktop-app.md). |
|
|
60
|
-
| `andorra remote <subcommand>` | Remote workspace pairing and sharing — `serve`, `status`, `code`, `devices`, `revoke <device-id>`, `share <path>`, `unshare <share-id>`, `pair <pairing-code>`, `workspaces`, `unpair <workspace-id>`, `rotate-cert`, with the flags shown in the usage above. See [Remote workspace](../guides/desktop-app.md#remote-workspace). |
|
|
61
|
-
| `andorra update [--break-lock]` | Install the latest npm release of `@andorra-labs/code` into the global npm installation; a source checkout is refused. `--break-lock` replaces a leftover updater lock; see [Update](../guides/update.md#an-interrupted-update). |
|
|
62
|
-
| `andorra login [--no-browser]` | Open the browser to sign in to (or create) an Andorra account. Over SSH, without a display, or with `--no-browser`, it prints the address to open on another device and accepts the callback address pasted back (or an `ssh -L 43187:localhost:43187` forward). |
|
|
63
|
-
| `andorra logout` | Remove this machine's saved Andorra account session and revoke its refresh token. |
|
|
64
|
-
| `andorra logout --all` | Also delete every other Andorra sign-in saved in this machine's OS credential store (other `ANDORRACODE_HOME`s, other deployments), revoking their refresh tokens where the account service accepts it. Saved provider API keys are not touched. |
|
|
65
|
-
| `andorra auth status` | Show the saved Andorra account session and membership. |
|
|
66
|
-
|
|
67
|
-
## Headless exit codes
|
|
68
|
-
|
|
69
|
-
| Code | Meaning |
|
|
70
|
-
| --- | --- |
|
|
71
|
-
| `0` | Success. |
|
|
72
|
-
| `1` | Failure, limit exhaustion, or `needs_clarification` (the selected graph has an Orchestrator that needs an interactive answer). |
|
|
73
|
-
| `130` | Cancelled (Ctrl+C). |
|
|
74
|
-
| `143` | Terminated (SIGTERM). |
|
|
75
|
-
|
|
76
|
-
A headless run uses the workspace's saved permission mode, or Ask for approval when none is saved: file edits inside the workspace and sandboxed shell commands run, and anything that would have prompted receives a permission-denied observation because no interactive approver is present. See [Headless mode](../guides/headless.md#permissions).
|
package/docs/reference/config.md
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
# Configuration and files
|
|
2
|
-
|
|
3
|
-
## The configuration home
|
|
4
|
-
|
|
5
|
-
Everything Andorra Code stores lives under one directory:
|
|
6
|
-
|
|
7
|
-
| Platform | Default |
|
|
8
|
-
| --- | --- |
|
|
9
|
-
| Windows | `%USERPROFILE%\.andorracode` |
|
|
10
|
-
| macOS / Linux | `~/.andorracode` |
|
|
11
|
-
|
|
12
|
-
Set `ANDORRACODE_HOME` to move the whole directory (useful for tests or throwaway installs).
|
|
13
|
-
|
|
14
|
-
| Path | Contents |
|
|
15
|
-
| --- | --- |
|
|
16
|
-
| `config.json` | Providers, graph selection, limits, memory, MCP servers, extensions, permissions. Schema `version: 1`. |
|
|
17
|
-
| `graphs/<id>/` | Saved graphs and their immutable revisions. |
|
|
18
|
-
| `runs/<id>.jsonl`, `runs/<id>.json` | Run records: observable events with bounded tool output, and the final result. These local files can contain workspace text and command arguments; they do not store hidden reasoning or persist provider keys. |
|
|
19
|
-
| `sessions/` | Saved conversation sessions (resumable with `/session`). |
|
|
20
|
-
| `trajectories/` | Trajectory journals: the detailed model-request and tool-event records written during runs. |
|
|
21
|
-
| `skills/` | Installed skills. |
|
|
22
|
-
| `plugins/` | Installed plugins. |
|
|
23
|
-
|
|
24
|
-
Workspace-local caches (not configuration): `.codegraph/` holds the CodeGraph index and is disposable.
|
|
25
|
-
|
|
26
|
-
## `config.json`
|
|
27
|
-
|
|
28
|
-
```json
|
|
29
|
-
{
|
|
30
|
-
"version": 1,
|
|
31
|
-
"provider": "local",
|
|
32
|
-
"providers": [
|
|
33
|
-
{
|
|
34
|
-
"id": "local",
|
|
35
|
-
"type": "openai-compatible",
|
|
36
|
-
"baseUrl": "http://127.0.0.1:1234/v1",
|
|
37
|
-
"model": "your-served-model"
|
|
38
|
-
}
|
|
39
|
-
]
|
|
40
|
-
}
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Provider entries support `id`, `type` (`openai-compatible` \| `anthropic` \| `codex` \| `claude` \| `grok` \| `opencode` \| `opencode-go`), `baseUrl`, `apiKey` (kept in the OS credential store, with `"providerKeys": "keyring"` in the file; plaintext in the file only without a credential store or with `ANDORRA_CREDENTIAL_STORE=file`), `apiKeyEnv` (a saved key takes precedence), `model`, `models[]`, and `modelContextWindows` (a map from model id to its token limit, used when the endpoint does not report one), plus per-provider HTTP request bounds `requestTimeoutMs` and `streamIdleTimeoutMs`.
|
|
44
|
-
|
|
45
|
-
An `anthropic` provider may set `anthropicAuth: "console"` to authenticate with the Claude Console login that `ant auth login` stored in `<config home>/anthropic-accounts/<provider id>` instead of an API key. Such a provider must use `baseUrl: "https://api.anthropic.com/v1"` and may not carry `apiKey` or `apiKeyEnv`; two signed-in providers may not have ids that differ only by case. See [Configure providers](../getting-started/configure-providers.md#claude-console-sign-in).
|
|
46
|
-
|
|
47
|
-
`claude` uses the installed Claude Code CLI's managed subscription sign-in, with fixed `baseUrl: "https://api.anthropic.com"`. Like `codex`, it rejects API keys, environment-key overrides, and HTTP timeout fields. `grok` uses the installed Grok CLI's sign-in, with fixed `baseUrl: "https://api.x.ai"`; `opencode` uses the installed OpenCode CLI's connected providers, with fixed `baseUrl: "https://opencode.ai"` and every model named `provider/model`. Both reject API keys, environment-key overrides, and HTTP timeout fields, like `codex` and `claude`. `opencode-go` uses `baseUrl: "https://opencode.ai/inference/go"` and selects each model's supported API automatically. Other endpoints retain their existing protocol behavior.
|
|
48
|
-
|
|
49
|
-
OpenAI-compatible, Anthropic, and OpenCode Go entries also accept `reasoningEffort` (`none`, `minimal`, `low`, `medium`, `high`, `xhigh`, or `max`). Omitting it uses the provider default. Go checks the selected level against the model's verified catalog options before inference.
|
|
50
|
-
|
|
51
|
-
Other top-level blocks:
|
|
52
|
-
|
|
53
|
-
- `limits` — `{ wallTimeMs, maxIterations, maxToolCalls, maxContextChars, maxCompletionRepairs }`, all optional. Defaults are unlimited except four completion repairs. `wallTimeMs`/`maxIterations` of `0` means unlimited; `maxToolCalls: 0` refuses every tool call and `maxCompletionRepairs: 0` refuses every completion repair. See [Limits](../concepts/limits.md).
|
|
54
|
-
- `commandMemory` — `false` turns off the local command lessons recorded after recognizable shell failures. See [Memory](../concepts/memory.md).
|
|
55
|
-
- `workspacePermissions` — the permission mode remembered per workspace by `/permissions`. See [Security and permissions](../concepts/security.md#workspace-permissions).
|
|
56
|
-
- `webSearch` — the `web_search` tool's services and keys. See [Web search](../guides/web-search.md).
|
|
57
|
-
- `externalSubagent` — the provider and model `/subagent` saves for subagent runs. See [Subagent mode](../agents/subagent-mode.md).
|
|
58
|
-
- `mcpServers` — directly configured MCP servers (the same settings `/mcp` edits). See [Extensions](../guides/extensions.md).
|
|
59
|
-
- `jevEnabled` — installation-wide Jev switch; omission means on. When on, Jev runs only on Agent nodes that set `jevEnabled: true` (the bundled presets do) and only for a signed-in account; when off, no node uses it. `/jev` and the desktop composer switch change it. See [Accounts](../getting-started/accounts.md).
|
|
60
|
-
- `efficiency` — independent, off-by-default switches that reduce coding-model turns and request size: `preparedContinuations`, `postflightOnlyWithCandidates`, `toolResultFiltering` (with `toolResultFilterThresholdChars`, default 6000), `contextSelection`, `catalogSelection`, and `adaptiveRouting` (`{ enabled, tiers: { economy, balanced, premium }, maxEscalations, pricing }`, where each tier names a configured provider and optionally one of its models). Omitting the block is the shipped behavior. See [Efficiency features](../concepts/jev-efficiency.md).
|
|
61
|
-
- `workspacePermissions` — remembered per-workspace permission modes (`/permissions`).
|
|
62
|
-
- `extensions.disabledSkills` / `extensions.disabledPlugins` — disabled extension ids.
|
|
63
|
-
- `graph`, `graphSelections` — default graph per account.
|
|
64
|
-
- `codeIntel` — CodeGraph/code intelligence settings.
|
|
65
|
-
|
|
66
|
-
## Environment variables
|
|
67
|
-
|
|
68
|
-
| Variable | Purpose |
|
|
69
|
-
| --- | --- |
|
|
70
|
-
| `ANDORRACODE_HOME` | Override the whole configuration directory. |
|
|
71
|
-
| `ANDORRA_CREDENTIAL_STORE` | `file` or `keyring` forces where saved provider keys and account tokens go; anything else chooses automatically. |
|
|
72
|
-
| `ANDORRA_NO_UPDATE_CHECK` | Set to skip the startup check for a newer npm release. See [Update](../guides/update.md). |
|
|
73
|
-
| `ANDORRA_CODEX_PATH` | Explicit Codex CLI executable override. Invalid overrides fail without falling back to another installation. |
|
|
74
|
-
| `ANDORRA_CLAUDE_PATH` | Path to the native Claude Code executable used by the Claude subscription provider. |
|
|
75
|
-
| `ANDORRA_ANT_PATH` | Path to the Anthropic CLI (`ant`) executable used for Claude Console sign-in, when it is not on PATH. |
|
|
76
|
-
| `ANDORRA_GROK_PATH` | Path to the Grok CLI executable used by the Grok subscription provider. |
|
|
77
|
-
| `ANDORRA_OPENCODE_PATH` | Path to the OpenCode CLI executable used by the OpenCode (CLI sign-in) provider. |
|
|
78
|
-
| `CAPSOLVER_API_KEY` | CapSolver key for the browser workspace when none is saved. See [Browser workspace](../guides/browser.md). |
|
|
79
|
-
| `BRAVE_API_KEY`, `TAVILY_API_KEY`, `EXA_API_KEY`, `SERPER_API_KEY`, `GOOGLE_SEARCH_API_KEY`, `GOOGLE_SEARCH_ENGINE_ID` | Web search service credentials when none are saved. See [Web search](../guides/web-search.md). |
|
|
80
|
-
| `ANDORRA_CLI` / `ANDORRA_NODE` | Desktop client engine overrides. See [Desktop client](../guides/desktop-app.md). |
|
|
81
|
-
| Provider keys | `OPENAI_API_KEY` and `ANTHROPIC_API_KEY` are the defaults of the built-in OpenAI and Anthropic entries. Any other name, such as `DEEPSEEK_API_KEY`, is read only once it is entered in a provider's **Environment fallback** field. |
|
|
82
|
-
|
|
83
|
-
Remote endpoints require HTTPS; private-network hosts (including Tailscale addresses) may use HTTP. URLs cannot contain embedded credentials.
|
|
84
|
-
|
|
85
|
-
On Windows, automatic Codex provider discovery checks `%LOCALAPPDATA%\Programs\OpenAI\Codex\bin\codex.exe`, then the current user's registered official Codex desktop package, then PATH/npm installations. The package is queried on each connection, so desktop updates do not pin Andorra to an obsolete versioned WindowsApps path. This order preserves an existing fixed desktop installation and prefers the signed desktop package over PATH. Discovery checks the package identity, Store signature status, and native executable; it does not scan WindowsApps or execute npm shims. If Windows package queries are unavailable, PATH/npm discovery continues. Restricted shell tools still apply their separate installation trust checks.
|
|
86
|
-
|
|
87
|
-
## Security notes
|
|
88
|
-
|
|
89
|
-
- Saved API keys are kept in the operating system credential store, one entry per provider in each Andorra home, and read back when the configuration loads; `config.json` holds `"providerKeys": "keyring"` in their place. Moving or copying the Andorra home does not carry the keys: save them again there. When a removed key cannot be deleted from the store (it is locked), `config.json` lists its provider in `providerKeysPendingDeletion` and the next save deletes it. Without a credential store (Linux without Secret Service) or with `ANDORRA_CREDENTIAL_STORE=file`, keys stay in `config.json`; keep the file private and do not commit or share it.
|
|
90
|
-
- Shell tools execute as your OS user with an allowlisted environment that excludes provider credential variables — but shell commands can still access credential files on disk.
|
|
91
|
-
- Andorra account tokens are stored in the operating system credential store, never in `config.json`. Where Linux or another Unix system has no usable credential store, they go to an owner-only `credentials-<id>.json` in the Andorra home instead. `ANDORRA_CREDENTIAL_STORE=file|keyring` forces one store.
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# Slash commands
|
|
2
|
-
|
|
3
|
-
Slash commands run inside the interactive TUI. Type `/` as the first character to open the suggestion list; typing filters it, Up/Down highlights, Enter runs, and Tab fills the command into the composer so an argument can be added by hand. A command that needs an argument (`/attach`, `/codegraph`, `/feedback`, `/jev`, `/reasoning`, `/yolo`) never runs bare from the composer: Enter or Tab fills in the command and a space and opens its argument list, read-only choice first, so a second Enter reports rather than changes a setting.
|
|
4
|
-
|
|
5
|
-
| Command | Behavior |
|
|
6
|
-
| --- | --- |
|
|
7
|
-
| `/browser` | Open the browser workspace (CLI stays available). See [Browser workspace](../guides/browser.md). |
|
|
8
|
-
| `/session` | Browse and resume saved sessions (newest first). |
|
|
9
|
-
| `/login [--no-browser]` | Open browser sign-in or create an Andorra account. Over SSH or with `--no-browser`, prints the address to open on another device and asks for the callback address. |
|
|
10
|
-
| `/auth logout` | Remove this machine's saved Andorra account session. |
|
|
11
|
-
| `/auth status` | Show Andorra account session status and membership. |
|
|
12
|
-
| `/model [model-id]` | Open model selection or select a model directly; with a graph that pins node models, asks whether to override them. |
|
|
13
|
-
| `/model list` | Discover models from the active provider. |
|
|
14
|
-
| `/providers [id]` | Choose providers; Right/e edits; Add provider configures. See [Configure providers](../getting-started/configure-providers.md). |
|
|
15
|
-
| `/subagent [id [model]]` | Set the provider and model that external hosts (Claude CLI, Codex CLI) must use for Andorra subagent runs; `/subagent off` clears it, and without an argument it reports the current setting. See [Subagent mode](../agents/subagent-mode.md). |
|
|
16
|
-
| `/reasoning <level>` | Set reasoning effort: `default\|none\|minimal\|low\|medium\|high\|xhigh\|max`. Without a level it reports the current one and the usage. |
|
|
17
|
-
| `/graph [id]` | Select a graph or open the web graph builder. See [Graph Builder](../guides/graph-builder.md). |
|
|
18
|
-
| `/codegraph <action> [--global]` | Code intelligence: `status\|enable\|disable\|rebuild`. `enable`/`disable` alone record an override for the current repository; with `--global` they set the saved default that every project and every new session starts from, and clear the per-repository overrides. `status` shows the saved default and this repository's override. |
|
|
19
|
-
| `/dashboard` | Toggle live dashboard and transcript (TTY only). See [The TUI](../guides/tui.md#dashboard). |
|
|
20
|
-
| `/attach <path>` | Attach a file or folder to your next task (large pastes and dropped files attach automatically). |
|
|
21
|
-
| `/usage` | Open session usage: requests, provider-reported input/output tokens, last run and tool count (Escape to return). Cost is unavailable. |
|
|
22
|
-
| `/permissions [mode]` | Choose and remember workspace permissions: `read-only\|plan\|ask-for-approval\|approve-for-me\|full-access`. Without a mode it reports the current one. See [Security and permissions](../concepts/security.md#workspace-permissions). |
|
|
23
|
-
| `/jev <on\|off\|status>` | Turn hosted Jev routing on or off, or show its saved setting (all plans). Without an argument it reports, like `status`, and changes nothing. See [Accounts](../getting-started/accounts.md). |
|
|
24
|
-
| `/feedback <on\|off\|status>` | Show the anonymous-feedback setting; Paid accounts can turn it off. Without an argument it reports, like `status`, and changes nothing. |
|
|
25
|
-
| `/yolo <on\|off>` | Turn session-wide Full Access (host files and network) on or off. Never persisted. Without an argument it reports the current state and changes nothing. |
|
|
26
|
-
| `/tools` | List available coding tools and the approval policy. |
|
|
27
|
-
| `/skills` | List, install, enable, disable or remove skills. See [Extensions](../guides/extensions.md). |
|
|
28
|
-
| `/<skillname> [args]` | Apply an enabled imported skill; qualify duplicate names by catalog ID. The skill stays active for every later message in the session until you pause it, remove it, or invoke another skill (which replaces it). In the desktop app the Plan card shows it with Pause, Resume and Remove. |
|
|
29
|
-
| `/skill [on\|off\|remove]` | Show the session's active skill, pause it (`off`), resume it (`on`) or end it (`remove`). Changes apply from the next message. `/clear` also ends it. A skill named `skill` stays reachable as `/skill::skill`. |
|
|
30
|
-
| `/plugins` | List, install, enable, disable or remove plugins. See [Extensions](../guides/extensions.md). |
|
|
31
|
-
| `/mcp` | Add, edit, enable, disable or delete MCP servers. See [Extensions](../guides/extensions.md). |
|
|
32
|
-
| `/logout` | Sign out of your Andorra account on this machine (same as `/auth logout`). Run `/login` afterwards to sign in, or to switch to another account. |
|
|
33
|
-
| `/logout --all` | Sign out, and delete every other Andorra sign-in saved in this machine's OS credential store (other Andorra homes or deployments). |
|
|
34
|
-
| `/logout codex` | Sign out of every configured Codex (ChatGPT) account and exit. Provider settings are kept. |
|
|
35
|
-
| `/status` | Show workspace and current settings. |
|
|
36
|
-
| `/clear` | Clear the conversation on screen and the retained context (session usage is retained). |
|
|
37
|
-
| `/compact` | Compact retained conversation history to free context. |
|
|
38
|
-
| `/help` | Show commands. |
|
|
39
|
-
| `/exit` | Quit (`/quit` is an alias). |
|
|
40
|
-
|
|
41
|
-
## Behavior notes
|
|
42
|
-
|
|
43
|
-
- Changing model/provider clears conversation context. Each task starts a fresh Agent attempt with up to six previous task/completion summaries as explicit follow-up context; private tool transcripts are not reused.
|
|
44
|
-
- Slash commands run between runs. During a run, a live subset (`/browser`, `/attach`, `/yolo`, `/permissions`, `/jev`, `/status`, `/usage`, `/tools`, `/help`, `/exit`/`/quit`) executes immediately; any other line starting with `/` is neither run nor sent to the model — a recognized session command such as `/clear` or `/graph` prints a hint to press Ctrl+C first, and anything else that starts with `/` (including a path such as `/src/app.ts`) is reported unavailable. Text that does not start with `/` still steers the running task.
|
|
45
|
-
- In the desktop app, `/compact` is the one built-in command the session composer runs itself: it appears first in the slash menu of an open conversation, and sending `/compact` alone folds the session's retained model context into one summary entry (the same compaction the terminal applies). The transcript on screen and the session usage are unchanged, nothing is sent to the model, and the next task is seeded with the condensed history. It is refused while a run of that session is live, and a new task with no conversation reports that there is nothing to compact.
|
|
46
|
-
- `/graph` switching clears the previous graph's progress and starts fresh; choosing a different graph confirms first, and `/graph <id>` warns in its reply instead.
|
|
47
|
-
- Selection screens use Up/Down to browse, Enter or Space to select, and Escape to return without changing anything.
|
|
48
|
-
|
|
49
|
-
## Keyboard reference
|
|
50
|
-
|
|
51
|
-
| Key | Action |
|
|
52
|
-
| --- | --- |
|
|
53
|
-
| Ctrl+B | Toggle dashboard; Ctrl+G pages its graph; Ctrl+N cycles dashboard model statistics (display only). |
|
|
54
|
-
| Ctrl+T | Expand/collapse the todo list. |
|
|
55
|
-
| Ctrl+O | Expand/collapse tool and approval details. |
|
|
56
|
-
| Ctrl+Y | Expand the reasoning preview. |
|
|
57
|
-
| Ctrl+C | Stop an interactive run; press again (or while idle) to exit. Headless Ctrl+C cancels the run; a second press exits. |
|
|
58
|
-
| Ctrl+D | Exit from an empty prompt. |
|
|
59
|
-
| Page Up/Page Down | Scroll the transcript (and expanded todo/dashboard cards). |
|