@deslop/auth 0.1.2016 → 0.1.2034

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.
@@ -1,19 +1,15 @@
1
1
  <!doctype html>
2
- <html data-design="house" lang="en">
2
+ <html data-design="house" data-design-first-load="waiting" lang="en">
3
3
  <head>
4
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
- />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content" />
9
6
  <link rel="icon" href="/assets/icon-CPvsBESP.svg" />
10
7
  <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
11
8
  <link rel="manifest" href="/manifest.webmanifest" />
12
-
13
9
  <title>Auth</title>
14
- <script type="module" crossorigin src="/assets/index-BXmJwssV.js"></script>
15
- <link rel="modulepreload" crossorigin href="/assets/effect-BMjYtbuj.js">
16
- <link rel="stylesheet" crossorigin href="/assets/index-UVH6_tO3.css">
10
+ <script type="module" crossorigin src="/assets/index-D1rAfLbZ.js"></script>
11
+ <link rel="modulepreload" crossorigin href="/assets/effect-C4Y-cf8l.js">
12
+ <link rel="stylesheet" crossorigin href="/assets/index-BVnbt1PY.css">
17
13
  <style>html[data-design="house"]{--design-success:#1d6b3b;--design-warning:#7f5200;--design-error:#a62132;--design-info:#365e9f;--design-canvas:#f2f2f7;--design-surface:#ffffff;--design-raised:#f7f7fa;--design-control:#e7e7ed;--design-ink:#17171b;--design-secondary:#575761;--design-quiet:#5e5e6a;--design-rule:#d8d8df;--design-outline:#85858f;--design-glass:rgba(255,255,255,.92);--design-glass-edge:rgba(0,0,0,.13);--design-glass-highlight:#ffffff;--design-accent-auth:#415a89;--design-accent-deploy:#2c55a0;--design-accent-gateway:#8c315a;--design-accent-opm:#725333;--design-accent-scope:#126962;--design-accent-stash:#75520e;--design-accent-trips:#8b4617;color-scheme:light dark;background:var(--design-canvas);color:var(--design-ink)}
18
14
  html[data-design="house"] body{margin:0}
19
15
  @media (prefers-color-scheme: dark){html[data-design="house"]{--design-success:#5bd879;--design-warning:#ffd20a;--design-error:#ff817a;--design-info:#9cbaff;--design-canvas:#000000;--design-surface:#1c1c1e;--design-raised:#252527;--design-control:#303035;--design-ink:#f4f4f4;--design-secondary:#aaaab1;--design-quiet:#a6a6af;--design-rule:#3c3c41;--design-outline:#72727d;--design-glass:rgba(44,44,47,.90);--design-glass-edge:rgba(255,255,255,.20);--design-glass-highlight:rgba(255,255,255,.07);--design-accent-auth:#93a6cc;--design-accent-deploy:#86a6ef;--design-accent-gateway:#ec87ae;--design-accent-opm:#e6c4a0;--design-accent-scope:#5cc9c0;--design-accent-stash:#f2c46b;--design-accent-trips:#f39a4b}}</style>
@@ -22,17 +18,20 @@ html[data-design="house"] body{margin:0}
22
18
  </head>
23
19
  <body>
24
20
  <div id="root"></div>
25
- <div class="design-startup" aria-label="Loading Auth" role="status" aria-busy="true">
21
+ <div class="design-startup" role="status" aria-label="Loading Auth" aria-busy="true">
26
22
  <div class="design-start-list" aria-hidden="true"></div>
27
23
  <div class="design-start-detail" aria-hidden="true"></div>
28
24
  </div>
29
25
  <script>
30
- const search = new URLSearchParams(location.search)
31
- const startup = document.querySelector('.design-startup')
32
- startup.toggleAttribute(
33
- 'data-detail',
34
- search.get('pane') === 'detail' || (!search.has('pane') && search.has('person'))
35
- )
26
+ function revealFirstLoad() {
27
+ const page = document.documentElement
28
+ if (page.getAttribute('data-design-first-load') === 'waiting') {
29
+ page.setAttribute('data-design-first-load', 'shown')
30
+ }
31
+ }
32
+ setTimeout(revealFirstLoad, Math.max(0, Math.ceil(300 - performance.now())))
33
+ const query = new URLSearchParams(location.search)
34
+ document.querySelector('.design-startup').toggleAttribute('data-detail', query.get('pane') === 'detail' || (!query.has('pane') && query.has('person')))
36
35
  </script>
37
36
  </body>
38
37
  </html>
@@ -1,8 +1,8 @@
1
1
 
2
2
  const prefix = 'deslop-static-'
3
- const version = prefix + '54a639f176370daed3378aa32090e2789faa3a5c649922e484d4f0e370c7c4de'
3
+ const version = prefix + 'e2b70c079a4f8206bd6fd84712214d4317a24d448348dd2b8ff5b07bf9fe0ea7'
4
4
  const activationMarker = '/.deslop-activation'
5
- const assets = new Set(["/index.html","/assets/index-BXmJwssV.js","/assets/effect-BMjYtbuj.js","/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2","/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2","/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2","/assets/geist-latin-wght-normal-BgDaEnEv.woff2","/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2","/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2","/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2","/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2","/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2","/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2","/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2","/assets/icon-CPvsBESP.svg","/assets/index-UVH6_tO3.css"])
5
+ const assets = new Set(["/index.html","/assets/index-D1rAfLbZ.js","/assets/effect-C4Y-cf8l.js","/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2","/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2","/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2","/assets/geist-latin-wght-normal-BgDaEnEv.woff2","/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2","/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2","/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2","/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2","/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2","/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2","/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2","/assets/icon-CPvsBESP.svg","/assets/index-BVnbt1PY.css"])
6
6
  const routes = new URL(self.location.href).searchParams.getAll('route')
7
7
  const networkFirst = (function networkFirst (network , offline ) {
8
8
  // oxlint-disable-next-line @deslop/coding-standards/no-native-method-call -- The generated service worker has no Effect runtime; this is its native fetch promise.
@@ -1 +1 @@
1
- {"version":0,"bundler":"metro","fileMetadata":{"ios":{"bundle":"_expo/static/js/ios/main-215d5fe883044b7dbd48496bd2d270d6.hbc","assets":[]}}}
1
+ {"version":0,"bundler":"metro","fileMetadata":{"ios":{"bundle":"_expo/static/js/ios/entry-ef8a8321c0c7d96787a13076c26bb2f6.hbc","assets":[]}}}
@@ -1 +1 @@
1
- {"assets":[],"createdAt":"2026-12-02T11:35:50.269Z","extra":{"expoClient":{"ios":{"associatedDomains":["webcredentials:auth.mp281x.xyz"],"bundleIdentifier":"xyz.mp281x.auth","deploymentTarget":"26.0","icon":"./src/iphone/app.icon","infoPlist":{"ITSAppUsesNonExemptEncryption":false},"supportsTablet":true},"name":"Auth","orientation":"default","platforms":["ios"],"plugins":["expo-notifications"],"scheme":"auth","slug":"auth","userInterfaceStyle":"automatic","runtimeVersion":{"policy":"fingerprint"},"updates":{"checkAutomatically":"ON_LOAD","fallbackToCacheTimeout":0,"url":"https://auth.mp281x.xyz/api/iphone-update"},"version":"0.1.0","sdkVersion":"58.0.0"}},"id":"1f6ced65-86c0-4360-a62e-f45435a58b2b","launchAsset":{"contentType":"application/javascript","fileExtension":".bundle","hash":"KwlrCsDJosNVdQSKWDJpz5pP_VY8EK6GJfxkLUr3uTQ","key":"4d85dbf573e25f89cee477781604843f","path":"_expo/static/js/ios/main-215d5fe883044b7dbd48496bd2d270d6.hbc"},"runtimeVersion":"583120f9e3a65c2676e0e2e1791a4e0e023af86f"}
1
+ {"assets":[],"createdAt":"2026-12-03T12:23:08.578Z","extra":{"expoClient":{"ios":{"associatedDomains":["webcredentials:auth.mp281x.xyz"],"bundleIdentifier":"xyz.mp281x.auth","deploymentTarget":"26.0","icon":"./src/iphone/app.icon","supportsTablet":true,"infoPlist":{"ITSAppUsesNonExemptEncryption":false}},"name":"Auth","orientation":"default","platforms":["ios"],"plugins":["expo-notifications"],"runtimeVersion":{"policy":"fingerprint"},"scheme":"auth","slug":"auth","updates":{"checkAutomatically":"ON_LOAD","fallbackToCacheTimeout":0,"url":"https://auth.mp281x.xyz/api/iphone-update"},"userInterfaceStyle":"automatic","version":"0.1.0","sdkVersion":"58.0.0"}},"id":"4c59e82a-c293-4db7-bd55-e70b378b4bfe","launchAsset":{"contentType":"application/javascript","fileExtension":".bundle","hash":"L-ci3xiTwNgY2nOE755PWbnOS6blFm6OA--wge1_r3U","key":"ffeae788a4e664f9b9c78ca69c428521","path":"_expo/static/js/ios/entry-ef8a8321c0c7d96787a13076c26bb2f6.hbc"},"runtimeVersion":"764c04edbb8c0304174cfd7052cbcf9a0550d35a"}
package/dist/server.js CHANGED
@@ -5,7 +5,6 @@ import { networkInterfaces, userInfo } from "node:os";
5
5
  import * as NodeChildProcess from "node:child_process";
6
6
  import { Duplex, PassThrough, Readable, Transform, finished, pipeline } from "node:stream";
7
7
  import * as NodeCrypto from "node:crypto";
8
- import { createHash, randomUUID } from "node:crypto";
9
8
  import * as NFS from "node:fs";
10
9
  import * as Path from "node:path";
11
10
  import { Buffer as Buffer$1 } from "node:buffer";
@@ -129174,7 +129173,17 @@ const runWith = (command, config) => {
129174
129173
  });
129175
129174
  }, ({ error, userMessage }) => andThen(showUserError(error, userMessage), fail$8(error))), catchFilter((e) => isQuitError(e) ? succeed$10(e) : fail$13(e), (_) => interrupt$1));
129176
129175
  };
