@maximem/synap-js-sdk 0.5.1 → 0.5.2
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/dist/{chunk-ASM2OIIG.js → chunk-DJPYUPSV.js} +240 -2
- package/dist/chunk-DJPYUPSV.js.map +1 -0
- package/dist/{chunk-IA2N5NUY.cjs → chunk-WWTGJZA7.cjs} +254 -16
- package/dist/chunk-WWTGJZA7.cjs.map +1 -0
- package/dist/grpc/index.cjs +3 -3
- package/dist/grpc/index.d.cts +6 -0
- package/dist/grpc/index.d.ts +6 -0
- package/dist/grpc/index.js +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{stream-client-6OWRYOA4.js → stream-client-5CGJNTH4.js} +2 -2
- package/dist/stream-client-GJM4YSXW.cjs +16 -0
- package/dist/{stream-client-Y5JGSF2R.cjs.map → stream-client-GJM4YSXW.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-ASM2OIIG.js.map +0 -1
- package/dist/chunk-IA2N5NUY.cjs.map +0 -1
- package/dist/stream-client-Y5JGSF2R.cjs +0 -16
- /package/dist/{stream-client-6OWRYOA4.js.map → stream-client-5CGJNTH4.js.map} +0 -0
package/dist/grpc/index.d.cts
CHANGED
|
@@ -36,6 +36,12 @@ interface StreamClientOptions {
|
|
|
36
36
|
onContext?: (bundle: Record<string, unknown>) => void;
|
|
37
37
|
/** Fires only for `compaction_update` bundles. Backs the compaction subscriptions. */
|
|
38
38
|
onCompactionUpdate?: (conversationId: string, bundle: Record<string, unknown>) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Where the outbox journal lives, so buffered events survive a restart.
|
|
41
|
+
* Defaults to `~/.synap`, the same root Python uses. `''` turns it off, and
|
|
42
|
+
* it is off anyway wherever there is no filesystem.
|
|
43
|
+
*/
|
|
44
|
+
outboxPath?: string;
|
|
39
45
|
}
|
|
40
46
|
interface ConversationEventInput {
|
|
41
47
|
event_type: string;
|
package/dist/grpc/index.d.ts
CHANGED
|
@@ -36,6 +36,12 @@ interface StreamClientOptions {
|
|
|
36
36
|
onContext?: (bundle: Record<string, unknown>) => void;
|
|
37
37
|
/** Fires only for `compaction_update` bundles. Backs the compaction subscriptions. */
|
|
38
38
|
onCompactionUpdate?: (conversationId: string, bundle: Record<string, unknown>) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Where the outbox journal lives, so buffered events survive a restart.
|
|
41
|
+
* Defaults to `~/.synap`, the same root Python uses. `''` turns it off, and
|
|
42
|
+
* it is off anyway wherever there is no filesystem.
|
|
43
|
+
*/
|
|
44
|
+
outboxPath?: string;
|
|
39
45
|
}
|
|
40
46
|
interface ConversationEventInput {
|
|
41
47
|
event_type: string;
|
package/dist/grpc/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GrpcStreamClient,
|
|
3
3
|
PROTO_SHA
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-DJPYUPSV.js";
|
|
5
5
|
import {
|
|
6
6
|
ListeningNotActiveError
|
|
7
7
|
} from "../chunk-BWMPKLFG.js";
|
|
@@ -39,7 +39,7 @@ async function listen(options) {
|
|
|
39
39
|
throw new ListeningNotActiveError(availability.detail);
|
|
40
40
|
}
|
|
41
41
|
const [{ GrpcStreamClient: StreamClient }, { AnticipationCache }, { getEnv }] = await Promise.all([
|
|
42
|
-
import("../stream-client-
|
|
42
|
+
import("../stream-client-5CGJNTH4.js"),
|
|
43
43
|
import("../anticipation-cache-WLU4NMD5.js"),
|
|
44
44
|
import("../env-QCUKKW36.js")
|
|
45
45
|
]);
|
package/dist/index.cjs
CHANGED
|
@@ -1440,7 +1440,7 @@ function createInstanceNamespace(credentials, cache, onTurn) {
|
|
|
1440
1440
|
if (client !== null) {
|
|
1441
1441
|
throw new (0, _chunkT372OL3Qcjs.ListeningAlreadyActiveError)("Listening is already active on this instance");
|
|
1442
1442
|
}
|
|
1443
|
-
const { GrpcStreamClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./stream-client-
|
|
1443
|
+
const { GrpcStreamClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./stream-client-GJM4YSXW.cjs")));
|
|
1444
1444
|
const onContext = _nullishCoalesce(options.on_context, () => ( options.onContext));
|
|
1445
1445
|
const onDisconnect = _nullishCoalesce(options.on_disconnect, () => ( options.onDisconnect));
|
|
1446
1446
|
const onReconnect = _nullishCoalesce(options.on_reconnect, () => ( options.onReconnect));
|
|
@@ -1612,7 +1612,7 @@ function createInstanceNamespace(credentials, cache, onTurn) {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
|
|
1614
1614
|
// src/version.ts
|
|
1615
|
-
var SDK_VERSION = "0.5.
|
|
1615
|
+
var SDK_VERSION = "0.5.2";
|
|
1616
1616
|
|
|
1617
1617
|
// src/registry.ts
|
|
1618
1618
|
var instances = /* @__PURE__ */ new Map();
|