mirror of
https://github.com/block/buzz.git
synced 2026-11-27 11:41:21 +00:00
Merge origin/main into tho/singular-create-persona-template
Reconcile the persona-template UX feature with 60 commits of main.
Three conflicts resolved:
- ManagedAgentRow.tsx: took main's version. Main deleted the per-row
AgentActionsMenu entirely and consolidated agent actions into
UserProfileAgentActions.tsx (UserProfileAgentSettingsMenu). The
original Part 2 row-menu target no longer exists.
- UserProfilePanel.tsx / UserProfilePanelSections.tsx: took main's
reworked versions, then re-applied the save-as action on top.
Part 2 re-home (decision (a), flagged to Ned): the "Save as persona
template" action now lives in main's UserProfileAgentSettingsMenu,
reusing main's persona-dialog infra (setPersonaDialogState +
saveAsPersonaTemplateDialogState + submitProfilePersonaDialog). This
makes useSaveAsPersonaTemplate.ts dead code (its only consumers were
the deleted row-menu and the stale profile wiring) -- deleted.
Provider source stays backend.id via providerForAgentBackend (Ned
confirmed: top-level agent.provider is a derived snapshot/output,
backend.id is the canonical create input). Stale comments claiming
"ManagedAgent has no top-level provider on main" corrected; logic
unchanged.
File-size overrides bumped: lib.rs 1034->1035 (main grew it via
ca50d832 #1246 without bumping); UserProfilePanel.tsx 1000->1014 (the
~15-line save-as re-home on an edge-riding panel).
Gate green on the merged tree: pnpm typecheck, biome, check:file-sizes,
check:px-text, 1194 unit tests.
Co-authored-by: Taylor Ho <taylorkmho@gmail.com>
Signed-off-by: Taylor Ho <taylorkmho@gmail.com>
This commit is contained in:
commit
2ffed51ec5
@@ -30,24 +30,62 @@ const rules = [
|
||||
// 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/commands/agents.rs", 1294],
|
||||
// persona-events rebase: build_deploy_payload threads `state` for the
|
||||
// read-time relay-URL workspace fallback while keeping the create-time env
|
||||
// pin (the credential-leak guard). Load-bearing feature growth from the
|
||||
// rebase, queued to split with the rest of this list.
|
||||
// persona-refresh-on-spawn: re-snapshot + retain_managed_agent_pending call
|
||||
// in start_local_agent_with_preflight adds ~23 lines. Queued to split.
|
||||
["src-tauri/src/commands/agents.rs", 1380],
|
||||
// Residual repos_dir integration in ensure_nest_at: REPOS is provisioned
|
||||
// outside NEST_DIRS (it may be a symlink), so it needs its own create +
|
||||
// chmod-only-when-real-dir handling plus integration test coverage. The
|
||||
// self-contained repos_dir functions and their unit tests live in repos.rs;
|
||||
// this is the seam that must stay in nest.rs. Approved override; still queued
|
||||
// to split with the rest of this list.
|
||||
["src-tauri/src/managed_agents/nest.rs", 1447],
|
||||
["src-tauri/src/managed_agents/runtime.rs", 1953],
|
||||
["src-tauri/src/managed_agents/nest.rs", 1450],
|
||||
// harness-persona-sync: persona-runtime resolution threaded into the spawn
|
||||
// path here. Load-bearing feature growth; queued to split in the resolver
|
||||
// unify refactor followup.
|
||||
["src-tauri/src/managed_agents/runtime.rs", 2031],
|
||||
["src-tauri/src/managed_agents/personas.rs", 1080],
|
||||
// Phase-2 inbound reconcile + review-fix cycle: reconcile_inbound_persona_event
|
||||
// dispatches 30175/30176/30177 inbound plus kind:5 tombstone consume
|
||||
// (reconcile_inbound_tombstone), the two apply_inbound_* fns, the
|
||||
// event_d_tag/parse_deletion_coordinate helpers, and the preserve/overwrite +
|
||||
// secret-injection + tombstone test coverage. Load-bearing feature growth,
|
||||
// queued to split with the list. The two `agents-data-changed` emits (live
|
||||
// UI refresh on inbound reconcile + tombstone) add the latest growth.
|
||||
["src-tauri/src/commands/personas.rs", 1279],
|
||||
["src-tauri/src/managed_agents/persona_card.rs", 1050],
|
||||
// applyWorkspace reposDir parameter threaded through the Tauri invoke for
|
||||
// configurable repos_dir — a 3-line overage from load-bearing parameter
|
||||
// plumbing, not generic debt growth. Approved override; still queued to split.
|
||||
["src/shared/api/tauri.ts", 1198],
|
||||
// applyWorkspace reposDir parameter plus the validateReposDir binding,
|
||||
// threaded through Tauri invokes for configurable repos_dir, plus the
|
||||
// harness-persona-sync `harnessOverride` create-input bit — load-bearing
|
||||
// parameter plumbing, not generic debt growth. Approved override; still
|
||||
// queued to split.
|
||||
["src/shared/api/tauri.ts", 1209],
|
||||
// harness-persona-sync feature growth, queued to split in the resolver-unify
|
||||
// refactor followup. discovery.rs is dominated by the new test module
|
||||
// (the effective_agent_command / divergent / create-time override matrix);
|
||||
// types.rs adds the persona/instance harness fields. Load-bearing, not
|
||||
// generic debt.
|
||||
["src-tauri/src/managed_agents/discovery.rs", 1043],
|
||||
["src-tauri/src/managed_agents/types.rs", 1037],
|
||||
// migration_tests.rs carries the harness-sync migration coverage plus the
|
||||
// patch_json_records owner-only writeback regression test (SECURITY.md:90
|
||||
// crash-safe 0o600 fallback). Load-bearing security + feature coverage, not
|
||||
// generic debt growth. Approved override; still queued to split.
|
||||
["src-tauri/src/migration_tests.rs", 1410],
|
||||
["src-tauri/src/nostr_convert.rs", 1126],
|
||||
["src/shared/api/relayClientSession.ts", 1022],
|
||||
["src-tauri/src/migration.rs", 1295],
|
||||
["src-tauri/src/migration.rs", 1449],
|
||||
// persona-events rebase: boot-time event-sync wiring (run_boot_migrations
|
||||
// syncs team-dir edits before all personas.json readers; run_event_sync
|
||||
// signs the persona/team retention events post-identity) layered on top of
|
||||
// main's growth. Load-bearing feature growth, queued to split with the list.
|
||||
// Bumped 1034→1035 to match origin/main (ca50d832 grew this file by a line
|
||||
// via the GNOME-notifications fix #1246 without bumping the override).
|
||||
["src-tauri/src/lib.rs", 1035],
|
||||
// onMarkRead + isUnread prop threading (mirrors the onMarkUnread prop
|
||||
// already here) for the single-toggle mark-read/unread menu item — a small
|
||||
// overage from load-bearing per-message plumbing, not generic debt growth.
|
||||
@@ -56,7 +94,18 @@ const overrides = new Map([
|
||||
// useDueReminderBadgeCount hook call + sum to wire due-reminder count into
|
||||
// the Inbox nav badge — a small overage from load-bearing badge plumbing,
|
||||
// not generic debt growth. Approved override; still queued to split.
|
||||
["src/app/AppShell.tsx", 1007],
|
||||
["src/app/AppShell.tsx", 1010],
|
||||
// PersistBackend enum + marker-on-keyring-success plumbing and its three
|
||||
// fail-closed regression tests (silent identity rotation on keyring outage).
|
||||
// A small overage from load-bearing security plumbing on a file already at
|
||||
// 893 lines, not generic debt growth. Approved override; still queued to split.
|
||||
["src-tauri/src/app_state.rs", 1012],
|
||||
// singular-create persona-template: the "Save as persona template" re-home
|
||||
// adds saveAsPersonaTemplateDialogState import + handleSaveAsTemplate handler
|
||||
// + the Slot prop (~15 lines) onto main's already-decomposed-but-edge-riding
|
||||
// panel (998 lines on main). A small overage from load-bearing feature
|
||||
// plumbing, not generic debt growth. Queued to split with the rest.
|
||||
["src/features/profile/ui/UserProfilePanel.tsx", 1014],
|
||||
]);
|
||||
|
||||
await runFileSizeCheck({
|
||||
|
||||
Reference in New Issue
Block a user