perstack 0.0.107 → 0.0.108
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/bin/cli.js +11 -17
- package/dist/bin/cli.js.map +1 -1
- package/package.json +3 -3
package/dist/bin/cli.js
CHANGED
|
@@ -119476,7 +119476,7 @@ const selectionReducer = (_state, action) => {
|
|
|
119476
119476
|
}
|
|
119477
119477
|
};
|
|
119478
119478
|
const SelectionApp = (props) => {
|
|
119479
|
-
const { showHistory,
|
|
119479
|
+
const { showHistory, configuredExperts, recentExperts, historyJobs, onLoadCheckpoints, onComplete } = props;
|
|
119480
119480
|
const { exit } = useApp();
|
|
119481
119481
|
const allExperts = (0, import_react.useMemo)(() => {
|
|
119482
119482
|
const configured = configuredExperts.map((e) => ({
|
|
@@ -119511,20 +119511,6 @@ const SelectionApp = (props) => {
|
|
|
119511
119511
|
onComplete,
|
|
119512
119512
|
exit
|
|
119513
119513
|
]);
|
|
119514
|
-
(0, import_react.useEffect)(() => {
|
|
119515
|
-
if (initialExpertKey) {
|
|
119516
|
-
onComplete({
|
|
119517
|
-
expertKey: initialExpertKey,
|
|
119518
|
-
checkpoint: initialCheckpoint
|
|
119519
|
-
});
|
|
119520
|
-
exit();
|
|
119521
|
-
}
|
|
119522
|
-
}, [
|
|
119523
|
-
initialExpertKey,
|
|
119524
|
-
initialCheckpoint,
|
|
119525
|
-
onComplete,
|
|
119526
|
-
exit
|
|
119527
|
-
]);
|
|
119528
119514
|
const completeWithExpert = (0, import_react.useCallback)((expertKey, checkpoint) => {
|
|
119529
119515
|
setExitResult({
|
|
119530
119516
|
expertKey,
|
|
@@ -119602,7 +119588,7 @@ const SelectionApp = (props) => {
|
|
|
119602
119588
|
handleSwitchToExperts,
|
|
119603
119589
|
handleSwitchToHistory
|
|
119604
119590
|
]);
|
|
119605
|
-
if (exitResult
|
|
119591
|
+
if (exitResult) return null;
|
|
119606
119592
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Box, {
|
|
119607
119593
|
flexDirection: "column",
|
|
119608
119594
|
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InputAreaProvider, {
|
|
@@ -119620,8 +119606,16 @@ const SelectionApp = (props) => {
|
|
|
119620
119606
|
/**
|
|
119621
119607
|
* Renders the selection TUI phase.
|
|
119622
119608
|
* Returns a promise that resolves with the selection result (expert and checkpoint).
|
|
119609
|
+
*
|
|
119610
|
+
* When `initialExpertKey` is provided, returns immediately without rendering the TUI.
|
|
119611
|
+
* This avoids Ink lifecycle issues in compiled binaries where React effects may not
|
|
119612
|
+
* fire before the process exits.
|
|
119623
119613
|
*/
|
|
119624
119614
|
async function renderSelection(params) {
|
|
119615
|
+
if (params.initialExpertKey) return {
|
|
119616
|
+
expertKey: params.initialExpertKey,
|
|
119617
|
+
checkpoint: params.initialCheckpoint
|
|
119618
|
+
};
|
|
119625
119619
|
return new Promise((resolve, reject) => {
|
|
119626
119620
|
let selectionResult;
|
|
119627
119621
|
const { waitUntilExit } = render(/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectionApp, {
|
|
@@ -119775,7 +119769,7 @@ async function startHandler(expertKey, query, options, handlerOptions) {
|
|
|
119775
119769
|
//#endregion
|
|
119776
119770
|
//#region package.json
|
|
119777
119771
|
var name = "perstack";
|
|
119778
|
-
var version = "0.0.
|
|
119772
|
+
var version = "0.0.108";
|
|
119779
119773
|
var description = "PerStack CLI";
|
|
119780
119774
|
|
|
119781
119775
|
//#endregion
|