@somewhere-cloud/cli 0.38.182 → 0.38.184
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 +346 -179
- package/dist/lib/bundle.js.map +3 -3
- package/dist/types/lib/testing-app.d.ts +1 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/runtime/DECLARED-DATA-VENDOR.json +6 -6
- 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 +32 -3
|
@@ -121,6 +121,7 @@ interface PwPage {
|
|
|
121
121
|
interface PwContext {
|
|
122
122
|
newPage(): Promise<PwPage>;
|
|
123
123
|
close(): Promise<void>;
|
|
124
|
+
setDefaultTimeout(ms: number): void;
|
|
124
125
|
}
|
|
125
126
|
/** One headless browser per test app, from the app folder's own Playwright install. */
|
|
126
127
|
export declare class Pages {
|
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.184",
|
|
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.184",
|
|
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.184",
|
|
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": "714c67d02fc45db1cfcef50206c4ecb777e488c2"
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"worker/src/services/jobs/limits.ts": "2d0d73de8752ad4fb84d281bac6c3049bb34a7d0b08c7cda76634c19c303c529",
|
|
36
36
|
"worker/src/utils/alert-audit.ts": "318ce8cd45954f50a77bf0782efa4cc433016e923431e3a4042d2294f31610f8",
|
|
37
37
|
"worker/src/utils/alert-streak.ts": "cc15ff03920821cb4b2c6758fdd29508b24b29f258287e977c23a8ae28c14cbd",
|
|
38
|
-
"worker/src/utils/authority.ts": "
|
|
38
|
+
"worker/src/utils/authority.ts": "fa1b7d6ff48cac00a2b16a4a47897089e0ead9e625b1a36db7f38ec0cb586917",
|
|
39
39
|
"worker/src/utils/authority/client-contract-schema.ts": "c1b433d2b09d7c1e98adae70b5754fe704fabb2ecc8e20347518a633e31f99d0",
|
|
40
40
|
"worker/src/utils/authority/intake-bake.ts": "7216e288e40673819295d999b3bdbf5e4319e1e21608e3b81eda9d102ff8d636",
|
|
41
41
|
"worker/src/utils/authority/role-domain-map.ts": "dc1b6abba79278a970cc5a07c4eb7ea73acac262425b489670e90508b95a5ff1",
|
|
@@ -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})()";
|
|
@@ -1585,11 +1585,15 @@ interface SomewhereAuthModerationRevoked { revoked_sessions: number; revoked_ref
|
|
|
1585
1585
|
// pages ordered by (created_at, id), limit 1-200 (default 50). Banned and
|
|
1586
1586
|
// agent accounts are not listed; absent ids are omitted.
|
|
1587
1587
|
interface SomewhereAuthDirectoryUser { id: string; email: string; display_name: string | null; email_verified: boolean; created_at: number | null; import_source_id?: string }
|
|
1588
|
+
/** With { roles: true }: the app role names the user holds now. */
|
|
1589
|
+
interface SomewhereAuthDirectoryUserWithRoles extends SomewhereAuthDirectoryUser { app_roles: string[] }
|
|
1588
1590
|
interface SomewhereServerRoleChanges { user_id: string; results: Array<{ user_id: string; role: string; revoked: boolean } | { user_id: string; role: string; granted_by: string; grant_source: 'platform_admin' | 'delegation' | 'email_domain'; created_at: number; created: boolean }> }
|
|
1589
1591
|
interface SomewhereRuntimeAuthServer {
|
|
1590
1592
|
/** Deployed production functions only. Validate the caller before assigning roles. */
|
|
1591
1593
|
setRoles(userId: string, changes: { add?: readonly string[]; remove?: readonly string[] }): Promise<SomewhereServerRoleChanges>;
|
|
1592
|
-
|
|
1594
|
+
/** Exact lookup with roles: each user also carries app_roles. Check the caller before returning roles. */
|
|
1595
|
+
listUsers(options: { includeImportSourceIds?: boolean; roles: true } & ({ ids: readonly string[]; emails?: never; limit?: never; cursor?: never } | { emails: readonly string[]; ids?: never; limit?: never; cursor?: never })): Promise<{ users: SomewhereAuthDirectoryUserWithRoles[]; next_cursor: null }>;
|
|
1596
|
+
listUsers(options?: { includeImportSourceIds?: boolean; roles?: false } & ({ ids: readonly string[]; emails?: never; limit?: never; cursor?: never } | { emails: readonly string[]; ids?: never; limit?: never; cursor?: never } | { ids?: never; emails?: never; limit?: number; cursor?: string })): Promise<{ users: SomewhereAuthDirectoryUser[]; next_cursor: string | null }>;
|
|
1593
1597
|
}
|
|
1594
1598
|
interface SomewhereAuthUserDeletion {
|
|
1595
1599
|
deleted: true;
|
|
@@ -2011,6 +2015,31 @@ interface SomewherePaymentsEvent {
|
|
|
2011
2015
|
}
|
|
2012
2016
|
// next_cursor is an epoch-ms number; pass it back as before.
|
|
2013
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> } };
|
|
2014
2043
|
interface SomewhereRuntimePayments {
|
|
2015
2044
|
onboard(opts?: SomewherePaymentsOnboardOptions | null): Promise<SomewherePaymentsOnboardResult>;
|
|
2016
2045
|
quote: SomewhereQuoteFunction;
|
|
@@ -4583,8 +4612,8 @@ var require_consumer_contract = __commonJS({
|
|
|
4583
4612
|
"worker/containers/compile/consumer-contract.cjs"(exports2, module2) {
|
|
4584
4613
|
"use strict";
|
|
4585
4614
|
var CONSUMER_CONTRACT2 = Object.freeze({
|
|
4586
|
-
version:
|
|
4587
|
-
digest: "
|
|
4615
|
+
version: 56,
|
|
4616
|
+
digest: "c88d6655d4442321e569110ce31bb0d768d5f5b3f6e4e360606b7816371fef3f"
|
|
4588
4617
|
});
|
|
4589
4618
|
var MEMBERSHIPS = "memberships: table({ id: id(), team_id: text(), member_id: text() }, { scope: owner(), client: { read: true } }),";
|
|
4590
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']] }),";
|