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.
- package/dist/boot.d.ts +63 -0
- package/dist/boot.js +23542 -0
- package/dist/boot.js.map +1 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +295 -70
- package/dist/cli.js.map +1 -1
- package/dist/server.d.ts +15 -0
- package/dist/server.js +22652 -0
- package/dist/server.js.map +1 -0
- package/dist/version.d.ts +17 -0
- package/dist/version.js +8 -0
- package/dist/version.js.map +1 -0
- package/electron-entry.cjs +80 -0
- package/package.json +55 -6
- package/public/agent-build-bgm.js +259 -194
- package/public/agent-overlay.js +49 -1
- package/public/agent-profile.css +59 -10
- package/public/agent-profile.js +175 -16
- package/public/app.js +1139 -261
- package/public/avatar-skill.js +520 -681
- package/public/avatars/chair.svg +1 -1
- package/public/avatars/first-principles.svg +1 -1
- package/public/avatars/historian.svg +1 -1
- package/public/avatars/long-horizon.svg +1 -1
- package/public/avatars/phenomenologist.svg +1 -1
- package/public/avatars/socrates.svg +1 -1
- package/public/avatars/user-empathy.svg +1 -1
- package/public/avatars/value-investor.svg +1 -1
- package/public/home.html +44 -6
- package/public/i18n.js +110 -16
- package/public/icons/logo.png +0 -0
- package/public/icons/logo.svg +10 -0
- package/public/icons.css +25 -4
- package/public/index.html +1220 -333
- package/public/onboarding.css +2 -3
- package/public/onboarding.js +2 -2
- package/public/ppt.html +99 -4
- package/public/quote-cta.css +2 -2
- package/public/room-settings.css +159 -11
- package/public/themes.css +93 -268
- package/public/user-settings.css +30 -69
- package/public/user-settings.js +92 -88
- package/public/voice-replay.js +37 -0
- package/public/icons/logo2.png +0 -0
- 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 };
|