@knpkv/rly 0.4.1 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -311,6 +311,34 @@ target, expected revision, impact, and evidence beside a named human reviewer.
311
311
  Its owned authorization button stays disabled until the controlled exact-action
312
312
  confirmation is checked, and terminal outcomes remain visible after review.
313
313
 
314
+ `RelayDock` is the shared product frame for one adapter-owned Relay thread. It
315
+ starts collapsed, keeps context plus profile and model selection visible above
316
+ the scrolling thread, and accepts explicit ready, loading, empty, error, and
317
+ unavailable states. Products choose a non-modal desktop rail or modal desktop
318
+ overlay. Compact viewports always use a full-height modal sheet with safe-area
319
+ padding. Rly owns focus and responsive presentation only. The adapter still
320
+ owns thread identity, loading, persistence, authorization, routing, and the
321
+ difference between advisory Ask and approval-bound Work.
322
+
323
+ ```tsx
324
+ import { RelayDock } from "@knpkv/rly/patterns"
325
+
326
+ export const PullRequestRelay = () => (
327
+ <RelayDock
328
+ context={[
329
+ { id: "repository", label: "Repository", value: "control-center" },
330
+ { id: "pull-request", label: "PR", value: "#184" }
331
+ ]}
332
+ desktopPresentation="rail"
333
+ selection={{
334
+ model: { onValueChange: setModel, options: models, value: model },
335
+ profile: { onValueChange: setProfile, options: profiles, value: profile }
336
+ }}
337
+ state={{ content: <ReviewThread />, status: "ready" }}
338
+ />
339
+ )
340
+ ```
341
+
314
342
  ```tsx
315
343
  import { AgentContextButton, GovernedActionReview } from "@knpkv/rly/patterns"
316
344
 
@@ -324,8 +352,9 @@ export const ReleaseAgentEntry = () => (
324
352
  ```
325
353
 
326
354
  Callbacks request application-owned state changes only. Rly never contacts an
327
- agent provider, invokes a vendor capability, derives permission, or treats an
328
- agent proposal as a human decision.
355
+ agent provider, invokes a vendor capability, derives permission, discovers a
356
+ thread, or treats an agent proposal as a human decision. RelayDock does not
357
+ combine Relay-only and Managed Review history.
329
358
 
330
359
  ## Complete pull-request diffs
331
360