reevesagents 1.2.0 → 1.3.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.
@@ -0,0 +1,29 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ stateRoot
4
+ } from "./chunk-65LHCGPC.js";
5
+
6
+ // src/core/tui-open.ts
7
+ import { mkdirSync, readFileSync, writeFileSync } from "fs";
8
+ import { join } from "path";
9
+ function tokenPath() {
10
+ return join(stateRoot(), "tui-open-token");
11
+ }
12
+ function readTuiOpenToken() {
13
+ try {
14
+ return readFileSync(tokenPath(), "utf-8").trim();
15
+ } catch {
16
+ return "";
17
+ }
18
+ }
19
+ function writeTuiOpenToken() {
20
+ mkdirSync(stateRoot(), { recursive: true });
21
+ writeFileSync(tokenPath(), `${Date.now()}
22
+ `, "utf-8");
23
+ }
24
+
25
+ export {
26
+ readTuiOpenToken,
27
+ writeTuiOpenToken
28
+ };
29
+ //# sourceMappingURL=chunk-4W6MVOPK.js.map
@@ -28,7 +28,7 @@ async function startTuiWebServer() {
28
28
  const { checkWebExtras, webExtrasMessage } = await import("./extras-25AF6TAR.js");
29
29
  const extras = await checkWebExtras();
30
30
  if (!extras.ok) throw new Error(webExtrasMessage(extras.missing));
31
- const { startWebServer } = await import("./server-Z2YTGWSX.js");
31
+ const { startWebServer } = await import("./server-ZJKAIRL5.js");
32
32
  return startWebServer({ open: true });
33
33
  }
34
34
  async function closeTuiWebServer() {
@@ -48,4 +48,4 @@ export {
48
48
  startWebFromTui,
49
49
  closeTuiWebServer
50
50
  };
51
- //# sourceMappingURL=chunk-4Q3JF22J.js.map
51
+ //# sourceMappingURL=chunk-5DOCQLT7.js.map