@synsci/sdk 2.0.67 → 2.0.68
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.
|
@@ -534,6 +534,9 @@ export declare class Preferences extends HeyApiClient {
|
|
|
534
534
|
} | null;
|
|
535
535
|
delegation_autonomy?: "interactive" | "balanced" | "autonomous";
|
|
536
536
|
delegation_diversity?: "focused" | "balanced" | "exploratory";
|
|
537
|
+
compaction_auto?: boolean;
|
|
538
|
+
compaction_threshold?: number;
|
|
539
|
+
compaction_warn_tokens?: number;
|
|
537
540
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SettingsPreferencesUpdateResponses, unknown, ThrowOnError, "fields">;
|
|
538
541
|
/**
|
|
539
542
|
* Clear one completed desktop onboarding draft binding
|
|
@@ -931,6 +931,9 @@ export class Preferences extends HeyApiClient {
|
|
|
931
931
|
{ in: "body", key: "delegation_worker_model" },
|
|
932
932
|
{ in: "body", key: "delegation_autonomy" },
|
|
933
933
|
{ in: "body", key: "delegation_diversity" },
|
|
934
|
+
{ in: "body", key: "compaction_auto" },
|
|
935
|
+
{ in: "body", key: "compaction_threshold" },
|
|
936
|
+
{ in: "body", key: "compaction_warn_tokens" },
|
|
934
937
|
],
|
|
935
938
|
},
|
|
936
939
|
]);
|
|
@@ -632,6 +632,60 @@ export type EventPermissionReplied = {
|
|
|
632
632
|
reply: "once" | "session" | "project" | "always" | "reject";
|
|
633
633
|
};
|
|
634
634
|
};
|
|
635
|
+
export type EventSessionContext = {
|
|
636
|
+
type: "session.context";
|
|
637
|
+
properties: {
|
|
638
|
+
sessionID: string;
|
|
639
|
+
tokens: {
|
|
640
|
+
system: number;
|
|
641
|
+
text: number;
|
|
642
|
+
reasoning: number;
|
|
643
|
+
tool: number;
|
|
644
|
+
skills: number;
|
|
645
|
+
image: number;
|
|
646
|
+
};
|
|
647
|
+
images: number;
|
|
648
|
+
total: number;
|
|
649
|
+
budget?: {
|
|
650
|
+
total: number;
|
|
651
|
+
newest: number;
|
|
652
|
+
history: number;
|
|
653
|
+
usable: number;
|
|
654
|
+
soft: number;
|
|
655
|
+
hard: number;
|
|
656
|
+
};
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
export type EventSessionCompaction = {
|
|
660
|
+
type: "session.compaction";
|
|
661
|
+
properties: {
|
|
662
|
+
sessionID: string;
|
|
663
|
+
trigger: "proactive" | "overflow" | "manual";
|
|
664
|
+
mechanism: "prune" | "summary";
|
|
665
|
+
before?: number;
|
|
666
|
+
after?: number;
|
|
667
|
+
reclaimed: number;
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
export type SessionRequestProgress = {
|
|
671
|
+
sessionID: string;
|
|
672
|
+
messageID: string;
|
|
673
|
+
attempt: number;
|
|
674
|
+
agent: string;
|
|
675
|
+
providerID: string;
|
|
676
|
+
modelID: string;
|
|
677
|
+
phase: "connecting" | "waiting_first_token" | "streaming" | "conflict_wait" | "retry_wait" | "done" | "error";
|
|
678
|
+
since: number;
|
|
679
|
+
elapsedMs: number;
|
|
680
|
+
retryAfterMs?: number;
|
|
681
|
+
detail?: string;
|
|
682
|
+
firstOutputMs?: number;
|
|
683
|
+
stalls: number;
|
|
684
|
+
};
|
|
685
|
+
export type EventSessionRequestProgress = {
|
|
686
|
+
type: "session.request.progress";
|
|
687
|
+
properties: SessionRequestProgress;
|
|
688
|
+
};
|
|
635
689
|
export type SessionStatus = {
|
|
636
690
|
type: "idle";
|
|
637
691
|
} | {
|
|
@@ -721,41 +775,6 @@ export type EventQuestionRejected = {
|
|
|
721
775
|
requestID: string;
|
|
722
776
|
};
|
|
723
777
|
};
|
|
724
|
-
export type EventSessionContext = {
|
|
725
|
-
type: "session.context";
|
|
726
|
-
properties: {
|
|
727
|
-
sessionID: string;
|
|
728
|
-
tokens: {
|
|
729
|
-
system: number;
|
|
730
|
-
text: number;
|
|
731
|
-
reasoning: number;
|
|
732
|
-
tool: number;
|
|
733
|
-
skills: number;
|
|
734
|
-
image: number;
|
|
735
|
-
};
|
|
736
|
-
images: number;
|
|
737
|
-
total: number;
|
|
738
|
-
budget?: {
|
|
739
|
-
total: number;
|
|
740
|
-
newest: number;
|
|
741
|
-
history: number;
|
|
742
|
-
usable: number;
|
|
743
|
-
soft: number;
|
|
744
|
-
hard: number;
|
|
745
|
-
};
|
|
746
|
-
};
|
|
747
|
-
};
|
|
748
|
-
export type EventSessionCompaction = {
|
|
749
|
-
type: "session.compaction";
|
|
750
|
-
properties: {
|
|
751
|
-
sessionID: string;
|
|
752
|
-
trigger: "proactive" | "overflow" | "manual";
|
|
753
|
-
mechanism: "prune" | "summary";
|
|
754
|
-
before?: number;
|
|
755
|
-
after?: number;
|
|
756
|
-
reclaimed: number;
|
|
757
|
-
};
|
|
758
|
-
};
|
|
759
778
|
export type EventSessionCompacted = {
|
|
760
779
|
type: "session.compacted";
|
|
761
780
|
properties: {
|
|
@@ -972,7 +991,7 @@ export type EventWorktreeFailed = {
|
|
|
972
991
|
message: string;
|
|
973
992
|
};
|
|
974
993
|
};
|
|
975
|
-
export type Event = EventServerConnected | EventGlobalDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventProjectTrustChanged | EventLspClientDiagnostics | EventLspUpdated | EventFileWatcherUpdated | EventSessionFilesystemChanged | EventProjectAccessChanged | EventVcsBranchUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied |
|
|
994
|
+
export type Event = EventServerConnected | EventGlobalDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventProjectTrustChanged | EventLspClientDiagnostics | EventLspUpdated | EventFileWatcherUpdated | EventSessionFilesystemChanged | EventProjectAccessChanged | EventVcsBranchUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionContext | EventSessionCompaction | EventSessionRequestProgress | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventTodoUpdated | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventSkillUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
|
|
976
995
|
export type GlobalEvent = {
|
|
977
996
|
directory: string;
|
|
978
997
|
payload: Event;
|
|
@@ -1843,6 +1862,10 @@ export type Config = {
|
|
|
1843
1862
|
* Compact when context exceeds this fraction of the model window (default: 0.75)
|
|
1844
1863
|
*/
|
|
1845
1864
|
threshold?: number;
|
|
1865
|
+
/**
|
|
1866
|
+
* Show a compact-or-restart notice in the workspace when the conversation context exceeds this many tokens (default: 120000)
|
|
1867
|
+
*/
|
|
1868
|
+
warn_tokens?: number;
|
|
1846
1869
|
/**
|
|
1847
1870
|
* Assumed context window (tokens) when a provider reports 0 (default: 128000)
|
|
1848
1871
|
*/
|
|
@@ -6811,6 +6834,18 @@ export type SettingsPreferencesGetResponses = {
|
|
|
6811
6834
|
} | null;
|
|
6812
6835
|
delegation_autonomy?: "interactive" | "balanced" | "autonomous";
|
|
6813
6836
|
delegation_diversity?: "focused" | "balanced" | "exploratory";
|
|
6837
|
+
/**
|
|
6838
|
+
* Automatic compaction when context is full (compaction.auto)
|
|
6839
|
+
*/
|
|
6840
|
+
compaction_auto?: boolean;
|
|
6841
|
+
/**
|
|
6842
|
+
* Fraction of the model window that triggers automatic compaction (compaction.threshold)
|
|
6843
|
+
*/
|
|
6844
|
+
compaction_threshold?: number;
|
|
6845
|
+
/**
|
|
6846
|
+
* Conversation size in tokens above which the workspace warns (compaction.warn_tokens)
|
|
6847
|
+
*/
|
|
6848
|
+
compaction_warn_tokens?: number;
|
|
6814
6849
|
};
|
|
6815
6850
|
};
|
|
6816
6851
|
export type SettingsPreferencesGetResponse = SettingsPreferencesGetResponses[keyof SettingsPreferencesGetResponses];
|
|
@@ -6832,6 +6867,9 @@ export type SettingsPreferencesUpdateData = {
|
|
|
6832
6867
|
} | null;
|
|
6833
6868
|
delegation_autonomy?: "interactive" | "balanced" | "autonomous";
|
|
6834
6869
|
delegation_diversity?: "focused" | "balanced" | "exploratory";
|
|
6870
|
+
compaction_auto?: boolean;
|
|
6871
|
+
compaction_threshold?: number;
|
|
6872
|
+
compaction_warn_tokens?: number;
|
|
6835
6873
|
};
|
|
6836
6874
|
path?: never;
|
|
6837
6875
|
query?: never;
|
|
@@ -6864,6 +6902,18 @@ export type SettingsPreferencesUpdateResponses = {
|
|
|
6864
6902
|
} | null;
|
|
6865
6903
|
delegation_autonomy?: "interactive" | "balanced" | "autonomous";
|
|
6866
6904
|
delegation_diversity?: "focused" | "balanced" | "exploratory";
|
|
6905
|
+
/**
|
|
6906
|
+
* Automatic compaction when context is full (compaction.auto)
|
|
6907
|
+
*/
|
|
6908
|
+
compaction_auto?: boolean;
|
|
6909
|
+
/**
|
|
6910
|
+
* Fraction of the model window that triggers automatic compaction (compaction.threshold)
|
|
6911
|
+
*/
|
|
6912
|
+
compaction_threshold?: number;
|
|
6913
|
+
/**
|
|
6914
|
+
* Conversation size in tokens above which the workspace warns (compaction.warn_tokens)
|
|
6915
|
+
*/
|
|
6916
|
+
compaction_warn_tokens?: number;
|
|
6867
6917
|
};
|
|
6868
6918
|
};
|
|
6869
6919
|
export type SettingsPreferencesUpdateResponse = SettingsPreferencesUpdateResponses[keyof SettingsPreferencesUpdateResponses];
|