@factory/droid-sdk 0.9.1 → 0.11.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 +53 -0
- package/dist/api.d.mts +15058 -0
- package/dist/api.d.ts +15058 -0
- package/dist/api.js +253 -0
- package/dist/api.js.map +1 -0
- package/dist/api.mjs +253 -0
- package/dist/api.mjs.map +1 -0
- package/dist/chunk-7ZD7MMNA.mjs +2268 -0
- package/dist/chunk-7ZD7MMNA.mjs.map +1 -0
- package/dist/{chunk-YSKO6SPT.js → chunk-KAAWCHO4.js} +32033 -17088
- package/dist/chunk-KAAWCHO4.js.map +1 -0
- package/dist/chunk-NWFX4MPJ.mjs +41630 -0
- package/dist/chunk-NWFX4MPJ.mjs.map +1 -0
- package/dist/chunk-ZQ7TS73S.js +2268 -0
- package/dist/chunk-ZQ7TS73S.js.map +1 -0
- package/dist/{index-C06W9tbN.d.mts → index-Cf2WtJqJ.d.mts} +134169 -84330
- package/dist/{index-C06W9tbN.d.ts → index-Cf2WtJqJ.d.ts} +134169 -84330
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +91 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +99 -10
- package/dist/node.d.mts +223 -43
- package/dist/node.d.ts +223 -43
- package/dist/node.js +2033 -776
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +1756 -499
- package/dist/node.mjs.map +1 -1
- package/examples/browser/daemon-lifecycle.ts +4 -6
- package/examples/node/custom-model-editing-disposable.sh +88 -0
- package/examples/node/custom-model-editing-disposable.ts +171 -0
- package/examples/node/custom-model-editing.ts +55 -0
- package/examples/node/hook-execution.ts +3 -2
- package/examples/node/rest-api.ts +55 -0
- package/examples/node/sdk-mcp-tool.ts +5 -3
- package/examples/node/start-workstream.ts +76 -0
- package/examples/node/tool-controls.ts +7 -5
- package/package.json +14 -3
- package/dist/chunk-TWSTJMV7.mjs +0 -26685
- package/dist/chunk-TWSTJMV7.mjs.map +0 -1
- package/dist/chunk-YSKO6SPT.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
AddUserMessageRequestSchema,
|
|
9
9
|
AddUserMessageResponseSchema,
|
|
10
10
|
AddUserMessageResultSchema,
|
|
11
|
+
AnswerSessionElicitationResponseSchema,
|
|
11
12
|
ApplyPatchToolConfirmationDetailsSchema,
|
|
12
13
|
AskUserCollectedAnswerSchema,
|
|
13
14
|
AskUserConfirmationDetailsSchema,
|
|
@@ -66,6 +67,7 @@ import {
|
|
|
66
67
|
ConnectionClosedError,
|
|
67
68
|
ConnectionFailureReason,
|
|
68
69
|
ContentBlockSchema,
|
|
70
|
+
ContextApiError,
|
|
69
71
|
ContextBreakdownCategorySchema,
|
|
70
72
|
ContextStatsAccuracy,
|
|
71
73
|
ContextStatsSchema,
|
|
@@ -98,9 +100,12 @@ import {
|
|
|
98
100
|
DroidWorkingStateChangedNotificationSchema,
|
|
99
101
|
EditToolConfirmationDetailsSchema,
|
|
100
102
|
EmptyResultSchema,
|
|
103
|
+
EnvironmentListResponseSchema,
|
|
104
|
+
EnvironmentSchema,
|
|
101
105
|
ErrorDetailSchema,
|
|
102
106
|
ErrorNotificationSchema,
|
|
103
107
|
ExecToolInfoSchema,
|
|
108
|
+
ExecToolInfoWithSchemasSchema,
|
|
104
109
|
ExecuteRewindRequestParamsSchema,
|
|
105
110
|
ExecuteRewindRequestSchema,
|
|
106
111
|
ExecuteRewindResponseSchema,
|
|
@@ -109,7 +114,7 @@ import {
|
|
|
109
114
|
ExitSpecModeConfirmationDetailsSchema,
|
|
110
115
|
FACTORY_CLIENT_HEADER,
|
|
111
116
|
FACTORY_CLIENT_VERSION,
|
|
112
|
-
|
|
117
|
+
FACTORY_PROTOCOL_VERSION,
|
|
113
118
|
FactoryDaemonTransport,
|
|
114
119
|
FactoryDroidMessageRole,
|
|
115
120
|
FactoryDroidMessageSchema,
|
|
@@ -148,7 +153,7 @@ import {
|
|
|
148
153
|
InterruptSessionResponseSchema,
|
|
149
154
|
InterruptSessionResultSchema,
|
|
150
155
|
IssueSeverity,
|
|
151
|
-
|
|
156
|
+
JSONRPC_VERSION,
|
|
152
157
|
JsonArraySchema,
|
|
153
158
|
JsonObjectSchema,
|
|
154
159
|
JsonRpcEnvelopeSchema,
|
|
@@ -167,7 +172,7 @@ import {
|
|
|
167
172
|
KillWorkerSessionRequestSchema,
|
|
168
173
|
KillWorkerSessionResponseSchema,
|
|
169
174
|
KillWorkerSessionResultSchema,
|
|
170
|
-
|
|
175
|
+
LEGACY_FACTORY_API_VERSION,
|
|
171
176
|
LOCAL_MACHINE_ID,
|
|
172
177
|
ListMcpRegistryRequestParamsSchema,
|
|
173
178
|
ListMcpRegistryRequestSchema,
|
|
@@ -183,6 +188,7 @@ import {
|
|
|
183
188
|
ListMcpToolsResultSchema,
|
|
184
189
|
ListModelsOptionsSchema,
|
|
185
190
|
ListModelsResultSchema,
|
|
191
|
+
ListSessionElicitationsResponseSchema,
|
|
186
192
|
ListSkillsRequestParamsSchema,
|
|
187
193
|
ListSkillsRequestSchema,
|
|
188
194
|
ListSkillsResponseSchema,
|
|
@@ -190,7 +196,9 @@ import {
|
|
|
190
196
|
ListToolsRequestParamsSchema,
|
|
191
197
|
ListToolsRequestSchema,
|
|
192
198
|
ListToolsResponseSchema,
|
|
199
|
+
ListToolsResponseWithSchemasSchema,
|
|
193
200
|
ListToolsResultSchema,
|
|
201
|
+
ListToolsResultWithSchemasSchema,
|
|
194
202
|
LoadSessionRequestParamsSchema,
|
|
195
203
|
LoadSessionRequestSchema,
|
|
196
204
|
LoadSessionResponseSchema,
|
|
@@ -227,6 +235,7 @@ import {
|
|
|
227
235
|
MissionFeatureSchema,
|
|
228
236
|
MissionFeaturesChangedNotificationSchema,
|
|
229
237
|
MissionHeartbeatNotificationSchema,
|
|
238
|
+
MissionMachineTargetKind,
|
|
230
239
|
MissionPausedEntrySchema,
|
|
231
240
|
MissionProgressEntryNotificationSchema,
|
|
232
241
|
MissionResumedEntrySchema,
|
|
@@ -245,6 +254,11 @@ import {
|
|
|
245
254
|
OutputFormatSchema,
|
|
246
255
|
OutputFormatType,
|
|
247
256
|
PermissionResolvedNotificationSchema,
|
|
257
|
+
PickOptionsRequestParamsSchema,
|
|
258
|
+
PickOptionsRequestSchema,
|
|
259
|
+
PickOptionsResponseSchema,
|
|
260
|
+
PickOptionsResultSchema,
|
|
261
|
+
PickOptionsRowSchema,
|
|
248
262
|
ProgressLogEntrySchema,
|
|
249
263
|
ProgressLogEntryType,
|
|
250
264
|
ProposeMissionConfirmationDetailsSchema,
|
|
@@ -277,6 +291,13 @@ import {
|
|
|
277
291
|
SESSION_INIT_TIMEOUT,
|
|
278
292
|
SLACK_DELEGATION_MAX_RETRIES,
|
|
279
293
|
ServerRequestHandlerType,
|
|
294
|
+
SessionArtifactAction,
|
|
295
|
+
SessionArtifactKind,
|
|
296
|
+
SessionArtifactProvider,
|
|
297
|
+
SessionArtifactSchema,
|
|
298
|
+
SessionArtifactSource,
|
|
299
|
+
SessionArtifactsSchema,
|
|
300
|
+
SessionElicitationSchema,
|
|
280
301
|
SessionMetadataSchema,
|
|
281
302
|
SessionNotificationParamsSchema,
|
|
282
303
|
SessionNotificationPayloadSchema,
|
|
@@ -345,11 +366,15 @@ import {
|
|
|
345
366
|
ToolConfirmationListItemSchema,
|
|
346
367
|
ToolConfirmationOutcome,
|
|
347
368
|
ToolConfirmationType,
|
|
369
|
+
ToolJsonSchemaSchema,
|
|
348
370
|
ToolProgressUpdateNotificationSchema,
|
|
349
371
|
ToolProgressUpdateSchema,
|
|
350
372
|
ToolResultNotificationSchema,
|
|
351
373
|
ToolResultSchema,
|
|
374
|
+
ToolResultSchemaDescriptorSchema,
|
|
375
|
+
ToolSchemasSchema,
|
|
352
376
|
ToolSelectionOverridesSchema,
|
|
377
|
+
ToolSourceSchema,
|
|
353
378
|
ToolUseSchema,
|
|
354
379
|
ToolUseSchema2,
|
|
355
380
|
TraceContextMetaSchema,
|
|
@@ -368,6 +393,8 @@ import {
|
|
|
368
393
|
WorkerSelectedFeatureEntrySchema,
|
|
369
394
|
WorkerStartedEntrySchema,
|
|
370
395
|
WorkerStateInfoSchema,
|
|
396
|
+
answerRemoteSessionElicitation,
|
|
397
|
+
appendContextSession,
|
|
371
398
|
buildUserMessageContentBlocks,
|
|
372
399
|
configureDaemonCoreDeps,
|
|
373
400
|
connectAndAuthenticate,
|
|
@@ -375,14 +402,23 @@ import {
|
|
|
375
402
|
connectWithRetry,
|
|
376
403
|
convertNotificationToStreamMessage,
|
|
377
404
|
createComputer,
|
|
405
|
+
createContextDocument,
|
|
406
|
+
createContextFile,
|
|
407
|
+
createContextSpace,
|
|
378
408
|
createResponseSchema,
|
|
379
409
|
createWebSocketDaemonClient,
|
|
380
410
|
defaultDaemonCoreDeps,
|
|
381
411
|
deleteComputer,
|
|
412
|
+
deleteContextDocument,
|
|
413
|
+
deleteContextFile,
|
|
382
414
|
filterMessagesForUI,
|
|
383
415
|
getComputer,
|
|
384
416
|
getComputerByName,
|
|
385
417
|
getComputerMetrics,
|
|
418
|
+
getContextDocument,
|
|
419
|
+
getContextDocumentByPath,
|
|
420
|
+
getContextSession,
|
|
421
|
+
getContextSpace,
|
|
386
422
|
getMachineTemplate,
|
|
387
423
|
getPermissionToolInputForDisplay,
|
|
388
424
|
getQueuedUserMessageDisplayGroup,
|
|
@@ -398,21 +434,30 @@ import {
|
|
|
398
434
|
isPersistedHookMessage,
|
|
399
435
|
isReviewableQueuedMessageKind,
|
|
400
436
|
listComputers,
|
|
437
|
+
listContextDocuments,
|
|
438
|
+
listContextSessions,
|
|
439
|
+
listContextSpaces,
|
|
440
|
+
listEnvironments,
|
|
401
441
|
listMachineTemplates,
|
|
442
|
+
listRemoteSessionElicitations,
|
|
402
443
|
listRemoteSessions,
|
|
403
444
|
machineTypeToMachineConnectionType,
|
|
404
|
-
|
|
445
|
+
readContextFilePart,
|
|
446
|
+
readContextSessionRecords,
|
|
405
447
|
recordComputerConnectSli,
|
|
406
448
|
refreshComputer,
|
|
407
|
-
|
|
449
|
+
registerContextSession,
|
|
408
450
|
restartComputer,
|
|
409
451
|
retryInstallDeps,
|
|
410
452
|
retryWithLogger,
|
|
411
453
|
sumTokenUsage,
|
|
412
454
|
summarizeSessionToolUsage,
|
|
413
455
|
toError,
|
|
414
|
-
updateComputer
|
|
415
|
-
|
|
456
|
+
updateComputer,
|
|
457
|
+
updateContextDocument,
|
|
458
|
+
uploadContextFilePart
|
|
459
|
+
} from "./chunk-NWFX4MPJ.mjs";
|
|
460
|
+
import "./chunk-7ZD7MMNA.mjs";
|
|
416
461
|
export {
|
|
417
462
|
AbortError,
|
|
418
463
|
AddMcpServerRequestParamsSchema,
|
|
@@ -423,6 +468,7 @@ export {
|
|
|
423
468
|
AddUserMessageRequestSchema,
|
|
424
469
|
AddUserMessageResponseSchema,
|
|
425
470
|
AddUserMessageResultSchema,
|
|
471
|
+
AnswerSessionElicitationResponseSchema,
|
|
426
472
|
ApplyPatchToolConfirmationDetailsSchema,
|
|
427
473
|
AskUserCollectedAnswerSchema,
|
|
428
474
|
AskUserConfirmationDetailsSchema,
|
|
@@ -481,6 +527,7 @@ export {
|
|
|
481
527
|
ConnectionClosedError,
|
|
482
528
|
ConnectionFailureReason,
|
|
483
529
|
ContentBlockSchema,
|
|
530
|
+
ContextApiError,
|
|
484
531
|
ContextBreakdownCategorySchema,
|
|
485
532
|
GetContextBreakdownResultSchema as ContextBreakdownResultSchema,
|
|
486
533
|
ContextStatsAccuracy,
|
|
@@ -515,9 +562,12 @@ export {
|
|
|
515
562
|
DroidWorkingStateChangedNotificationSchema,
|
|
516
563
|
EditToolConfirmationDetailsSchema,
|
|
517
564
|
EmptyResultSchema,
|
|
565
|
+
EnvironmentListResponseSchema,
|
|
566
|
+
EnvironmentSchema,
|
|
518
567
|
ErrorDetailSchema,
|
|
519
568
|
ErrorNotificationSchema,
|
|
520
569
|
ExecToolInfoSchema,
|
|
570
|
+
ExecToolInfoWithSchemasSchema,
|
|
521
571
|
ExecuteRewindRequestParamsSchema,
|
|
522
572
|
ExecuteRewindRequestSchema,
|
|
523
573
|
ExecuteRewindResponseSchema,
|
|
@@ -600,6 +650,7 @@ export {
|
|
|
600
650
|
ListMcpToolsResultSchema,
|
|
601
651
|
ListModelsOptionsSchema,
|
|
602
652
|
ListModelsResultSchema,
|
|
653
|
+
ListSessionElicitationsResponseSchema,
|
|
603
654
|
ListSkillsRequestParamsSchema,
|
|
604
655
|
ListSkillsRequestSchema,
|
|
605
656
|
ListSkillsResponseSchema,
|
|
@@ -607,7 +658,9 @@ export {
|
|
|
607
658
|
ListToolsRequestParamsSchema,
|
|
608
659
|
ListToolsRequestSchema,
|
|
609
660
|
ListToolsResponseSchema,
|
|
661
|
+
ListToolsResponseWithSchemasSchema,
|
|
610
662
|
ListToolsResultSchema,
|
|
663
|
+
ListToolsResultWithSchemasSchema,
|
|
611
664
|
LoadSessionRequestParamsSchema,
|
|
612
665
|
LoadSessionRequestSchema,
|
|
613
666
|
LoadSessionResponseSchema,
|
|
@@ -661,6 +714,11 @@ export {
|
|
|
661
714
|
OutputFormatSchema,
|
|
662
715
|
OutputFormatType,
|
|
663
716
|
PermissionResolvedNotificationSchema,
|
|
717
|
+
PickOptionsRequestParamsSchema,
|
|
718
|
+
PickOptionsRequestSchema,
|
|
719
|
+
PickOptionsResponseSchema,
|
|
720
|
+
PickOptionsResultSchema,
|
|
721
|
+
PickOptionsRowSchema,
|
|
664
722
|
ProgressLogEntrySchema,
|
|
665
723
|
ProgressLogEntryType,
|
|
666
724
|
ProposeMissionConfirmationDetailsSchema,
|
|
@@ -693,6 +751,13 @@ export {
|
|
|
693
751
|
SESSION_INIT_TIMEOUT,
|
|
694
752
|
SLACK_DELEGATION_MAX_RETRIES,
|
|
695
753
|
ServerRequestHandlerType,
|
|
754
|
+
SessionArtifactAction,
|
|
755
|
+
SessionArtifactKind,
|
|
756
|
+
SessionArtifactProvider,
|
|
757
|
+
SessionArtifactSchema,
|
|
758
|
+
SessionArtifactSource,
|
|
759
|
+
SessionArtifactsSchema,
|
|
760
|
+
SessionElicitationSchema,
|
|
696
761
|
SessionMetadataSchema,
|
|
697
762
|
SessionNotificationParamsSchema,
|
|
698
763
|
SessionNotificationPayloadSchema,
|
|
@@ -761,11 +826,15 @@ export {
|
|
|
761
826
|
ToolConfirmationListItemSchema,
|
|
762
827
|
ToolConfirmationOutcome,
|
|
763
828
|
ToolConfirmationType,
|
|
829
|
+
ToolJsonSchemaSchema,
|
|
764
830
|
ToolProgressUpdateNotificationSchema,
|
|
765
831
|
ToolProgressUpdateSchema,
|
|
766
832
|
ToolResultSchema as ToolResultBlockSchema,
|
|
767
833
|
ToolResultNotificationSchema,
|
|
834
|
+
ToolResultSchemaDescriptorSchema,
|
|
835
|
+
ToolSchemasSchema,
|
|
768
836
|
ToolSelectionOverridesSchema,
|
|
837
|
+
ToolSourceSchema,
|
|
769
838
|
ToolUseSchema as ToolUseBlockSchema,
|
|
770
839
|
ToolUseSchema2 as ToolUseSchema,
|
|
771
840
|
TraceContextMetaSchema,
|
|
@@ -784,6 +853,9 @@ export {
|
|
|
784
853
|
WorkerSelectedFeatureEntrySchema,
|
|
785
854
|
WorkerStartedEntrySchema,
|
|
786
855
|
WorkerStateInfoSchema,
|
|
856
|
+
MissionMachineTargetKind as WorkstreamMachineTargetKind,
|
|
857
|
+
answerRemoteSessionElicitation,
|
|
858
|
+
appendContextSession,
|
|
787
859
|
buildUserMessageContentBlocks,
|
|
788
860
|
configureDaemonCoreDeps,
|
|
789
861
|
connectAndAuthenticate,
|
|
@@ -791,14 +863,23 @@ export {
|
|
|
791
863
|
connectWithRetry,
|
|
792
864
|
convertNotificationToStreamMessage,
|
|
793
865
|
createComputer,
|
|
866
|
+
createContextDocument,
|
|
867
|
+
createContextFile,
|
|
868
|
+
createContextSpace,
|
|
794
869
|
createResponseSchema,
|
|
795
870
|
createWebSocketDaemonClient,
|
|
796
871
|
defaultDaemonCoreDeps,
|
|
797
872
|
deleteComputer,
|
|
873
|
+
deleteContextDocument,
|
|
874
|
+
deleteContextFile,
|
|
798
875
|
filterMessagesForUI,
|
|
799
876
|
getComputer,
|
|
800
877
|
getComputerByName,
|
|
801
878
|
getComputerMetrics,
|
|
879
|
+
getContextDocument,
|
|
880
|
+
getContextDocumentByPath,
|
|
881
|
+
getContextSession,
|
|
882
|
+
getContextSpace,
|
|
802
883
|
getMachineTemplate,
|
|
803
884
|
getPermissionToolInputForDisplay,
|
|
804
885
|
getQueuedUserMessageDisplayGroup,
|
|
@@ -814,19 +895,27 @@ export {
|
|
|
814
895
|
isPersistedHookMessage,
|
|
815
896
|
isReviewableQueuedMessageKind,
|
|
816
897
|
listComputers,
|
|
898
|
+
listContextDocuments,
|
|
899
|
+
listContextSessions,
|
|
900
|
+
listContextSpaces,
|
|
901
|
+
listEnvironments,
|
|
817
902
|
listMachineTemplates,
|
|
903
|
+
listRemoteSessionElicitations,
|
|
818
904
|
listRemoteSessions,
|
|
819
905
|
machineTypeToMachineConnectionType,
|
|
820
|
-
|
|
906
|
+
readContextFilePart,
|
|
907
|
+
readContextSessionRecords,
|
|
821
908
|
recordComputerConnectSli,
|
|
822
909
|
refreshComputer,
|
|
823
|
-
|
|
910
|
+
registerContextSession,
|
|
824
911
|
restartComputer,
|
|
825
912
|
retryInstallDeps,
|
|
826
913
|
retryWithLogger,
|
|
827
914
|
sumTokenUsage,
|
|
828
915
|
summarizeSessionToolUsage,
|
|
829
916
|
toError,
|
|
830
|
-
updateComputer
|
|
917
|
+
updateComputer,
|
|
918
|
+
updateContextDocument,
|
|
919
|
+
uploadContextFilePart
|
|
831
920
|
};
|
|
832
921
|
//# sourceMappingURL=index.mjs.map
|