@maximem/synap-js-sdk 0.5.18 → 0.5.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/dist/index.d.cts CHANGED
@@ -1665,6 +1665,13 @@ interface ConfigureOptions {
1665
1665
  agentModel?: string;
1666
1666
  agent_context_window?: number;
1667
1667
  agentContextWindow?: number;
1668
+ /**
1669
+ * The local model for history search and matching a fetch to prefetched
1670
+ * context by meaning: "auto" (default) or a model id, null for keyword
1671
+ * matching only. As Python's SDKConfig.history_search_model. Since 0.5.19.
1672
+ */
1673
+ history_search_model?: string | null;
1674
+ historySearchModel?: string | null;
1668
1675
  /** Replaces the diagnostic sink, same as the constructor option. */
1669
1676
  logger?: SynapLogger | undefined;
1670
1677
  }
@@ -1885,7 +1892,7 @@ declare class SynapClient {
1885
1892
  * build when the two disagree, which is the only thing that makes a manual
1886
1893
  * publish safe.
1887
1894
  */
1888
- declare const SDK_VERSION = "0.5.18";
1895
+ declare const SDK_VERSION = "0.5.19";
1889
1896
 
1890
1897
  /**
1891
1898
  * `response_shape: "ranked"`: one list in the order the server ranked it.
package/dist/index.d.ts CHANGED
@@ -1665,6 +1665,13 @@ interface ConfigureOptions {
1665
1665
  agentModel?: string;
1666
1666
  agent_context_window?: number;
1667
1667
  agentContextWindow?: number;
1668
+ /**
1669
+ * The local model for history search and matching a fetch to prefetched
1670
+ * context by meaning: "auto" (default) or a model id, null for keyword
1671
+ * matching only. As Python's SDKConfig.history_search_model. Since 0.5.19.
1672
+ */
1673
+ history_search_model?: string | null;
1674
+ historySearchModel?: string | null;
1668
1675
  /** Replaces the diagnostic sink, same as the constructor option. */
1669
1676
  logger?: SynapLogger | undefined;
1670
1677
  }
@@ -1885,7 +1892,7 @@ declare class SynapClient {
1885
1892
  * build when the two disagree, which is the only thing that makes a manual
1886
1893
  * publish safe.
1887
1894
  */
1888
- declare const SDK_VERSION = "0.5.18";
1895
+ declare const SDK_VERSION = "0.5.19";
1889
1896
 
1890
1897
  /**
1891
1898
  * `response_shape: "ranked"`: one list in the order the server ranked it.
package/dist/index.js CHANGED
@@ -2040,7 +2040,7 @@ function createInstanceNamespace(credentials, cache, onTurn, agentModel = () =>
2040
2040
  }
2041
2041
 
2042
2042
  // src/version.ts
2043
- var SDK_VERSION = "0.5.18";
2043
+ var SDK_VERSION = "0.5.19";
2044
2044
 
2045
2045
  // src/registry.ts
2046
2046
  var instances = /* @__PURE__ */ new Map();
@@ -4135,6 +4135,8 @@ var SynapClient = class _SynapClient {
4135
4135
  this.#transport.setRetryPolicy(options.retryPolicy ?? options.retry_policy ?? null);
4136
4136
  }
4137
4137
  if (options.logger !== void 0) this.#logger = options.logger;
4138
+ const historyModel = options.history_search_model !== void 0 ? options.history_search_model : options.historySearchModel;
4139
+ if (historyModel !== void 0 && !this.#localModelStarted) this.#localModelName = historyModel;
4138
4140
  const model = options.agent_model ?? options.agentModel;
4139
4141
  const window = options.agent_context_window ?? options.agentContextWindow;
4140
4142
  if (model !== void 0 || window !== void 0) {