mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
- Add provider field to ParsedPersonaPreview Rust struct and thread it through parse_png_persona, parse_json_persona, parse_md_persona, and parse_zip_pack (md and pack set it to None; JSON reads llmProvider key) - Add llmProvider key support in extract_sprout_fields and encode_persona_json so exported persona cards carry the LLM inference provider - Update export_persona_to_json to include provider in the serialized card - Update all encode_persona_json call sites (tests + commands) for new param TypeScript side was already correct in this branch: - RawParsedPersonaPreview and ParsedPersonaPreview already had provider field - parsePersonaFiles mapping already passed provider through - personaDialogState.ts already threaded provider in edit/duplicate/import - personaDialogState.test.mjs already had provider round-trip tests All 573 JS tests pass. Rust build clean (no new warnings).
50 lines
1.4 KiB
JavaScript
50 lines
1.4 KiB
JavaScript
import path from "node:path";
|
|
import { fileURLToPath } from "node:url";
|
|
import { runFileSizeCheck } from "../../scripts/check-file-sizes-core.mjs";
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
const projectRoot = path.resolve(__dirname, "..");
|
|
|
|
const MAX_LINES = 1000;
|
|
|
|
const rules = [
|
|
{ root: "src-tauri/src", extensions: new Set([".rs"]), maxLines: MAX_LINES },
|
|
{
|
|
root: "src/app",
|
|
extensions: new Set([".ts", ".tsx"]),
|
|
maxLines: MAX_LINES,
|
|
},
|
|
{
|
|
root: "src/features",
|
|
extensions: new Set([".ts", ".tsx"]),
|
|
maxLines: MAX_LINES,
|
|
},
|
|
{
|
|
root: "src/shared/api",
|
|
extensions: new Set([".ts", ".tsx"]),
|
|
maxLines: MAX_LINES,
|
|
},
|
|
];
|
|
|
|
// TEMP — these files exceed the 1000-line limit and are queued to be split.
|
|
// Do not add to this list; split the file instead. Remove each entry as its
|
|
// file is broken up. Tracked as a follow-up.
|
|
const overrides = new Map([
|
|
["src-tauri/src/managed_agents/nest.rs", 1420],
|
|
["src-tauri/src/managed_agents/runtime.rs", 1440],
|
|
["src-tauri/src/managed_agents/persona_card.rs", 1050],
|
|
["src-tauri/src/huddle/tts.rs", 1364],
|
|
["src/shared/api/tauri.ts", 1196],
|
|
["src-tauri/src/nostr_convert.rs", 1116],
|
|
["src/shared/api/relayClientSession.ts", 1022],
|
|
["src-tauri/src/migration.rs", 1130],
|
|
]);
|
|
|
|
await runFileSizeCheck({
|
|
projectRoot,
|
|
rules,
|
|
overrides,
|
|
label: "Desktop",
|
|
scriptPath: "desktop/scripts/check-file-sizes.mjs",
|
|
});
|