@somewhere-cloud/cli 0.38.100 → 0.38.101
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
CHANGED
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.101",
|
|
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.101",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"@modelcontextprotocol/sdk",
|
|
12
12
|
"chokidar",
|
package/package.json
CHANGED
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
"worker/containers/compile/runtime-types.cjs": "2da27c24e9cea2353307a2034a894a1e38c5b2fc6e2f59c8e5fd733e69917823",
|
|
16
16
|
"worker/containers/compile/schema-types.cjs": "4cd8d79a9401271bcb948865069b90d3d5f13a10c96c51cb084e22e63cbb57d8",
|
|
17
17
|
"worker/containers/compile/typed-data.cjs": "1c8bec853fbee4ffd34c651076a4e1f4d8b18c0c2be5e99e31df7c9283207627",
|
|
18
|
-
"worker/containers/compile/typed-files.cjs": "
|
|
18
|
+
"worker/containers/compile/typed-files.cjs": "f2568567a53994575ede91f9a0839965e64f94eb92ae11315650189b6de0f79c",
|
|
19
19
|
"worker/src/lib/platform-mailboxes.ts": "c64262a7ee2feeb0135e6fa7badb895bb1f3f0af4f9ec787e574963872c61589",
|
|
20
|
-
"worker/src/services/jobs/limits.ts": "
|
|
20
|
+
"worker/src/services/jobs/limits.ts": "2d0d73de8752ad4fb84d281bac6c3049bb34a7d0b08c7cda76634c19c303c529",
|
|
21
21
|
"worker/src/utils/alert-audit.ts": "318ce8cd45954f50a77bf0782efa4cc433016e923431e3a4042d2294f31610f8",
|
|
22
22
|
"worker/src/utils/alert-streak.ts": "cc15ff03920821cb4b2c6758fdd29508b24b29f258287e977c23a8ae28c14cbd",
|
|
23
23
|
"worker/src/utils/authority.ts": "e757b33b6467698d59670b565b57c916a02ad6e21a8463f416f1771702097b36",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"worker/src/utils/db-schema-deploy/schema-ownership.ts": "e6c811a87bc657707be3518dfe547c6d97718ac073108b126eb7f791c9c08202",
|
|
47
47
|
"worker/src/utils/dev-health-class.ts": "fd430f31b9c8469f3d90e118fd8c75d1836ebcf705c1f9e93915ffa53a4cb066",
|
|
48
48
|
"worker/src/utils/errors.ts": "f9d22810c285d2a512d258853bdd17cf9c1445c3983d51f3adbbcede273ac07d",
|
|
49
|
-
"worker/src/utils/event-log.ts": "
|
|
50
|
-
"worker/src/utils/feed-kinds.ts": "
|
|
49
|
+
"worker/src/utils/event-log.ts": "d6b0a41554f5995b43a9089cbd67817b990ba95ec58ff40cdfcc25d5877740ab",
|
|
50
|
+
"worker/src/utils/feed-kinds.ts": "53b5ed48a6ed3acdc89db10d25c17cd8f5f217bcb44c00df0f1f17d56280e3a9",
|
|
51
51
|
"worker/src/utils/journey-segment.ts": "b1d27c58bea03a791193d7120d88d232ea1c8374d6f25f72cd86b5b8c33c73a1",
|
|
52
52
|
"worker/src/utils/json-exact-integers.ts": "e2eb8d3b2e17da363eb14fb46d876208579e2e92bfac173fb27527e6c4fb575e",
|
|
53
53
|
"worker/src/utils/log-sanitize.ts": "6dd9d5f5e66b0c4efbac0ea640f62bc2acad70bc6af02d9f9bbbabfa53189ff3",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"worker/src/utils/telegram-attempt-receipts.ts": "a9ba55ae71f63ada44a105f1ceae04b0491bda0d6e77e5762db2dbecdd2981dd",
|
|
61
61
|
"worker/src/utils/telegram.ts": "dfbc9e756b44b445b3c3504c90a1094a94e6f9853ff9c0e0a84fba0e8c4518da"
|
|
62
62
|
},
|
|
63
|
-
"sha256": "
|
|
63
|
+
"sha256": "f6d1a9992da51df5736de1d0f5ceeb30feb8cd2c53f3d28262114c0f1f164fa6"
|
|
64
64
|
}
|
|
@@ -4106,7 +4106,7 @@ var require_typed_files = __commonJS({
|
|
|
4106
4106
|
if (collection.client.replace && field && field.parent) ops.push(`move(id: string, to: { ${fieldOption}}): Promise<FileResult<${meta}>>`);
|
|
4107
4107
|
if (collection.client.delete) ops.push("delete(id: string): Promise<FileResult<{ id: string; deleted: true }>>");
|
|
4108
4108
|
if (collection.public) {
|
|
4109
|
-
ops.push(collection.scope.kind === "server_only" ? "publicUrl(path: string): string" : "publicUrl(id: string, name: string): string");
|
|
4109
|
+
ops.push(collection.scope.kind === "server_only" ? "publicUrl(path: string, width?: 192 | 384 | 768 | 1536): string" : "publicUrl(id: string, name: string, width?: 192 | 384 | 768 | 1536): string");
|
|
4110
4110
|
}
|
|
4111
4111
|
return `${JSON.stringify(collection.name)}: { ${ops.join("; ")} }`;
|
|
4112
4112
|
}
|
|
@@ -4177,7 +4177,8 @@ function typeAllowed(types,type){if(!types.length)return true;const t=type.split
|
|
|
4177
4177
|
function makeCollection(shape){
|
|
4178
4178
|
const c={};const has=op=>shape.ops.indexOf(op)!==-1;
|
|
4179
4179
|
const doorUrl=id=>"/__sw/files/"+encodeURIComponent(shape.name)+"/"+encodeURIComponent(id);
|
|
4180
|
-
const publicUrl=(id,name)=>shape.public==="path"?
|
|
4180
|
+
const publicUrl=(id,name,width)=>{const w=shape.public==="path"?name:width;return basePublicUrl(id,name)+([192,384,768,1536].includes(w)?"?w="+w:"");};
|
|
4181
|
+
const basePublicUrl=(id,name)=>shape.public==="path"?"/storage"+shape.root+"/"+encodePath(id):"/storage"+shape.root+"/"+encodeURIComponent(id)+"/"+encodeURIComponent(name);
|
|
4181
4182
|
async function put(operation,id,file,options){
|
|
4182
4183
|
options=options||{};
|
|
4183
4184
|
if(!file||typeof file.size!=="number")return fail(400,"FILES_INPUT_INVALID","Pass a File or Blob.");
|