@somewhere-cloud/cli 0.38.56 → 0.38.59

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.
Files changed (155) hide show
  1. package/CHANGELOG.md +77 -80
  2. package/README.md +52 -27
  3. package/dist/commands/ai.js +1 -1
  4. package/dist/commands/ai.js.map +1 -1
  5. package/dist/commands/api.d.ts +1 -1
  6. package/dist/commands/api.js +2 -2
  7. package/dist/commands/api.js.map +1 -1
  8. package/dist/commands/auth.d.ts +3 -3
  9. package/dist/commands/auth.js +4 -4
  10. package/dist/commands/auth.js.map +1 -1
  11. package/dist/commands/browser.d.ts +1 -1
  12. package/dist/commands/browser.js +9 -9
  13. package/dist/commands/browser.js.map +1 -1
  14. package/dist/commands/call.d.ts +2 -2
  15. package/dist/commands/call.js +2 -2
  16. package/dist/commands/call.js.map +1 -1
  17. package/dist/commands/check.js +2 -2
  18. package/dist/commands/check.js.map +1 -1
  19. package/dist/commands/claim.d.ts +1 -1
  20. package/dist/commands/claim.js +1 -1
  21. package/dist/commands/claim.js.map +1 -1
  22. package/dist/commands/cron.d.ts +1 -1
  23. package/dist/commands/cron.js +2 -2
  24. package/dist/commands/cron.js.map +1 -1
  25. package/dist/commands/db.js +1 -1
  26. package/dist/commands/db.js.map +1 -1
  27. package/dist/commands/deploy.d.ts +9 -9
  28. package/dist/commands/deploy.js +38 -38
  29. package/dist/commands/deploy.js.map +1 -1
  30. package/dist/commands/dev.d.ts +2 -2
  31. package/dist/commands/dev.js +2 -2
  32. package/dist/commands/docs.d.ts +2 -2
  33. package/dist/commands/docs.js +8 -8
  34. package/dist/commands/docs.js.map +1 -1
  35. package/dist/commands/env.js +1 -1
  36. package/dist/commands/env.js.map +1 -1
  37. package/dist/commands/init.js +2 -2
  38. package/dist/commands/init.js.map +1 -1
  39. package/dist/commands/logs.js +2 -2
  40. package/dist/commands/logs.js.map +1 -1
  41. package/dist/commands/mcp.js +1 -1
  42. package/dist/commands/mcp.js.map +1 -1
  43. package/dist/commands/promote.js +2 -2
  44. package/dist/commands/promote.js.map +1 -1
  45. package/dist/commands/rollback.d.ts +1 -1
  46. package/dist/commands/rollback.js +1 -1
  47. package/dist/commands/rollback.js.map +1 -1
  48. package/dist/commands/status.js +2 -2
  49. package/dist/commands/status.js.map +1 -1
  50. package/dist/commands/test.js +10 -8
  51. package/dist/commands/test.js.map +1 -1
  52. package/dist/commands/typecheck.js +1 -1
  53. package/dist/commands/typecheck.js.map +1 -1
  54. package/dist/commands/update.js +1 -1
  55. package/dist/commands/update.js.map +1 -1
  56. package/dist/commands/verify.js +5 -5
  57. package/dist/commands/verify.js.map +1 -1
  58. package/dist/index.js +4 -4
  59. package/dist/index.js.map +1 -1
  60. package/dist/lib/auth.js +1 -1
  61. package/dist/lib/auth.js.map +1 -1
  62. package/dist/lib/base-files.d.ts +1 -1
  63. package/dist/lib/browser-actions.js +1 -1
  64. package/dist/lib/browser-actions.js.map +1 -1
  65. package/dist/lib/browser-run.d.ts +1 -1
  66. package/dist/lib/browser-run.js +3 -3
  67. package/dist/lib/browser-run.js.map +1 -1
  68. package/dist/lib/build-errors.js +1 -1
  69. package/dist/lib/claim-handoff.js +1 -1
  70. package/dist/lib/claim-handoff.js.map +1 -1
  71. package/dist/lib/client.d.ts +5 -5
  72. package/dist/lib/client.js +10 -10
  73. package/dist/lib/client.js.map +1 -1
  74. package/dist/lib/config.d.ts +5 -5
  75. package/dist/lib/config.js +5 -5
  76. package/dist/lib/config.js.map +1 -1
  77. package/dist/lib/declared-data.js +1 -1
  78. package/dist/lib/declared-data.js.map +1 -1
  79. package/dist/lib/deploy-check.d.ts +1 -1
  80. package/dist/lib/deploy-check.js +2 -2
  81. package/dist/lib/deploy-check.js.map +1 -1
  82. package/dist/lib/files.d.ts +4 -4
  83. package/dist/lib/files.js +5 -5
  84. package/dist/lib/files.js.map +1 -1
  85. package/dist/lib/http.d.ts +1 -1
  86. package/dist/lib/http.js +1 -1
  87. package/dist/lib/init-agent-guide.d.ts +2 -2
  88. package/dist/lib/init-agent-guide.js +2 -2
  89. package/dist/lib/init-feature-template.js +1 -1
  90. package/dist/lib/init-feature-template.js.map +1 -1
  91. package/dist/lib/init-test-template.js +6 -2
  92. package/dist/lib/init-test-template.js.map +1 -1
  93. package/dist/lib/last-run.d.ts +2 -2
  94. package/dist/lib/last-run.js +1 -1
  95. package/dist/lib/link-hint.d.ts +1 -1
  96. package/dist/lib/link-hint.js +1 -1
  97. package/dist/lib/notify/providers/update.d.ts +1 -1
  98. package/dist/lib/notify/providers/update.js +1 -1
  99. package/dist/lib/notify/providers/update.js.map +1 -1
  100. package/dist/lib/output.d.ts +2 -2
  101. package/dist/lib/output.js +2 -2
  102. package/dist/lib/platform-contract.js +1 -1
  103. package/dist/lib/platform-tools.d.ts +1 -1
  104. package/dist/lib/platform-tools.js +2 -2
  105. package/dist/lib/platform-tools.js.map +1 -1
  106. package/dist/lib/playwright-fixtures.js +15 -13
  107. package/dist/lib/playwright-fixtures.js.map +1 -1
  108. package/dist/lib/post-live-render.d.ts +1 -1
  109. package/dist/lib/post-live-render.js +1 -1
  110. package/dist/lib/project-pin.d.ts +1 -1
  111. package/dist/lib/project-pin.js +1 -1
  112. package/dist/lib/promote-outcome.d.ts +2 -2
  113. package/dist/lib/promote-outcome.js +2 -2
  114. package/dist/lib/publish-surface.js +1 -1
  115. package/dist/lib/repro-packet.d.ts +1 -1
  116. package/dist/lib/repro-packet.js +2 -2
  117. package/dist/lib/scaffold.d.ts +1 -1
  118. package/dist/lib/scaffold.js +1 -1
  119. package/dist/lib/source-lint.d.ts +1 -1
  120. package/dist/lib/surface-counts.d.ts +1 -1
  121. package/dist/lib/temp-auth.d.ts +2 -2
  122. package/dist/lib/temp-auth.js +2 -2
  123. package/dist/lib/terminal-text.d.ts +1 -1
  124. package/dist/lib/terminal-text.js +2 -2
  125. package/dist/lib/test-connectivity.js +0 -2
  126. package/dist/lib/test-connectivity.js.map +1 -1
  127. package/dist/lib/test-diagnostics.d.ts +1 -0
  128. package/dist/lib/test-diagnostics.js +14 -1
  129. package/dist/lib/test-diagnostics.js.map +1 -1
  130. package/dist/lib/test-reporter.d.ts +3 -2
  131. package/dist/lib/test-reporter.js +10 -8
  132. package/dist/lib/test-reporter.js.map +1 -1
  133. package/dist/lib/test-target.d.ts +10 -0
  134. package/dist/lib/test-target.js +18 -0
  135. package/dist/lib/test-target.js.map +1 -0
  136. package/dist/lib/typecheck.d.ts +3 -3
  137. package/dist/lib/typecheck.js +2 -2
  138. package/dist/lib/vendor/deploy-paths.d.ts +0 -11
  139. package/dist/lib/vendor/deploy-paths.js +0 -27
  140. package/dist/lib/vendor/deploy-paths.js.map +1 -1
  141. package/dist/lib/vendor/repro-guidance.d.ts +0 -31
  142. package/dist/lib/vendor/repro-guidance.js +0 -37
  143. package/dist/lib/vendor/repro-guidance.js.map +1 -1
  144. package/dist/lib/version.js +1 -1
  145. package/dist/lib/version.js.map +1 -1
  146. package/dist/types.d.ts +4 -4
  147. package/npm-shrinkwrap.json +2 -2
  148. package/package.json +1 -1
  149. package/runtime/DECLARED-DATA-VENDOR.json +8 -7
  150. package/runtime/PLATFORM-SOURCE.json +1 -2
  151. package/runtime/SOURCE-LINT-VENDOR.json +10 -9
  152. package/runtime/VENDOR.json +1 -2
  153. package/runtime/browser-probes.mjs +2 -2
  154. package/runtime/declared-data.cjs +5047 -4568
  155. package/runtime/source-lint.cjs +12690 -12442
