Allow well-formed bread.command events on the emit bus

Docs already said any module or app could publish bread.command.<app>.<verb>,
but command is reserved so both unsourced bread-emit and sourced App emit
rejected the whole namespace. Keep command unclaimable as an app id; accept
bread.command.<known-app>.<verb> (and let an app command another known app).
Also ship bread-emit and bread-module-host, and give udev enumerate the same
classification fields as a live add so boot-time devices are not all unknown.
This commit is contained in:
Breadway 2026-08-15 21:41:40 +08:00
parent a6973360bd
commit d3517d1433
52 changed files with 26405 additions and 6811 deletions

View file

@ -1 +1,90 @@
{"0": "Lua Runtime Core", "1": "Adapter Framework", "2": "Adapter Configuration", "3": "App Classification", "4": "Widget Spec & Placement", "5": "Adapter Implementations", "6": "Filesystem Adapter", "7": "Git State Tracking", "8": "Integration Tests", "9": "State Engine", "10": "Module Management", "11": "Systemd Adapter", "12": "Git Hooks", "13": "CLI Core", "14": "Type Definitions", "15": "Podman Adapter", "16": "Event Routing", "17": "Udev Adapter", "18": "Shell Hooks", "19": "Bluetooth Adapter", "20": "Subscription System", "21": "Glob Pattern Matching", "22": "Event Dispatch", "23": "Network RTNetlink", "24": "Network Adapter", "25": "Power Management", "26": "Hyprland Integration", "27": "UPower Integration", "28": "CI/CD Workflows", "29": "Git Widget", "30": "Emit CLI Tool", "31": "Shared Library Init", "32": "Active Window Widget", "33": "CPU Temp Widget", "34": "Focus Mode Widget", "35": "Workflow Status Widget", "36": "Widget API Documentation", "37": "Bluetooth Widget", "38": "Media Pause Widget", "39": "Module Patterns", "40": "Monitor Dock", "41": "Workflow Dock", "42": "Battery Warning", "43": "Install Script", "44": "Filesystem Adapter Spec", "45": "Git Adapter Spec", "46": "Podman Adapter Spec", "47": "Systemd Adapter Spec", "48": "Lua Timer API (after)", "49": "Lua Bluetooth API", "50": "Lua Timer API (every)", "51": "Lua Exec API", "52": "Lua Hyprland API", "53": "Lua Notify API", "54": "Lua State Watch API", "55": "Emit Binary Build", "56": "Adapters Module", "57": "System Startup Event", "58": "Monitor Layout Config", "59": "Binds Module", "60": "Bakery Package Manager", "61": "GUI Control Center Roadmap", "62": "Cross-Device Mesh Roadmap", "63": "Version Computation"}
{
"0": "lua/mod.rs",
"1": "RawEvent",
"2": "config.rs",
"3": "Server",
"4": "widget.rs",
"5": "Bread Daemon (breadd)",
"6": "filesystem.rs",
"7": "git.rs",
"8": "Result",
"9": "state_engine.rs",
"10": "modules_mgmt.rs",
"11": "systemd.rs",
"12": "hooks_git.rs",
"13": "bread-cli/src/main.rs",
"14": "types.rs",
"15": "podman.rs",
"16": "StateHandle",
"17": "run_udev_monitor",
"18": "hooks_shell.rs",
"19": "bluetooth.rs",
"20": "SubscriptionId",
"21": "glob.rs",
"22": "run_state_engine",
"23": "RtnetlinkAdapter",
"24": "network.rs",
"25": "power.rs",
"26": "hyprland.rs",
"27": "Adapter",
"28": "dl.breadway.dev Distribution",
"29": "git-branch-widget.lua",
"30": "TestHarness",
"31": "Sync",
"32": "active-window-widget.lua",
"33": "cpu-temp-widget.lua",
"34": "focus-mode-widget.lua",
"35": "workflow-status-widget.lua",
"36": "bread.widget API",
"37": "bluetooth-toggle-widget.lua",
"38": "pause-media-on-headphone-unplug.lua",
"39": "Autostart Example Module",
"40": "dock-monitors.lua",
"41": "dock-workflow.lua",
"42": "low-battery-warning.lua",
"43": "install.sh",
"44": "Filesystem Adapter",
"45": "Git Adapter",
"46": "Podman Adapter",
"47": "Systemd Adapter",
"48": "bread.after(delay_ms, fn)",
"49": "bread.bluetooth namespace",
"50": "bread.every(interval_ms, fn)",
"51": "bread.exec(cmd)",
"52": "bread.hyprland namespace",
"53": "bread.notify(message, opts)",
"54": "bread.state.watch(path, fn)",
"55": "bread-cli/src/lib.rs",
"56": "core/mod.rs",
"57": "bread.system.startup",
"58": "Monitors Configuration Example",
"59": "Binds Module (Built-in)",
"60": "Bakery Package Manager",
"61": "Phase 3: GUI Control Center",
"62": "Phase 5: Cross-Device Mesh",
"63": "Dev Version Computation",
"64": "ModuleHostLua",
"65": "ModuleHostRegistry",
"66": "xtask/src/main.rs",
"67": "Bread",
"68": "rules.rs",
"69": "Normalized events",
"70": "Bread Documentation",
"71": "udev.rs",
"72": "Dictionary: Lua API",
"73": "Out-of-process module sandboxing *(Since: v1.6)*",
"74": "Dictionary: Built-in modules",
"75": "Events",
"76": "Machine and filesystem",
"77": "Contributing",
"78": "Bluetooth",
"79": "Widgets *(Since: v1.3)*",
"80": "Getting started",
"81": "Capability-scoped modules *(Since: v1.5)*",
"82": "Workflows *(Since: v1.2)*",
"83": "Timers",
"84": "State",
"85": "init.lua",
"86": "Execution",
"87": "packaging/README.md"
}