@joiner-platform/cli 0.1.18 → 0.1.19
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.19",
|
|
4
|
+
"gitHead": "95979a27890c7a1d4f5fdde8e7b293eb9a4c5aa2",
|
|
5
5
|
"description": "The Joiner CLI: create, test, and publish Joiner tiles, with agent skills for coding agents.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"joiner",
|
|
@@ -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/ca6d9024d5d9881a193a9ea2d0e58b333d9e6e024e472ca2bb3b3e272ef73bb4"
|
|
65
65
|
```
|
|
66
66
|
<!-- end: sdk-tarball-snippet -->
|
|
67
67
|
|
|
@@ -59,7 +59,7 @@ below for custom behavior.
|
|
|
59
59
|
- [`Poe.consumeEntryContext()`](#poe-consumeentrycontext) — Deprecated for notifications: use `watchEntryContext()`
|
|
60
60
|
- [`Poe.parent`](#poe-parent) — Parent store identity (for child apps)
|
|
61
61
|
- [`Poe.topOrigin`](#poe-toporigin) — Origin of the top (host) document, for building absolute URLs from sandboxed iframes
|
|
62
|
-
- [`Poe.
|
|
62
|
+
- [`Poe.languages`](#poe-languages) — The viewer's preferred languages, to pick which of your translations to show
|
|
63
63
|
- [`Poe.haptics`](#poe-haptics) — Trigger cross-platform haptic feedback
|
|
64
64
|
- [`Poe.motion.claim()`](#device-motion) — Tell the host this tile uses device motion as input, so shake-to-report stands down
|
|
65
65
|
- [`resumeAudioContext()`](#resumeaudiocontext) — Recover Web Audio after browser or iOS system-audio interruptions
|
|
@@ -1220,17 +1220,27 @@ await navigator.clipboard.writeText(shareUrl);
|
|
|
1220
1220
|
|
|
1221
1221
|
For top-document apps (trusted apps not running in an iframe) that construct a `PostMessageEnvironment` manually, pass `topOrigin: window.location.origin` in the constructor options.
|
|
1222
1222
|
|
|
1223
|
-
### `Poe.
|
|
1223
|
+
### `Poe.languages`
|
|
1224
1224
|
|
|
1225
|
-
The
|
|
1225
|
+
The viewer's preferred languages, as BCP 47 tags with the most preferred first (e.g. `["fr"]` or `["pt-BR", "pt", "en"]`). Never empty. Use it, not `navigator.languages`, to choose which of your translations to show: walk the list and take the first language you have, else your default.
|
|
1226
1226
|
|
|
1227
1227
|
```typescript
|
|
1228
|
-
const
|
|
1228
|
+
const supported = ["en", "fr", "ja"];
|
|
1229
|
+
// Hosts before kernel v71 have no `Poe.languages`; their deprecated
|
|
1230
|
+
// `interfaceLanguages` still carries the saved choice.
|
|
1231
|
+
const languages = Poe.has("languages")
|
|
1232
|
+
? Poe.languages
|
|
1233
|
+
: (Poe.interfaceLanguages ?? navigator.languages);
|
|
1234
|
+
const locale =
|
|
1235
|
+
languages
|
|
1236
|
+
.map((tag) => supported.find((s) => s === tag || tag.startsWith(`${s}-`)))
|
|
1237
|
+
.find((match) => match !== undefined) ?? "en";
|
|
1238
|
+
document.documentElement.lang = locale;
|
|
1229
1239
|
```
|
|
1230
1240
|
|
|
1231
|
-
|
|
1241
|
+
When the viewer picked a language in the host's Language setting, the list is that one language. The choice lives where a sandboxed tile cannot read it, so `navigator.languages` inside the iframe would still report the browser's own languages; the platform stamps the choice into the iframe when the tile mounts. With no saved choice the list is the browser's languages, and `["en"]` when there are none. The value is fixed for the life of the mount; the host reloads after the viewer changes it.
|
|
1232
1242
|
|
|
1233
|
-
|
|
1243
|
+
`Poe.languages` needs kernel v71. Guard it with `Poe.has("languages")` as above, or set `poeTile({ minSdkVersion: 71 })` to require it. `Poe.interfaceLanguages` is deprecated: it holds only the saved choice and is `undefined` without one. Read it only as the fallback on older hosts, as above, so the saved choice still applies there.
|
|
1234
1244
|
|
|
1235
1245
|
### `Poe.capabilities`
|
|
1236
1246
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Auto-generated by poe-tiles-sdk/scripts/publish-tar.ts — do not edit
|
|
2
|
-
// publishedAt: 2026-11-30T17:
|
|
2
|
+
// publishedAt: 2026-11-30T17:07:09.403Z
|
|
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/ca6d9024d5d9881a193a9ea2d0e58b333d9e6e024e472ca2bb3b3e272ef73bb4";
|