privateboard 0.1.15 → 0.1.17

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 (55) hide show
  1. package/dist/boot.d.ts +63 -0
  2. package/dist/boot.js +23514 -0
  3. package/dist/boot.js.map +1 -0
  4. package/dist/cli.d.ts +2 -0
  5. package/dist/cli.js +1895 -304
  6. package/dist/cli.js.map +1 -1
  7. package/dist/server.d.ts +15 -0
  8. package/dist/server.js +22624 -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 +50 -5
  15. package/public/adjourn-overlay.css +6 -6
  16. package/public/agent-build-bgm.js +292 -0
  17. package/public/agent-overlay.css +14 -14
  18. package/public/agent-overlay.js +49 -0
  19. package/public/agent-profile.css +445 -87
  20. package/public/agent-profile.js +411 -10
  21. package/public/app.js +2611 -887
  22. package/public/avatar-skill.js +520 -681
  23. package/public/avatars/chair.svg +1 -1
  24. package/public/avatars/first-principles.svg +1 -1
  25. package/public/avatars/historian.svg +1 -1
  26. package/public/avatars/long-horizon.svg +1 -1
  27. package/public/avatars/phenomenologist.svg +1 -1
  28. package/public/avatars/socrates.svg +1 -1
  29. package/public/avatars/user-empathy.svg +1 -1
  30. package/public/avatars/value-investor.svg +1 -1
  31. package/public/home.html +65 -32
  32. package/public/i18n.js +1990 -27
  33. package/public/icons/logo.png +0 -0
  34. package/public/icons/logo.svg +10 -0
  35. package/public/icons.css +25 -4
  36. package/public/index.html +3197 -1226
  37. package/public/magazine.html +12 -12
  38. package/public/new-agent.css +29 -29
  39. package/public/newspaper.html +20 -20
  40. package/public/onboarding.css +351 -274
  41. package/public/onboarding.js +616 -325
  42. package/public/ppt.html +99 -4
  43. package/public/quote-cta.css +4 -4
  44. package/public/report.html +2008 -1673
  45. package/public/room-settings.css +351 -35
  46. package/public/room-settings.js +5 -0
  47. package/public/share-cover-svg-creator.js +736 -0
  48. package/public/themes.css +44 -296
  49. package/public/typing-sfx.js +176 -3
  50. package/public/user-settings.css +79 -95
  51. package/public/user-settings.js +128 -102
  52. package/public/voice-onboarding.css +425 -0
  53. package/public/voice-onboarding.js +144 -0
  54. package/public/voice-replay.css +31 -38
  55. package/public/voice-replay.js +49 -11
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 };