@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 +31 -2
- package/dist/Dialog-DSwimdwG.js +955 -0
- package/dist/Dialog-DSwimdwG.js.map +1 -0
- package/dist/{PortalProvider-BpgZwSpw.js → PortalProvider-CN_81Fy3.js} +2 -2
- package/dist/{PortalProvider-BpgZwSpw.js.map → PortalProvider-CN_81Fy3.js.map} +1 -1
- package/dist/components.css +1 -1
- package/dist/dts/foundations/PortalProvider.d.ts +1 -0
- package/dist/dts/foundations/PortalProvider.d.ts.map +1 -1
- package/dist/dts/internal/modal.d.ts +4 -0
- package/dist/dts/internal/modal.d.ts.map +1 -1
- package/dist/dts/patterns/RelayDock.d.ts +75 -0
- package/dist/dts/patterns/RelayDock.d.ts.map +1 -0
- package/dist/dts/patterns/index.d.ts +2 -0
- package/dist/dts/patterns/index.d.ts.map +1 -1
- package/dist/foundations/index.js +2 -2
- package/dist/index.js +6 -6
- package/dist/patterns/index.js +2 -2
- package/dist/patterns-BY7vflbg.js +3320 -0
- package/dist/patterns-BY7vflbg.js.map +1 -0
- package/dist/primitives/index.js +3 -3
- package/dist/primitives-DYGtIZqB.js +342 -0
- package/dist/primitives-DYGtIZqB.js.map +1 -0
- package/package.json +1 -1
- package/registry/components.json +111 -0
- package/registry/search.json +36 -0
- package/dist/Dialog-1WvU8GjA.js +0 -715
- package/dist/Dialog-1WvU8GjA.js.map +0 -1
- package/dist/patterns-CxMz8DKX.js +0 -2792
- package/dist/patterns-CxMz8DKX.js.map +0 -1
- package/dist/primitives-CW89TsFB.js +0 -543
- package/dist/primitives-CW89TsFB.js.map +0 -1
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,
|
|
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
|
|