@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.
@@ -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;
@@ -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;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  GrpcStreamClient,
3
3
  PROTO_SHA
4
- } from "../chunk-ASM2OIIG.js";
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-6OWRYOA4.js"),
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-Y5JGSF2R.cjs")));
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.1";
1615
+ var SDK_VERSION = "0.5.2";
1616
1616
 
1617
1617
  // src/registry.ts
1618
1618
  var instances = /* @__PURE__ */ new Map();