@andorra-labs/code 0.1.8 → 0.1.10
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/THIRD_PARTY_NOTICES.md +2 -1
- package/dist/src/account-presentation.d.ts +11 -0
- package/dist/src/account-presentation.js +29 -2
- package/dist/src/agent-execution.js +57 -4
- package/dist/src/agent-mcp.d.ts +12 -0
- package/dist/src/agent-mcp.js +81 -2
- package/dist/src/app-server/protocol.d.ts +120 -1
- package/dist/src/app-server/protocol.js +8 -1
- package/dist/src/app-server/reasoning.d.ts +0 -8
- package/dist/src/app-server/reasoning.js +15 -28
- package/dist/src/app-server.d.ts +32 -0
- package/dist/src/app-server.js +214 -21
- package/dist/src/auth/AuthManager.d.ts +15 -0
- package/dist/src/auth/AuthManager.js +66 -7
- package/dist/src/auth/index.d.ts +1 -1
- package/dist/src/auth/index.js +1 -1
- package/dist/src/auth/store.d.ts +17 -1
- package/dist/src/auth/store.js +25 -2
- package/dist/src/browser-runner.js +1 -2
- package/dist/src/browser-server.js +10 -2
- package/dist/src/browser-session.js +6 -2
- package/dist/src/browser-stealth.d.ts +29 -0
- package/dist/src/browser-stealth.js +166 -0
- package/dist/src/browser-ui/app.js +123 -28
- package/dist/src/browser-ui/icons/chevron-right.svg +8 -0
- package/dist/src/browser-ui/index.html +8 -8
- package/dist/src/browser-ui/style.css +199 -171
- package/dist/src/browser-ui/tokens.css +198 -0
- package/dist/src/browser-view.d.ts +57 -9
- package/dist/src/browser-view.js +187 -36
- package/dist/src/cli.js +31 -9
- package/dist/src/coding-tools.js +9 -5
- package/dist/src/command-screens.js +4 -4
- package/dist/src/commands.d.ts +1 -1
- package/dist/src/commands.js +3 -2
- package/dist/src/completion-gates.d.ts +35 -0
- package/dist/src/completion-gates.js +25 -0
- package/dist/src/completion.d.ts +7 -1
- package/dist/src/completion.js +37 -4
- package/dist/src/config.d.ts +1 -1
- package/dist/src/config.js +2 -2
- package/dist/src/context-budget.d.ts +11 -0
- package/dist/src/context-budget.js +13 -0
- package/dist/src/decision/DecisionEngine.d.ts +5 -1
- package/dist/src/decision/DecisionManager.d.ts +1 -0
- package/dist/src/decision/DecisionManager.js +14 -3
- package/dist/src/decision/FactContinuations.d.ts +6 -0
- package/dist/src/decision/FactContinuations.js +9 -1
- package/dist/src/decision/FactServiceGate.js +1 -1
- package/dist/src/decision/checks.js +1 -1
- package/dist/src/decision/hostedSkills.d.ts +37 -0
- package/dist/src/decision/hostedSkills.js +64 -0
- package/dist/src/decision/providers/AndorraDecisionProvider.d.ts +10 -2
- package/dist/src/decision/providers/AndorraDecisionProvider.js +121 -10
- package/dist/src/default-graph.d.ts +11 -0
- package/dist/src/default-graph.js +20 -0
- package/dist/src/duration.d.ts +13 -2
- package/dist/src/duration.js +27 -3
- package/dist/src/file-diff.d.ts +105 -0
- package/dist/src/file-diff.js +244 -0
- package/dist/src/graph-manager-chat.d.ts +302 -0
- package/dist/src/graph-manager-chat.js +940 -0
- package/dist/src/graph-runner.js +6 -0
- package/dist/src/graph-server.d.ts +9 -0
- package/dist/src/graph-server.js +171 -20
- package/dist/src/graph-studio-features.js +2 -2
- package/dist/src/graph-sync.js +5 -2
- package/dist/src/graph-ui/app.js +369 -183
- package/dist/src/graph-ui/controls.css +55 -32
- package/dist/src/graph-ui/controls.js +85 -9
- package/dist/src/graph-ui/edge-router.js +114 -13
- package/dist/src/graph-ui/embed.js +32 -17
- package/dist/src/graph-ui/icons.js +1 -0
- package/dist/src/graph-ui/index.html +4 -4
- package/dist/src/graph-ui/library.css +4 -10
- package/dist/src/graph-ui/manager-markdown.js +155 -0
- package/dist/src/graph-ui/manager-state.js +191 -0
- package/dist/src/graph-ui/manager.css +161 -0
- package/dist/src/graph-ui/manager.js +700 -0
- package/dist/src/graph-ui/skill-picker.js +6 -6
- package/dist/src/graph-ui/studio-canvas.js +17 -15
- package/dist/src/graph-ui/studio.css +24 -23
- package/dist/src/graph-ui/studio.js +69 -48
- package/dist/src/graph-ui/style.css +128 -93
- package/dist/src/graph-ui/theme.js +2 -2
- package/dist/src/graph-ui/tokens.css +217 -151
- package/dist/src/graphs.d.ts +76 -2
- package/dist/src/graphs.js +172 -9
- package/dist/src/hardened-runtime.js +8 -2
- package/dist/src/mcp.d.ts +75 -0
- package/dist/src/mcp.js +240 -8
- package/dist/src/membership-errors.d.ts +14 -0
- package/dist/src/membership-errors.js +24 -1
- package/dist/src/membership.d.ts +20 -0
- package/dist/src/membership.js +45 -16
- package/dist/src/palette.d.ts +25 -8
- package/dist/src/palette.js +26 -8
- package/dist/src/provider-engine.d.ts +4 -4
- package/dist/src/provider-engine.js +39 -22
- package/dist/src/provider-keys.d.ts +5 -1
- package/dist/src/provider-keys.js +7 -3
- package/dist/src/provider-settings.d.ts +4 -1
- package/dist/src/provider-settings.js +46 -5
- package/dist/src/providers.d.ts +24 -0
- package/dist/src/providers.js +47 -2
- package/dist/src/qa/guidance.d.ts +26 -0
- package/dist/src/qa/guidance.js +46 -0
- package/dist/src/qa/index.d.ts +1 -8
- package/dist/src/qa/index.js +1 -16
- package/dist/src/qa/profile/QaProfile.d.ts +5 -1
- package/dist/src/qa/profile/QaProfile.js +6 -2
- package/dist/src/qa/runtime/ProcessManager.d.ts +20 -2
- package/dist/src/qa/runtime/ProcessManager.js +69 -13
- package/dist/src/qa/tools.d.ts +19 -1
- package/dist/src/qa/tools.js +20 -145
- package/dist/src/react-runtime.d.ts +11 -0
- package/dist/src/react-runtime.js +203 -53
- package/dist/src/remote/engine-pool.js +21 -6
- package/dist/src/run-progress.d.ts +6 -0
- package/dist/src/run-progress.js +7 -0
- package/dist/src/runtime.d.ts +8 -0
- package/dist/src/screen-selection.d.ts +38 -0
- package/dist/src/screen-selection.js +103 -0
- package/dist/src/session-changes.d.ts +117 -0
- package/dist/src/session-changes.js +796 -0
- package/dist/src/session-skills.d.ts +75 -0
- package/dist/src/session-skills.js +151 -0
- package/dist/src/side-panel.d.ts +1 -1
- package/dist/src/side-panel.js +6 -12
- package/dist/src/skill-commands.js +1 -1
- package/dist/src/skills/bundled/control-browser/SKILL.md +9 -1
- package/dist/src/skills/bundled/graph-manager/SKILL.md +8 -0
- package/dist/src/skills/bundled/provenance.json +3 -3
- package/dist/src/skills/bundled/web-gui-tester/SKILL.md +1 -1
- package/dist/src/stall-recovery.d.ts +33 -0
- package/dist/src/stall-recovery.js +83 -0
- package/dist/src/subagent-run.js +1 -2
- package/dist/src/telemetry/schema.d.ts +1 -1
- package/dist/src/telemetry/schema.js +1 -2
- package/dist/src/terminal-ui.d.ts +66 -22
- package/dist/src/terminal-ui.js +327 -92
- package/dist/src/tool-diff-stats.d.ts +9 -0
- package/dist/src/tool-diff-stats.js +20 -0
- package/dist/src/tool-names.d.ts +1 -1
- package/dist/src/tool-result-filter.js +1 -1
- package/dist/src/tools.js +26 -2
- package/dist/src/transcript.d.ts +11 -0
- package/dist/src/transcript.js +23 -3
- package/dist/src/types.d.ts +24 -4
- package/dist/src/usage-analytics.d.ts +7 -0
- package/dist/src/usage-analytics.js +55 -15
- package/docs/concepts/README.md +1 -1
- package/docs/concepts/limits.md +9 -0
- package/docs/guides/desktop-app.md +1 -1
- package/docs/guides/graph-builder.md +16 -1
- package/docs/guides/tui.md +9 -9
- package/docs/reference/slash-commands.md +2 -1
- package/docs/superpowers/plans/2026-11-13-graph-manager-chat.md +203 -0
- package/docs/superpowers/plans/2026-11-14-jev-fair-use-pricing.md +79 -0
- package/docs/superpowers/specs/2026-11-13-graph-manager-chat-design.md +182 -0
- package/docs/superpowers/specs/2026-11-14-jev-fair-use-pricing-design.md +156 -0
- package/package.json +1 -1
- package/tests/chat-side-panel-test-plan.md +1 -1
- package/dist/src/qa/api/http-runner.d.ts +0 -3
- package/dist/src/qa/api/http-runner.js +0 -47
- package/dist/src/qa/git/ChangeDetector.d.ts +0 -26
- package/dist/src/qa/git/ChangeDetector.js +0 -177
- package/dist/src/qa/git/DiffReviewer.d.ts +0 -28
- package/dist/src/qa/git/DiffReviewer.js +0 -115
- package/dist/src/qa/orchestrator/ChangeClassifier.d.ts +0 -14
- package/dist/src/qa/orchestrator/ChangeClassifier.js +0 -28
- package/dist/src/qa/orchestrator/MergeGate.d.ts +0 -14
- package/dist/src/qa/orchestrator/MergeGate.js +0 -40
- package/dist/src/qa/orchestrator/QaOrchestrator.d.ts +0 -79
- package/dist/src/qa/orchestrator/QaOrchestrator.js +0 -373
- package/dist/src/qa/runners/CommandRunner.d.ts +0 -22
- package/dist/src/qa/runners/CommandRunner.js +0 -96
- package/dist/src/qa/runners/TestRunner.d.ts +0 -21
- package/dist/src/qa/runners/TestRunner.js +0 -66
- package/dist/src/qa/runtime/RuntimeSmoke.d.ts +0 -11
- package/dist/src/qa/runtime/RuntimeSmoke.js +0 -78
- package/dist/src/qa/runtime-detect.d.ts +0 -10
- package/dist/src/qa/runtime-detect.js +0 -72
- package/dist/src/qa/security/DependencyScanner.d.ts +0 -19
- package/dist/src/qa/security/DependencyScanner.js +0 -167
- package/dist/src/qa/security/SecretScanner.d.ts +0 -3
- package/dist/src/qa/security/SecretScanner.js +0 -55
|
@@ -19,6 +19,12 @@ export interface TerminalStatus {
|
|
|
19
19
|
inputTokens?: number;
|
|
20
20
|
outputTokens?: number;
|
|
21
21
|
requests?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The activity is a background check (the startup graph-model check), not a task: the welcome
|
|
24
|
+
* card names it, but no working clock runs and the composer keeps its idle layout. Any later
|
|
25
|
+
* activity that does not repeat the flag clears it.
|
|
26
|
+
*/
|
|
27
|
+
backgroundActivity?: boolean;
|
|
22
28
|
contextWindow?: number;
|
|
23
29
|
/** Input tokens reported for the most recent model request; live context-window use. */
|
|
24
30
|
contextUsed?: number;
|
|
@@ -252,19 +258,20 @@ export declare class TerminalUI extends EventEmitter {
|
|
|
252
258
|
private todoOffset;
|
|
253
259
|
private todoPageSize;
|
|
254
260
|
private scroll;
|
|
255
|
-
/** Whether a run is streaming
|
|
261
|
+
/** Whether a run is streaming. */
|
|
256
262
|
private runActive;
|
|
257
263
|
/**
|
|
258
|
-
*
|
|
264
|
+
* The drag selection over the drawn frame, in screen cells.
|
|
259
265
|
*
|
|
260
|
-
* The app
|
|
261
|
-
*
|
|
262
|
-
*
|
|
263
|
-
* and on by default in Windows Terminal, VTE and iTerm2 — so the app arms that mode only
|
|
264
|
-
* where Up/Down cannot recall history: while a screen is open, or while a run streams with
|
|
265
|
-
* no question pending. At the resting prompt it is switched off and the wheel is inert.
|
|
266
|
+
* The app holds mouse reporting for the whole session so the wheel arrives as a wheel report
|
|
267
|
+
* and never as the Up/Down bytes that recall input history. Holding the mouse takes the drag
|
|
268
|
+
* away from the terminal, so the app draws the selection itself and copies it on release.
|
|
266
269
|
*/
|
|
267
|
-
private
|
|
270
|
+
private selection?;
|
|
271
|
+
/** The last left press, kept to recognize a double-click on the same cell. */
|
|
272
|
+
private lastPress?;
|
|
273
|
+
/** The frame as composed, before the selection highlight is laid over it. */
|
|
274
|
+
private frame;
|
|
268
275
|
/**
|
|
269
276
|
* Live reasoning preview state. `thinkingActive` marks a stream in progress; the text
|
|
270
277
|
* is the bounded tail the preview renders from.
|
|
@@ -299,6 +306,17 @@ export declare class TerminalUI extends EventEmitter {
|
|
|
299
306
|
private completion?;
|
|
300
307
|
private dismissedCompletion?;
|
|
301
308
|
private incoming;
|
|
309
|
+
/**
|
|
310
|
+
* Raw bytes not yet decoded to `incoming`.
|
|
311
|
+
*
|
|
312
|
+
* Legacy mouse reports are framed here, on bytes, before UTF-8 decoding: their payload
|
|
313
|
+
* is three value-plus-32 bytes that the decoder would buffer while an incomplete
|
|
314
|
+
* sequence (column 192, row 128 ends in E0 A0) and collapse when the pair forms a
|
|
315
|
+
* valid one (column 162, row 128 encodes as C2 A0), so no string-domain measurement
|
|
316
|
+
* can see a report in time without risking the keystroke that follows it.
|
|
317
|
+
*/
|
|
318
|
+
private rawIncoming;
|
|
319
|
+
private rawTimer?;
|
|
302
320
|
private pasting;
|
|
303
321
|
private paste;
|
|
304
322
|
private pasteQuestion?;
|
|
@@ -350,7 +368,7 @@ export declare class TerminalUI extends EventEmitter {
|
|
|
350
368
|
/**
|
|
351
369
|
* Attachments queued in the composer draft — large pastes spooled to text, dropped file
|
|
352
370
|
* paths, clipboard images. Each sits in the draft as an inline token (its `marker` code
|
|
353
|
-
* point), drawn as
|
|
371
|
+
* point), drawn as a bold label and edited as one character. They ride the next submitted
|
|
354
372
|
* task (or the next queued steer) and are drained by the CLI, mirroring how `steered` is
|
|
355
373
|
* drained at turn boundaries.
|
|
356
374
|
*/
|
|
@@ -579,20 +597,29 @@ export declare class TerminalUI extends EventEmitter {
|
|
|
579
597
|
/** The last nonempty line of the retained reasoning, flattened for one row. */
|
|
580
598
|
private thinkingTail;
|
|
581
599
|
private updateWorkingClock;
|
|
582
|
-
/**
|
|
583
|
-
* Recompute whether the wheel may act: alternate scroll mode is armed while a screen is
|
|
584
|
-
* open, or while a run streams with no question pending, and off everywhere else.
|
|
585
|
-
*
|
|
586
|
-
* Only transitions write anything. Entering the alternate screen resets the flag first
|
|
587
|
-
* (`start`), because that screen begins with the mode explicitly switched off.
|
|
588
|
-
*/
|
|
589
|
-
private updateAlternateScroll;
|
|
590
600
|
close(): void;
|
|
591
601
|
private finishQuestion;
|
|
592
602
|
private onEnd;
|
|
593
603
|
private onResize;
|
|
594
604
|
private onData;
|
|
595
|
-
/**
|
|
605
|
+
/**
|
|
606
|
+
* Frame legacy X10 mouse reports on the raw byte stream before UTF-8 decoding.
|
|
607
|
+
*
|
|
608
|
+
* A terminal with mouse tracking but without the SGR encoding of mode 1006 answers capture
|
|
609
|
+
* with ESC[M plus three raw payload bytes (button, then coordinates, each offset by
|
|
610
|
+
* 32). Those bytes are framed here rather than in the decoded string because decoding
|
|
611
|
+
* buffers an incomplete trailing sequence and collapses a complete pair into one
|
|
612
|
+
* character, so a string-domain match could only see a report late, consuming the
|
|
613
|
+
* keystroke that follows it. A report split across reads holds the buffer for the
|
|
614
|
+
* input burst, the same grace a lone Escape gets; a burst that elapses with an
|
|
615
|
+
* incomplete prefix hands the bytes to the key parser as if they were typed. Inside a
|
|
616
|
+
* bracketed paste the bytes are text, so once the decoded stream opens a paste the
|
|
617
|
+
* remainder is handed over untouched.
|
|
618
|
+
*/
|
|
619
|
+
private consumeRaw;
|
|
620
|
+
private feedRaw;
|
|
621
|
+
private armRawTimer;
|
|
622
|
+
/** Drain the decoded stream: paste markers, SGR mouse reports and ordinary keys. */
|
|
596
623
|
private consumeIncoming;
|
|
597
624
|
/**
|
|
598
625
|
* The effective disclosure state of one prompt box.
|
|
@@ -602,10 +629,27 @@ export declare class TerminalUI extends EventEmitter {
|
|
|
602
629
|
* either state.
|
|
603
630
|
*/
|
|
604
631
|
private promptExpanded;
|
|
632
|
+
/**
|
|
633
|
+
* Act on one mouse report: the wheel scrolls, and a left drag selects text on the screen.
|
|
634
|
+
*
|
|
635
|
+
* The selection lives in screen cells over the frame as drawn. Releasing the button copies
|
|
636
|
+
* it; the highlight stays until the next key, click or wheel tick so the reader can see what
|
|
637
|
+
* was taken. A press and release on one cell selects nothing, and a second press on the same
|
|
638
|
+
* cell within the double-click window takes the word under it. Other buttons are swallowed,
|
|
639
|
+
* so no click reaches the composer as text.
|
|
640
|
+
* @param button - the report's button code, modifiers and motion bit included.
|
|
641
|
+
* @param pressed - false for a release.
|
|
642
|
+
* @param column - 1-based screen column.
|
|
643
|
+
* @param row - 1-based screen row.
|
|
644
|
+
*/
|
|
645
|
+
private mouse;
|
|
646
|
+
/** Copy the screen selection; over SSH only the terminal's clipboard is the reader's own. */
|
|
647
|
+
private copyScreenSelection;
|
|
648
|
+
/** Lay the selection highlight over a composed frame. */
|
|
649
|
+
private withSelection;
|
|
605
650
|
/**
|
|
606
651
|
* Scroll the transcript (or the active screen). Positive `direction` scrolls up (toward
|
|
607
|
-
* older output), which is what
|
|
608
|
-
* alternate scroll mode.
|
|
652
|
+
* older output), which is what a wheel-up report and an Up key during a run both mean.
|
|
609
653
|
*/
|
|
610
654
|
private scrollBy;
|
|
611
655
|
private normalData;
|
|
@@ -648,7 +692,7 @@ export declare class TerminalUI extends EventEmitter {
|
|
|
648
692
|
private deleteForward;
|
|
649
693
|
/** Take every queued attachment in draft order, without blocking — the CLI drains this when a task is submitted. */
|
|
650
694
|
takeAttachments(): PendingAttachment[];
|
|
651
|
-
/** The
|
|
695
|
+
/** The bold label a token draws as in the composer. */
|
|
652
696
|
private tokenLabel;
|
|
653
697
|
/** The draft as display elements: each token replaced by its label, clipped to the composer. */
|
|
654
698
|
private visibleDraft;
|