@hosty-sdk/app 0.1.1 → 0.1.2

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/dist/embedder.js CHANGED
@@ -6,7 +6,7 @@
6
6
  // re-run your normal open flow for that app (which mints a fresh launch code), rate-limited.
7
7
  // The re-open must take the full launch-code path — an "already open → reuse the URL
8
8
  // without a code" optimization must not short-circuit recovery.
9
- import { AUTH_REQUIRED_INTENT_TYPE } from "./index";
9
+ import { AUTH_REQUIRED_INTENT_TYPE } from "./index.js";
10
10
  /**
11
11
  * Verifies that a `message` event is a genuine auth-required intent from the active app
12
12
  * frame. Every check is about facts only the embedder can know:
package/dist/react.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { type AppSessionStatus } from "./index";
1
+ import { type AppSessionStatus } from "./index.js";
2
2
  /**
3
3
  * Tolerant probe reader: accepts both identity-route shapes in the fleet — a top-level
4
4
  * `status` (marketplace/telemetry) and a nested `appSession.status` (demo-app,
package/dist/react.js CHANGED
@@ -4,7 +4,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
4
4
  // cards. Prop-less by design: the app id and browser-reachable Core origin arrive in the
5
5
  // probe response's `recovery` field (request-time values, never build-time props).
6
6
  import { useEffect, useState } from "react";
7
- import { buildCoreOpenUrl, decideRecoveryAction, detectLaunchMode, readRecoveryParams, } from "./index";
7
+ import { buildCoreOpenUrl, decideRecoveryAction, detectLaunchMode, readRecoveryParams, } from "./index.js";
8
8
  // Once-per-tab guard so a standalone app that returns from Core still unauthorized does
9
9
  // not bounce through /open forever. Cleared on a successful code exchange.
10
10
  const RECOVERY_GUARD_KEY = "hosty.auth.recovery-attempted";
package/dist/server.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import "server-only";
2
- import { type AppSessionFailureStatus, type AppSessionStatus, type SessionRecoveryParams } from "./index";
2
+ import { type AppSessionFailureStatus, type AppSessionStatus, type SessionRecoveryParams } from "./index.js";
3
3
  /** Per-app parameters: everything that legitimately diverges between apps stays a
4
4
  * parameter — cookie namespaces and role models are per-app by decision, never unified. */
5
5
  export interface HostyAppConfig {
package/dist/server.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // Server slice: Next route-handler factories and Core revalidation. Never reaches a client
2
2
  // bundle — the service token lives here.
3
3
  import "server-only";
4
- import { classifyRevalidationHttpStatus, } from "./index";
4
+ import { classifyRevalidationHttpStatus, } from "./index.js";
5
5
  // Core runs on the same host as the app services, so a short budget is plenty; a stalled
6
6
  // call must not hold a route open indefinitely.
7
7
  const CORE_AUTH_TIMEOUT_MS = 1_500;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hosty-sdk/app",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Hosty app auth: session state machine, recovery bridge, Core revalidation, and the embedder responder.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "scripts": {
26
26
  "test": "vitest run",
27
- "build": "tsc -p tsconfig.build.json"
27
+ "build": "tsc -p tsconfig.build.json && node scripts/fix-dist-extensions.mjs"
28
28
  },
29
29
  "dependencies": {
30
30
  "server-only": "^0.0.1"