aladdin-ai 2.0.0 → 2.0.1

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/commands/init.js CHANGED
@@ -42,7 +42,9 @@ function fillEnv(text, vars) {
42
42
  }
43
43
 
44
44
  async function writeEnv(targetDir) {
45
- const tmplPath = path.join(TEMPLATES_DIR, '.env.template');
45
+ // Note: file is named `env.template` (no leading dot) because npm's default
46
+ // packaging silently drops dotfiles from `files` globs.
47
+ const tmplPath = path.join(TEMPLATES_DIR, 'env.template');
46
48
  const tmpl = await fs.readFile(tmplPath, 'utf8');
47
49
  const filled = fillEnv(tmpl, {
48
50
  POSTGRES_PASSWORD: genSecret(16),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aladdin-ai",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Self-hosted AI workspace — agents, memory, CRM, channels. One command to install and run.",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -0,0 +1,25 @@
1
+ # AladdinAI environment configuration.
2
+ # The `npx aladdin-ai init` wizard fills in secure random values for the
3
+ # secret-looking variables below. Edit as needed.
4
+
5
+ # ── Database ─────────────────────────────────────────────────────────
6
+ POSTGRES_USER=aladdin_user
7
+ POSTGRES_PASSWORD=__GENERATED__
8
+ POSTGRES_DB=aladdinai
9
+
10
+ # ── Security (regenerate before exposing to the internet) ────────────
11
+ # JWT_SECRET: openssl rand -hex 32
12
+ JWT_SECRET=__GENERATED__
13
+ JWT_ALGORITHM=HS256
14
+ JWT_ACCESS_TOKEN_EXPIRE_MINUTES=30
15
+ JWT_REFRESH_TOKEN_EXPIRE_DAYS=7
16
+
17
+ # FERNET_KEY: 32 random bytes base64-urlsafe encoded
18
+ FERNET_KEY=__GENERATED__
19
+
20
+ # ── Networking ───────────────────────────────────────────────────────
21
+ NEXT_PUBLIC_API_URL=http://localhost:8000/api
22
+
23
+ # ── Image version (advanced) ─────────────────────────────────────────
24
+ # Pin to a specific release if "latest" causes you issues.
25
+ # ALADDINAI_VERSION=1.0.0