@alook/app 0.0.7 → 0.0.8

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.
Files changed (22) hide show
  1. package/bundled/web/.open-next/.build/durable-objects/queue.js +4 -4
  2. package/bundled/web/.open-next/assets/BUILD_ID +1 -1
  3. package/bundled/web/.open-next/cache/{V1c6eLDYgmPMijvNSPLv0 → 6I1drAbY8kTvHRYIpMBMY}/_global-error.cache +1 -1
  4. package/bundled/web/.open-next/cache/{V1c6eLDYgmPMijvNSPLv0 → 6I1drAbY8kTvHRYIpMBMY}/_not-found.cache +1 -1
  5. package/bundled/web/.open-next/cache/{V1c6eLDYgmPMijvNSPLv0 → 6I1drAbY8kTvHRYIpMBMY}/sitemap.xml.cache +1 -1
  6. package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
  7. package/bundled/web/.open-next/cloudflare/init.js +1 -1
  8. package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
  9. package/bundled/web/.open-next/middleware/handler.mjs +2 -2
  10. package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
  11. package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
  12. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
  13. package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +1 -1
  14. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +2 -2
  15. package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +63 -63
  16. package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +2 -2
  17. package/dist/index.js +20 -8
  18. package/package.json +1 -1
  19. /package/bundled/web/.open-next/assets/_next/static/{V1c6eLDYgmPMijvNSPLv0 → 6I1drAbY8kTvHRYIpMBMY}/_buildManifest.js +0 -0
  20. /package/bundled/web/.open-next/assets/_next/static/{V1c6eLDYgmPMijvNSPLv0 → 6I1drAbY8kTvHRYIpMBMY}/_clientMiddlewareManifest.js +0 -0
  21. /package/bundled/web/.open-next/assets/_next/static/{V1c6eLDYgmPMijvNSPLv0 → 6I1drAbY8kTvHRYIpMBMY}/_ssgManifest.js +0 -0
  22. /package/bundled/web/.open-next/cache/{V1c6eLDYgmPMijvNSPLv0 → 6I1drAbY8kTvHRYIpMBMY}/robots.txt.cache +0 -0
package/dist/index.js CHANGED
@@ -177,12 +177,24 @@ function runMigrations() {
177
177
  const webDir = join4(SELF_HOSTED_DIR, "web");
178
178
  console.log("Running database migrations...");
179
179
  try {
180
- execSync2("npx wrangler d1 migrations apply alook-app --local", {
180
+ const output = execSync2("npx wrangler d1 migrations apply alook-app --local", {
181
181
  cwd: webDir,
182
- stdio: ["pipe", "inherit", "inherit"]
182
+ stdio: ["pipe", "pipe", "pipe"]
183
183
  });
184
- console.log("Migrations complete");
185
- } catch {
184
+ const text = output.toString();
185
+ const applied = text.match(/(\d+) commands? executed successfully/g);
186
+ if (applied) {
187
+ const total = applied.reduce((sum, m) => sum + Number(m.match(/\d+/)?.[0] ?? 0), 0);
188
+ console.log(` ✓ ${total} migration commands applied`);
189
+ } else if (text.includes("No migrations to apply")) {
190
+ console.log(" ✓ Already up to date");
191
+ } else {
192
+ console.log(" ✓ Migrations complete");
193
+ }
194
+ } catch (err) {
195
+ const stderr = err.stderr?.toString() ?? "";
196
+ if (stderr)
197
+ console.error(stderr);
186
198
  console.error("Error: failed to run migrations");
187
199
  process.exit(1);
188
200
  }
@@ -17413,14 +17425,14 @@ function runCli(args) {
17413
17425
  process.exit(result.status ?? 1);
17414
17426
  }
17415
17427
  function registerCommand() {
17416
- return new Command5("register").description("Register CLI with local Alook server").option("--token <token>", "Machine token").allowUnknownOption().action((_opts, cmd) => {
17417
- runCli(["register", ...cmd.args]);
17428
+ return new Command5("register").description("Register CLI with local Alook server").allowUnknownOption().passThroughOptions().argument("[args...]").action((args) => {
17429
+ runCli(["register", ...args]);
17418
17430
  });
17419
17431
  }
17420
17432
  function daemonCommand() {
17421
17433
  const daemon = new Command5("daemon").description("Manage the local Alook daemon");
17422
- daemon.command("start").description("Start the daemon").allowUnknownOption().action((_opts, cmd) => {
17423
- runCli(["daemon", "start", ...cmd.args]);
17434
+ daemon.command("start").description("Start the daemon").allowUnknownOption().passThroughOptions().argument("[args...]").action((args) => {
17435
+ runCli(["daemon", "start", ...args]);
17424
17436
  });
17425
17437
  daemon.command("stop").description("Stop the daemon").action(() => {
17426
17438
  runCli(["daemon", "stop"]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alook/app",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Run Alook locally — one command, no clone needed",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://github.com/alookai/alook#readme",