@nimblebrain/synapse 0.7.0 → 0.9.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/README.md +33 -0
- package/dist/{chunk-WYWKN3YG.cjs → chunk-42JAT6TK.cjs} +27 -14
- package/dist/{chunk-2HKN2A2J.js.map → chunk-42JAT6TK.cjs.map} +1 -1
- package/dist/{chunk-2HKN2A2J.js → chunk-IQYOVYIR.js} +27 -14
- package/dist/chunk-IQYOVYIR.js.map +1 -0
- package/dist/codegen/index.cjs +5 -5
- package/dist/codegen/index.d.cts +1 -1
- package/dist/codegen/index.d.ts +1 -1
- package/dist/codegen/index.js +1 -1
- package/dist/connect.iife.global.js +8 -8
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/react/index.cjs +3 -3
- package/dist/react/index.d.cts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/synapse-runtime.iife.global.js +8 -8
- package/dist/{types-Beo6hjvb.d.cts → types-C9utGXv_.d.cts} +13 -2
- package/dist/{types-Beo6hjvb.d.ts → types-C9utGXv_.d.ts} +13 -2
- package/dist/ui/fonts.cjs +19 -0
- package/dist/ui/fonts.cjs.map +1 -0
- package/dist/ui/fonts.d.cts +30 -0
- package/dist/ui/fonts.d.ts +30 -0
- package/dist/ui/fonts.js +17 -0
- package/dist/ui/fonts.js.map +1 -0
- package/dist/ui/index.cjs +1397 -0
- package/dist/ui/index.cjs.map +1 -0
- package/dist/ui/index.d.cts +415 -0
- package/dist/ui/index.d.ts +415 -0
- package/dist/ui/index.js +1366 -0
- package/dist/ui/index.js.map +1 -0
- package/package.json +11 -1
- package/dist/chunk-WYWKN3YG.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk42JAT6TK_cjs = require('./chunk-42JAT6TK.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
|
|
83
|
+
get: function () { return chunk42JAT6TK_cjs.connect; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "createSynapse", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunk42JAT6TK_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 { CreateTaskResult, ReadResourceRequest, ReadResourceResult, Task, TaskStatus } 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-
|
|
3
|
-
export { e as AgentAction, f as AppEventName, B as BuiltinActionType, g as CallToolAsTaskOptions, D as DataChangedEvent, h as Dimensions, F as FileResult, H as HostInfo, K as KeyForwardConfig, N as NavigatePayload, i as NotifyPayload, R as RequestFileOptions, j as StateAcknowledgement, k as StoreDispatch, l as SynapseTheme, m as TaskHandle, n as TasksCapability, o as Theme, p as ToolCallResult, T as ToolDefinition, q as ToolResultData, V as VisibleState } from './types-
|
|
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-C9utGXv_.cjs';
|
|
3
|
+
export { e as AgentAction, f as AppEventName, B as BuiltinActionType, g as CallToolAsTaskOptions, D as DataChangedEvent, h as Dimensions, F as FileResult, H as HostInfo, K as KeyForwardConfig, N as NavigatePayload, i as NotifyPayload, R as RequestFileOptions, j as StateAcknowledgement, k as StoreDispatch, l as SynapseTheme, m as TaskHandle, n as TasksCapability, o as Theme, p as ToolCallResult, T as ToolDefinition, q as ToolResultData, V as VisibleState } from './types-C9utGXv_.cjs';
|
|
4
4
|
import '@modelcontextprotocol/ext-apps';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { CreateTaskResult, ReadResourceRequest, ReadResourceResult, Task, TaskStatus } 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-
|
|
3
|
-
export { e as AgentAction, f as AppEventName, B as BuiltinActionType, g as CallToolAsTaskOptions, D as DataChangedEvent, h as Dimensions, F as FileResult, H as HostInfo, K as KeyForwardConfig, N as NavigatePayload, i as NotifyPayload, R as RequestFileOptions, j as StateAcknowledgement, k as StoreDispatch, l as SynapseTheme, m as TaskHandle, n as TasksCapability, o as Theme, p as ToolCallResult, T as ToolDefinition, q as ToolResultData, V as VisibleState } from './types-
|
|
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-C9utGXv_.js';
|
|
3
|
+
export { e as AgentAction, f as AppEventName, B as BuiltinActionType, g as CallToolAsTaskOptions, D as DataChangedEvent, h as Dimensions, F as FileResult, H as HostInfo, K as KeyForwardConfig, N as NavigatePayload, i as NotifyPayload, R as RequestFileOptions, j as StateAcknowledgement, k as StoreDispatch, l as SynapseTheme, m as TaskHandle, n as TasksCapability, o as Theme, p as ToolCallResult, T as ToolDefinition, q as ToolResultData, V as VisibleState } from './types-C9utGXv_.js';
|
|
4
4
|
import '@modelcontextprotocol/ext-apps';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/index.js
CHANGED
package/dist/react/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk42JAT6TK_cjs = require('../chunk-42JAT6TK.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
|
-
|
|
14
|
+
chunk42JAT6TK_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 =
|
|
74
|
+
ref.current = chunk42JAT6TK_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 }),
|
package/dist/react/index.d.cts
CHANGED
|
@@ -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, o as Theme, q as ToolResultData, S as SynapseOptions, g as CallToolAsTaskOptions, m as TaskHandle, p as ToolCallResult, e as AgentAction, D as DataChangedEvent, R as RequestFileOptions, F as FileResult, b as ActionReducer, d as Store, k as StoreDispatch, a as Synapse, l as SynapseTheme } from '../types-
|
|
3
|
+
import { C as ConnectOptions, A as App, o as Theme, q as ToolResultData, S as SynapseOptions, g as CallToolAsTaskOptions, m as TaskHandle, p as ToolCallResult, e as AgentAction, D as DataChangedEvent, R as RequestFileOptions, F as FileResult, b as ActionReducer, d as Store, k as StoreDispatch, a as Synapse, l as SynapseTheme } from '../types-C9utGXv_.cjs';
|
|
4
4
|
import { McpUiHostContext } from '@modelcontextprotocol/ext-apps';
|
|
5
5
|
import { Task } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
|
package/dist/react/index.d.ts
CHANGED
|
@@ -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, o as Theme, q as ToolResultData, S as SynapseOptions, g as CallToolAsTaskOptions, m as TaskHandle, p as ToolCallResult, e as AgentAction, D as DataChangedEvent, R as RequestFileOptions, F as FileResult, b as ActionReducer, d as Store, k as StoreDispatch, a as Synapse, l as SynapseTheme } from '../types-
|
|
3
|
+
import { C as ConnectOptions, A as App, o as Theme, q as ToolResultData, S as SynapseOptions, g as CallToolAsTaskOptions, m as TaskHandle, p as ToolCallResult, e as AgentAction, D as DataChangedEvent, R as RequestFileOptions, F as FileResult, b as ActionReducer, d as Store, k as StoreDispatch, a as Synapse, l as SynapseTheme } from '../types-C9utGXv_.js';
|
|
4
4
|
import { McpUiHostContext } from '@modelcontextprotocol/ext-apps';
|
|
5
5
|
import { Task } from '@modelcontextprotocol/sdk/types.js';
|
|
6
6
|
|
package/dist/react/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { connect, createSynapse } from '../chunk-
|
|
1
|
+
import { connect, createSynapse } from '../chunk-IQYOVYIR.js';
|
|
2
2
|
import { createContext, useState, useRef, useEffect, useCallback, useSyncExternalStore, useContext } from 'react';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
|