129177
- // ../../packages/runtime/src/config/iphone-export.ts
129176
+ // ../../packages/runtime/src/server/package.ts
129177
+ const packageRoot = pipe(import.meta.url, endsWith(".ts"), match({
129178
+ onFalse: () => fileURLToPath(new URL("..", import.meta.url)),
129179
+ onTrue: cwd
129180
+ }));
129181
+ const packageMetadata = gen(function* () {
129182
+ const file = (yield* Path$1).join(packageRoot, "package.json");
129183
+ return yield* decodeEffect(fromJsonString(PackageMetadata))(yield* (yield* FileSystem).readFileString(file));
129184
+ });
129185
+ const appName = map$7(packageMetadata, (metadata) => replace(metadata.name, "@deslop/", ""));
129186
+ // ../../packages/runtime/src/shared/iphone-export.ts
129178
129187
  const IPHONE_EXPORT_DIRECTORY = "dist/iphone";
129179
129188
  const Asset = Struct$2({
129180
129189
  contentType: String$6,
@@ -129191,52 +129200,8 @@ const IPhoneExport = fromJsonString(Struct$2({
129191
129200
  launchAsset: Asset,
129192
129201
  runtimeVersion: NonEmptyString
129193
129202
  }));
129194
- const ExpoExport = fromJsonString(Struct$2({ fileMetadata: Struct$2({ ios: Struct$2({
129195
- assets: ArraySchema(Struct$2({
129196
- ext: String$6,
129197
- path: String$6
129198
- })),
129199
- bundle: String$6
129200
- }) }) }));
129201
- const RuntimeVersion = fromJsonString(Struct$2({ runtimeVersion: String$6.check(isPattern(/^[a-f0-9]{40}$/u)) }));
129202
- fnUntraced(function* (resolvedRuntime, publicConfig) {
129203
- const fs = yield* FileSystem;
129204
- const path = yield* Path$1;
129205
- const runtime = yield* decodeEffect(RuntimeVersion)(resolvedRuntime);
129206
- const expoClient = yield* decodeEffect(fromJsonString(Record$1(String$6, Unknown)))(publicConfig);
129207
- const exported = yield* decodeEffect(ExpoExport)(yield* fs.readFileString(path.join(IPHONE_EXPORT_DIRECTORY, "metadata.json")));
129208
- const asset = fnUntraced(function* (relative, extension, contentType) {
129209
- const bytes = yield* fs.readFile(path.join(IPHONE_EXPORT_DIRECTORY, relative));
129210
- return {
129211
- contentType,
129212
- fileExtension: `.${extension}`,
129213
- hash: createHash("sha256").update(bytes).digest("base64url"),
129214
- key: createHash("md5").update(bytes).digest("hex"),
129215
- path: relative
129216
- };
129217
- });
129218
- const manifest = {
129219
- 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 }),
129220
- createdAt: formatIso(yield* now),
129221
- extra: { expoClient },
129222
- id: randomUUID(),
129223
- launchAsset: yield* asset(exported.fileMetadata.ios.bundle, "bundle", "application/javascript"),
129224
- runtimeVersion: runtime.runtimeVersion
129225
- };
129226
- yield* fs.writeFileString(path.join(IPHONE_EXPORT_DIRECTORY, "update.json"), yield* encodeEffect(IPhoneExport)(manifest));
129227
- });
129228
- // ../../packages/runtime/src/config/iphone.ts
129203
+ // ../../packages/runtime/src/shared/iphone-update-path.ts
129229
129204
  const IPHONE_UPDATE_PATH = "/api/iphone-update";
