@joiner-platform/cli 0.1.21 → 0.1.22
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 +2 -2
- package/skills/synced-store/references/architecture-scaling-and-performance.md +7 -4
- package/skills/synced-store/references/limitations.md +1 -1
- package/skills/tile-creator/references/cli.md +1 -1
- package/skills/tile-creator/references/client-api.md +1 -1
- package/src/commands/init/sdk-tarball-url.generated.ts +2 -2
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.22",
|
|
4
|
+
"gitHead": "6b046ce4102108cd14de9a3f0f8c69dc7a9de238",
|
|
5
5
|
"description": "The Joiner CLI: create, test, and publish Joiner tiles, with agent skills for coding agents.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"joiner",
|
|
@@ -139,10 +139,13 @@ longer to run and may hit the
|
|
|
139
139
|
host operations, such as scan-page reads or row writes, and turns that
|
|
140
140
|
process queued promises. CPU-heavy work between host operations can hit the
|
|
141
141
|
[30-second guest execution deadline](limitations.md#guest-execution-deadline).
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
That deadline is a cumulative budget for the whole mutator, action, or hook
|
|
143
|
+
call: it pauses while host operations run and resumes with the time left, so
|
|
144
|
+
every guest slice in the call spends from the same 30 seconds. It is enforced
|
|
145
|
+
where the host clock advances during computation, such as local and test
|
|
146
|
+
servers. On the production host the clock does not advance while your code
|
|
147
|
+
computes between host operations, so CPU-heavy code there is stopped only by
|
|
148
|
+
the store's 300-second CPU limit, which resets the whole instance.
|
|
146
149
|
|
|
147
150
|
Store migrations are treated as mutations and are subject to the same guest
|
|
148
151
|
deadline and [event-loop-tick limit](limitations.md#event-loop-ticks). Stores
|
|
@@ -32,7 +32,7 @@ This table describes the synced-store behavior shipped on `main`. Sizes are UTF-
|
|
|
32
32
|
| Cross-store | Unconfirmed optimistic external | 5 minutes | The client reverts an overlay that remains unconfirmed past the TTL. Dispatch is detached from the source push; retryable infrastructure failures may be retried, so receivers must be idempotent or convergent. Ordinary mutator failures and overload responses are not retried. |
|
|
33
33
|
| Cross-store | Watched external stores | 16 per session | Further watch requests are rejected. Unwatch targets that are no longer needed. |
|
|
34
34
|
| Cross-store | Pending dispatches | 1,000 waiting per target, plus the active RPC | Overflow fails immediately. Reduce source fan-out or target recovery time. |
|
|
35
|
-
| Server execution | <a id="guest-execution-deadline"></a>Guest execution deadline | 30 seconds of
|
|
35
|
+
| Server execution | <a id="guest-execution-deadline"></a>Guest execution deadline | 30 seconds of cumulative guest time per mutator, action, or hook call, where the host clock advances during computation | The budget is summed across the whole call: it pauses while trusted host operations run and resumes with what is left when they settle, so host I/O does not count against it, but each guest slice spends from the same 30 seconds rather than getting a fresh deadline. Local and test servers enforce it, and because it is wall time on the instance's single thread, identical compute can take longer under concurrent load — leave headroom rather than designing near the deadline. On the production host the clock does not advance while your code computes between host operations, so this deadline does not stop guest computation there: compute-heavy code runs until the store's CPU limit (300 seconds) resets the instance, failing every request in flight on that store. Bound scans and external work, and never write an unbounded synchronous loop. |
|
|
36
36
|
| Server execution | <a id="host-wait-bound"></a>Host operation wait | 300,000 milliseconds (5 minutes) per awaited host operation | Applies to every mutator, action, and hook call. When an awaited `ctx.platform.call`, model-stream read, table or scan operation, or `ctx.sleep` has not settled after 300,000 milliseconds, the whole call fails; your code cannot catch it, and the host work is not cancelled. Concurrent host operations awaited together share one bound. Cross-store `.action()` calls and server-action `ctx.mutate` are exempt, because the called code bounds its own host operations. This is not a total wall-clock limit: each settled host operation restarts the bound. |
|
|
37
37
|
| Server execution | `structuredClone` | Available in mutators, actions and module scope | Copies plain objects, arrays, `Date`, `RegExp`, `Map`, `Set`, `ArrayBuffer`, typed arrays and `DataView`, keeping shared references and cycles. Errors keep `message` and `stack` but lose `cause` and other properties. Functions, symbols, `WeakMap`, `WeakSet`, `WeakRef`, `FinalizationRegistry`, `Promise`, iterators and generators (sync or async), `SharedArrayBuffer`, detached or out-of-bounds buffers and views, and a non-empty `transfer` list throw an error named `DataCloneError`; on the server it is an `Error`, not a `DOMException`, so check `error.name`. A `Proxy` (for example reactive-state objects) throws in the browser but is copied as plain data on the server, so do not rely on either. |
|
|
38
38
|
| Server execution | Action retry delays | 30,000 milliseconds cumulative per action invocation | `ctx.sleep(ms)` accepts integer milliseconds from 0 through 30,000. Sequential and concurrent requests share the allowance; exceeding it rejects before creating a timer. It is a retry delay, not a timeout or cancellation mechanism for another host call. |
|
|
@@ -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/88142b185dbcc2742d07d1088b47e955e0a16afc2c7dad56d8fb13b241d1de7a"
|
|
65
65
|
```
|
|
66
66
|
<!-- end: sdk-tarball-snippet -->
|
|
67
67
|
|
|
@@ -1222,7 +1222,7 @@ For top-document apps (trusted apps not running in an iframe) that construct a `
|
|
|
1222
1222
|
|
|
1223
1223
|
### `Poe.languages`
|
|
1224
1224
|
|
|
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
|
|
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. To match by hand, walk the list and take the first language you have, else your default.
|
|
1226
1226
|
|
|
1227
1227
|
```typescript
|
|
1228
1228
|
const supported = ["en", "fr", "ja"];
|
|
@@ -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:54:43.249Z
|
|
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/88142b185dbcc2742d07d1088b47e955e0a16afc2c7dad56d8fb13b241d1de7a";
|