@synsci/sdk 1.2.2 → 1.2.4
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/gen/sdk.gen.d.ts +1 -55
- package/dist/gen/sdk.gen.js +0 -134
- package/dist/gen/types.gen.d.ts +1 -263
- package/dist/server.d.ts +0 -11
- package/dist/server.js +0 -28
- package/dist/v2/server.d.ts +0 -11
- package/dist/v2/server.js +0 -28
- package/package.json +5 -1
package/dist/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from "./client/index.js";
|
|
2
|
-
import type { GlobalEventData, GlobalEventResponses, ProjectListData, ProjectListResponses, ProjectCurrentData, ProjectCurrentResponses, PtyListData, PtyListResponses, PtyCreateData, PtyCreateResponses, PtyCreateErrors, PtyRemoveData, PtyRemoveResponses, PtyRemoveErrors, PtyGetData, PtyGetResponses, PtyGetErrors, PtyUpdateData, PtyUpdateResponses, PtyUpdateErrors, PtyConnectData, PtyConnectResponses, PtyConnectErrors, ConfigGetData, ConfigGetResponses, ConfigUpdateData, ConfigUpdateResponses, ConfigUpdateErrors, ToolIdsData, ToolIdsResponses, ToolIdsErrors, ToolListData, ToolListResponses, ToolListErrors, InstanceDisposeData, InstanceDisposeResponses, PathGetData, PathGetResponses, VcsGetData, VcsGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionStatusData, SessionStatusResponses, SessionStatusErrors, SessionDeleteData, SessionDeleteResponses, SessionDeleteErrors, SessionGetData, SessionGetResponses, SessionGetErrors, SessionUpdateData, SessionUpdateResponses, SessionUpdateErrors, SessionChildrenData, SessionChildrenResponses, SessionChildrenErrors, SessionTodoData, SessionTodoResponses, SessionTodoErrors, SessionInitData, SessionInitResponses, SessionInitErrors, SessionForkData, SessionForkResponses, SessionAbortData, SessionAbortResponses, SessionAbortErrors, SessionUnshareData, SessionUnshareResponses, SessionUnshareErrors, SessionShareData, SessionShareResponses, SessionShareErrors, SessionDiffData, SessionDiffResponses, SessionDiffErrors, SessionSummarizeData, SessionSummarizeResponses, SessionSummarizeErrors, SessionMessagesData, SessionMessagesResponses, SessionMessagesErrors, SessionPromptData, SessionPromptResponses, SessionPromptErrors, SessionMessageData, SessionMessageResponses, SessionMessageErrors, SessionPromptAsyncData, SessionPromptAsyncResponses, SessionPromptAsyncErrors, SessionCommandData, SessionCommandResponses, SessionCommandErrors, SessionShellData, SessionShellResponses, SessionShellErrors, SessionRevertData, SessionRevertResponses, SessionRevertErrors, SessionUnrevertData, SessionUnrevertResponses, SessionUnrevertErrors, PostSessionIdPermissionsPermissionIdData, PostSessionIdPermissionsPermissionIdResponses, PostSessionIdPermissionsPermissionIdErrors, CommandListData, CommandListResponses, ConfigProvidersData, ConfigProvidersResponses, ProviderListData, ProviderListResponses, ProviderAuthData, ProviderAuthResponses, ProviderOauthAuthorizeData, ProviderOauthAuthorizeResponses, ProviderOauthAuthorizeErrors, ProviderOauthCallbackData, ProviderOauthCallbackResponses, ProviderOauthCallbackErrors, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileListData, FileListResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppLogErrors, AppAgentsData, AppAgentsResponses, McpStatusData, McpStatusResponses, McpAddData, McpAddResponses, McpAddErrors, McpAuthRemoveData, McpAuthRemoveResponses, McpAuthRemoveErrors, McpAuthStartData, McpAuthStartResponses, McpAuthStartErrors, McpAuthCallbackData, McpAuthCallbackResponses, McpAuthCallbackErrors, McpAuthAuthenticateData, McpAuthAuthenticateResponses, McpAuthAuthenticateErrors, McpConnectData, McpConnectResponses, McpDisconnectData, McpDisconnectResponses, LspStatusData, LspStatusResponses, FormatterStatusData, FormatterStatusResponses,
|
|
2
|
+
import type { GlobalEventData, GlobalEventResponses, ProjectListData, ProjectListResponses, ProjectCurrentData, ProjectCurrentResponses, PtyListData, PtyListResponses, PtyCreateData, PtyCreateResponses, PtyCreateErrors, PtyRemoveData, PtyRemoveResponses, PtyRemoveErrors, PtyGetData, PtyGetResponses, PtyGetErrors, PtyUpdateData, PtyUpdateResponses, PtyUpdateErrors, PtyConnectData, PtyConnectResponses, PtyConnectErrors, ConfigGetData, ConfigGetResponses, ConfigUpdateData, ConfigUpdateResponses, ConfigUpdateErrors, ToolIdsData, ToolIdsResponses, ToolIdsErrors, ToolListData, ToolListResponses, ToolListErrors, InstanceDisposeData, InstanceDisposeResponses, PathGetData, PathGetResponses, VcsGetData, VcsGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionStatusData, SessionStatusResponses, SessionStatusErrors, SessionDeleteData, SessionDeleteResponses, SessionDeleteErrors, SessionGetData, SessionGetResponses, SessionGetErrors, SessionUpdateData, SessionUpdateResponses, SessionUpdateErrors, SessionChildrenData, SessionChildrenResponses, SessionChildrenErrors, SessionTodoData, SessionTodoResponses, SessionTodoErrors, SessionInitData, SessionInitResponses, SessionInitErrors, SessionForkData, SessionForkResponses, SessionAbortData, SessionAbortResponses, SessionAbortErrors, SessionUnshareData, SessionUnshareResponses, SessionUnshareErrors, SessionShareData, SessionShareResponses, SessionShareErrors, SessionDiffData, SessionDiffResponses, SessionDiffErrors, SessionSummarizeData, SessionSummarizeResponses, SessionSummarizeErrors, SessionMessagesData, SessionMessagesResponses, SessionMessagesErrors, SessionPromptData, SessionPromptResponses, SessionPromptErrors, SessionMessageData, SessionMessageResponses, SessionMessageErrors, SessionPromptAsyncData, SessionPromptAsyncResponses, SessionPromptAsyncErrors, SessionCommandData, SessionCommandResponses, SessionCommandErrors, SessionShellData, SessionShellResponses, SessionShellErrors, SessionRevertData, SessionRevertResponses, SessionRevertErrors, SessionUnrevertData, SessionUnrevertResponses, SessionUnrevertErrors, PostSessionIdPermissionsPermissionIdData, PostSessionIdPermissionsPermissionIdResponses, PostSessionIdPermissionsPermissionIdErrors, CommandListData, CommandListResponses, ConfigProvidersData, ConfigProvidersResponses, ProviderListData, ProviderListResponses, ProviderAuthData, ProviderAuthResponses, ProviderOauthAuthorizeData, ProviderOauthAuthorizeResponses, ProviderOauthAuthorizeErrors, ProviderOauthCallbackData, ProviderOauthCallbackResponses, ProviderOauthCallbackErrors, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileListData, FileListResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppLogErrors, AppAgentsData, AppAgentsResponses, McpStatusData, McpStatusResponses, McpAddData, McpAddResponses, McpAddErrors, McpAuthRemoveData, McpAuthRemoveResponses, McpAuthRemoveErrors, McpAuthStartData, McpAuthStartResponses, McpAuthStartErrors, McpAuthCallbackData, McpAuthCallbackResponses, McpAuthCallbackErrors, McpAuthAuthenticateData, McpAuthAuthenticateResponses, McpAuthAuthenticateErrors, McpConnectData, McpConnectResponses, McpDisconnectData, McpDisconnectResponses, LspStatusData, LspStatusResponses, FormatterStatusData, FormatterStatusResponses, AuthSetData, AuthSetResponses, AuthSetErrors, EventSubscribeData, EventSubscribeResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -315,59 +315,6 @@ declare class Formatter extends _HeyApiClient {
|
|
|
315
315
|
*/
|
|
316
316
|
status<ThrowOnError extends boolean = false>(options?: Options<FormatterStatusData, ThrowOnError>): import("./client/types.gen.js").RequestResult<FormatterStatusResponses, unknown, ThrowOnError, "fields">;
|
|
317
317
|
}
|
|
318
|
-
declare class Control extends _HeyApiClient {
|
|
319
|
-
/**
|
|
320
|
-
* Get the next TUI request from the queue
|
|
321
|
-
*/
|
|
322
|
-
next<ThrowOnError extends boolean = false>(options?: Options<TuiControlNextData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlNextResponses, unknown, ThrowOnError, "fields">;
|
|
323
|
-
/**
|
|
324
|
-
* Submit a response to the TUI request queue
|
|
325
|
-
*/
|
|
326
|
-
response<ThrowOnError extends boolean = false>(options?: Options<TuiControlResponseData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiControlResponseResponses, unknown, ThrowOnError, "fields">;
|
|
327
|
-
}
|
|
328
|
-
declare class Tui extends _HeyApiClient {
|
|
329
|
-
/**
|
|
330
|
-
* Append prompt to the TUI
|
|
331
|
-
*/
|
|
332
|
-
appendPrompt<ThrowOnError extends boolean = false>(options?: Options<TuiAppendPromptData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiAppendPromptResponses, TuiAppendPromptErrors, ThrowOnError, "fields">;
|
|
333
|
-
/**
|
|
334
|
-
* Open the help dialog
|
|
335
|
-
*/
|
|
336
|
-
openHelp<ThrowOnError extends boolean = false>(options?: Options<TuiOpenHelpData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenHelpResponses, unknown, ThrowOnError, "fields">;
|
|
337
|
-
/**
|
|
338
|
-
* Open the session dialog
|
|
339
|
-
*/
|
|
340
|
-
openSessions<ThrowOnError extends boolean = false>(options?: Options<TuiOpenSessionsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenSessionsResponses, unknown, ThrowOnError, "fields">;
|
|
341
|
-
/**
|
|
342
|
-
* Open the theme dialog
|
|
343
|
-
*/
|
|
344
|
-
openThemes<ThrowOnError extends boolean = false>(options?: Options<TuiOpenThemesData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenThemesResponses, unknown, ThrowOnError, "fields">;
|
|
345
|
-
/**
|
|
346
|
-
* Open the model dialog
|
|
347
|
-
*/
|
|
348
|
-
openModels<ThrowOnError extends boolean = false>(options?: Options<TuiOpenModelsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiOpenModelsResponses, unknown, ThrowOnError, "fields">;
|
|
349
|
-
/**
|
|
350
|
-
* Submit the prompt
|
|
351
|
-
*/
|
|
352
|
-
submitPrompt<ThrowOnError extends boolean = false>(options?: Options<TuiSubmitPromptData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiSubmitPromptResponses, unknown, ThrowOnError, "fields">;
|
|
353
|
-
/**
|
|
354
|
-
* Clear the prompt
|
|
355
|
-
*/
|
|
356
|
-
clearPrompt<ThrowOnError extends boolean = false>(options?: Options<TuiClearPromptData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiClearPromptResponses, unknown, ThrowOnError, "fields">;
|
|
357
|
-
/**
|
|
358
|
-
* Execute a TUI command (e.g. agent_cycle)
|
|
359
|
-
*/
|
|
360
|
-
executeCommand<ThrowOnError extends boolean = false>(options?: Options<TuiExecuteCommandData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiExecuteCommandResponses, TuiExecuteCommandErrors, ThrowOnError, "fields">;
|
|
361
|
-
/**
|
|
362
|
-
* Show a toast notification in the TUI
|
|
363
|
-
*/
|
|
364
|
-
showToast<ThrowOnError extends boolean = false>(options?: Options<TuiShowToastData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiShowToastResponses, unknown, ThrowOnError, "fields">;
|
|
365
|
-
/**
|
|
366
|
-
* Publish a TUI event
|
|
367
|
-
*/
|
|
368
|
-
publish<ThrowOnError extends boolean = false>(options?: Options<TuiPublishData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiPublishResponses, TuiPublishErrors, ThrowOnError, "fields">;
|
|
369
|
-
control: Control;
|
|
370
|
-
}
|
|
371
318
|
declare class Event extends _HeyApiClient {
|
|
372
319
|
/**
|
|
373
320
|
* Get events
|
|
@@ -396,7 +343,6 @@ export declare class OpenScienceClient extends _HeyApiClient {
|
|
|
396
343
|
mcp: Mcp;
|
|
397
344
|
lsp: Lsp;
|
|
398
345
|
formatter: Formatter;
|
|
399
|
-
tui: Tui;
|
|
400
346
|
auth: Auth;
|
|
401
347
|
event: Event;
|
|
402
348
|
}
|
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -700,139 +700,6 @@ class Formatter extends _HeyApiClient {
|
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
|
-
class Control extends _HeyApiClient {
|
|
704
|
-
/**
|
|
705
|
-
* Get the next TUI request from the queue
|
|
706
|
-
*/
|
|
707
|
-
next(options) {
|
|
708
|
-
return (options?.client ?? this._client).get({
|
|
709
|
-
url: "/tui/control/next",
|
|
710
|
-
...options,
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
/**
|
|
714
|
-
* Submit a response to the TUI request queue
|
|
715
|
-
*/
|
|
716
|
-
response(options) {
|
|
717
|
-
return (options?.client ?? this._client).post({
|
|
718
|
-
url: "/tui/control/response",
|
|
719
|
-
...options,
|
|
720
|
-
headers: {
|
|
721
|
-
"Content-Type": "application/json",
|
|
722
|
-
...options?.headers,
|
|
723
|
-
},
|
|
724
|
-
});
|
|
725
|
-
}
|
|
726
|
-
}
|
|
727
|
-
class Tui extends _HeyApiClient {
|
|
728
|
-
/**
|
|
729
|
-
* Append prompt to the TUI
|
|
730
|
-
*/
|
|
731
|
-
appendPrompt(options) {
|
|
732
|
-
return (options?.client ?? this._client).post({
|
|
733
|
-
url: "/tui/append-prompt",
|
|
734
|
-
...options,
|
|
735
|
-
headers: {
|
|
736
|
-
"Content-Type": "application/json",
|
|
737
|
-
...options?.headers,
|
|
738
|
-
},
|
|
739
|
-
});
|
|
740
|
-
}
|
|
741
|
-
/**
|
|
742
|
-
* Open the help dialog
|
|
743
|
-
*/
|
|
744
|
-
openHelp(options) {
|
|
745
|
-
return (options?.client ?? this._client).post({
|
|
746
|
-
url: "/tui/open-help",
|
|
747
|
-
...options,
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
/**
|
|
751
|
-
* Open the session dialog
|
|
752
|
-
*/
|
|
753
|
-
openSessions(options) {
|
|
754
|
-
return (options?.client ?? this._client).post({
|
|
755
|
-
url: "/tui/open-sessions",
|
|
756
|
-
...options,
|
|
757
|
-
});
|
|
758
|
-
}
|
|
759
|
-
/**
|
|
760
|
-
* Open the theme dialog
|
|
761
|
-
*/
|
|
762
|
-
openThemes(options) {
|
|
763
|
-
return (options?.client ?? this._client).post({
|
|
764
|
-
url: "/tui/open-themes",
|
|
765
|
-
...options,
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
* Open the model dialog
|
|
770
|
-
*/
|
|
771
|
-
openModels(options) {
|
|
772
|
-
return (options?.client ?? this._client).post({
|
|
773
|
-
url: "/tui/open-models",
|
|
774
|
-
...options,
|
|
775
|
-
});
|
|
776
|
-
}
|
|
777
|
-
/**
|
|
778
|
-
* Submit the prompt
|
|
779
|
-
*/
|
|
780
|
-
submitPrompt(options) {
|
|
781
|
-
return (options?.client ?? this._client).post({
|
|
782
|
-
url: "/tui/submit-prompt",
|
|
783
|
-
...options,
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
/**
|
|
787
|
-
* Clear the prompt
|
|
788
|
-
*/
|
|
789
|
-
clearPrompt(options) {
|
|
790
|
-
return (options?.client ?? this._client).post({
|
|
791
|
-
url: "/tui/clear-prompt",
|
|
792
|
-
...options,
|
|
793
|
-
});
|
|
794
|
-
}
|
|
795
|
-
/**
|
|
796
|
-
* Execute a TUI command (e.g. agent_cycle)
|
|
797
|
-
*/
|
|
798
|
-
executeCommand(options) {
|
|
799
|
-
return (options?.client ?? this._client).post({
|
|
800
|
-
url: "/tui/execute-command",
|
|
801
|
-
...options,
|
|
802
|
-
headers: {
|
|
803
|
-
"Content-Type": "application/json",
|
|
804
|
-
...options?.headers,
|
|
805
|
-
},
|
|
806
|
-
});
|
|
807
|
-
}
|
|
808
|
-
/**
|
|
809
|
-
* Show a toast notification in the TUI
|
|
810
|
-
*/
|
|
811
|
-
showToast(options) {
|
|
812
|
-
return (options?.client ?? this._client).post({
|
|
813
|
-
url: "/tui/show-toast",
|
|
814
|
-
...options,
|
|
815
|
-
headers: {
|
|
816
|
-
"Content-Type": "application/json",
|
|
817
|
-
...options?.headers,
|
|
818
|
-
},
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
/**
|
|
822
|
-
* Publish a TUI event
|
|
823
|
-
*/
|
|
824
|
-
publish(options) {
|
|
825
|
-
return (options?.client ?? this._client).post({
|
|
826
|
-
url: "/tui/publish",
|
|
827
|
-
...options,
|
|
828
|
-
headers: {
|
|
829
|
-
"Content-Type": "application/json",
|
|
830
|
-
...options?.headers,
|
|
831
|
-
},
|
|
832
|
-
});
|
|
833
|
-
}
|
|
834
|
-
control = new Control({ client: this._client });
|
|
835
|
-
}
|
|
836
703
|
class Event extends _HeyApiClient {
|
|
837
704
|
/**
|
|
838
705
|
* Get events
|
|
@@ -875,7 +742,6 @@ export class OpenScienceClient extends _HeyApiClient {
|
|
|
875
742
|
mcp = new Mcp({ client: this._client });
|
|
876
743
|
lsp = new Lsp({ client: this._client });
|
|
877
744
|
formatter = new Formatter({ client: this._client });
|
|
878
|
-
tui = new Tui({ client: this._client });
|
|
879
745
|
auth = new Auth({ client: this._client });
|
|
880
746
|
event = new Event({ client: this._client });
|
|
881
747
|
}
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -535,30 +535,6 @@ export type EventVcsBranchUpdated = {
|
|
|
535
535
|
branch?: string;
|
|
536
536
|
};
|
|
537
537
|
};
|
|
538
|
-
export type EventTuiPromptAppend = {
|
|
539
|
-
type: "tui.prompt.append";
|
|
540
|
-
properties: {
|
|
541
|
-
text: string;
|
|
542
|
-
};
|
|
543
|
-
};
|
|
544
|
-
export type EventTuiCommandExecute = {
|
|
545
|
-
type: "tui.command.execute";
|
|
546
|
-
properties: {
|
|
547
|
-
command: ("session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle") | string;
|
|
548
|
-
};
|
|
549
|
-
};
|
|
550
|
-
export type EventTuiToastShow = {
|
|
551
|
-
type: "tui.toast.show";
|
|
552
|
-
properties: {
|
|
553
|
-
title?: string;
|
|
554
|
-
message: string;
|
|
555
|
-
variant: "info" | "success" | "warning" | "error";
|
|
556
|
-
/**
|
|
557
|
-
* Duration in milliseconds
|
|
558
|
-
*/
|
|
559
|
-
duration?: number;
|
|
560
|
-
};
|
|
561
|
-
};
|
|
562
538
|
export type Pty = {
|
|
563
539
|
id: string;
|
|
564
540
|
title: string;
|
|
@@ -599,7 +575,7 @@ export type EventServerConnected = {
|
|
|
599
575
|
[key: string]: unknown;
|
|
600
576
|
};
|
|
601
577
|
};
|
|
602
|
-
export type Event = EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventFileEdited | EventTodoUpdated | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated |
|
|
578
|
+
export type Event = EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventFileEdited | EventTodoUpdated | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventServerConnected;
|
|
603
579
|
export type GlobalEvent = {
|
|
604
580
|
directory: string;
|
|
605
581
|
payload: Event;
|
|
@@ -1031,28 +1007,6 @@ export type Config = {
|
|
|
1031
1007
|
* Log level
|
|
1032
1008
|
*/
|
|
1033
1009
|
logLevel?: "DEBUG" | "INFO" | "WARN" | "ERROR";
|
|
1034
|
-
/**
|
|
1035
|
-
* TUI specific settings
|
|
1036
|
-
*/
|
|
1037
|
-
tui?: {
|
|
1038
|
-
/**
|
|
1039
|
-
* TUI scroll speed
|
|
1040
|
-
*/
|
|
1041
|
-
scroll_speed?: number;
|
|
1042
|
-
/**
|
|
1043
|
-
* Scroll acceleration settings
|
|
1044
|
-
*/
|
|
1045
|
-
scroll_acceleration?: {
|
|
1046
|
-
/**
|
|
1047
|
-
* Enable scroll acceleration
|
|
1048
|
-
*/
|
|
1049
|
-
enabled: boolean;
|
|
1050
|
-
};
|
|
1051
|
-
/**
|
|
1052
|
-
* Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column
|
|
1053
|
-
*/
|
|
1054
|
-
diff_style?: "auto" | "stacked";
|
|
1055
|
-
};
|
|
1056
1010
|
/**
|
|
1057
1011
|
* Command configuration, see https://syntheticsciences.ai/docs/commands
|
|
1058
1012
|
*/
|
|
@@ -3124,222 +3078,6 @@ export type FormatterStatusResponses = {
|
|
|
3124
3078
|
200: Array<FormatterStatus>;
|
|
3125
3079
|
};
|
|
3126
3080
|
export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
|
|
3127
|
-
export type TuiAppendPromptData = {
|
|
3128
|
-
body?: {
|
|
3129
|
-
text: string;
|
|
3130
|
-
};
|
|
3131
|
-
path?: never;
|
|
3132
|
-
query?: {
|
|
3133
|
-
directory?: string;
|
|
3134
|
-
};
|
|
3135
|
-
url: "/tui/append-prompt";
|
|
3136
|
-
};
|
|
3137
|
-
export type TuiAppendPromptErrors = {
|
|
3138
|
-
/**
|
|
3139
|
-
* Bad request
|
|
3140
|
-
*/
|
|
3141
|
-
400: BadRequestError;
|
|
3142
|
-
};
|
|
3143
|
-
export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
|
|
3144
|
-
export type TuiAppendPromptResponses = {
|
|
3145
|
-
/**
|
|
3146
|
-
* Prompt processed successfully
|
|
3147
|
-
*/
|
|
3148
|
-
200: boolean;
|
|
3149
|
-
};
|
|
3150
|
-
export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPromptResponses];
|
|
3151
|
-
export type TuiOpenHelpData = {
|
|
3152
|
-
body?: never;
|
|
3153
|
-
path?: never;
|
|
3154
|
-
query?: {
|
|
3155
|
-
directory?: string;
|
|
3156
|
-
};
|
|
3157
|
-
url: "/tui/open-help";
|
|
3158
|
-
};
|
|
3159
|
-
export type TuiOpenHelpResponses = {
|
|
3160
|
-
/**
|
|
3161
|
-
* Help dialog opened successfully
|
|
3162
|
-
*/
|
|
3163
|
-
200: boolean;
|
|
3164
|
-
};
|
|
3165
|
-
export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponses];
|
|
3166
|
-
export type TuiOpenSessionsData = {
|
|
3167
|
-
body?: never;
|
|
3168
|
-
path?: never;
|
|
3169
|
-
query?: {
|
|
3170
|
-
directory?: string;
|
|
3171
|
-
};
|
|
3172
|
-
url: "/tui/open-sessions";
|
|
3173
|
-
};
|
|
3174
|
-
export type TuiOpenSessionsResponses = {
|
|
3175
|
-
/**
|
|
3176
|
-
* Session dialog opened successfully
|
|
3177
|
-
*/
|
|
3178
|
-
200: boolean;
|
|
3179
|
-
};
|
|
3180
|
-
export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses];
|
|
3181
|
-
export type TuiOpenThemesData = {
|
|
3182
|
-
body?: never;
|
|
3183
|
-
path?: never;
|
|
3184
|
-
query?: {
|
|
3185
|
-
directory?: string;
|
|
3186
|
-
};
|
|
3187
|
-
url: "/tui/open-themes";
|
|
3188
|
-
};
|
|
3189
|
-
export type TuiOpenThemesResponses = {
|
|
3190
|
-
/**
|
|
3191
|
-
* Theme dialog opened successfully
|
|
3192
|
-
*/
|
|
3193
|
-
200: boolean;
|
|
3194
|
-
};
|
|
3195
|
-
export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses];
|
|
3196
|
-
export type TuiOpenModelsData = {
|
|
3197
|
-
body?: never;
|
|
3198
|
-
path?: never;
|
|
3199
|
-
query?: {
|
|
3200
|
-
directory?: string;
|
|
3201
|
-
};
|
|
3202
|
-
url: "/tui/open-models";
|
|
3203
|
-
};
|
|
3204
|
-
export type TuiOpenModelsResponses = {
|
|
3205
|
-
/**
|
|
3206
|
-
* Model dialog opened successfully
|
|
3207
|
-
*/
|
|
3208
|
-
200: boolean;
|
|
3209
|
-
};
|
|
3210
|
-
export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses];
|
|
3211
|
-
export type TuiSubmitPromptData = {
|
|
3212
|
-
body?: never;
|
|
3213
|
-
path?: never;
|
|
3214
|
-
query?: {
|
|
3215
|
-
directory?: string;
|
|
3216
|
-
};
|
|
3217
|
-
url: "/tui/submit-prompt";
|
|
3218
|
-
};
|
|
3219
|
-
export type TuiSubmitPromptResponses = {
|
|
3220
|
-
/**
|
|
3221
|
-
* Prompt submitted successfully
|
|
3222
|
-
*/
|
|
3223
|
-
200: boolean;
|
|
3224
|
-
};
|
|
3225
|
-
export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses];
|
|
3226
|
-
export type TuiClearPromptData = {
|
|
3227
|
-
body?: never;
|
|
3228
|
-
path?: never;
|
|
3229
|
-
query?: {
|
|
3230
|
-
directory?: string;
|
|
3231
|
-
};
|
|
3232
|
-
url: "/tui/clear-prompt";
|
|
3233
|
-
};
|
|
3234
|
-
export type TuiClearPromptResponses = {
|
|
3235
|
-
/**
|
|
3236
|
-
* Prompt cleared successfully
|
|
3237
|
-
*/
|
|
3238
|
-
200: boolean;
|
|
3239
|
-
};
|
|
3240
|
-
export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses];
|
|
3241
|
-
export type TuiExecuteCommandData = {
|
|
3242
|
-
body?: {
|
|
3243
|
-
command: string;
|
|
3244
|
-
};
|
|
3245
|
-
path?: never;
|
|
3246
|
-
query?: {
|
|
3247
|
-
directory?: string;
|
|
3248
|
-
};
|
|
3249
|
-
url: "/tui/execute-command";
|
|
3250
|
-
};
|
|
3251
|
-
export type TuiExecuteCommandErrors = {
|
|
3252
|
-
/**
|
|
3253
|
-
* Bad request
|
|
3254
|
-
*/
|
|
3255
|
-
400: BadRequestError;
|
|
3256
|
-
};
|
|
3257
|
-
export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
|
|
3258
|
-
export type TuiExecuteCommandResponses = {
|
|
3259
|
-
/**
|
|
3260
|
-
* Command executed successfully
|
|
3261
|
-
*/
|
|
3262
|
-
200: boolean;
|
|
3263
|
-
};
|
|
3264
|
-
export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses];
|
|
3265
|
-
export type TuiShowToastData = {
|
|
3266
|
-
body?: {
|
|
3267
|
-
title?: string;
|
|
3268
|
-
message: string;
|
|
3269
|
-
variant: "info" | "success" | "warning" | "error";
|
|
3270
|
-
/**
|
|
3271
|
-
* Duration in milliseconds
|
|
3272
|
-
*/
|
|
3273
|
-
duration?: number;
|
|
3274
|
-
};
|
|
3275
|
-
path?: never;
|
|
3276
|
-
query?: {
|
|
3277
|
-
directory?: string;
|
|
3278
|
-
};
|
|
3279
|
-
url: "/tui/show-toast";
|
|
3280
|
-
};
|
|
3281
|
-
export type TuiShowToastResponses = {
|
|
3282
|
-
/**
|
|
3283
|
-
* Toast notification shown successfully
|
|
3284
|
-
*/
|
|
3285
|
-
200: boolean;
|
|
3286
|
-
};
|
|
3287
|
-
export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses];
|
|
3288
|
-
export type TuiPublishData = {
|
|
3289
|
-
body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow;
|
|
3290
|
-
path?: never;
|
|
3291
|
-
query?: {
|
|
3292
|
-
directory?: string;
|
|
3293
|
-
};
|
|
3294
|
-
url: "/tui/publish";
|
|
3295
|
-
};
|
|
3296
|
-
export type TuiPublishErrors = {
|
|
3297
|
-
/**
|
|
3298
|
-
* Bad request
|
|
3299
|
-
*/
|
|
3300
|
-
400: BadRequestError;
|
|
3301
|
-
};
|
|
3302
|
-
export type TuiPublishError = TuiPublishErrors[keyof TuiPublishErrors];
|
|
3303
|
-
export type TuiPublishResponses = {
|
|
3304
|
-
/**
|
|
3305
|
-
* Event published successfully
|
|
3306
|
-
*/
|
|
3307
|
-
200: boolean;
|
|
3308
|
-
};
|
|
3309
|
-
export type TuiPublishResponse = TuiPublishResponses[keyof TuiPublishResponses];
|
|
3310
|
-
export type TuiControlNextData = {
|
|
3311
|
-
body?: never;
|
|
3312
|
-
path?: never;
|
|
3313
|
-
query?: {
|
|
3314
|
-
directory?: string;
|
|
3315
|
-
};
|
|
3316
|
-
url: "/tui/control/next";
|
|
3317
|
-
};
|
|
3318
|
-
export type TuiControlNextResponses = {
|
|
3319
|
-
/**
|
|
3320
|
-
* Next TUI request
|
|
3321
|
-
*/
|
|
3322
|
-
200: {
|
|
3323
|
-
path: string;
|
|
3324
|
-
body: unknown;
|
|
3325
|
-
};
|
|
3326
|
-
};
|
|
3327
|
-
export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses];
|
|
3328
|
-
export type TuiControlResponseData = {
|
|
3329
|
-
body?: unknown;
|
|
3330
|
-
path?: never;
|
|
3331
|
-
query?: {
|
|
3332
|
-
directory?: string;
|
|
3333
|
-
};
|
|
3334
|
-
url: "/tui/control/response";
|
|
3335
|
-
};
|
|
3336
|
-
export type TuiControlResponseResponses = {
|
|
3337
|
-
/**
|
|
3338
|
-
* Response submitted successfully
|
|
3339
|
-
*/
|
|
3340
|
-
200: boolean;
|
|
3341
|
-
};
|
|
3342
|
-
export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses];
|
|
3343
3081
|
export type AuthSetData = {
|
|
3344
3082
|
body?: Auth;
|
|
3345
3083
|
path: {
|
package/dist/server.d.ts
CHANGED
|
@@ -6,18 +6,7 @@ export type ServerOptions = {
|
|
|
6
6
|
timeout?: number;
|
|
7
7
|
config?: Config;
|
|
8
8
|
};
|
|
9
|
-
export type TuiOptions = {
|
|
10
|
-
project?: string;
|
|
11
|
-
model?: string;
|
|
12
|
-
session?: string;
|
|
13
|
-
agent?: string;
|
|
14
|
-
signal?: AbortSignal;
|
|
15
|
-
config?: Config;
|
|
16
|
-
};
|
|
17
9
|
export declare function createOpenScienceServer(options?: ServerOptions): Promise<{
|
|
18
10
|
url: string;
|
|
19
11
|
close(): void;
|
|
20
12
|
}>;
|
|
21
|
-
export declare function createOpenScienceTui(options?: TuiOptions): {
|
|
22
|
-
close(): void;
|
|
23
|
-
};
|
package/dist/server.js
CHANGED
|
@@ -64,31 +64,3 @@ export async function createOpenScienceServer(options) {
|
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
export function createOpenScienceTui(options) {
|
|
68
|
-
const args = [];
|
|
69
|
-
if (options?.project) {
|
|
70
|
-
args.push(`--project=${options.project}`);
|
|
71
|
-
}
|
|
72
|
-
if (options?.model) {
|
|
73
|
-
args.push(`--model=${options.model}`);
|
|
74
|
-
}
|
|
75
|
-
if (options?.session) {
|
|
76
|
-
args.push(`--session=${options.session}`);
|
|
77
|
-
}
|
|
78
|
-
if (options?.agent) {
|
|
79
|
-
args.push(`--agent=${options.agent}`);
|
|
80
|
-
}
|
|
81
|
-
const proc = spawn(`openscience`, args, {
|
|
82
|
-
signal: options?.signal,
|
|
83
|
-
stdio: "inherit",
|
|
84
|
-
env: {
|
|
85
|
-
...process.env,
|
|
86
|
-
OPENSCIENCE_CONFIG_CONTENT: JSON.stringify(options?.config ?? {}),
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
return {
|
|
90
|
-
close() {
|
|
91
|
-
proc.kill();
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
}
|
package/dist/v2/server.d.ts
CHANGED
|
@@ -6,18 +6,7 @@ export type ServerOptions = {
|
|
|
6
6
|
timeout?: number;
|
|
7
7
|
config?: Config;
|
|
8
8
|
};
|
|
9
|
-
export type TuiOptions = {
|
|
10
|
-
project?: string;
|
|
11
|
-
model?: string;
|
|
12
|
-
session?: string;
|
|
13
|
-
agent?: string;
|
|
14
|
-
signal?: AbortSignal;
|
|
15
|
-
config?: Config;
|
|
16
|
-
};
|
|
17
9
|
export declare function createOpenScienceServer(options?: ServerOptions): Promise<{
|
|
18
10
|
url: string;
|
|
19
11
|
close(): void;
|
|
20
12
|
}>;
|
|
21
|
-
export declare function createOpenScienceTui(options?: TuiOptions): {
|
|
22
|
-
close(): void;
|
|
23
|
-
};
|
package/dist/v2/server.js
CHANGED
|
@@ -64,31 +64,3 @@ export async function createOpenScienceServer(options) {
|
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
export function createOpenScienceTui(options) {
|
|
68
|
-
const args = [];
|
|
69
|
-
if (options?.project) {
|
|
70
|
-
args.push(`--project=${options.project}`);
|
|
71
|
-
}
|
|
72
|
-
if (options?.model) {
|
|
73
|
-
args.push(`--model=${options.model}`);
|
|
74
|
-
}
|
|
75
|
-
if (options?.session) {
|
|
76
|
-
args.push(`--session=${options.session}`);
|
|
77
|
-
}
|
|
78
|
-
if (options?.agent) {
|
|
79
|
-
args.push(`--agent=${options.agent}`);
|
|
80
|
-
}
|
|
81
|
-
const proc = spawn(`openscience`, args, {
|
|
82
|
-
signal: options?.signal,
|
|
83
|
-
stdio: "inherit",
|
|
84
|
-
env: {
|
|
85
|
-
...process.env,
|
|
86
|
-
OPENSCIENCE_CONFIG_CONTENT: JSON.stringify(options?.config ?? {}),
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
return {
|
|
90
|
-
close() {
|
|
91
|
-
proc.kill();
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@synsci/sdk",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"scripts": {
|
|
@@ -47,5 +47,9 @@
|
|
|
47
47
|
"dependencies": {},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"directory": "dist"
|
|
50
|
+
},
|
|
51
|
+
"repository": {
|
|
52
|
+
"type": "git",
|
|
53
|
+
"url": "git+https://github.com/synthetic-sciences/openscience.git"
|
|
50
54
|
}
|
|
51
55
|
}
|