@vinaverse/client 0.1.0-alpha.7 → 0.1.0-alpha.8
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 +3 -1
- package/dist/agent/index.cjs +6 -3
- package/dist/agent/index.cjs.map +1 -1
- package/dist/agent/index.d.cts +3 -3
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.js +1 -1
- package/dist/backend/index.cjs.map +1 -1
- package/dist/backend/index.d.cts +3 -3
- package/dist/backend/index.d.ts +3 -3
- package/dist/backend/index.js +1 -1
- package/dist/{chunk-3BLRAWNC.js → chunk-DI4DPUNA.js} +8 -5
- package/dist/chunk-DI4DPUNA.js.map +1 -0
- package/dist/chunk-YNUHXJD6.js +9 -0
- package/dist/{chunk-VSJDVLCP.js.map → chunk-YNUHXJD6.js.map} +1 -1
- package/dist/contract-DmQs8amJ.d.cts +6 -0
- package/dist/contract-DmQs8amJ.d.ts +6 -0
- package/dist/conversation/index.cjs +2 -2
- package/dist/conversation/index.cjs.map +1 -1
- package/dist/conversation/index.d.cts +5 -5
- package/dist/conversation/index.d.ts +5 -5
- package/dist/conversation/index.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/{runtime-CZ1hLvAl.d.ts → runtime-A4ovUdrc.d.cts} +13 -4
- package/dist/{runtime-C3ZknHdG.d.cts → runtime-B6_l8--U.d.ts} +13 -4
- package/dist/{session-8W3fRNeb.d.cts → session-CPz4pcPu.d.cts} +246 -7
- package/dist/{session-8W3fRNeb.d.ts → session-CPz4pcPu.d.ts} +246 -7
- package/dist/{store-7WU1kD9W.d.cts → store-BxiicOKG.d.cts} +1 -1
- package/dist/{store-DrXSPHu6.d.ts → store-DZka9T2-.d.ts} +1 -1
- package/dist/testing/index.cjs.map +1 -1
- package/dist/testing/index.d.cts +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +1 -1
- package/package.json +22 -2
- package/dist/chunk-3BLRAWNC.js.map +0 -1
- package/dist/chunk-VSJDVLCP.js +0 -9
- package/dist/contract-_NMdPjgN.d.cts +0 -6
- package/dist/contract-_NMdPjgN.d.ts +0 -6
package/README.md
CHANGED
|
@@ -128,7 +128,9 @@ History's "Continue" is `continue(key, conversationId)`: the key goes on with th
|
|
|
128
128
|
is said as `ended` (your backend throws `AgentRefusal('ended', { code })` on a 404 or 410). A session must have an id
|
|
129
129
|
and a secret, and `wss://` and `https://` addresses whatever transport you supply (a wrapper adding headers or logging
|
|
130
130
|
still gets only secure ones). `insecureAddresses: { realtime, turns }` allows plaintext for one leg: dangerous, for mocks
|
|
131
|
-
and local development only, and the runtime warns outside `__DEV__` (through `onWarning
|
|
131
|
+
and local development only, and the runtime warns outside `__DEV__` (through `onWarning(message, { code })`, your
|
|
132
|
+
logger, else `console.warn`; `code` is `insecure_addresses`, `callback_threw` with the `callback` that threw, or
|
|
133
|
+
`events_dropped`).
|
|
132
134
|
A UI binding reads the key's conversation with `peek(key)`, which ends nothing (a render must not): one past its
|
|
133
135
|
session's end is ended when it is next shown, and `subscribe` then tells the binding to read the next one. One no view
|
|
134
136
|
shows ends at its session's end while the app's timers run, and on `sweep()` (the React Native parts call it when the
|
package/dist/agent/index.cjs
CHANGED
|
@@ -2594,7 +2594,8 @@ function warnInsecure(insecure, warn) {
|
|
|
2594
2594
|
if (!(insecure.realtime || insecure.turns)) return;
|
|
2595
2595
|
if (globalThis.__DEV__ === true) return;
|
|
2596
2596
|
warn(
|
|
2597
|
-
"@vinaverse/client/agent: insecureAddresses lets sessions use plaintext ws:// or http:// addresses. For mocks and local development only."
|
|
2597
|
+
"@vinaverse/client/agent: insecureAddresses lets sessions use plaintext ws:// or http:// addresses. For mocks and local development only.",
|
|
2598
|
+
{ code: "insecure_addresses" }
|
|
2598
2599
|
);
|
|
2599
2600
|
}
|
|
2600
2601
|
var OPEN_KEPT_MS = 24 * 36e5;
|
|
@@ -2635,7 +2636,8 @@ function createAgentRuntime(options) {
|
|
|
2635
2636
|
call();
|
|
2636
2637
|
} catch (error) {
|
|
2637
2638
|
warn(
|
|
2638
|
-
`@vinaverse/client/agent: the app's ${what} threw (${error instanceof Error ? error.message : String(error)}); the conversation went on
|
|
2639
|
+
`@vinaverse/client/agent: the app's ${what} threw (${error instanceof Error ? error.message : String(error)}); the conversation went on.`,
|
|
2640
|
+
{ code: "callback_threw", callback: what }
|
|
2639
2641
|
);
|
|
2640
2642
|
}
|
|
2641
2643
|
};
|
|
@@ -2678,7 +2680,8 @@ function createAgentRuntime(options) {
|
|
|
2678
2680
|
waiting.shift();
|
|
2679
2681
|
if (!dropping)
|
|
2680
2682
|
warn(
|
|
2681
|
-
"@vinaverse/client/agent: the analytics salt is still being read from storage; the oldest events are dropped."
|
|
2683
|
+
"@vinaverse/client/agent: the analytics salt is still being read from storage; the oldest events are dropped.",
|
|
2684
|
+
{ code: "events_dropped" }
|
|
2682
2685
|
);
|
|
2683
2686
|
dropping = true;
|
|
2684
2687
|
}
|