clawnify 0.20.4 → 0.20.5

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.
@@ -605,9 +605,19 @@ async function pollUntilReady(resourceId, options = {}) {
605
605
  let lastMessage = "";
606
606
  let statusless = 0;
607
607
  const STATUSLESS_LIMIT = 3;
608
+ let lostContact = null;
608
609
  while (Date.now() - start < timeout) {
609
- const res = options.anonToken ? await api.request("GET", `${basePath}/${resourceId}`, { token: options.anonToken }) : await api.get(`${basePath}/${resourceId}`, { orgId: options.orgId });
610
- const data = await res.json();
610
+ let data;
611
+ try {
612
+ const res = options.anonToken ? await api.request("GET", `${basePath}/${resourceId}`, { token: options.anonToken }) : await api.get(`${basePath}/${resourceId}`, { orgId: options.orgId });
613
+ if (res.status >= 500) throw new Error(`HTTP ${res.status}`);
614
+ data = await res.json();
615
+ lostContact = null;
616
+ } catch (err) {
617
+ lostContact = err?.message ?? String(err);
618
+ await new Promise((r) => setTimeout(r, interval));
619
+ continue;
620
+ }
611
621
  if (!data.status) {
612
622
  if (++statusless >= STATUSLESS_LIMIT) {
613
623
  if (isTTY) process.stdout.write("\r\x1B[K");
@@ -639,11 +649,16 @@ async function pollUntilReady(resourceId, options = {}) {
639
649
  await new Promise((r) => setTimeout(r, interval));
640
650
  }
641
651
  if (isTTY) process.stdout.write("\r\x1B[K");
652
+ if (lostContact) {
653
+ throw new Error(
654
+ `Lost contact with Clawnify while watching the deploy (${lostContact}), so its outcome is unknown. The build keeps running on our side; ` + (kind === "app" && !options.anonToken ? `check it with \`clawnify logs ${resourceId}\`.` : `check it in the dashboard.`)
655
+ );
656
+ }
642
657
  throw new Error("Timed out waiting for deployment");
643
658
  }
644
659
 
645
660
  // src/version.ts
646
- var VERSION = "0.20.4";
661
+ var VERSION = "0.20.5";
647
662
 
648
663
  export {
649
664
  OAUTH_CLIENT_ID,
@@ -20,7 +20,7 @@ import {
20
20
  resolveOrgContext,
21
21
  saveAuth,
22
22
  saveProject
23
- } from "./chunk-BTI5OR7H.js";
23
+ } from "./chunk-JDQMYSLG.js";
24
24
 
25
25
  // src/cli.ts
26
26
  import { Command, Option } from "commander";
@@ -1791,7 +1791,7 @@ function agentByName(name) {
1791
1791
  var ALL_AGENTS = DETECTORS.map((d) => d.agent);
1792
1792
 
1793
1793
  // src/lib/skills/content.gen.ts
1794
- var CLI_VERSION = "0.20.4";
1794
+ var CLI_VERSION = "0.20.5";
1795
1795
  var BUNDLED_SKILLS = [
1796
1796
  {
1797
1797
  name: "build-a-clawnify-app",
package/dist/index.js CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  // src/index.ts
4
4
  if (process.argv.includes("--mcp")) {
5
- const { startMcpServer } = await import("./mcp-KHPD6OPV.js");
5
+ const { startMcpServer } = await import("./mcp-776HYWJB.js");
6
6
  await startMcpServer();
7
7
  } else {
8
- const { runCli } = await import("./cli-NXHUAPDU.js");
8
+ const { runCli } = await import("./cli-UOQC44BS.js");
9
9
  await runCli();
10
10
  }
@@ -7,7 +7,7 @@ import {
7
7
  pollUntilReady,
8
8
  readManifest,
9
9
  saveProject
10
- } from "./chunk-BTI5OR7H.js";
10
+ } from "./chunk-JDQMYSLG.js";
11
11
 
12
12
  // src/mcp.ts
13
13
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawnify",
3
- "version": "0.20.4",
3
+ "version": "0.20.5",
4
4
  "description": "Deploy your apps and website to Clawnify from the terminal with Claude Code, Codex, and Cursor",
5
5
  "type": "module",
6
6
  "bin": {