@@ -20,7 +20,7 @@ import { countFromResponse, countFunctionRoutes, formatPublishSurface, formatUpl
20
20
  import { formatVerifyOutput, loadVerifyFlow, runVerification, } from './verify.js';
21
21
  // Resolve the deploy target directory. `resolve` (not `join`) so an absolute
22
22
  // `dir` is honored as-is — `join(cwd, '/abs/path')` produced `/cwd/abs/path`
23
- // → ENOENT (tsk_c616fe5d). `resolve` also normalizes `..` segments.
23
+ // → ENOENT. `resolve` also normalizes `..` segments.
24
24
  export function resolveTargetDir(dir, cwd = process.cwd()) {
25
25
  return dir ? resolve(cwd, dir) : cwd;
26
26
  }
@@ -33,7 +33,7 @@ export function resolveTargetDir(dir, cwd = process.cwd()) {
33
33
  export function prebuiltOptIn(opts) {
34
34
  return Boolean(opts.prebuilt || opts.allowBundled);
35
35
  }
36
- // Node-server pre-flight (tsk_8e8c6bc8): the #1 first-deploy failure is an
36
+ // Node-server pre-flight: the #1 first-deploy failure is an
37
37
  // agent shipping an Express/Fastify app — it deploys "successfully" as dead
38
38
  // static files (routes never run, server source publicly served). Detect the
39
39
  // shape BEFORE upload and teach the platform shape. Warning only, never a
@@ -48,7 +48,7 @@ const NEXT_APP_SIGNAL_PREFIX = 'Next.js app';
48
48
  // or `next` in any dependency section. Nothing else.
49
49
  //
50
50
  // There used to be a third arm matching Next router PATHS (app/page.tsx,
51
- // pages/**). It was deleted (tsk_8a9d2d1a): `src/pages/HomePage.tsx` is
51
+ // pages/**). It was deleted: `src/pages/HomePage.tsx` is
52
52
  // ordinary Vite + React-Router convention, and our OWN `somewhere init`
53
53
  // scaffold writes exactly that file — so `somewhere deploy` accused every
54
54
  // brand-new project of being a Next.js app on its first ever deploy. A real
@@ -107,7 +107,7 @@ export function detectNodeServerShape(files, functions) {
107
107
  // the pages still will not render — so a corroborated `next` signal is worth
108
108
  // saying even to a project that ships functions, and
109
109
  // `test/deploy-server-shape.test.mjs` pins that on purpose. The scaffold's
110
- // false positive (tsk_8a9d2d1a) came from the router-path arm, not from this
110
+ // false positive came from the router-path arm, not from this
111
111
  // ordering, and deleting that arm fixes it with the true positive intact.
112
112
  const nextSignal = detectNextAppShape(files);
113
113
  if (nextSignal)
@@ -287,7 +287,7 @@ export function readStaleReleaseDetails(data) {
287
287
  /**
288
288
  * A deploy refused because live is newer than this folder: which version is
289
289
  * live, what put it there (naming this folder's own rollback or restore when
290
- * that is the cause, tsk_0dcd7530), which files changed, and the one next step.
290
+ * that is the cause, ), which files changed, and the one next step.
291
291
  */
292
292
  export function formatStaleReleaseBaseExplanation(details = {}, historyUnavailable = false, ownActivation = null) {
293
293
  const d = Array.isArray(details) ? { changed_files: details, history_unavailable: historyUnavailable } : details;
@@ -334,7 +334,7 @@ export function formatAmbiguousRetryStaleExplanation(transportFailure) {
334
334
  ].join('\n');
335
335
  }
336
336
  /** Signed in, nothing linked: deploy never creates or links a project in the
337
- * account on its own; say exactly how to (tsk_8a68dfa2 item 15). */
337
+ * account on its own; say exactly how to ( item 15). */
338
338
  export function formatSignedInUnlinkedExplanation() {
339
339
  return [
340
340
  'No project is linked to this folder. You are signed in, so deploy will not create or pick a project in your account on its own.',
@@ -344,7 +344,7 @@ export function formatSignedInUnlinkedExplanation() {
344
344
  ' Existing project: run `somewhere init --link --project <name-or-id>` (list yours with `somewhere projects`), or deploy once with `somewhere deploy --project <name-or-id>`.',
345
345
  ].join('\n');
346
346
  }
347
- /** The folder's link names a project this sign-in cannot open (tsk_8a68dfa2
347
+ /** The folder's link names a project this sign-in cannot open (
348
348
  * item 14: typically a temporary project that expired unclaimed, after the
349
349
  * developer signed in). The platform answers not-found and no-access alike,
350
350
  * so this names possibilities only, never which one. Reached only when the
@@ -385,7 +385,7 @@ export function formatSignedOutExistingTargetExplanation(projectId, fromLink) {
385
385
  : ' Start a new temporary project instead: run `somewhere deploy` without --project in a folder that is not linked.',
386
386
  ].join('\n');
387
387
  }
388
- /** The stored temporary session expired before this deploy (tsk_8a68dfa2
388
+ /** The stored temporary session expired before this deploy (
389
389
  * item 14). Built only from this machine's own record, so it says nothing
390
390
  * about whether any project exists. */
391
391
  export function formatExpiredTemporaryProjectExplanation(expiredAt) {
@@ -443,7 +443,7 @@ export function formatExplicitProjectBaseRequiredExplanation(ref) {
443
443
  /** Bound on the prestart request; it answers at once, so this only caps a stalled connection. */
444
444
  export const DEPLOY_PRESTART_TIMEOUT_MS = 5_000;
445
445
  /**
446
- * Prestart (tsk_a92c59b9, root decision 2026-11-04): ask the platform to start this project's compile container
446
+ * Prestart (, root decision 2026-11-04): ask the platform to start this project's compile container
447
447
  * now, so a cold one boots while the files are packed and uploaded instead of after the upload arrives. The
448
448
  * platform holds an instance it starts only until the deploy's compile (at most a minute) and only renews a warm
449
449
  * one. Sent once and never awaited or retried. Every outcome is ignored, including an older platform's 404 and a
@@ -497,7 +497,7 @@ export async function readExplicitProjectLiveBase(client, projectId) {
497
497
  * deploy from this folder has gone live since (a first deploy that failed
498
498
  * writes exactly this: source_base.release_id null). Nothing of the folder's
499
499
  * is on that project, so a credential that cannot open it loses nothing by
500
- * starting a new temporary project and replacing the link (tsk_b9900dbb). */
500
+ * starting a new temporary project and replacing the link. */
501
501
  export function linkNeverDeployed(config) {
502
502
  const base = config?.source_base;
503
503
  return Boolean(config?.project_id && base && base.project_id === config.project_id && base.release_id === null
@@ -622,7 +622,7 @@ export function registerDeploy(program) {
622
622
  const storedConfig = loadConfig();
623
623
  // A link left by a first deploy that never went live, with no credential
624
624
  // here that can open its project, would refuse every signed-out deploy:
625
- // set it aside and start a new temporary project (tsk_b9900dbb). A live
625
+ // set it aside and start a new temporary project. A live
626
626
  // temporary credential is checked against the project below.
627
627
  let replacedLink = null;
628
628
  {
@@ -637,7 +637,7 @@ export function registerDeploy(program) {
637
637
  // an existing project (a folder link or --project). A freshly minted
638
638
  // temporary account owns no project, so minting one only to get a
639
639
  // PROJECT_NOT_FOUND back is skipped: the answer comes from this
640
- // machine's own record, before any request (tsk_8a68dfa2 item 14).
640
+ // machine's own record, before any request ( item 14).
641
641
  if (storedConfig?.temporary && storedConfig.temp_expires_at && temporarySessionExpired(storedConfig)
642
642
  && (opts.project || findLink(targetDir))) {
643
643
  const message = formatExpiredTemporaryProjectExplanation(storedConfig.temp_expires_at);
@@ -652,7 +652,7 @@ export function registerDeploy(program) {
652
652
  // No stored credential at all, and the deploy names an existing project
653
653
  // (--project or a folder link). A freshly minted temporary account owns
654
654
  // no project, so minting one would only end in PROJECT_NOT_FOUND: say so
655
- // before anything is created or sent (pfb_e653dbb1fa74).
655
+ // before anything is created or sent.
656
656
  const namedTarget = opts.project ? { projectId: String(opts.project), fromLink: false }
657
657
  : (() => { const entry = findLink(targetDir); return entry ? { projectId: entry.config.project_id, fromLink: true } : null; })();
658
658
  // A dry run keeps its own pre-request refusal (formatDryRunNeedsProjectExplanation).
@@ -682,9 +682,9 @@ export function registerDeploy(program) {
682
682
  const besideRealLogin = Boolean(opts.temporary && storedConfig?.token && !storedConfig.temporary);
683
683
  let sideCar = besideRealLogin ? loadTempSession() : null;
684
684
  // The throwaway minted beside a real login belongs to this project root
685
- // only; another directory gets its own (pfb_29428f76480e).
685
+ // only; another directory gets its own.
686
686
  const projectRoot = canonicalProjectRoot(targetDir);
687
- // A dry run reads; it never provisions (pfb_a0af8bb647dc). Comparing
687
+ // A dry run reads; it never provisions. Comparing
688
688
  // needs a credential that can already open an existing project. Without
689
689
  // one, minting a temporary account or creating a project to compare
690
690
  // against would be the side effect a dry run promises not to have.
@@ -713,7 +713,7 @@ export function registerDeploy(program) {
713
713
  // and overriding it also dragged in account mode's linked-project
714
714
  // requirement, so `--temporary` in an unlinked directory failed
715
715
  // outright instead of doing the one thing it was asked to do
716
- // (pfb_9bbc936e5001).
716
+ //.
717
717
  if (!opts.json)
718
718
  info('Already logged in — deploying to your account.');
719
719
  token = getToken();
@@ -740,7 +740,7 @@ export function registerDeploy(program) {
740
740
  }
741
741
  else {
742
742
  // An expired session is replaced, never reused or left to block the
743
- // deploy; say so once (tsk_97979518). A folder linked to one of its
743
+ // deploy; say so once. A folder linked to one of its
744
744
  // projects was already refused above.
745
745
  const expiredAt = besideRealLogin
746
746
  ? (temporarySessionExpired(sideCar) ? sideCar.temp_expires_at : undefined)
@@ -793,7 +793,7 @@ export function registerDeploy(program) {
793
793
  catch (err) {
794
794
  powSpinner?.fail('Could not create a temporary session');
795
795
  // The platform's typed error (code, status, retry, request ids): the
796
- // same shape a signed-in deploy reports (pfb_011a9fd3f5f3).
796
+ // same shape a signed-in deploy reports.
797
797
  const status = err instanceof CliApiError
798
798
  ? ` ${dim(err.statusCode ? `[${err.code}, HTTP ${err.statusCode}]` : `[${err.code}]`)}` : '';
799
799
  error(`${err instanceof Error ? err.message : String(err)}${status}`, err);
@@ -910,7 +910,7 @@ export function registerDeploy(program) {
910
910
  deployStateEntry = linkedProjectEntry;
911
911
  }
912
912
  // The target is known: let a cold compile container boot while the files are packed and uploaded
913
- // (tsk_a92c59b9). Not for a dry run (nothing compiles) or a temporary workspace's new project.
913
+ //. Not for a dry run (nothing compiles) or a temporary workspace's new project.
914
914
  const stopPrestart = projectId && !tempSession && !opts.dryRun ? startDeployPrestart(client, projectId) : () => undefined;
915
915
  // An explicit --project is bound to the VERIFIED current project before
916
916
  // anything is uploaded (founder 2026-10-23). A folder linked to a different
@@ -919,7 +919,7 @@ export function registerDeploy(program) {
919
919
  let explicitProjectId = null;
920
920
  // The live-base read below depends only on the canonical project id. When the ref already IS one and this folder
921
921
  // records no base for it, the read starts beside the resolve; its result is used only if the resolve confirms
922
- // that same id, otherwise the serial read below runs exactly as before (tsk_11b822ce). The resolve still binds
922
+ // that same id, otherwise the serial read below runs exactly as before. The resolve still binds
923
923
  // the target and refuses a mismatched link before anything is uploaded. readExplicitProjectLiveBase never rejects.
924
924
  const earlyLiveBase = opts.project && projectId && !tempSession && !opts.force
925
925
  && CANONICAL_PROJECT_ID.test(projectId) && !readSourceBase(targetProjectConfig, projectId)
@@ -995,7 +995,7 @@ export function registerDeploy(program) {
995
995
  }
996
996
  }
997
997
  const spinner = opts.json ? null : ora('Collecting files...').start();
998
- // Publish surface (tsk_c166924f): a deploy publishes the app, not the
998
+ // Publish surface: a deploy publishes the app, not the
999
999
  // folder it was built in. Name every held-back file — a silent exclusion
1000
1000
  // is how a private note gets published, and how a needed file goes
1001
1001
  // missing without anyone noticing.
@@ -1034,7 +1034,7 @@ export function registerDeploy(program) {
1034
1034
  if (process.stderr.isTTY)
1035
1035
  spinner?.start();
1036
1036
  }
1037
- // Node-server pre-flight (tsk_8e8c6bc8) — see detectNodeServerShape.
1037
+ // Node-server pre-flight — see detectNodeServerShape.
1038
1038
  const serverSignal = detectNodeServerShape(files, functions);
1039
1039
  if (serverSignal && !opts.json) {
1040
1040
  spinner?.stop();
@@ -1062,7 +1062,7 @@ export function registerDeploy(program) {
1062
1062
  .reduce((sum, b64) => sum + Math.floor((b64.length * 3) / 4), 0);
1063
1063
  const totalBytes = textBytes + binaryBytes;
1064
1064
  // The exact paths this request carries: one source for the headline count,
1065
- // the terminal list and the JSON `uploaded` field (tsk_23f34679).
1065
+ // the terminal list and the JSON `uploaded` field.
1066
1066
  const inventory = uploadInventory(files, binaryFiles, functions, scope);
1067
1067
  if (opts.dryRun && !opts.json) {
1068
1068
  spinner?.stop();
@@ -1089,7 +1089,7 @@ export function registerDeploy(program) {
1089
1089
  // --scope functions deploys ONLY the backend: send no static at all
1090
1090
  // (an empty object, NOT omitted — the worker requires a files map).
1091
1091
  // Sending the on-disk static under scope:functions is what bricked
1092
- // compiled SPAs (tsk_08cff5f4); the worker now ignores it too, but
1092
+ // compiled SPAs; the worker now ignores it too, but
1093
1093
  // the CLI shouldn't send it in the first place. --scope static is the
1094
1094
  // inverse: no functions.
1095
1095
  files: scope === 'functions' ? {} : files,
@@ -1099,7 +1099,7 @@ export function registerDeploy(program) {
1099
1099
  }
1100
1100
  // A full deploy sends the whole directory, so its functions are the
1101
1101
  // complete set: a deployed function no longer here is removed and named
1102
- // in the output (pfb_f320d7733b8c). --scope functions keeps the ones it
1102
+ // in the output. --scope functions keeps the ones it
1103
1103
  // leaves out unless --replace-functions is passed.
1104
1104
  const replaceFunctions = Boolean(opts.replaceFunctions) || !scope;
1105
1105
  if (scope !== 'static' && (replaceFunctions || Object.keys(functions).length > 0)) {
@@ -1202,7 +1202,7 @@ export function registerDeploy(program) {
1202
1202
  // A release undone by a pointer move answers before its blank-page
1203
1203
  // check (post_live_render: pending). Wait for it, before this folder
1204
1204
  // records the release as its base: a blank page throws the same
1205
- // DEPLOY_BLANK_PAGE a gated deploy does (tsk_b9507144).
1205
+ // DEPLOY_BLANK_PAGE a gated deploy does.
1206
1206
  if (spinner)
1207
1207
  spinner.text = 'Checking the live page...';
1208
1208
  const postLive = await awaitPostLiveRender(client, result.project_id ?? projectId ?? undefined, result);
@@ -1216,7 +1216,7 @@ export function registerDeploy(program) {
1216
1216
  const functionErrors = result.function_errors ?? [];
1217
1217
  const hasFunctionErrors = functionErrors.length > 0;
1218
1218
  // The platform confirmed this release before optional verification.
1219
- // Keep its source anchor even when a later check fails (tsk_da2dba3d).
1219
+ // Keep its source anchor even when a later check fails.
1220
1220
  if (!hasFunctionErrors) {
1221
1221
  if (!tempSession && typeof result.version === 'number' && deployStateEntry) {
1222
1222
  saveProjectDeployState(deployStateEntry.dir, deployStateEntry.config.project_id, result.version, result.active_release_id ?? result.release_id);
@@ -1308,7 +1308,7 @@ export function registerDeploy(program) {
1308
1308
  if (formatted.projectRef)
1309
1309
  info(`Project: ${teal(formatted.projectRef)}`);
1310
1310
  // Build log: entry chunk, chunks + sizes, functions + sizes (returned
1311
- // by the worker since tsk_8af76ef9). Surface it instead of a bare
1311
+ // by the worker since ). Surface it instead of a bare
1312
1312
  // "deployed." so the dev can see what the compiler actually produced.
1313
1313
  if (Array.isArray(result.build_log) && result.build_log.length > 0) {
1314
1314
  console.log(`\n${dim('Build')}`);
@@ -1471,7 +1471,7 @@ export function registerDeploy(program) {
1471
1471
  process.exit(1);
1472
1472
  }
1473
1473
  // No answer to a request that may have been applied: never "not
1474
- // applied", never a blind retry (pfb_47695233e613).
1474
+ // applied", never a blind retry.
1475
1475
  if (!opts.dryRun && outcomeUnknown(err)) {
1476
1476
  const unknown = err;
1477
1477
  const message = formatUnknownDeployOutcomeExplanation(unknown, String(projectId), deployRequestStartedAt);
@@ -1498,12 +1498,12 @@ export function registerDeploy(program) {
1498
1498
  }
1499
1499
  // Always show the error code + HTTP status — "Project not found"
1500
1500
  // with no code/status left a customer unable to tell auth from
1501
- // routing from payload failures (pfb_70e9d140c5a0).
1501
+ // routing from payload failures.
1502
1502
  const staleLink = err instanceof CliApiError && err.code === 'PROJECT_NOT_FOUND'
1503
1503
  && targetFromLink && !deployAnswered && projectId;
1504
1504
  if (err instanceof CliApiError) {
1505
1505
  // The correlation ids, ALWAYS — a deploy failure the developer cannot
1506
- // name is one we cannot find either (tsk_9c5ed7f8).
1506
+ // name is one we cannot find either.
1507
1507
  const reference = formatErrorReference(err.meta);
1508
1508
  const signedIn = !tempSession;
1509
1509
  if (opts.json) {
@@ -1545,7 +1545,7 @@ export function formatPostLiveRenderLine(wait) {
1545
1545
  /**
1546
1546
  * The after-live reference check runs in the background, so the deploy
1547
1547
  * answer can only say `pending`. Name the existing read that carries its
1548
- * result (the deploy log) for this exact version (tsk_8a68dfa2 item 4). The
1548
+ * result (the deploy log) for this exact version ( item 4). The
1549
1549
  * project is named unless this directory's link already selects it, because
1550
1550
  * `call` defaults to the linked project.
1551
1551
  */
@@ -1618,7 +1618,7 @@ export function formatDeploySuccess(result, options) {
1618
1618
  }
1619
1619
  else if (options.scope === 'static') {
1620
1620
  // "uploaded", not "deployed": the count is the source this command sent,
1621
- // and the platform may keep some of it private (tsk_1108097a).
1621
+ // and the platform may keep some of it private.
1622
1622
  headline =
1623
1623
  `${staticLabel} uploaded (${formatBytes(options.totalBytes)}) — functions left untouched`;
1624
1624
  }
@@ -1674,7 +1674,7 @@ function warningsInBuildLog(buildLog) {
1674
1674
  * Errors from a deploy re-sent after the CLI's OWN transport verdict
1675
1675
  * (TIMEOUT / SERVER_SLOW / NETWORK_ERROR) on the previous attempt. That first
1676
1676
  * attempt may have completed on the server, so a STALE_RELEASE_BASE answer to
1677
- * the retry does not mean the deploy was not applied (tsk_8a68dfa2 item 1).
1677
+ * the retry does not mean the deploy was not applied ( item 1).
1678
1678
  */
1679
1679
  const retriedAfterTransportFailure = new WeakMap();
1680
1680
  /** The client-detected failure the deploy was retried after, if any. */
@@ -1700,7 +1700,7 @@ async function callDeployWithRetry(client, body, opts) {
1700
1700
  throw err;
1701
1701
  // A request that may have reached the server is never resent: no
1702
1702
  // platform contract makes a second identical deploy safe while the first
1703
- // may still be running (pfb_47695233e613). Only a connection that never
1703
+ // may still be running. Only a connection that never
1704
1704
  // opened, or the platform's own retry: true, is sent again.
1705
1705
  if (outcomeUnknown(err))
1706
1706
  throw err;
@@ -1763,7 +1763,7 @@ function deployTimeoutMs() {
1763
1763
  /**
1764
1764
  * Should this failed deploy be sent again?
1765
1765
  *
1766
- * Two independent answers, and both count (tsk_9c5ed7f8). The CLI knows about
1766
+ * Two independent answers, and both count. The CLI knows about
1767
1767
  * the failures it detected itself — a timeout, a stalled server, a dropped
1768
1768
  * connection. The PLATFORM knows about the rest, and says so: `retry: true` on
1769
1769
  * the error body is the route stating that this request changed nothing and
@@ -1841,7 +1841,7 @@ function formatDeployElapsed(ms) {
1841
1841
  // about the user's actual files — not platform internals it regenerates.
1842
1842
  const INTERNAL_PREFIXES = ['_compiled/', '_internal/', '_source/'];
1843
1843
  const isInternalPath = (p) => INTERNAL_PREFIXES.some((prefix) => p.startsWith(prefix));
1844
- // ── Publish-surface notice (tsk_c166924f) ────────────────────────────────
1844
+ // ── Publish-surface notice ────────────────────────────────
1845
1845
  // Rule 8: the customer sees WHAT was held back and HOW to publish it. Nothing
1846
1846
  // about how the rule is implemented, no ticket ids. The "how" line prints once
1847
1847
  // per linked project — stored in the project's own .somewhere.json, never as a
@@ -1880,7 +1880,7 @@ export function printSensitiveFiles(sensitive) {
1880
1880
  info(`Never uploaded (${sensitive.length}): ${sensitive.map((e) => e.path).join(', ')}`);
1881
1881
  info(dim('Files blocked by the sensitive-path policy stay on your machine; --include and "!" lines do not publish them. The policy matches file names only: a secret under any other name uploads like any other file. Store a secret your code needs with `somewhere env set` and read it with sw.env in a function.'));
1882
1882
  }
1883
- /** Why a dry run stops before reaching the platform (pfb_a0af8bb647dc). */
1883
+ /** Why a dry run stops before reaching the platform. */
1884
1884
  export function formatDryRunNeedsProjectExplanation() {
1885
1885
  return [
1886
1886
  'A dry run compares this folder with a project you have already deployed, and there is none to compare with here:',