| Filename | Latest commit message | Latest commit date |
|---|---|---|
BrokkrCommandPolicy (Runtime, pure, tested outside Unity) is consulted by BrokkrEditorService before every BrokkrUnityCommandExecutor.Execute; it is the only call path into the executor. The per-project allowed-action list defaults to scene mutation plus lifecycle; createScriptableObject, createPrefabVariant and saveScene are shipped denied (parked Q4 = A), and an action the list does not name is denied. A denial gets a receipt with status denied and a reason. The window's buttons write intents like any other caller, so operator and agent share the gate. Re-landed from the donor as fresh code: refreshAssets, setEditorPlayState, setEditorPaused, captureEditorView, and the play-state fields on the host snapshot (keys 14-17). The donor's captureEditorView wrote to any rooted outputPath; it now resolves the path through one function that accepts only a plain relative .png path under <project>/.brokkr/captures and refuses drive letters, rooted or UNC paths, stream suffixes and any .. segment on every host OS, and dimensions are bounded to 8192. requestedBy joins the intent (key 17) and is echoed on the receipt (key 6). saveScene is new. The window gains an Allowed Actions field bound to a per-project preference. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
| .. | ||
| Packages/com.gamecult.brokkr | ||
| README.md | ||
Brokkr Unity Adapter
This package lets the Unity Editor publish its scene, component, asset, command, receipt, Quest, and Eve/CultUI state as typed CultCache documents synced through CultMesh.
Install By Local Path
Add this package to a Unity project's Packages/manifest.json:
"com.gamecult.brokkr": "file:F:/Projects/Brokkr/surfaces/unity/Packages/com.gamecult.brokkr"
The package ships no assemblies. Its CultCache, CultNet and CultMesh runtime
comes from org.gamecult.cultlib, which the host manifest must also resolve:
"org.gamecult.cultlib": "https://github.com/GameCult/CultLib.git?path=/unity/org.gamecult.cultlib#cultlib-unity-v1.0.60"
Then open GameCult > Brokkr.
Local Smoke
In Unity:
- Open
GameCult > Brokkr. - Confirm
Broker URIiscultmesh://brokkr. - Confirm
CultMesh Cachepoints at.brokkr/unity-editor.ccmp. - Click
Start CultMesh Mirror. - Click
Capture Snapshot. - Click
Publish Mirror. - To create a ScriptableObject through the mirror, fill
ScriptableObject Type,Asset Name, andAsset Path, then clickCreate ScriptableObject Asset. - To instantiate or variant a prefab through the mirror, fill
Prefab Asset Path, optionalInstance Name, and optionalVariant Path, then click the matching prefab command. - To publish object sync policy, select a GameObject, set the object lane
toggles including transform, parent, active state, material, and property
lanes, then click
Publish Object Sync. - With the mirror running, run
brokkr-daemon sync-onceorsync-loop, then clickPoll Sync Receiptor leave the window open to show the latest daemon sync pass receipt. - To publish an ad hoc sync variable, fill
Ad Hoc Sync Varwith a binding id or leave it blank for a generated id, set kind/paths/authority/interpolation, then clickPublish Sync Var.
The Unity adapter writes the latest editor snapshot to:
unity/host/current
Brokkr daemon sync receipts are read from:
sync/receipts/{receiptId}
Ad hoc sync variables are written to:
sync/vars/{syncVarId}
Verse-side command clients write brokkr.unity.command_intent.v0 documents to:
unity/commands/{commandId}
Unity watches those command intents, mutates the editor, and publishes receipts to:
unity/receipts/{commandId}
Recognized Unity asset commands include:
instantiatePrefabcreatePrefabVariantcreateScriptableObject
The Unity plugin is still an adapter. Unity owns Unity editor truth; Brokkr owns provider discovery; CultCache and CultMesh own the live mirror lane.