@dotdrelle/wiki-manager 0.15.49 → 0.15.52
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 +20 -961
- package/docker-compose.yml +7 -1
- package/package.json +10 -2
- package/src/agent/graph.js +4 -36
- package/src/agent/graph.test.js +12 -54
- package/src/cli/wiki-manager.js +28 -4
- package/src/commands/slash.js +1 -1
- package/src/core/agentEvents.js +12 -1
- package/src/core/agentEvents.test.js +21 -0
- package/src/core/buildInfo.json +2 -2
- package/src/core/dockerCompose.test.js +18 -0
- package/src/core/mcp.js +1 -1
- package/src/orchestrator/.fuse_hidden0000001c00000001 +316 -0
- package/src/orchestrator/agentRegistry.js +54 -0
- package/src/orchestrator/agentRegistry.test.js +75 -0
- package/src/runtime/client.js +2 -0
- package/src/runtime/delegation.js +1 -1
- package/src/runtime/runner.js +3 -3
- package/src/runtime/server.js +5 -4
- package/src/runtime/server.test.js +12 -1
- package/src/runtime/supervisor.js +18 -1
- package/src/runtime/supervisor.test.js +43 -0
- package/src/shell/LeftPane.tsx +17 -5
- package/src/shell/StartupScreen.tsx +9 -4
- package/src/shell/repl.js +1 -0
package/src/shell/LeftPane.tsx
CHANGED
|
@@ -822,14 +822,17 @@ export function LeftPane(props: {
|
|
|
822
822
|
const showWelcome = () => props.showWelcome && props.messages.length === 0;
|
|
823
823
|
return (
|
|
824
824
|
<box width={props.width} height="100%" flexDirection="column" padding={1} overflow="hidden">
|
|
825
|
-
|
|
825
|
+
{/*
|
|
826
|
+
The header keeps what changes the MEANING of what is typed — the mode,
|
|
827
|
+
and the transient hint. Workspace, version and connection states moved
|
|
828
|
+
to the foot of the pane: they are an ambient state one glances at, not
|
|
829
|
+
something read before every message, and at the top they pushed the
|
|
830
|
+
conversation down by a line for standing information.
|
|
831
|
+
*/}
|
|
832
|
+
<box height={2} flexDirection="column">
|
|
826
833
|
<box height={1} flexDirection="row" backgroundColor={modeColor()} paddingX={1}>
|
|
827
834
|
<text fg="#0B1020">{modeLabel()}</text>
|
|
828
835
|
</box>
|
|
829
|
-
<box height={1} flexDirection="row">
|
|
830
|
-
<text fg="#D6DEE8">{props.title}</text>
|
|
831
|
-
<text fg="#7F8C8D"> {props.statusLine}</text>
|
|
832
|
-
</box>
|
|
833
836
|
<box height={1} flexDirection="row">
|
|
834
837
|
{props.hintLine ? <text fg="#FBBF24">[ {props.hintLine} ]</text> : null}
|
|
835
838
|
</box>
|
|
@@ -860,6 +863,15 @@ export function LeftPane(props: {
|
|
|
860
863
|
onSubmit={props.submit}
|
|
861
864
|
onHeightChange={props.onInputHeightChange}
|
|
862
865
|
/>
|
|
866
|
+
{/*
|
|
867
|
+
Status foot. One line, as in the header before it, so the row budget of
|
|
868
|
+
`conversationRows` (height - 5 - input) is unchanged: the line moved,
|
|
869
|
+
it was not added.
|
|
870
|
+
*/}
|
|
871
|
+
<box height={1} flexDirection="row">
|
|
872
|
+
<text fg="#D6DEE8">{props.title}</text>
|
|
873
|
+
<text fg="#7F8C8D"> {props.statusLine}</text>
|
|
874
|
+
</box>
|
|
863
875
|
</box>
|
|
864
876
|
);
|
|
865
877
|
}
|
|
@@ -249,7 +249,15 @@ export function StartupScreen(props: {
|
|
|
249
249
|
return `${workspace} / ${profile}`;
|
|
250
250
|
});
|
|
251
251
|
|
|
252
|
-
|
|
252
|
+
/*
|
|
253
|
+
Usable width inside the panel.
|
|
254
|
+
|
|
255
|
+
The panel has no border any more, only `padding={2}`: 4 columns, not 6. The
|
|
256
|
+
two extra columns were the border's, and keeping them would leave the text
|
|
257
|
+
measured for a frame that is no longer drawn — every `fit()` truncating two
|
|
258
|
+
characters early for nothing.
|
|
259
|
+
*/
|
|
260
|
+
const innerWidth = createMemo(() => Math.max(40, panelWidth() - 4));
|
|
253
261
|
const shortcutHint = createMemo(() => {
|
|
254
262
|
const count = currentLength();
|
|
255
263
|
const quick = count === 1 ? '1 quick select' : `1-${count} quick select`;
|
|
@@ -267,9 +275,6 @@ export function StartupScreen(props: {
|
|
|
267
275
|
top={top()}
|
|
268
276
|
width={panelWidth()}
|
|
269
277
|
height={panelHeight()}
|
|
270
|
-
border
|
|
271
|
-
borderStyle="rounded"
|
|
272
|
-
borderColor="#8BD5CA"
|
|
273
278
|
backgroundColor="#111318"
|
|
274
279
|
padding={2}
|
|
275
280
|
flexDirection="column"
|
package/src/shell/repl.js
CHANGED
|
@@ -2115,6 +2115,7 @@ async function runTuiShell({ agent, packageJson, session, runtime = null }) {
|
|
|
2115
2115
|
url: runtime.url,
|
|
2116
2116
|
workspace: session.workspace ?? null,
|
|
2117
2117
|
...(kind === 'item' ? { itemId: id } : kind === 'approval' ? { approvalId: id } : { runId: id }),
|
|
2118
|
+
caller: 'shell-/approve',
|
|
2118
2119
|
});
|
|
2119
2120
|
conversationMessages(session).push({ role: 'command', content: `Approval ${result.approved ? 'accepted' : 'not found'}: ${id}` });
|
|
2120
2121
|
syncRuntimeState();
|