1.2.1 release to support some ShoeGaze features
This commit is contained in:
@@ -131,6 +131,47 @@ Lyrebird 1.x:
|
||||
them (`"atk.azimuth"`, not `"azimuth"`) to avoid collisions in user code that mixes
|
||||
multiple extension packages.
|
||||
|
||||
## Reviewing your extension package — `lyrebird_external_review`
|
||||
|
||||
Out-of-tree packages run their custom `Generator` / `Synthesizer` code on the same real-time
|
||||
audio thread as the core, under the same hard constraints (no allocation, locks, force unwraps,
|
||||
or runtime type checks in `_computeSamples`; `_checkCount` first; pre-allocated, never-resized
|
||||
buffers; input classification at `init`). The Lyrebird-internal `lyrebird_review` skill assumes
|
||||
the Lyrebird repo's branch-and-phase workflow and `docs/00-working-order.md`, so it is the wrong
|
||||
tool for an external package.
|
||||
|
||||
For that case there is a dedicated skill: **`lyrebird_external_review`**. It applies the same
|
||||
RT-safety and protocol-correctness checks, but adapted for a package that merely *depends on*
|
||||
Lyrebird:
|
||||
|
||||
- Builds a review diff from local changes (committed or not, including new untracked files),
|
||||
or against a base ref you name — no `main`-branch assumption.
|
||||
- Locates the vendored Lyrebird source (`.build/checkouts/Lyrebird/Sources/Lyrebird/`) and points
|
||||
the reviewer at it, so new generators are compared against canonical analogs (e.g.
|
||||
`ZeroCrossing`) and helper signatures are verified against the real API.
|
||||
- Runs the project's own test suite (`swift test`, `--no-parallel` if multi-engine flakes appear).
|
||||
- Invokes `lyrebird_review_agent` (RT safety, protocol conformance, shared-helper usage, unit-test
|
||||
coverage for new generators) plus a terse line-level sweep, in parallel.
|
||||
- Skips all Lyrebird-internal bookkeeping (phase history, working-order docs, the
|
||||
`Sources/Lyrebird/` subfolder taxonomy, agent/skill mirror sync) and treats file-organisation
|
||||
and header conventions as the *project's* to set — flagged as nits, never blockers.
|
||||
|
||||
**Usage** — from the root of the dependent package (e.g. a `ShoeGaze` checkout or any
|
||||
`Lyrebird<Vendor>` extension repo):
|
||||
|
||||
```
|
||||
/lyrebird_external_review
|
||||
```
|
||||
|
||||
Optionally pass a base ref to scope the diff (`/lyrebird_external_review v0.3.0`). Fix any
|
||||
blocking findings and re-run until clean.
|
||||
|
||||
The skill ships with Lyrebird at `claude/skills/lyrebird_external_review/` (installer source,
|
||||
copied into a consuming project by `claude/install.sh`) and is mirrored at
|
||||
`.claude/skills/lyrebird_external_review/` for auto-discovery when working inside this repo.
|
||||
Install it into your extension package so contributors get the same pre-merge RT review you get
|
||||
in-tree.
|
||||
|
||||
## See also
|
||||
|
||||
- [Writing Generators](writing-generators.md) — full generator-author guide.
|
||||
|
||||
@@ -184,6 +184,23 @@ In the UI, "Save Version" snapshots the live board, the Versions menu loads one
|
||||
|
||||
---
|
||||
|
||||
## Sharing — the `.shoegaze` document type
|
||||
|
||||
Exporting and sharing use a single registered document type: **`.shoegaze`** (UTType `net.realizedsound.shoegaze`, conforming to `public.json`, so the file stays text-readable). The two builder apps (macOS `ShoeGazeBuilder`, iPad `ShoeGazeBuilderiOS`) declare it (`CFBundleDocumentTypes` + `UTExportedTypeDeclarations`) and implement opening (`application(_:open:)` / `.onOpenURL` → import into the library), so the system associates `.shoegaze` files with them for Open and Share. The minimal player demos do not claim the type — they have no library or share UI.
|
||||
|
||||
- `ShoeGazeDocument` (in `LyrebirdShoeGaze`) is a versioned envelope around one of two payloads: `.rigs(RigArchive)` (one or many rigs — a single shared rig is a one-rig archive) or `.board(BoardVersion)` (a single board). `data()` encodes pretty-printed JSON; `ShoeGazeDocument.decoded(from:)` reads it back and also accepts the two legacy shapes (a bare `RigArchive`, a bare `ShoeGazeState`).
|
||||
- `RigLibraryStore.exportDocumentData()` writes the whole library as a `.shoegaze` document; `importArchive(from:)` accepts `.shoegaze`, bare `RigArchive`, and legacy single-rig JSON (internal per-rig library files stay plain `.json`).
|
||||
- The rig-library sidebar (`Share…` per rig) and the board editor's Versions menu (`Share…` per version) present the OS share sheet via SwiftUI `ShareLink`, backed by the `Transferable` wrappers `RigShareItem` / `BoardShareItem` (in `LyrebirdShoeGazeUI`). No backend — share targets are AirDrop, Mail, Messages, and Files.
|
||||
|
||||
```swift
|
||||
// Export the library to a .shoegaze file:
|
||||
let data = try library.exportDocumentData()
|
||||
// Import a received .shoegaze (or legacy) file:
|
||||
let added = try library.importArchive(from: receivedData)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Demo apps
|
||||
|
||||
The package ships two in-repo demo apps in the workspace — a macOS app and an iOS app.
|
||||
|
||||
Reference in New Issue
Block a user