@somewhere-cloud/cli 0.38.142 → 0.38.143

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.38.143
4
+
5
+ - Include the project name in the CLI docs starter command.
6
+ - `somewhere deploy` says once which dotfiles it leaves out.
7
+
3
8
  ## 0.38.142
4
9
 
5
10
  - Use `somewhere tasks list --label <label>` to match an exact task label.
package/README.md CHANGED
@@ -165,7 +165,7 @@ Files under `functions/` (and root-level `api/` and `_lib/`) are deployed as ser
165
165
 
166
166
  Files under `public/` deploy at the site root, matching Vite's convention: `public/images/logo.png` serves as `/images/logo.png`.
167
167
 
168
- To exclude local-only files from deploy, add gitignore-style patterns to `.somewhereignore` in the project root. The CLI also respects the root `.gitignore`. `.somewhereignore` is applied after `.gitignore`, so it can add deploy-only excludes or `!` re-includes. Built-in safety excludes such as `node_modules`, `.git`, `.env`, `dist`, and dotfiles still apply.
168
+ To exclude local-only files from deploy, add gitignore-style patterns to `.somewhereignore` in the project root. The CLI also respects the root `.gitignore`. `.somewhereignore` is applied after `.gitignore`, so it can add deploy-only excludes or `!` re-includes. Built-in excludes such as `node_modules` and `dist` still apply. Deploy always leaves dotfiles and dot-directories out, except `.well-known`.
169
169
 
170
170
  After each successful linked deploy or pull, the CLI records the current deployed version in `.somewhere.json`. If the project changed elsewhere since that version, the next deploy refuses before overwriting anything and names the changed files. Run `somewhere pull` to bring remote source back locally, or `somewhere deploy --force --yes` to overwrite intentionally.
171
171
 
@@ -84106,7 +84106,7 @@ Signed in, deploy never creates one on its own:
84106
84106
  ${cliInvocation()} init --bare --name <name> create a project in your account and link this folder
84107
84107
  ${cliInvocation()} deploy then deploy it
