@deslop/deploy 0.1.1534 → 0.1.1545
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/README.md +5 -5
- package/bin/iphone.ts +3 -0
- package/dist/client/assets/effect-COGmMeEk.js +17 -0
- package/dist/client/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
- package/dist/client/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
- package/dist/client/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
- package/dist/client/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
- package/dist/client/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
- package/dist/client/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
- package/dist/client/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
- package/dist/client/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
- package/dist/client/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
- package/dist/client/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
- package/dist/client/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
- package/dist/client/assets/index-BeEBQhbS.css +1 -0
- package/dist/client/assets/index-D2T-Qx8_.js +1 -0
- package/dist/client/index.html +17 -17
- package/dist/iphone/_expo/static/js/ios/main-68806d1079a1aaf4bfbd66dbc873b315.hbc +0 -0
- package/dist/iphone/apple-touch-icon.png +0 -0
- package/dist/iphone/metadata.json +1 -0
- package/dist/iphone/update.json +1 -0
- package/dist/server.js +194 -12
- package/package.json +5 -3
- package/dist/client/assets/announce-Bgi2X_K2.js +0 -1
- package/dist/client/assets/effect-Cocodeuj.js +0 -17
- package/dist/client/assets/index-C9yyZ2Q1.js +0 -1
- package/dist/client/assets/index-_I5Nn0lx.css +0 -1
package/dist/client/index.html
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
|
-
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" name="viewport">
|
|
5
|
-
|
|
6
4
|
<meta charset="UTF-8" />
|
|
5
|
+
<meta
|
|
6
|
+
name="viewport"
|
|
7
|
+
content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
|
|
8
|
+
/>
|
|
7
9
|
<meta name="theme-color" content="#000000" />
|
|
10
|
+
<meta name="color-scheme" content="dark" />
|
|
8
11
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
9
|
-
<link rel="manifest" href="/manifest.webmanifest" />
|
|
10
12
|
<link rel="icon" href="/assets/icon-B5ZR8xks.svg" />
|
|
11
13
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
|
12
|
-
|
|
13
|
-
<link rel="preload" href="/api/runtime" as="fetch" crossorigin />
|
|
14
|
-
<link rel="preload" href="/api/account" as="fetch" crossorigin />
|
|
14
|
+
<link rel="manifest" href="/manifest.webmanifest" />
|
|
15
15
|
|
|
16
|
+
<link rel="preload" href="/api/account" as="fetch" crossorigin />
|
|
16
17
|
<title>Deploy</title>
|
|
17
|
-
<
|
|
18
|
-
<
|
|
19
|
-
<link rel="
|
|
20
|
-
<link rel="stylesheet" crossorigin href="/assets/index-_I5Nn0lx.css">
|
|
18
|
+
<script type="module" crossorigin src="/assets/index-D2T-Qx8_.js"></script>
|
|
19
|
+
<link rel="modulepreload" crossorigin href="/assets/effect-COGmMeEk.js">
|
|
20
|
+
<link rel="stylesheet" crossorigin href="/assets/index-BeEBQhbS.css">
|
|
21
21
|
</head>
|
|
22
|
-
<body>
|
|
23
|
-
<div id="root"></div>
|
|
24
|
-
<div class="deploy-startup" aria-label="Loading Deploy" role="status"
|
|
25
|
-
<div class="deploy-list
|
|
26
|
-
<div class="deploy-
|
|
22
|
+
<body style="margin: 0; background: #000; color: #f4f4f4">
|
|
23
|
+
<div id="root" style="height: 100dvh"></div>
|
|
24
|
+
<div class="deploy-startup" aria-label="Loading Deploy" role="status">
|
|
25
|
+
<div class="deploy-initial-list" aria-hidden="true"></div>
|
|
26
|
+
<div class="deploy-initial-detail" aria-hidden="true"></div>
|
|
27
27
|
</div>
|
|
28
28
|
<script>
|
|
29
|
-
const
|
|
29
|
+
const query = new URLSearchParams(location.search)
|
|
30
30
|
document
|
|
31
31
|
.querySelector('.deploy-startup')
|
|
32
|
-
.toggleAttribute('data-detail',
|
|
32
|
+
.toggleAttribute('data-detail', query.has('app') && query.get('pane') !== 'apps')
|
|
33
33
|
</script>
|
|
34
34
|
</body>
|
|
35
35
|
</html>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":0,"bundler":"metro","fileMetadata":{"ios":{"bundle":"_expo/static/js/ios/main-68806d1079a1aaf4bfbd66dbc873b315.hbc","assets":[]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"assets":[],"createdAt":"2026-11-27T20:53:37.797Z","extra":{"expoClient":{"ios":{"associatedDomains":["webcredentials:auth.mp281x.xyz"],"bundleIdentifier":"xyz.mp281x.deploy","icon":"./src/iphone/app.icon","supportsTablet":true},"name":"Deploy","orientation":"default","platforms":["ios"],"scheme":"deploy","slug":"deploy","userInterfaceStyle":"dark","runtimeVersion":{"policy":"fingerprint"},"updates":{"checkAutomatically":"ON_LOAD","fallbackToCacheTimeout":0,"url":"https://deploy.mp281x.xyz/api/iphone-update"},"version":"0.1.0","sdkVersion":"58.0.0"}},"id":"4b6bfe6a-3b3b-42f9-8eca-e38a45d454ef","launchAsset":{"contentType":"application/javascript","fileExtension":".bundle","hash":"f42OSxiXGDFmY_1kcB3Yb8y4rILaNmwAkhnW8yNig_c","key":"faab1466b901920166f7dc16a0d1b7f4","path":"_expo/static/js/ios/main-68806d1079a1aaf4bfbd66dbc873b315.hbc"},"runtimeVersion":"f549952f308d4cc74c4462605675e3446d7781a0"}
|
package/dist/server.js
CHANGED
|
@@ -6,6 +6,7 @@ import { userInfo } from "node:os";
|
|
|
6
6
|
import * as NodeChildProcess from "node:child_process";
|
|
7
7
|
import { Duplex, PassThrough, Readable, Transform, finished, pipeline } from "node:stream";
|
|
8
8
|
import * as NodeCrypto from "node:crypto";
|
|
9
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
9
10
|
import * as NFS from "node:fs";
|
|
10
11
|
import * as Path from "node:path";
|
|
11
12
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
@@ -3217,6 +3218,20 @@ const withFiber$1 = /*#__PURE__*/ makePrimitive$1({
|
|
|
3217
3218
|
return this[args](fiber);
|
|
3218
3219
|
}
|
|
3219
3220
|
});
|
|
3221
|
+
/**
|
|
3222
|
+
* Accesses the current fiber to compute a value without a separate `succeed`
|
|
3223
|
+
* operation.
|
|
3224
|
+
*
|
|
3225
|
+
* @internal
|
|
3226
|
+
*/
|
|
3227
|
+
const withFiberSucceed$1 = /*#__PURE__*/ makePrimitive$1({
|
|
3228
|
+
op: "WithFiberSucceed",
|
|
3229
|
+
[evaluate](fiber) {
|
|
3230
|
+
const value = this[args](fiber);
|
|
3231
|
+
const cont = fiber.getCont(contA);
|
|
3232
|
+
return cont ? cont[contA](value, fiber) : fiber.yieldWith(exitSucceed(value));
|
|
3233
|
+
}
|
|
3234
|
+
});
|
|
3220
3235
|
/** @internal */
|
|
3221
3236
|
const YieldableError = /*#__PURE__*/ function() {
|
|
3222
3237
|
class YieldableError extends globalThis.Error {}
|
|
@@ -19849,6 +19864,24 @@ const yieldNow = yieldNow$1;
|
|
|
19849
19864
|
*/
|
|
19850
19865
|
const withFiber = withFiber$1;
|
|
19851
19866
|
/**
|
|
19867
|
+
* Accesses the current fiber to compute a successful value.
|
|
19868
|
+
*
|
|
19869
|
+
* **Example** (Computing a value from the current fiber)
|
|
19870
|
+
*
|
|
19871
|
+
* ```ts import.meta.vitest
|
|
19872
|
+
* import { Effect } from "effect"
|
|
19873
|
+
*
|
|
19874
|
+
* const program = Effect.withFiberSucceed((fiber) => typeof fiber.id)
|
|
19875
|
+
*
|
|
19876
|
+
* Effect.runSync(program) // => "number"
|
|
19877
|
+
* ```
|
|
19878
|
+
*
|
|
19879
|
+
* @stability stable
|
|
19880
|
+
* @category constructors
|
|
19881
|
+
* @since 4.0.0
|
|
19882
|
+
*/
|
|
19883
|
+
const withFiberSucceed = withFiberSucceed$1;
|
|
19884
|
+
/**
|
|
19852
19885
|
* Converts a `Result` to an `Effect`.
|
|
19853
19886
|
*
|
|
19854
19887
|
* **Example** (Converting a Result into an Effect)
|
|
@@ -30076,7 +30109,7 @@ const isKey$2 = (u) => hasProperty(u, TypeId$60);
|
|
|
30076
30109
|
var Cipher = class extends (/*#__PURE__*/ Service$1()("effect/crypto/Cipher")) {};
|
|
30077
30110
|
const fail$4 = (method, reason) => fail$6("Cipher", method, reason);
|
|
30078
30111
|
const blockLength = 16;
|
|
30079
|
-
const params = (algorithm, iv) => algorithm.mode === "AES-CTR" ? {
|
|
30112
|
+
const params$1 = (algorithm, iv) => algorithm.mode === "AES-CTR" ? {
|
|
30080
30113
|
name: "AES-CTR",
|
|
30081
30114
|
counter: iv,
|
|
30082
30115
|
length: 128
|
|
@@ -30107,7 +30140,7 @@ const layerWebCrypto$5 = /*#__PURE__*/ effect(Cipher, /*#__PURE__*/ gen(function
|
|
|
30107
30140
|
if (options.iv.length !== blockLength) return fail$4(method, new InvalidArgument({ description: "IVs must contain exactly 16 bytes" }));
|
|
30108
30141
|
const cbc = key.algorithm.mode === "AES-CBC";
|
|
30109
30142
|
if (method === "decrypt" && cbc && (data.length === 0 || data.length % blockLength !== 0)) return fail$4(method, new DecryptionFailed());
|
|
30110
|
-
return run$6("Cipher", method, key.algorithm.name, crypto, async (subtle) => new Uint8Array(await subtle[method](params(key.algorithm, options.iv), await cryptoKeyFor(subtle, key), data)), (cause) => webCryptoError("Cipher", method, key.algorithm.name, cause, method === "decrypt" && cbc ? () => new DecryptionFailed() : void 0));
|
|
30143
|
+
return run$6("Cipher", method, key.algorithm.name, crypto, async (subtle) => new Uint8Array(await subtle[method](params$1(key.algorithm, options.iv), await cryptoKeyFor(subtle, key), data)), (cause) => webCryptoError("Cipher", method, key.algorithm.name, cause, method === "decrypt" && cbc ? () => new DecryptionFailed() : void 0));
|
|
30111
30144
|
});
|
|
30112
30145
|
return Cipher.of({
|
|
30113
30146
|
generateKey: (algorithm) => map$7(random.randomBytes(algorithm.keyLength), (bytes) => makeBytes(KeyProto$2, algorithm, bytes)),
|
|
@@ -62424,6 +62457,20 @@ const stream$1 = (body, options) => {
|
|
|
62424
62457
|
body: stream$2(body, getContentType(options, headers), options?.contentLength)
|
|
62425
62458
|
});
|
|
62426
62459
|
};
|
|
62460
|
+
const HttpPlatformKey = /*#__PURE__*/ Service$1("effect/http/HttpPlatform");
|
|
62461
|
+
/**
|
|
62462
|
+
* Creates a streamed file response for a file system path.
|
|
62463
|
+
*
|
|
62464
|
+
* **Details**
|
|
62465
|
+
*
|
|
62466
|
+
* The effect requires `HttpPlatform`, can fail with a platform error, and supports
|
|
62467
|
+
* options for status, headers, content type, offset, and byte range.
|
|
62468
|
+
*
|
|
62469
|
+
* @stability unstable
|
|
62470
|
+
* @category constructors
|
|
62471
|
+
* @since 4.0.0
|
|
62472
|
+
*/
|
|
62473
|
+
const file = (path, options) => flatMap$3(HttpPlatformKey, (platform) => platform.fileResponse(path, options));
|
|
62427
62474
|
/**
|
|
62428
62475
|
* Returns a response with the specified header set to the supplied value.
|
|
62429
62476
|
*
|
|
@@ -66401,6 +66448,14 @@ const RouterConfig = /*#__PURE__*/ Reference("effect/http/HttpRouter/RouterConfi
|
|
|
66401
66448
|
*/
|
|
66402
66449
|
var RouteContext = class extends (/*#__PURE__*/ Service$1()("effect/http/HttpRouter/RouteContext")) {};
|
|
66403
66450
|
/**
|
|
66451
|
+
* Effect that returns the path parameters captured for the current matched route.
|
|
66452
|
+
*
|
|
66453
|
+
* @stability unstable
|
|
66454
|
+
* @category getters
|
|
66455
|
+
* @since 4.0.0
|
|
66456
|
+
*/
|
|
66457
|
+
const params = /*#__PURE__*/ withFiberSucceed((fiber) => getUnsafe$1(fiber.context, RouteContext).params);
|
|
66458
|
+
/**
|
|
66404
66459
|
* Creates a layer that accesses the current `HttpRouter` service and runs the
|
|
66405
66460
|
* supplied effect.
|
|
66406
66461
|
*
|
|
@@ -99526,6 +99581,132 @@ const HttpAuth = middleware()(gen(function* () {
|
|
|
99526
99581
|
return yield* provideService$2(app, CurrentUser, user.success);
|
|
99527
99582
|
});
|
|
99528
99583
|
}));
|
|
99584
|
+
// ../../packages/runtime/src/config/iphone-export.ts
|
|
99585
|
+
const IPHONE_EXPORT_DIRECTORY = "dist/iphone";
|
|
99586
|
+
const Asset = Struct$2({
|
|
99587
|
+
contentType: String$6,
|
|
99588
|
+
fileExtension: String$6,
|
|
99589
|
+
hash: String$6,
|
|
99590
|
+
key: String$6,
|
|
99591
|
+
path: String$6
|
|
99592
|
+
});
|
|
99593
|
+
const IPhoneExport = fromJsonString(Struct$2({
|
|
99594
|
+
assets: ArraySchema(Asset),
|
|
99595
|
+
createdAt: String$6,
|
|
99596
|
+
extra: Struct$2({ expoClient: Record$1(String$6, Unknown) }),
|
|
99597
|
+
id: String$6,
|
|
99598
|
+
launchAsset: Asset,
|
|
99599
|
+
runtimeVersion: NonEmptyString
|
|
99600
|
+
}));
|
|
99601
|
+
const ExpoExport = fromJsonString(Struct$2({ fileMetadata: Struct$2({ ios: Struct$2({
|
|
99602
|
+
assets: ArraySchema(Struct$2({
|
|
99603
|
+
ext: String$6,
|
|
99604
|
+
path: String$6
|
|
99605
|
+
})),
|
|
99606
|
+
bundle: String$6
|
|
99607
|
+
}) }) }));
|
|
99608
|
+
const RuntimeVersion = fromJsonString(Struct$2({ runtimeVersion: String$6.check(isPattern(/^[a-f0-9]{40}$/u)) }));
|
|
99609
|
+
fnUntraced(function* (resolvedRuntime, publicConfig) {
|
|
99610
|
+
const fs = yield* FileSystem;
|
|
99611
|
+
const path = yield* Path$1;
|
|
99612
|
+
const runtime = yield* decodeEffect(RuntimeVersion)(resolvedRuntime);
|
|
99613
|
+
const expoClient = yield* decodeEffect(fromJsonString(Record$1(String$6, Unknown)))(publicConfig);
|
|
99614
|
+
const exported = yield* decodeEffect(ExpoExport)(yield* fs.readFileString(path.join(IPHONE_EXPORT_DIRECTORY, "metadata.json")));
|
|
99615
|
+
const asset = fnUntraced(function* (relative, extension, contentType) {
|
|
99616
|
+
const bytes = yield* fs.readFile(path.join(IPHONE_EXPORT_DIRECTORY, relative));
|
|
99617
|
+
return {
|
|
99618
|
+
contentType,
|
|
99619
|
+
fileExtension: `.${extension}`,
|
|
99620
|
+
hash: createHash("sha256").update(bytes).digest("base64url"),
|
|
99621
|
+
key: createHash("md5").update(bytes).digest("hex"),
|
|
99622
|
+
path: relative
|
|
99623
|
+
};
|
|
99624
|
+
});
|
|
99625
|
+
const manifest = {
|
|
99626
|
+
assets: yield* forEach$1(exported.fileMetadata.ios.assets, (entry) => asset(entry.path, entry.ext, getOrElse$1(getType(entry.ext), constant$1("application/octet-stream"))), { concurrency: 1 }),
|
|
99627
|
+
createdAt: formatIso(yield* now),
|
|
99628
|
+
extra: { expoClient },
|
|
99629
|
+
id: randomUUID(),
|
|
99630
|
+
launchAsset: yield* asset(exported.fileMetadata.ios.bundle, "bundle", "application/javascript"),
|
|
99631
|
+
runtimeVersion: runtime.runtimeVersion
|
|
99632
|
+
};
|
|
99633
|
+
yield* fs.writeFileString(path.join(IPHONE_EXPORT_DIRECTORY, "update.json"), yield* encodeEffect(IPhoneExport)(manifest));
|
|
99634
|
+
});
|
|
99635
|
+
// ../../packages/runtime/src/config/iphone.ts
|
|
99636
|
+
const IPHONE_UPDATE_PATH = "/api/iphone-update";
|
|
99637
|
+
// ../../packages/runtime/src/server/package.ts
|
|
99638
|
+
const packageRoot = match(endsWith(".ts")(import.meta.url), {
|
|
99639
|
+
onFalse: () => fileURLToPath(new URL("..", import.meta.url)),
|
|
99640
|
+
onTrue: cwd
|
|
99641
|
+
});
|
|
99642
|
+
const packageMetadata = gen(function* () {
|
|
99643
|
+
const file = (yield* Path$1).join(packageRoot, "package.json");
|
|
99644
|
+
return yield* decodeEffect(fromJsonString(PackageMetadata))(yield* (yield* FileSystem).readFileString(file));
|
|
99645
|
+
});
|
|
99646
|
+
const appName = map$7(packageMetadata, (metadata) => replace("@deslop/", "")(metadata.name));
|
|
99647
|
+
// ../../packages/runtime/src/server/iphone-update.ts
|
|
99648
|
+
const registerIPhoneUpdates = fnUntraced(function* (router, auth, origin) {
|
|
99649
|
+
const fs = yield* FileSystem;
|
|
99650
|
+
const path = yield* Path$1;
|
|
99651
|
+
const directory = path.join(packageRoot, IPHONE_EXPORT_DIRECTORY);
|
|
99652
|
+
const manifestFile = path.join(directory, "update.json");
|
|
99653
|
+
if (!(yield* fs.exists(manifestFile))) return;
|
|
99654
|
+
const manifest = yield* decodeEffect(IPhoneExport)(yield* fs.readFileString(manifestFile));
|
|
99655
|
+
const assetsPath = `${IPHONE_UPDATE_PATH}/assets`;
|
|
99656
|
+
const headers = {
|
|
99657
|
+
"cache-control": "no-store",
|
|
99658
|
+
"expo-protocol-version": "1",
|
|
99659
|
+
"expo-sfv-version": "0"
|
|
99660
|
+
};
|
|
99661
|
+
function authorized(serve) {
|
|
99662
|
+
return gen(function* () {
|
|
99663
|
+
const request = yield* HttpServerRequest;
|
|
99664
|
+
const account = yield* result$1(auth.account(request.headers));
|
|
99665
|
+
if (isFailure$1(account)) return empty(failureOptions(account.failure, 401));
|
|
99666
|
+
return yield* serve(request);
|
|
99667
|
+
});
|
|
99668
|
+
}
|
|
99669
|
+
function manifestAsset(asset) {
|
|
99670
|
+
return {
|
|
99671
|
+
contentType: asset.contentType,
|
|
99672
|
+
fileExtension: asset.fileExtension,
|
|
99673
|
+
hash: asset.hash,
|
|
99674
|
+
key: asset.key,
|
|
99675
|
+
url: new URL(`${assetsPath}/${asset.hash}`, origin).href
|
|
99676
|
+
};
|
|
99677
|
+
}
|
|
99678
|
+
const response = jsonUnsafe({
|
|
99679
|
+
...omit(manifest, ["assets", "launchAsset"]),
|
|
99680
|
+
assets: map$10(manifest.assets, manifestAsset),
|
|
99681
|
+
launchAsset: manifestAsset(manifest.launchAsset),
|
|
99682
|
+
metadata: {}
|
|
99683
|
+
}, {
|
|
99684
|
+
contentType: "application/expo+json",
|
|
99685
|
+
headers
|
|
99686
|
+
});
|
|
99687
|
+
yield* router.add("GET", IPHONE_UPDATE_PATH, authorized((request) => {
|
|
99688
|
+
if (request.headers["expo-protocol-version"] !== "1" || request.headers["expo-platform"] !== "ios") return succeed$5(empty({
|
|
99689
|
+
headers,
|
|
99690
|
+
status: 400
|
|
99691
|
+
}));
|
|
99692
|
+
if (request.headers["expo-runtime-version"] !== manifest.runtimeVersion || toLowerCase(request.headers["expo-current-update-id"] ?? "") === manifest.id) return succeed$5(empty({
|
|
99693
|
+
headers,
|
|
99694
|
+
status: 204
|
|
99695
|
+
}));
|
|
99696
|
+
return succeed$5(response);
|
|
99697
|
+
}));
|
|
99698
|
+
const exported = prepend$1(manifest.assets, manifest.launchAsset);
|
|
99699
|
+
yield* router.add("GET", `${assetsPath}/:hash`, authorized(fnUntraced(function* () {
|
|
99700
|
+
const params$2 = yield* params;
|
|
99701
|
+
return yield* pipe(exported, findFirst((entry) => entry.hash === params$2["hash"]), match$8({
|
|
99702
|
+
onNone: () => succeed$5(empty({ status: 404 })),
|
|
99703
|
+
onSome: (asset) => file(path.join(directory, asset.path), {
|
|
99704
|
+
contentType: asset.contentType,
|
|
99705
|
+
headers: { "cache-control": "private, max-age=31536000, immutable" }
|
|
99706
|
+
})
|
|
99707
|
+
}));
|
|
99708
|
+
})));
|
|
99709
|
+
});
|
|
99529
99710
|
// ../../packages/runtime/src/server/mcp.ts
|
|
99530
99711
|
const McpStream = middleware()((app) => gen(function* () {
|
|
99531
99712
|
if ((yield* HttpServerRequest).method === "POST") {
|
|
@@ -99550,16 +99731,6 @@ const layerStructuredTools = effect(McpServer, gen(function* () {
|
|
|
99550
99731
|
})
|
|
99551
99732
|
});
|
|
99552
99733
|
}));
|
|
99553
|
-
// ../../packages/runtime/src/server/package.ts
|
|
99554
|
-
const packageRoot = match(endsWith(".ts")(import.meta.url), {
|
|
99555
|
-
onFalse: () => fileURLToPath(new URL("..", import.meta.url)),
|
|
99556
|
-
onTrue: cwd
|
|
99557
|
-
});
|
|
99558
|
-
const packageMetadata = gen(function* () {
|
|
99559
|
-
const file = (yield* Path$1).join(packageRoot, "package.json");
|
|
99560
|
-
return yield* decodeEffect(fromJsonString(PackageMetadata))(yield* (yield* FileSystem).readFileString(file));
|
|
99561
|
-
});
|
|
99562
|
-
const appName = map$7(packageMetadata, (metadata) => replace("@deslop/", "")(metadata.name));
|
|
99563
99734
|
// ../../packages/runtime/src/server/probe.ts
|
|
99564
99735
|
const FIXED_INPUTS = {
|
|
99565
99736
|
"gateway connections.add": { url: "https://example.com/mcp" },
|
|
@@ -99599,6 +99770,16 @@ const publicAccess = [
|
|
|
99599
99770
|
callers: ["member"],
|
|
99600
99771
|
surface: "http GET /api/account"
|
|
99601
99772
|
},
|
|
99773
|
+
{
|
|
99774
|
+
app: "*",
|
|
99775
|
+
callers: ["member"],
|
|
99776
|
+
surface: `http GET ${IPHONE_UPDATE_PATH}`
|
|
99777
|
+
},
|
|
99778
|
+
{
|
|
99779
|
+
app: "*",
|
|
99780
|
+
callers: ["member"],
|
|
99781
|
+
surface: `http GET ${IPHONE_UPDATE_PATH}/assets/:hash`
|
|
99782
|
+
},
|
|
99602
99783
|
...map$10([
|
|
99603
99784
|
"POST /mcp",
|
|
99604
99785
|
"GET /mcp",
|
|
@@ -100905,6 +101086,7 @@ const layerRoutes = use((router) => gen(function* () {
|
|
|
100905
101086
|
const traces = yield* option(String$5("OTEL_URL"));
|
|
100906
101087
|
const canonical = yield* String$5("APP_URL");
|
|
100907
101088
|
const metadata = yield* cached(packageMetadata);
|
|
101089
|
+
yield* registerIPhoneUpdates(router, auth, canonical);
|
|
100908
101090
|
yield* router.add("GET", RUNTIME_PATH, gen(function* () {
|
|
100909
101091
|
const release = yield* metadata;
|
|
100910
101092
|
return yield* schemaJson(RuntimeConfig)({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deslop/deploy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1545",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/MP281X/deslop.git",
|
|
@@ -22,9 +22,11 @@
|
|
|
22
22
|
"type": "module",
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"imports": {
|
|
25
|
+
"#contracts": "./src/contracts.ts",
|
|
25
26
|
"#server/*": "./src/server/*",
|
|
26
27
|
"#web/*": "./src/web/*",
|
|
27
|
-
"#
|
|
28
|
+
"#iphone/*": "./src/iphone/*",
|
|
29
|
+
"#screens/*": "./src/screens/*"
|
|
28
30
|
},
|
|
29
31
|
"publishConfig": {
|
|
30
32
|
"access": "public"
|
|
@@ -35,5 +37,5 @@
|
|
|
35
37
|
"engines": {
|
|
36
38
|
"node": ">=26"
|
|
37
39
|
},
|
|
38
|
-
"fingerprint": "
|
|
40
|
+
"fingerprint": "cf71d116460856ef1c293f301d6060b39214c1ac8524a0c8e79dfe78355e93b3"
|
|
39
41
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=new WeakMap,t={};function n(t,n){let r=e.get(t);r||e.set(t,r={});let i=r[n];if(i?.isConnected)return i;let a=t.createElement(`div`);return a.setAttribute(`role`,n===`assertive`?`alert`:`status`),a.setAttribute(`aria-live`,n),a.setAttribute(`aria-atomic`,`true`),a.setAttribute(`data-ui-sdk-announcer`,n===`assertive`?`assertive`:``),a.style.cssText=`position:fixed;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap`,t.body.append(a),r[n]=a,a}function r(e,{priority:r=`polite`,doc:i=typeof document>`u`?void 0:document}={}){if(!e||!i?.body)return;let a=n(i,r);a.textContent=``,clearTimeout(t[r]),t[r]=setTimeout(()=>{a.textContent=e},100)}export{r as announce};
|