@joiner-platform/cli 0.1.8 → 0.1.9
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.9",
|
|
4
|
+
"gitHead": "de911036c9e9177a71a0a55881c4a595e11360b7",
|
|
5
5
|
"description": "The Joiner CLI: create, test, and publish Joiner tiles, with agent skills for coding agents.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"joiner",
|
|
@@ -124,7 +124,7 @@ When the creator asks whether tiles can do something ("can it take pictures?"),
|
|
|
124
124
|
| Music made while building | Yes, with `generate_music` | Yes | `audio-generation` skill |
|
|
125
125
|
| Sound effects made while building | Yes, with `generate_sound_effect` | Yes | `audio-generation` skill |
|
|
126
126
|
| Art made while building | Yes, with `generate_image` | Yes | `image-generation` skill |
|
|
127
|
-
| AI agents as room members | No | Yes | [agents](../tile-creator/references/client-api.md#poe-agents-create-agentid-name-model-
|
|
127
|
+
| AI agents as room members | No | Yes | [agents](../tile-creator/references/client-api.md#poe-agents-create-agentid-name-model-room) |
|
|
128
128
|
| Open a web link | No | Yes, the player confirms | [links](../tile-creator/references/client-api.md#poe-openexternalurl-url) |
|
|
129
129
|
| Open or embed another tile | No | Yes | [open](../tile-creator/references/client-api.md#poe-open-typeid-instanceid-openprops-anchorsortkey-placement-viewwidth), [embed](../tile-creator/references/client-api.md#poe-tile-custom-element) |
|
|
130
130
|
| Scheduled server work (timers, cron, events while nobody plays) | No | No; server code runs when a player acts | [limits](../synced-store/references/limitations.md) |
|
|
@@ -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/a389a1a66884dcffd74adc2e3f829ce6c098d99c89311b4c5ec3cc35280ee278"
|
|
65
65
|
```
|
|
66
66
|
<!-- end: sdk-tarball-snippet -->
|
|
67
67
|
|
|
@@ -45,7 +45,7 @@ below for custom behavior.
|
|
|
45
45
|
- [`Poe.room.tileEnd()`](#poe-room-tileend-input) — Show the host end-of-tile UI and optionally replay
|
|
46
46
|
- [`Poe.room.setShareLeaderboardId()`](#poe-room-setshareleaderboardid-leaderboardid) — Make current-page share links point at a tile-owned leaderboard
|
|
47
47
|
- [`Poe.room.dismissTileEnd()`](#poe-room-dismisstileend-opts) — Programmatically dismiss this client's tile-end overlay (shared-instance team games)
|
|
48
|
-
- [`Poe.agents.create()`](#poe-agents-create-agentid-name-model-
|
|
48
|
+
- [`Poe.agents.create()`](#poe-agents-create-agentid-name-model-room) — Create an agent owned by the calling user, optionally adding it to a room
|
|
49
49
|
- [`Poe.agents.delete()`](#poe-agents-delete-agentid) — Delete one of your agents outright (irreversible)
|
|
50
50
|
- [`Poe.agents.addToRoom()` / `Poe.agents.removeFromRoom()`](#poe-agents-addtoroom-agentid-typeid-instanceid-poe-agents-removefromroom-agentid-typeid-instanceid) — Add/remove an existing agent as a room member
|
|
51
51
|
- [`Poe.agents.listTools()`](#poe-agents-listtools) — List the first-party agent system-tool catalog
|
|
@@ -775,9 +775,9 @@ try {
|
|
|
775
775
|
|
|
776
776
|
Make the restart **generation-guarded / idempotent** (restart only if the just-finished round is still current) — when several players tap Play Again at once, the platform does not serialize the restarts.
|
|
777
777
|
|
|
778
|
-
### `Poe.agents.create({ agentId, name, model,
|
|
778
|
+
### `Poe.agents.create({ agentId, name, model, room? })`
|
|
779
779
|
|
|
780
|
-
Create a new agent owned by the calling user. You mint the agent's `agentId` (an `agent_<uuid>`) and pass it as the **idempotency key**; the trusted host runs the whole creation server-side in one round-trip: it claims the per-creator-unique `name` in the caller's agents registry, initializes the agent's
|
|
780
|
+
Create a new agent owned by the calling user. You mint the agent's `agentId` (an `agent_<uuid>`) and pass it as the **idempotency key**; the trusted host runs the whole creation server-side in one round-trip: it claims the per-creator-unique `name` in the caller's agents registry, initializes the agent's identity with the given `model`, and — when you pass a `room` — adds the new agent to that room in the same call.
|
|
781
781
|
|
|
782
782
|
```typescript
|
|
783
783
|
// Use the portable `generateUUID()` helper, not `crypto.randomUUID()` — the
|
|
@@ -788,16 +788,15 @@ const result = await Poe.agents.create({
|
|
|
788
788
|
agentId, // client-minted idempotency key — reuse it across retries
|
|
789
789
|
name: "Code Reviewer",
|
|
790
790
|
model: "anthropic/claude-sonnet-4-6",
|
|
791
|
-
tools: ["read_file"], // restricts the agent to these system tools (order ignored)
|
|
792
791
|
room: { typeId: "chat", instanceId: roomId }, // optional: create + add in one call
|
|
793
792
|
});
|
|
794
793
|
```
|
|
795
794
|
|
|
796
|
-
`agentId`, `name`, and `model` are required (`name`/`model` are trimmed by the host); `name` is unique among the calling user's agents (case-insensitive).
|
|
795
|
+
`agentId`, `name`, and `model` are required (`name`/`model` are trimmed by the host); `name` is unique among the calling user's agents (case-insensitive). All agents use the shared Poe execution definition in code. Creation requests containing retired policy fields such as `tools`, `modelParams`, or context settings are rejected. Select an inference model independently of that shared policy.
|
|
797
796
|
|
|
798
|
-
`
|
|
797
|
+
`room` is optional; when supplied you must be a live member of that room (direct-message rooms are refused), and the room is validated before the agent is created so a bad room never leaves an orphaned agent.
|
|
799
798
|
|
|
800
|
-
**The `agentId` is the idempotency key.** Mint it once per logical create intent and **reuse it across retries** (don't generate a fresh id on retry, or you lose idempotency). Calling `create` again with the same `agentId` returns your existing agent and **ignores the rest of the payload** — `reused` is `true` when the existing agent was returned and `false` when a fresh one was minted; the optional `room` add still applies on reuse. So a retry (or a double-submit) safely resolves to the same agent.
|
|
799
|
+
**The `agentId` is the idempotency key.** Mint it once per logical create intent and **reuse it across retries** (don't generate a fresh id on retry, or you lose idempotency). Calling `create` again with the same `agentId` returns your existing agent and **ignores the rest of the payload** — `reused` is `true` when the existing agent was returned and `false` when a fresh one was minted; the optional `room` add still applies on reuse. So a retry (or a double-submit) safely resolves to the same agent. Creation retries do not update an existing agent. The promise rejects only on a *real* conflict — a **new** `agentId` whose `name` is already taken by a different agent — or when retired policy fields are supplied, or when the room is invalid or initialization fails.
|
|
801
800
|
|
|
802
801
|
The returned `agentId` echoes the id you minted (an `agent_…` id usable as a room member id), and `addedToRoom` reports whether the optional `room` add succeeded. Agents join rooms through the membership APIs (below); apps never mount or read the agent's own store.
|
|
803
802
|
|
|
@@ -839,49 +838,32 @@ await Poe.agents.removeFromRoom({ agentId, typeId: "chat", instanceId: roomId })
|
|
|
839
838
|
|
|
840
839
|
### `Poe.agents.listTools()`
|
|
841
840
|
|
|
842
|
-
List the first-party
|
|
841
|
+
List the first-party system-tool metadata (`{ id, displayName, description }`). Use it to display tool names. This catalog is not a grant list: the shared Poe definition determines which tools agents can use.
|
|
843
842
|
|
|
844
843
|
```typescript
|
|
845
844
|
const tools = await Poe.agents.listTools();
|
|
846
|
-
// e.g. [{ id: "calculator", displayName: "Calculator", description: "Evaluates arithmetic expressions." }]
|
|
847
|
-
|
|
848
|
-
// The ids are exactly what `Poe.agents.create({ tools })` accepts:
|
|
849
|
-
await Poe.agents.create({
|
|
850
|
-
name: "Mathbot",
|
|
851
|
-
model: "anthropic/claude-sonnet-4-6",
|
|
852
|
-
tools: tools.map((tool) => tool.id),
|
|
853
|
-
});
|
|
854
845
|
```
|
|
855
846
|
|
|
856
847
|
Read-only public metadata — it takes no arguments, requires no permissions, and returns the same catalog for everyone.
|
|
857
848
|
|
|
858
849
|
### `Poe.agents.listTemplates()`
|
|
859
850
|
|
|
860
|
-
|
|
851
|
+
Return the single Poe creation entry in the existing template shape. Its model is the default inference choice, and its tools describe the shared execution policy. `suggestedName` is empty: ask the creator to name the new instance, rather than creating another default Poe label. The separate `Poe.listModels()` catalog supplies alternative inference models.
|
|
861
852
|
|
|
862
853
|
```typescript
|
|
863
854
|
const templates = await Poe.agents.listTemplates();
|
|
864
|
-
|
|
865
|
-
// id: "math-helper",
|
|
866
|
-
// displayName: "Math Helper",
|
|
867
|
-
// description: "Works through arithmetic step by step using a calculator tool.",
|
|
868
|
-
// iconEmoji: "🧮",
|
|
869
|
-
// config: { suggestedName: "Math Helper", model: "anthropic/claude-sonnet-4-6", tools: ["calculator"] },
|
|
870
|
-
// }]
|
|
871
|
-
|
|
872
|
-
// A template's `config` is exactly what `Poe.agents.create` accepts — instantiation is a copy:
|
|
873
|
-
const template = templates.find((t) => t.id === "math-helper");
|
|
855
|
+
const template = templates.find((entry) => entry.id === "poe");
|
|
874
856
|
if (template) {
|
|
857
|
+
const agentId = `agent_${generateUUID()}`; // keep this id for retries
|
|
875
858
|
await Poe.agents.create({
|
|
876
|
-
|
|
859
|
+
agentId,
|
|
860
|
+
name: "Researcher", // the creator's chosen name
|
|
877
861
|
model: template.config.model,
|
|
878
|
-
// `config.tools` is `readonly string[]`; spread into a mutable copy for the create input.
|
|
879
|
-
tools: [...template.config.tools],
|
|
880
862
|
});
|
|
881
863
|
}
|
|
882
864
|
```
|
|
883
865
|
|
|
884
|
-
Read-only public metadata
|
|
866
|
+
Read-only public metadata, the same for everyone. Copy only identity fields into creation requests; tools and other execution settings come from the shared code definition on every run, including for existing agents.
|
|
885
867
|
|
|
886
868
|
### `Poe.agents.listMine()`
|
|
887
869
|
|
|
@@ -1924,7 +1906,7 @@ rounds up to the next width. Use `loadImage` with a `size`.
|
|
|
1924
1906
|
|
|
1925
1907
|
If your app triggers agents (`Poe.agents.*`) and stores their replies, you can record the configuration each run actually executed on — the model, the tools it was allowed, the tool→model bindings, and which of those a per-trigger override replaced.
|
|
1926
1908
|
|
|
1927
|
-
|
|
1909
|
+
Record the effective configuration with each reply because the shared policy can change on deployment and per-trigger overrides can differ between runs. Looking up today's instance metadata cannot reconstruct an earlier run's configuration.
|
|
1928
1910
|
|
|
1929
1911
|
```typescript
|
|
1930
1912
|
import {
|
|
@@ -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-25T14:50:14.982Z
|
|
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/a389a1a66884dcffd74adc2e3f829ce6c098d99c89311b4c5ec3cc35280ee278";
|