@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
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
/* Measurements. The row is the Siderail row everywhere: 28px tall, 6px radius, 13px type. */
|
|
14
14
|
--rail-width: 232px; /* written live by RailResizeHandle while the edge is dragged */
|
|
15
15
|
--chrome-height: 36px; /* every title strip */
|
|
16
|
-
--reading-measure:
|
|
16
|
+
--reading-measure: 792px; /* the prose column */
|
|
17
17
|
--settings-measure: 880px; /* every settings page: one column, one left edge */
|
|
18
18
|
--row-height: 28px;
|
|
19
19
|
--row-radius: 6px;
|
|
@@ -21,14 +21,13 @@
|
|
|
21
21
|
--btn-height: 32px; /* the primary/soft button */
|
|
22
22
|
--btn-radius: 8px;
|
|
23
23
|
--card-radius: 12px;
|
|
24
|
-
--setting-row-height: 52px; /* a Settings row: a title over its one-line description */
|
|
25
24
|
/* The radius scale. Every corner takes one of these steps, and a corner inside another is the
|
|
26
25
|
outer step minus the padding between them, floored at the next step down: 4 for badges, menu
|
|
27
26
|
rows and inline code, 6 for rows, 28px buttons and icon buttons, 8 for 32px buttons, fields,
|
|
28
27
|
code blocks and menus, 12 for cards and dialogs, 20 for the composer (the one large rounded
|
|
29
28
|
object), and full for dots, avatars, switches and status pills. The --row/--btn/--input/--card
|
|
30
29
|
radii above are positions on it. */
|
|
31
|
-
--radius-xs: 4px; --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-
|
|
30
|
+
--radius-xs: 4px; --radius-sm: 6px; --radius-md: 8px; --radius-lg: 12px; --radius-full: 999px;
|
|
32
31
|
--radius-composer: 20px;
|
|
33
32
|
|
|
34
33
|
--font-ui: "Geist Sans", "Geist", -apple-system, "SF Pro Text", system-ui, sans-serif;
|
|
@@ -39,10 +38,15 @@
|
|
|
39
38
|
--type-label: 12px;
|
|
40
39
|
--type-section: 15px;
|
|
41
40
|
--type-hint: 12px;
|
|
41
|
+
--type-h1: 17px; /* a message's top heading (D2): one step between the prose and the page title */
|
|
42
42
|
--weight-regular: 400; --weight-strong: 500;
|
|
43
|
-
/* Leading and tracking, one value per size: 12px on 16, 13px on 18,
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
/* Leading and tracking, one value per size, every line on the 2px grid: 12px on 16, 13px on 18,
|
|
44
|
+
14–15px headings and titles on 20, prose 14px on 22, the 17px heading and 20px titles on 24, and
|
|
45
|
+
12px code on 18. 13px type is tracked in by a hair (−0.08px), the way the platform faces set their
|
|
46
|
+
text size; a title is tracked in by a hundredth of its size, and a code meant to be read out (a
|
|
47
|
+
sign-in code) is spaced out. */
|
|
48
|
+
--leading-xs: 16px; --leading-sm: 18px; --leading-md: 20px; --leading-prose: 22px; --leading-lg: 24px;
|
|
49
|
+
--leading-code: 18px;
|
|
46
50
|
--tracking-sm: -0.08px; --tracking-title: -0.01em; --tracking-code: .06em;
|
|
47
51
|
/* A message is the one thing the window is read for at length, so its prose takes one step up
|
|
48
52
|
from the row size. The body is regular 400; a heading is 600 and a bold term 500. A bold term is
|
|
@@ -81,9 +85,11 @@
|
|
|
81
85
|
--hover: color-mix(in srgb, var(--text) 7%, transparent);
|
|
82
86
|
--selected: color-mix(in srgb, var(--text) 12%, transparent);
|
|
83
87
|
--bg-hover: var(--hover);
|
|
84
|
-
/* The neutral accent: the send button, the caret, a checked checkbox, a field's focus halo.
|
|
88
|
+
/* The neutral accent: the send button, the caret, a checked checkbox, a field's focus halo. The halo
|
|
89
|
+
is a focus indicator, so it keeps 3:1 against the ground it sits on (WCAG 1.4.11): the ink at 36%
|
|
90
|
+
here, 48% in light (P-IXD-16). */
|
|
85
91
|
--accent: #ececec; --accent-soft: rgba(245,245,245,.16); --on-accent: #141414;
|
|
86
|
-
--accent-hover: #ffffff; --accent-ring: rgba(245,245,245,.
|
|
92
|
+
--accent-hover: #ffffff; --accent-ring: rgba(245,245,245,.36);
|
|
87
93
|
/* The one hue in the chrome: the primary button's fill, keyboard focus, a switch that is on, links
|
|
88
94
|
and progress. Everything else is neutral, so the blue stays rare and means "the action". */
|
|
89
95
|
--accent-fill: #1372da; --accent-fill-hover: #2a7fdd; --on-accent-fill: #f5f5f5;
|
|
@@ -91,13 +97,12 @@
|
|
|
91
97
|
/* 2026-11-12: the chrome keeps no amber. --warn is the attention ink, a bright neutral: a row or
|
|
92
98
|
a pill that needs its person is marked by contrast, weight and motion, never by a warning hue.
|
|
93
99
|
--err is one clean red, kept for what failed and for removed lines; it is never a button. */
|
|
94
|
-
--ok: #2f9e6a; --err: #e5484d; --warn: #c9c9c9;
|
|
95
|
-
/* Merged: the violet GitHub gives a merged pull request, the one state the three status hues above
|
|
96
|
-
do not already name. */
|
|
97
|
-
--merged: #8e6ee0;
|
|
100
|
+
--ok: #2f9e6a; --err: #e5484d; --warn: #c9c9c9;
|
|
98
101
|
/* Text-safe status variants: --ok/--err/--warn are the dot and border colours the Siderail
|
|
99
102
|
language defines, and at small text sizes they fall short of 4.5:1 on these surfaces. Any use
|
|
100
103
|
of a status colour as foreground text takes the -text variant instead. */
|
|
104
|
+
/* Merged is the violet GitHub gives a merged pull request, the one state the hues above do not
|
|
105
|
+
already name; it only ever shows as a pill's word on its wash, so it has no dot ink. */
|
|
101
106
|
--ok-text: #7cc79a; --err-text: #f47174; --warn-text: #ececec; --merged-text: #bba4f2;
|
|
102
107
|
/* A picked skill in the composer. It is content the person typed, not chrome, and it has to read as
|
|
103
108
|
recognised at a glance, so it carries the one hue outside status and the accent (see ADR 0022).
|
|
@@ -106,7 +111,6 @@
|
|
|
106
111
|
/* A status pill's fill: a faint wash of its hue under the -text ink, light enough that the ink
|
|
107
112
|
keeps 4.5:1 on both the card and the pane ground. */
|
|
108
113
|
--ok-wash: rgba(47,158,106,.14); --err-wash: rgba(229,72,77,.14); --merged-wash: rgba(142,110,224,.14);
|
|
109
|
-
--warn-wash: rgba(245,245,245,.10);
|
|
110
114
|
--add-wash: rgba(47,158,106,.16); --del-wash: rgba(229,72,77,.16);
|
|
111
115
|
--overlay: rgba(0,0,0,.5);
|
|
112
116
|
|
|
@@ -119,8 +123,6 @@
|
|
|
119
123
|
--rail-wash: var(--hover);
|
|
120
124
|
/* 2026-11-12: the rail is a flat ground. The glow and grain are kept as tokens and switched off. */
|
|
121
125
|
--glow-1: transparent; --glow-2: transparent; --glow-size: 440px 380px; --grain: 0;
|
|
122
|
-
/* The waiting update row's halo: faint at rest and brighter at its peak. */
|
|
123
|
-
--update-glow-rest: rgba(245,245,245,.10); --update-glow-peak: rgba(245,245,245,.28);
|
|
124
126
|
|
|
125
127
|
/* Elevation: one shadow per step. lift-2 under a bordered card at rest, lift-3 for the composer
|
|
126
128
|
holding focus, menu for every menu and popover, panel for dialogs and toasts, raised for a chip
|
|
@@ -130,7 +132,6 @@
|
|
|
130
132
|
--lift-3: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.3), 0 18px 38px -10px rgba(0,0,0,.7);
|
|
131
133
|
--shadow-menu: 0 8px 28px rgba(0,0,0,.4);
|
|
132
134
|
--shadow-panel: var(--shadow-menu);
|
|
133
|
-
--shadow-lift: var(--shadow-menu); /* kept for the graph editor's copy; unused here */
|
|
134
135
|
--shadow-raised: 0 1px 2px rgba(0,0,0,.32);
|
|
135
136
|
--shadow-knob: 0 1px 2px rgba(0,0,0,.4);
|
|
136
137
|
|
|
@@ -143,14 +144,16 @@
|
|
|
143
144
|
the app is idle: the spinner turns only while work runs. */
|
|
144
145
|
/* 2026-11-12: quick and soft, with no overshoot. Row hover arrives and leaves at once; popovers
|
|
145
146
|
and rows take --dur-2, dialogs and view changes --dur-3, height --dur-4. */
|
|
146
|
-
--dur-0: 80ms; --dur-1: 120ms; --dur-2: 160ms; --dur-3: 200ms; --dur-4: 240ms;
|
|
147
|
+
--dur-0: 80ms; --dur-1: 120ms; --dur-2: 160ms; --dur-3: 200ms; --dur-4: 240ms;
|
|
147
148
|
--ease-standard: cubic-bezier(.2,.8,.2,1);
|
|
148
149
|
--ease-out: var(--ease-standard);
|
|
149
150
|
--ease-in-out: cubic-bezier(.65,0,.35,1);
|
|
150
151
|
--ease-exit: cubic-bezier(.4,0,1,1);
|
|
151
|
-
--ease-settle: var(--ease-standard); /* kept for the graph editor's copy; unused here */
|
|
152
152
|
--pop-distance: 4px; --pop-scale: .98;
|
|
153
153
|
--loop-spin: 1s; --loop-shimmer: 1.8s; --loop-breathe: 2.4s;
|
|
154
|
+
/* How long the pointer rests on a quiet affordance (the sidebar's sash) before it lights, so a pointer
|
|
155
|
+
only crossing it lights nothing. */
|
|
156
|
+
--delay-hover-intent: 150ms;
|
|
154
157
|
|
|
155
158
|
color-scheme: dark;
|
|
156
159
|
}
|
|
@@ -169,17 +172,17 @@
|
|
|
169
172
|
--bg-raised: #ffffff;
|
|
170
173
|
--switch-off: color-mix(in srgb, var(--text) 50%, transparent);
|
|
171
174
|
--accent: #1c1c1c; --accent-soft: rgba(28,28,28,.16); --on-accent: #ffffff;
|
|
172
|
-
--accent-hover: #333333; --accent-ring: rgba(28,28,28,.
|
|
175
|
+
--accent-hover: #333333; --accent-ring: rgba(28,28,28,.48);
|
|
173
176
|
--accent-fill: #1680f3; --accent-fill-hover: #1776dd; --on-accent-fill: #ffffff;
|
|
174
177
|
--accent-text: #0b6dd3; --focus: #1680f3;
|
|
175
|
-
--ok: #3d7a5c; --err: #d13438; --warn: #45464b;
|
|
176
|
-
/*
|
|
177
|
-
|
|
178
|
-
|
|
178
|
+
--ok: #3d7a5c; --err: #d13438; --warn: #45464b;
|
|
179
|
+
/* The pass word is a step darker than its dot: on the add wash an added line's "+" needs 4.5:1
|
|
180
|
+
(4.88:1 here, P-IXD-15). No merged ink in the source palette; this violet is in the key of the
|
|
181
|
+
pass and fail inks. */
|
|
182
|
+
--ok-text: #36704f; --err-text: #c4262e; --warn-text: #1c1c1c; --merged-text: #6a4fc4;
|
|
179
183
|
--skill: #3b4fc4; --skill-wash: rgba(59,79,196,.10);
|
|
180
184
|
/* Fainter than the dark washes: at .14 the pass ink on its own wash drops under 4.5:1. */
|
|
181
185
|
--ok-wash: rgba(61,122,92,.08); --err-wash: rgba(209,52,56,.08); --merged-wash: rgba(106,79,196,.08);
|
|
182
|
-
--warn-wash: rgba(28,28,28,.06);
|
|
183
186
|
/* A removed line has to be found beside an added one: at .08 it was all but white. At .13 the
|
|
184
187
|
fail ink still keeps 5:1 on it. */
|
|
185
188
|
--add-wash: rgba(61,122,92,.14); --del-wash: rgba(209,52,56,.13);
|
|
@@ -189,13 +192,11 @@
|
|
|
189
192
|
--code-fn: #795e26; --code-var: #001080; --code-type: #267f99; --code-meta: #af00db;
|
|
190
193
|
|
|
191
194
|
--glow-1: transparent; --glow-2: transparent; --glow-size: 480px 420px; --grain: 0;
|
|
192
|
-
--update-glow-rest: rgba(28,28,28,.08); --update-glow-peak: rgba(28,28,28,.20);
|
|
193
195
|
|
|
194
196
|
--lift-2: 0 1px 2px rgba(16,18,24,.04), 0 6px 24px rgba(16,18,24,.07);
|
|
195
197
|
--lift-3: 0 1px 2px rgba(16,18,24,.05), 0 6px 24px rgba(16,18,24,.085);
|
|
196
198
|
--shadow-menu: 0 2px 4px rgba(16,18,24,.05), 0 8px 20px rgba(16,18,24,.07), 0 24px 48px rgba(16,18,24,.07);
|
|
197
199
|
--shadow-panel: var(--shadow-menu);
|
|
198
|
-
--shadow-lift: var(--shadow-menu);
|
|
199
200
|
--shadow-raised: 0 1px 2px rgba(16,18,24,.12), 0 0 0 .5px rgba(16,18,24,.06);
|
|
200
201
|
--shadow-knob: 0 1px 2px rgba(16,18,24,.3);
|
|
201
202
|
|
|
@@ -243,11 +244,14 @@
|
|
|
243
244
|
:root {
|
|
244
245
|
--panel: 380px; /* the node inspector's width; the edge drag keeps it between 360 and 720 */
|
|
245
246
|
|
|
246
|
-
/* The canvas: the pane's own ground, and the dot of the grid that marks every snap point.
|
|
247
|
+
/* The canvas: the pane's own ground, and the dot of the grid that marks every snap point. The dot is
|
|
248
|
+
the ink at a fixed share of the ground (ADR 0022, A2: every grey is one ink at an alpha), so it is
|
|
249
|
+
a pure neutral in either appearance; light takes a slightly larger share to keep the grid as
|
|
250
|
+
visible on white as it is on the dark pane. */
|
|
247
251
|
--canvas-bg: var(--bg-surface);
|
|
248
|
-
--canvas-dot:
|
|
252
|
+
--canvas-dot: color-mix(in srgb, var(--text) 12%, var(--canvas-bg));
|
|
249
253
|
}
|
|
250
254
|
|
|
251
255
|
:root[data-theme='light'] {
|
|
252
|
-
--canvas-dot:
|
|
256
|
+
--canvas-dot: color-mix(in srgb, var(--text) 14%, var(--canvas-bg));
|
|
253
257
|
}
|
package/dist/src/graphs.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export interface ContextPolicy {
|
|
|
24
24
|
maxChars?: number;
|
|
25
25
|
conversation?: 'reuse' | 'isolate';
|
|
26
26
|
skillInheritance?: 'inherit' | 'none';
|
|
27
|
+
/** false keeps project memory out of this node: no recalled index and no memory tools. */
|
|
28
|
+
projectMemory?: boolean;
|
|
27
29
|
}
|
|
28
30
|
export interface AgentLimits {
|
|
29
31
|
maxIterations?: number;
|
|
@@ -247,8 +249,9 @@ export declare const GRAPH_MANAGER_GRAPH_ID = "andorra-graph-manager";
|
|
|
247
249
|
* sets neither `capabilities` nor `tools`, exactly as the default graph's execution agent: the
|
|
248
250
|
* defaults allow the shell, which is what grants the `graphs` tool, and filesystem reads, which
|
|
249
251
|
* grant `read_skill_resource`. A delegated subagent never receives `graphs`, so the work stays on
|
|
250
|
-
* this node.
|
|
251
|
-
*
|
|
252
|
+
* this node. Its instruction has the agent ask in its reply, with the user's next message as the
|
|
253
|
+
* answer, and the node keeps session history so that message sees the question; as a top-level
|
|
254
|
+
* agent it is also offered `ask_user` wherever a person can answer.
|
|
252
255
|
*/
|
|
253
256
|
export declare const GRAPH_MANAGER_HARNESS: Graph;
|
|
254
257
|
/**
|
package/dist/src/graphs.js
CHANGED
|
@@ -126,13 +126,14 @@ export const GRAPH_MANAGER_GRAPH_ID = 'andorra-graph-manager';
|
|
|
126
126
|
* sets neither `capabilities` nor `tools`, exactly as the default graph's execution agent: the
|
|
127
127
|
* defaults allow the shell, which is what grants the `graphs` tool, and filesystem reads, which
|
|
128
128
|
* grant `read_skill_resource`. A delegated subagent never receives `graphs`, so the work stays on
|
|
129
|
-
* this node.
|
|
130
|
-
*
|
|
129
|
+
* this node. Its instruction has the agent ask in its reply, with the user's next message as the
|
|
130
|
+
* answer, and the node keeps session history so that message sees the question; as a top-level
|
|
131
|
+
* agent it is also offered `ask_user` wherever a person can answer.
|
|
131
132
|
*/
|
|
132
133
|
export const GRAPH_MANAGER_HARNESS = {
|
|
133
134
|
schemaVersion: 3, id: GRAPH_MANAGER_GRAPH_ID, name: 'Graph Manager', revision: 1, entry: 'manager',
|
|
134
135
|
nodes: {
|
|
135
|
-
manager: { id: 'manager', name: 'Graph Manager', type: 'agent', executor: 'react-basic', instruction: 'You are Graph Manager inside Graph Studio. Before acting, load the bundled skill andorra:graph-manager with read_skill_resource and follow it. Work only through the graphs tool; never write graph files. Reply to the user in the conversation; when a choice is theirs, ask in your reply and wait for their next message.', contextPolicy: { history: true }, position: { x: 120, y: 120 } },
|
|
136
|
+
manager: { id: 'manager', name: 'Graph Manager', type: 'agent', executor: 'react-basic', instruction: 'You are Graph Manager inside Graph Studio. Before acting, load the bundled skill andorra:graph-manager with read_skill_resource and follow it. Work only through the graphs tool; never write graph files. You have no codebase: never search, read or run commands on any files: not the user files, not the Andorra source code. The graph guide (graphs action andorra_graph_guide), the skill and validation messages are your only references; when they leave a value unclear, ask the user. Reply to the user in the conversation; when a choice is theirs, ask in your reply and wait for their next message.', contextPolicy: { history: true }, position: { x: 120, y: 120 } },
|
|
136
137
|
done: { id: 'done', name: 'Done', type: 'end', position: { x: 440, y: 120 } },
|
|
137
138
|
}, edges: [{ id: 'manager-done', source: 'manager', target: 'done', outcome: 'completed' }],
|
|
138
139
|
};
|
|
@@ -744,7 +745,7 @@ function validateGraphInternal(value, options = {}) {
|
|
|
744
745
|
capabilities(node.capabilities, label);
|
|
745
746
|
if (node.contextPolicy !== undefined) {
|
|
746
747
|
const c = node.contextPolicy;
|
|
747
|
-
if (!record(c) || (c.history !== undefined && typeof c.history !== 'boolean') || (c.predecessors !== undefined && !['none', 'direct', 'all'].includes(c.predecessors)) || (c.conversation !== undefined && !['reuse', 'isolate'].includes(c.conversation)) || (c.skillInheritance !== undefined && !['inherit', 'none'].includes(c.skillInheritance)))
|
|
748
|
+
if (!record(c) || (c.history !== undefined && typeof c.history !== 'boolean') || (c.predecessors !== undefined && !['none', 'direct', 'all'].includes(c.predecessors)) || (c.conversation !== undefined && !['reuse', 'isolate'].includes(c.conversation)) || (c.skillInheritance !== undefined && !['inherit', 'none'].includes(c.skillInheritance)) || (c.projectMemory !== undefined && typeof c.projectMemory !== 'boolean'))
|
|
748
749
|
fail(`${label}: invalid context policy`);
|
|
749
750
|
bounds(c.maxChars, `${label} context maxChars`);
|
|
750
751
|
}
|
|
@@ -890,7 +891,7 @@ function validateGraphInternal(value, options = {}) {
|
|
|
890
891
|
bounds(s.maxWallTimeMs, `${label} maxWallTimeMs`);
|
|
891
892
|
for (const [k, values] of Object.entries({ modelPolicy: ['inherit', 'specific', 'per-role'], workspace: ['shared-read-only', 'shared-write', 'worktree'], toolInheritance: ['restricted', 'inherit'], context: ['selected', 'task-only'] }))
|
|
892
893
|
if (s[k] !== undefined && !values.includes(s[k]))
|
|
893
|
-
fail(`${label}: invalid subagent ${k}`);
|
|
894
|
+
fail(`${label}: invalid subagent ${k} ${JSON.stringify(s[k])}; use one of: ${values.join(', ')}`);
|
|
894
895
|
subagentModelRef({ ...s, provider: s.provider ?? node.provider ?? options.defaultProvider }, `${label} subagent`, options);
|
|
895
896
|
const spawningEnabled = s.enabled && node.maxSubagents !== 0;
|
|
896
897
|
if (spawningEnabled && options.spawnAvailable === false)
|
|
@@ -927,7 +928,7 @@ function validateGraphInternal(value, options = {}) {
|
|
|
927
928
|
// spelled out per role so that roles not yet shape-checked by this loop are never inspected.
|
|
928
929
|
const delegated = node.agentRole === 'orchestrator' && spawningEnabled && isWritingRole(r);
|
|
929
930
|
if (delegated && (s.workspace ?? 'shared-read-only') !== 'worktree')
|
|
930
|
-
fail(`${label}: writing roles on an Orchestrator require separate worktrees;
|
|
931
|
+
fail(`${label}: writing roles on an Orchestrator require separate worktrees; set subagents.workspace to "worktree" (Separate Git worktree)`);
|
|
931
932
|
if (delegated && node.completion?.mode === 'outcomes')
|
|
932
933
|
fail(`${label}: Orchestrator delegation needs a single completion outcome; remove declared outcomes or the writing roles`);
|
|
933
934
|
if (delegated && node.completion?.mode === 'single' && node.completion.outcome === DELIVERED_OUTCOME)
|
|
@@ -947,12 +948,12 @@ function validateGraphInternal(value, options = {}) {
|
|
|
947
948
|
if (spawningEnabled && s.workspace === 'worktree' && writes && parent.git !== 'write')
|
|
948
949
|
fail(`${label}: writing worktree role ${r.id} requires parent Git write access; grant Git write or select a read-only role`);
|
|
949
950
|
if (spawningEnabled && (s.workspace ?? 'shared-read-only') === 'shared-read-only' && writes)
|
|
950
|
-
fail(`${label}: shared read-only subagents cannot write files or Git; reduce role permissions or
|
|
951
|
+
fail(`${label}: shared read-only subagents cannot write files or Git; reduce role permissions or set subagents.workspace to "shared-write" or "worktree"`);
|
|
951
952
|
if (spawningEnabled && (s.workspace ?? 'shared-read-only') === 'shared-write' && (s.maxConcurrent ?? 3) > 1 && writes)
|
|
952
|
-
fail(`${label}: concurrent writing subagents require separate worktrees;
|
|
953
|
+
fail(`${label}: concurrent writing subagents require separate worktrees; set subagents.workspace to "worktree" or subagents.maxConcurrent to 1`);
|
|
953
954
|
}
|
|
954
955
|
if (spawningEnabled && (s.workspace ?? 'shared-read-only') === 'shared-write' && (s.maxConcurrent ?? 3) > 1 && !s.roles?.length)
|
|
955
|
-
fail(`${label}: concurrent writing subagents require separate worktrees or maxConcurrent 1`);
|
|
956
|
+
fail(`${label}: concurrent writing subagents require separate worktrees; set subagents.workspace to "worktree" or subagents.maxConcurrent to 1`);
|
|
956
957
|
}
|
|
957
958
|
}
|
|
958
959
|
if (graph.metadata !== undefined && (!record(graph.metadata) || (graph.metadata.description !== undefined && (typeof graph.metadata.description !== 'string' || graph.metadata.description.length > 2000)) || (graph.metadata.updatedAt !== undefined && typeof graph.metadata.updatedAt !== 'string')))
|
package/dist/src/mcp.d.ts
CHANGED
|
@@ -9,15 +9,9 @@ export interface McpCatalogTool {
|
|
|
9
9
|
description?: string;
|
|
10
10
|
inputSchema: Record<string, unknown>;
|
|
11
11
|
}
|
|
12
|
-
/**
|
|
13
|
-
* What a server answered the last time it was asked: its tools, or that its catalog was refused
|
|
14
|
-
* for exceeding the task's metadata budget — the one refusal that is the server's own answer
|
|
15
|
-
* rather than a failure to reach it.
|
|
16
|
-
*/
|
|
12
|
+
/** The tools a server reported the last time it was asked. */
|
|
17
13
|
export type McpCatalogRecord = {
|
|
18
14
|
tools: McpCatalogTool[];
|
|
19
|
-
} | {
|
|
20
|
-
overBudget: true;
|
|
21
15
|
};
|
|
22
16
|
/**
|
|
23
17
|
* Where the answer a server last gave is kept between tasks.
|
|
@@ -116,18 +110,62 @@ export declare function probeMcpServer(config: RuntimeMcpServerConfig, workspace
|
|
|
116
110
|
export declare function probeFailureReason(error: unknown, config: Pick<McpServerConfig, 'transport'> & {
|
|
117
111
|
command?: string;
|
|
118
112
|
}): string;
|
|
113
|
+
/** The tool a model uses to read the descriptions and input schemas of tools that are offered on demand. */
|
|
114
|
+
export declare const MCP_FIND_TOOLS = "mcp_find_tools";
|
|
115
|
+
/** The tool a model uses to run a tool that is offered on demand. */
|
|
116
|
+
export declare const MCP_CALL_TOOL = "mcp_call_tool";
|
|
117
|
+
/**
|
|
118
|
+
* The index of on-demand tools a model is shown: each server with its tool names, within
|
|
119
|
+
* {@link MCP_INDEX_MAX_BYTES}. Names past the bound are counted, and the lookup finds them by query.
|
|
120
|
+
*/
|
|
121
|
+
export declare function deferredIndex(servers: {
|
|
122
|
+
id: string;
|
|
123
|
+
catalog: McpCatalogTool[];
|
|
124
|
+
}[]): string;
|
|
125
|
+
/**
|
|
126
|
+
* The tools of on-demand servers that match a lookup, best first: every named tool, or the tools
|
|
127
|
+
* whose name or description carries the most words of the query, or a server's whole list.
|
|
128
|
+
*/
|
|
129
|
+
export declare function findDeferredTools(servers: {
|
|
130
|
+
id: string;
|
|
131
|
+
catalog: McpCatalogTool[];
|
|
132
|
+
}[], request: {
|
|
133
|
+
server?: string;
|
|
134
|
+
query?: string;
|
|
135
|
+
tools?: string[];
|
|
136
|
+
}): {
|
|
137
|
+
server: string;
|
|
138
|
+
tool: McpCatalogTool;
|
|
139
|
+
}[];
|
|
140
|
+
/**
|
|
141
|
+
* What {@link MCP_FIND_TOOLS} answers, always within {@link MCP_FIND_MAX_CHARS}.
|
|
142
|
+
*
|
|
143
|
+
* Matching tools are described with their schemas, best first, while they fit. A tool whose own
|
|
144
|
+
* description and schema would not fit one answer is named with how many parts it takes; asking
|
|
145
|
+
* for it by exact name with `part` returns that slice of its JSON, and the parts joined in order
|
|
146
|
+
* are the whole entry.
|
|
147
|
+
*/
|
|
148
|
+
export declare function answerFind(servers: {
|
|
149
|
+
id: string;
|
|
150
|
+
catalog: McpCatalogTool[];
|
|
151
|
+
}[], args: Record<string, unknown>): string;
|
|
119
152
|
/**
|
|
120
153
|
* Each task owns its clients; no server tools or spawned processes survive task exit.
|
|
121
154
|
*
|
|
155
|
+
* A server's tools are offered one by one while their advertised metadata fits the task's budget
|
|
156
|
+
* ({@link MCP_CATALOG_MAX_BYTES} across servers, in order). A server whose catalog does not fit is
|
|
157
|
+
* not dropped: its tools are offered on demand, through {@link MCP_FIND_TOOLS} (an index of their
|
|
158
|
+
* names, and their schemas when looked up) and {@link MCP_CALL_TOOL}, which runs them under the
|
|
159
|
+
* same approval as a tool offered by itself.
|
|
160
|
+
*
|
|
122
161
|
* With `catalogs`, a server this home has already heard from does not hold the task back while it
|
|
123
162
|
* starts. Its connection is approved first, as every server's is. Then its last answer decides
|
|
124
|
-
* what the task is told now — its tools, offered from the record, or
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* next task
|
|
129
|
-
*
|
|
130
|
-
* when every server has answered.
|
|
163
|
+
* what the task is told now — its tools, offered from the record, one by one or on demand — and the
|
|
164
|
+
* server itself connects behind the caller, where a call to one of its tools waits for the
|
|
165
|
+
* connection. The record is checked against what the server reports once it is up: a catalog that
|
|
166
|
+
* changed is used from the next task on, and a server that could not be reached is forgotten, so
|
|
167
|
+
* the next task asks it before offering anything, as a server seen for the first time is always
|
|
168
|
+
* asked. `settled` resolves when every server has answered.
|
|
131
169
|
*/
|
|
132
170
|
export declare function connectMcpServers(servers: Record<string, RuntimeMcpServerConfig>, context: ToolContext, notice: (message: string) => void, taskSignal?: AbortSignal, options?: {
|
|
133
171
|
catalogs?: McpCatalogStore;
|