breakaway 1.1.0-main.1 → 1.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "breakaway",
3
- "version": "1.1.0-main.1",
3
+ "version": "1.1.0",
4
4
  "description": "The task board for you and your coding agents: a Cloudflare Worker, its web app, Taskwarrior sync, and the CLI (npx breakaway).",
5
5
  "license": "FSL-1.1-Apache-2.0",
6
6
  "type": "module",
@@ -253,9 +253,9 @@ export function workerMissing(output) {
253
253
  return /\[code: 10007\]|worker does not exist on your account/iu.test(String(output ?? ''));
254
254
  }
255
255
 
256
- /** Whether `/api/ping`'s answer says the new release is running. */
256
+ /** Whether `/api/ping`'s answer says the new release is running and its secrets load (BRK-96). */
257
257
  export function isHealthy(ping, version) {
258
- return Boolean(ping) && ping.ok === true && ping.release === version;
258
+ return Boolean(ping) && ping.ok === true && ping.release === version && ping.secrets?.ok === true;
259
259
  }
260
260
 
261
261
  /**
@@ -4,5 +4,5 @@
4
4
  * and how to update it. scripts/tasks/version.test.js fails when the copied files change and this doesn't:
5
5
  * so it lives in the board's package (CLD-135) and the CLI imports it from here.
6
6
  */
7
- export const CLI_VERSION = 47;
8
- export const CLI_FINGERPRINT = 'e779f7d4ae3104e4';
7
+ export const CLI_VERSION = 48;
8
+ export const CLI_FINGERPRINT = '7c36714250586dd5';
@@ -196,7 +196,7 @@ jobs:
196
196
  uploaded=$(node -e "const l=require('fs').readFileSync(process.env.WRANGLER_OUTPUT_FILE_PATH,'utf8').split('\\n').filter(Boolean).map(JSON.parse).filter(e=>e.type==='version-upload').pop();if(!l)process.exit(1);console.log(l.version_id)")
197
197
  wrangler versions deploy "$uploaded@100%" --yes
198
198
  fi
199
- # Health check: the new release answers /api/ping. Without it, go back to the previous version.
199
+ # Health check: the new release answers /api/ping and its secrets load. Without it, go back to the previous version.
200
200
  url=$(node -p "require('./breakaway.config.json').url || ''")
201
201
  address=${ADDRESS:-$url}
202
202
  tries=12
@@ -218,12 +218,12 @@ jobs:
218
218
  done
219
219
  waited=$([ "$tries" -gt 12 ] && echo "five minutes" || echo "a minute")
220
220
  if [ -z "$previous" ]; then
221
- echo "::error title=Failed its check::breakaway $VERSION didn't answer $address/api/ping within $waited, and this was the first deploy, so there is no version to go back to. Read the Worker's logs on Cloudflare."
221
+ echo "::error title=Failed its check::breakaway $VERSION didn't answer $address/api/ping, with its secrets readable, within $waited, and this was the first deploy, so there is no version to go back to. Read the Worker's logs on Cloudflare."
222
222
  elif wrangler rollback "$previous" --message "breakaway $VERSION failed its check" --yes; then
223
223
  kept=""
224
224
  if [ "$DEPLOY" = wrangler ]; then kept=" Rolling back brings back the code only: what wrangler deploy changed${CHANGES:+ ($CHANGES)} stays as it left it."; fi
225
- echo "::error title=Rolled back::breakaway $VERSION didn't answer $address/api/ping within $waited, so the Worker went back to its previous version.$kept Nothing is lost; read the Worker's logs on Cloudflare."
225
+ echo "::error title=Rolled back::breakaway $VERSION didn't answer $address/api/ping, with its secrets readable, within $waited, so the Worker went back to its previous version.$kept Nothing is lost; read the Worker's logs on Cloudflare."
226
226
  else
227
- echo "::error title=Couldn't roll back::breakaway $VERSION didn't answer $address/api/ping within $waited, and the Worker couldn't go back to its previous version: Cloudflare doesn't roll back across a new Durable Object class. The board's data is still in its Durable Object. Read the Worker's logs on Cloudflare, then deploy a fix."
227
+ echo "::error title=Couldn't roll back::breakaway $VERSION didn't answer $address/api/ping, with its secrets readable, within $waited, and the Worker couldn't go back to its previous version: Cloudflare doesn't roll back across a new Durable Object class. The board's data is still in its Durable Object. Read the Worker's logs on Cloudflare, then deploy a fix."
228
228
  fi
229
229
  exit 1