@somewhere-cloud/cli 0.38.30 → 0.38.32
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 +25 -0
- package/dist/commands/deploy.js +9 -3
- package/dist/commands/deploy.js.map +1 -1
- package/dist/lib/init-green-template.js +15 -7
- package/dist/lib/init-green-template.js.map +1 -1
- package/dist/lib/skills-pack.generated.js +6 -6
- package/dist/lib/skills-pack.generated.js.map +1 -1
- package/dist/lib/surface-counts.js +25 -0
- package/dist/lib/surface-counts.js.map +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/runtime/DECLARED-DATA-VENDOR.json +4 -4
- package/runtime/PLATFORM-SOURCE.json +1 -1
- package/runtime/SOURCE-LINT-VENDOR.json +13 -13
- package/runtime/declared-data.cjs +6 -5
- package/runtime/source-lint.cjs +317 -142
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"shared/d1-session.ts": "2ae29b74bba68016c86d25fa2a58f8c2fce4aca8fe57fafc253d380c47a3c0ab",
|
|
7
7
|
"shared/types/placeholder-identity.ts": "089a46e2474a21193d3611eddd9c94b6bbe62441b3039ed80fc8499bada447ca",
|
|
8
8
|
"worker/containers/compile/checker-contract.cjs": "3a8355b9477d89d00bca47cf74032c3b3c6458941cf5c57ddae9e2228b51915d",
|
|
9
|
-
"worker/containers/compile/consumer-contract.cjs": "
|
|
9
|
+
"worker/containers/compile/consumer-contract.cjs": "47475e7f0b74ec556a52f6dfd7136ebe9633d3c9290e5c2ca3ddda1c5fc657d9",
|
|
10
10
|
"worker/containers/compile/declared-data-contract.cjs": "47ab54cbf6fb20b77e00b2f06e0d283733ee1f3774459f2a6f82c77042c1c93a",
|
|
11
11
|
"worker/containers/compile/generated-declarations-render.cjs": "7ffdb34645cc9eccac6eba39dc86b646a41c4de8a1a038d2b5b46f42df9f1157",
|
|
12
12
|
"worker/containers/compile/generated-declarations.cjs": "6e9902e054c5c784fd9b3c3fafc1869e79954100a45014e1132247cd82833ec4",
|
|
13
13
|
"worker/containers/compile/groups-types.cjs": "7c22b4bb96c9391005d434852600dc02bc8a6bbb99d78d2b8e3eb152f7b72c58",
|
|
14
|
-
"worker/containers/compile/runtime-types.cjs": "
|
|
14
|
+
"worker/containers/compile/runtime-types.cjs": "4aa3d3573913878cf5e2cfbb1053151866411c7684874bce180573efced864c4",
|
|
15
15
|
"worker/containers/compile/schema-types.cjs": "c62cc074de5da631c44f7da33ad949e3db2d288b2d2d63b2b615c5bc549c7f4a",
|
|
16
16
|
"worker/containers/compile/typed-data.cjs": "1c8bec853fbee4ffd34c651076a4e1f4d8b18c0c2be5e99e31df7c9283207627",
|
|
17
17
|
"worker/containers/compile/typed-files.cjs": "a0b1818afbc7673f84583c76436a3b3ca1d1fdf63d8d8db138b36646103f0708",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"worker/src/utils/db-schema-deploy/schema-ownership.ts": "e6c811a87bc657707be3518dfe547c6d97718ac073108b126eb7f791c9c08202",
|
|
44
44
|
"worker/src/utils/dev-health-class.ts": "fd430f31b9c8469f3d90e118fd8c75d1836ebcf705c1f9e93915ffa53a4cb066",
|
|
45
45
|
"worker/src/utils/errors.ts": "0583d1381c6275dbfb552d75c4b292247dcfab8f0efe51fd22afb8f516e8d6f4",
|
|
46
|
-
"worker/src/utils/event-log.ts": "
|
|
46
|
+
"worker/src/utils/event-log.ts": "75dba8684274f670d1249afec472774b9a55c48c08a0b8b0fa577e9a6c80f72e",
|
|
47
47
|
"worker/src/utils/feed-kinds.ts": "f5973cbe0337e54294f7d38fc93397adc2ad77110d431a101c5dc1214371e8a1",
|
|
48
48
|
"worker/src/utils/journey-segment.ts": "b1d27c58bea03a791193d7120d88d232ea1c8374d6f25f72cd86b5b8c33c73a1",
|
|
49
49
|
"worker/src/utils/json-exact-integers.ts": "e2eb8d3b2e17da363eb14fb46d876208579e2e92bfac173fb27527e6c4fb575e",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"worker/src/utils/telegram-attempt-receipts.ts": "a9ba55ae71f63ada44a105f1ceae04b0491bda0d6e77e5762db2dbecdd2981dd",
|
|
58
58
|
"worker/src/utils/telegram.ts": "dfbc9e756b44b445b3c3504c90a1094a94e6f9853ff9c0e0a84fba0e8c4518da"
|
|
59
59
|
},
|
|
60
|
-
"sha256": "
|
|
60
|
+
"sha256": "73d74d3226288de4a926def943348271bfb45d404336fa9bba476587af19aa8b"
|
|
61
61
|
}
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"worker/src/runtime/billing.ts": "1402812ce082564bb5cb520c99a657f076d356f090e600b1ff7a8bd90bdb4206",
|
|
27
27
|
"worker/src/runtime/calendar.ts": "483a7e0151b5cff2b0cccadc52da2a32d547c87a565edbbe66d7a2a26b537371",
|
|
28
28
|
"worker/src/runtime/connect.ts": "45bba4d2f90d3fe5bc60a985dacf459e1132f89fbbcbe369ec2829100acc049a",
|
|
29
|
-
"worker/src/runtime/context-head.ts": "
|
|
30
|
-
"worker/src/runtime/context-tail.ts": "
|
|
29
|
+
"worker/src/runtime/context-head.ts": "89c6bafe08a666812a3ac35bcd5c1da7b367a8bdd9677ccc047bb01310d3578c",
|
|
30
|
+
"worker/src/runtime/context-tail.ts": "8fa257b0117e01a7852dc27d5dd6c74064f1161b66353e7fdf4f36d73f30472a",
|
|
31
31
|
"worker/src/runtime/context.ts": "e3810d92c7c7bab05c12d518b012fcc84523e8aee0f1003a319ca11e8593e409",
|
|
32
32
|
"worker/src/runtime/cron.ts": "4aac732fe8ce072dec8e3dafaebfc1b48818ec34bb13b388a4f1bb3f184b4383",
|
|
33
33
|
"worker/src/runtime/crypto.ts": "5c91be24e7da79a8c11f04e06f70158ce89e09940a0918711c656d4cc893915d",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"worker/src/runtime/db-composed-writes.ts": "9c0fb6e8118cddf5dab51a2c5e2250a74097d4515349777d86365400943d0b7b",
|
|
37
37
|
"worker/src/runtime/db-generated-owner-read.ts": "56c177501f161434a4700150665b2b068dab8106fe34aa068f9b44af0b5df046",
|
|
38
38
|
"worker/src/runtime/db-intake.ts": "d7b7f4b5865f002c741a06c8214af4e54806295826ab69575ed9c403100f0752",
|
|
39
|
-
"worker/src/runtime/db-live-invalidation.ts": "
|
|
39
|
+
"worker/src/runtime/db-live-invalidation.ts": "c59c97b9a6cb1ff466496e8ef3358a0b8451ca64b1820717de7fdb102f35c771",
|
|
40
40
|
"worker/src/runtime/db-managed.ts": "e434117b5a852bda83ed199ad73a9eacf3409e5028e539e12618f68a58e61461",
|
|
41
41
|
"worker/src/runtime/db-policy.ts": "51ca5ceba706abfcd2680feeb679a05f885bbfc1f216bed777c4af838ab772d3",
|
|
42
42
|
"worker/src/runtime/db-public-read.ts": "f63d5599a20d54af83b2337fec58a4aafbc744b77e33d4bd87795d8b2f5cc573",
|
|
43
|
-
"worker/src/runtime/db-raw.ts": "
|
|
43
|
+
"worker/src/runtime/db-raw.ts": "37405137552f543fa6f4ced1d8339d168a5b42692acb0ecc93b471a69952bf3b",
|
|
44
44
|
"worker/src/runtime/db-relations.ts": "342cfa0da6a9495d29ec81a26d8e342bab6abb7477e586059a4a907674679c94",
|
|
45
45
|
"worker/src/runtime/db-render-ir.ts": "9163f992462dd23231571da3865bd80ae50f6e6a2ab0cbf8eeee118fdfbc16a7",
|
|
46
46
|
"worker/src/runtime/db-result-fidelity.ts": "224ae06727afcccd648ed73cffb4216321542e53d2bf7a7212dd0c5d00792f4e",
|
|
47
47
|
"worker/src/runtime/db-row-links.ts": "af41e679181cb4ecefb2df04f0d8f91f1f23abf50d0594c347fff15d59d4cb66",
|
|
48
48
|
"worker/src/runtime/db-session-recovery.ts": "7115703aad233f46295915273b05d04f4848ebe05ff1ec0f25f5ce5d298b418e",
|
|
49
|
-
"worker/src/runtime/db-structured-execution.ts": "
|
|
49
|
+
"worker/src/runtime/db-structured-execution.ts": "9f222d728b1b80621bfa772762c2c2b0b91dd2e290327dc7279aa5f204e5e218",
|
|
50
50
|
"worker/src/runtime/db-typed-errors.ts": "508f0cc79e85f6722c6696f777f4dfdf6e65ac8ff17157a8ae9b5358377c20b3",
|
|
51
|
-
"worker/src/runtime/db.ts": "
|
|
51
|
+
"worker/src/runtime/db.ts": "621aaa1351052b87a972b3462eadd2e3054ea54007cc21221b9282d8a3f357a4",
|
|
52
52
|
"worker/src/runtime/declared-data-read-plan.ts": "6748db1e3449248f7f049382e820e3738eb1d459247f418fd68b7988323e8ff2",
|
|
53
53
|
"worker/src/runtime/declared-data.ts": "f8d591994626651057bef642ad672d9db3c5e12d714cfbe5e1974e3a53b05841",
|
|
54
54
|
"worker/src/runtime/declared-files.ts": "18ce00c0e8531167e5ec9d331daffc9651678c2bac467b0bab8c38b1c639a5ca",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"worker/src/runtime/inbox.ts": "ace614a3e25f21c05f19c89526d564dc678f2b6131993963ef29e1ef1a53c154",
|
|
67
67
|
"worker/src/runtime/jobs.ts": "eeb96f356cdb51dcc72517d43f1d83d461127f2537c4b970bebba70d313979aa",
|
|
68
68
|
"worker/src/runtime/live-bridge.ts": "2909c5d38625b3ea9d21a10906fe7a503644c9d69f521701fd1cfbed38ea7fd5",
|
|
69
|
-
"worker/src/runtime/live-client.ts": "
|
|
69
|
+
"worker/src/runtime/live-client.ts": "599ac29a849502e00d9941e50e79a74e9ddd83655d9d85d56e3fd75c64ee1fd5",
|
|
70
70
|
"worker/src/runtime/logs.ts": "0a28e0c3770bcda51a1daa4efdc6af9324568197cf0b3730ee609b376019b265",
|
|
71
71
|
"worker/src/runtime/managed-intent-wire.ts": "f983c34732c20f98a17cdd2a8087b46dd313f37e1d1ad5fb6771cc6f2a40a6a9",
|
|
72
72
|
"worker/src/runtime/notifications.ts": "52360bfd5a14d5e588ce00bc2db623da510f9e9fc57b1275d1ea85a2b6117396",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"worker/src/runtime/queue.ts": "8f0bdda9bb857125d42cfbe0a4a50561daca56cc929f17bc91e1d4ba151cc998",
|
|
80
80
|
"worker/src/runtime/rate-limit.ts": "a63481a2144a46f39228b3e22b2c18df6e4f02d3ae4fac928cd2ee708cc1d1c8",
|
|
81
81
|
"worker/src/runtime/render.ts": "cbb484f18e410d26fcc87db259e1d10a1b18308405256b6c1a26afc2985707ed",
|
|
82
|
-
"worker/src/runtime/rooms-client.ts": "
|
|
83
|
-
"worker/src/runtime/rooms.ts": "
|
|
82
|
+
"worker/src/runtime/rooms-client.ts": "c9af172a9f1386c654abc4e30610eed3f0a122b2781556ea3cdfa5735b7e0926",
|
|
83
|
+
"worker/src/runtime/rooms.ts": "081fecc37d0dcf09ee9f25ccf6060a29ade7b273e21225d962c74b9dd004904f",
|
|
84
84
|
"worker/src/runtime/runtime-console-capture.ts": "db26d6b10dd811fe01ca43405a8a8a6209fb46befae13e2bb1354baeed824fdd",
|
|
85
85
|
"worker/src/runtime/runtime-log-lifecycle.ts": "2019cb8c7c828528c64efbd0150875acb728c552ee4f3a6dbed75c2b836f97fa",
|
|
86
86
|
"worker/src/runtime/schema-validator.ts": "052d004a46aa6730f9275d25c1e69d0abbfc4e825741d4ca496a4f2aabb316be",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"worker/src/runtime/storage.ts": "15c7953b994497c7883b774f79ae93bae96e16373a0826cc733d21005de22ad7",
|
|
89
89
|
"worker/src/runtime/tasks.ts": "75efa2e3083853bfba1dc49745ede8865ddd218b84d568a00da2dbd669f9ab23",
|
|
90
90
|
"worker/src/runtime/verify-signup.ts": "dcac46b4581794fe875e3f85e3d93a2253b470f60a3c7fcee68543d8be8a6fa1",
|
|
91
|
-
"worker/src/runtime/version.ts": "
|
|
91
|
+
"worker/src/runtime/version.ts": "7e2f4c7b4bbd96d04cf38bc2b12d0ad181a017d045d64a5900de0270b89948c0",
|
|
92
92
|
"worker/src/runtime/visitor-session.generated.ts": "f788a0c4efe22b18c313d8433150931d48a5f872e3bd98549d94138a5b0dfe5d",
|
|
93
93
|
"worker/src/runtime/web.ts": "269590d44ffa6239bb6e79999b58ba42435c230f045daea52bf73d09519afb0e",
|
|
94
94
|
"worker/src/security/browser-secret-scan.ts": "31ebc9dd94eed4d0a9a6b67b3b1e2505d4f7812c557c90337e034c1e3994c039",
|
|
@@ -135,12 +135,12 @@
|
|
|
135
135
|
"worker/src/utils/endpoint-auth-mode.ts": "101344f5b2595448fce1e5b29a80ec1caf5d2fd3657fd047cf6a04b7df61e792",
|
|
136
136
|
"worker/src/utils/endpoint-rate-limit.ts": "d22a1d9901200403c30a35ba9325552c7e8ca54b47a2279f63d686b75735e598",
|
|
137
137
|
"worker/src/utils/errors.ts": "0583d1381c6275dbfb552d75c4b292247dcfab8f0efe51fd22afb8f516e8d6f4",
|
|
138
|
-
"worker/src/utils/event-log.ts": "
|
|
138
|
+
"worker/src/utils/event-log.ts": "75dba8684274f670d1249afec472774b9a55c48c08a0b8b0fa577e9a6c80f72e",
|
|
139
139
|
"worker/src/utils/feed-kinds.ts": "f5973cbe0337e54294f7d38fc93397adc2ad77110d431a101c5dc1214371e8a1",
|
|
140
140
|
"worker/src/utils/function-bundle-metadata.ts": "f1a3c29046a224c6a8299bae4356c56477433b3bc66a22abf0ddd9a45a63f5e7",
|
|
141
141
|
"worker/src/utils/function-bundle-postgres.ts": "4afd199c82e98a940a36af01f305080907b6e450f97d894d971a4a6b6a933a9e",
|
|
142
142
|
"worker/src/utils/function-bundle-transport.ts": "88fa4aafae50cf68178b1a415453d96e8aa31e74aa5791c5ce3e62586642ba78",
|
|
143
|
-
"worker/src/utils/function-bundle.ts": "
|
|
143
|
+
"worker/src/utils/function-bundle.ts": "c10528b9229f28ff6b6effd6664bc2e8f0c1c114c3d2d3c7a62723b1a22b8114",
|
|
144
144
|
"worker/src/utils/function-trace-source.ts": "bdffc75e405e0772a693b835c752d4b72fbf491bef3e1e38daa7c8307bd40161",
|
|
145
145
|
"worker/src/utils/journey-segment.ts": "b1d27c58bea03a791193d7120d88d232ea1c8374d6f25f72cd86b5b8c33c73a1",
|
|
146
146
|
"worker/src/utils/json-exact-integers.ts": "e2eb8d3b2e17da363eb14fb46d876208579e2e92bfac173fb27527e6c4fb575e",
|
|
@@ -161,6 +161,6 @@
|
|
|
161
161
|
"worker/src/utils/telegram.ts": "dfbc9e756b44b445b3c3504c90a1094a94e6f9853ff9c0e0a84fba0e8c4518da",
|
|
162
162
|
"worker/src/vendor/neondatabase-serverless/source.generated.ts": "96a3c18fde7d8888fdb53a4d7cd0721c238a234521d2084d1e66868a8df8e69c"
|
|
163
163
|
},
|
|
164
|
-
"sha256": "
|
|
164
|
+
"sha256": "66a28bcc40a12505bad023a2d9cf20c78a55d58b15e8fb743cba22a972f77c89",
|
|
165
165
|
"fixtures_sha256": "908827d1430f4af5a83cae59ed476abc51dc9648757eac0089fe6e6db95f66c5"
|
|
166
166
|
}
|
|
@@ -1237,7 +1237,7 @@ interface SomewhereDbAggregateResult<Row = Record<string, unknown>> {
|
|
|
1237
1237
|
interface SomewhereDbRawCallerOptions { unscoped?: true | null; asServer?: true | null; user?: never }
|
|
1238
1238
|
type SomewhereDbLiveState =
|
|
1239
1239
|
| { name: string; state: 'ready'; release_id?: string; fingerprint: string; subscribe_url: string; expires_at: number }
|
|
1240
|
-
| { name: string; state: 'resync_required'; reason: string };
|
|
1240
|
+
| { name: string; state: 'resync_required' | 'unavailable'; reason: string };
|
|
1241
1241
|
type SomewhereDbLiveResult<Row = Record<string, unknown>> = SomewhereDbResult<Row> & { live: SomewhereDbLiveState };
|
|
1242
1242
|
type SomewhereDbScopeDeclaration =
|
|
1243
1243
|
| { intent?: 'scoped' | null; owner_column: string; sensitive_columns?: readonly string[] | null }
|
|
@@ -1280,8 +1280,6 @@ interface SomewhereCallerDb {
|
|
|
1280
1280
|
query(sql: string, params?: readonly unknown[] | null, options?: SomewhereDbRawCallerOptions | null): Promise<SomewhereDbResult>;
|
|
1281
1281
|
batch(statements: readonly SomewhereRawDbStatement[], options?: SomewhereDbRawCallerOptions | null): Promise<SomewhereRawBatchResult[]>;
|
|
1282
1282
|
aggregate<T extends SomewhereDbTable>(table: T, options: SomewhereDbAggregateOptionsFor<T> & { asServer?: true }): Promise<SomewhereDbAggregateResult<SomewhereDbAggregateRow<T>>>;
|
|
1283
|
-
// read must be the exact sw.db.from(...) result (or its promise) this release declares under name.
|
|
1284
|
-
live<Row>(name: string, read: SomewhereDbResult<Row> | PromiseLike<SomewhereDbResult<Row>>): Promise<SomewhereDbLiveResult<Row>>;
|
|
1285
1283
|
tables(): Promise<string[]>;
|
|
1286
1284
|
readonly scope: SomewhereDbScopeApi;
|
|
1287
1285
|
}
|
|
@@ -3847,6 +3845,9 @@ interface SomewhereRoomOps {
|
|
|
3847
3845
|
interface SomewhereRuntimeRooms extends SomewhereRoomOps {
|
|
3848
3846
|
readonly server: SomewhereRoomOps;
|
|
3849
3847
|
event(req: Request): Promise<SomewhereRoomEvent>;
|
|
3848
|
+
// A live list: read must be the exact sw.db.from(...) result (or its promise) this release
|
|
3849
|
+
// declares under name. Return it from a function; the browser follows it with watchLive.
|
|
3850
|
+
live<Row>(name: string, read: SomewhereDbResult<Row> | PromiseLike<SomewhereDbResult<Row>>): Promise<SomewhereDbLiveResult<Row>>;
|
|
3850
3851
|
}
|
|
3851
3852
|
|
|
3852
3853
|
interface SomewhereRuntimeContext {
|
|
@@ -4406,8 +4407,8 @@ var require_consumer_contract = __commonJS({
|
|
|
4406
4407
|
"worker/containers/compile/consumer-contract.cjs"(exports2, module2) {
|
|
4407
4408
|
"use strict";
|
|
4408
4409
|
var CONSUMER_CONTRACT2 = Object.freeze({
|
|
4409
|
-
version:
|
|
4410
|
-
digest: "
|
|
4410
|
+
version: 4,
|
|
4411
|
+
digest: "ccf5c29211e634d5f41a4a6e2574103d3491e236188aeb53079dbf2842fcc19e"
|
|
4411
4412
|
});
|
|
4412
4413
|
var MEMBERSHIPS = "memberships: table({ id: id(), team_id: text(), member_id: text() }, { scope: owner(), client: { read: true } }),";
|
|
4413
4414
|
var SHARES = "shares: table({ id: id(), grantee_id: text() }, { scope: owner(), client: { read: true, create: ['grantee_id'], delete: true }, unique: [['user_id', 'grantee_id']] }),";
|