@joiner-platform/cli 0.1.0 → 0.1.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@joiner-platform/cli",
3
- "version": "0.1.0",
4
- "gitHead": "328bf76f0a642476d13d9d5118f7c5ad0377fd1e",
3
+ "version": "0.1.1",
4
+ "gitHead": "f7651ff7ec72861f5d0b0ee26229630e715891c5",
5
5
  "description": "The Joiner CLI: create, test, and publish Joiner tiles, with agent skills for coding agents.",
6
6
  "keywords": [
7
7
  "joiner",
@@ -115,6 +115,7 @@ When the creator asks whether tiles can do something ("can it take pictures?"),
115
115
  | Saved progress after a reload | No, state resets | Yes | [storage](../tile-creator/references/sandbox-limitations.md#sandbox-restrictions) |
116
116
  | Multiplayer, invites, turns | Hot-seat or simulated only | Yes, real time | [invites](../tile-creator/references/client-api.md#poe-room-openinvitepicker), [turns](../tile-creator/references/client-api.md#setturn-clearturn) |
117
117
  | Fast real-time multiplayer: shooters, racing, fighting, synced physics | Hot-seat or simulated only | Works, but other players' moves arrive with visible delay; say so before building and offer a design that holds up | [limits](../synced-store/references/limitations.md) |
118
+ | Rewards for adding or inviting a friend | No | Yes, for a member whom another member added, or who opened the invite link of someone still in the room; the tile's server learns who that was. Not for a member who came in on their own | |
118
119
  | Hidden or private information per player | No | Yes | [visibility](../synced-store/references/data-visibility.md#the-three-tiers) |
119
120
  | Player names and profile pictures | No | Yes | [member info](../synced-store/references/getting-user-info-of-members.md) |
120
121
  | Leaderboards and end-of-round results | Local only | Yes | [results](../tile-creator/references/client-api.md#poe-room-tileend-input) |
@@ -448,7 +448,7 @@ export const tileHooks = {
448
448
  - `onInit(ctx, { parentRoomUsers })` — new root-group or child-room instance initialized. Read `await ctx.table("$$system").get("room")` for the current room topology, and use `ctx.userId` for the initiating user when the bootstrap came from a user/external store; use `ctx.isSystem`, not `ctx.source.type === "system"`, to detect trusted system scope. `parentRoomUsers` is a **read-only snapshot** of the active parent room roster (`PoeUserInfo[]`) for child rooms and empty for root groups — useful to detect a fresh rootGroup genesis or to react to the parent roster, never a way to admit members. Apps may write their own tables on both passes. Do **not** write `$users` directly, and do not try to pull parent-room users into the instance: membership is platform-owned. The host seats the launcher at genesis (and both users when the tile is launched from a 2-person room, i.e. a DM); anyone else joins through the host picker/invite flows.
449
449
  - The acting user (`ctx.userId`) is always a live `$users` member by the time their own pushed mutation runs or their own pull returns: the platform admits them first. Never wait, retry, or poll for your own row. Other members' rows can arrive later, through the room.
450
450
  - Use `onInit` for deterministic one-time bootstrap, not membership. It is a good place to seed app-owned rows such as an initial activity or transcript message (`"{name} started the group"`).
451
- - `onAddUsersV2(ctx, { users })` — users joined the instance, one call per batch (a genesis roster arrives whole), in admission order. Use it to auto-seat users or append membership activity. Read `$users[userId].addedBy` and `$userInfo` for attribution. Each entry's optional `addedBatchUserIds` is the ordered invitation group for its operation; it is not stored on membership rows, and one call can write one grouped announcement. Retain any history needed in your own message metadata.
451
+ - `onAddUsersV2(ctx, { users })` — users joined the instance, one call per batch (a genesis roster arrives whole), in admission order. Use it to auto-seat users or append membership activity. Read `$users[userId].addedBy` and `$userInfo` for attribution. Each entry's optional `addedBatchUserIds` is the ordered invitation group for its operation; it is not stored on membership rows, and one call can write one grouped announcement. Each entry's optional `joinKind` says how the member came in (`"added"` by another member, `"inviteLink"`, or on their own: `"open"`, `"group"`, `"session"`), and `invitedBy` names the creator of an invite link. Only this hook gets them; they are not stored on the `$users` row, so save what you need in your own table. Retain any history needed in your own message metadata.
452
452
  - `onAddUsers` is deprecated. Use `onAddUsersV2`; a tile that defines both fails to load.
453
453
  - `onRemoveUser(ctx, { userId })` — user removed. The platform clears that member's turn marker for you, before this hook runs. Other members' turns and app-owned seats, pause/restart rules, and scores stay app-controlled. Losing connectivity does not remove membership or clear a turn.
454
454
  - `onAnonymizeUser(ctx, { userId })` — user hard-deleted/anonymized
@@ -90,6 +90,6 @@ Reading another user's private rows is rejected on the client with a thrown erro
90
90
 
91
91
  ## Hooks can write app private rows
92
92
 
93
- System hooks (`onInit`, `onAddUsersV2`, `onRemoveUser`, `onAnonymizeUser`, `onSetTitle`, `onGrantPermission`, `onRevokePermission`, `onAddTileInstanceToRoom`, `onChangeTileParent`, `onAddChildTile`, `onChildInstancesAdded`, `onRoomMemberInstanceMovedOut`) run inside a system mutator, but app-owned public tables, server-only tables, and private tables are still app data. A hook may write `ctx.privateOfUser(otherUserId).table(...)` on the server when the write is a durable per-user projection tied directly to the hook event. Hooks still must not write reserved system tables such as `$users` or `$$system` directly. `onInit` can read the current room topology from `await ctx.table("$$system").get("room")`; `ctx.userId` identifies the initiating user for user/external-store bootstraps. Use it for deterministic bootstrap rows, such as an initial activity message (`"{name} started the group"`). Child-room `onInit` also receives `parentRoomUsers`, a **read-only snapshot** of the parent room's active roster — use it to react to the parent roster (a fresh rootGroup genesis always has an empty `parentRoomUsers`), never to admit members. Membership is platform-owned: the host seats the launcher at genesis (both users when launched from a 2-person room, i.e. a DM), and everyone else joins through the host picker/invite flows. `onAddUsersV2` runs after the `$users` rows are written, so it can read `addedBy` and use each user's optional `addedBatchUserIds` for this operation’s ordered invitation group to auto-seat users or write membership activity such as `"{name} added {usernames...}"`. For user-initiated cross-user fan-out, prefer a regular mutator or an action enqueued with `ctx.enqueueAction(...)`.
93
+ System hooks (`onInit`, `onAddUsersV2`, `onRemoveUser`, `onAnonymizeUser`, `onSetTitle`, `onGrantPermission`, `onRevokePermission`, `onAddTileInstanceToRoom`, `onChangeTileParent`, `onAddChildTile`, `onChildInstancesAdded`, `onRoomMemberInstanceMovedOut`) run inside a system mutator, but app-owned public tables, server-only tables, and private tables are still app data. A hook may write `ctx.privateOfUser(otherUserId).table(...)` on the server when the write is a durable per-user projection tied directly to the hook event. Hooks still must not write reserved system tables such as `$users` or `$$system` directly. `onInit` can read the current room topology from `await ctx.table("$$system").get("room")`; `ctx.userId` identifies the initiating user for user/external-store bootstraps. Use it for deterministic bootstrap rows, such as an initial activity message (`"{name} started the group"`). Child-room `onInit` also receives `parentRoomUsers`, a **read-only snapshot** of the parent room's active roster — use it to react to the parent roster (a fresh rootGroup genesis always has an empty `parentRoomUsers`), never to admit members. Membership is platform-owned: the host seats the launcher at genesis (both users when launched from a 2-person room, i.e. a DM), and everyone else joins through the host picker/invite flows. `onAddUsersV2` runs after the `$users` rows are written, so it can read `addedBy`, each user's optional `joinKind` and `invitedBy` (how they came in, and whose invite link they opened), and use each user's optional `addedBatchUserIds` for this operation’s ordered invitation group to auto-seat users or write membership activity such as `"{name} added {usernames...}"`. For user-initiated cross-user fan-out, prefer a regular mutator or an action enqueued with `ctx.enqueueAction(...)`.
94
94
 
95
95
  Wire every hook into both `defineBackendConfig({ hooks })` and `defineClientConfig({ hooks })`. Client hook runs are optimistic seed data for fresh prepared stores, so they must be browser-safe: use public or current-user-readable data, avoid backend imports and platform calls, and guard server-only table/private-other-user writes behind `ctx.isServer`.
@@ -82,6 +82,7 @@ If no idea was given, ask "What app should I build?" and stop. Otherwise derive
82
82
  - **Make the other players visible — this is a core part of what makes a social game rewarding, not a nice-to-have.** In multi-player apps, render the display name and avatar of everyone the user is playing with *and against*, next to their in-app representation (their snake in a multi-player snake game, their cursor, their seat at the table, their score row, their move) and at the moments that matter (whose turn it is, who just moved, the end-of-game results). Seeing real faces is what makes a session feel like playing *with people* rather than against software. Read names and avatars from `$userInfo`; render them in the game's own visual style, and design for a missing photo (initials fallback), not a broken image. Make those avatars tappable to open the player's profile with `Poe.users.openProfile({ userId })` — the interactive payoff of surfacing who you're playing with. See [@../synced-store/references/getting-user-info-of-members.md](../synced-store/references/getting-user-info-of-members.md).
83
83
  - When assigning room users to app-local roles, seats, teams, or turns, use `Poe.room.pickMembers()` for the host-provided picker. Hide ineligible users with `excludeUserIds`; show occupied seats as `Playing` with `playingUserIds`. Child rooms also show active members of the parent group in a separate **People in the group** section unless the child has a live local `$users` row for that user (someone who left the child room stays pickable); picking one adds them to the child room (`addedToRoom: true`). Contacts are selectable by default. Picked contacts and group members are added to the room, and the result is returned once this tile's own `$users` lists them (after about 10 seconds it returns anyway); pass `addFromContacts: false` only when the product explicitly calls for choosing among existing room and group members; it hides contacts, and a picked group member is still added to the room. In a `dm-*` room, the host moves the app to a 1:1 DM or new group room as needed instead of growing the frozen DM membership. Treat the result as UI input: validate server-side writes with `assertRoomMember(ctx, { userId })`, which checks this tile's own `$users`, and use `notifyUsersAddedToTile(ctx, ...)` for the standard added/assigned notification.
84
84
  - **Surface invite / add-player controls inside the tile, and set seats up for async play — don't rely on the host's chrome.** When the app needs more participants — to fill a seat, assign a role, or start a match — render a clearly visible in-tile control (e.g. an "Invite" / "Add player" button on the start/lobby screen, or right on an empty seat) that opens the `Poe.room.pickMembers()` picker described above. If an empty seat or slot is drawn as an invite affordance (such as a card with a `+` icon and "Invite player"), make the entire slot one accessible button / tap target: tapping the icon, label, or surrounding empty card must open the picker. Do not require the player to find a smaller nested button. Do not depend on the surrounding host chrome (the manager / top bar) to provide this: the app renders in contexts where that chrome is absent, hidden, or non-obvious (the For You feed, a freshly-prepared instance, embeds), so a player should never have to leave the app and hunt through platform UI to get a friend in. Seating does not require players to be online — `pickMembers()` can return offline room members and seat assignments persist — so prefer letting a player assign opponents to seats up front (and auto-seat newly-added users in the `onAddUsersV2` hook) so a turn-based game can be fully set up and waiting before everyone is present, instead of requiring all players online at once to begin. Pair an offline assignment with a `setTurn` / `push` notification so the absent player is pulled back in.
85
+ - **Reward an invite from the add hook, never from a tap on Invite.** When a tile gives something for bringing a person in (points, an unlocked level, a streak), pay it in `onAddUsersV2`, where the server tells you how each new member came in. `joinKind: "added"` means another member added them: credit `(await ctx.table("$users").get(user.userId))?.addedBy`. `joinKind: "inviteLink"` means they opened a member's invite link: credit `invitedBy`, and pay nothing when it is absent. Handle both, because a player can add a friend directly or share a link. Every other `joinKind`, and no `joinKind`, credits nobody: the member came in on their own, or was in the launch roster. A tap on Invite proves nothing, because the friend may never join. `joinKind` and `invitedBy` come only in this hook and are not on the `$users` row, so write the credit to your own table in the hook, keyed by the invited user so that leaving and coming back pays once. Skip agents (`userId` starts with `agent_`) and cap the rewards one inviter can earn, so nobody farms them with a second account. See System Hooks in [references/backend-api.md](references/backend-api.md).
85
86
  - **Treat the actor's activity bump as a release gate: every meaningful accepted user action that changes tile state or advances play bumps the activity for the actor.** Route the bump through the same synced-store mutator that commits the action; when gameplay state is otherwise local, call a small activity mutator once at the semantic boundary (for example start/restart, a completed stroke or drag, or a submitted choice), never on every pointer frame. Ensure the caller receives `notifyActivity` with `recency: "bump"`. If a shared fan-out already includes the actor and its preview names no human actor ("Round 3 started"), make that call bump; otherwise, including whenever a person acted, add an actor-only call with first-person copy (see the preview rule below), `targetUserIds: [ctx.userId]`, `recency: "bump"`, and no `unread` or `push`. `setTurn` for the next player does not satisfy this invariant because it bumps only newly marked turn-holders. Exclude rejected/no-op actions and transient input such as pointer movement, hover, or unsaved typing. **Also exclude per-user preferences visible only to the acting user — mute, volume, haptics, theme, and reduced motion — even though they are accepted actions that write state.** These change how the tile presents itself to one person rather than what happened inside it, so bumping the Activity tab for them makes a private settings toggle read as a move. Persist the preference and return without notifying. **Shared settings that affect other players or play — house rules, difficulty, round length, board size, and similar room-wide configuration — still bump.**
86
87
  - In multi-player apps, call `notifyActivity` whenever durable user-visible activity needs a custom sidebar preview or should reach people beyond the next turn-holder. `setTurn` already moves each newly marked recipient's room to the top of the Activity tab, increments unread, and optionally pushes, so do not add `notifyActivity` only for discoverability. Use **`unread: "increment"` without `push`** for passive updates other people should count as unread ("spymaster gave a clue", "Aaron reacted 🎉"). **Every explicit, user-invoked nudge action targeting another player must pass `unread: "increment"` with the same `targetUserIds`; `push` alone does not increment unread.** Omit `unread` and `push` for a preview refresh that should not add a badge; omit `targetUserIds` too only when the preview has no human actor and so reads the same to every member, including the actor (otherwise split it per the preview rule below). Such a call updates each row in place and does not reorder the Activity tab (recency defaults by attention; pass `recency: "bump"` explicitly only when the badge-less event is genuinely "the latest thing that happened here"). **Leave `unread` omitted in both the schema and client config to use the SDK default.** Do not add `expectNoUnread()` merely because the tile currently sends no notifications; the default keeps later `setTurn` and `notifyActivity({ unread: "increment" })` additions working. Use `customUnread()` in both places only for app-owned chat/thread read state. Use `expectNoUnread()` in both places only when the tile will NEVER badge anyone — it is an assertion, not a switch: the increment paths are per-call and not policy-aware, so a tile that declares it and then calls `unread: "increment"`, `setTurn`, or the automatic leaderboard high-score notify still badges its recipients while claiming otherwise. What it buys is that the platform withholds the increment mutator and treats any count that does appear as damage to repair. (**`noUnread()` is deprecated** — it is the former name for `expectNoUnread()`, and it read as a guarantee the platform cannot make.) Pick **push** for required actions not represented by turn state and high-signal opt-in events ("friend beat your high score"). Use `postToChat` when the event should also appear as one app-owned announcement in the containing chat; do not add app-local room guards just for this because `notifyActivity` skips the chat append when no containing chat room exists. For games like checkers, chess, darts, and Poe Jump, do **not** post to chat on every move; reserve `postToChat` for terminal/high-signal milestones such as a player winning, a match ending, or a new high score being reported. See [@references/client-api.md](references/client-api.md#when-to-notify-and-at-what-level) "When to notify, and at what level".
87
88
  - **Every activity preview names who acted, from the reader's point of view.** The platform adds no sender prefix and `preview` is one string for every recipient, so a bare verb phrase ("said hi", "stole chickens") reaches the sidebar with no subject. Send the actor first-person copy ("You stole chickens") in an actor-only call (`targetUserIds: [ctx.userId]`), and send everyone else third-person copy with the display name ("Aaron stole chickens") in a call whose `targetUserIds` lists the other members. Never send "You …" to people other than the actor. Never let the actor's own row read as their name in the third person. When a preview has no human actor ("Round 3 started", "Spymaster: 'ocean' (2)"), one shared call is fine.
@@ -99,7 +99,7 @@ export const myBackendConfig = defineBackendConfig({
99
99
  | Hook | Input | When it fires |
100
100
  |------|-------|---------------|
101
101
  | `onInit` | `{ parentRoomUsers }` | A new child-room instance is initialized with parent-room context (`parentRoomUsers` is a read-only roster snapshot) |
102
- | `onAddUsersV2` | `{ users: Array<{ userId: string; batchUserIds?: string[]; addedBatchUserIds?: string[]; poeFeedbackResponder?: boolean }> }` | Users join the store instance; one call per batch |
102
+ | `onAddUsersV2` | `{ users: Array<{ userId: string; batchUserIds?: string[]; addedBatchUserIds?: string[]; joinKind?: "added" \| "inviteLink" \| "open" \| "group" \| "session"; invitedBy?: string; poeFeedbackResponder?: boolean }> }` | Users join the store instance; one call per batch |
103
103
  | `onRemoveUser` | `{ userId: string }` | User leaves the store instance |
104
104
  | `onAnonymizeUser` | `{ userId: string }` | User is hard-deleted/anonymized |
105
105
  | `onSetTitle` | `{ userId: string; title: string \| null }` | Store title changes; `title` is `null` when the custom title is cleared/reset to the default — handle the reset case rather than interpolating `null` |
@@ -115,6 +115,52 @@ Common hook uses:
115
115
 
116
116
  - `onInit` is for deterministic one-time bootstrap. Use it to seed app-owned rows such as an initial activity message (`"{name} started the group"`). `parentRoomUsers` is a read-only snapshot of the parent room's roster — never a way to admit members. Membership is platform-owned: the host seats the launcher at genesis (both users when the tile is launched from a 2-person room, i.e. a DM); larger rooms stay picker-driven.
117
117
  - `onAddUsersV2(ctx, { users })` runs after membership is written, once for every batch of users admitted together (a genesis roster, a multi-person invite), in admission order. Auto-seat users through this hook. Read `$users[userId].addedBy` and `$userInfo` for attribution; each entry's optional `addedBatchUserIds` is that operation’s ordered invitation group, so one call can write one grouped announcement. Retain historical names/IDs in your own message metadata; invitation context is not a membership table.
118
+ - Each entry's optional `joinKind` says how the member came in:
119
+
120
+ | `joinKind` | The member... | Who to credit |
121
+ |---|---|---|
122
+ | `"added"` | was added by another member (the host picker, `Poe.room.pickMembers()`) | `$users[userId].addedBy` |
123
+ | `"inviteLink"` | opened another member's invite link | `invitedBy`, the link's creator; absent when the creator was not in the room at the join, or has deleted their account |
124
+ | `"open"` | joined from "Join your friends" because a member lets their network or contacts join | nobody |
125
+ | `"group"` | is in the room's parent group and let themselves in | nobody |
126
+ | `"session"` | came from the session this one was launched from | nobody |
127
+
128
+ `joinKind` is absent for the launch roster, for other platform adds, and for a member who opens their own invite link. Only this hook gets the two fields: they are not on the member's `$users` row, so save what you need in your own table when the hook runs. A tile instance created after the member joined gets the same values in its hook. A member who joined before the platform recorded joins can have no `joinKind`.
129
+
130
+ To gate something until a player invites a helper, or to pay a reward for an invite, record the credit once per invited user. Pay a reward in the same hook, and cap what one inviter can earn:
131
+
132
+ ```typescript
133
+ const MAX_REWARDED_INVITES = 5;
134
+
135
+ onAddUsersV2: async (ctx, { users }) => {
136
+ for (const user of users) {
137
+ if (user.userId.startsWith("agent_")) continue; // an agent is not a helper
138
+ const inviter =
139
+ user.joinKind === "inviteLink"
140
+ ? user.invitedBy
141
+ : user.joinKind === "added"
142
+ ? (await ctx.table("$users").get(user.userId))?.addedBy
143
+ : undefined;
144
+ if (inviter === undefined) continue;
145
+ // Keyed by the invited user, so leaving and coming back counts once.
146
+ if (await ctx.table("invites").get(user.userId)) continue;
147
+ await ctx.table("invites").set({
148
+ itemKey: user.userId,
149
+ value: { invitedUserId: user.userId, inviterUserId: inviter },
150
+ });
151
+ // A gate needs only the row above. A reward also needs a cap for each
152
+ // inviter, or a second account can earn it without limit.
153
+ const rewarded =
154
+ (await ctx.table("inviteRewards").get(inviter))?.count ?? 0;
155
+ if (rewarded >= MAX_REWARDED_INVITES) continue;
156
+ await ctx.table("inviteRewards").set({
157
+ itemKey: inviter,
158
+ value: { count: rewarded + 1 },
159
+ });
160
+ // Pay the reward to `inviter` here, in your own table.
161
+ }
162
+ },
163
+ ```
118
164
  - `onAddUsers` is deprecated. Use `onAddUsersV2`; a tile that defines both fails to load.
119
165
 
120
166
  See [historical account erasure](user-erasure.md) for repairing old roster rows with `isUserErased`.
@@ -61,7 +61,7 @@ an older pin, so prefer the live result when upgrading:
61
61
 
62
62
  <!-- begin: sdk-tarball-snippet (auto-generated by packages/poe-tiles-sdk/scripts/publish-tar.ts — do not edit by hand) -->
63
63
  ```json
64
- "joiner-sdk": "https://misc-dev-uploads.quora-913.workers.dev/2f6a0a70c9493590dbd2f51fcf0fd445545acd1848e7cb8ff097a7bc22cfa9bc"
64
+ "joiner-sdk": "https://misc-dev-uploads.quora-913.workers.dev/f8f3a9b106337f02be4e1a5bca468ff64d5834bb8766fbae7ab12ac2aee99742"
65
65
  ```
66
66
  <!-- end: sdk-tarball-snippet -->
67
67
 
@@ -1336,7 +1336,7 @@ function disableTilt() {
1336
1336
  }
1337
1337
  ```
1338
1338
 
1339
- - **`Poe.motion.claim()`** tells the host this tile is using device motion as game input and returns a disposer. While a claim is held and the tile is on screen, the Joiner apps' shake-to-report gesture stands down, because a flick or tilt mechanic cannot be told from a shake; without it the bug-report sheet opens mid-game. Call it whatever the permission outcome (a denied player can still retry), but not when the events do not exist at all (`typeof DeviceMotionEvent === "undefined"` is terminal, and shake-to-report should stay armed), in the code path that subscribes, and release it where the tile unsubscribes. Leaving the tile releases automatically within a few seconds; host chrome covering a tile the player opened directly releases at once (a tile nested inside another tile releases on leaving only). Players still reach "Report a bug" from the sidebar and the You page. Gate the call with `Poe.has("motion.claim")` while the host rolls out.
1339
+ - **`Poe.motion.claim()`** tells the host this tile is using device motion as game input and returns a disposer. While a claim is held and the tile is on screen, the Joiner apps' shake-to-report gesture stands down, because a flick or tilt mechanic cannot be told from a shake; without it the bug-report sheet opens mid-game. Call it whatever the permission outcome (a denied player can still retry), but not when the events do not exist at all (`typeof DeviceMotionEvent === "undefined"` is terminal, and shake-to-report should stay armed), in the code path that subscribes, and release it where the tile unsubscribes. Leaving the tile releases automatically within a few seconds; host chrome covering a tile the player opened directly releases at once (a tile nested inside another tile releases on leaving only). Players still reach "Report a bug" from the sidebar and the You page. The claim also keeps the screen on during tilt play: while the tile holds it and the player is moving the phone, the Joiner apps (from the releases that add this) stop the screen from dimming and locking, and a phone left lying still locks as usual. There is nothing to call, and a tile cannot request a screen wake lock itself. Gate the call with `Poe.has("motion.claim")` while the host rolls out.
1340
1340
  - **Persist the controls choice** in a `privateOfUser` table. That row is scoped to the instance and the player: reopening the same instance on any device restores the preference, and a new instance starts on Touch. There is no cross-instance per-user memory, and browser storage is blocked in the sandbox.
1341
1341
 
1342
1342
  ## Synced Store Helpers
@@ -29,4 +29,4 @@ There is no fetch proxy, webhook, or allowlist for creator-chosen hosts. A tile
29
29
 
30
30
  ## Device sensors
31
31
 
32
- The host delegates the `accelerometer`, `gyroscope`, and `magnetometer` permissions-policy features to every tile frame, so `deviceorientation` and `devicemotion` reach a tile in the Joiner apps and on mobile web. They remain gated: iOS requires a permission granted from a tap (the Joiner iOS app grants it for its own pages once its release with that grant ships; an older shell shows WebKit's own prompt once per app launch, and iOS Safari prompts per site), and desktop has no sensors at all. Read the shared [device motion reference](../../poe-tiles-cli/references/device-motion.md) before designing input: touch first, tilt opt-in, and the recipe that treats every gated outcome as "no usable sensor". The apps' native shake-to-report stands down while an integrated tile holds `Poe.motion.claim()` (see [client-api.md](./client-api.md#device-motion)). Vibration feedback is available through `Poe.haptics` (see [client-api.md](./client-api.md#poe-haptics)).
32
+ The host delegates the `accelerometer`, `gyroscope`, and `magnetometer` permissions-policy features to every tile frame, so `deviceorientation` and `devicemotion` reach a tile in the Joiner apps and on mobile web. They remain gated: iOS requires a permission granted from a tap (the Joiner iOS app grants it for its own pages once its release with that grant ships; an older shell shows WebKit's own prompt once per app launch, and iOS Safari prompts per site), and desktop has no sensors at all. Read the shared [device motion reference](../../poe-tiles-cli/references/device-motion.md) before designing input: touch first, tilt opt-in, and the recipe that treats every gated outcome as "no usable sensor". The apps' native shake-to-report stands down while an integrated tile holds `Poe.motion.claim()` (see [client-api.md](./client-api.md#device-motion)). The Screen Wake Lock API is not delegated, so `navigator.wakeLock.request()` is refused in a tile; the same claim is what keeps the screen on while the player tilts. Vibration feedback is available through `Poe.haptics` (see [client-api.md](./client-api.md#poe-haptics)).
@@ -1,4 +1,4 @@
1
1
  // Auto-generated by poe-tiles-sdk/scripts/publish-tar.ts — do not edit
2
- // publishedAt: 2026-11-24T18:37:14.909Z
2
+ // publishedAt: 2026-11-24T21:17:53.558Z
3
3
  export const SDK_TARBALL_URL =
4
- "https://misc-dev-uploads.quora-913.workers.dev/2f6a0a70c9493590dbd2f51fcf0fd445545acd1848e7cb8ff097a7bc22cfa9bc";
4
+ "https://misc-dev-uploads.quora-913.workers.dev/f8f3a9b106337f02be4e1a5bca468ff64d5834bb8766fbae7ab12ac2aee99742";