@phreshos/cli 0.1.26 → 0.1.28

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.
@@ -86,6 +86,7 @@ async function readProgram(directory, release) {
86
86
  return {
87
87
  ...value,
88
88
  ...pathField(value, directory, "icon", "icon.png"),
89
+ ...pathField(value, directory, "agent", "agent.md"),
89
90
  ...half(value, directory, "server"),
90
91
  ...half(value, directory, "client")
91
92
  };
@@ -18,11 +18,14 @@ export async function gatewayReady(path) {
18
18
  }
19
19
  export async function waitForGateway(path, running, timeout = 15_000) {
20
20
  const until = Date.now() + timeout;
21
+ let observedRunning = false;
21
22
  while (Date.now() < until) {
22
23
  if (await gatewayReady(path))
23
24
  return;
24
- if (!await running())
25
+ const isRunning = await running();
26
+ if (observedRunning && !isRunning)
25
27
  throw new Error("The PhreshOS System stopped before its gateway became ready");
28
+ observedRunning ||= isRunning;
26
29
  await new Promise(resolve => setTimeout(resolve, 100));
27
30
  }
28
31
  throw new Error(`The PhreshOS System did not become ready within ${Math.ceil(timeout / 1000)} seconds`);
@@ -22,7 +22,7 @@
22
22
  "react-dom": "^19.2.8"
23
23
  },
24
24
  "devDependencies": {
25
- "@phreshos/cli": "^0.1.26",
25
+ "@phreshos/cli": "^0.1.28",
26
26
  "@types/node": "^26.2.0",
27
27
  "@types/react": "^19.2.18",
28
28
  "@types/react-dom": "^19.2.4",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@phreshos/cli",
3
3
  "type": "module",
4
- "version": "0.1.26",
4
+ "version": "0.1.28",
5
5
  "description": "The Phresh command-line interface for Program projects and system management.",
6
6
  "engines": {
7
7
  "node": ">=20.10"