@synsci/sdk 2.0.96 → 2.0.97-test.34845507412
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.
|
@@ -1243,6 +1243,7 @@ export declare class Session extends HeyApiClient {
|
|
|
1243
1243
|
variant?: string;
|
|
1244
1244
|
tier?: string;
|
|
1245
1245
|
context?: number;
|
|
1246
|
+
deadline?: number;
|
|
1246
1247
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | ConversationPartInput | SubtaskPartInput>;
|
|
1247
1248
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
|
|
1248
1249
|
/**
|
|
@@ -1287,6 +1288,7 @@ export declare class Session extends HeyApiClient {
|
|
|
1287
1288
|
variant?: string;
|
|
1288
1289
|
tier?: string;
|
|
1289
1290
|
context?: number;
|
|
1291
|
+
deadline?: number;
|
|
1290
1292
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | ConversationPartInput | SubtaskPartInput>;
|
|
1291
1293
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptAsyncResponses, SessionPromptAsyncErrors, ThrowOnError, "fields">;
|
|
1292
1294
|
/**
|
|
@@ -2339,6 +2339,7 @@ export class Session extends HeyApiClient {
|
|
|
2339
2339
|
{ in: "body", key: "variant" },
|
|
2340
2340
|
{ in: "body", key: "tier" },
|
|
2341
2341
|
{ in: "body", key: "context" },
|
|
2342
|
+
{ in: "body", key: "deadline" },
|
|
2342
2343
|
{ in: "body", key: "parts" },
|
|
2343
2344
|
],
|
|
2344
2345
|
},
|
|
@@ -2398,6 +2399,7 @@ export class Session extends HeyApiClient {
|
|
|
2398
2399
|
{ in: "body", key: "variant" },
|
|
2399
2400
|
{ in: "body", key: "tier" },
|
|
2400
2401
|
{ in: "body", key: "context" },
|
|
2402
|
+
{ in: "body", key: "deadline" },
|
|
2401
2403
|
{ in: "body", key: "parts" },
|
|
2402
2404
|
],
|
|
2403
2405
|
},
|
|
@@ -112,19 +112,6 @@ export type EventAccountLogin = {
|
|
|
112
112
|
approval_url: string;
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
-
export type EventLspClientDiagnostics = {
|
|
116
|
-
type: "lsp.client.diagnostics";
|
|
117
|
-
properties: {
|
|
118
|
-
serverID: string;
|
|
119
|
-
path: string;
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
export type EventLspUpdated = {
|
|
123
|
-
type: "lsp.updated";
|
|
124
|
-
properties: {
|
|
125
|
-
[key: string]: unknown;
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
115
|
export type EventFileWatcherUpdated = {
|
|
129
116
|
type: "file.watcher.updated";
|
|
130
117
|
properties: {
|
|
@@ -142,7 +129,7 @@ export type EventSessionFilesystemChanged = {
|
|
|
142
129
|
path: string;
|
|
143
130
|
access: "read" | "write";
|
|
144
131
|
scope: "once" | "session" | "project" | "installation";
|
|
145
|
-
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff";
|
|
132
|
+
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff" | "parent";
|
|
146
133
|
time: {
|
|
147
134
|
created: number;
|
|
148
135
|
consumed?: number;
|
|
@@ -151,39 +138,17 @@ export type EventSessionFilesystemChanged = {
|
|
|
151
138
|
};
|
|
152
139
|
};
|
|
153
140
|
};
|
|
154
|
-
export type
|
|
155
|
-
type: "
|
|
141
|
+
export type EventLspClientDiagnostics = {
|
|
142
|
+
type: "lsp.client.diagnostics";
|
|
156
143
|
properties: {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
root: string;
|
|
160
|
-
revision: number;
|
|
161
|
-
trustRevision: number;
|
|
162
|
-
mode: "ask" | "approve" | "full";
|
|
163
|
-
requestedMode: "ask" | "approve" | "full";
|
|
164
|
-
source: "default" | "legacy" | "persisted";
|
|
165
|
-
trusted: boolean;
|
|
166
|
-
managed: boolean;
|
|
167
|
-
sandbox: {
|
|
168
|
-
enabled: boolean;
|
|
169
|
-
network: "allow" | "deny";
|
|
170
|
-
allowWrite: Array<string>;
|
|
171
|
-
onUnavailable: "warn" | "error" | "allow";
|
|
172
|
-
requireProjectTrust: boolean;
|
|
173
|
-
};
|
|
174
|
-
sandboxStatus: {
|
|
175
|
-
available: boolean;
|
|
176
|
-
backend: "seatbelt" | "bubblewrap" | "none";
|
|
177
|
-
reason?: string;
|
|
178
|
-
};
|
|
179
|
-
};
|
|
180
|
-
narrowing: boolean;
|
|
144
|
+
serverID: string;
|
|
145
|
+
path: string;
|
|
181
146
|
};
|
|
182
147
|
};
|
|
183
|
-
export type
|
|
184
|
-
type: "
|
|
148
|
+
export type EventLspUpdated = {
|
|
149
|
+
type: "lsp.updated";
|
|
185
150
|
properties: {
|
|
186
|
-
|
|
151
|
+
[key: string]: unknown;
|
|
187
152
|
};
|
|
188
153
|
};
|
|
189
154
|
export type FileDiff = {
|
|
@@ -220,7 +185,7 @@ export type UserMessage = {
|
|
|
220
185
|
epoch: string;
|
|
221
186
|
} | {
|
|
222
187
|
type: "continuation";
|
|
223
|
-
kind: "output" | "contract" | "review" | "review-summary" | "compaction" | "task" | "context";
|
|
188
|
+
kind: "output" | "contract" | "review" | "review-summary" | "compaction" | "task" | "context" | "harness";
|
|
224
189
|
text: string;
|
|
225
190
|
epoch: string;
|
|
226
191
|
transaction: string;
|
|
@@ -260,6 +225,7 @@ export type UserMessage = {
|
|
|
260
225
|
source: "managed" | "byok" | "chatgpt" | "local" | "oauth" | "unknown";
|
|
261
226
|
effort: string;
|
|
262
227
|
};
|
|
228
|
+
deadline?: number;
|
|
263
229
|
};
|
|
264
230
|
export type ProviderAuthError = {
|
|
265
231
|
name: "ProviderAuthError";
|
|
@@ -604,6 +570,7 @@ export type CompactionPart = {
|
|
|
604
570
|
focus?: string;
|
|
605
571
|
handoffFile?: string;
|
|
606
572
|
trigger?: "proactive" | "overflow" | "manual";
|
|
573
|
+
rootID?: string;
|
|
607
574
|
};
|
|
608
575
|
export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | ConversationPart | RetryPart | CompactionPart;
|
|
609
576
|
export type EventMessagePartUpdated = {
|
|
@@ -621,6 +588,41 @@ export type EventMessagePartRemoved = {
|
|
|
621
588
|
partID: string;
|
|
622
589
|
};
|
|
623
590
|
};
|
|
591
|
+
export type EventProjectAccessChanged = {
|
|
592
|
+
type: "project.access.changed";
|
|
593
|
+
properties: {
|
|
594
|
+
status: {
|
|
595
|
+
projectID: string;
|
|
596
|
+
root: string;
|
|
597
|
+
revision: number;
|
|
598
|
+
trustRevision: number;
|
|
599
|
+
mode: "ask" | "approve" | "full";
|
|
600
|
+
requestedMode: "ask" | "approve" | "full";
|
|
601
|
+
source: "default" | "legacy" | "persisted";
|
|
602
|
+
trusted: boolean;
|
|
603
|
+
managed: boolean;
|
|
604
|
+
sandbox: {
|
|
605
|
+
enabled: boolean;
|
|
606
|
+
network: "allow" | "deny";
|
|
607
|
+
allowWrite: Array<string>;
|
|
608
|
+
onUnavailable: "warn" | "error" | "allow";
|
|
609
|
+
requireProjectTrust: boolean;
|
|
610
|
+
};
|
|
611
|
+
sandboxStatus: {
|
|
612
|
+
available: boolean;
|
|
613
|
+
backend: "seatbelt" | "bubblewrap" | "none";
|
|
614
|
+
reason?: string;
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
narrowing: boolean;
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
export type EventVcsBranchUpdated = {
|
|
621
|
+
type: "vcs.branch.updated";
|
|
622
|
+
properties: {
|
|
623
|
+
branch?: string;
|
|
624
|
+
};
|
|
625
|
+
};
|
|
624
626
|
export type PermissionRequest = {
|
|
625
627
|
id: string;
|
|
626
628
|
sessionID: string;
|
|
@@ -818,6 +820,12 @@ export type EventSessionCompacted = {
|
|
|
818
820
|
sessionID: string;
|
|
819
821
|
};
|
|
820
822
|
};
|
|
823
|
+
export type EventFileEdited = {
|
|
824
|
+
type: "file.edited";
|
|
825
|
+
properties: {
|
|
826
|
+
file: string;
|
|
827
|
+
};
|
|
828
|
+
};
|
|
821
829
|
export type Todo = {
|
|
822
830
|
/**
|
|
823
831
|
* Brief description of the task
|
|
@@ -1071,12 +1079,6 @@ export type EventSessionError = {
|
|
|
1071
1079
|
error?: ProviderAuthError | MessageContextWindowError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
|
|
1072
1080
|
};
|
|
1073
1081
|
};
|
|
1074
|
-
export type EventFileEdited = {
|
|
1075
|
-
type: "file.edited";
|
|
1076
|
-
properties: {
|
|
1077
|
-
file: string;
|
|
1078
|
-
};
|
|
1079
|
-
};
|
|
1080
1082
|
export type Pty = {
|
|
1081
1083
|
id: string;
|
|
1082
1084
|
title: string;
|
|
@@ -1165,7 +1167,7 @@ export type EventWorktreeFailed = {
|
|
|
1165
1167
|
message: string;
|
|
1166
1168
|
};
|
|
1167
1169
|
};
|
|
1168
|
-
export type Event = EventServerConnected | EventGlobalDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventProjectTrustChanged | EventAccountUpdated | EventAccountLogin |
|
|
1170
|
+
export type Event = EventServerConnected | EventGlobalDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventProjectTrustChanged | EventAccountUpdated | EventAccountLogin | EventFileWatcherUpdated | EventSessionFilesystemChanged | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventProjectAccessChanged | EventVcsBranchUpdated | EventPermissionAsked | EventPermissionCancelled | EventPermissionReplied | EventSkillUpdated | EventSessionContext | EventSessionCompaction | EventSessionRequestProgress | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionCancelled | EventQuestionRejected | EventSessionCompacted | EventFileEdited | EventTodoUpdated | EventExperimentRunUpdated | EventExperimentRunPoints | EventExperimentStudyUpdated | EventExperimentIdeaUpdated | EventExperimentStudyEvent | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
|
|
1169
1171
|
export type GlobalEvent = {
|
|
1170
1172
|
directory: string;
|
|
1171
1173
|
payload: Event;
|
|
@@ -1600,6 +1602,14 @@ export type PermissionConfig = {
|
|
|
1600
1602
|
} | PermissionActionConfig;
|
|
1601
1603
|
export type AgentConfig = {
|
|
1602
1604
|
model?: string;
|
|
1605
|
+
/**
|
|
1606
|
+
* Model variant (reasoning effort) used when this agent runs on its own configured model
|
|
1607
|
+
*/
|
|
1608
|
+
variant?: string;
|
|
1609
|
+
/**
|
|
1610
|
+
* Skill categories indexed in this agent's <domain-skills> block (specialist agents)
|
|
1611
|
+
*/
|
|
1612
|
+
skills?: Array<string>;
|
|
1603
1613
|
temperature?: number;
|
|
1604
1614
|
top_p?: number;
|
|
1605
1615
|
prompt?: string;
|
|
@@ -1649,6 +1659,7 @@ export type ProviderConfig = {
|
|
|
1649
1659
|
name?: string;
|
|
1650
1660
|
family?: string;
|
|
1651
1661
|
release_date?: string;
|
|
1662
|
+
knowledge?: string;
|
|
1652
1663
|
attachment?: boolean;
|
|
1653
1664
|
reasoning?: boolean;
|
|
1654
1665
|
reasoning_options?: Array<{
|
|
@@ -1939,6 +1950,27 @@ export type Config = {
|
|
|
1939
1950
|
* Default agent to use when none is specified. Must be a primary agent. Falls back to 'research' if not set or if the specified agent is invalid.
|
|
1940
1951
|
*/
|
|
1941
1952
|
default_agent?: string;
|
|
1953
|
+
/**
|
|
1954
|
+
* How many levels of subagents a session may nest (default 1: only the lead dispatches workers)
|
|
1955
|
+
*/
|
|
1956
|
+
subagent_depth?: number;
|
|
1957
|
+
/**
|
|
1958
|
+
* Harness units, each on by default; set one to false to remove its behaviour
|
|
1959
|
+
*/
|
|
1960
|
+
harness?: {
|
|
1961
|
+
"headless-policy"?: boolean;
|
|
1962
|
+
redirect?: boolean;
|
|
1963
|
+
deliverables?: boolean;
|
|
1964
|
+
budget?: boolean;
|
|
1965
|
+
/**
|
|
1966
|
+
* Spend visibility beside the time budget; an optional soft ceiling injects a wrap-up reminder
|
|
1967
|
+
*/
|
|
1968
|
+
cost?: boolean | {
|
|
1969
|
+
max_usd?: number;
|
|
1970
|
+
};
|
|
1971
|
+
"durable-jobs"?: boolean;
|
|
1972
|
+
workers?: boolean;
|
|
1973
|
+
};
|
|
1942
1974
|
/**
|
|
1943
1975
|
* Provider access configuration for Ace or user-owned credentials.
|
|
1944
1976
|
*/
|
|
@@ -2057,7 +2089,7 @@ export type Config = {
|
|
|
2057
2089
|
*/
|
|
2058
2090
|
tailTokens?: number;
|
|
2059
2091
|
/**
|
|
2060
|
-
* How many
|
|
2092
|
+
* How many recent images travel in full with each model request; once the cap is exceeded the older half are released together and become text placeholders that can be read again (default: 20)
|
|
2061
2093
|
*/
|
|
2062
2094
|
recentImages?: number;
|
|
2063
2095
|
};
|
|
@@ -2185,6 +2217,7 @@ export type Model = {
|
|
|
2185
2217
|
[key: string]: string;
|
|
2186
2218
|
};
|
|
2187
2219
|
release_date: string;
|
|
2220
|
+
knowledge?: string;
|
|
2188
2221
|
reasoningOptions?: Array<{
|
|
2189
2222
|
[key: string]: unknown;
|
|
2190
2223
|
}>;
|
|
@@ -2588,11 +2621,14 @@ export type Agent = {
|
|
|
2588
2621
|
modelID: string;
|
|
2589
2622
|
providerID: string;
|
|
2590
2623
|
};
|
|
2624
|
+
variant?: string;
|
|
2591
2625
|
prompt?: string;
|
|
2592
2626
|
options: {
|
|
2593
2627
|
[key: string]: unknown;
|
|
2594
2628
|
};
|
|
2595
2629
|
steps?: number;
|
|
2630
|
+
skills?: Array<string>;
|
|
2631
|
+
unlocks?: Array<string>;
|
|
2596
2632
|
};
|
|
2597
2633
|
export type LspStatus = {
|
|
2598
2634
|
id: string;
|
|
@@ -7973,7 +8009,7 @@ export type ProjectWorkingRootsResponses = {
|
|
|
7973
8009
|
path: string;
|
|
7974
8010
|
access: "read" | "write";
|
|
7975
8011
|
scope: "once" | "session" | "project" | "installation";
|
|
7976
|
-
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff";
|
|
8012
|
+
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff" | "parent";
|
|
7977
8013
|
time: {
|
|
7978
8014
|
created: number;
|
|
7979
8015
|
consumed?: number;
|
|
@@ -9372,7 +9408,7 @@ export type SessionFilesystemListResponses = {
|
|
|
9372
9408
|
path: string;
|
|
9373
9409
|
access: "read" | "write";
|
|
9374
9410
|
scope: "once" | "session" | "project" | "installation";
|
|
9375
|
-
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff";
|
|
9411
|
+
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff" | "parent";
|
|
9376
9412
|
time: {
|
|
9377
9413
|
created: number;
|
|
9378
9414
|
consumed?: number;
|
|
@@ -9438,7 +9474,7 @@ export type SessionFilesystemGrantResponses = {
|
|
|
9438
9474
|
path: string;
|
|
9439
9475
|
access: "read" | "write";
|
|
9440
9476
|
scope: "once" | "session" | "project" | "installation";
|
|
9441
|
-
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff";
|
|
9477
|
+
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff" | "parent";
|
|
9442
9478
|
time: {
|
|
9443
9479
|
created: number;
|
|
9444
9480
|
consumed?: number;
|
|
@@ -9485,7 +9521,7 @@ export type SessionFilesystemWorkingRootResponses = {
|
|
|
9485
9521
|
path: string;
|
|
9486
9522
|
access: "read" | "write";
|
|
9487
9523
|
scope: "once" | "session" | "project" | "installation";
|
|
9488
|
-
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff";
|
|
9524
|
+
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff" | "parent";
|
|
9489
9525
|
time: {
|
|
9490
9526
|
created: number;
|
|
9491
9527
|
consumed?: number;
|
|
@@ -9548,7 +9584,7 @@ export type SessionFilesystemRevokeResponses = {
|
|
|
9548
9584
|
path: string;
|
|
9549
9585
|
access: "read" | "write";
|
|
9550
9586
|
scope: "once" | "session" | "project" | "installation";
|
|
9551
|
-
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff";
|
|
9587
|
+
source: "workspace" | "project" | "skill" | "permission" | "api" | "tool" | "handoff" | "parent";
|
|
9552
9588
|
time: {
|
|
9553
9589
|
created: number;
|
|
9554
9590
|
consumed?: number;
|
|
@@ -9787,6 +9823,7 @@ export type SessionPromptData = {
|
|
|
9787
9823
|
variant?: string;
|
|
9788
9824
|
tier?: string;
|
|
9789
9825
|
context?: number;
|
|
9826
|
+
deadline?: number;
|
|
9790
9827
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | ConversationPartInput | SubtaskPartInput>;
|
|
9791
9828
|
};
|
|
9792
9829
|
path: {
|
|
@@ -9966,6 +10003,7 @@ export type SessionPromptAsyncData = {
|
|
|
9966
10003
|
variant?: string;
|
|
9967
10004
|
tier?: string;
|
|
9968
10005
|
context?: number;
|
|
10006
|
+
deadline?: number;
|
|
9969
10007
|
parts: Array<TextPartInput | FilePartInput | AgentPartInput | ConversationPartInput | SubtaskPartInput>;
|
|
9970
10008
|
};
|
|
9971
10009
|
path: {
|