@nexus-cortex/tui 4.130.0 → 4.131.2
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/commands/agent/index.d.ts.map +1 -1
- package/dist/commands/agent/index.js +2 -0
- package/dist/commands/agent/index.js.map +1 -1
- package/dist/commands/chat/interactive.d.ts.map +1 -1
- package/dist/commands/chat/interactive.js +22 -4
- package/dist/commands/chat/interactive.js.map +1 -1
- package/dist/commands/system-message/index.d.ts.map +1 -1
- package/dist/commands/system-message/index.js +2 -0
- package/dist/commands/system-message/index.js.map +1 -1
- package/dist/commands/ui/artifacts.d.ts.map +1 -1
- package/dist/commands/ui/artifacts.js +2 -0
- package/dist/commands/ui/artifacts.js.map +1 -1
- package/dist/commands/ui/config.d.ts.map +1 -1
- package/dist/commands/ui/config.js +2 -0
- package/dist/commands/ui/config.js.map +1 -1
- package/dist/commands/ui/context.d.ts.map +1 -1
- package/dist/commands/ui/context.js +2 -0
- package/dist/commands/ui/context.js.map +1 -1
- package/dist/commands/ui/middleware.d.ts.map +1 -1
- package/dist/commands/ui/middleware.js +2 -0
- package/dist/commands/ui/middleware.js.map +1 -1
- package/dist/commands/ui/models.d.ts.map +1 -1
- package/dist/commands/ui/models.js +2 -0
- package/dist/commands/ui/models.js.map +1 -1
- package/dist/commands/ui/permissions.d.ts.map +1 -1
- package/dist/commands/ui/permissions.js +2 -0
- package/dist/commands/ui/permissions.js.map +1 -1
- package/dist/commands/ui/sessions.d.ts.map +1 -1
- package/dist/commands/ui/sessions.js +2 -0
- package/dist/commands/ui/sessions.js.map +1 -1
- package/dist/commands/ui/system-messages.d.ts.map +1 -1
- package/dist/commands/ui/system-messages.js +2 -0
- package/dist/commands/ui/system-messages.js.map +1 -1
- package/dist/commands/ui/themes.d.ts.map +1 -1
- package/dist/commands/ui/themes.js +2 -0
- package/dist/commands/ui/themes.js.map +1 -1
- package/dist/commands/ui/tmux.d.ts.map +1 -1
- package/dist/commands/ui/tmux.js +2 -0
- package/dist/commands/ui/tmux.js.map +1 -1
- package/dist/ink-ui/CortexApp.d.ts.map +1 -1
- package/dist/ink-ui/CortexApp.js +10 -5
- package/dist/ink-ui/CortexApp.js.map +1 -1
- package/dist/ink-ui/components/SecretsDialog.d.ts +19 -0
- package/dist/ink-ui/components/SecretsDialog.d.ts.map +1 -0
- package/dist/ink-ui/components/SecretsDialog.js +275 -0
- package/dist/ink-ui/components/SecretsDialog.js.map +1 -0
- package/dist/ui/InkApprovalDialog.d.ts.map +1 -1
- package/dist/ui/InkApprovalDialog.js +2 -0
- package/dist/ui/InkApprovalDialog.js.map +1 -1
- package/dist/ui/InkCommandPalette.d.ts.map +1 -1
- package/dist/ui/InkCommandPalette.js +2 -0
- package/dist/ui/InkCommandPalette.js.map +1 -1
- package/dist/ui/InkConfigMenu.d.ts.map +1 -1
- package/dist/ui/InkConfigMenu.js +2 -0
- package/dist/ui/InkConfigMenu.js.map +1 -1
- package/dist/ui/InkHelp.d.ts.map +1 -1
- package/dist/ui/InkHelp.js +2 -0
- package/dist/ui/InkHelp.js.map +1 -1
- package/dist/ui/InkMenuPicker.d.ts.map +1 -1
- package/dist/ui/InkMenuPicker.js +2 -0
- package/dist/ui/InkMenuPicker.js.map +1 -1
- package/dist/ui/InkModelPicker.d.ts.map +1 -1
- package/dist/ui/InkModelPicker.js +2 -0
- package/dist/ui/InkModelPicker.js.map +1 -1
- package/dist/ui/InkSecretsDialog.d.ts +3 -0
- package/dist/ui/InkSecretsDialog.d.ts.map +1 -0
- package/dist/ui/InkSecretsDialog.js +19 -0
- package/dist/ui/InkSecretsDialog.js.map +1 -0
- package/dist/ui/inkStdin.d.ts +10 -0
- package/dist/ui/inkStdin.d.ts.map +1 -0
- package/dist/ui/inkStdin.js +18 -0
- package/dist/ui/inkStdin.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* /secrets for fuzzycortex — mounts the SAME SecretsDialog neoncortex uses (ink-ui/components/SecretsDialog.tsx) through an imperative
|
|
4
|
+
* Ink render, like showConfigMenu. Returns the value-free notices ("stored GITHUB_TOKEN") so the caller can print them after the dialog
|
|
5
|
+
* closes; values never leave the dialog.
|
|
6
|
+
*/
|
|
7
|
+
import { render } from 'ink';
|
|
8
|
+
import { wakeStdinForInk } from './inkStdin.js';
|
|
9
|
+
import { SecretsDialog } from '../ink-ui/components/SecretsDialog.js';
|
|
10
|
+
export async function showSecretsDialog() {
|
|
11
|
+
const notices = [];
|
|
12
|
+
return new Promise((resolve) => {
|
|
13
|
+
const { unmount, waitUntilExit } = render(_jsx(SecretsDialog, { onNotice: (t) => notices.push(t), onClose: () => { unmount(); resolve(notices); } }));
|
|
14
|
+
wakeStdinForInk();
|
|
15
|
+
waitUntilExit().catch(() => resolve(notices));
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export default showSecretsDialog;
|
|
19
|
+
//# sourceMappingURL=InkSecretsDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InkSecretsDialog.js","sourceRoot":"","sources":["../../src/ui/InkSecretsDialog.tsx"],"names":[],"mappings":";AAAA;;;;GAIG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,MAAM,CAAC,KAAK,UAAU,iBAAiB;IACrC,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,MAAM,CACvC,KAAC,aAAa,IAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAI,CACrG,CAAC;QACF,eAAe,EAAE,CAAC;QAClB,aAAa,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ink overlays mounted with an imperative render() from fuzzycortex's readline loop can come up DEAF: process.stdin's TTY handle is
|
|
3
|
+
* stopped (Node stops it on 'pause' — rl.pause() / the raw input's teardown) and Ink's 'readable' listener does not always restart it
|
|
4
|
+
* (it only schedules a read when the stream is not already marked readable-listening, which a listener removed and re-added in the
|
|
5
|
+
* same tick leaves set). Symptom: the dialog draws but no key reaches useInput (2026-11-02: /secrets and /config in fuzzycortex;
|
|
6
|
+
* probe showed _handle.reading=false, no 'readable' events). read(0) is the public way to restart the handle; harmless when it runs.
|
|
7
|
+
* Call it right after render().
|
|
8
|
+
*/
|
|
9
|
+
export declare function wakeStdinForInk(): void;
|
|
10
|
+
//# sourceMappingURL=inkStdin.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inkStdin.d.ts","sourceRoot":"","sources":["../../src/ui/inkStdin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAItC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ink overlays mounted with an imperative render() from fuzzycortex's readline loop can come up DEAF: process.stdin's TTY handle is
|
|
3
|
+
* stopped (Node stops it on 'pause' — rl.pause() / the raw input's teardown) and Ink's 'readable' listener does not always restart it
|
|
4
|
+
* (it only schedules a read when the stream is not already marked readable-listening, which a listener removed and re-added in the
|
|
5
|
+
* same tick leaves set). Symptom: the dialog draws but no key reaches useInput (2026-11-02: /secrets and /config in fuzzycortex;
|
|
6
|
+
* probe showed _handle.reading=false, no 'readable' events). read(0) is the public way to restart the handle; harmless when it runs.
|
|
7
|
+
* Call it right after render().
|
|
8
|
+
*/
|
|
9
|
+
export function wakeStdinForInk() {
|
|
10
|
+
setImmediate(() => {
|
|
11
|
+
try {
|
|
12
|
+
if (process.stdin.isTTY)
|
|
13
|
+
process.stdin.read(0);
|
|
14
|
+
}
|
|
15
|
+
catch { /* stdin closed — nothing to wake */ }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=inkStdin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inkStdin.js","sourceRoot":"","sources":["../../src/ui/inkStdin.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe;IAC7B,YAAY,CAAC,GAAG,EAAE;QAChB,IAAI,CAAC;YAAC,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK;gBAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAAC,CAAC;QAAC,MAAM,CAAC,CAAC,oCAAoC,CAAC,CAAC;IACxG,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexus-cortex/tui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.131.2",
|
|
4
4
|
"description": "Nexus Cortex interactive terminal UI (React/Ink) — the polished cockpit + launchers over @nexus-cortex/cli",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dev": "tsx watch src/index.ts"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@nexus-cortex/cli": "4.
|
|
22
|
-
"@nexus-cortex/core": "4.
|
|
21
|
+
"@nexus-cortex/cli": "4.131.2",
|
|
22
|
+
"@nexus-cortex/core": "4.131.2",
|
|
23
23
|
"chalk": "^4.1.2",
|
|
24
24
|
"cli-spinners": "^2.9.0",
|
|
25
25
|
"commander": "^11.0.0",
|