@joiner-platform/cli 0.0.0-stage → 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/README.md +30 -2
- package/bundled-resources/poe-tile-templates/base/CLAUDE.md +72 -0
- package/bundled-resources/poe-tile-templates/base/README.md +7 -0
- package/bundled-resources/poe-tile-templates/base/_bunfig.toml +8 -0
- package/bundled-resources/poe-tile-templates/base/_gitignore +18 -0
- package/bundled-resources/poe-tile-templates/base/client.ts +12 -0
- package/bundled-resources/poe-tile-templates/base/package.json +36 -0
- package/bundled-resources/poe-tile-templates/base/playwright.config.ts +38 -0
- package/bundled-resources/poe-tile-templates/base/scripts/check-source.ts +148 -0
- package/bundled-resources/poe-tile-templates/base/scripts/dev.ts +19 -0
- package/bundled-resources/poe-tile-templates/base/scripts/doctor.sh +29 -0
- package/bundled-resources/poe-tile-templates/base/scripts/visual-check.ts +64 -0
- package/bundled-resources/poe-tile-templates/base/synced-store/backend-config.ts +9 -0
- package/bundled-resources/poe-tile-templates/base/synced-store/client-config.ts +8 -0
- package/bundled-resources/poe-tile-templates/base/synced-store/data/items.ts +16 -0
- package/bundled-resources/poe-tile-templates/base/synced-store/mutators/index.ts +10 -0
- package/bundled-resources/poe-tile-templates/base/synced-store/mutators/remove-todo.ts +5 -0
- package/bundled-resources/poe-tile-templates/base/synced-store/mutators/set-todo.ts +20 -0
- package/bundled-resources/poe-tile-templates/base/synced-store/mutators/types.ts +5 -0
- package/bundled-resources/poe-tile-templates/base/synced-store/mutators.test.ts +138 -0
- package/bundled-resources/poe-tile-templates/base/synced-store/schema.ts +40 -0
- package/bundled-resources/poe-tile-templates/base/tests/e2e.test.playwright.ts +92 -0
- package/bundled-resources/poe-tile-templates/base/tests/mobile-viewport.test.playwright.ts +111 -0
- package/bundled-resources/poe-tile-templates/base/tests/render-check.test.playwright.ts +128 -0
- package/bundled-resources/poe-tile-templates/base/tests/screenshot.test.playwright.ts +86 -0
- package/bundled-resources/poe-tile-templates/base/tests/setup-dom.ts +70 -0
- package/bundled-resources/poe-tile-templates/base/tile/src/backend.ts +3 -0
- package/bundled-resources/poe-tile-templates/base/tile/styles.css +47 -0
- package/bundled-resources/poe-tile-templates/base/tsconfig.json +13 -0
- package/bundled-resources/poe-tile-templates/coverage.config.json +6 -0
- package/bundled-resources/poe-tile-templates/index.ts +27 -0
- package/bundled-resources/poe-tile-templates/package.json +31 -0
- package/bundled-resources/poe-tile-templates/phaserjs/package.partial.json +6 -0
- package/bundled-resources/poe-tile-templates/phaserjs/tile/index.html +14 -0
- package/bundled-resources/poe-tile-templates/phaserjs/tile/src/entry.ts +35 -0
- package/bundled-resources/poe-tile-templates/phaserjs/ui/App.test.happydom.tsx +98 -0
- package/bundled-resources/poe-tile-templates/phaserjs/ui/App.ts +180 -0
- package/bundled-resources/poe-tile-templates/phaserjs/ui/phaser-scene.ts +174 -0
- package/bundled-resources/poe-tile-templates/phaserjs/vite.config.ts +28 -0
- package/bundled-resources/poe-tile-templates/preact/package.partial.json +9 -0
- package/bundled-resources/poe-tile-templates/preact/postcss.config.js +5 -0
- package/bundled-resources/poe-tile-templates/preact/tile/index.html +14 -0
- package/bundled-resources/poe-tile-templates/preact/tile/src/entry.tsx +36 -0
- package/bundled-resources/poe-tile-templates/preact/tile/styles.css +51 -0
- package/bundled-resources/poe-tile-templates/preact/tsconfig.json +15 -0
- package/bundled-resources/poe-tile-templates/preact/ui/App.test.happydom.tsx +69 -0
- package/bundled-resources/poe-tile-templates/preact/ui/App.tsx +116 -0
- package/bundled-resources/poe-tile-templates/preact/vite.config.ts +18 -0
- package/bundled-resources/poe-tile-templates/react/package.partial.json +12 -0
- package/bundled-resources/poe-tile-templates/react/postcss.config.js +5 -0
- package/bundled-resources/poe-tile-templates/react/tile/index.html +14 -0
- package/bundled-resources/poe-tile-templates/react/tile/src/entry.tsx +38 -0
- package/bundled-resources/poe-tile-templates/react/tile/styles.css +51 -0
- package/bundled-resources/poe-tile-templates/react/tsconfig.json +14 -0
- package/bundled-resources/poe-tile-templates/react/ui/App.test.happydom.tsx +71 -0
- package/bundled-resources/poe-tile-templates/react/ui/App.tsx +110 -0
- package/bundled-resources/poe-tile-templates/react/vite.config.ts +21 -0
- package/bundled-resources/poe-tile-templates/scripts/cleanup.ts +10 -0
- package/bundled-resources/poe-tile-templates/scripts/generate.ts +57 -0
- package/bundled-resources/poe-tile-templates/scripts/install-diagnostics.ts +52 -0
- package/bundled-resources/poe-tile-templates/scripts/paths.ts +7 -0
- package/bundled-resources/poe-tile-templates/scripts/sdk-dependency-key.ts +288 -0
- package/bundled-resources/poe-tile-templates/scripts/verify-all-sdks.ts +132 -0
- package/bundled-resources/poe-tile-templates/scripts/verify-local-sdk-command.ts +30 -0
- package/bundled-resources/poe-tile-templates/scripts/verify-local-sdk-tarball.ts +397 -0
- package/bundled-resources/poe-tile-templates/solidjs/_bunfig.toml +14 -0
- package/bundled-resources/poe-tile-templates/solidjs/package.partial.json +13 -0
- package/bundled-resources/poe-tile-templates/solidjs/postcss.config.js +5 -0
- package/bundled-resources/poe-tile-templates/solidjs/tests/solid-plugin.ts +49 -0
- package/bundled-resources/poe-tile-templates/solidjs/tile/index.html +14 -0
- package/bundled-resources/poe-tile-templates/solidjs/tile/src/entry.tsx +36 -0
- package/bundled-resources/poe-tile-templates/solidjs/tile/styles.css +51 -0
- package/bundled-resources/poe-tile-templates/solidjs/tsconfig.json +15 -0
- package/bundled-resources/poe-tile-templates/solidjs/ui/App.test.happydom.tsx +70 -0
- package/bundled-resources/poe-tile-templates/solidjs/ui/App.tsx +129 -0
- package/bundled-resources/poe-tile-templates/solidjs/vite.config.ts +18 -0
- package/bundled-resources/poe-tile-templates/tests/check-source.test.ts +131 -0
- package/bundled-resources/poe-tile-templates/tests/dev-script.test.slow.ts +166 -0
- package/bundled-resources/poe-tile-templates/tests/fixtures/customized-manager.ts +67 -0
- package/bundled-resources/poe-tile-templates/tests/fixtures/extended-mutators.ts.txt +106 -0
- package/bundled-resources/poe-tile-templates/tests/fixtures/multiplayer-verification.test.playwright.ts.txt +103 -0
- package/bundled-resources/poe-tile-templates/tests/fixtures/replace-starter-schema.ts +67 -0
- package/bundled-resources/poe-tile-templates/tests/fixtures/starter-demo/phaserjs.tsx.txt +85 -0
- package/bundled-resources/poe-tile-templates/tests/fixtures/starter-demo/preact.tsx.txt +69 -0
- package/bundled-resources/poe-tile-templates/tests/fixtures/starter-demo/react.tsx.txt +73 -0
- package/bundled-resources/poe-tile-templates/tests/fixtures/starter-demo/seating.ts.txt +54 -0
- package/bundled-resources/poe-tile-templates/tests/fixtures/starter-demo/solidjs.tsx.txt +70 -0
- package/bundled-resources/poe-tile-templates/tests/fixtures/starter-demo/vanilla-js.tsx.txt +85 -0
- package/bundled-resources/poe-tile-templates/tests/generated-templates.test.ts +278 -0
- package/bundled-resources/poe-tile-templates/tests/happy-dom-version.test.ts +27 -0
- package/bundled-resources/poe-tile-templates/tests/install-diagnostics.test.ts +99 -0
- package/bundled-resources/poe-tile-templates/tests/native-gesture-defaults.test.ts +23 -0
- package/bundled-resources/poe-tile-templates/tests/playwright-version.test.ts +84 -0
- package/bundled-resources/poe-tile-templates/tests/render-check-scaffold.test.ts +56 -0
- package/bundled-resources/poe-tile-templates/tests/sdk-dependency-key.test.ts +129 -0
- package/bundled-resources/poe-tile-templates/tests/visual-check.test.ts +90 -0
- package/bundled-resources/poe-tile-templates/vanilla-js/package.partial.json +3 -0
- package/bundled-resources/poe-tile-templates/vanilla-js/tile/index.html +14 -0
- package/bundled-resources/poe-tile-templates/vanilla-js/tile/src/entry.ts +35 -0
- package/bundled-resources/poe-tile-templates/vanilla-js/ui/App.test.happydom.tsx +96 -0
- package/bundled-resources/poe-tile-templates/vanilla-js/ui/App.ts +113 -0
- package/bundled-resources/poe-tile-templates/vanilla-js/vite.config.ts +17 -0
- package/cli.ts +134 -0
- package/index.ts +96 -0
- package/package.json +48 -5
- package/skills/audio-generation/.generated-by-poe-templated-docs +0 -0
- package/skills/audio-generation/SKILL.md +125 -0
- package/skills/finish-prototype/.generated-by-poe-templated-docs +0 -0
- package/skills/finish-prototype/SKILL.md +22 -0
- package/skills/help-me-build/.generated-by-poe-templated-docs +0 -0
- package/skills/help-me-build/SKILL.md +56 -0
- package/skills/image-generation/.generated-by-poe-templated-docs +0 -0
- package/skills/image-generation/SKILL.md +128 -0
- package/skills/one-shot/.generated-by-poe-templated-docs +0 -0
- package/skills/one-shot/SKILL.md +22 -0
- package/skills/platform-prototype/.generated-by-poe-templated-docs +0 -0
- package/skills/platform-prototype/SKILL.md +60 -0
- package/skills/platform-subagent/.generated-by-poe-templated-docs +0 -0
- package/skills/platform-subagent/SKILL.md +16 -0
- package/skills/poe-tiles-cli/.generated-by-poe-templated-docs +0 -0
- package/skills/poe-tiles-cli/SKILL.md +609 -0
- package/skills/poe-tiles-cli/references/device-motion.md +40 -0
- package/skills/poe-tiles-cli/references/player-updates.md +41 -0
- package/skills/prototype/.generated-by-poe-templated-docs +0 -0
- package/skills/prototype/SKILL.md +149 -0
- package/skills/publish/.generated-by-poe-templated-docs +0 -0
- package/skills/publish/SKILL.md +73 -0
- package/skills/synced-store/.generated-by-poe-templated-docs +0 -0
- package/skills/synced-store/SKILL.md +583 -0
- package/skills/synced-store/references/actions.md +85 -0
- package/skills/synced-store/references/api-patterns.md +245 -0
- package/skills/synced-store/references/architecture-scaling-and-performance.md +280 -0
- package/skills/synced-store/references/client-api-reference.md +263 -0
- package/skills/synced-store/references/data-visibility.md +95 -0
- package/skills/synced-store/references/external-stores.md +162 -0
- package/skills/synced-store/references/file-uploads.md +216 -0
- package/skills/synced-store/references/getting-user-info-of-members.md +228 -0
- package/skills/synced-store/references/limitations.md +72 -0
- package/skills/synced-store/references/live-data-limit-hook.md +131 -0
- package/skills/synced-store/references/mutator-rules.md +169 -0
- package/skills/synced-store/references/platform.md +49 -0
- package/skills/synced-store/references/schema-and-bindings.md +85 -0
- package/skills/synced-store/references/schema-libraries.md +57 -0
- package/skills/synced-store/references/schema-migrations.md +119 -0
- package/skills/synced-store/references/searchable-tables.md +27 -0
- package/skills/synced-store/references/server-forking.md +115 -0
- package/skills/synced-store/references/singleton-tables.md +61 -0
- package/skills/synced-store/references/sort-keys.md +253 -0
- package/skills/synced-store/references/ui-patterns.md +95 -0
- package/skills/tile-creator/.generated-by-poe-templated-docs +0 -0
- package/skills/tile-creator/SKILL.md +197 -0
- package/skills/tile-creator/references/assets.md +124 -0
- package/skills/tile-creator/references/backend-api.md +354 -0
- package/skills/tile-creator/references/cli-limitations.md +64 -0
- package/skills/tile-creator/references/cli.md +604 -0
- package/skills/tile-creator/references/client-api.md +2407 -0
- package/skills/tile-creator/references/composing-apps.md +166 -0
- package/skills/tile-creator/references/e2e-tests.md +55 -0
- package/skills/tile-creator/references/game-ux-best-practices.md +57 -0
- package/skills/tile-creator/references/migrating-pre-rename-tiles.md +79 -0
- package/skills/tile-creator/references/multiplayer-api-recipe.md +205 -0
- package/skills/tile-creator/references/native-results.md +100 -0
- package/skills/tile-creator/references/platform-integration.md +201 -0
- package/skills/tile-creator/references/power-report.md +199 -0
- package/skills/tile-creator/references/publish-rollout.md +166 -0
- package/skills/tile-creator/references/publishing.md +33 -0
- package/skills/tile-creator/references/push-notification-guidelines.md +58 -0
- package/skills/tile-creator/references/render-check.md +266 -0
- package/skills/tile-creator/references/running-the-client-api-on-a-server-owned-by-the-user.md +95 -0
- package/skills/tile-creator/references/safe-area-insets.md +79 -0
- package/skills/tile-creator/references/sandbox-limitations.md +32 -0
- package/skills/tile-creator/references/scaffolded-tile-folder-structure.md +48 -0
- package/skills/tile-creator/references/scaffolding-a-new-app.md +202 -0
- package/skills/tile-creator/references/simulations.md +125 -0
- package/skills/tile-creator/references/synced-store-client-reference.md +92 -0
- package/skills/tile-creator/references/troubleshooting.md +22 -0
- package/skills/tile-creator/references/turn-based-mutator.md +43 -0
- package/skills/tile-creator/references/user-erasure.md +14 -0
- package/skills/tile-creator/references/vite-plugin.md +166 -0
- package/skills/tile-creator/references/workspace-retention.md +72 -0
- package/src/admin-conversions-client.ts +28 -0
- package/src/admin-reviews-client.ts +36 -0
- package/src/api.generated.ts +1527 -0
- package/src/auth-token.ts +198 -0
- package/src/bounded-read.ts +35 -0
- package/src/bun-version.ts +33 -0
- package/src/checkout-base.ts +207 -0
- package/src/cli-bun-version.ts +16 -0
- package/src/cli-env.ts +28 -0
- package/src/cli-name.ts +23 -0
- package/src/client.ts +2474 -0
- package/src/collect-files.ts +226 -0
- package/src/commands/accounts.ts +55 -0
- package/src/commands/admin-abandon-conversion.ts +60 -0
- package/src/commands/admin-reviews.ts +66 -0
- package/src/commands/admin.ts +219 -0
- package/src/commands/auth.ts +89 -0
- package/src/commands/checkout-prototype.ts +67 -0
- package/src/commands/creator-source-capability.ts +11 -0
- package/src/commands/doctor-bun.ts +145 -0
- package/src/commands/doctor-command.ts +64 -0
- package/src/commands/doctor-package-json.ts +47 -0
- package/src/commands/doctor-sdk-pin.ts +156 -0
- package/src/commands/doctor-store-keys-lexer.ts +213 -0
- package/src/commands/doctor-store-keys-scan.ts +262 -0
- package/src/commands/doctor-store-keys.ts +196 -0
- package/src/commands/doctor.ts +371 -0
- package/src/commands/init/blank-scaffold-templates.ts +397 -0
- package/src/commands/init/index.ts +170 -0
- package/src/commands/init/internal-toolchain.ts +49 -0
- package/src/commands/init/manager-test-template.ts +107 -0
- package/src/commands/init/multiplayer-test-template.ts +217 -0
- package/src/commands/init/name-input.tsx +167 -0
- package/src/commands/init/no-store-scaffold-templates.ts +281 -0
- package/src/commands/init/no-store-scaffold.ts +134 -0
- package/src/commands/init/package-json-scripts.ts +72 -0
- package/src/commands/init/scaffold.ts +960 -0
- package/src/commands/init/sdk-tarball-url.generated.ts +4 -0
- package/src/commands/init/sdk-tarball-url.ts +31 -0
- package/src/commands/init/template-picker.tsx +147 -0
- package/src/commands/inspect-child-entry.ts +107 -0
- package/src/commands/inspect-contract.ts +87 -0
- package/src/commands/inspect-freshness.ts +217 -0
- package/src/commands/inspect-lock.ts +201 -0
- package/src/commands/inspect-options.ts +360 -0
- package/src/commands/inspect-orchestrate.ts +375 -0
- package/src/commands/inspect-process.ts +172 -0
- package/src/commands/inspect-ready.ts +65 -0
- package/src/commands/inspect-report.ts +235 -0
- package/src/commands/inspect-run-state.ts +296 -0
- package/src/commands/inspect-run.ts +157 -0
- package/src/commands/inspect-watchdog.ts +74 -0
- package/src/commands/install-joiner.ts +208 -0
- package/src/commands/login.ts +308 -0
- package/src/commands/models.ts +40 -0
- package/src/commands/parse-options.ts +36 -0
- package/src/commands/remix-package-json.ts +64 -0
- package/src/commands/remix.ts +379 -0
- package/src/commands/sdk-url.ts +141 -0
- package/src/commands/simulations.ts +133 -0
- package/src/commands/skills.ts +108 -0
- package/src/commands/store-files.ts +92 -0
- package/src/commands/stores.ts +703 -0
- package/src/commands/tiles-channel-commands.ts +115 -0
- package/src/commands/tiles-checkout.ts +351 -0
- package/src/commands/tiles-gallery-command.ts +95 -0
- package/src/commands/tiles-get-helpers.ts +27 -0
- package/src/commands/tiles-inspect.ts +276 -0
- package/src/commands/tiles-power-command.ts +308 -0
- package/src/commands/tiles-power-format.ts +396 -0
- package/src/commands/tiles-power-versions.ts +299 -0
- package/src/commands/tiles-publish-helpers.ts +145 -0
- package/src/commands/tiles-upload-command.ts +277 -0
- package/src/commands/tiles-version-commands.ts +201 -0
- package/src/commands/tiles-visibility-command.ts +103 -0
- package/src/commands/tiles.ts +257 -0
- package/src/commands/upgrade.ts +307 -0
- package/src/commit-in-progress.ts +42 -0
- package/src/creator-source-context.ts +97 -0
- package/src/creator-source-publish.ts +52 -0
- package/src/deferred-assets.ts +125 -0
- package/src/distribution.ts +28 -0
- package/src/errors.ts +61 -0
- package/src/install-command.ts +43 -0
- package/src/output.ts +62 -0
- package/src/poe-tile-config-files.ts +100 -0
- package/src/poe-tile-config-players.ts +168 -0
- package/src/poe-tile-config-remix.ts +166 -0
- package/src/poe-tile-config.ts +831 -0
- package/src/power-report-client.ts +55 -0
- package/src/prototype-startup.ts +21 -0
- package/src/publish-change-summary.ts +55 -0
- package/src/publish-overrides-validation.ts +49 -0
- package/src/publish-pack.ts +167 -0
- package/src/publish-phases.ts +57 -0
- package/src/publish-retry.ts +51 -0
- package/src/publish-tile-from-config.ts +434 -0
- package/src/recorder-stream.ts +169 -0
- package/src/remix-provenance.ts +156 -0
- package/src/resolve-client-credential.ts +71 -0
- package/src/resolve-media-uploads.ts +147 -0
- package/src/sdk-dependency.ts +54 -0
- package/src/sdk-skills.ts +85 -0
- package/src/should-skip-client-setup.ts +20 -0
- package/src/simulation-snapshot.ts +123 -0
- package/src/simulation-types.ts +74 -0
- package/src/simulations-client.ts +112 -0
- package/src/source-bundle.ts +466 -0
- package/src/staged-publish-cleanup.ts +44 -0
- package/src/staged-publish-deferred.ts +160 -0
- package/src/staged-publish.ts +401 -0
- package/src/store-file-upload.ts +268 -0
- package/src/store-request.ts +168 -0
- package/src/tar-canonical.ts +41 -0
- package/src/tar-extensions.ts +159 -0
- package/src/tar-extract.ts +193 -0
- package/src/tar-parse.ts +224 -0
- package/src/tar.ts +231 -0
- package/src/template-check-scripts.ts +18 -0
- package/src/tile-gallery-client.ts +82 -0
- package/src/types.ts +258 -0
- package/src/upload-concurrency.ts +54 -0
- package/src/whole-tile.ts +52 -0
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
# CLI Overview
|
|
2
|
+
|
|
3
|
+
The `joiner` CLI lets you manage and publish tiles on Joiner from your terminal or in automated scripts. It uses the [REST API](https://joiner-docs.pages.dev/api/) and the user-router WebSocket for store operations and debug captures.
|
|
4
|
+
|
|
5
|
+
If you'd like to interface with the platform programmatically from code, see [Programmatic Usage](#programmatic-usage) or the [REST API docs](https://joiner-docs.pages.dev/api/).
|
|
6
|
+
|
|
7
|
+
## Installing the CLI
|
|
8
|
+
|
|
9
|
+
The CLI requires [Bun](https://bun.sh) — its entry points are shipped as TypeScript and run by Bun directly.
|
|
10
|
+
|
|
11
|
+
### Installing from a published tarball
|
|
12
|
+
|
|
13
|
+
For a new installation, run the current global-install command from the
|
|
14
|
+
[starter runbook](https://joiner-docs.pages.dev/starter/BOOTSTRAP.md). For an existing
|
|
15
|
+
installation, use `joiner upgrade` as described below. Do not reuse a CLI
|
|
16
|
+
tarball URL from an older skill copy; bundled skills cannot embed their own
|
|
17
|
+
content-hashed release URL.
|
|
18
|
+
|
|
19
|
+
This adds the `poe-tiles` CLI and its `joiner` launcher to Bun's global bin dir (`~/.bun/bin`). Ensure that directory is on your `PATH`, then verify:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
joiner --version
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
The tarball is self-contained: production dependencies are plain npm packages and there are no `workspace:*` references. `package-contents.test.ts` enforces this invariant: shipped source files may only import declared deps or `node:*` builtins at runtime.
|
|
27
|
+
|
|
28
|
+
## Upgrading the CLI
|
|
29
|
+
|
|
30
|
+
Once installed, the CLI can upgrade itself in place:
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
joiner upgrade
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
This fetches the latest tarball manifest from `https://joiner-docs.pages.dev/cli/latest.json`, runs `bun remove -g @ai-app/poe-tiles-cli`, then `bun install -g <tarballUrl>`. The fetched URL is pinned to the `misc-dev-uploads.quora-913.workers.dev` host before being passed to `bun install -g`, so a compromised docs deploy can't redirect installs to an attacker-controlled tarball. Only `tarballUrl` and `publishedAt` are read from the manifest — the install command is constructed CLI-side, never `sh -c`'d from a network string.
|
|
37
|
+
|
|
38
|
+
If you installed the CLI from npm (`@joiner-platform/cli`), `joiner upgrade` instead reinstalls `@joiner-platform/cli@latest` with npm (`npm install -g --prefix <its npm prefix>`) or Bun (`bun add -g`), whichever installed it. If it cannot tell, for example after a pnpm or yarn install or a Bun install with lockfiles turned off, it stops and asks you to reinstall with the package manager you used. When it can tell, `joiner upgrade --print` shows the exact command. The npm package already provides both the `joiner` and `poe-tiles` commands, so it adds no launcher.
|
|
39
|
+
|
|
40
|
+
Dry run (print the equivalent install command without executing):
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
joiner upgrade --print
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
For the tarball install, `upgrade` updates the globally-installed package in `~/.bun/bin` and adds the `joiner` launcher. A tarball CLI released before the launcher cannot add it on its first upgrade: run `poe-tiles install-joiner` after that upgrade.
|
|
47
|
+
|
|
48
|
+
<a id="upgrading-the-sdk-in-an-existing-app"></a>
|
|
49
|
+
|
|
50
|
+
## Upgrading the SDK in an existing tile
|
|
51
|
+
|
|
52
|
+
Scaffolded tiles pin `joiner-sdk` in `package.json` to a content-hashed
|
|
53
|
+
tarball URL. Run `joiner sdk-url --snippet` in the tile folder to get the
|
|
54
|
+
current dependency line from the live release manifest, then replace the
|
|
55
|
+
dependency line with it. The snippet uses the key that the tile already has
|
|
56
|
+
(`joiner-sdk`, or the old key in an older tile). Without `--snippet`, the
|
|
57
|
+
command prints only the URL. When offline, the
|
|
58
|
+
command falls back to the SDK URL bundled with the installed CLI. The release
|
|
59
|
+
snapshot below shows the dependency format; a bundled skill copy can contain
|
|
60
|
+
an older pin, so prefer the live result when upgrading:
|
|
61
|
+
|
|
62
|
+
<!-- begin: sdk-tarball-snippet (auto-generated by packages/poe-tiles-sdk/scripts/publish-tar.ts — do not edit by hand) -->
|
|
63
|
+
```json
|
|
64
|
+
"joiner-sdk": "https://misc-dev-uploads.quora-913.workers.dev/f8f3a9b106337f02be4e1a5bca468ff64d5834bb8766fbae7ab12ac2aee99742"
|
|
65
|
+
```
|
|
66
|
+
<!-- end: sdk-tarball-snippet -->
|
|
67
|
+
|
|
68
|
+
Then reinstall:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
bun install
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
For a tile predating the platform rename, follow the
|
|
75
|
+
[pre-rename migration guide](migrating-pre-rename-tiles.md) first.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## Checking the version
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
joiner --version
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## Authentication
|
|
85
|
+
|
|
86
|
+
Run the browser login flow once to create a local session token:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
joiner login
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
The CLI opens Joiner in your browser, waits for approval, and saves
|
|
93
|
+
`~/.poe-tiles/poe-tiles-session-token`. You do not need a Poe API key.
|
|
94
|
+
|
|
95
|
+
On a remote machine or SSH session, run the same command. The CLI prints a URL
|
|
96
|
+
and code; open the URL in any browser, approve the login, and the terminal keeps
|
|
97
|
+
waiting until the session is saved. You can also force that flow:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
joiner login --remote
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
For automation, pass an existing Joiner session token:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
export POE_TILES_SESSION_TOKEN=your_session_token_here
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Legacy Poe API keys still work via `--api-key`, `POE_API_KEY`, or
|
|
110
|
+
`~/.poe-tiles/poe-tiles-api-key`, but they are not needed for normal CLI use.
|
|
111
|
+
Credential precedence is `--api-key`, then `POE_API_KEY`, then
|
|
112
|
+
`POE_TILES_SESSION_TOKEN`, then `~/.poe-tiles/poe-tiles-session-token`, then
|
|
113
|
+
`~/.poe-tiles/poe-tiles-api-key`.
|
|
114
|
+
|
|
115
|
+
Verify it works:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
joiner auth whoami
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
## Available Commands
|
|
122
|
+
|
|
123
|
+
### `remix` — Clone Published Source
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
joiner remix <typeId>
|
|
127
|
+
joiner remix <creatorName> <handle>
|
|
128
|
+
joiner remix <creatorName>/<handle> --dir ./my-local-copy
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Downloads the app's uploaded source bundle and unpacks it into a local
|
|
132
|
+
directory. By default the directory is named after the app handle; pass
|
|
133
|
+
`--dir <path>` to choose a different local folder name. The target directory
|
|
134
|
+
must not already exist.
|
|
135
|
+
|
|
136
|
+
After unpacking, `remix` rewrites the `joiner-sdk` dependency to the
|
|
137
|
+
published SDK tarball URL (so `bun install` works) and installs the SDK skills
|
|
138
|
+
into `.claude/skills/`. Pass `--no-skills` to skip the skills. Any other
|
|
139
|
+
internal workspace dependencies are left intact with a warning — they have no
|
|
140
|
+
published package, so remove or replace them before `bun install`.
|
|
141
|
+
|
|
142
|
+
For first-party bundles (package name `@poe-tile/*` with a workspace
|
|
143
|
+
`joiner-sdk` dependency), `remix` pins any declared `@playwright/test`,
|
|
144
|
+
`playwright`, and `playwright-core` dependencies to the monorepo's tested
|
|
145
|
+
versions and adds matching exact `overrides` for all three. External apps keep
|
|
146
|
+
their declared Playwright versions; bundles without Playwright dependencies get
|
|
147
|
+
no Playwright overrides.
|
|
148
|
+
|
|
149
|
+
The intent is to preserve the platform's tested Playwright family after the
|
|
150
|
+
source loses the monorepo's root overrides. npm publishes the three packages
|
|
151
|
+
separately: a fresh install resolving a caret range can select a newer release
|
|
152
|
+
before its matching dependency is available. Completing that publication fixes
|
|
153
|
+
the immediate install failure, but does not prevent the next one. The pins are
|
|
154
|
+
a lasting reproducibility policy, not a temporary workaround.
|
|
155
|
+
|
|
156
|
+
Without a lockfile, a caret range can pick up newer compatible releases during
|
|
157
|
+
installation; it does not upgrade an already running app in the background.
|
|
158
|
+
Exact pins instead require deliberate upgrades, including patch and security
|
|
159
|
+
updates. For an existing remix, choose a release available for all three
|
|
160
|
+
packages and set its declared Playwright dependencies and all three overrides
|
|
161
|
+
to that same exact version. Run `bun install` to update the existing lockfile,
|
|
162
|
+
and commit the manifest and lockfile together. Updating the CLI alone does not
|
|
163
|
+
change existing remixes' Playwright versions; new remixes use the pins shipped
|
|
164
|
+
in that CLI release.
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
It also records where the copy came from, by writing a `remixOf` field into the
|
|
168
|
+
unpacked `.poe-tile.json` (and upgrading its `$schema` to v10). It also removes
|
|
169
|
+
obsolete top-level creator categories from the copy, without changing the stored archive. You don't need to write or edit this yourself. Once you publish, it
|
|
170
|
+
shows the original app in a **Remix of** row on your detail card.
|
|
171
|
+
|
|
172
|
+
The claim is **not verified** — it is a credit you declare. The platform
|
|
173
|
+
checks only that the field is well-formed; it does
|
|
174
|
+
not look up the app you named. If your app is public, it also appears in a
|
|
175
|
+
**Remixes** row on the original app's detail card (unlisted and dev apps never
|
|
176
|
+
do). If the app you name is deleted, private, or was never real, the row simply
|
|
177
|
+
doesn't render. Set
|
|
178
|
+
`"remixOf": null` to drop the credit on a later publish.
|
|
179
|
+
|
|
180
|
+
If the server didn't report the branch point, `remix` still gives you a working
|
|
181
|
+
copy — it just reports that the credit wasn't recorded instead of failing.
|
|
182
|
+
|
|
183
|
+
### `auth` — Authentication & Account Info
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
joiner login # Open or print browser approval URL, save CLI session
|
|
187
|
+
joiner auth whoami # Show current user
|
|
188
|
+
joiner auth usage # Show point balance
|
|
189
|
+
joiner auth points-history # Show usage history table
|
|
190
|
+
joiner auth logout # End session
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### `tiles` — Tile Management
|
|
194
|
+
|
|
195
|
+
```bash
|
|
196
|
+
joiner tiles list # List all your apps
|
|
197
|
+
joiner tiles get <tileHandleOrId>
|
|
198
|
+
joiner tiles download-source <tileHandleOrId> --out source-bundle.tar.gz
|
|
199
|
+
joiner tiles checkout <tileHandleOrId> --agent claude # your own tile, ready for a coding agent
|
|
200
|
+
joiner tiles upload --handle my-app --dir ./dist
|
|
201
|
+
joiner tiles upload --change-summary "Added touch controls and improved scoring."
|
|
202
|
+
joiner tiles deploy # upload AND make the new version live
|
|
203
|
+
joiner tiles rename <tileHandleOrId> <newHandle>
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
#### Version management
|
|
207
|
+
|
|
208
|
+
Every upload appends a new version; whether `live` (the version everyone
|
|
209
|
+
plays) also advances is the tile's Auto-Advance Live preference (on by
|
|
210
|
+
default). `staging` is an ordinary custom channel name — its automatically
|
|
211
|
+
maintained channel was retired.
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
joiner tiles versions <tileHandleOrId> # List versions: names, descriptions, channel markers
|
|
215
|
+
joiner tiles channels <tileHandleOrId> # Which version each channel points at
|
|
216
|
+
joiner tiles promote <tileHandleOrId> <version> # Set a version live (or roll back)
|
|
217
|
+
joiner tiles set-gallery <tileHandleOrId> # Put .poe-tile.json's screenshots on the live listing now
|
|
218
|
+
joiner tiles set-channel <tileHandleOrId> beta <version> # Point a custom channel at a version
|
|
219
|
+
joiner tiles auto-advance <tileHandleOrId> on|off # Should each upload go live immediately?
|
|
220
|
+
joiner tiles edit-version <tileHandleOrId> <version> --name "Beta 2" --description "Adds the timer."
|
|
221
|
+
joiner tiles upload --version-name "Beta 2" --version-notes "Adds the timer."
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
An upload that omits `--version-notes` but passes `--change-summary` stores
|
|
225
|
+
the summary as the version's description, so summarized uploads get
|
|
226
|
+
self-documenting history for free. `edit-version` accepts an empty string
|
|
227
|
+
(`--name ""`) to clear a field back to its default.
|
|
228
|
+
|
|
229
|
+
#### `tiles download-source` — Download uploaded source
|
|
230
|
+
|
|
231
|
+
Downloads the source-code bundle attached to a published app and writes it as
|
|
232
|
+
a `.tar.gz` archive. Accepts either the canonical app ID or
|
|
233
|
+
`userHandle/appHandle`.
|
|
234
|
+
|
|
235
|
+
```bash
|
|
236
|
+
joiner tiles download-source myuser/my-app --out source-bundle.tar.gz
|
|
237
|
+
```
|
|
238
|
+
|
|
239
|
+
This only works when the app was published with a source bundle. Apps
|
|
240
|
+
scaffolded by `joiner tiles init` include a public `sourceBundle` block in
|
|
241
|
+
`.poe-tile.json` by default, so normal uploads include source automatically.
|
|
242
|
+
Older apps or apps that deleted the `sourceBundle` block cannot have original
|
|
243
|
+
source reconstructed from the deployed runtime bundle.
|
|
244
|
+
|
|
245
|
+
#### `tiles checkout` — Work on your own tile with a coding agent
|
|
246
|
+
|
|
247
|
+
Imports one of your own tiles into a new local folder, ready for Claude Code
|
|
248
|
+
or Codex. Use it to keep working on a tile you made in Creator, for example
|
|
249
|
+
after you reach a Creator usage limit.
|
|
250
|
+
|
|
251
|
+
```bash
|
|
252
|
+
joiner tiles checkout myuser/my-game # folder ./my-game
|
|
253
|
+
joiner tiles checkout myuser/my-game --dir ./work # choose the folder
|
|
254
|
+
joiner tiles checkout myuser/my-game --agent claude # then start Claude Code
|
|
255
|
+
joiner tiles checkout myuser/my-game --agent codex # then start Codex
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
The command:
|
|
259
|
+
|
|
260
|
+
1. Downloads the tile's uploaded source and unpacks it into the folder (by
|
|
261
|
+
default, named after the tile handle). The folder must not exist.
|
|
262
|
+
2. Rewrites the `joiner-sdk` dependency to the published SDK, as `remix`
|
|
263
|
+
does.
|
|
264
|
+
3. Installs the SDK skills from this CLI into `.claude/skills/` and
|
|
265
|
+
`.agents/skills/`, replacing the copies in the source, which are frozen at
|
|
266
|
+
the time the tile was created. Skill folders that the CLI does not ship
|
|
267
|
+
stay as they are.
|
|
268
|
+
4. Runs `bun install` in the folder. Pass `--no-install` to skip it. A
|
|
269
|
+
prototype has nothing to install (see below).
|
|
270
|
+
5. Prints `cd <folder> && claude` and `cd <folder> && codex`, or, with
|
|
271
|
+
`--agent claude|codex`, starts that agent in the folder.
|
|
272
|
+
|
|
273
|
+
`checkout` does not record `remixOf`: the folder is the same tile, not a copy.
|
|
274
|
+
When you publish from the folder (`joiner tiles deploy`), the new version
|
|
275
|
+
updates your tile. If you made the tile in Creator, Creator then shows that a
|
|
276
|
+
newer version exists and offers to merge it.
|
|
277
|
+
|
|
278
|
+
The folder records the version it was checked out at in `.poe-checkout.log`,
|
|
279
|
+
which never ships in the source bundle. If a newer version was published since,
|
|
280
|
+
for example from Creator, `tiles deploy` and `tiles upload` from the folder ask
|
|
281
|
+
before replacing it. Without a terminal they refuse; pass `--overwrite-newer` to
|
|
282
|
+
replace the newer version anyway. To keep it instead, check the tile out again
|
|
283
|
+
into a new folder and copy your changes into it.
|
|
284
|
+
|
|
285
|
+
You can check out only tiles you own. For a tile that someone else made, use
|
|
286
|
+
[`remix`](#remix--clone-published-source) to make your own copy.
|
|
287
|
+
|
|
288
|
+
A tile without uploaded source cannot be checked out. A tile published without
|
|
289
|
+
the `sourceBundle` block in `.poe-tile.json` has no uploaded source.
|
|
290
|
+
|
|
291
|
+
The recommended one-liner, after the CLI is installed (see
|
|
292
|
+
[Installing the CLI](#installing-the-cli)), gets the newest CLI and skills,
|
|
293
|
+
signs you in if necessary, and opens the tile in Claude Code (use `codex` for
|
|
294
|
+
Codex):
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
joiner upgrade && { joiner auth whoami >/dev/null 2>&1 || joiner login; } && joiner tiles checkout myuser/my-game --agent claude
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
If the shell has no `joiner` command, run `poe-tiles install-joiner` first, or
|
|
301
|
+
use `poe-tiles` in the one-liner.
|
|
302
|
+
|
|
303
|
+
On a computer without the CLI, run the install command from the
|
|
304
|
+
[starter runbook](https://poe-tiles-docs.pages.dev/starter/BOOTSTRAP.md) first,
|
|
305
|
+
then the one-liner.
|
|
306
|
+
|
|
307
|
+
##### Check out a prototype
|
|
308
|
+
|
|
309
|
+
A tile that is still a Creator prototype checks out from the files it last
|
|
310
|
+
published: `.poe-tile.json`, the `.poe-prototype` marker, `index.html`, and
|
|
311
|
+
any generated assets. The folder has no `package.json`, so `checkout` runs no
|
|
312
|
+
`bun install`. In place of the generic agent instructions, it writes
|
|
313
|
+
`AGENTS.md` (and a `CLAUDE.md` that imports it) for a prototype:
|
|
314
|
+
|
|
315
|
+
- To change the prototype, the agent edits `index.html` under the rules of
|
|
316
|
+
the `prototype` skill and keeps `.poe-prototype`. That skill's Creator-only
|
|
317
|
+
tools and paths do not apply outside Creator.
|
|
318
|
+
- To build the full version, the agent scaffolds a project with `tiles init`,
|
|
319
|
+
ports the prototype into it, moves it into the folder, and deletes
|
|
320
|
+
`.poe-prototype`.
|
|
321
|
+
|
|
322
|
+
Publish either one with `joiner tiles deploy` from the folder. A prototype
|
|
323
|
+
publish keeps its files as the tile's source (private to you, or the source
|
|
324
|
+
visibility the tile already has), so Creator can continue from that version.
|
|
325
|
+
When you return to Creator, it shows that a newer version exists and offers to
|
|
326
|
+
merge it. If the newer version is a full version, the merge builds Creator's
|
|
327
|
+
full version from it.
|
|
328
|
+
|
|
329
|
+
#### `tiles rename` — Rename one of your apps
|
|
330
|
+
|
|
331
|
+
Rewrites the app's `handle` without re-publishing the bundle. Accepts
|
|
332
|
+
either the canonical app ID or `userHandle/appHandle`. New handle must
|
|
333
|
+
be unique across your apps.
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
<a id="tiles-upload-output"></a>
|
|
337
|
+
|
|
338
|
+
#### `tiles upload` — Output
|
|
339
|
+
|
|
340
|
+
A successful upload prints the tile's ids, its bundle ids, and its
|
|
341
|
+
`Tile URL`. When the tile's declared `players` range makes it worth testing
|
|
342
|
+
with more than one person, one more row appears:
|
|
343
|
+
|
|
344
|
+
```
|
|
345
|
+
Multiplayer simulation (4 players) https://<host>/simulate_multi/start?typeId=<id>&users=4
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
Opening that URL starts (or re-enters) a **multiplayer simulation** of the
|
|
349
|
+
tile: one page holding several phone-sized frames, each running the full
|
|
350
|
+
product as a different dev user, all already members of the same instance of
|
|
351
|
+
your tile. It is the fastest way to exercise turn order, live opponent
|
|
352
|
+
updates, and the room-side notification surfaces without recruiting real
|
|
353
|
+
players. Repeat visits re-enter the same simulation rather than piling up new
|
|
354
|
+
ones, and the simulation's own "Add user" control adds more phones.
|
|
355
|
+
|
|
356
|
+
The phone count comes from `players`: `recommended.min` when declared,
|
|
357
|
+
otherwise `min`, clamped to a screen-friendly maximum. Append `&users=<n>` to
|
|
358
|
+
ask for a different number — on a **reused** simulation the count is a floor,
|
|
359
|
+
not an exact size: already-seated phones are never removed, so asking for
|
|
360
|
+
fewer than a previous visit still opens the larger set (close individual
|
|
361
|
+
phones in the view instead). The link is absent for a single-player tile and
|
|
362
|
+
for a tile that declares no `players` at all — the platform never guesses.
|
|
363
|
+
|
|
364
|
+
In `--json` mode the same pair is a `simulation` object (`{ url, users }`),
|
|
365
|
+
omitted entirely when there is nothing to simulate.
|
|
366
|
+
|
|
367
|
+
The link is also posted into the Creator chat automatically alongside the
|
|
368
|
+
upload receipt, so it is reachable without scrolling back through terminal
|
|
369
|
+
output.
|
|
370
|
+
|
|
371
|
+
#### `tiles upload` — App-page metadata flags
|
|
372
|
+
|
|
373
|
+
`tiles upload` (and `tiles deploy`) accepts optional metadata fields that decorate the
|
|
374
|
+
app's landing page and the cards in app listings. Each can be set in
|
|
375
|
+
`.poe-tile.json` or overridden by a CLI flag (explicit flag wins). Pass an
|
|
376
|
+
empty value (`--profile-picture=""`, etc.) to clear an existing value on
|
|
377
|
+
re-upload.
|
|
378
|
+
|
|
379
|
+
| Flag | `.poe-tile.json` field | Notes |
|
|
380
|
+
|---|---|---|
|
|
381
|
+
| `--change-summary <text>` | _(none; per-upload)_ | Concise summary included in Creator's chat receipt (≤500 chars). Whitespace is normalized; omission falls back to “New version published.” |
|
|
382
|
+
| `--version-name <name>` | _(none; per-upload)_ | Label for the new version (≤60 chars), shown in the version-history UI instead of the default "Version N". |
|
|
383
|
+
| `--version-notes <text>` | _(none; per-upload)_ | What changed in this version (≤2000 chars), stored on the version row. Defaults to `--change-summary` when omitted. |
|
|
384
|
+
| `--display-name <name>` | `displayName` | Human-friendly name shown on Explore and app cards instead of the kebab-case handle (≤80 chars). |
|
|
385
|
+
| `--profile-picture <pathOrUrl>` | `profilePicture` | Local PNG/JPG/WEBP file path (uploaded, ≤512 KB) or an `https://` URL stored as-is. |
|
|
386
|
+
| `--short-description <text>` | `shortDescription` | One-line tagline (≤140 chars). |
|
|
387
|
+
| `--long-description <path>` | `longDescription` | Path to a markdown file (≤16 KB UTF-8). The CLI reads the file contents on upload. |
|
|
388
|
+
| _(config only — no flag)_ | `screenshots` | Ordered list of ≤8 detail-card screenshots (local PNG/JPG/WEBP paths or `https://` URLs). Requires `$schema` v3+. |
|
|
389
|
+
| _(config only — no flag)_ | `players` | Player-count facet `{ min, max?, recommended? }` (total seats: humans + AI), or `null` to clear. Requires `$schema` v5. Shown on tile cards and the detail page. |
|
|
390
|
+
| _(config only — no flag)_ | `instancing` | `"per-context"` reuses one instance per context; `"per-launch"` creates a fresh instance for each launch. Requires `$schema` v7. |
|
|
391
|
+
| _(config only — no flag)_ | `remixOf` | The app — and the exact publish of it — this app was remixed from, or `null` to clear. Requires `$schema` v9. **`joiner remix` writes this for you**; see below. Shows the original in a "Remix of" row on your detail card, and lists a public app in a "Remixes" row on the original's. Self-declared, not verified. |
|
|
392
|
+
|
|
393
|
+
These fields are gated by the `.poe-tile.json` `$schema` version: the
|
|
394
|
+
metadata text fields need `v2.json`+, `screenshots` needs `v3.json`+,
|
|
395
|
+
`players` needs `v5.json`, `instancing` needs `v7.json`, and `remixOf` needs
|
|
396
|
+
`v9.json`. The current schema is `v10.json`; categories are no longer creator inputs. Update the `$schema` value in your
|
|
397
|
+
config to the newest version to use the latest fields; using a field under an
|
|
398
|
+
older schema is a loud error, never a silent drop. The previous v1 schema is
|
|
399
|
+
rejected by the current CLI.
|
|
400
|
+
|
|
401
|
+
`players` + `instancing` example:
|
|
402
|
+
|
|
403
|
+
```jsonc
|
|
404
|
+
{
|
|
405
|
+
"$schema": "https://joiner-docs.pages.dev/schemas/poe-tile/v10.json",
|
|
406
|
+
"handle": "word-duel",
|
|
407
|
+
"players": { "min": 2, "max": 4, "recommended": { "min": 3, "max": 4 } },
|
|
408
|
+
"instancing": "per-launch"
|
|
409
|
+
}
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
`max` is optional — omit it for an open/party tile with no declared upper
|
|
413
|
+
bound. `recommended` is an optional `{ min, max }` sub-range bounded by
|
|
414
|
+
`[min, max ?? 1000]`. Set `"players": null` to un-declare a previously
|
|
415
|
+
published value.
|
|
416
|
+
|
|
417
|
+
Categories are managed by the platform, not by creators. The current CLI
|
|
418
|
+
rejects any top-level `categories` field, including `null` and an empty list,
|
|
419
|
+
under every accepted config schema. Fix a legacy config by deleting that field:
|
|
420
|
+
|
|
421
|
+
> Remove the top-level `categories` field from `.poe-tile.json`; categories are assigned automatically.
|
|
422
|
+
|
|
423
|
+
Keep the rest of the config intact. Remix and fresh source-copy preparation remove
|
|
424
|
+
this obsolete field automatically; existing or restored workspaces need the edit above.
|
|
425
|
+
|
|
426
|
+
#### `tiles visibility` — Discovery
|
|
427
|
+
|
|
428
|
+
`tiles visibility <tileHandleOrId> public|unlisted` controls whether the tile
|
|
429
|
+
appears in public discovery. Publishing never sets it: a tile is unlisted when
|
|
430
|
+
first published and stays where it is on every upload after that, so listing
|
|
431
|
+
(or unlisting) is always a separate, deliberate command.
|
|
432
|
+
|
|
433
|
+
An `unlisted` tile keeps its direct `/tile/<user>/<handle>` link but is excluded
|
|
434
|
+
from Explore, For You, search for non-owners, and public profile tile lists.
|
|
435
|
+
Accepts either the canonical tile ID or `userHandle/tileHandle`.
|
|
436
|
+
|
|
437
|
+
#### `tiles set-gallery` — Gallery on the live listing
|
|
438
|
+
|
|
439
|
+
A tile's listing (cover, gallery, name, descriptions) is what its `live`
|
|
440
|
+
version was uploaded with. An upload records its listing on its own version,
|
|
441
|
+
and the listing changes only when a version goes live. So new screenshots in
|
|
442
|
+
an upload that does not go live wait for the next `tiles promote`.
|
|
443
|
+
|
|
444
|
+
`tiles set-gallery <tileHandleOrId>` writes the `screenshots` list from
|
|
445
|
+
`.poe-tile.json` (in the current directory, or `--dir <dir>`) to the live
|
|
446
|
+
listing now, without an upload. The live version keeps it, so promoting that
|
|
447
|
+
version again does not undo it. An empty list clears the gallery. The preview
|
|
448
|
+
video stays. Each image is PNG, JPG or WEBP, at most 512 KB, and the list holds
|
|
449
|
+
at most eight entries.
|
|
450
|
+
|
|
451
|
+
### `simulations` — Create and debug simulations
|
|
452
|
+
|
|
453
|
+
```bash
|
|
454
|
+
joiner --json simulations create <typeId>
|
|
455
|
+
joiner --json simulations list <typeId>
|
|
456
|
+
joiner simulations debug <typeId> <instanceId> --out debug.json
|
|
457
|
+
```
|
|
458
|
+
|
|
459
|
+
Use a bare tile ID, `<tileId>~v-<versionNumber>`, or `<tileId>~c-<channel>`.
|
|
460
|
+
`create` starts a fresh simulation; `list` finds existing ones owned by the
|
|
461
|
+
caller. `debug` captures public state and the caller's simulated players'
|
|
462
|
+
private state through the existing platform snapshot action. It preserves
|
|
463
|
+
completeness and consistency flags for the receiving agent.
|
|
464
|
+
See [Simulations from the CLI](simulations.md) for the full upload → create →
|
|
465
|
+
capture workflow, output format, authentication, and limits.
|
|
466
|
+
|
|
467
|
+
### `stores` — Store Operations
|
|
468
|
+
|
|
469
|
+
```bash
|
|
470
|
+
joiner stores access <typeId> <instanceId>
|
|
471
|
+
joiner stores schema <typeId> <instanceId>
|
|
472
|
+
joiner stores mutate <typeId> <instanceId> <mutationName> --input '{"id":"todo-1","text":"Buy milk"}'
|
|
473
|
+
joiner stores mutate <typeId> <instanceId> <mutationName> --input-file input.json
|
|
474
|
+
joiner store files upload <typeId> <instanceId> ./photo.jpg --content-type image/jpeg
|
|
475
|
+
```
|
|
476
|
+
|
|
477
|
+
Store commands use the authenticated user from `joiner login` (or a legacy
|
|
478
|
+
API key fallback) and the normal user-router WebSocket.
|
|
479
|
+
|
|
480
|
+
`stores access` verifies access by pulling the target store and checking that
|
|
481
|
+
the current user's id is present as an active row in the store's `$users`
|
|
482
|
+
table. It exits non-zero when the user is not an active member.
|
|
483
|
+
|
|
484
|
+
`stores schema` fetches the store schema, including all available mutators,
|
|
485
|
+
and prints ready-to-run CLI commands for checking access and dispatching each
|
|
486
|
+
mutator.
|
|
487
|
+
|
|
488
|
+
`stores mutate` fetches the store schema version, then sends a single mutation
|
|
489
|
+
push. It exits non-zero when the server reports a failed mutation.
|
|
490
|
+
|
|
491
|
+
`store files upload` runs the managed upload pipeline for an active store
|
|
492
|
+
member and prints the published `fileId`, content key, and serving URL. The app
|
|
493
|
+
must opt in with `_requestUploadUrl`. Claim the returned `fileId` in a
|
|
494
|
+
`fileRefs`-declared field through `store mutate`; unclaimed uploads expire. The
|
|
495
|
+
file must be non-empty and at most 10 MiB. Use `--name` to override the display
|
|
496
|
+
name and `--content-type` to provide a receiver hint; the platform inspects the
|
|
497
|
+
bytes authoritatively.
|
|
498
|
+
|
|
499
|
+
Use `--input <json>` for inline JSON or `--input-file <path>` for a JSON file.
|
|
500
|
+
Pass exactly one of those flags. For a mutator that takes no meaningful input,
|
|
501
|
+
pass `--input null` or `--input '{}'`, depending on the mutator's schema.
|
|
502
|
+
|
|
503
|
+
### `models` — Model Management
|
|
504
|
+
|
|
505
|
+
```bash
|
|
506
|
+
joiner models list # List available LLM models
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
### `accounts` — Connected Accounts
|
|
510
|
+
|
|
511
|
+
```bash
|
|
512
|
+
joiner accounts list # List linked OAuth accounts
|
|
513
|
+
joiner accounts unlink <providerId>
|
|
514
|
+
```
|
|
515
|
+
|
|
516
|
+
### `upgrade` — Self-Upgrade
|
|
517
|
+
|
|
518
|
+
Fetches the latest tarball manifest and reinstalls the global CLI. See [Upgrading the CLI](#upgrading-the-cli) above for security and scope notes.
|
|
519
|
+
|
|
520
|
+
```bash
|
|
521
|
+
joiner upgrade # Upgrade to latest published tarball
|
|
522
|
+
joiner upgrade --print # Print the install command without running it
|
|
523
|
+
```
|
|
524
|
+
|
|
525
|
+
### `skills` — SDK Skills
|
|
526
|
+
|
|
527
|
+
Install (or refresh) the SDK skills (`tile-creator`, `synced-store`) bundled with the currently-installed CLI. Use this to pull in newer skill content after upgrading the CLI, without re-scaffolding the app.
|
|
528
|
+
|
|
529
|
+
```bash
|
|
530
|
+
joiner skills install # Refreshes .claude/skills and .agents/skills
|
|
531
|
+
joiner skills install --dir path/to/skills # Custom target dir
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
Codex reads `AGENTS.md` and discovers `.agents/skills`; Claude Code reads
|
|
535
|
+
`CLAUDE.md` and `.claude/skills`. Both copies contain the same SDK guidance.
|
|
536
|
+
Read linked reference files explicitly if your agent does not resolve `@path`
|
|
537
|
+
includes.
|
|
538
|
+
|
|
539
|
+
Merges with existing skill directories — files at matching paths are overwritten, but user-added files outside the bundle are preserved. Each skill is written as `<dir>/<skill-name>/`. Note: a reference doc that was renamed or removed in a newer CLI will linger alongside the new version until you delete it manually.
|
|
540
|
+
|
|
541
|
+
## Global Options
|
|
542
|
+
|
|
543
|
+
```bash
|
|
544
|
+
--json # Output as machine-readable JSON
|
|
545
|
+
--server <url> # Override the server URL (e.g. for local dev)
|
|
546
|
+
--api-key <key> # Legacy Poe API key override
|
|
547
|
+
--version # Show version
|
|
548
|
+
--help # Show help
|
|
549
|
+
```
|
|
550
|
+
|
|
551
|
+
## Environment Variables
|
|
552
|
+
|
|
553
|
+
| Variable | Required | Description |
|
|
554
|
+
|----------|----------|-------------|
|
|
555
|
+
| `POE_TILES_SESSION_TOKEN` | No | Existing Joiner session token; normally created by `joiner login` in `~/.poe-tiles/poe-tiles-session-token` |
|
|
556
|
+
| `POE_API_KEY` | No | Legacy Poe API key ([get one here](https://poe.com/api/keys)); explicit API keys take precedence over session-token auth |
|
|
557
|
+
| `POE_SERVER_URL` | No | Server URL override (same as `--server` flag) |
|
|
558
|
+
|
|
559
|
+
## Using in scripts
|
|
560
|
+
|
|
561
|
+
All commands support `--json` for machine-readable output, making it easy to pipe into tools like `jq`:
|
|
562
|
+
|
|
563
|
+
```bash
|
|
564
|
+
# List app handles
|
|
565
|
+
joiner tiles list --json | jq '.[].handle'
|
|
566
|
+
|
|
567
|
+
# Sum point costs
|
|
568
|
+
joiner auth points-history --json | jq '[.[] | .cost_points] | add'
|
|
569
|
+
|
|
570
|
+
# Get a specific app's bundle URL
|
|
571
|
+
joiner tiles get myuser/my-app --json | jq '.bundleUrl'
|
|
572
|
+
|
|
573
|
+
# Dispatch a store mutation and read the committed version
|
|
574
|
+
joiner --json stores mutate todo-store room-1 setTodo --input '{"id":"todo-1","text":"Buy milk"}' | jq '.version'
|
|
575
|
+
|
|
576
|
+
# List mutators and their generated CLI commands
|
|
577
|
+
joiner --json stores schema todo-store room-1 | jq '.commands.mutators'
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
## Local development
|
|
581
|
+
|
|
582
|
+
Point the CLI at a local server:
|
|
583
|
+
|
|
584
|
+
```bash
|
|
585
|
+
joiner --server http://localhost:8787 tiles list
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
## Programmatic usage
|
|
589
|
+
|
|
590
|
+
The CLI package also exports a `SlopPoeClient` for use in scripts and tools:
|
|
591
|
+
|
|
592
|
+
```typescript
|
|
593
|
+
import { SlopPoeClient, assertSuccess } from "@ai-app/poe-tiles-cli";
|
|
594
|
+
|
|
595
|
+
const client = new SlopPoeClient({
|
|
596
|
+
sessionToken: process.env["POE_TILES_SESSION_TOKEN"]!,
|
|
597
|
+
});
|
|
598
|
+
|
|
599
|
+
const result = await client.listTiles();
|
|
600
|
+
assertSuccess(result); // throws on failure
|
|
601
|
+
for (const tile of result.tiles) {
|
|
602
|
+
console.log(`${tile.handle} (${tile.id})`);
|
|
603
|
+
}
|
|
604
|
+
```
|