flaio-cli 0.3.1 → 1.0.0
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
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Flaio
|
|
2
2
|
|
|
3
|
+
> **This project has been renamed to [Flaio](https://github.com/flaio-ai/flaio) and now lives at [github.com/flaio-ai/flaio](https://github.com/flaio-ai/flaio).**
|
|
4
|
+
>
|
|
5
|
+
> Install the new package: `npm install -g flaio-cli`
|
|
6
|
+
>
|
|
7
|
+
> This repository is archived and will no longer receive updates.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
3
11
|
A terminal UI application for managing multiple AI CLI agents in tabbed sessions. Run Claude Code and Gemini CLI side by side, get permission requests forwarded to Slack, Discord, or Telegram, and adopt standalone agents already running on your system — all from a single interface.
|
|
4
12
|
|
|
5
13
|
Built with [Ink](https://github.com/vadimdemedes/ink) (React for CLIs), [node-pty](https://github.com/microsoft/node-pty), and [xterm-headless](https://github.com/xtermjs/xterm.js).
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface ViewerApprovalDialogProps {
|
|
3
|
-
onApprove: (viewerId: string) => void;
|
|
4
|
-
onDeny: (viewerId: string) => void;
|
|
5
|
-
onClose: () => void;
|
|
6
|
-
}
|
|
7
|
-
export declare function ViewerApprovalDialog({ onApprove, onDeny, onClose, }: ViewerApprovalDialogProps): React.ReactElement;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=viewer-approval-dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-approval-dialog.d.ts","sourceRoot":"","sources":["../../../src/ui/components/viewer-approval-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAI9D,UAAU,yBAAyB;IACjC,SAAS,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,MAAM,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,SAAS,EACT,MAAM,EACN,OAAO,GACR,EAAE,yBAAyB,GAAG,KAAK,CAAC,YAAY,CAwFhD"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useSyncExternalStore } from "react";
|
|
3
|
-
import { Box, Text, useInput } from "ink";
|
|
4
|
-
import { relayStore } from "../../relay/relay-store.js";
|
|
5
|
-
export function ViewerApprovalDialog({ onApprove, onDeny, onClose, }) {
|
|
6
|
-
const pendingViewers = useSyncExternalStore(relayStore.subscribe, () => relayStore.getState().pendingViewers);
|
|
7
|
-
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
8
|
-
useInput((input, key) => {
|
|
9
|
-
if (key.escape) {
|
|
10
|
-
onClose();
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
if (pendingViewers.length === 0)
|
|
14
|
-
return;
|
|
15
|
-
if (key.downArrow) {
|
|
16
|
-
setSelectedIndex((i) => Math.min(i + 1, pendingViewers.length - 1));
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
if (key.upArrow) {
|
|
20
|
-
setSelectedIndex((i) => Math.max(i - 1, 0));
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
if (key.return) {
|
|
24
|
-
const v = pendingViewers[selectedIndex];
|
|
25
|
-
if (v)
|
|
26
|
-
onApprove(v.viewerId);
|
|
27
|
-
}
|
|
28
|
-
if (input === "d") {
|
|
29
|
-
const v = pendingViewers[selectedIndex];
|
|
30
|
-
if (v)
|
|
31
|
-
onDeny(v.viewerId);
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
return (_jsx(Box, { flexDirection: "column", alignItems: "center", justifyContent: "center", width: "100%", height: "100%", children: _jsxs(Box, { flexDirection: "column", borderStyle: "round", borderColor: "yellow", paddingX: 2, paddingY: 1, width: 60, children: [_jsx(Text, { bold: true, color: "yellow", children: "Viewer Approval Required" }), _jsx(Text, { dimColor: true, children: "A remote viewer wants to connect:" }), pendingViewers.length === 0 ? (_jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: "No pending viewers. Press Esc to close." }) })) : (_jsx(Box, { flexDirection: "column", marginTop: 1, children: pendingViewers.map((v, i) => (_jsx(Box, { children: _jsxs(Text, { color: i === selectedIndex ? "cyan" : undefined, bold: i === selectedIndex, children: [i === selectedIndex ? "▸ " : " ", "Viewer ", v.viewerId.slice(0, 8), "... \u2192 Session", " ", v.sessionId.slice(0, 8), "..."] }) }, v.viewerId))) })), _jsx(Box, { marginTop: 1, children: _jsx(Text, { dimColor: true, children: pendingViewers.length > 0
|
|
35
|
-
? "↑↓ navigate · Enter approve · d deny · Esc dismiss"
|
|
36
|
-
: "Esc close" }) })] }) }));
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=viewer-approval-dialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"viewer-approval-dialog.js","sourceRoot":"","sources":["../../../src/ui/components/viewer-approval-dialog.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAQxD,MAAM,UAAU,oBAAoB,CAAC,EACnC,SAAS,EACT,MAAM,EACN,OAAO,GACmB;IAC1B,MAAM,cAAc,GAAG,oBAAoB,CACzC,UAAU,CAAC,SAAS,EACpB,GAAG,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,cAAc,CAC3C,CAAC;IACF,MAAM,CA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