@nimblebrain/synapse 0.4.4 → 0.5.0

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk5CTTHX5Q_cjs = require('./chunk-5CTTHX5Q.cjs');
3
+ var chunk2F5WHIFK_cjs = require('./chunk-2F5WHIFK.cjs');
4
4
 
5
5
  // src/store.ts
6
6
  function createStore(synapse, config) {
@@ -80,11 +80,11 @@ function createStore(synapse, config) {
80
80
 
81
81
  Object.defineProperty(exports, "connect", {
82
82
  enumerable: true,
83
- get: function () { return chunk5CTTHX5Q_cjs.connect; }
83
+ get: function () { return chunk2F5WHIFK_cjs.connect; }
84
84
  });
85
85
  Object.defineProperty(exports, "createSynapse", {
86
86
  enumerable: true,
87
- get: function () { return chunk5CTTHX5Q_cjs.createSynapse; }
87
+ get: function () { return chunk2F5WHIFK_cjs.createSynapse; }
88
88
  });
89
89
  exports.createStore = createStore;
90
90
  //# sourceMappingURL=index.cjs.map
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { ReadResourceRequest, ReadResourceResult } from '@modelcontextprotocol/sdk/types.js';
2
- import { C as ConnectOptions, A as App, S as SynapseOptions, a as Synapse, b as ActionReducer, c as StoreConfig, d as Store } from './types-DOfuRVJX.cjs';
3
- export { e as AgentAction, f as AppEventName, B as BuiltinActionType, D as DataChangedEvent, g as Dimensions, F as FileResult, H as HostInfo, K as KeyForwardConfig, N as NavigatePayload, h as NotifyPayload, R as RequestFileOptions, i as StateAcknowledgement, j as StoreDispatch, k as SynapseTheme, l as Theme, m as ToolCallResult, T as ToolDefinition, n as ToolResultData, V as VisibleState } from './types-DOfuRVJX.cjs';
2
+ import { C as ConnectOptions, A as App, S as SynapseOptions, a as Synapse, b as ActionReducer, c as StoreConfig, d as Store } from './types-DYW7M6Al.cjs';
3
+ export { e as AgentAction, f as AppEventName, B as BuiltinActionType, D as DataChangedEvent, g as Dimensions, F as FileResult, H as HostInfo, K as KeyForwardConfig, N as NavigatePayload, h as NotifyPayload, R as RequestFileOptions, i as StateAcknowledgement, j as StoreDispatch, k as SynapseTheme, l as Theme, m as ToolCallResult, T as ToolDefinition, n as ToolResultData, V as VisibleState } from './types-DYW7M6Al.cjs';
4
4
 
5
5
  /**
6
6
  * Connect to a MCP Apps host.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { ReadResourceRequest, ReadResourceResult } from '@modelcontextprotocol/sdk/types.js';
2
- import { C as ConnectOptions, A as App, S as SynapseOptions, a as Synapse, b as ActionReducer, c as StoreConfig, d as Store } from './types-DOfuRVJX.js';
3
- export { e as AgentAction, f as AppEventName, B as BuiltinActionType, D as DataChangedEvent, g as Dimensions, F as FileResult, H as HostInfo, K as KeyForwardConfig, N as NavigatePayload, h as NotifyPayload, R as RequestFileOptions, i as StateAcknowledgement, j as StoreDispatch, k as SynapseTheme, l as Theme, m as ToolCallResult, T as ToolDefinition, n as ToolResultData, V as VisibleState } from './types-DOfuRVJX.js';
2
+ import { C as ConnectOptions, A as App, S as SynapseOptions, a as Synapse, b as ActionReducer, c as StoreConfig, d as Store } from './types-DYW7M6Al.js';
3
+ export { e as AgentAction, f as AppEventName, B as BuiltinActionType, D as DataChangedEvent, g as Dimensions, F as FileResult, H as HostInfo, K as KeyForwardConfig, N as NavigatePayload, h as NotifyPayload, R as RequestFileOptions, i as StateAcknowledgement, j as StoreDispatch, k as SynapseTheme, l as Theme, m as ToolCallResult, T as ToolDefinition, n as ToolResultData, V as VisibleState } from './types-DYW7M6Al.js';
4
4
 
5
5
  /**
6
6
  * Connect to a MCP Apps host.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { connect, createSynapse } from './chunk-VBL7H4C7.js';
1
+ export { connect, createSynapse } from './chunk-C63QH2T4.js';
2
2
 
3
3
  // src/store.ts
4
4
  function createStore(synapse, config) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunk5CTTHX5Q_cjs = require('../chunk-5CTTHX5Q.cjs');
3
+ var chunk2F5WHIFK_cjs = require('../chunk-2F5WHIFK.cjs');
4
4
  var react = require('react');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
 
@@ -11,7 +11,7 @@ function AppProvider({ children, name, version, autoResize }) {
11
11
  react.useEffect(() => {
12
12
  if (connectingRef.current) return;
13
13
  connectingRef.current = true;
14
- chunk5CTTHX5Q_cjs.connect({ name, version, autoResize }).then((a) => {
14
+ chunk2F5WHIFK_cjs.connect({ name, version, autoResize }).then((a) => {
15
15
  setApp(a);
16
16
  });
17
17
  }, []);
@@ -71,7 +71,7 @@ var SynapseContext = react.createContext(null);
71
71
  function SynapseProvider({ children, ...options }) {
72
72
  const ref = react.useRef(null);
73
73
  if (ref.current === null || ref.current.destroyed) {
74
- ref.current = chunk5CTTHX5Q_cjs.createSynapse(options);
74
+ ref.current = chunk2F5WHIFK_cjs.createSynapse(options);
75
75
  }
76
76
  return /* @__PURE__ */ jsxRuntime.jsxs(SynapseContext.Provider, { value: ref.current, children: [
77
77
  /* @__PURE__ */ jsxRuntime.jsx(ThemeInjector, { synapse: ref.current }),
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { C as ConnectOptions, A as App, l as Theme, n as ToolResultData, S as SynapseOptions, e as AgentAction, m as ToolCallResult, D as DataChangedEvent, R as RequestFileOptions, F as FileResult, b as ActionReducer, d as Store, j as StoreDispatch, a as Synapse, k as SynapseTheme } from '../types-DOfuRVJX.cjs';
3
+ import { C as ConnectOptions, A as App, l as Theme, n as ToolResultData, S as SynapseOptions, e as AgentAction, m as ToolCallResult, D as DataChangedEvent, R as RequestFileOptions, F as FileResult, b as ActionReducer, d as Store, j as StoreDispatch, a as Synapse, k as SynapseTheme } from '../types-DYW7M6Al.cjs';
4
4
  import '@modelcontextprotocol/sdk/types.js';
5
5
 
6
6
  interface AppProviderProps extends ConnectOptions {
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { ReactNode } from 'react';
3
- import { C as ConnectOptions, A as App, l as Theme, n as ToolResultData, S as SynapseOptions, e as AgentAction, m as ToolCallResult, D as DataChangedEvent, R as RequestFileOptions, F as FileResult, b as ActionReducer, d as Store, j as StoreDispatch, a as Synapse, k as SynapseTheme } from '../types-DOfuRVJX.js';
3
+ import { C as ConnectOptions, A as App, l as Theme, n as ToolResultData, S as SynapseOptions, e as AgentAction, m as ToolCallResult, D as DataChangedEvent, R as RequestFileOptions, F as FileResult, b as ActionReducer, d as Store, j as StoreDispatch, a as Synapse, k as SynapseTheme } from '../types-DYW7M6Al.js';
4
4
  import '@modelcontextprotocol/sdk/types.js';
5
5
 
6
6
  interface AppProviderProps extends ConnectOptions {
@@ -1,4 +1,4 @@
1
- import { connect, createSynapse } from '../chunk-VBL7H4C7.js';
1
+ import { connect, createSynapse } from '../chunk-C63QH2T4.js';
2
2
  import { createContext, useState, useRef, useEffect, useCallback, useSyncExternalStore, useContext } from 'react';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4