@knotpad/app 0.1.7 → 0.1.9
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 +3 -1
- package/components/layout/backup-scheduler.tsx +1 -0
- package/package.json +13 -2
- package/tsconfig.json +2 -3
- package/types/electron.d.ts +15 -0
package/bin/brief.js
CHANGED
|
@@ -185,7 +185,9 @@ const BUILD_ID = path.join(PKG_DIR, ".next", "BUILD_ID");
|
|
|
185
185
|
if (!fs.existsSync(BUILD_ID)) {
|
|
186
186
|
log("Building Knotpad (first run — takes ~30 seconds)…");
|
|
187
187
|
try {
|
|
188
|
-
|
|
188
|
+
const nextBin = path.join(PKG_DIR, "node_modules", ".bin", "next");
|
|
189
|
+
const cmd = process.platform === "win32" ? `node "${nextBin}" build` : `"${nextBin}" build`;
|
|
190
|
+
execSync(cmd, { cwd: PKG_DIR, stdio: "inherit", env: process.env });
|
|
189
191
|
ok("Build complete");
|
|
190
192
|
} catch {
|
|
191
193
|
die("Build failed. Run `npx @knotpad/app` again after fixing any errors.");
|
|
@@ -53,6 +53,7 @@ export function BackupScheduler() {
|
|
|
53
53
|
lastBackupAt: settings.lastBackupAt ? new Date(settings.lastBackupAt) : null,
|
|
54
54
|
});
|
|
55
55
|
if (!shouldRun || !settings.destinationPath) return;
|
|
56
|
+
if (!window.electronAPI) return;
|
|
56
57
|
|
|
57
58
|
const files: ElectronBackupFile[] = [];
|
|
58
59
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knotpad/app",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "Note-first project management with AI agent task routing",
|
|
5
5
|
"bin": {
|
|
6
6
|
"knotpad": "bin/brief.js"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"lib/",
|
|
15
15
|
"prisma/",
|
|
16
16
|
"public/",
|
|
17
|
+
"types/",
|
|
17
18
|
"auth.ts",
|
|
18
19
|
"auth.config.ts",
|
|
19
20
|
"middleware.ts",
|
|
@@ -26,7 +27,8 @@
|
|
|
26
27
|
"access": "public"
|
|
27
28
|
},
|
|
28
29
|
"scripts": {
|
|
29
|
-
"postinstall": "prisma generate"
|
|
30
|
+
"postinstall": "prisma generate",
|
|
31
|
+
"build": "next build"
|
|
30
32
|
},
|
|
31
33
|
"dependencies": {
|
|
32
34
|
"@auth/prisma-adapter": "^2.11.2",
|
|
@@ -37,8 +39,14 @@
|
|
|
37
39
|
"@neondatabase/serverless": "^1.1.0",
|
|
38
40
|
"@prisma/adapter-neon": "^7.8.0",
|
|
39
41
|
"@prisma/adapter-pg": "^7.8.0",
|
|
42
|
+
"@prisma/client": "^7.8.0",
|
|
40
43
|
"@stripe/react-stripe-js": "^6.3.0",
|
|
41
44
|
"@stripe/stripe-js": "^9.5.0",
|
|
45
|
+
"@tailwindcss/postcss": "^4.0.0",
|
|
46
|
+
"@types/d3": "^7.4.0",
|
|
47
|
+
"@types/node": "^20.0.0",
|
|
48
|
+
"@types/react": "^19.0.0",
|
|
49
|
+
"@types/react-dom": "^19.0.0",
|
|
42
50
|
"bcryptjs": "^3.0.3",
|
|
43
51
|
"d3": "^7.9.0",
|
|
44
52
|
"date-holidays": "^3.30.2",
|
|
@@ -51,11 +59,14 @@
|
|
|
51
59
|
"node-ical": "^0.26.1",
|
|
52
60
|
"pg": "^8.20.0",
|
|
53
61
|
"pglite-prisma-adapter": "^0.7.2",
|
|
62
|
+
"prisma": "^7.8.0",
|
|
54
63
|
"react": "19.2.4",
|
|
55
64
|
"react-dom": "19.2.4",
|
|
56
65
|
"react-markdown": "^10.1.0",
|
|
57
66
|
"remark-gfm": "^4.0.1",
|
|
58
67
|
"stripe": "^22.1.1",
|
|
68
|
+
"tailwindcss": "^4.0.0",
|
|
69
|
+
"typescript": "^5.0.0",
|
|
59
70
|
"zod": "^4.4.3"
|
|
60
71
|
},
|
|
61
72
|
"devDependencies": {
|
package/tsconfig.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface ElectronAPI {
|
|
2
|
+
writeBackupFiles: (destinationPath: string, files: Array<{ name: string; bytes: number[] }>) => Promise<void>;
|
|
3
|
+
readBackupFiles: (filePath: string) => Promise<Array<{ name: string; bytes: number[] }>>;
|
|
4
|
+
openDirectoryDialog: () => Promise<string | null>;
|
|
5
|
+
openSaveDialog: (defaultName: string) => Promise<string | null>;
|
|
6
|
+
selectBackupFolder: () => Promise<string | null>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare global {
|
|
10
|
+
interface Window {
|
|
11
|
+
electronAPI?: ElectronAPI;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export {};
|