129230
- // ../../packages/runtime/src/server/package.ts
129231
- const packageRoot = pipe(import.meta.url, endsWith(".ts"), match({
129232
- onFalse: () => fileURLToPath(new URL("..", import.meta.url)),
129233
- onTrue: cwd
129234
- }));
129235
- const packageMetadata = gen(function* () {
129236
- const file = (yield* Path$1).join(packageRoot, "package.json");
129237
- return yield* decodeEffect(fromJsonString(PackageMetadata))(yield* (yield* FileSystem).readFileString(file));
129238
- });
129239
- const appName = map$7(packageMetadata, (metadata) => replace(metadata.name, "@deslop/", ""));
129240
129205
  // ../../packages/runtime/src/server/iphone-update.ts
129241
129206
  const registerIPhoneUpdates = fnUntraced(function* (router, auth, origin) {
129242
129207
  const fs = yield* FileSystem;
@@ -129441,6 +129406,7 @@ const publicAccess = [
129441
129406
  "ai-proxy.key",
129442
129407
  "ai-proxy.setKey",
129443
129408
  "ai-metering.usage",
129409
+ "ai-metering.keyUsage",
129444
129410
  "ai-metering.setBudget"
129445
129411
  ], (name) => ({
129446
129412
  app: "gateway",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deslop/auth",
3
- "version": "0.1.2016",
3
+ "version": "0.1.2034",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/MP281X/deslop.git",
@@ -13,7 +13,9 @@
13
13
  "dist"
14
14
  ],
15
15
  "type": "module",
16
- "sideEffects": false,
16
+ "sideEffects": [
17
+ "./src/iphone/main.ts"
18
+ ],
17
19
  "imports": {
18
20
  "#alerts/*": "./src/alerts/*",
19
21
  "#app": "./src/app.ts",
@@ -32,10 +34,37 @@
32
34
  "access": "public"
33
35
  },
34
36
  "config": {
35
- "port": 5101
37
+ "iphone": {
38
+ "auth": true,
39
+ "ios": {
40
+ "bundleIdentifier": "xyz.mp281x.auth",
41
+ "deploymentTarget": "26.0",
42
+ "icon": "./src/iphone/app.icon",
43
+ "supportsTablet": true
44
+ },
45
+ "name": "Auth",
46
+ "plugins": [
47
+ "expo-notifications"
48
+ ]
49
+ },
50
+ "port": 5101,
51
+ "web": {
52
+ "icon": "src/web/apple-touch-icon.png",
53
+ "title": "Auth",
54
+ "startup": {
55
+ "label": "Loading Auth",
56
+ "busy": true,
57
+ "detail": "person"
58
+ }
59
+ }
36
60
  },
37
61
  "engines": {
38
62
  "node": ">=26"
39
63
  },
40
- "fingerprint": "d648de99dc700e74327add6ac6a6c414667a601ad458f54ada689c9fff7ae22b"
64
+ "expo": {
65
+ "autolinking": {
66
+ "nativeModulesDir": "./src/modules"
67
+ }
68
+ },
69
+ "fingerprint": "d1195d8c6fd4ccb1980e9cae588df2c38314accc1ced24877dcad09edb269ea0"
41
70
  }