@somewhere-cloud/cli 0.38.183 → 0.38.185
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 +14 -0
- package/dist/lib/bundle.js +529 -400
- package/dist/lib/bundle.js.map +3 -3
- package/dist/types/lib/client.d.ts +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/runtime/DECLARED-DATA-VENDOR.json +5 -5
- package/runtime/PLATFORM-SOURCE.json +1 -1
- package/runtime/VENDOR.json +1 -1
- package/runtime/browser-probes.mjs +1 -1
- package/runtime/declared-data.cjs +27 -2
|
@@ -127,6 +127,7 @@ export declare class CliApiError extends Error {
|
|
|
127
127
|
readonly meta: CliApiErrorMeta;
|
|
128
128
|
/** Original body-reader failure, retained only so raw command output stays unchanged. */
|
|
129
129
|
originalCause?: unknown;
|
|
130
|
+
linkedProjectGrantExcluded?: true;
|
|
130
131
|
constructor(code: string, message: string, statusCode: number,
|
|
131
132
|
/** Structured payload some errors carry (e.g. BUILD_ERROR file/line/frame). */
|
|
132
133
|
data?: Record<string, unknown> | undefined, hint?: string | undefined, meta?: CliApiErrorMeta);
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@somewhere-cloud/cli",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.185",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@somewhere-cloud/cli",
|
|
9
|
-
"version": "0.38.
|
|
9
|
+
"version": "0.38.185",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"bin": {
|
|
12
12
|
"somewhere": "bin/somewhere.js",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@somewhere-cloud/cli",
|
|
3
|
-
"version": "0.38.
|
|
3
|
+
"version": "0.38.185",
|
|
4
4
|
"description": "CLI for somewhere.cloud — auth, projects, deploy, pull, promote, db, logs, env, MCP bridge.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"somewhere",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
},
|
|
68
68
|
"bundleDependencies": [],
|
|
69
69
|
"bundledDependencies": [],
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "728921dfe9be767a35a1a06376256796fcf53d58"
|
|
71
71
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source_commit": "
|
|
2
|
+
"source_commit": "3065685fa994184849f70025997a315617715e02",
|
|
3
3
|
"esbuild": "0.24.0",
|
|
4
4
|
"source_files": {
|
|
5
5
|
"shared/app-model-catalog.ts": "6896adf310f9cfe74bedc17c8ee7f9ed12695d5c397868041ffdb9a50ce5b658",
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"shared/transient-read.ts": "c8887ae98ea241e7c8f53103f47c9ec4abe6c64ba4ce524289496a69beb7ae98",
|
|
12
12
|
"shared/types/placeholder-identity.ts": "089a46e2474a21193d3611eddd9c94b6bbe62441b3039ed80fc8499bada447ca",
|
|
13
13
|
"worker/containers/compile/checker-contract.cjs": "5ee58cd4e7d00e01fcbd0fc53f6999ed03cb0081ca92e89810946ddb2f13e86f",
|
|
14
|
-
"worker/containers/compile/consumer-contract.cjs": "
|
|
14
|
+
"worker/containers/compile/consumer-contract.cjs": "e48cf02f39df5a284fec39a9844831dd3dd814249dbdcbd58485ba0ca1d1386e",
|
|
15
15
|
"worker/containers/compile/declared-data-contract.cjs": "ebdc7dbc12283a7218c28e0e912e736ac27a8e9d513b82c097ebff6df3c1dd91",
|
|
16
16
|
"worker/containers/compile/generated-declarations-render.cjs": "7ffdb34645cc9eccac6eba39dc86b646a41c4de8a1a038d2b5b46f42df9f1157",
|
|
17
17
|
"worker/containers/compile/generated-declarations.cjs": "6e9902e054c5c784fd9b3c3fafc1869e79954100a45014e1132247cd82833ec4",
|
|
18
18
|
"worker/containers/compile/groups-types.cjs": "7681d2adf0c7761a4971d7ba8287b238e464fd2768c878477e32794538675b33",
|
|
19
|
-
"worker/containers/compile/runtime-types.cjs": "
|
|
19
|
+
"worker/containers/compile/runtime-types.cjs": "9c632a847e496a86fba77396edd1354fa2306bcd0055ecb19f6d04834d12c650",
|
|
20
20
|
"worker/containers/compile/schema-types.cjs": "806147ad7224356734020c62441123db16b50ef6456db974c573b226d517e6cc",
|
|
21
21
|
"worker/containers/compile/typed-data.cjs": "1c8bec853fbee4ffd34c651076a4e1f4d8b18c0c2be5e99e31df7c9283207627",
|
|
22
22
|
"worker/containers/compile/typed-files.cjs": "f2568567a53994575ede91f9a0839965e64f94eb92ae11315650189b6de0f79c",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"worker/src/utils/dev-health-class.ts": "fd430f31b9c8469f3d90e118fd8c75d1836ebcf705c1f9e93915ffa53a4cb066",
|
|
63
63
|
"worker/src/utils/errors.ts": "f57505fc7cb515abb2e2e62fc8211f359200df1183689dc621dec10c8c7f03e3",
|
|
64
64
|
"worker/src/utils/event-log.ts": "6224ef4e42e409f7cd9b96e02442d2c3e64cceacb21a2979d77431771eda9eff",
|
|
65
|
-
"worker/src/utils/feed-kinds.ts": "
|
|
65
|
+
"worker/src/utils/feed-kinds.ts": "791b8930294b114db907b7a208d7a89a77a811d4e997209bf13c1e77e14d2e3a",
|
|
66
66
|
"worker/src/utils/journey-segment.ts": "623837dec9b24c211b1f3be4908f6780bb4cdba175f2dfa5f34ccccfe5a1a5fc",
|
|
67
67
|
"worker/src/utils/json-exact-integers.ts": "e2eb8d3b2e17da363eb14fb46d876208579e2e92bfac173fb27527e6c4fb575e",
|
|
68
68
|
"worker/src/utils/log-sanitize.ts": "f4591089c16a34e4cbc271ec22b48566b970a62e30d3e9856b7dcd9c479fb0e8",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"worker/src/utils/telegram.ts": "9aaaa2597c366da1eeee9e2252e9b73e611ea97ed9558f7e07e694d9b393f053",
|
|
79
79
|
"worker/src/utils/workers-ai-comparison.ts": "18b5d5ea96f817387a5ef49733ba611c99cbb14987143c28118b1c90f3b637d4"
|
|
80
80
|
},
|
|
81
|
-
"sha256": "
|
|
81
|
+
"sha256": "db29bd3b947f8e9c127e624778167c29081aa09352e3031d803d096e9cef8f0b"
|
|
82
82
|
}
|
package/runtime/VENDOR.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Generated browser probe.
|
|
2
2
|
export const MAX_OUTLINE_NODES = 200;
|
|
3
|
-
export const DOM_OUTLINE_SCRIPT = "(() => {\n const computeOutlineVisibility = function computeOutlineVisibility(\n info,\n) {\n const visible =\n !info.hiddenAncestor &&\n !info.ariaHiddenAncestor &&\n info.display !== 'none' &&\n info.visibility !== 'hidden' &&\n !(info.width === 0 && info.height === 0);\n const disabled = info.disabled || info.ariaDisabled === 'true';\n return { visible, disabled };\n};\n const cssPath = (el) => {\n const parts = [];\n let node = el;\n
|
|
3
|
+
export const DOM_OUTLINE_SCRIPT = "(() => {\n const computeOutlineVisibility = function computeOutlineVisibility(\n info,\n) {\n const visible =\n !info.hiddenAncestor &&\n !info.ariaHiddenAncestor &&\n info.display !== 'none' &&\n info.visibility !== 'hidden' &&\n !(info.width === 0 && info.height === 0);\n const disabled = info.disabled || info.ariaDisabled === 'true';\n return { visible, disabled };\n};\n\n\n const idOf = (node) => node.getAttribute('id') || '';\n const unique = (sel) => { try { return document.querySelectorAll(sel).length === 1; } catch (e) { return false; } };\n\n const cssPath = (el) => {\n const parts = [];\n let node = el;\n while (node && node.nodeType === 1 && node.tagName.toLowerCase() !== 'body' && node.tagName.toLowerCase() !== 'html') {\n let sel = node.tagName.toLowerCase();\n const nid = idOf(node);\n if (nid) { parts.unshift(sel + '#' + CSS.escape(nid)); if (unique(parts.join(' > '))) break; node = node.parentNode; continue; }\n const parent = node.parentNode;\n if (parent && parent.children) {\n const sameTag = Array.from(parent.children).filter((c) => c.tagName === node.tagName);\n if (sameTag.length > 1) sel += ':nth-of-type(' + (sameTag.indexOf(node) + 1) + ')';\n }\n parts.unshift(sel);\n if (unique(parts.join(' > '))) break;\n node = node.parentNode;\n }\n return parts.join(' > ');\n };\n const interactive = 'a,button,input,select,textarea,[role=button],[role=link],[role=tab],[onclick],[data-testid]';\n const seen = new Set();\n const outline = [];\n for (const el of Array.from(document.querySelectorAll(interactive))) {\n if (outline.length >= 200) break;\n if (seen.has(el)) continue;\n seen.add(el);\n const testid = el.getAttribute('data-testid') || '';\n const id = idOf(el);\n const name = el.getAttribute('name') || '';\n const aria = el.getAttribute('aria-label') || '';\n const text = ((el.innerText || (el.matches('input[type=submit],input[type=button],input[type=reset]') ? el.value : '') || el.getAttribute('placeholder') || '') + '').trim().slice(0, 80);\n\n const candidates = [];\n if (testid) candidates.push('[data-testid=' + JSON.stringify(testid) + ']');\n if (id) candidates.push('#' + CSS.escape(id));\n if (name) candidates.push(el.tagName.toLowerCase() + '[name=' + JSON.stringify(name) + ']');\n let selector = candidates.find(unique);\n if (!selector) selector = cssPath(el);\n\n\n if (!unique(selector)) selector = '';\n const style = getComputedStyle(el);\n const rect = el.getBoundingClientRect();\n const { visible, disabled } = computeOutlineVisibility({\n hiddenAncestor: !!el.closest('[hidden]'),\n ariaHiddenAncestor: !!el.closest('[aria-hidden=\"true\"]'),\n display: style.display,\n visibility: style.visibility,\n width: rect.width,\n height: rect.height,\n disabled: !!el.disabled,\n ariaDisabled: el.getAttribute('aria-disabled'),\n });\n const entry = { tag: el.tagName.toLowerCase(), id, testid, name, aria, text, selector, visible };\n if (disabled) entry.disabled = true;\n outline.push(entry);\n }\n const testid_map = {};\n for (const el of Array.from(document.querySelectorAll('[data-testid]'))) {\n const t = el.getAttribute('data-testid');\n\n const handle = '[data-testid=' + JSON.stringify(t) + ']';\n if (t && !(t in testid_map) && unique(handle)) testid_map[t] = handle;\n }\n return { outline, testid_map };\n})()";
|
|
@@ -2015,6 +2015,31 @@ interface SomewherePaymentsEvent {
|
|
|
2015
2015
|
}
|
|
2016
2016
|
// next_cursor is an epoch-ms number; pass it back as before.
|
|
2017
2017
|
interface SomewherePaymentsEventsResult { events: SomewherePaymentsEvent[]; next_cursor: number | null }
|
|
2018
|
+
// Bodies the platform POSTs to the project webhook (auth_webhook_set), signed with X-Somewhere-Signature.
|
|
2019
|
+
// Plan subscriptions (checkoutForUser) carry grant_revision; subscriptions started with sw.payments.checkout
|
|
2020
|
+
// carry revision (keep the highest per subscription_id), checkout_session_id, price and the checkout metadata instead.
|
|
2021
|
+
interface SomewherePaymentSubscriptionState {
|
|
2022
|
+
project_id: string;
|
|
2023
|
+
app_user_id: string | null;
|
|
2024
|
+
plan: string | null;
|
|
2025
|
+
subscription_id: string;
|
|
2026
|
+
status: string;
|
|
2027
|
+
cancel_at_period_end: boolean;
|
|
2028
|
+
current_period_end: string | null;
|
|
2029
|
+
mode: SomewherePaymentsStripeMode;
|
|
2030
|
+
grant_revision?: number;
|
|
2031
|
+
active?: boolean;
|
|
2032
|
+
checkout_session_id?: string | null;
|
|
2033
|
+
amount?: number | null;
|
|
2034
|
+
currency?: string | null;
|
|
2035
|
+
interval?: string | null;
|
|
2036
|
+
customer_id?: string | null;
|
|
2037
|
+
revision?: number;
|
|
2038
|
+
metadata?: Record<string, string>;
|
|
2039
|
+
}
|
|
2040
|
+
type SomewherePaymentNotice =
|
|
2041
|
+
| { id: string; type: 'subscription.activated' | 'subscription.updated' | 'subscription.canceled'; subscription: SomewherePaymentSubscriptionState }
|
|
2042
|
+
| { id: string; type: 'payment.completed' | 'payment.refunded'; payment: Record<string, unknown> & { mode: SomewherePaymentsStripeMode; checkout_session_id?: string | null; metadata?: Record<string, string> } };
|
|
2018
2043
|
interface SomewhereRuntimePayments {
|
|
2019
2044
|
onboard(opts?: SomewherePaymentsOnboardOptions | null): Promise<SomewherePaymentsOnboardResult>;
|
|
2020
2045
|
quote: SomewhereQuoteFunction;
|
|
@@ -4587,8 +4612,8 @@ var require_consumer_contract = __commonJS({
|
|
|
4587
4612
|
"worker/containers/compile/consumer-contract.cjs"(exports2, module2) {
|
|
4588
4613
|
"use strict";
|
|
4589
4614
|
var CONSUMER_CONTRACT2 = Object.freeze({
|
|
4590
|
-
version:
|
|
4591
|
-
digest: "
|
|
4615
|
+
version: 56,
|
|
4616
|
+
digest: "c88d6655d4442321e569110ce31bb0d768d5f5b3f6e4e360606b7816371fef3f"
|
|
4592
4617
|
});
|
|
4593
4618
|
var MEMBERSHIPS = "memberships: table({ id: id(), team_id: text(), member_id: text() }, { scope: owner(), client: { read: true } }),";
|
|
4594
4619
|
var SHARES = "shares: table({ id: id(), grantee_id: text() }, { scope: owner(), client: { read: true, create: ['grantee_id'], delete: true }, unique: [['user_id', 'grantee_id']] }),";
|