@crouton-kit/crouter 0.3.66 → 0.3.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builtin-memory/05-kinds/developer/00-base.md +1 -1
- package/dist/builtin-memory/05-kinds/developer/01-orchestrator.md +2 -0
- package/dist/clients/attach/__tests__/attach-chrome-remote.test.d.ts +1 -0
- package/dist/clients/attach/__tests__/attach-chrome-remote.test.js +371 -0
- package/dist/clients/attach/__tests__/attach-remote-readonly.test.d.ts +1 -0
- package/dist/clients/attach/__tests__/attach-remote-readonly.test.js +191 -0
- package/dist/clients/attach/__tests__/transport-relay.test.js +38 -1
- package/dist/clients/attach/attach-cmd.d.ts +30 -2
- package/dist/clients/attach/attach-cmd.js +622 -622
- package/dist/clients/attach/canvas-panels.js +9 -3
- package/dist/clients/attach/graph-overlay.d.ts +5 -0
- package/dist/clients/attach/graph-overlay.js +40 -7
- package/dist/clients/attach/input-controller.d.ts +9 -0
- package/dist/clients/attach/input-controller.js +47 -8
- package/dist/clients/attach/slash-commands.d.ts +11 -4
- package/dist/clients/attach/slash-commands.js +44 -9
- package/dist/clients/attach/transport-relay.d.ts +5 -5
- package/dist/clients/attach/transport-relay.js +3 -30
- package/dist/commands/__tests__/canvas-config.test.d.ts +1 -0
- package/dist/commands/__tests__/canvas-config.test.js +107 -0
- package/dist/commands/canvas-browse.js +26 -1
- package/dist/commands/canvas-config.d.ts +2 -0
- package/dist/commands/canvas-config.js +210 -0
- package/dist/commands/canvas-use.d.ts +1 -0
- package/dist/commands/canvas-use.js +63 -0
- package/dist/commands/canvas.js +4 -2
- package/dist/commands/node.js +41 -11
- package/dist/core/__tests__/remote-canvas-target.test.d.ts +1 -0
- package/dist/core/__tests__/remote-canvas-target.test.js +87 -0
- package/dist/core/__tests__/secrets.test.d.ts +1 -0
- package/dist/core/__tests__/secrets.test.js +55 -0
- package/dist/core/canvas/__tests__/remote-canvas-source.test.d.ts +1 -0
- package/dist/core/canvas/__tests__/remote-canvas-source.test.js +371 -0
- package/dist/core/canvas/__tests__/remote-event-stream.test.d.ts +1 -0
- package/dist/core/canvas/__tests__/remote-event-stream.test.js +144 -0
- package/dist/core/canvas/__tests__/render-remote.test.d.ts +1 -0
- package/dist/core/canvas/__tests__/render-remote.test.js +221 -0
- package/dist/core/canvas/__tests__/source-resolve.test.d.ts +1 -0
- package/dist/core/canvas/__tests__/source-resolve.test.js +77 -0
- package/dist/core/canvas/browse/__tests__/rebuild-coalescer.test.d.ts +1 -0
- package/dist/core/canvas/browse/__tests__/rebuild-coalescer.test.js +117 -0
- package/dist/core/canvas/browse/app.d.ts +14 -0
- package/dist/core/canvas/browse/app.js +97 -15
- package/dist/core/canvas/browse/rebuild-coalescer.d.ts +7 -0
- package/dist/core/canvas/browse/rebuild-coalescer.js +61 -0
- package/dist/core/canvas/browse/render.d.ts +4 -0
- package/dist/core/canvas/browse/render.js +3 -1
- package/dist/core/canvas/nav-model.d.ts +19 -10
- package/dist/core/canvas/nav-model.js +30 -12
- package/dist/core/canvas/remote-canvas-source.d.ts +62 -0
- package/dist/core/canvas/remote-canvas-source.js +222 -0
- package/dist/core/canvas/remote-event-stream.d.ts +24 -0
- package/dist/core/canvas/remote-event-stream.js +94 -0
- package/dist/core/canvas/render.d.ts +13 -1
- package/dist/core/canvas/render.js +56 -37
- package/dist/core/canvas/source.d.ts +9 -0
- package/dist/core/canvas/source.js +15 -0
- package/dist/core/config.js +4 -3
- package/dist/core/runtime/__tests__/node-env.test.d.ts +1 -0
- package/dist/core/runtime/__tests__/node-env.test.js +91 -0
- package/dist/core/runtime/nodes.js +10 -0
- package/dist/core/secrets.d.ts +25 -0
- package/dist/core/secrets.js +55 -0
- package/dist/core/view/__tests__/transport-remote.test.d.ts +1 -0
- package/dist/core/view/__tests__/transport-remote.test.js +95 -0
- package/dist/core/view/remote-canvas-target.d.ts +2 -1
- package/dist/core/view/remote-canvas-target.js +12 -7
- package/dist/core/view/transport-remote.d.ts +2 -0
- package/dist/core/view/transport-remote.js +53 -0
- package/dist/types.d.ts +19 -11
- package/dist/types.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,35 @@
|
|
|
1
1
|
import { CombinedAutocompleteProvider } from '@earendil-works/pi-tui';
|
|
2
2
|
import type { BranchDef } from '../../core/command.js';
|
|
3
|
-
import type { BrokerSnapshot } from '../../core/runtime/broker-protocol.js';
|
|
3
|
+
import type { BrokerSnapshot, ClientRole } from '../../core/runtime/broker-protocol.js';
|
|
4
4
|
import { type AttachPalette } from './config-load.js';
|
|
5
|
+
export type Mode = 'normal' | 'spec' | 'plan';
|
|
6
|
+
/** Resolve the mode badge's initial state. Remote never reads the local
|
|
7
|
+
* mode-switch `current` file for `nodeId` — always starts 'normal'. */
|
|
8
|
+
export declare function resolveInitialMode(cwd: string, nodeId: string, remote: boolean, readMode?: (cwd: string, nodeId: string) => Mode | undefined): Mode;
|
|
9
|
+
/** Handle Alt+M's mode-cycle request. Remote no-ops entirely (returns `false`,
|
|
10
|
+
* so the caller leaves `modeState`/the badge untouched) — there is no
|
|
11
|
+
* remote-safe mode-switch protocol, and writing the local `request.json` for a
|
|
12
|
+
* remote node id would target the wrong (or a colliding local) node. */
|
|
13
|
+
export declare function requestModeSwitch(cwd: string, nodeId: string, remote: boolean, mode: Mode, writeRequest?: (cwd: string, nodeId: string, mode: Mode) => void): boolean;
|
|
14
|
+
/** Tag/untag the attach pane with `nodeId` so the host-agnostic `nodeInPane()`
|
|
15
|
+
* (Alt+C cycle/recycle/close/demote) resolves this broker-hosted node from its
|
|
16
|
+
* viewer pane — LOCAL ONLY. Remote never sets `@crtr_node`, so local Alt+C
|
|
17
|
+
* lifecycle can never resolve a remote id (or a local id it collides with)
|
|
18
|
+
* from this pane. */
|
|
19
|
+
export declare function tagAttachPane(remote: boolean, pane: string | undefined, nodeId: string, setOpt?: (pane: string, name: string, value: string) => void): void;
|
|
20
|
+
export declare function untagAttachPane(remote: boolean, pane: string | undefined, setOpt?: (pane: string, name: string, value: string) => void): void;
|
|
21
|
+
/** A clean detach reaps an empty LOCAL node (an AI-output-free shell the user
|
|
22
|
+
* walked away from) — LOCAL ONLY. `reapIfEmpty` deletes a local canvas.db row;
|
|
23
|
+
* remote never calls it, so a remote attach can never delete a local node on
|
|
24
|
+
* detach even when the remote id collides with one. */
|
|
25
|
+
export declare function reapOnDetach(remote: boolean, nodeId: string, reap?: (nodeId: string) => void): void;
|
|
26
|
+
/** The hello handshake's initial role. A REMOTE attach (`--canvas`) is a
|
|
27
|
+
* strictly VIEW-ONLY surface (Phase 3 review Major 1) — it must claim
|
|
28
|
+
* observer regardless of `--observer`, never controller. Local attach keeps
|
|
29
|
+
* today's exact behavior: controller unless `--observer`. Exported pure so
|
|
30
|
+
* the "remote is always observer" contract is unit-testable without
|
|
31
|
+
* constructing a real hello/socket. */
|
|
32
|
+
export declare function resolveHelloRole(remote: boolean, observer: boolean): ClientRole;
|
|
5
33
|
/** Derive the shell-mode cue from the editor contents. Leading whitespace is
|
|
6
34
|
* ignored so pasted commands and indented text still toggle correctly. */
|
|
7
35
|
export declare function deriveBashMode(text: string): 0 | 1 | 2;
|
|
@@ -13,7 +41,7 @@ export declare function resolveEditorFrameStyles(bashMode: 0 | 1 | 2, thinkingLe
|
|
|
13
41
|
export declare function buildAttachAutocompleteProvider(cwd: string, fdPath: string | null, commands?: ReadonlyArray<{
|
|
14
42
|
name: string;
|
|
15
43
|
description?: string;
|
|
16
|
-
}>, createProvider?: (items: ReadonlyArray<{
|
|
44
|
+
}>, remote?: boolean, createProvider?: (items: ReadonlyArray<{
|
|
17
45
|
name: string;
|
|
18
46
|
description?: string;
|
|
19
47
|
}>, cwd: string, fdPath: string | null) => CombinedAutocompleteProvider): CombinedAutocompleteProvider;
|