84108
84108
  Existing project: \`${cliInvocation()} init --link --project <ref>\` (see \`${cliInvocation()} projects\`), or \`--project <ref>\` here.
84109
- `).option("--project <ref>", `Existing project to deploy to \u2014 accepts the project UUID, slug, or subdomain (all three resolve server-side). To create one, run \`${cliInvocation()} init --bare --name <name>\``).option("--scope <scope>", "Partial deploy: 'functions' (backend only, leaves the site untouched) or 'static' (site only, leaves functions untouched). Default deploys both.").option("--dry-run", "Show what would change (added / modified / removed files) in an already deployed project, without deploying. The files a deploy would publish are sent to Somewhere to compute the change; nothing is published. Never creates a project or a temporary workspace.").option("--replace-functions", "Delete deployed functions that are not in this directory. A full deploy already does; use it with --scope functions, which otherwise keeps them.").option("--prebuilt", "Deploy pre-built / bundled output (e.g. a dist/ folder) instead of raw source. Raw source is the default and recommended path: the platform compiles your TSX/JSX/TS on deploy, which keeps the app editable end-to-end. Choosing --prebuilt trades that away \u2014 pull/export round-trips, find/replace patches, and visual (source-map) editing are disabled for the bundled files. Use it only when you need full control of your own build.").option("--allow-bundled", "Alias for --prebuilt.").option("--new", "Publish to a new project and replace this folder\u2019s .somewhere.json link").option("--temporary", "Deploy to a temporary workspace and show when it expires (automatic when logged out)").option("--force", "Overwrite remote changes even when this machine last deployed an older version").option("--include <paths>", 'Publish a file or folder the deploy would otherwise hold back, e.g. --include NOTES.md or --include tests (comma-separate several, or repeat the flag). A "!NOTES.md" or "!tests/" line in .somewhereignore does the same thing permanently.', (value, previous = []) => previous.concat(value.split(",").map((v2) => v2.trim()).filter(Boolean))).option("--yes", "Skip confirmation prompts (for --force)").option("--verify [flow.json]", "After the deploy is live, run one browser verification flow at desktop and phone size. Omit the file for the default health check.").addOption(new Option("--test", "After a successful deploy, run somewhere test once against the new release").hideHelp()).option("-m, --message <text>", "Add a note for this version").option("--json", "Print the deploy result and its uploaded file list as JSON on stdout. Stderr lists files left out locally by path and reason.").option("--list-unpublished", "List the local files deploy would keep on your machine, then exit").option("--allow-type-errors", "Upload even when the local TypeScript check fails").option("--timing", "Print deploy details and timings").action(async (dir, opts) => {
84109
+ `).option("--project <ref>", `Existing project to deploy to \u2014 accepts the project UUID, slug, or subdomain (all three resolve server-side). To create one, run \`${cliInvocation()} init --bare --name <name>\``).option("--scope <scope>", "Partial deploy: 'functions' (backend only, leaves the site untouched) or 'static' (site only, leaves functions untouched). Default deploys both.").option("--dry-run", "Show what would change (added / modified / removed files) in an already deployed project, without deploying. The files a deploy would publish are sent to Somewhere to compute the change; nothing is published. Never creates a project or a temporary workspace.").option("--replace-functions", "Delete deployed functions that are not in this directory. A full deploy already does; use it with --scope functions, which otherwise keeps them.").option("--prebuilt", "Deploy pre-built / bundled output (e.g. a dist/ folder) instead of raw source. Raw source is the default and recommended path: the platform compiles your TSX/JSX/TS on deploy, which keeps the app editable end-to-end. Choosing --prebuilt trades that away \u2014 pull/export round-trips, find/replace patches, and visual (source-map) editing are disabled for the bundled files. Use it only when you need full control of your own build.").option("--allow-bundled", "Alias for --prebuilt.").option("--new", "Publish to a new project and replace this folder\u2019s .somewhere.json link").option("--temporary", "Deploy to a temporary workspace and show when it expires (automatic when logged out)").option("--force", "Overwrite remote changes even when this machine last deployed an older version").option("--include <paths>", 'Publish a file or folder the deploy would otherwise hold back, e.g. --include NOTES.md or --include tests (comma-separate several, or repeat the flag). A "!NOTES.md" or "!tests/" line in .somewhereignore does the same thing permanently.', (value, previous = []) => previous.concat(value.split(",").map((v2) => v2.trim()).filter(Boolean))).option("--yes", "Skip confirmation prompts (for --force)").option("--verify [flow.json]", "After the deploy is live, run one browser verification flow at desktop and phone size. Omit the file for the default health check.").addOption(new Option("--test", "After a successful deploy, run somewhere test once against the new release").hideHelp()).option("-m, --message <text>", "Add a note for this version").option("--json", "Print the deploy result and its uploaded file list as JSON on stdout. Stderr reports files left out locally and the dotfile rule.").option("--list-unpublished", "List the local files deploy would keep on your machine, then exit").option("--allow-type-errors", "Upload even when the local TypeScript check fails").option("--timing", "Print deploy details and timings").action(async (dir, opts) => {
84110
84110
  const startupMs = performance.now();
84111
84111
  const targetDir = resolveTargetDir(dir);
84112
84112
  if (opts.new && (opts.project || opts.dryRun || opts.temporary)) {
@@ -84119,6 +84119,7 @@ Existing project: \`${cliInvocation()} init --link --project <ref>\` (see \`${cl
84119
84119
  }
84120
84120
  if (opts.listUnpublished) {
84121
84121
  const { excluded: excluded2, sensitive: sensitive2, skipped: skipped2 } = collectFiles(targetDir, { include: opts.include ?? [] });
84122
+ console.error(DOTFILE_NOTICE);
84122
84123
  if (opts.json)
84123
84124
  printJson({ excluded: excluded2, sensitive: sensitive2, skipped: skipped2 });
84124
84125
  else {
@@ -84147,6 +84148,7 @@ Existing project: \`${cliInvocation()} init --link --project <ref>\` (see \`${cl
84147
84148
  const collectionEndedAt = performance.now();
84148
84149
  const collectionMs = collectionEndedAt - collectionStartedAt;
84149
84150
  const { files, binaryFiles, functions, skipped, excluded, sensitive } = collected;
84151
+ console.error(DOTFILE_NOTICE);
84150
84152
  const sensitiveRefusal = sensitiveReferenceRefusal(collected);
84151
84153
  if (sensitiveRefusal) {
84152
84154
  if (opts.json)
@@ -85249,7 +85251,7 @@ ${teal("Dry run")}${dim(scopeNote)} \u2014 nothing was deployed.
85249
85251
  }
85250
85252
  console.log("");
85251
85253
  }
85252
- var import_prompts4, SERVER_FRAMEWORK_DEPS, SERVER_CODE_PATTERN, NEXT_APP_SIGNAL_PREFIX, NEXT_CONFIG_PATTERN, NEXT_DEPENDENCY_SECTIONS, NEXT_APP_WARNING, DEPLOY_HEARTBEAT_MS, DEPLOY_MAX_ATTEMPTS, RETRYABLE_DEPLOY_CODES, DEPLOY_RETRY_MAX_WAIT_MS, POST_DEPLOY_HINT, SOURCE_WORDS, DEPLOY_PRESTART_TIMEOUT_MS, CANONICAL_PROJECT_ID, PROJECT_SITE_DOMAIN2, retriedAfterTransportFailure, INTERNAL_PREFIXES, isInternalPath;
85254
+ var import_prompts4, DOTFILE_NOTICE, SERVER_FRAMEWORK_DEPS, SERVER_CODE_PATTERN, NEXT_APP_SIGNAL_PREFIX, NEXT_CONFIG_PATTERN, NEXT_DEPENDENCY_SECTIONS, NEXT_APP_WARNING, DEPLOY_HEARTBEAT_MS, DEPLOY_MAX_ATTEMPTS, RETRYABLE_DEPLOY_CODES, DEPLOY_RETRY_MAX_WAIT_MS, POST_DEPLOY_HINT, SOURCE_WORDS, DEPLOY_PRESTART_TIMEOUT_MS, CANONICAL_PROJECT_ID, PROJECT_SITE_DOMAIN2, retriedAfterTransportFailure, INTERNAL_PREFIXES, isInternalPath;
85253
85255
  var init_deploy = __esm({
85254
85256
  "dist/commands/deploy.js"() {
85255
85257
  "use strict";
@@ -85288,6 +85290,7 @@ var init_deploy = __esm({
85288
85290
  init_surface_counts();
85289
85291
  init_verify();
85290
85292
  __name(resolveTargetDir, "resolveTargetDir");
85293
+ DOTFILE_NOTICE = "Deploy always leaves dotfiles and dot-directories out, except .well-known.";
85291
85294
  __name(prebuiltOptIn, "prebuiltOptIn");
85292
85295
  SERVER_FRAMEWORK_DEPS = ["express", "fastify", "koa", "@nestjs/core", "@hapi/hapi", "restify"];
85293
85296
  SERVER_CODE_PATTERN = /\bapp\.listen\s*\(|\bhttp\.createServer\s*\(|\bfastify\s*\(\s*\)|new\s+Koa\s*\(/;
@@ -87573,7 +87576,7 @@ function renderDocsIndex(pages, groups) {
87573
87576
  const width = Math.max(0, ...pages.map(({ id }) => id.length));
87574
87577
  const lines = [
87575
87578
  "Platform docs \u2014 no login needed.",
87576
- `Run ${cliInvocation()} init first, then read generated AGENTS.md: call shapes and access patterns for a typical app; docs are for exceptions.`,
87579
+ `Run ${cliInvocation()} init --name my-app, then read generated AGENTS.md: call shapes and access patterns for a typical app; docs are for exceptions.`,
87577
87580
  "",
87578
87581
  "Requirement | Declaration (complete examples in generated AGENTS.md)",
87579
87582
  "Own rows | owner()",