@faable/faable 4.38.1 → 4.39.1

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.
@@ -214,9 +214,21 @@ const launch = {
214
214
  failure = { phase, reason: dep.status?.reason };
215
215
  break;
216
216
  }
217
- // CANCELED: the platform superseded this build before it produced a
218
- // runnable (a sibling deployment of the app won the promotion).
219
217
  if (phase === 'CANCELED') {
218
+ // A moderation hold cancels the build too, and then nothing is
219
+ // live: it is a failure, not a supersede. Read on the app, not
220
+ // the deployment, whose reason is free text (2026-11-11: a
221
+ // plan-held app was told "The app is live" and answered 410).
222
+ // Re-read: `current` predates the deployment read, and the hold
223
+ // may have landed between the two.
224
+ const after = await api.getApp(app.id).catch(() => current);
225
+ const held = after.disabled_reason ?? null;
226
+ if (held) {
227
+ failure = { phase, reason: dep.status?.reason ?? held };
228
+ break;
229
+ }
230
+ // Otherwise the platform superseded this build before it produced
231
+ // a runnable (a sibling deployment of the app won the promotion).
220
232
  superseded = dep.status?.reason ?? 'canceled';
221
233
  break;
222
234
  }
package/dist/mcp/tools.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { version } from '../config.js';
2
3
 
3
4
  const project = z
4
5
  .string()
@@ -186,10 +187,11 @@ const TOOLS = [
186
187
  {
187
188
  name: 'whoami',
188
189
  title: 'Who is logged in',
189
- description: 'The Faable account this server acts as, the active project and its Auth tenant. Use it first when unsure whether the user is logged in or which project is active.',
190
+ description: 'The Faable account this server acts as, the active project and its Auth tenant, and `server_version` — the Faable CLI version this MCP server runs. Use it first when unsure whether the user is logged in or which project is active, or to check which version is serving.',
190
191
  input: {},
191
192
  command: ['whoami'],
192
193
  flags: () => [],
194
+ shape: (d) => ({ ...d, server_version: version }),
193
195
  annotations: READ,
194
196
  example: {}
195
197
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faable/faable",
3
- "version": "4.38.1",
3
+ "version": "4.39.1",
4
4
  "main": "dist/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Marc Pomar <marc@faable.com>",