privateboard 0.1.16 → 0.1.18

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 (45) hide show
  1. package/dist/boot.d.ts +63 -0
  2. package/dist/boot.js +23542 -0
  3. package/dist/boot.js.map +1 -0
  4. package/dist/cli.d.ts +2 -0
  5. package/dist/cli.js +295 -70
  6. package/dist/cli.js.map +1 -1
  7. package/dist/server.d.ts +15 -0
  8. package/dist/server.js +22652 -0
  9. package/dist/server.js.map +1 -0
  10. package/dist/version.d.ts +17 -0
  11. package/dist/version.js +8 -0
  12. package/dist/version.js.map +1 -0
  13. package/electron-entry.cjs +80 -0
  14. package/package.json +55 -6
  15. package/public/agent-build-bgm.js +259 -194
  16. package/public/agent-overlay.js +49 -1
  17. package/public/agent-profile.css +59 -10
  18. package/public/agent-profile.js +175 -16
  19. package/public/app.js +1139 -261
  20. package/public/avatar-skill.js +520 -681
  21. package/public/avatars/chair.svg +1 -1
  22. package/public/avatars/first-principles.svg +1 -1
  23. package/public/avatars/historian.svg +1 -1
  24. package/public/avatars/long-horizon.svg +1 -1
  25. package/public/avatars/phenomenologist.svg +1 -1
  26. package/public/avatars/socrates.svg +1 -1
  27. package/public/avatars/user-empathy.svg +1 -1
  28. package/public/avatars/value-investor.svg +1 -1
  29. package/public/home.html +44 -6
  30. package/public/i18n.js +110 -16
  31. package/public/icons/logo.png +0 -0
  32. package/public/icons/logo.svg +10 -0
  33. package/public/icons.css +25 -4
  34. package/public/index.html +1220 -333
  35. package/public/onboarding.css +2 -3
  36. package/public/onboarding.js +2 -2
  37. package/public/ppt.html +99 -4
  38. package/public/quote-cta.css +2 -2
  39. package/public/room-settings.css +159 -11
  40. package/public/themes.css +93 -268
  41. package/public/user-settings.css +30 -69
  42. package/public/user-settings.js +92 -88
  43. package/public/voice-replay.js +37 -0
  44. package/public/icons/logo2.png +0 -0
  45. package/public/icons/private-board-vi.html +0 -1716
package/dist/boot.d.ts ADDED
@@ -0,0 +1,63 @@
1
+ import { RunningServer } from './server.js';
2
+ import 'hono/types';
3
+ import 'hono';
4
+
5
+ interface SeedReport {
6
+ insertedAgents: number;
7
+ chairBackfilledRooms: number;
8
+ }
9
+ declare function runSeed(): SeedReport;
10
+
11
+ /**
12
+ * SQLite connection + migration runner.
13
+ *
14
+ * getDb() singleton (opened once per process)
15
+ * runMigrations() applies any registered migrations not yet recorded
16
+ *
17
+ * Migrations are imported as text (tsup `.sql` loader), so they ship inside
18
+ * dist/cli.js — no separate file copy step.
19
+ */
20
+
21
+ declare function closeDb(): void;
22
+
23
+ interface BoardroomDirs {
24
+ base: string;
25
+ knowledge: string;
26
+ briefs: string;
27
+ exports: string;
28
+ logs: string;
29
+ }
30
+
31
+ /**
32
+ * Shared boot / shutdown for every PrivateBoard entrypoint.
33
+ *
34
+ * Two entrypoints call into here:
35
+ * - src/cli.ts → `npx privateboard`
36
+ * - electron/main.ts → packaged desktop app
37
+ *
38
+ * Both must run the same migrations + recoveries + reconcile + dream sweep so
39
+ * `~/.boardroom/state.db` stays consistent regardless of who opens it. The
40
+ * banner / signal-handler bookkeeping stays in the caller — `bootApp` returns
41
+ * structured results so each surface can render its own progress.
42
+ */
43
+
44
+ interface BootOptions {
45
+ port?: number;
46
+ host?: string;
47
+ }
48
+ interface BootResult {
49
+ server: RunningServer;
50
+ dirs: BoardroomDirs;
51
+ port: number;
52
+ host: string;
53
+ applied: string[];
54
+ seed: ReturnType<typeof runSeed>;
55
+ reconcile: {
56
+ switched: number;
57
+ cleared: number;
58
+ } | null;
59
+ }
60
+ declare function bootApp(opts?: BootOptions): Promise<BootResult>;
61
+ declare function shutdownApp(server: RunningServer | null): Promise<void>;
62
+
63
+ export { type BootOptions, type BootResult, bootApp, closeDb, shutdownApp };