poe-code 8.0.0 → 9.0.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/cli/commands/harness.js +12 -3
- package/dist/cli/commands/harness.js.map +1 -1
- package/dist/index.js +1515 -712
- package/dist/index.js.map +4 -4
- package/dist/metafile.json +1 -1
- package/package.json +15 -2
- package/packages/safejs/dist/chunks/chunk-4YIDX44G.js +40 -0
- package/packages/safejs/dist/chunks/chunk-4YIDX44G.js.map +7 -0
- package/packages/safejs/dist/chunks/chunk-55ZK3CR7.js +7802 -0
- package/packages/safejs/dist/chunks/chunk-55ZK3CR7.js.map +7 -0
- package/packages/safejs/dist/chunks/chunk-GQBEEFVQ.js +28798 -0
- package/packages/safejs/dist/chunks/chunk-GQBEEFVQ.js.map +7 -0
- package/packages/safejs/dist/chunks/chunk-NI4WFFTL.js +5701 -0
- package/packages/safejs/dist/chunks/chunk-NI4WFFTL.js.map +7 -0
- package/packages/safejs/dist/chunks/inMemory-RLZ4QGDZ.js +48 -0
- package/packages/safejs/dist/chunks/inMemory-RLZ4QGDZ.js.map +7 -0
- package/packages/safejs/dist/chunks/server-3SNT3RE2.js +12518 -0
- package/packages/safejs/dist/chunks/server-3SNT3RE2.js.map +7 -0
- package/packages/safejs/dist/chunks/types-BTF37PZ6.js +348 -0
- package/packages/safejs/dist/chunks/types-BTF37PZ6.js.map +7 -0
- package/packages/safejs/dist/cli.d.ts +2 -0
- package/packages/safejs/dist/cli.js +550 -491
- package/packages/safejs/dist/cli.js.map +7 -0
- package/packages/safejs/dist/core.js +14 -4
- package/packages/safejs/dist/core.js.map +7 -0
- package/packages/safejs/dist/index.d.ts +3 -0
- package/packages/safejs/dist/index.js +791 -30
- package/packages/safejs/dist/index.js.map +7 -0
- package/packages/safejs/dist/interp/host-bridge.d.ts +2 -0
- package/packages/safejs/dist/interp/host-bridge.js +20 -9
- package/packages/safejs/dist/interp/host-call.d.ts +5 -0
- package/packages/safejs/dist/interp/host-call.js +48 -3
- package/packages/safejs/dist/interp/resources.d.ts +7 -0
- package/packages/safejs/dist/interp/resources.js +36 -0
- package/packages/safejs/dist/modules/mcp-transport.d.ts +26 -0
- package/packages/safejs/dist/modules/mcp-transport.js +259 -0
- package/packages/safejs/dist/modules/mcp.d.ts +15 -1
- package/packages/safejs/dist/modules/mcp.js +107 -0
- package/packages/safejs/dist/run.js +6 -3
- package/packages/safejs/dist/snapshot/dump-format.d.ts +1 -1
- package/packages/safejs/dist/snapshot/dump-format.js +1 -1
- package/packages/safejs/dist/snapshot/replay-data.d.ts +1 -0
- package/packages/safejs/dist/snapshot/replay-data.js +3 -1
- package/packages/safejs/dist/snapshot/replay-inputs.d.ts +2 -2
- package/packages/safejs/dist/snapshot/replay-inputs.js +2 -1
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AnnotationsSchema,
|
|
3
|
+
AudioContentSchema,
|
|
4
|
+
BaseMetadataSchema,
|
|
5
|
+
BlobResourceContentsSchema,
|
|
6
|
+
BooleanSchemaSchema,
|
|
7
|
+
CallToolRequestParamsSchema,
|
|
8
|
+
CallToolRequestSchema,
|
|
9
|
+
CallToolResultSchema,
|
|
10
|
+
CancelTaskRequestSchema,
|
|
11
|
+
CancelTaskResultSchema,
|
|
12
|
+
CancelledNotificationParamsSchema,
|
|
13
|
+
CancelledNotificationSchema,
|
|
14
|
+
ClientCapabilitiesSchema,
|
|
15
|
+
ClientNotificationSchema,
|
|
16
|
+
ClientRequestSchema,
|
|
17
|
+
ClientResultSchema,
|
|
18
|
+
ClientTasksCapabilitySchema,
|
|
19
|
+
CompatibilityCallToolResultSchema,
|
|
20
|
+
CompleteRequestParamsSchema,
|
|
21
|
+
CompleteRequestSchema,
|
|
22
|
+
CompleteResultSchema,
|
|
23
|
+
ContentBlockSchema,
|
|
24
|
+
CreateMessageRequestParamsSchema,
|
|
25
|
+
CreateMessageRequestSchema,
|
|
26
|
+
CreateMessageResultSchema,
|
|
27
|
+
CreateMessageResultWithToolsSchema,
|
|
28
|
+
CreateTaskResultSchema,
|
|
29
|
+
CursorSchema,
|
|
30
|
+
DEFAULT_NEGOTIATED_PROTOCOL_VERSION,
|
|
31
|
+
ElicitRequestFormParamsSchema,
|
|
32
|
+
ElicitRequestParamsSchema,
|
|
33
|
+
ElicitRequestSchema,
|
|
34
|
+
ElicitRequestURLParamsSchema,
|
|
35
|
+
ElicitResultSchema,
|
|
36
|
+
ElicitationCompleteNotificationParamsSchema,
|
|
37
|
+
ElicitationCompleteNotificationSchema,
|
|
38
|
+
EmbeddedResourceSchema,
|
|
39
|
+
EmptyResultSchema,
|
|
40
|
+
EnumSchemaSchema,
|
|
41
|
+
ErrorCode,
|
|
42
|
+
GetPromptRequestParamsSchema,
|
|
43
|
+
GetPromptRequestSchema,
|
|
44
|
+
GetPromptResultSchema,
|
|
45
|
+
GetTaskPayloadRequestSchema,
|
|
46
|
+
GetTaskPayloadResultSchema,
|
|
47
|
+
GetTaskRequestSchema,
|
|
48
|
+
GetTaskResultSchema,
|
|
49
|
+
IconSchema,
|
|
50
|
+
IconsSchema,
|
|
51
|
+
ImageContentSchema,
|
|
52
|
+
ImplementationSchema,
|
|
53
|
+
InitializeRequestParamsSchema,
|
|
54
|
+
InitializeRequestSchema,
|
|
55
|
+
InitializeResultSchema,
|
|
56
|
+
InitializedNotificationSchema,
|
|
57
|
+
JSONRPCErrorResponseSchema,
|
|
58
|
+
JSONRPCErrorSchema,
|
|
59
|
+
JSONRPCMessageSchema,
|
|
60
|
+
JSONRPCNotificationSchema,
|
|
61
|
+
JSONRPCRequestSchema,
|
|
62
|
+
JSONRPCResponseSchema,
|
|
63
|
+
JSONRPCResultResponseSchema,
|
|
64
|
+
JSONRPC_VERSION,
|
|
65
|
+
LATEST_PROTOCOL_VERSION,
|
|
66
|
+
LegacyTitledEnumSchemaSchema,
|
|
67
|
+
ListChangedOptionsBaseSchema,
|
|
68
|
+
ListPromptsRequestSchema,
|
|
69
|
+
ListPromptsResultSchema,
|
|
70
|
+
ListResourceTemplatesRequestSchema,
|
|
71
|
+
ListResourceTemplatesResultSchema,
|
|
72
|
+
ListResourcesRequestSchema,
|
|
73
|
+
ListResourcesResultSchema,
|
|
74
|
+
ListRootsRequestSchema,
|
|
75
|
+
ListRootsResultSchema,
|
|
76
|
+
ListTasksRequestSchema,
|
|
77
|
+
ListTasksResultSchema,
|
|
78
|
+
ListToolsRequestSchema,
|
|
79
|
+
ListToolsResultSchema,
|
|
80
|
+
LoggingLevelSchema,
|
|
81
|
+
LoggingMessageNotificationParamsSchema,
|
|
82
|
+
LoggingMessageNotificationSchema,
|
|
83
|
+
McpError,
|
|
84
|
+
ModelHintSchema,
|
|
85
|
+
ModelPreferencesSchema,
|
|
86
|
+
MultiSelectEnumSchemaSchema,
|
|
87
|
+
NotificationSchema,
|
|
88
|
+
NumberSchemaSchema,
|
|
89
|
+
PaginatedRequestParamsSchema,
|
|
90
|
+
PaginatedRequestSchema,
|
|
91
|
+
PaginatedResultSchema,
|
|
92
|
+
PingRequestSchema,
|
|
93
|
+
PrimitiveSchemaDefinitionSchema,
|
|
94
|
+
ProgressNotificationParamsSchema,
|
|
95
|
+
ProgressNotificationSchema,
|
|
96
|
+
ProgressSchema,
|
|
97
|
+
ProgressTokenSchema,
|
|
98
|
+
PromptArgumentSchema,
|
|
99
|
+
PromptListChangedNotificationSchema,
|
|
100
|
+
PromptMessageSchema,
|
|
101
|
+
PromptReferenceSchema,
|
|
102
|
+
PromptSchema,
|
|
103
|
+
RELATED_TASK_META_KEY,
|
|
104
|
+
ReadResourceRequestParamsSchema,
|
|
105
|
+
ReadResourceRequestSchema,
|
|
106
|
+
ReadResourceResultSchema,
|
|
107
|
+
RelatedTaskMetadataSchema,
|
|
108
|
+
RequestIdSchema,
|
|
109
|
+
RequestSchema,
|
|
110
|
+
ResourceContentsSchema,
|
|
111
|
+
ResourceLinkSchema,
|
|
112
|
+
ResourceListChangedNotificationSchema,
|
|
113
|
+
ResourceReferenceSchema,
|
|
114
|
+
ResourceRequestParamsSchema,
|
|
115
|
+
ResourceSchema,
|
|
116
|
+
ResourceTemplateReferenceSchema,
|
|
117
|
+
ResourceTemplateSchema,
|
|
118
|
+
ResourceUpdatedNotificationParamsSchema,
|
|
119
|
+
ResourceUpdatedNotificationSchema,
|
|
120
|
+
ResultSchema,
|
|
121
|
+
RoleSchema,
|
|
122
|
+
RootSchema,
|
|
123
|
+
RootsListChangedNotificationSchema,
|
|
124
|
+
SUPPORTED_PROTOCOL_VERSIONS,
|
|
125
|
+
SamplingContentSchema,
|
|
126
|
+
SamplingMessageContentBlockSchema,
|
|
127
|
+
SamplingMessageSchema,
|
|
128
|
+
ServerCapabilitiesSchema,
|
|
129
|
+
ServerNotificationSchema,
|
|
130
|
+
ServerRequestSchema,
|
|
131
|
+
ServerResultSchema,
|
|
132
|
+
ServerTasksCapabilitySchema,
|
|
133
|
+
SetLevelRequestParamsSchema,
|
|
134
|
+
SetLevelRequestSchema,
|
|
135
|
+
SingleSelectEnumSchemaSchema,
|
|
136
|
+
StringSchemaSchema,
|
|
137
|
+
SubscribeRequestParamsSchema,
|
|
138
|
+
SubscribeRequestSchema,
|
|
139
|
+
TaskAugmentedRequestParamsSchema,
|
|
140
|
+
TaskCreationParamsSchema,
|
|
141
|
+
TaskMetadataSchema,
|
|
142
|
+
TaskSchema,
|
|
143
|
+
TaskStatusNotificationParamsSchema,
|
|
144
|
+
TaskStatusNotificationSchema,
|
|
145
|
+
TaskStatusSchema,
|
|
146
|
+
TextContentSchema,
|
|
147
|
+
TextResourceContentsSchema,
|
|
148
|
+
TitledMultiSelectEnumSchemaSchema,
|
|
149
|
+
TitledSingleSelectEnumSchemaSchema,
|
|
150
|
+
ToolAnnotationsSchema,
|
|
151
|
+
ToolChoiceSchema,
|
|
152
|
+
ToolExecutionSchema,
|
|
153
|
+
ToolListChangedNotificationSchema,
|
|
154
|
+
ToolResultContentSchema,
|
|
155
|
+
ToolSchema,
|
|
156
|
+
ToolUseContentSchema,
|
|
157
|
+
UnsubscribeRequestParamsSchema,
|
|
158
|
+
UnsubscribeRequestSchema,
|
|
159
|
+
UntitledMultiSelectEnumSchemaSchema,
|
|
160
|
+
UntitledSingleSelectEnumSchemaSchema,
|
|
161
|
+
UrlElicitationRequiredError,
|
|
162
|
+
assertCompleteRequestPrompt,
|
|
163
|
+
assertCompleteRequestResourceTemplate,
|
|
164
|
+
isInitializeRequest,
|
|
165
|
+
isInitializedNotification,
|
|
166
|
+
isJSONRPCError,
|
|
167
|
+
isJSONRPCErrorResponse,
|
|
168
|
+
isJSONRPCNotification,
|
|
169
|
+
isJSONRPCRequest,
|
|
170
|
+
isJSONRPCResponse,
|
|
171
|
+
isJSONRPCResultResponse,
|
|
172
|
+
isTaskAugmentedRequestParams
|
|
173
|
+
} from "./chunk-NI4WFFTL.js";
|
|
174
|
+
import "./chunk-4YIDX44G.js";
|
|
175
|
+
export {
|
|
176
|
+
AnnotationsSchema,
|
|
177
|
+
AudioContentSchema,
|
|
178
|
+
BaseMetadataSchema,
|
|
179
|
+
BlobResourceContentsSchema,
|
|
180
|
+
BooleanSchemaSchema,
|
|
181
|
+
CallToolRequestParamsSchema,
|
|
182
|
+
CallToolRequestSchema,
|
|
183
|
+
CallToolResultSchema,
|
|
184
|
+
CancelTaskRequestSchema,
|
|
185
|
+
CancelTaskResultSchema,
|
|
186
|
+
CancelledNotificationParamsSchema,
|
|
187
|
+
CancelledNotificationSchema,
|
|
188
|
+
ClientCapabilitiesSchema,
|
|
189
|
+
ClientNotificationSchema,
|
|
190
|
+
ClientRequestSchema,
|
|
191
|
+
ClientResultSchema,
|
|
192
|
+
ClientTasksCapabilitySchema,
|
|
193
|
+
CompatibilityCallToolResultSchema,
|
|
194
|
+
CompleteRequestParamsSchema,
|
|
195
|
+
CompleteRequestSchema,
|
|
196
|
+
CompleteResultSchema,
|
|
197
|
+
ContentBlockSchema,
|
|
198
|
+
CreateMessageRequestParamsSchema,
|
|
199
|
+
CreateMessageRequestSchema,
|
|
200
|
+
CreateMessageResultSchema,
|
|
201
|
+
CreateMessageResultWithToolsSchema,
|
|
202
|
+
CreateTaskResultSchema,
|
|
203
|
+
CursorSchema,
|
|
204
|
+
DEFAULT_NEGOTIATED_PROTOCOL_VERSION,
|
|
205
|
+
ElicitRequestFormParamsSchema,
|
|
206
|
+
ElicitRequestParamsSchema,
|
|
207
|
+
ElicitRequestSchema,
|
|
208
|
+
ElicitRequestURLParamsSchema,
|
|
209
|
+
ElicitResultSchema,
|
|
210
|
+
ElicitationCompleteNotificationParamsSchema,
|
|
211
|
+
ElicitationCompleteNotificationSchema,
|
|
212
|
+
EmbeddedResourceSchema,
|
|
213
|
+
EmptyResultSchema,
|
|
214
|
+
EnumSchemaSchema,
|
|
215
|
+
ErrorCode,
|
|
216
|
+
GetPromptRequestParamsSchema,
|
|
217
|
+
GetPromptRequestSchema,
|
|
218
|
+
GetPromptResultSchema,
|
|
219
|
+
GetTaskPayloadRequestSchema,
|
|
220
|
+
GetTaskPayloadResultSchema,
|
|
221
|
+
GetTaskRequestSchema,
|
|
222
|
+
GetTaskResultSchema,
|
|
223
|
+
IconSchema,
|
|
224
|
+
IconsSchema,
|
|
225
|
+
ImageContentSchema,
|
|
226
|
+
ImplementationSchema,
|
|
227
|
+
InitializeRequestParamsSchema,
|
|
228
|
+
InitializeRequestSchema,
|
|
229
|
+
InitializeResultSchema,
|
|
230
|
+
InitializedNotificationSchema,
|
|
231
|
+
JSONRPCErrorResponseSchema,
|
|
232
|
+
JSONRPCErrorSchema,
|
|
233
|
+
JSONRPCMessageSchema,
|
|
234
|
+
JSONRPCNotificationSchema,
|
|
235
|
+
JSONRPCRequestSchema,
|
|
236
|
+
JSONRPCResponseSchema,
|
|
237
|
+
JSONRPCResultResponseSchema,
|
|
238
|
+
JSONRPC_VERSION,
|
|
239
|
+
LATEST_PROTOCOL_VERSION,
|
|
240
|
+
LegacyTitledEnumSchemaSchema,
|
|
241
|
+
ListChangedOptionsBaseSchema,
|
|
242
|
+
ListPromptsRequestSchema,
|
|
243
|
+
ListPromptsResultSchema,
|
|
244
|
+
ListResourceTemplatesRequestSchema,
|
|
245
|
+
ListResourceTemplatesResultSchema,
|
|
246
|
+
ListResourcesRequestSchema,
|
|
247
|
+
ListResourcesResultSchema,
|
|
248
|
+
ListRootsRequestSchema,
|
|
249
|
+
ListRootsResultSchema,
|
|
250
|
+
ListTasksRequestSchema,
|
|
251
|
+
ListTasksResultSchema,
|
|
252
|
+
ListToolsRequestSchema,
|
|
253
|
+
ListToolsResultSchema,
|
|
254
|
+
LoggingLevelSchema,
|
|
255
|
+
LoggingMessageNotificationParamsSchema,
|
|
256
|
+
LoggingMessageNotificationSchema,
|
|
257
|
+
McpError,
|
|
258
|
+
ModelHintSchema,
|
|
259
|
+
ModelPreferencesSchema,
|
|
260
|
+
MultiSelectEnumSchemaSchema,
|
|
261
|
+
NotificationSchema,
|
|
262
|
+
NumberSchemaSchema,
|
|
263
|
+
PaginatedRequestParamsSchema,
|
|
264
|
+
PaginatedRequestSchema,
|
|
265
|
+
PaginatedResultSchema,
|
|
266
|
+
PingRequestSchema,
|
|
267
|
+
PrimitiveSchemaDefinitionSchema,
|
|
268
|
+
ProgressNotificationParamsSchema,
|
|
269
|
+
ProgressNotificationSchema,
|
|
270
|
+
ProgressSchema,
|
|
271
|
+
ProgressTokenSchema,
|
|
272
|
+
PromptArgumentSchema,
|
|
273
|
+
PromptListChangedNotificationSchema,
|
|
274
|
+
PromptMessageSchema,
|
|
275
|
+
PromptReferenceSchema,
|
|
276
|
+
PromptSchema,
|
|
277
|
+
RELATED_TASK_META_KEY,
|
|
278
|
+
ReadResourceRequestParamsSchema,
|
|
279
|
+
ReadResourceRequestSchema,
|
|
280
|
+
ReadResourceResultSchema,
|
|
281
|
+
RelatedTaskMetadataSchema,
|
|
282
|
+
RequestIdSchema,
|
|
283
|
+
RequestSchema,
|
|
284
|
+
ResourceContentsSchema,
|
|
285
|
+
ResourceLinkSchema,
|
|
286
|
+
ResourceListChangedNotificationSchema,
|
|
287
|
+
ResourceReferenceSchema,
|
|
288
|
+
ResourceRequestParamsSchema,
|
|
289
|
+
ResourceSchema,
|
|
290
|
+
ResourceTemplateReferenceSchema,
|
|
291
|
+
ResourceTemplateSchema,
|
|
292
|
+
ResourceUpdatedNotificationParamsSchema,
|
|
293
|
+
ResourceUpdatedNotificationSchema,
|
|
294
|
+
ResultSchema,
|
|
295
|
+
RoleSchema,
|
|
296
|
+
RootSchema,
|
|
297
|
+
RootsListChangedNotificationSchema,
|
|
298
|
+
SUPPORTED_PROTOCOL_VERSIONS,
|
|
299
|
+
SamplingContentSchema,
|
|
300
|
+
SamplingMessageContentBlockSchema,
|
|
301
|
+
SamplingMessageSchema,
|
|
302
|
+
ServerCapabilitiesSchema,
|
|
303
|
+
ServerNotificationSchema,
|
|
304
|
+
ServerRequestSchema,
|
|
305
|
+
ServerResultSchema,
|
|
306
|
+
ServerTasksCapabilitySchema,
|
|
307
|
+
SetLevelRequestParamsSchema,
|
|
308
|
+
SetLevelRequestSchema,
|
|
309
|
+
SingleSelectEnumSchemaSchema,
|
|
310
|
+
StringSchemaSchema,
|
|
311
|
+
SubscribeRequestParamsSchema,
|
|
312
|
+
SubscribeRequestSchema,
|
|
313
|
+
TaskAugmentedRequestParamsSchema,
|
|
314
|
+
TaskCreationParamsSchema,
|
|
315
|
+
TaskMetadataSchema,
|
|
316
|
+
TaskSchema,
|
|
317
|
+
TaskStatusNotificationParamsSchema,
|
|
318
|
+
TaskStatusNotificationSchema,
|
|
319
|
+
TaskStatusSchema,
|
|
320
|
+
TextContentSchema,
|
|
321
|
+
TextResourceContentsSchema,
|
|
322
|
+
TitledMultiSelectEnumSchemaSchema,
|
|
323
|
+
TitledSingleSelectEnumSchemaSchema,
|
|
324
|
+
ToolAnnotationsSchema,
|
|
325
|
+
ToolChoiceSchema,
|
|
326
|
+
ToolExecutionSchema,
|
|
327
|
+
ToolListChangedNotificationSchema,
|
|
328
|
+
ToolResultContentSchema,
|
|
329
|
+
ToolSchema,
|
|
330
|
+
ToolUseContentSchema,
|
|
331
|
+
UnsubscribeRequestParamsSchema,
|
|
332
|
+
UnsubscribeRequestSchema,
|
|
333
|
+
UntitledMultiSelectEnumSchemaSchema,
|
|
334
|
+
UntitledSingleSelectEnumSchemaSchema,
|
|
335
|
+
UrlElicitationRequiredError,
|
|
336
|
+
assertCompleteRequestPrompt,
|
|
337
|
+
assertCompleteRequestResourceTemplate,
|
|
338
|
+
isInitializeRequest,
|
|
339
|
+
isInitializedNotification,
|
|
340
|
+
isJSONRPCError,
|
|
341
|
+
isJSONRPCErrorResponse,
|
|
342
|
+
isJSONRPCNotification,
|
|
343
|
+
isJSONRPCRequest,
|
|
344
|
+
isJSONRPCResponse,
|
|
345
|
+
isJSONRPCResultResponse,
|
|
346
|
+
isTaskAugmentedRequestParams
|
|
347
|
+
};
|
|
348
|
+
//# sourceMappingURL=types-BTF37PZ6.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { type McpModuleOptions } from "./modules/mcp-transport.js";
|
|
2
3
|
import { type OutputStream } from "./output-stream.js";
|
|
3
4
|
import type { ModuleRegistry } from "./modules/registry.js";
|
|
4
5
|
type CliStream = OutputStream;
|
|
@@ -12,6 +13,7 @@ export type WriteMarkdownFile = (filepath: string, source: string, options: {
|
|
|
12
13
|
}) => Promise<void>;
|
|
13
14
|
export type RunCliOptions = {
|
|
14
15
|
cwd?: string;
|
|
16
|
+
mcp?: McpModuleOptions;
|
|
15
17
|
modulesFor?: (frontmatter: Record<string, unknown>, meta: HarnessMeta, streams: {
|
|
16
18
|
stderr: CliStream;
|
|
17
19
|
stdout: CliStream;
|