@somewhere-cloud/cli 0.38.179 → 0.38.181
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/dist/lib/bundle.js +95 -48
- package/dist/lib/bundle.js.map +2 -2
- package/dist/types/lib/testing-app.d.ts +11 -2
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
- package/runtime/DECLARED-DATA-VENDOR.json +15 -11
- package/runtime/PLATFORM-SOURCE.json +1 -1
- package/runtime/declared-data.cjs +8 -4
|
@@ -21,11 +21,16 @@ export interface ShowOptions {
|
|
|
21
21
|
show?: boolean;
|
|
22
22
|
}
|
|
23
23
|
/** `['DELETE', '/api/comments/1']` or `['POST', '/api/tasks/1/comments', { body: 'x' }]`. */
|
|
24
|
-
|
|
24
|
+
/** A route: `['DELETE', '/api/comments/1']`, `['POST', '/api/tasks/1/comments', { body: 'x' }]`; or the app data
|
|
25
|
+
* endpoint: `['DATA', 'contacts', { operation: 'get', id }]`. */
|
|
26
|
+
export type RefusedRequest = readonly [method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE', path: string, body?: unknown] | readonly [method: 'DATA', table: string, request: DataRequest];
|
|
27
|
+
/** `control`: a user who must be allowed the same reads (GET routes, data get and list), proving there was something
|
|
28
|
+
* to refuse. Writes are never sent as the control. */
|
|
25
29
|
export interface RefuseOptions {
|
|
26
30
|
status?: number | readonly number[];
|
|
27
31
|
lacks?: string | readonly string[];
|
|
28
32
|
label?: string;
|
|
33
|
+
control?: TestActor;
|
|
29
34
|
}
|
|
30
35
|
type Named<K extends string> = {
|
|
31
36
|
[P in K]: TestActor;
|
|
@@ -65,9 +70,12 @@ export interface TestApp {
|
|
|
65
70
|
cleanup(): Promise<void>;
|
|
66
71
|
}
|
|
67
72
|
/** Open the linked deployment or this folder's exact saved preview. */
|
|
73
|
+
/** `playwright`: where Playwright is installed when it is not in this folder, e.g. '/opt/tools/node_modules/playwright'
|
|
74
|
+
* (or the module itself). Only app.page() uses it. */
|
|
68
75
|
export declare function openTestApp(options?: {
|
|
69
76
|
preview?: boolean;
|
|
70
77
|
projectDir?: string;
|
|
78
|
+
playwright?: string | object;
|
|
71
79
|
}): Promise<TestApp>;
|
|
72
80
|
/** An app's answer, already read: the status, the parsed JSON body (or null) and the raw text. */
|
|
73
81
|
export interface Reply {
|
|
@@ -118,8 +126,9 @@ interface PwContext {
|
|
|
118
126
|
export declare class Pages {
|
|
119
127
|
private readonly root;
|
|
120
128
|
private readonly origin;
|
|
129
|
+
private readonly playwright?;
|
|
121
130
|
private browser?;
|
|
122
|
-
constructor(root: string, origin: string);
|
|
131
|
+
constructor(root: string, origin: string, playwright?: string | object | undefined);
|
|
123
132
|
open(state: PlaywrightStorageState, path: string): Promise<PwPage>;
|
|
124
133
|
close(): Promise<void>;
|
|
125
134
|
}
|
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.181",
|
|
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.181",
|
|
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.181",
|
|
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": "66da9855920e084a5383106dc8217ebc027c56f1"
|
|
71
71
|
}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"source_commit": "
|
|
2
|
+
"source_commit": "208660ebd7cb416162390454cbc9b191e5df4cdc",
|
|
3
3
|
"esbuild": "0.24.0",
|
|
4
4
|
"source_files": {
|
|
5
|
-
"shared/app-model-catalog.ts": "
|
|
5
|
+
"shared/app-model-catalog.ts": "6896adf310f9cfe74bedc17c8ee7f9ed12695d5c397868041ffdb9a50ce5b658",
|
|
6
6
|
"shared/cloud-dev-entitlement.ts": "1993a9e1c781d9daed29b3cfef0e8a370e150ce06d2acc7c408c2a24c50b4960",
|
|
7
7
|
"shared/d1-region.ts": "71cda96cfead241b4f4e35b8cd6b1d8e577f072257e91a8dbe0deaa1b142b378",
|
|
8
|
-
"shared/d1-session.ts": "
|
|
9
|
-
"shared/
|
|
8
|
+
"shared/d1-session.ts": "0f52783b833c76b37278168139b97165f55fff91842d9defbba85c4462b47c77",
|
|
9
|
+
"shared/domain-serving-proof.ts": "2f1fc843731b9bac950b6938465ec299f4c68d74ca5c15c0005479b2e97c6f9a",
|
|
10
|
+
"shared/project-primary-host.ts": "a25d81ebb3dc116c345dd6ea8ac902afbb9d92b02b90975ada2cbf89ae48163d",
|
|
11
|
+
"shared/transient-read.ts": "c8887ae98ea241e7c8f53103f47c9ec4abe6c64ba4ce524289496a69beb7ae98",
|
|
10
12
|
"shared/types/placeholder-identity.ts": "089a46e2474a21193d3611eddd9c94b6bbe62441b3039ed80fc8499bada447ca",
|
|
11
13
|
"worker/containers/compile/checker-contract.cjs": "5ee58cd4e7d00e01fcbd0fc53f6999ed03cb0081ca92e89810946ddb2f13e86f",
|
|
12
|
-
"worker/containers/compile/consumer-contract.cjs": "
|
|
14
|
+
"worker/containers/compile/consumer-contract.cjs": "c96b059acb56f416498dd1fc0cac5a0a4b10f4357ea57abcfbb5994c4aa909e0",
|
|
13
15
|
"worker/containers/compile/declared-data-contract.cjs": "ebdc7dbc12283a7218c28e0e912e736ac27a8e9d513b82c097ebff6df3c1dd91",
|
|
14
16
|
"worker/containers/compile/generated-declarations-render.cjs": "7ffdb34645cc9eccac6eba39dc86b646a41c4de8a1a038d2b5b46f42df9f1157",
|
|
15
17
|
"worker/containers/compile/generated-declarations.cjs": "6e9902e054c5c784fd9b3c3fafc1869e79954100a45014e1132247cd82833ec4",
|
|
16
18
|
"worker/containers/compile/groups-types.cjs": "7681d2adf0c7761a4971d7ba8287b238e464fd2768c878477e32794538675b33",
|
|
17
|
-
"worker/containers/compile/runtime-types.cjs": "
|
|
19
|
+
"worker/containers/compile/runtime-types.cjs": "b096727086e82b8fe2004244b9dfa6777d6e8605bc7d1831ae14224d87cb0cc3",
|
|
18
20
|
"worker/containers/compile/schema-types.cjs": "806147ad7224356734020c62441123db16b50ef6456db974c573b226d517e6cc",
|
|
19
21
|
"worker/containers/compile/typed-data.cjs": "1c8bec853fbee4ffd34c651076a4e1f4d8b18c0c2be5e99e31df7c9283207627",
|
|
20
22
|
"worker/containers/compile/typed-files.cjs": "f2568567a53994575ede91f9a0839965e64f94eb92ae11315650189b6de0f79c",
|
|
@@ -33,7 +35,7 @@
|
|
|
33
35
|
"worker/src/services/jobs/limits.ts": "2d0d73de8752ad4fb84d281bac6c3049bb34a7d0b08c7cda76634c19c303c529",
|
|
34
36
|
"worker/src/utils/alert-audit.ts": "318ce8cd45954f50a77bf0782efa4cc433016e923431e3a4042d2294f31610f8",
|
|
35
37
|
"worker/src/utils/alert-streak.ts": "cc15ff03920821cb4b2c6758fdd29508b24b29f258287e977c23a8ae28c14cbd",
|
|
36
|
-
"worker/src/utils/authority.ts": "
|
|
38
|
+
"worker/src/utils/authority.ts": "76cff5d16e6adc3bd0f2280ec87a1bdb5bdcbb2aa98eafc8d8f75b25baca066d",
|
|
37
39
|
"worker/src/utils/authority/client-contract-schema.ts": "c1b433d2b09d7c1e98adae70b5754fe704fabb2ecc8e20347518a633e31f99d0",
|
|
38
40
|
"worker/src/utils/authority/intake-bake.ts": "7216e288e40673819295d999b3bdbf5e4319e1e21608e3b81eda9d102ff8d636",
|
|
39
41
|
"worker/src/utils/authority/role-domain-map.ts": "dc1b6abba79278a970cc5a07c4eb7ea73acac262425b489670e90508b95a5ff1",
|
|
@@ -59,20 +61,22 @@
|
|
|
59
61
|
"worker/src/utils/db-schema-deploy/schema-ownership.ts": "e6c811a87bc657707be3518dfe547c6d97718ac073108b126eb7f791c9c08202",
|
|
60
62
|
"worker/src/utils/dev-health-class.ts": "fd430f31b9c8469f3d90e118fd8c75d1836ebcf705c1f9e93915ffa53a4cb066",
|
|
61
63
|
"worker/src/utils/errors.ts": "f57505fc7cb515abb2e2e62fc8211f359200df1183689dc621dec10c8c7f03e3",
|
|
62
|
-
"worker/src/utils/event-log.ts": "
|
|
63
|
-
"worker/src/utils/feed-kinds.ts": "
|
|
64
|
+
"worker/src/utils/event-log.ts": "07b6d7e0c6ade047378fe596eb65ec994c887d2a4de90321ddcee28795b0520d",
|
|
65
|
+
"worker/src/utils/feed-kinds.ts": "38c01ad7789eea0ceb4a43f539ff354c81debbb7bd38bb6effecb2fe7cba18c6",
|
|
64
66
|
"worker/src/utils/journey-segment.ts": "623837dec9b24c211b1f3be4908f6780bb4cdba175f2dfa5f34ccccfe5a1a5fc",
|
|
65
67
|
"worker/src/utils/json-exact-integers.ts": "e2eb8d3b2e17da363eb14fb46d876208579e2e92bfac173fb27527e6c4fb575e",
|
|
66
68
|
"worker/src/utils/log-sanitize.ts": "f4591089c16a34e4cbc271ec22b48566b970a62e30d3e9856b7dcd9c479fb0e8",
|
|
67
69
|
"worker/src/utils/managed-groups/errors.ts": "18d952edd7f46bb7e459d4e6678226f4bd6e040ab40073ee5a8d0802be2f3721",
|
|
68
70
|
"worker/src/utils/managed-groups/policy.ts": "2c5b48479a2925bea9a820022c63ca5fa827e2ff5531fe1ab6c0b058b7212b39",
|
|
71
|
+
"worker/src/utils/operator-alert-format.ts": "08d936778c64e6e33534f3263f8674fd85ecbd3a4c7396666e25ce9fe1cc9784",
|
|
69
72
|
"worker/src/utils/platform-compile-failure.ts": "dd0a8edaf9958d6b29f44ece498470ee910a6ec866e9978ff1e6d46c000c872f",
|
|
70
|
-
"worker/src/utils/project-custom-hosts.ts": "
|
|
73
|
+
"worker/src/utils/project-custom-hosts.ts": "f3bf13e78d4a23e41bf100cd38432456ce97058a8ac29c80abaf62b049371e3d",
|
|
74
|
+
"worker/src/utils/project-deletion-commit.ts": "aefb86dbd45def3813af200bee8732e4b4bdf20a781cf8dfe36516855cf87620",
|
|
71
75
|
"worker/src/utils/public-urls.ts": "44e455118f85c111316f6d8346d61e736ffcd1971c4539ea146100084aa6f21e",
|
|
72
76
|
"worker/src/utils/reference-check-inputs.ts": "5ce10ee8feb59a7f31878243a6a4899d41f4e60e7af0687399693aeab7914b9a",
|
|
73
77
|
"worker/src/utils/telegram-attempt-receipts.ts": "a9ba55ae71f63ada44a105f1ceae04b0491bda0d6e77e5762db2dbecdd2981dd",
|
|
74
78
|
"worker/src/utils/telegram.ts": "9aaaa2597c366da1eeee9e2252e9b73e611ea97ed9558f7e07e694d9b393f053",
|
|
75
79
|
"worker/src/utils/workers-ai-comparison.ts": "18b5d5ea96f817387a5ef49733ba611c99cbb14987143c28118b1c90f3b637d4"
|
|
76
80
|
},
|
|
77
|
-
"sha256": "
|
|
81
|
+
"sha256": "b28721a26d1904b5da2e6eec397c37fcf18b8ec6c27506241a6b43fa05a548c3"
|
|
78
82
|
}
|
|
@@ -1660,7 +1660,8 @@ interface SomewhereRuntimeAuth {
|
|
|
1660
1660
|
reset(options: { token: string; new_password: string }): Promise<SomewhereAuthMessage>;
|
|
1661
1661
|
requestEmailVerification(token: string): Promise<SomewhereAuthVerificationSent>;
|
|
1662
1662
|
resendVerification(token: string): Promise<SomewhereAuthVerificationSent>;
|
|
1663
|
-
|
|
1663
|
+
// session_renewed false: this token keeps reading email_verified false for up to a minute.
|
|
1664
|
+
verifyEmail(token: string, options: { code: string }): Promise<{ verified: true; session_renewed: boolean }>;
|
|
1664
1665
|
updatePassword(token: string, options: { new_password: string; current_password?: string }): Promise<{ updated: true }>;
|
|
1665
1666
|
updateProfile(token: string, options: SomewhereAuthProfileUpdate): Promise<{ user: SomewhereAuthUpdatedUser }>;
|
|
1666
1667
|
// Email change is verify-gated: sends a code, never writes the address immediately.
|
|
@@ -1672,7 +1673,10 @@ interface SomewhereRuntimeAuth {
|
|
|
1672
1673
|
verifyEmailChangeWithCookie(req: Request, options: { change_id: string; code: string }): Promise<{ changed: true; email: string }>;
|
|
1673
1674
|
// Email verification for the request's own session (cookie or Bearer); no token in app code.
|
|
1674
1675
|
requestEmailVerificationWithCookie(req: Request): Promise<SomewhereAuthVerificationSent>;
|
|
1675
|
-
|
|
1676
|
+
// Renews the session when the request carries its refresh token (cookie, or X-Refresh-Token with Bearer):
|
|
1677
|
+
// the new pair reads email_verified true at once. A Bearer caller adopts X-New-Access-Token / X-New-Refresh-Token
|
|
1678
|
+
// from the response; the earlier pair stops working within a minute.
|
|
1679
|
+
verifyEmailWithCookie(req: Request, options: { code: string }): Promise<{ verified: true; session_renewed: boolean }>;
|
|
1676
1680
|
deleteUser(token: string, options?: { erase?: 'owned' }): Promise<SomewhereAuthUserDeletion>;
|
|
1677
1681
|
/** The signed-in person's own copy of their data. */
|
|
1678
1682
|
exportUser(token: string): Promise<SomewhereAuthUserCopy>;
|
|
@@ -4577,8 +4581,8 @@ var require_consumer_contract = __commonJS({
|
|
|
4577
4581
|
"worker/containers/compile/consumer-contract.cjs"(exports2, module2) {
|
|
4578
4582
|
"use strict";
|
|
4579
4583
|
var CONSUMER_CONTRACT2 = Object.freeze({
|
|
4580
|
-
version:
|
|
4581
|
-
digest: "
|
|
4584
|
+
version: 52,
|
|
4585
|
+
digest: "105a0ce3ded44ed90e1403c6b6651586deed0e5411686ba7198b32f37a8ffd9c"
|
|
4582
4586
|
});
|
|
4583
4587
|
var MEMBERSHIPS = "memberships: table({ id: id(), team_id: text(), member_id: text() }, { scope: owner(), client: { read: true } }),";
|
|
4584
4588
|
var SHARES = "shares: table({ id: id(), grantee_id: text() }, { scope: owner(), client: { read: true, create: ['grantee_id'], delete: true }, unique: [['user_id', 'grantee_id']] }),";
|