privateboard 0.1.5 → 0.1.7
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/cli.js +12 -2
- package/dist/cli.js.map +1 -1
- package/package.json +4 -2
- package/public/agent-profile.js +14 -0
- package/public/app.js +465 -704
- package/public/home.html +3 -3
- package/public/index.html +193 -151
- package/public/report.html +356 -59
- package/public/typing-sfx.js +158 -0
- package/public/user-settings.css +90 -0
- package/public/user-settings.js +71 -0
package/dist/cli.js
CHANGED
|
@@ -2849,6 +2849,11 @@ var UTILITY_PREFERENCE = [
|
|
|
2849
2849
|
];
|
|
2850
2850
|
function utilityModelFor(fallback = null) {
|
|
2851
2851
|
const reachable = new Set(reachableModels().map((m) => m.modelV));
|
|
2852
|
+
const prefs = getPrefs();
|
|
2853
|
+
const userDefault = prefs.defaultModelV;
|
|
2854
|
+
if (userDefault && UTILITY_PREFERENCE.includes(userDefault) && reachable.has(userDefault)) {
|
|
2855
|
+
return userDefault;
|
|
2856
|
+
}
|
|
2852
2857
|
const carrier = activeCarrier();
|
|
2853
2858
|
if (carrier) {
|
|
2854
2859
|
const preferred = CHEAP_BY_CARRIER[carrier];
|
|
@@ -15330,6 +15335,11 @@ function usageRouter() {
|
|
|
15330
15335
|
|
|
15331
15336
|
// src/server.ts
|
|
15332
15337
|
init_paths();
|
|
15338
|
+
|
|
15339
|
+
// src/version.ts
|
|
15340
|
+
var VERSION = "0.1.7";
|
|
15341
|
+
|
|
15342
|
+
// src/server.ts
|
|
15333
15343
|
function createApp() {
|
|
15334
15344
|
const app = new Hono10();
|
|
15335
15345
|
const dir = publicDir();
|
|
@@ -15353,8 +15363,9 @@ Build the package or check that public/ is bundled alongside dist/.`
|
|
|
15353
15363
|
});
|
|
15354
15364
|
app.get(
|
|
15355
15365
|
"/api/health",
|
|
15356
|
-
(c) => c.json({ ok: true, version:
|
|
15366
|
+
(c) => c.json({ ok: true, version: VERSION, time: (/* @__PURE__ */ new Date()).toISOString() })
|
|
15357
15367
|
);
|
|
15368
|
+
app.get("/api/version", (c) => c.json({ version: VERSION }));
|
|
15358
15369
|
app.get("/api/system/migrations", async (c) => {
|
|
15359
15370
|
const { getDb: getDb2 } = await Promise.resolve().then(() => (init_db(), db_exports));
|
|
15360
15371
|
try {
|
|
@@ -15421,7 +15432,6 @@ function isPortFree(port) {
|
|
|
15421
15432
|
}
|
|
15422
15433
|
|
|
15423
15434
|
// src/cli.ts
|
|
15424
|
-
var VERSION = "0.1.2";
|
|
15425
15435
|
async function main() {
|
|
15426
15436
|
const program = new Command().name("privateboard").description("PrivateBoard \xB7 your private board meeting, on call. Local-first, multi-agent thinking.").version(VERSION).option("-p, --port <n>", "port to listen on (default: auto-detect from 3030)").option("--host <h>", "host to bind", "127.0.0.1").option("--no-open", "don't open the browser automatically");
|
|
15427
15437
|
program.parse();
|