@somewhere-cloud/cli 0.38.141 → 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 +10 -0
- package/README.md +1 -1
- package/dist/lib/bundle.js +11 -5
- package/dist/lib/bundle.js.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
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
|
+
|
|
8
|
+
## 0.38.142
|
|
9
|
+
|
|
10
|
+
- Use `somewhere tasks list --label <label>` to match an exact task label.
|
|
11
|
+
- Label the llms docs topic as the platform overview. The full manual opens with `somewhere docs --full`.
|
|
12
|
+
|
|
3
13
|
## 0.38.141
|
|
4
14
|
|
|
5
15
|
- Typecheck keeps the compiler result and exit code when its advisory source scan fails, and reports the source failure in text and JSON.
|
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
|
|
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
|
|
package/dist/lib/bundle.js
CHANGED
|
@@ -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
|
|
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
|
|
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()",
|
|
@@ -87888,7 +87891,7 @@ var init_docs = __esm({
|
|
|
87888
87891
|
},
|
|
87889
87892
|
llms: {
|
|
87890
87893
|
path: "/llms.txt",
|
|
87891
|
-
blurb: "
|
|
87894
|
+
blurb: "Platform overview and links to the full reference"
|
|
87892
87895
|
}
|
|
87893
87896
|
};
|
|
87894
87897
|
ALIASES = {
|
|
@@ -132176,12 +132179,13 @@ function resolveTaskProject(project) {
|
|
|
132176
132179
|
function registerTasks(program2) {
|
|
132177
132180
|
const tasks = program2.command("tasks").description("List, read, create, update, delete, and restore platform tasks").addHelpText("after", `
|
|
132178
132181
|
Shared organization board (requires access): ${cliInvocation()} tasks list -p default`);
|
|
132179
|
-
tasks.command("list").description("List tasks").option("-p, --project <project>", "Project slug or ID; defaults to the linked project").option("--status <status>", "Filter by status").option("--type <type>", "Filter by type, or a comma-separated list (e.g. decision, directive)").option("--assignee <assignee>", "Filter by assignee").option("--area <area>", "Filter by area").option("--parent <task-id>", 'Filter by parent task; use "null" for top-level tasks').option("-q, --query <text>", "Search task titles and descriptions").option("--active", "Only open and in-progress tasks").option("--stale", "Only stale in-progress tasks").option("--stale-days <days>", "Staleness threshold").option("--sort <sort>", "Sort by priority, updated, or created").option("--full", "Return complete descriptions").option("--limit <n>", "Maximum rows").option("--offset <n>", "Fresh row offset; prefer cursor for continuation").option("--cursor <cursor>", "next_cursor from the previous page; repeat filters").option("--json", "Print the complete response as JSON").action(async (opts) => {
|
|
132182
|
+
tasks.command("list").description("List tasks").option("-p, --project <project>", "Project slug or ID; defaults to the linked project").option("--status <status>", "Filter by status").option("--type <type>", "Filter by type, or a comma-separated list (e.g. decision, directive)").option("--assignee <assignee>", "Filter by assignee").option("--label <label>", "Match an exact label").option("--area <area>", "Filter by area").option("--parent <task-id>", 'Filter by parent task; use "null" for top-level tasks').option("-q, --query <text>", "Search task titles and descriptions").option("--active", "Only open and in-progress tasks").option("--stale", "Only stale in-progress tasks").option("--stale-days <days>", "Staleness threshold").option("--sort <sort>", "Sort by priority, updated, or created").option("--full", "Return complete descriptions").option("--limit <n>", "Maximum rows").option("--offset <n>", "Fresh row offset; prefer cursor for continuation").option("--cursor <cursor>", "next_cursor from the previous page; repeat filters").option("--json", "Print the complete response as JSON").action(async (opts) => {
|
|
132180
132183
|
const args = compactRecord([
|
|
132181
132184
|
["project_id", resolveTaskProject(opts.project)],
|
|
132182
132185
|
["status", opts.status],
|
|
132183
132186
|
["type", opts.type],
|
|
132184
132187
|
["assignee", opts.assignee],
|
|
132188
|
+
["label", opts.label],
|
|
132185
132189
|
["area", opts.area],
|
|
132186
132190
|
["parent_id", opts.parent],
|
|
132187
132191
|
["q", opts.query],
|
|
@@ -132203,6 +132207,8 @@ Shared organization board (requires access): ${cliInvocation()} tasks list -p de
|
|
|
132203
132207
|
if (isRecord(value) && isRecord(value.page)) {
|
|
132204
132208
|
const page = value.page;
|
|
132205
132209
|
console.log(dim(`Showing ${page.count} of ${page.total}. Order: ${page.order ?? "unspecified"}`));
|
|
132210
|
+
if (page.candidate_note)
|
|
132211
|
+
console.log(dim(String(page.candidate_note)));
|
|
132206
132212
|
if (page.consistency)
|
|
132207
132213
|
console.log(dim(String(page.consistency)));
|
|
132208
132214
|
if (page.next_cursor)
|