@joiner-platform/cli 0.1.9 → 0.1.10
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.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "0.1.10",
|
|
4
|
+
"gitHead": "11cfef4a677daeb1311d9e68c7f2d36a146413e1",
|
|
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,7 +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
|
|
118
|
+
| Rewards for adding or inviting a friend | No | Yes, for a member whom another member added, or who opened the invite link of a member who was in the room when they joined; the tile's server learns who that was. Not for a member who came in on their own. Rewards count separately in each tile instance | |
|
|
119
119
|
| Hidden or private information per player | No | Yes | [visibility](../synced-store/references/data-visibility.md#the-three-tiers) |
|
|
120
120
|
| Player names and profile pictures | No | Yes | [member info](../synced-store/references/getting-user-info-of-members.md) |
|
|
121
121
|
| Leaderboards and end-of-round results | Local only | Yes | [results](../tile-creator/references/client-api.md#poe-room-tileend-input) |
|
|
@@ -82,7 +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
|
+
- **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. Your tables belong to one tile instance, so the credit and the cap count for each instance: a later instance in the same room can get the same joins in its own hook. See System Hooks in [references/backend-api.md](references/backend-api.md).
|
|
86
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.**
|
|
87
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".
|
|
88
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.
|
|
@@ -161,6 +161,8 @@ Common hook uses:
|
|
|
161
161
|
}
|
|
162
162
|
},
|
|
163
163
|
```
|
|
164
|
+
|
|
165
|
+
These tables belong to one tile instance, so the credit and the cap count for each instance. An instance that opens later in the same room can get an earlier member in its own hook, with the same `joinKind` and `invitedBy`, so one invite can earn the reward again there. A new match in the same instance (Play Again) keeps the credit and the cap. So this suits a gate or a reward that belongs to one instance. Do not promise a reward that pays one time across every instance.
|
|
164
166
|
- `onAddUsers` is deprecated. Use `onAddUsersV2`; a tile that defines both fails to load.
|
|
165
167
|
|
|
166
168
|
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/
|
|
64
|
+
"joiner-sdk": "https://misc-dev-uploads.quora-913.workers.dev/89dacbdf6a65916a4f384f6c8e7be5dbc8d1869c719f77635d7314cf2aea25fb"
|
|
65
65
|
```
|
|
66
66
|
<!-- end: sdk-tarball-snippet -->
|
|
67
67
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Auto-generated by poe-tiles-sdk/scripts/publish-tar.ts — do not edit
|
|
2
|
-
// publishedAt: 2026-11-
|
|
2
|
+
// publishedAt: 2026-11-25T17:00:55.299Z
|
|
3
3
|
export const SDK_TARBALL_URL =
|
|
4
|
-
"https://misc-dev-uploads.quora-913.workers.dev/
|
|
4
|
+
"https://misc-dev-uploads.quora-913.workers.dev/89dacbdf6a65916a4f384f6c8e7be5dbc8d1869c719f77635d7314cf2aea25fb";
|