yourskills 0.4.2 → 0.4.3
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/main.js +18 -9
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -1198,6 +1198,7 @@ function LoginScreen({
|
|
|
1198
1198
|
const { exit } = useApp();
|
|
1199
1199
|
const width = useFrameWidth();
|
|
1200
1200
|
const [state, setState] = useState3({ phase: "starting" });
|
|
1201
|
+
const [finished, setFinished] = useState3(false);
|
|
1201
1202
|
useEffect2(() => {
|
|
1202
1203
|
let live = true;
|
|
1203
1204
|
(async () => {
|
|
@@ -1218,15 +1219,18 @@ function LoginScreen({
|
|
|
1218
1219
|
}
|
|
1219
1220
|
if (!live)
|
|
1220
1221
|
return;
|
|
1222
|
+
setFinished(true);
|
|
1221
1223
|
if (onDone)
|
|
1222
1224
|
onDone();
|
|
1223
|
-
else
|
|
1224
|
-
exit();
|
|
1225
1225
|
})();
|
|
1226
1226
|
return () => {
|
|
1227
1227
|
live = false;
|
|
1228
1228
|
};
|
|
1229
|
-
}, [
|
|
1229
|
+
}, [onError, onDone]);
|
|
1230
|
+
useEffect2(() => {
|
|
1231
|
+
if (finished && !onDone)
|
|
1232
|
+
exit();
|
|
1233
|
+
}, [finished, onDone, exit]);
|
|
1230
1234
|
if (state.phase === "done") {
|
|
1231
1235
|
return /* @__PURE__ */ jsx8(Frame, {
|
|
1232
1236
|
title: "login",
|
|
@@ -2273,13 +2277,15 @@ function Installer({
|
|
|
2273
2277
|
return;
|
|
2274
2278
|
setDone(true);
|
|
2275
2279
|
onDone?.(summarise(current));
|
|
2276
|
-
if (exitWhenDone)
|
|
2277
|
-
exit();
|
|
2278
2280
|
})();
|
|
2279
2281
|
return () => {
|
|
2280
2282
|
live = false;
|
|
2281
2283
|
};
|
|
2282
|
-
}, [stream, onDone
|
|
2284
|
+
}, [stream, onDone]);
|
|
2285
|
+
useEffect4(() => {
|
|
2286
|
+
if (done && exitWhenDone)
|
|
2287
|
+
exit();
|
|
2288
|
+
}, [done, exit, exitWhenDone]);
|
|
2283
2289
|
const counts = done ? receipt(lines) : null;
|
|
2284
2290
|
const pending = counts?.pending ?? 0;
|
|
2285
2291
|
const questions = counts?.questions ?? 0;
|
|
@@ -3066,7 +3072,6 @@ function CatalogScreen({
|
|
|
3066
3072
|
if (!live)
|
|
3067
3073
|
return;
|
|
3068
3074
|
setRows(result);
|
|
3069
|
-
exit();
|
|
3070
3075
|
}).catch((error) => {
|
|
3071
3076
|
if (live)
|
|
3072
3077
|
onError(error);
|
|
@@ -3074,7 +3079,11 @@ function CatalogScreen({
|
|
|
3074
3079
|
return () => {
|
|
3075
3080
|
live = false;
|
|
3076
3081
|
};
|
|
3077
|
-
}, [load,
|
|
3082
|
+
}, [load, onError]);
|
|
3083
|
+
useEffect7(() => {
|
|
3084
|
+
if (rows !== null)
|
|
3085
|
+
exit();
|
|
3086
|
+
}, [rows, exit]);
|
|
3078
3087
|
if (rows === null) {
|
|
3079
3088
|
return /* @__PURE__ */ jsx14(Frame, {
|
|
3080
3089
|
title,
|
|
@@ -5808,7 +5817,7 @@ import { realpathSync } from "node:fs";
|
|
|
5808
5817
|
// package.json
|
|
5809
5818
|
var package_default = {
|
|
5810
5819
|
name: "yourskills",
|
|
5811
|
-
version: "0.4.
|
|
5820
|
+
version: "0.4.3",
|
|
5812
5821
|
description: "Browse, install and keep up to date the agent skills and bundles your team publishes on yourskills.",
|
|
5813
5822
|
license: "UNLICENSED",
|
|
5814
5823
|
homepage: "https://yourskills.store",
|
package/package.json
CHANGED