@lunora/cli 1.0.0-alpha.3 → 1.0.0-alpha.30
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/__assets__/package-og.svg +1 -1
- package/dist/bin.mjs +1 -1
- package/dist/index.d.mts +243 -114
- package/dist/index.d.ts +243 -114
- package/dist/index.mjs +7 -7
- package/dist/packem_chunks/handler.mjs +89 -7
- package/dist/packem_chunks/handler10.mjs +8 -14
- package/dist/packem_chunks/handler11.mjs +19 -189
- package/dist/packem_chunks/handler12.mjs +176 -115
- package/dist/packem_chunks/handler13.mjs +118 -52
- package/dist/packem_chunks/handler14.mjs +50 -43
- package/dist/packem_chunks/handler15.mjs +46 -67
- package/dist/packem_chunks/handler16.mjs +73 -37
- package/dist/packem_chunks/handler17.mjs +38 -100
- package/dist/packem_chunks/handler18.mjs +87 -154
- package/dist/packem_chunks/handler19.mjs +148 -67
- package/dist/packem_chunks/handler2.mjs +2 -2
- package/dist/packem_chunks/handler20.mjs +71 -76
- package/dist/packem_chunks/handler21.mjs +71 -288
- package/dist/packem_chunks/handler3.mjs +1 -1
- package/dist/packem_chunks/handler4.mjs +1 -1
- package/dist/packem_chunks/handler5.mjs +2 -2
- package/dist/packem_chunks/handler6.mjs +2 -2
- package/dist/packem_chunks/handler7.mjs +1 -1
- package/dist/packem_chunks/handler8.mjs +1 -1
- package/dist/packem_chunks/handler9.mjs +311 -12
- package/dist/packem_chunks/planDevCommand.mjs +46 -49
- package/dist/packem_chunks/runCodegenCommand.mjs +2 -2
- package/dist/packem_chunks/runDeployCommand.mjs +105 -15
- package/dist/packem_chunks/runInitCommand.mjs +1980 -77
- package/dist/packem_chunks/runMigrateGenerateCommand.mjs +5 -5
- package/dist/packem_chunks/runResetCommand.mjs +4 -4
- package/dist/packem_chunks/runRpcCommand.mjs +1 -1
- package/dist/packem_shared/{COMMANDS-CHw4zOZ9.mjs → COMMANDS-B0ftFD_3.mjs} +47 -21
- package/dist/packem_shared/{command-BDXcJCCJ.mjs → command-D3lB_4Az.mjs} +6 -1
- package/dist/packem_shared/{commands-DIQ3nf0C.mjs → commands-B-gR09Z_.mjs} +124 -22
- package/dist/packem_shared/{createLogger-CHPNjFw2.mjs → createLogger-B40gPzQo.mjs} +9 -4
- package/dist/packem_shared/detect-package-manager-DYp7n3mJ.mjs +61 -0
- package/dist/packem_shared/{diffSnapshots-RR2ZE8Ya.mjs → diffSnapshots-BeDvvNiF.mjs} +1 -1
- package/dist/packem_shared/{insertSchemaExtension-BuzF6-t2.mjs → insertSchemaExtension-DAqbfr9Z.mjs} +15 -10
- package/dist/packem_shared/{output-format-7gyGR3h8.mjs → output-format-wUvAN6AL.mjs} +1 -1
- package/dist/packem_shared/prompt-cancelled-APzX1Im-.mjs +9 -0
- package/dist/packem_shared/runAddCommand-bnY6-HKb.mjs +4 -0
- package/dist/packem_shared/{schemaIrToSnapshot-aBTo7TM5.mjs → schemaIrToSnapshot-DdsljJT-.mjs} +1 -1
- package/dist/packem_shared/storage-BIsph-Vk.mjs +84 -0
- package/dist/packem_shared/tui-prompts-BjEN8XgP.mjs +658 -0
- package/dist/packem_shared/wrangler-secrets-P2_ZUR-k.mjs +47 -0
- package/package.json +12 -11
- package/skills/lunora-setup-storage/SKILL.md +7 -3
- package/dist/packem_shared/features-ocSSpZtS.mjs +0 -24
- package/dist/packem_shared/runAddCommand-3I3JFZUG.mjs +0 -4
- /package/dist/packem_shared/{defaultSpawner-DxI3mebw.mjs → createRecordingSpawner-DxI3mebw.mjs} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lunora/cli",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.30",
|
|
4
4
|
"description": "The Lunora CLI: init, dev, deploy, codegen, run, reset, and migrate commands",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent-skills",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"lunora": "./dist/bin.mjs"
|
|
31
31
|
},
|
|
32
32
|
"files": [
|
|
33
|
-
"dist",
|
|
33
|
+
"./dist",
|
|
34
34
|
"__assets__",
|
|
35
35
|
"skills",
|
|
36
36
|
"README.md",
|
|
@@ -51,23 +51,24 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@bomb.sh/tab": "0.0.
|
|
55
|
-
"@lunora/codegen": "1.0.0-alpha.
|
|
56
|
-
"@lunora/config": "1.0.0-alpha.
|
|
57
|
-
"@lunora/container": "1.0.0-alpha.
|
|
58
|
-
"@lunora/d1": "1.0.0-alpha.
|
|
59
|
-
"@lunora/seed": "1.0.0-alpha.
|
|
60
|
-
"@lunora/server": "1.0.0-alpha.1",
|
|
61
|
-
"@lunora/studio": "1.0.0-alpha.2",
|
|
62
|
-
"@lunora/values": "1.0.0-alpha.1",
|
|
54
|
+
"@bomb.sh/tab": "0.0.16",
|
|
55
|
+
"@lunora/codegen": "1.0.0-alpha.12",
|
|
56
|
+
"@lunora/config": "1.0.0-alpha.19",
|
|
57
|
+
"@lunora/container": "1.0.0-alpha.4",
|
|
58
|
+
"@lunora/d1": "1.0.0-alpha.7",
|
|
59
|
+
"@lunora/seed": "1.0.0-alpha.5",
|
|
63
60
|
"@visulima/cerebro": "3.0.0-alpha.32",
|
|
64
61
|
"@visulima/fs": "5.0.0-alpha.32",
|
|
65
62
|
"@visulima/pail": "4.0.0-alpha.22",
|
|
66
63
|
"@visulima/path": "3.0.0-alpha.13",
|
|
67
64
|
"@visulima/spinner": "1.0.0-alpha.4",
|
|
65
|
+
"@visulima/tui": "1.0.0-alpha.26",
|
|
66
|
+
"cfonts": "^3.3.1",
|
|
68
67
|
"giget": "3.3.0",
|
|
69
68
|
"jsonc-parser": "^3.3.1",
|
|
70
69
|
"magic-string": "^0.30.21",
|
|
70
|
+
"react": "^19.2.7",
|
|
71
|
+
"react-reconciler": "^0.33.0",
|
|
71
72
|
"ts-morph": "^28.0.0"
|
|
72
73
|
},
|
|
73
74
|
"engines": {
|
|
@@ -41,7 +41,7 @@ This:
|
|
|
41
41
|
1. Adds `@lunora/storage` and `@lunora/server` to `package.json` (run
|
|
42
42
|
`pnpm install` afterwards).
|
|
43
43
|
2. Adds an R2 bucket binding to `wrangler.jsonc` (`r2_buckets`, binding
|
|
44
|
-
**`UPLOADS`**, `bucket_name: "
|
|
44
|
+
**`UPLOADS`**, `bucket_name: "replace-me-uploads"` — rename it to a real
|
|
45
45
|
bucket). It **merges** into any existing `r2_buckets`.
|
|
46
46
|
3. Scaffolds `STORAGE_SIGNING_SECRET` (a secret) and `STORAGE_PUBLIC_BASE_URL`
|
|
47
47
|
into `.dev.vars`.
|
|
@@ -137,8 +137,12 @@ persist that, and pass the bare key back in — the component re-scopes it.
|
|
|
137
137
|
|
|
138
138
|
1. **Skipping `verifySignedUrl` on the download route.** Without it, anyone can
|
|
139
139
|
read any key. Always verify before streaming.
|
|
140
|
-
2. **Placeholder bucket name.** `
|
|
141
|
-
|
|
140
|
+
2. **Placeholder bucket name.** `lunora init` and `lunora add storage` prompt for
|
|
141
|
+
the bucket name (or take `--bucket <name>`), but the low-level
|
|
142
|
+
`lunora registry add storage` writes the placeholder
|
|
143
|
+
`bucket_name: "replace-me-uploads"` — rename it to a real R2 bucket. (R2 names
|
|
144
|
+
are lowercase alphanumeric + hyphens, 3–63 chars; wrangler rejects anything
|
|
145
|
+
else on `dev`/`deploy`.)
|
|
142
146
|
3. **Short / shared signing secret.** Use ≥32 chars and a distinct secret per
|
|
143
147
|
bucket; reusing it lets one bucket's URLs sign for another.
|
|
144
148
|
4. **Proxying bytes through the Worker.** The design uploads/downloads directly
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
const AUTH_PROVIDER_OPTIONS = [
|
|
2
|
-
{ description: "Email + password on better-auth (default)", label: "Email & password", value: "auth" },
|
|
3
|
-
{ description: "Clerk-hosted auth", label: "Clerk", value: "auth-clerk" },
|
|
4
|
-
{ description: "Auth0 (OIDC)", label: "Auth0", value: "auth-auth0" }
|
|
5
|
-
];
|
|
6
|
-
const DEFAULT_AUTH_ITEM = "auth";
|
|
7
|
-
const promptAuthProvider = async (select) => await select("Which auth provider?", AUTH_PROVIDER_OPTIONS, { default: DEFAULT_AUTH_ITEM }) ?? DEFAULT_AUTH_ITEM;
|
|
8
|
-
const EMAIL_ITEM = "mail";
|
|
9
|
-
const normalizeFeature = (raw) => {
|
|
10
|
-
const value = raw.trim();
|
|
11
|
-
if (value === "") {
|
|
12
|
-
return void 0;
|
|
13
|
-
}
|
|
14
|
-
const lower = value.toLowerCase();
|
|
15
|
-
if (lower === "auth") {
|
|
16
|
-
return { kind: "auth" };
|
|
17
|
-
}
|
|
18
|
-
if (lower === "email" || lower === "mail") {
|
|
19
|
-
return { kind: "email" };
|
|
20
|
-
}
|
|
21
|
-
return { item: lower, kind: "item" };
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export { AUTH_PROVIDER_OPTIONS as A, DEFAULT_AUTH_ITEM as D, EMAIL_ITEM as E, normalizeFeature as n, promptAuthProvider as p };
|
/package/dist/packem_shared/{defaultSpawner-DxI3mebw.mjs → createRecordingSpawner-DxI3mebw.mjs}
RENAMED
|
File without changes
|