@alook/app 0.0.17 → 0.0.19
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/bundled/web/.open-next/.build/durable-objects/queue.js +4 -4
- package/bundled/web/.open-next/assets/BUILD_ID +1 -1
- package/bundled/web/.open-next/cache/{f21H7YjqPucaNMIOohPYC → JpvpBb9uBBz72TnryVX5l}/_global-error.cache +1 -1
- package/bundled/web/.open-next/cache/{f21H7YjqPucaNMIOohPYC → JpvpBb9uBBz72TnryVX5l}/_not-found.cache +1 -1
- package/bundled/web/.open-next/cache/{f21H7YjqPucaNMIOohPYC → JpvpBb9uBBz72TnryVX5l}/sitemap.xml.cache +1 -1
- package/bundled/web/.open-next/cloudflare/cache-assets-manifest.sql +1 -1
- package/bundled/web/.open-next/cloudflare/init.js +1 -1
- package/bundled/web/.open-next/dynamodb-provider/dynamodb-cache.json +1 -1
- package/bundled/web/.open-next/middleware/handler.mjs +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/BUILD_ID +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/build-manifest.json +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0-22391._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0.vfmip._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_018di6j._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_05mkm05._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_05t_tvs._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_06j7byr._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_094sp1w._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_09egrjz._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_09twg0j._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0a_02v1._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0av05ao._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0dajh_g._.js +2 -2
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0dxfkbl._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0edx130._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0euvrn9._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0h1-_48._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0iyza7b._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0jo981d._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0mvym74._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0n.jaqy._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0qz~dij._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0sf57qo._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0xkjukg._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0zzdc3u._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0~8mo49._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_0~~ji83._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/chunks/_13_kcb9._.js +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-build-manifest.js +3 -3
- package/bundled/web/.open-next/server-functions/default/src/web/.next/server/middleware-manifest.json +1 -1
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs +15 -15
- package/bundled/web/.open-next/server-functions/default/src/web/handler.mjs.meta.json +183 -183
- package/bundled/web/.open-next/server-functions/default/src/web/index.mjs +2 -2
- package/dist/cli/index.js +19660 -0
- package/dist/cli/meeting-runner.js +888 -0
- package/dist/cli/session-runner.js +18794 -0
- package/dist/index.js +26 -16
- package/package.json +7 -4
- /package/bundled/web/.open-next/assets/_next/static/{f21H7YjqPucaNMIOohPYC → JpvpBb9uBBz72TnryVX5l}/_buildManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{f21H7YjqPucaNMIOohPYC → JpvpBb9uBBz72TnryVX5l}/_clientMiddlewareManifest.js +0 -0
- /package/bundled/web/.open-next/assets/_next/static/{f21H7YjqPucaNMIOohPYC → JpvpBb9uBBz72TnryVX5l}/_ssgManifest.js +0 -0
- /package/bundled/web/.open-next/cache/{f21H7YjqPucaNMIOohPYC → JpvpBb9uBBz72TnryVX5l}/robots.txt.cache +0 -0
package/dist/index.js
CHANGED
|
@@ -19,14 +19,14 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
19
19
|
// src/index.ts
|
|
20
20
|
import { Command as Command6 } from "commander";
|
|
21
21
|
import { readFileSync as readFileSync4 } from "fs";
|
|
22
|
-
import { join as
|
|
23
|
-
import { fileURLToPath as
|
|
22
|
+
import { join as join10, dirname as dirname5 } from "path";
|
|
23
|
+
import { fileURLToPath as fileURLToPath4 } from "url";
|
|
24
24
|
|
|
25
25
|
// src/commands/onboard.ts
|
|
26
26
|
import { Command } from "commander";
|
|
27
27
|
import { execSync as execSync4, spawnSync, spawn as spawnAsync } from "child_process";
|
|
28
|
-
import { join as join8 } from "path";
|
|
29
|
-
import {
|
|
28
|
+
import { join as join8, dirname as dirname3 } from "path";
|
|
29
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
30
30
|
|
|
31
31
|
// src/lib/checks.ts
|
|
32
32
|
import { execSync } from "child_process";
|
|
@@ -98,9 +98,9 @@ function resolveBaseDir() {
|
|
|
98
98
|
var SELF_HOSTED_DIR = resolveBaseDir();
|
|
99
99
|
var PID_FILE = join(SELF_HOSTED_DIR, ".pids.json");
|
|
100
100
|
var DEFAULT_PORTS = {
|
|
101
|
-
web:
|
|
102
|
-
emailWorker:
|
|
103
|
-
wsDo:
|
|
101
|
+
web: 15210,
|
|
102
|
+
emailWorker: 15211,
|
|
103
|
+
wsDo: 15212
|
|
104
104
|
};
|
|
105
105
|
var WEB_URL = (port) => `http://localhost:${port}`;
|
|
106
106
|
|
|
@@ -329,7 +329,12 @@ function startServices(ports, opts = {}) {
|
|
|
329
329
|
writePids({
|
|
330
330
|
web: webChild.pid,
|
|
331
331
|
emailWorker: emailChild.pid,
|
|
332
|
-
wsDo: wsChild.pid
|
|
332
|
+
wsDo: wsChild.pid,
|
|
333
|
+
ports: {
|
|
334
|
+
web: ports.web,
|
|
335
|
+
emailWorker: ports.emailWorker,
|
|
336
|
+
wsDo: ports.wsDo
|
|
337
|
+
}
|
|
333
338
|
});
|
|
334
339
|
console.log(` Web: http://localhost:${ports.web} (pid=${webChild.pid})`);
|
|
335
340
|
console.log(` Email Worker: port ${ports.emailWorker} (pid=${emailChild.pid})`);
|
|
@@ -17221,6 +17226,7 @@ port = ${ports.web}
|
|
|
17221
17226
|
}
|
|
17222
17227
|
|
|
17223
17228
|
// src/commands/onboard.ts
|
|
17229
|
+
var __dirname3 = dirname3(fileURLToPath2(import.meta.url));
|
|
17224
17230
|
function onboardCommand() {
|
|
17225
17231
|
return new Command("onboard").description("Set up and start Alook locally").option("--port-web <port>", "Web server port", String(DEFAULT_PORTS.web)).option("--port-email <port>", "Email worker port", String(DEFAULT_PORTS.emailWorker)).option("--port-ws <port>", "WebSocket worker port", String(DEFAULT_PORTS.wsDo)).option("--skip-register", "Skip account creation (just start services)").action(async (opts) => {
|
|
17226
17232
|
const ports = {
|
|
@@ -17281,8 +17287,7 @@ Waiting for server to be ready...`);
|
|
|
17281
17287
|
const { sessionCookie } = await registerUser(baseURL, email3);
|
|
17282
17288
|
const workspace2 = await createWorkspace(baseURL, sessionCookie);
|
|
17283
17289
|
const { token } = await createMachineToken(baseURL, sessionCookie, workspace2.id);
|
|
17284
|
-
const
|
|
17285
|
-
const cliEntry = require2.resolve("@alook/cli/dist/index.js");
|
|
17290
|
+
const cliEntry = join8(__dirname3, "cli", "index.js");
|
|
17286
17291
|
const cliEnv = {
|
|
17287
17292
|
...process.env,
|
|
17288
17293
|
ALOOK_SERVER_URL: baseURL,
|
|
@@ -17391,17 +17396,22 @@ function updateCommand() {
|
|
|
17391
17396
|
// src/commands/cli.ts
|
|
17392
17397
|
import { Command as Command5 } from "commander";
|
|
17393
17398
|
import { spawnSync as spawnSync2 } from "child_process";
|
|
17394
|
-
import {
|
|
17395
|
-
|
|
17399
|
+
import { dirname as dirname4, join as join9 } from "path";
|
|
17400
|
+
import { fileURLToPath as fileURLToPath3 } from "url";
|
|
17401
|
+
var __dirname4 = dirname4(fileURLToPath3(import.meta.url));
|
|
17396
17402
|
function findCliEntry() {
|
|
17397
|
-
return
|
|
17403
|
+
return join9(__dirname4, "cli", "index.js");
|
|
17404
|
+
}
|
|
17405
|
+
function getWebPort() {
|
|
17406
|
+
const state = readPids();
|
|
17407
|
+
return state.ports?.web ?? DEFAULT_PORTS.web;
|
|
17398
17408
|
}
|
|
17399
17409
|
function runCli(args) {
|
|
17400
17410
|
const result = spawnSync2("node", [findCliEntry(), ...args], {
|
|
17401
17411
|
stdio: "inherit",
|
|
17402
17412
|
env: {
|
|
17403
17413
|
...process.env,
|
|
17404
|
-
ALOOK_SERVER_URL: WEB_URL(
|
|
17414
|
+
ALOOK_SERVER_URL: WEB_URL(getWebPort()),
|
|
17405
17415
|
ALOOK_PROJECT_ROOT: SELF_HOSTED_DIR,
|
|
17406
17416
|
ALOOK_CMD_PREFIX: "npx @alook/app cli"
|
|
17407
17417
|
}
|
|
@@ -17434,8 +17444,8 @@ function cliPassthroughCommand() {
|
|
|
17434
17444
|
|
|
17435
17445
|
// src/index.ts
|
|
17436
17446
|
function getVersion() {
|
|
17437
|
-
const
|
|
17438
|
-
for (const candidate of [
|
|
17447
|
+
const __dirname5 = dirname5(fileURLToPath4(import.meta.url));
|
|
17448
|
+
for (const candidate of [join10(__dirname5, "..", "package.json"), join10(__dirname5, "..", "..", "package.json")]) {
|
|
17439
17449
|
try {
|
|
17440
17450
|
const pkg = JSON.parse(readFileSync4(candidate, "utf-8"));
|
|
17441
17451
|
if (pkg.version)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alook/app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
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",
|
|
@@ -30,19 +30,22 @@
|
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
+
"citty": "^0.2.2",
|
|
33
34
|
"commander": "^14.0.3",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
35
|
+
"playwright-core": "^1.59.1",
|
|
36
|
+
"postal-mime": "^2.7.4",
|
|
37
|
+
"wrangler": "^4.90.0"
|
|
36
38
|
},
|
|
37
39
|
"devDependencies": {
|
|
38
40
|
"@types/bun": "^1.3.13",
|
|
39
41
|
"eslint": "^9.39.4",
|
|
40
42
|
"typescript": "^6.0.3",
|
|
41
43
|
"typescript-eslint": "^8.59.3",
|
|
44
|
+
"@alook/cli": "0.0.60",
|
|
42
45
|
"@alook/shared": "0.0.60"
|
|
43
46
|
},
|
|
44
47
|
"scripts": {
|
|
45
|
-
"build": "bun build src/index.ts --outdir dist --target node --format esm --external commander --external wrangler
|
|
48
|
+
"build": "bun build src/index.ts --outdir dist --target node --format esm --external commander --external wrangler && node scripts/bundle-cli.mjs",
|
|
46
49
|
"bundle": "bun run scripts/bundle.ts",
|
|
47
50
|
"lint": "eslint src/",
|
|
48
51
|
"test": "vitest run"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|