lakebed 0.0.8 → 0.0.10

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 CHANGED
@@ -21,6 +21,8 @@ npx lakebed new
21
21
  npm exec --package lakebed -- lakebed dev my-app
22
22
  ```
23
23
 
24
+ `lakebed create` is an alias for `lakebed new`. New capsules get a git repository and initial commit unless they are created inside an existing git repository or `--no-git` is passed.
25
+
24
26
  ## Capsule Shape
25
27
 
26
28
  Lakebed v0 expects this directory layout:
@@ -60,6 +62,7 @@ export default capsule({
60
62
  ## Auth
61
63
 
62
64
  Every app starts with local guest auth. To let users sign in with Google, render the built-in button. Lakebed always asks Shoo for profile fields so the app can show a useful identifier like `auth.email` or `auth.displayName`.
65
+ Check `auth.isLoading` before showing signed-out UI, because Lakebed may still be confirming a stored session.
63
66
 
64
67
  ```tsx
65
68
  import { SignInWithGoogle, signOut, useAuth } from "lakebed/client";
@@ -68,6 +71,10 @@ export function App() {
68
71
  const auth = useAuth();
69
72
  const authLabel = auth.email ?? auth.displayName;
70
73
 
74
+ if (auth.isLoading) {
75
+ return <p>Checking session</p>;
76
+ }
77
+
71
78
  return auth.isGuest ? (
72
79
  <SignInWithGoogle />
73
80
  ) : (
@@ -111,7 +118,8 @@ queries: {
111
118
  ## Commands
112
119
 
113
120
  ```sh
114
- lakebed new [name] [--template todo]
121
+ lakebed new [name] [--template todo] [--no-git]
122
+ lakebed create [name] [--template todo] [--no-git]
115
123
  lakebed dev <capsule-dir> [--port 3000]
116
124
  lakebed build <capsule-dir> --target anonymous [--out .lakebed/artifacts/app.json] [--json]
117
125
  lakebed deploy [capsule-dir] [--ttl 7d] [--api <url>] [--json]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lakebed",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Agent-native CLI and runtime for building and deploying Lakebed capsules.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -29,6 +29,9 @@
29
29
  "src/runtime.js",
30
30
  "src/server.d.ts",
31
31
  "src/server.js",
32
+ "src/source-runtime-loader.mjs",
33
+ "src/source-runtime-worker.js",
34
+ "src/source-runtime.js",
32
35
  "src/source-store.js",
33
36
  "src/version.js"
34
37
  ],
@@ -50,7 +53,7 @@
50
53
  "access": "public"
51
54
  },
52
55
  "scripts": {
53
- "check": "node --check src/cli.js && node --check src/runtime.js && node --check src/server.js && node --check src/client.js && node --check src/source-store.js && node --check src/anonymous.js && node --check src/anonymous-server.js && node --check src/auth.js && node --check src/version.js"
56
+ "check": "node --check src/cli.js && node --check src/runtime.js && node --check src/server.js && node --check src/client.js && node --check src/source-store.js && node --check src/source-runtime.js && node --check src/source-runtime-worker.js && node --check src/source-runtime-loader.mjs && node --check src/anonymous.js && node --check src/anonymous-server.js && node --check src/auth.js && node --check src/version.js"
54
57
  },
55
58
  "dependencies": {
56
59
  "esbuild": "^0.27.1",