@conveno/cli 0.2.0-rc.4 → 0.2.0-rc.6
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 +28 -29
- package/dist/acp-3xehqLdo.js +82 -0
- package/dist/args-D9T-6TDw.js +315 -0
- package/dist/bin.js +2 -2
- package/dist/{ctx-CDLE-2f2.js → ctx-tYftvhz_.js} +2 -3
- package/dist/daemon.js +361 -1203
- package/dist/daemonError-CdLataBW.js +66 -0
- package/dist/{dist-CuStS_nO.js → dist-BAlMjYqQ.js} +39 -148
- package/dist/{dist-DUqXHTRg.js → dist-BTLBO1Rp.js} +373 -1130
- package/dist/{dist-CiE50AoI.js → dist-BYVibI3a.js} +4 -17
- package/dist/{dist-CfwMkSGH.js → dist-CNyzLyZh.js} +161 -1554
- package/dist/{dist-BmpWfYuM.js → dist-DIAtMDWW.js} +1 -1
- package/dist/dist-LkcRvVjE.js +449 -0
- package/dist/{doctor-Bckon1ju.js → doctor-DjwXJvKw.js} +26 -94
- package/dist/fmt-C2SsP5Y0.js +96 -0
- package/dist/{hook-DUMp43Xn.js → hook-BGJc4PHG.js} +2 -4
- package/dist/hook-entry-BWWJS7n3.js +2622 -0
- package/dist/hook-entry-rDISaMgP.js +1 -0
- package/dist/main-CRw-fISR.js +971 -0
- package/dist/pick-B-18E4Mx.js +9 -0
- package/dist/{run-BEhIahUS.js → run-Yi48fiJN.js} +286 -1667
- package/dist/{runtime-BS-SUGVR.js → runtime-DyknkzAS.js} +136 -209
- package/dist/sidecar-CTKxOMie.js +98 -0
- package/dist/watch-CfYanJvt.js +109 -0
- package/package.json +15 -15
- package/dist/acp-Bs2yS0Qg.js +0 -142
- package/dist/args-DEYV4Ran.js +0 -517
- package/dist/dist-DcmKjrmu.js +0 -271
- package/dist/hook-entry-C-HTnddc.js +0 -1289
- package/dist/hook-entry-DP6eq6qr.js +0 -1
- package/dist/main-ByyF0srt.js +0 -1448
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { on as SessionId } from "./dist-BTLBO1Rp.js";
|
|
2
|
+
// src/pick.ts
|
|
3
|
+
/** The online session a name or id means, or undefined when nothing matches. */
|
|
4
|
+
async function findSession(client, text) {
|
|
5
|
+
const { sessions } = await client["session.list"]({});
|
|
6
|
+
if (SessionId.safeParse(text).success) return sessions.find((s) => s.id === text);
|
|
7
|
+
return sessions.filter((s) => s.name === text)[0];
|
|
8
|
+
}
|
|
9
|
+
export { findSession as t };
|