@knotpad/app 0.2.1 → 0.2.3

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/bin/brief.js CHANGED
@@ -179,6 +179,11 @@ for (const [k, v] of Object.entries(env)) {
179
179
  process.env[k] = v;
180
180
  }
181
181
 
182
+ // Security guard: Force IS_CLOUD to false for CLI installations
183
+ // This prevents users from accidentally switching to cloud mode which would
184
+ // require production credentials and could cause connection errors
185
+ process.env.IS_CLOUD = "false";
186
+
182
187
  // ── 3. Build (if not already built) ───────────────────────────────────────────
183
188
 
184
189
  const BUILD_ID = path.join(PKG_DIR, ".next", "BUILD_ID");
@@ -197,7 +202,7 @@ if (!fs.existsSync(BUILD_ID)) {
197
202
  // ── 4. Start server ────────────────────────────────────────────────────────────
198
203
 
199
204
  // Pre-create PGlite data directory so the app can open it immediately at startup
200
- const DB_DIR = path.join(WORK_DIR, ".brief", "db");
205
+ const DB_DIR = path.join(WORK_DIR, ".knotpad", "db");
201
206
  try {
202
207
  fs.mkdirSync(DB_DIR, { recursive: true });
203
208
  } catch (e) {
@@ -20,7 +20,7 @@ export async function register() {
20
20
  const os = await import("os");
21
21
 
22
22
  const workDir = process.cwd();
23
- const dbDir = path.join(workDir, ".brief", "db");
23
+ const dbDir = path.join(workDir, ".knotpad", "db");
24
24
  try {
25
25
  await fs.mkdir(dbDir, { recursive: true });
26
26
  } catch (e) {
package/lib/prisma.ts CHANGED
@@ -81,7 +81,7 @@ export async function initLocalPrisma(): Promise<void> {
81
81
 
82
82
  const dataDir = process.env.BRIEF_DATA_DIR
83
83
  ? path.resolve(process.env.BRIEF_DATA_DIR)
84
- : path.join(process.cwd(), ".brief", "db");
84
+ : path.join(process.cwd(), ".knotpad", "db");
85
85
 
86
86
  const pglite = new PGlite(dataDir);
87
87
  g.briefPglite = pglite;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knotpad/app",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Note-first project management with AI agent task routing",
5
5
  "bin": {
6
6
  "knotpad": "bin/brief.js"