Commit Graph
125 Commits
  • merge(review): close the browser diagnosis and hand off G50 recovery
    Take 266ecee4 with version-scoped evidence and ordinary current-browser guidance. Keep completed reproduction evidence local, report the fully integrated recovery boundary and its limits, and request ownership review of the final source.
  • docs: retire obsolete camera notes and unused fanout samples
    Trace current readers before removing a 2.x camera copy and two unreferenced synthetic data files. Keep the archived camera source pinned for existing pairing references. Correct the 3.0 control guide to match actual share controls rather than preview-only couch accessories. Current media and runtime research with active readers remains.
  • docs(operations): replace the 2.x hosting guides with the 3.0 deployment guide
    The 2.x self-hosting and service-management guides, in English and Chinese,
    leave this tree; main keeps them. The documentation site now publishes
    docs/deployment.md in a Self-hosting group. It has no Chinese counterpart, so
    the Chinese sidebar links the English page in the same place and marks it as
    English, as the sidebar already did for English-only references; the 2.x
    configuration link leaves that group. The homepage points its server link at
    the deployment page, sends the 2.x media fallback sentence to the published
    2.x pages and drops the service-management item. README, frp, website and
    translation guide links that meant the 2.x guides now point to main, and the
    publication test uses another published page as its fixture.
  • docs(standards): move interface languages to naming and copy
    The five 3.0 UI languages, system-language matching and launcher handoff
    leave the 2.x presentation lifecycle copy for a section in naming.md. The
    older-launcher sentence is restated as the 3.0 rule the copy store follows:
    an explicit launcher choice is saved, a launch default only fills an unset
    preference. The standards index, the documentation map and both translation
    guides now link the new section.
  • docs(guide): say who keeps a room's history
    A security review reproduced that a room's creator can restore a backup that names another member as the author of a message. The owner decided to build nothing against it: whoever hosts a room holds its history and can change its own store with or without a restore, so a check or a marker would add a special case that protects nothing. The guide says plainly who keeps the history and what a restore does.
  • feat(stage): tell a viewer that no route to a picture is available yet
    A watched screen whose viewer has no selected incoming flow showed
    "Waiting for a video route" with no action and no outcome. The core never
    records a failure for a viewer it cannot place, and a measured viewer
    decoded as soon as a source output freed, so this state is a wait with no
    deadline, not a failure.
    
    The client already separates the three states from facts it holds: no
    selected incoming flow for the publication (awaitingRoute, from the pair
    bindings), a selected flow without a stream (connecting), and the
    publication in failedSubscriptions (failed). The no-route line now says
    that no route is available yet and that watching starts by itself, in all
    five locales. The tile offers the existing picture help for this state;
    its dialog explains that nothing needs to be done, shows no retry and no
    route-failed comic. Retry stays hidden here, because it withdraws and
    resubscribes and cannot place the viewer sooner. Stopping stays in the
    tile's footer. The connecting and failed states are unchanged. The
    troubleshooting guide quotes the new line.
    
    Verified with npx tsc -b, the diagnosis and stage tests (new cases for
    the no-route diagnosis and the tile's actions), and the full vitest run.
  • merge(review): add microphone modes and preserve playback intent
    Integrate the Browser push-to-talk and activation modes, local operation feedback and shared content-hint mapping. A held action owns its release across fast key events, rebinding and focus changes; capture applies the current press before publication. Voice readiness follows actual local playback events. Screen intent comes from the publication source through probe, ordinary sender, shared encoder and rollback.
    
    Keep scoped flow/link debug events. Defer whole HostInput recording and periodic sampling that cannot establish a replay or quality comparison; retain the existing opt-in exporter. Omit the picture-specific Server-help claim until the relevant offered kind is available to that surface. Preserve committed quick-room reuse and recorded pending picker fixes.
    
    TypeScript and all 2393 Web tests pass. Real Chrome AudioWorklet/WebRTC/PiP controls verify decoded PCM release and activation without a physical microphone. Production voice settings pass narrow/wide bilingual theme and keyboard controls. Recovery timing remains an explicitly isolated experiment, not a production routing change.
  • merge(review): integrate voice ownership and scoped Server forwarding
    Take the reviewed voice owner and interface lanes, preserving room-local media lifetimes. Server forwarding is offered per kind by its operator, remains off by default, and fills participant routing gaps without sacrificing reachable receivers. Validate the registered service identity even in public rooms and advance private Domain protocol to 48 for the typed offer.
    
    Correct quick-sharing reuse, pending picker ownership and local bootstrap retirement. Keep record-extension and recovery proposals separate from production mechanisms. Full Rust, Native, Browser-WASM and protocol checks plus 2350 Web tests pass; follow-up focused controls pass 672 tests. Actual Domain-48 loopback controls verify master-off, voice-only hosted and files-only Browser-hosted traffic with unchanged room authority.
  • feat(forwarding): make Server forwarding an operator-controlled fallback
    The owner decided how a Server forwards. Forwarding spends the operator's
    bandwidth, so the operator offers it and it is off by default. Once offered,
    rooms use it without a second switch, a room manager can decline it, and the
    service ranks after participant paths (canon: P2P first, load is shared, the
    same rule for every node, automatic).
    
    a. Operator switches. PIIK_CHANNEL_SERVICE_TRANSIT is the master switch, off
    by default. PIIK_CHANNEL_SERVICE_TRANSIT_SCREEN, _VOICE and _FILES default to
    true and each turns one kind off. Files include original video forwarded for
    watching together. With the master switch off nothing is offered. The offer
    reaches room hosts with the service socket. The room removes the service from
    the relays of a kind it does not offer, and the channel rejects a projection
    that gives the service such a kind as site transit. A service that offers no
    kind reads as unavailable.
    
    b. A new room allows the service. Creation paths apply only an explicit
    choice, so Browser, App and Server-hosted rooms and room copies take the
    default, and a stored false stays false. The setting reads as declining a
    default, and its note says the site forwards only the kinds its operator
    offers, in all five locales.
    
    c. The planner names the service as the fallback. When a route is assigned it
    first extends the tree with participant relays only, then lets the service
    reach the receivers still waiting. It keeps that tree unless the joint tree,
    where the service may take a scarce output, serves more receivers, so ties go
    to participants. A strict participant-first pass could spend the source's
    outputs on direct listeners and leave those reachable only through the
    service unserved; a test reproduces that. The ranking among participants is
    unchanged.
    
    The rule applies when a route is assigned. A receiver already served through
    the service keeps that route until it fails or demand ends, even if a
    participant path appears later. A screen viewer can still make the usual move
    to a direct path from the person sharing.
    
    Left open: in a public room the service's session has ordinary read access,
    so a modified room host can list it as a plain participant relay, without the
    transit view that carries the room's choice and the operator's kinds, even
    when forwarding is off. Closing it needs the channel to recognise the
    Server's own session by identity in rooms that session does not host.
    
    Tests added in channel-core: a participant wins over the service; the service
    serves only receivers no participant path reaches; the service takes a scarce
    source output when that serves more receivers; a moved child takes a ready
    participant before the service; the service carries only the kinds its
    operator offers; a service that offers no kind reads as unavailable; a new
    room uses the offered service until its manager declines. Expectations
    changed for the new default in host_review, service_transit, stored_room and
    the first test of tests/service-transit-wasm.test.ts.
    
    Verified on the lane: cargo test for piik-channel-core with and without
    sqlite, cargo check for channel-server and channel-browser, the
    room_creation_policy test, a rebuilt WASM package, tsc -b, the whole vitest
    suite and the docs check. The channel-native suites were not run.
  • merge(review): integrate scoped design and lifecycle review
    Merge Claude's queue through 0e018ae7 with the reviewed guide, trust and 2.x/3.0 scope corrections. ADR-0018 and ADR-0019 remain proposals. Topology comparison keeps per-kind budgets, manual limits, generation fencing and measured failure detection.
    
    Complete the consecutive-source viewing fix by retaining the pending predecessor in the room surface, covered by the same 616 tests and real-browser controls. Track the separate local-launch credential and restored-attribution questions before public release.
  • docs(guide): align entry points and storage actions with each version
    Keep the public README on released guides and label the internal 3.0 path. Match current sharing, room restore, cache clearing and reset labels. Distinguish Browser-hosted, App-hosted and Server-hosted rooms without changing their behavior. Checked current control labels, guide links and reset-script backup behavior.
  • docs(guide): say that an invitation or password still admits a removed person
    The guide said a removed person needs a new grant to return. The invitation link and the password still admit them. The owner keeps removal and the invitation as separate responsibilities, so the guide now says what removal does and how to keep someone out.
  • docs(guide): say what a site operator can read
    The room guide said a site owner needs access to read a private room. That describes what the product shows, and leaves out that the site carries chat in a form its operator can read and that a Server-hosted room keeps its records on the operator's machine. The canon asks that Piik say plainly what each party can see.
  • docs(help): distinguish playback failures from missing media routes
    Point a decoder/playback error to its existing retry and browser control before
    network troubleshooting. Keep the media-route procedure and the bilingual entry.
  • fix(watch): prepare a new player without retiring the active webpage
    Keep a borrowed page and its active media reader alive while the host inspects
    another player. Commit the candidate only after the room accepts it, then retire
    the previous reader through the page owner. The native caption reopens the same
    source chooser without navigating the logged-in page.
    
    Validation: 2298 Web tests, TypeScript, Windows same-page A/B cancellation and
    commit controls, 41 current Windows page tests, Linux page tests and both Android
    ABIs. Two cancellation assertions were updated to expect the released empty slot.
    The ownership and source-selection contract is in channel-network-design.md.
  • fix(ui): reuse the shared combination-key switch
    Align the remote keyboard setting with the existing switch control and remove its custom checkbox styling. Correct the App guides to describe native Windows entry, browser alternatives, bookmarks and startup preferences separately.
  • fix(ui): keep drafts and operation feedback in their room
    Retire quoted content after explicit access revocation without dropping drafts during a room writer restart. Bind a pending file picker to its original conversation, keep room record actions independent, and clarify narrow terminal help and local-network troubleshooting.
  • feat(transport): reuse native sockets and support TURN streams
    Native peers can use configured TURN over TCP or TLS and share ordinary IPv4 sockets within their endpoint runtime. Retire the last socket and gateway owner without interrupting sibling paths. Preserve explicit viewer playback errors, bound desktop decoder inputs, and stop copying cancelled retained files.
  • fix(runtime): update vulnerable dependencies and recover missing pages
    Use patched URL and SQLite releases, restore str0m to its verified registry release, and update the Vite patch lines used by app and documentation builds. Preserve existing wire and stored formats. Render unavailable document links through the shared error surface while keeping resource requests at 404, and clarify hosting ownership in the guides.
  • fix(client): keep playback and prompts scoped to current views
    Apply confirmed paused positions exactly and retire media permission requests with their documents. Keep reaction menus and connection hints tied to visible anchors and proven metrics. Narrow text reaction receipts to messages, avoid copying image data for history sizing, and align the shared guides and previews with their controls.
  • fix(app): preserve room navigation and reconcile local activity state
    Keep launch metadata in the room fragment so same-site invitations retain the document and active sharing. Preserve confirmed microphone state during capture permission, acknowledge confirmed empty history, and retire local watch intent through writer recovery. Consolidate actionable App guidance and distinguish local and invitation addresses. Move signed payloads without copying and import only the semver functions used.
  • fix(channel): cancel retired file work and simplify runtime ownership
    Release unsent file frames by request without disrupting sibling traffic. Build route-repair views only when needed and retain only capture scope and acknowledgements after commands are sent. Keep pane navigation and keyboard focus coordinated, and guide incompatible saved data back to its owning version.
  • refactor(conversation): verify scoped replies in one core operation
    Return authenticated typed replies from the Core receive boundary and remove repeated adapter signature verification. Preserve current host, binding, recipient and room checks. Keep the latest same-room invitation after an earlier request completes, and clarify hosted versus lightweight deployment guidance.
  • feat(app): add a voice overlay and refine room lifecycles
    Reuse the native room-tool window for a compact voice overlay. Preserve selected webpage players through unambiguous DOM replacements, keep activity presence through signaling recovery, and improve narrow playback controls and hybrid touch input. Reduce route capacity scans, tolerate added format diagnostics, and record bounded source-list outcomes.
  • feat(app): add voice shortcuts and scoped recovery controls
    Share selected video URLs for independent browser playback while retaining explicit byte forwarding. Bring original-page sharing into the player list, verify workspace destinations, and keep local startup independent of external site checks.
    
    Reuse voice actions for page and Windows background shortcuts, derive troubleshooting from current operation facts, and keep floating tools below the native caption.
  • docs: align test guides with the shared help layout
    Reuse the published help navigation and theme while preserving 3.0 workflows. Record matched webpage retry and OBS restart acceptance at their existing evidence owners.