@onereach/idw-apps 0.1.2-beta.6.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 +411 -0
- package/dist/app/createIdwApp.d.ts +104 -0
- package/dist/app/createIdwApp.d.ts.map +1 -0
- package/dist/app/createIdwApp.js +151 -0
- package/dist/app/createIdwApp.js.map +1 -0
- package/dist/app/index.d.ts +15 -0
- package/dist/app/index.d.ts.map +1 -0
- package/dist/app/index.js +3 -0
- package/dist/app/index.js.map +1 -0
- package/dist/app/installIdwAppApi.d.ts +98 -0
- package/dist/app/installIdwAppApi.d.ts.map +1 -0
- package/dist/app/installIdwAppApi.js +314 -0
- package/dist/app/installIdwAppApi.js.map +1 -0
- package/dist/createIdwAppBridge.d.ts +13 -0
- package/dist/createIdwAppBridge.d.ts.map +1 -0
- package/dist/createIdwAppBridge.js +555 -0
- package/dist/createIdwAppBridge.js.map +1 -0
- package/dist/hostStateChannel.d.ts +51 -0
- package/dist/hostStateChannel.d.ts.map +1 -0
- package/dist/hostStateChannel.js +104 -0
- package/dist/hostStateChannel.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/protocol.d.ts +81 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +67 -0
- package/dist/protocol.js.map +1 -0
- package/dist/stateStore.d.ts +23 -0
- package/dist/stateStore.d.ts.map +1 -0
- package/dist/stateStore.js +70 -0
- package/dist/stateStore.js.map +1 -0
- package/dist/types.d.ts +268 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +44 -0
- package/skills/idw-app-development/SKILL.md +458 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import type { AppBridge, McpUiAppCapabilities, McpUiHostCapabilities, McpUiHostContext, McpUiSupportedContentBlockModalities } from '@modelcontextprotocol/ext-apps/app-bridge';
|
|
2
|
+
/**
|
|
3
|
+
* MCP types re-derived from `AppBridge` so this package does not have to import
|
|
4
|
+
* `@modelcontextprotocol/sdk` deep paths directly. If ext-apps changes its
|
|
5
|
+
* signatures, these follow automatically.
|
|
6
|
+
*/
|
|
7
|
+
type BridgeCallTool = NonNullable<AppBridge['oncalltool']>;
|
|
8
|
+
type BridgeListResources = NonNullable<AppBridge['onlistresources']>;
|
|
9
|
+
type BridgeListResourceTemplates = NonNullable<AppBridge['onlistresourcetemplates']>;
|
|
10
|
+
type BridgeListPrompts = NonNullable<AppBridge['onlistprompts']>;
|
|
11
|
+
type BridgeReadResource = NonNullable<AppBridge['onreadresource']>;
|
|
12
|
+
type BridgeMessage = NonNullable<AppBridge['onmessage']>;
|
|
13
|
+
type BridgeDownloadFile = NonNullable<AppBridge['ondownloadfile']>;
|
|
14
|
+
type BridgeRequestDisplayMode = NonNullable<AppBridge['onrequestdisplaymode']>;
|
|
15
|
+
type BridgeRequestTeardown = NonNullable<AppBridge['onrequestteardown']>;
|
|
16
|
+
type BridgeUpdateModelContext = NonNullable<AppBridge['onupdatemodelcontext']>;
|
|
17
|
+
type BridgeOpenLink = NonNullable<AppBridge['onopenlink']>;
|
|
18
|
+
type BridgeLogging = NonNullable<AppBridge['onloggingmessage']>;
|
|
19
|
+
type BridgeSizeChange = NonNullable<AppBridge['onsizechange']>;
|
|
20
|
+
export type CallToolParams = Parameters<BridgeCallTool>[0];
|
|
21
|
+
export type CallToolResult = Awaited<ReturnType<BridgeCallTool>>;
|
|
22
|
+
export type ListResourcesParams = Parameters<BridgeListResources>[0];
|
|
23
|
+
export type ListResourcesResult = Awaited<ReturnType<BridgeListResources>>;
|
|
24
|
+
export type ListResourceTemplatesParams = Parameters<BridgeListResourceTemplates>[0];
|
|
25
|
+
export type ListResourceTemplatesResult = Awaited<ReturnType<BridgeListResourceTemplates>>;
|
|
26
|
+
export type ListPromptsParams = Parameters<BridgeListPrompts>[0];
|
|
27
|
+
export type ListPromptsResult = Awaited<ReturnType<BridgeListPrompts>>;
|
|
28
|
+
export type ReadResourceParams = Parameters<BridgeReadResource>[0];
|
|
29
|
+
export type ReadResourceResult = Awaited<ReturnType<BridgeReadResource>>;
|
|
30
|
+
export type MessageParams = Parameters<BridgeMessage>[0];
|
|
31
|
+
export type MessageResult = Awaited<ReturnType<BridgeMessage>>;
|
|
32
|
+
export type DownloadFileParams = Parameters<BridgeDownloadFile>[0];
|
|
33
|
+
export type DownloadFileResult = Awaited<ReturnType<BridgeDownloadFile>>;
|
|
34
|
+
export type RequestDisplayModeParams = Parameters<BridgeRequestDisplayMode>[0];
|
|
35
|
+
export type RequestDisplayModeResult = Awaited<ReturnType<BridgeRequestDisplayMode>>;
|
|
36
|
+
export type RequestTeardownParams = Parameters<BridgeRequestTeardown>[0];
|
|
37
|
+
export type UpdateModelContextParams = Parameters<BridgeUpdateModelContext>[0];
|
|
38
|
+
export type OpenLinkParams = Parameters<BridgeOpenLink>[0];
|
|
39
|
+
export type LoggingParams = Parameters<BridgeLogging>[0];
|
|
40
|
+
export type SizeChangeParams = Parameters<BridgeSizeChange>[0];
|
|
41
|
+
export type ToolInputParams = Parameters<AppBridge['sendToolInput']>[0];
|
|
42
|
+
export type ToolResultParams = Parameters<AppBridge['sendToolResult']>[0];
|
|
43
|
+
export type ToolListChangedParams = Parameters<AppBridge['sendToolListChanged']>[0];
|
|
44
|
+
/** A standard MCP tool call directed from the host to the iframe app. */
|
|
45
|
+
export type AppToolCallParams = Parameters<AppBridge['callTool']>[0];
|
|
46
|
+
export type AppToolCallOptions = Parameters<AppBridge['callTool']>[1];
|
|
47
|
+
export type AppToolCallResult = Awaited<ReturnType<AppBridge['callTool']>>;
|
|
48
|
+
/** Standard MCP tool discovery directed from the host to the iframe app. */
|
|
49
|
+
export type AppToolListParams = Parameters<AppBridge['listTools']>[0];
|
|
50
|
+
export type AppToolListOptions = Parameters<AppBridge['listTools']>[1];
|
|
51
|
+
export type AppToolListResult = Awaited<ReturnType<AppBridge['listTools']>>;
|
|
52
|
+
/** Capabilities declared by the iframe app during MCP Apps initialization. */
|
|
53
|
+
export type AppCapabilities = McpUiAppCapabilities;
|
|
54
|
+
export type ResourceListChangedParams = Parameters<AppBridge['sendResourceListChanged']>[0];
|
|
55
|
+
export type PromptListChangedParams = Parameters<AppBridge['sendPromptListChanged']>[0];
|
|
56
|
+
export type HostContext = McpUiHostContext;
|
|
57
|
+
export type HostCapabilities = McpUiHostCapabilities;
|
|
58
|
+
export type SupportedContentBlockModalities = McpUiSupportedContentBlockModalities;
|
|
59
|
+
export type IdwAppSurface = 'web-app' | 'feed-widget' | 'app-sidebar' | 'chat-inline' | 'fullscreen';
|
|
60
|
+
export type IdwActionParams = {
|
|
61
|
+
name: string;
|
|
62
|
+
arguments?: Record<string, unknown>;
|
|
63
|
+
};
|
|
64
|
+
export type IdwActionResult = CallToolResult;
|
|
65
|
+
export type IdwAppAuthContext = {
|
|
66
|
+
orToken?: string;
|
|
67
|
+
apiBaseUrl?: string;
|
|
68
|
+
};
|
|
69
|
+
/** Resolve an OR user identity token for the app's current live runtime context. */
|
|
70
|
+
export type IdwOrTokenProvider = (context: IdwRuntimeContext) => string | undefined | Promise<string | undefined>;
|
|
71
|
+
export type IdwAppAuthOptions = IdwAppAuthContext & {
|
|
72
|
+
/**
|
|
73
|
+
* Include `orToken` in the initial MCP host context.
|
|
74
|
+
*
|
|
75
|
+
* Defaults to false. Prefer `allowTokenRequest` so trusted apps request a
|
|
76
|
+
* token only when they actually need one.
|
|
77
|
+
*/
|
|
78
|
+
exposeInHostContext?: boolean;
|
|
79
|
+
/** Allow the built-in lazy auth-token action. Defaults to false. */
|
|
80
|
+
allowTokenRequest?: boolean;
|
|
81
|
+
/** Built-in lazy token action name. Defaults to `getAuthToken`. */
|
|
82
|
+
tokenActionName?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Lazily resolve an OR user identity token for each host token-action request.
|
|
85
|
+
* Takes precedence over `orToken`; the bridge does not cache provider results.
|
|
86
|
+
* The provider and its result are never included in MCP host context.
|
|
87
|
+
*/
|
|
88
|
+
getOrToken?: IdwOrTokenProvider;
|
|
89
|
+
};
|
|
90
|
+
export type IdwHostContextBlock = {
|
|
91
|
+
/** IDW/project id used by app-side IDW API calls such as `validateAccess()`. */
|
|
92
|
+
idwId?: string;
|
|
93
|
+
surface?: IdwAppSurface;
|
|
94
|
+
appInstanceId?: string;
|
|
95
|
+
auth?: IdwAppAuthContext;
|
|
96
|
+
allowedActions?: string[];
|
|
97
|
+
};
|
|
98
|
+
/** Host application identity forwarded to the MCP app during initialization. */
|
|
99
|
+
export interface IdwHostInfo {
|
|
100
|
+
name: string;
|
|
101
|
+
version: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Runtime identity of the app instance.
|
|
105
|
+
*
|
|
106
|
+
* - `hostKey` identifies the durable app instance (one bridge / one iframe).
|
|
107
|
+
* - `artifactId` / `toolCallId` identify the *current* runtime tool call and can
|
|
108
|
+
* change over the bridge's lifetime without recreating it.
|
|
109
|
+
*/
|
|
110
|
+
export interface IdwRuntimeContext {
|
|
111
|
+
idwId?: string;
|
|
112
|
+
chatId?: string;
|
|
113
|
+
hostKey?: string;
|
|
114
|
+
surface?: IdwAppSurface;
|
|
115
|
+
appInstanceId?: string;
|
|
116
|
+
artifactId?: string;
|
|
117
|
+
toolCallId?: string;
|
|
118
|
+
}
|
|
119
|
+
/** Partial runtime update applied via {@link IdwAppBridge.updateRuntimeContext}. */
|
|
120
|
+
export interface IdwRuntimeUpdate {
|
|
121
|
+
artifactId?: string;
|
|
122
|
+
toolCallId?: string;
|
|
123
|
+
toolInput?: Record<string, unknown>;
|
|
124
|
+
toolResult?: ToolResultParams;
|
|
125
|
+
}
|
|
126
|
+
export interface CreateIdwAppBridgeOptions {
|
|
127
|
+
/** Target MCP app iframe. Must have a live `contentWindow` when {@link IdwAppBridge.connect} runs. */
|
|
128
|
+
iframe: HTMLIFrameElement;
|
|
129
|
+
/** IDW/project id exposed in MCP host context for app-side IDW API calls. */
|
|
130
|
+
idwId?: string;
|
|
131
|
+
chatId?: string;
|
|
132
|
+
/** Durable identity of the app instance (stable across tool calls). */
|
|
133
|
+
hostKey?: string;
|
|
134
|
+
/** Current runtime artifact id (used for app-initiated backend calls). */
|
|
135
|
+
artifactId?: string;
|
|
136
|
+
/** Current runtime tool call id. */
|
|
137
|
+
toolCallId?: string;
|
|
138
|
+
/** Durable widget/view state previously loaded by the caller; returned when the app requests IDW widget state. */
|
|
139
|
+
initialState?: unknown;
|
|
140
|
+
/** IDW surface hosting the app. */
|
|
141
|
+
surface?: IdwAppSurface;
|
|
142
|
+
/** Durable app instance id for state/action context. Defaults to `hostKey`. */
|
|
143
|
+
appInstanceId?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Optional IDW auth configuration.
|
|
146
|
+
*
|
|
147
|
+
* `orToken` is not sent in host context by default. Use
|
|
148
|
+
* `auth.getOrToken` with `auth.allowTokenRequest` for lazily generated token
|
|
149
|
+
* access, or
|
|
150
|
+
* `auth.exposeInHostContext` only for trusted legacy apps that need eager
|
|
151
|
+
* static-token injection. An async provider is never invoked for host context.
|
|
152
|
+
*/
|
|
153
|
+
auth?: IdwAppAuthOptions;
|
|
154
|
+
/** Optional allowlist for app-initiated IDW host actions, including the configured auth-token action. */
|
|
155
|
+
allowedActions?: string[];
|
|
156
|
+
/** Additional standard MCP Apps host context merged with the IDW context block. */
|
|
157
|
+
hostContext?: HostContext;
|
|
158
|
+
/** Extra standard MCP Apps host capabilities merged with the wrapper defaults. */
|
|
159
|
+
hostCapabilities?: HostCapabilities;
|
|
160
|
+
/** Modalities accepted by `ui/update-model-context` and `ui/message`. Defaults to text + structured content. */
|
|
161
|
+
contentModalities?: SupportedContentBlockModalities;
|
|
162
|
+
/** Host identity sent to the app. Defaults to a generic IDW host. */
|
|
163
|
+
hostInfo?: IdwHostInfo;
|
|
164
|
+
/**
|
|
165
|
+
* Called whenever widget/view state changes (app `setWidgetState` or host `setWidgetState`).
|
|
166
|
+
* May be async; iframe UI never blocks on persistence.
|
|
167
|
+
*/
|
|
168
|
+
onStateChange?: (state: unknown) => void | Promise<void>;
|
|
169
|
+
/** Handle an app-initiated IDW host/platform action. */
|
|
170
|
+
onIdwAction?: (params: IdwActionParams, context: IdwRuntimeContext) => IdwActionResult | Promise<IdwActionResult>;
|
|
171
|
+
/**
|
|
172
|
+
* Handle an app-initiated MCP tool call. Route through your backend's
|
|
173
|
+
* existing authorization checks. Receives the live runtime context.
|
|
174
|
+
*/
|
|
175
|
+
onCallTool?: (params: CallToolParams, context: IdwRuntimeContext) => CallToolResult | Promise<CallToolResult>;
|
|
176
|
+
/** Handle app-initiated MCP resource discovery. */
|
|
177
|
+
onListResources?: (params: ListResourcesParams, context: IdwRuntimeContext) => ListResourcesResult | Promise<ListResourcesResult>;
|
|
178
|
+
/** Handle app-initiated MCP resource-template discovery. */
|
|
179
|
+
onListResourceTemplates?: (params: ListResourceTemplatesParams, context: IdwRuntimeContext) => ListResourceTemplatesResult | Promise<ListResourceTemplatesResult>;
|
|
180
|
+
/** Handle app-initiated MCP prompt discovery. */
|
|
181
|
+
onListPrompts?: (params: ListPromptsParams, context: IdwRuntimeContext) => ListPromptsResult | Promise<ListPromptsResult>;
|
|
182
|
+
/** Handle an app-initiated MCP resource read. */
|
|
183
|
+
onReadResource?: (params: ReadResourceParams, context: IdwRuntimeContext) => ReadResourceResult | Promise<ReadResourceResult>;
|
|
184
|
+
/** Handle an app message request into the host chat surface. */
|
|
185
|
+
onMessage?: (params: MessageParams, context: IdwRuntimeContext) => MessageResult | Promise<MessageResult>;
|
|
186
|
+
/** Handle a host-mediated file download request. */
|
|
187
|
+
onDownloadFile?: (params: DownloadFileParams, context: IdwRuntimeContext) => DownloadFileResult | Promise<DownloadFileResult>;
|
|
188
|
+
/** Handle an app display-mode request. When omitted, the upstream bridge default is preserved. */
|
|
189
|
+
onRequestDisplayMode?: (params: RequestDisplayModeParams, context: IdwRuntimeContext) => RequestDisplayModeResult | Promise<RequestDisplayModeResult>;
|
|
190
|
+
/** Handle a fire-and-forget app teardown request. */
|
|
191
|
+
onRequestTeardown?: (params: RequestTeardownParams, context: IdwRuntimeContext) => void | Promise<void>;
|
|
192
|
+
/**
|
|
193
|
+
* Special-case handler for the `open_idw_app` tool (name configurable via
|
|
194
|
+
* {@link CreateIdwAppBridgeOptions.openIdwAppToolName}). When provided, it
|
|
195
|
+
* fully handles that tool (backend call + result); otherwise the tool falls
|
|
196
|
+
* back to {@link CreateIdwAppBridgeOptions.onCallTool}.
|
|
197
|
+
*
|
|
198
|
+
* @deprecated Legacy IDW migration hook. Prefer standard MCP tools.
|
|
199
|
+
*/
|
|
200
|
+
onOpenIdwApp?: (params: CallToolParams, context: IdwRuntimeContext) => CallToolResult | Promise<CallToolResult>;
|
|
201
|
+
/**
|
|
202
|
+
* Notified whenever the app updates model context. `text` contains flattened
|
|
203
|
+
* text blocks and is empty for structured-only updates; use `params` to
|
|
204
|
+
* preserve the complete standard MCP payload.
|
|
205
|
+
*/
|
|
206
|
+
onUpdateModelContext?: (text: string, params: UpdateModelContextParams, context: IdwRuntimeContext) => void | Promise<void>;
|
|
207
|
+
/** Override external-link handling. Default: open `http(s)` links in a new tab. */
|
|
208
|
+
onOpenLink?: (url: string) => void | Promise<void>;
|
|
209
|
+
/** Override log handling. Default: forward to `console` by level. */
|
|
210
|
+
onLog?: (params: LoggingParams) => void;
|
|
211
|
+
/** Override size-change handling. Default: set the iframe height. */
|
|
212
|
+
onSizeChange?: (params: SizeChangeParams) => void;
|
|
213
|
+
/**
|
|
214
|
+
* Tool name treated as "open IDW app". Default: `open_idw_app`.
|
|
215
|
+
* @deprecated Legacy IDW migration option. Prefer standard MCP tools.
|
|
216
|
+
*/
|
|
217
|
+
openIdwAppToolName?: string;
|
|
218
|
+
/**
|
|
219
|
+
* Resolve the `postMessage` target origin for the app iframe. Default: `'*'`
|
|
220
|
+
* for sandboxed opaque-origin iframes, otherwise the origin of `iframe.src`,
|
|
221
|
+
* falling back to `'*'` when it cannot be determined (e.g. srcdoc).
|
|
222
|
+
*/
|
|
223
|
+
resolveTargetOrigin?: (iframe: HTMLIFrameElement) => string;
|
|
224
|
+
/** Window that receives app messages. Default: the global `window`. */
|
|
225
|
+
hostWindow?: Window;
|
|
226
|
+
}
|
|
227
|
+
/** Host-side bridge returned by {@link createIdwAppBridge}. */
|
|
228
|
+
export interface IdwAppBridge {
|
|
229
|
+
/** True once the app has completed the MCP initialization handshake. */
|
|
230
|
+
readonly isReady: boolean;
|
|
231
|
+
/** Create the underlying MCP `AppBridge`, wire handlers, and connect the transport. */
|
|
232
|
+
connect(): Promise<void>;
|
|
233
|
+
/** Tear down the MCP bridge and the IDW state channel. Safe to call repeatedly. */
|
|
234
|
+
disconnect(): Promise<void>;
|
|
235
|
+
/**
|
|
236
|
+
* Update the current runtime tool call identity and optionally push the latest
|
|
237
|
+
* input/result. Does NOT recreate the bridge or reload the iframe.
|
|
238
|
+
*/
|
|
239
|
+
updateRuntimeContext(update: IdwRuntimeUpdate): Promise<void>;
|
|
240
|
+
/** Send complete tool input. Ignores stale `toolCallId` values if provided. */
|
|
241
|
+
sendToolInput(args: Record<string, unknown>, toolCallId?: string): Promise<void>;
|
|
242
|
+
/** Send a tool result. Ignores stale `toolCallId` values if provided. */
|
|
243
|
+
sendToolResult(result: ToolResultParams, toolCallId?: string): Promise<void>;
|
|
244
|
+
/** Discover standard MCP-style tools provided by the connected iframe app. */
|
|
245
|
+
listAppTools(params?: AppToolListParams, options?: AppToolListOptions): Promise<AppToolListResult>;
|
|
246
|
+
/** Call a standard MCP-style tool provided by the connected iframe app. */
|
|
247
|
+
callAppTool(params: AppToolCallParams, options?: AppToolCallOptions): Promise<AppToolCallResult>;
|
|
248
|
+
/** Capabilities declared by the app, or `undefined` before initialization. */
|
|
249
|
+
getAppCapabilities(): AppCapabilities | undefined;
|
|
250
|
+
/** Notify the app that the current tool call was cancelled. */
|
|
251
|
+
sendToolCancelled(reason?: string): Promise<void>;
|
|
252
|
+
/** Notify a standard MCP App that proxied server tool/resource/prompt lists changed. */
|
|
253
|
+
sendToolListChanged(params?: ToolListChangedParams): Promise<void>;
|
|
254
|
+
sendResourceListChanged(params?: ResourceListChangedParams): Promise<void>;
|
|
255
|
+
sendPromptListChanged(params?: PromptListChangedParams): Promise<void>;
|
|
256
|
+
/** Replace the standard MCP Apps host context, preserving the IDW block. */
|
|
257
|
+
setHostContext(context: HostContext): void;
|
|
258
|
+
/** Latest widget/view state known to the wrapper. */
|
|
259
|
+
getWidgetState(): unknown;
|
|
260
|
+
/** Replace the whole widget/view state object, notify the app, then persist via `onStateChange`. */
|
|
261
|
+
setWidgetState(state: unknown): void;
|
|
262
|
+
/** @deprecated Use {@link getWidgetState}. */
|
|
263
|
+
getState(): unknown;
|
|
264
|
+
/** @deprecated Use {@link setWidgetState}. */
|
|
265
|
+
setState(state: unknown): void;
|
|
266
|
+
}
|
|
267
|
+
export {};
|
|
268
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,oCAAoC,EACrC,MAAM,2CAA2C,CAAC;AAEnD;;;;GAIG;AACH,KAAK,cAAc,GAAG,WAAW,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC;AAC3D,KAAK,mBAAmB,GAAG,WAAW,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC,CAAC;AACrE,KAAK,2BAA2B,GAAG,WAAW,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC;AACrF,KAAK,iBAAiB,GAAG,WAAW,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC,CAAC;AACjE,KAAK,kBAAkB,GAAG,WAAW,CAAC,SAAS,CAAC,gBAAgB,CAAC,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AAO,CAAC;IAE1B,oGAAoG;IACpG,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAErC,8CAA8C;IAC9C,QAAQ,IAAI,OAAO,CAAC;IAEpB,8CAA8C;IAC9C,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAChC"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@onereach/idw-apps",
|
|
3
|
+
"version": "0.1.2-beta.6.0",
|
|
4
|
+
"description": "IDW adapter around @modelcontextprotocol/ext-apps plus iframe-facing state/actions for MCP Apps and embedded IDW web apps.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./app": {
|
|
13
|
+
"types": "./dist/app/index.d.ts",
|
|
14
|
+
"default": "./dist/app/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"module": "./dist/index.js",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"skills"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "pnpm clean && tsc -p tsconfig.json",
|
|
26
|
+
"build:watch": "tsc -p tsconfig.json -w",
|
|
27
|
+
"clean": "rm -rf ./dist",
|
|
28
|
+
"dev": "pnpm build:watch",
|
|
29
|
+
"test": "vitest --run",
|
|
30
|
+
"test:watch": "vitest --watch",
|
|
31
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@modelcontextprotocol/ext-apps": "1.5.0",
|
|
35
|
+
"@modelcontextprotocol/sdk": "1.29.0",
|
|
36
|
+
"zod": "3.25.76"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"typescript": "5.6.2"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
|
+
}
|
|
44
|
+
}
|