@opencode-ai/sdk 1.1.23 → 1.1.25

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.
@@ -52,6 +52,12 @@ export type EventLspUpdated = {
52
52
  [key: string]: unknown;
53
53
  };
54
54
  };
55
+ export type EventFileEdited = {
56
+ type: "file.edited";
57
+ properties: {
58
+ file: string;
59
+ };
60
+ };
55
61
  export type FileDiff = {
56
62
  file: string;
57
63
  before: string;
@@ -384,6 +390,10 @@ export type Part = TextPart | {
384
390
  prompt: string;
385
391
  description: string;
386
392
  agent: string;
393
+ model?: {
394
+ providerID: string;
395
+ modelID: string;
396
+ };
387
397
  command?: string;
388
398
  } | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
389
399
  export type EventMessagePartUpdated = {
@@ -520,12 +530,6 @@ export type EventSessionCompacted = {
520
530
  sessionID: string;
521
531
  };
522
532
  };
523
- export type EventFileEdited = {
524
- type: "file.edited";
525
- properties: {
526
- file: string;
527
- };
528
- };
529
533
  export type Todo = {
530
534
  /**
531
535
  * Brief description of the task
@@ -590,6 +594,13 @@ export type EventMcpToolsChanged = {
590
594
  server: string;
591
595
  };
592
596
  };
597
+ export type EventMcpBrowserOpenFailed = {
598
+ type: "mcp.browser.open.failed";
599
+ properties: {
600
+ mcpName: string;
601
+ url: string;
602
+ };
603
+ };
593
604
  export type EventCommandExecuted = {
594
605
  type: "command.executed";
595
606
  properties: {
@@ -716,19 +727,19 @@ export type EventPtyDeleted = {
716
727
  id: string;
717
728
  };
718
729
  };
719
- export type EventServerConnected = {
720
- type: "server.connected";
730
+ export type EventGlobalDisposed = {
731
+ type: "global.disposed";
721
732
  properties: {
722
733
  [key: string]: unknown;
723
734
  };
724
735
  };
725
- export type EventGlobalDisposed = {
726
- type: "global.disposed";
736
+ export type EventServerConnected = {
737
+ type: "server.connected";
727
738
  properties: {
728
739
  [key: string]: unknown;
729
740
  };
730
741
  };
731
- export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventFileEdited | EventTodoUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventServerConnected | EventGlobalDisposed;
742
+ export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventTodoUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventGlobalDisposed | EventServerConnected;
732
743
  export type GlobalEvent = {
733
744
  directory: string;
734
745
  payload: Event;
@@ -1330,6 +1341,10 @@ export type McpOAuthConfig = {
1330
1341
  * OAuth scopes to request during authorization
1331
1342
  */
1332
1343
  scope?: string;
1344
+ /**
1345
+ * OAuth redirect URI (default: http://127.0.0.1:19876/mcp/oauth/callback).
1346
+ */
1347
+ redirectUri?: string;
1333
1348
  };
1334
1349
  export type McpRemoteConfig = {
1335
1350
  /**
@@ -1459,7 +1474,7 @@ export type Config = {
1459
1474
  [key: string]: AgentConfig | undefined;
1460
1475
  };
1461
1476
  /**
1462
- * Agent configuration, see https://opencode.ai/docs/agent
1477
+ * Agent configuration, see https://opencode.ai/docs/agents
1463
1478
  */
1464
1479
  agent?: {
1465
1480
  plan?: AgentConfig;
@@ -1579,82 +1594,6 @@ export type Config = {
1579
1594
  mcp_timeout?: number;
1580
1595
  };
1581
1596
  };
1582
- export type ToolIds = Array<string>;
1583
- export type ToolListItem = {
1584
- id: string;
1585
- description: string;
1586
- parameters: unknown;
1587
- };
1588
- export type ToolList = Array<ToolListItem>;
1589
- export type Path = {
1590
- home: string;
1591
- state: string;
1592
- config: string;
1593
- worktree: string;
1594
- directory: string;
1595
- };
1596
- export type Worktree = {
1597
- name: string;
1598
- branch: string;
1599
- directory: string;
1600
- };
1601
- export type WorktreeCreateInput = {
1602
- name?: string;
1603
- startCommand?: string;
1604
- };
1605
- export type VcsInfo = {
1606
- branch: string;
1607
- };
1608
- export type TextPartInput = {
1609
- id?: string;
1610
- type: "text";
1611
- text: string;
1612
- synthetic?: boolean;
1613
- ignored?: boolean;
1614
- time?: {
1615
- start: number;
1616
- end?: number;
1617
- };
1618
- metadata?: {
1619
- [key: string]: unknown;
1620
- };
1621
- };
1622
- export type FilePartInput = {
1623
- id?: string;
1624
- type: "file";
1625
- mime: string;
1626
- filename?: string;
1627
- url: string;
1628
- source?: FilePartSource;
1629
- };
1630
- export type AgentPartInput = {
1631
- id?: string;
1632
- type: "agent";
1633
- name: string;
1634
- source?: {
1635
- value: string;
1636
- start: number;
1637
- end: number;
1638
- };
1639
- };
1640
- export type SubtaskPartInput = {
1641
- id?: string;
1642
- type: "subtask";
1643
- prompt: string;
1644
- description: string;
1645
- agent: string;
1646
- command?: string;
1647
- };
1648
- export type Command = {
1649
- name: string;
1650
- description?: string;
1651
- agent?: string;
1652
- model?: string;
1653
- mcp?: boolean;
1654
- template: string;
1655
- subtask?: boolean;
1656
- hints: Array<string>;
1657
- };
1658
1597
  export type Model = {
1659
1598
  id: string;
1660
1599
  providerID: string;
@@ -1736,6 +1675,73 @@ export type Provider = {
1736
1675
  [key: string]: Model;
1737
1676
  };
1738
1677
  };
1678
+ export type ToolIds = Array<string>;
1679
+ export type ToolListItem = {
1680
+ id: string;
1681
+ description: string;
1682
+ parameters: unknown;
1683
+ };
1684
+ export type ToolList = Array<ToolListItem>;
1685
+ export type Worktree = {
1686
+ name: string;
1687
+ branch: string;
1688
+ directory: string;
1689
+ };
1690
+ export type WorktreeCreateInput = {
1691
+ name?: string;
1692
+ startCommand?: string;
1693
+ };
1694
+ export type McpResource = {
1695
+ name: string;
1696
+ uri: string;
1697
+ description?: string;
1698
+ mimeType?: string;
1699
+ client: string;
1700
+ };
1701
+ export type TextPartInput = {
1702
+ id?: string;
1703
+ type: "text";
1704
+ text: string;
1705
+ synthetic?: boolean;
1706
+ ignored?: boolean;
1707
+ time?: {
1708
+ start: number;
1709
+ end?: number;
1710
+ };
1711
+ metadata?: {
1712
+ [key: string]: unknown;
1713
+ };
1714
+ };
1715
+ export type FilePartInput = {
1716
+ id?: string;
1717
+ type: "file";
1718
+ mime: string;
1719
+ filename?: string;
1720
+ url: string;
1721
+ source?: FilePartSource;
1722
+ };
1723
+ export type AgentPartInput = {
1724
+ id?: string;
1725
+ type: "agent";
1726
+ name: string;
1727
+ source?: {
1728
+ value: string;
1729
+ start: number;
1730
+ end: number;
1731
+ };
1732
+ };
1733
+ export type SubtaskPartInput = {
1734
+ id?: string;
1735
+ type: "subtask";
1736
+ prompt: string;
1737
+ description: string;
1738
+ agent: string;
1739
+ model?: {
1740
+ providerID: string;
1741
+ modelID: string;
1742
+ };
1743
+ command?: string;
1744
+ };
1739
1745
  export type ProviderAuthMethod = {
1740
1746
  type: "oauth" | "api";
1741
1747
  label: string;
@@ -1787,26 +1793,6 @@ export type File = {
1787
1793
  removed: number;
1788
1794
  status: "added" | "deleted" | "modified";
1789
1795
  };
1790
- export type Agent = {
1791
- name: string;
1792
- description?: string;
1793
- mode: "subagent" | "primary" | "all";
1794
- native?: boolean;
1795
- hidden?: boolean;
1796
- topP?: number;
1797
- temperature?: number;
1798
- color?: string;
1799
- permission: PermissionRuleset;
1800
- model?: {
1801
- modelID: string;
1802
- providerID: string;
1803
- };
1804
- prompt?: string;
1805
- options: {
1806
- [key: string]: unknown;
1807
- };
1808
- steps?: number;
1809
- };
1810
1796
  export type McpStatusConnected = {
1811
1797
  status: "connected";
1812
1798
  };
@@ -1825,12 +1811,45 @@ export type McpStatusNeedsClientRegistration = {
1825
1811
  error: string;
1826
1812
  };
1827
1813
  export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth | McpStatusNeedsClientRegistration;
1828
- export type McpResource = {
1814
+ export type Path = {
1815
+ home: string;
1816
+ state: string;
1817
+ config: string;
1818
+ worktree: string;
1819
+ directory: string;
1820
+ };
1821
+ export type VcsInfo = {
1822
+ branch: string;
1823
+ };
1824
+ export type Command = {
1829
1825
  name: string;
1830
- uri: string;
1831
1826
  description?: string;
1832
- mimeType?: string;
1833
- client: string;
1827
+ agent?: string;
1828
+ model?: string;
1829
+ mcp?: boolean;
1830
+ template: string;
1831
+ subtask?: boolean;
1832
+ hints: Array<string>;
1833
+ };
1834
+ export type Agent = {
1835
+ name: string;
1836
+ description?: string;
1837
+ mode: "subagent" | "primary" | "all";
1838
+ native?: boolean;
1839
+ hidden?: boolean;
1840
+ topP?: number;
1841
+ temperature?: number;
1842
+ color?: string;
1843
+ permission: PermissionRuleset;
1844
+ model?: {
1845
+ modelID: string;
1846
+ providerID: string;
1847
+ };
1848
+ prompt?: string;
1849
+ options: {
1850
+ [key: string]: unknown;
1851
+ };
1852
+ steps?: number;
1834
1853
  };
1835
1854
  export type LspStatus = {
1836
1855
  id: string;
@@ -2151,6 +2170,26 @@ export type ConfigUpdateResponses = {
2151
2170
  200: Config;
2152
2171
  };
2153
2172
  export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses];
2173
+ export type ConfigProvidersData = {
2174
+ body?: never;
2175
+ path?: never;
2176
+ query?: {
2177
+ directory?: string;
2178
+ };
2179
+ url: "/config/providers";
2180
+ };
2181
+ export type ConfigProvidersResponses = {
2182
+ /**
2183
+ * List of providers
2184
+ */
2185
+ 200: {
2186
+ providers: Array<Provider>;
2187
+ default: {
2188
+ [key: string]: string;
2189
+ };
2190
+ };
2191
+ };
2192
+ export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses];
2154
2193
  export type ToolIdsData = {
2155
2194
  body?: never;
2156
2195
  path?: never;
@@ -2197,37 +2236,7 @@ export type ToolListResponses = {
2197
2236
  200: ToolList;
2198
2237
  };
2199
2238
  export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
2200
- export type InstanceDisposeData = {
2201
- body?: never;
2202
- path?: never;
2203
- query?: {
2204
- directory?: string;
2205
- };
2206
- url: "/instance/dispose";
2207
- };
2208
- export type InstanceDisposeResponses = {
2209
- /**
2210
- * Instance disposed
2211
- */
2212
- 200: boolean;
2213
- };
2214
- export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses];
2215
- export type PathGetData = {
2216
- body?: never;
2217
- path?: never;
2218
- query?: {
2219
- directory?: string;
2220
- };
2221
- url: "/path";
2222
- };
2223
- export type PathGetResponses = {
2224
- /**
2225
- * Path
2226
- */
2227
- 200: Path;
2228
- };
2229
- export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
2230
- export type WorktreeListData = {
2239
+ export type WorktreeListData = {
2231
2240
  body?: never;
2232
2241
  path?: never;
2233
2242
  query?: {
@@ -2264,21 +2273,23 @@ export type WorktreeCreateResponses = {
2264
2273
  200: Worktree;
2265
2274
  };
2266
2275
  export type WorktreeCreateResponse = WorktreeCreateResponses[keyof WorktreeCreateResponses];
2267
- export type VcsGetData = {
2276
+ export type ExperimentalResourceListData = {
2268
2277
  body?: never;
2269
2278
  path?: never;
2270
2279
  query?: {
2271
2280
  directory?: string;
2272
2281
  };
2273
- url: "/vcs";
2282
+ url: "/experimental/resource";
2274
2283
  };
2275
- export type VcsGetResponses = {
2284
+ export type ExperimentalResourceListResponses = {
2276
2285
  /**
2277
- * VCS info
2286
+ * MCP resources
2278
2287
  */
2279
- 200: VcsInfo;
2288
+ 200: {
2289
+ [key: string]: McpResource;
2290
+ };
2280
2291
  };
2281
- export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
2292
+ export type ExperimentalResourceListResponse = ExperimentalResourceListResponses[keyof ExperimentalResourceListResponses];
2282
2293
  export type SessionListData = {
2283
2294
  body?: never;
2284
2295
  path?: never;
@@ -2652,9 +2663,6 @@ export type SessionShareResponse = SessionShareResponses[keyof SessionShareRespo
2652
2663
  export type SessionDiffData = {
2653
2664
  body?: never;
2654
2665
  path: {
2655
- /**
2656
- * Session ID
2657
- */
2658
2666
  sessionID: string;
2659
2667
  };
2660
2668
  query?: {
@@ -2663,20 +2671,9 @@ export type SessionDiffData = {
2663
2671
  };
2664
2672
  url: "/session/{sessionID}/diff";
2665
2673
  };
2666
- export type SessionDiffErrors = {
2667
- /**
2668
- * Bad request
2669
- */
2670
- 400: BadRequestError;
2671
- /**
2672
- * Not found
2673
- */
2674
- 404: NotFoundError;
2675
- };
2676
- export type SessionDiffError = SessionDiffErrors[keyof SessionDiffErrors];
2677
2674
  export type SessionDiffResponses = {
2678
2675
  /**
2679
- * List of diffs
2676
+ * Successfully retrieved diff
2680
2677
  */
2681
2678
  200: Array<FileDiff>;
2682
2679
  };
@@ -3265,41 +3262,6 @@ export type QuestionRejectResponses = {
3265
3262
  200: boolean;
3266
3263
  };
3267
3264
  export type QuestionRejectResponse = QuestionRejectResponses[keyof QuestionRejectResponses];
3268
- export type CommandListData = {
3269
- body?: never;
3270
- path?: never;
3271
- query?: {
3272
- directory?: string;
3273
- };
3274
- url: "/command";
3275
- };
3276
- export type CommandListResponses = {
3277
- /**
3278
- * List of commands
3279
- */
3280
- 200: Array<Command>;
3281
- };
3282
- export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
3283
- export type ConfigProvidersData = {
3284
- body?: never;
3285
- path?: never;
3286
- query?: {
3287
- directory?: string;
3288
- };
3289
- url: "/config/providers";
3290
- };
3291
- export type ConfigProvidersResponses = {
3292
- /**
3293
- * List of providers
3294
- */
3295
- 200: {
3296
- providers: Array<Provider>;
3297
- default: {
3298
- [key: string]: string;
3299
- };
3300
- };
3301
- };
3302
- export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses];
3303
3265
  export type ProviderListData = {
3304
3266
  body?: never;
3305
3267
  path?: never;
@@ -3578,62 +3540,6 @@ export type FileStatusResponses = {
3578
3540
  200: Array<File>;
3579
3541
  };
3580
3542
  export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses];
3581
- export type AppLogData = {
3582
- body?: {
3583
- /**
3584
- * Service name for the log entry
3585
- */
3586
- service: string;
3587
- /**
3588
- * Log level
3589
- */
3590
- level: "debug" | "info" | "error" | "warn";
3591
- /**
3592
- * Log message
3593
- */
3594
- message: string;
3595
- /**
3596
- * Additional metadata for the log entry
3597
- */
3598
- extra?: {
3599
- [key: string]: unknown;
3600
- };
3601
- };
3602
- path?: never;
3603
- query?: {
3604
- directory?: string;
3605
- };
3606
- url: "/log";
3607
- };
3608
- export type AppLogErrors = {
3609
- /**
3610
- * Bad request
3611
- */
3612
- 400: BadRequestError;
3613
- };
3614
- export type AppLogError = AppLogErrors[keyof AppLogErrors];
3615
- export type AppLogResponses = {
3616
- /**
3617
- * Log entry written successfully
3618
- */
3619
- 200: boolean;
3620
- };
3621
- export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
3622
- export type AppAgentsData = {
3623
- body?: never;
3624
- path?: never;
3625
- query?: {
3626
- directory?: string;
3627
- };
3628
- url: "/agent";
3629
- };
3630
- export type AppAgentsResponses = {
3631
- /**
3632
- * List of agents
3633
- */
3634
- 200: Array<Agent>;
3635
- };
3636
- export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
3637
3543
  export type McpStatusData = {
3638
3544
  body?: never;
3639
3545
  path?: never;
@@ -3832,53 +3738,6 @@ export type McpDisconnectResponses = {
3832
3738
  200: boolean;
3833
3739
  };
3834
3740
  export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
3835
- export type ExperimentalResourceListData = {
3836
- body?: never;
3837
- path?: never;
3838
- query?: {
3839
- directory?: string;
3840
- };
3841
- url: "/experimental/resource";
3842
- };
3843
- export type ExperimentalResourceListResponses = {
3844
- /**
3845
- * MCP resources
3846
- */
3847
- 200: {
3848
- [key: string]: McpResource;
3849
- };
3850
- };
3851
- export type ExperimentalResourceListResponse = ExperimentalResourceListResponses[keyof ExperimentalResourceListResponses];
3852
- export type LspStatusData = {
3853
- body?: never;
3854
- path?: never;
3855
- query?: {
3856
- directory?: string;
3857
- };
3858
- url: "/lsp";
3859
- };
3860
- export type LspStatusResponses = {
3861
- /**
3862
- * LSP server status
3863
- */
3864
- 200: Array<LspStatus>;
3865
- };
3866
- export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses];
3867
- export type FormatterStatusData = {
3868
- body?: never;
3869
- path?: never;
3870
- query?: {
3871
- directory?: string;
3872
- };
3873
- url: "/formatter";
3874
- };
3875
- export type FormatterStatusResponses = {
3876
- /**
3877
- * Formatter status
3878
- */
3879
- 200: Array<FormatterStatus>;
3880
- };
3881
- export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
3882
3741
  export type TuiAppendPromptData = {
3883
3742
  body?: {
3884
3743
  text: string;
@@ -4126,6 +3985,171 @@ export type TuiControlResponseResponses = {
4126
3985
  200: boolean;
4127
3986
  };
4128
3987
  export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses];
3988
+ export type InstanceDisposeData = {
3989
+ body?: never;
3990
+ path?: never;
3991
+ query?: {
3992
+ directory?: string;
3993
+ };
3994
+ url: "/instance/dispose";
3995
+ };
3996
+ export type InstanceDisposeResponses = {
3997
+ /**
3998
+ * Instance disposed
3999
+ */
4000
+ 200: boolean;
4001
+ };
4002
+ export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses];
4003
+ export type PathGetData = {
4004
+ body?: never;
4005
+ path?: never;
4006
+ query?: {
4007
+ directory?: string;
4008
+ };
4009
+ url: "/path";
4010
+ };
4011
+ export type PathGetResponses = {
4012
+ /**
4013
+ * Path
4014
+ */
4015
+ 200: Path;
4016
+ };
4017
+ export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
4018
+ export type VcsGetData = {
4019
+ body?: never;
4020
+ path?: never;
4021
+ query?: {
4022
+ directory?: string;
4023
+ };
4024
+ url: "/vcs";
4025
+ };
4026
+ export type VcsGetResponses = {
4027
+ /**
4028
+ * VCS info
4029
+ */
4030
+ 200: VcsInfo;
4031
+ };
4032
+ export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
4033
+ export type CommandListData = {
4034
+ body?: never;
4035
+ path?: never;
4036
+ query?: {
4037
+ directory?: string;
4038
+ };
4039
+ url: "/command";
4040
+ };
4041
+ export type CommandListResponses = {
4042
+ /**
4043
+ * List of commands
4044
+ */
4045
+ 200: Array<Command>;
4046
+ };
4047
+ export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
4048
+ export type AppLogData = {
4049
+ body?: {
4050
+ /**
4051
+ * Service name for the log entry
4052
+ */
4053
+ service: string;
4054
+ /**
4055
+ * Log level
4056
+ */
4057
+ level: "debug" | "info" | "error" | "warn";
4058
+ /**
4059
+ * Log message
4060
+ */
4061
+ message: string;
4062
+ /**
4063
+ * Additional metadata for the log entry
4064
+ */
4065
+ extra?: {
4066
+ [key: string]: unknown;
4067
+ };
4068
+ };
4069
+ path?: never;
4070
+ query?: {
4071
+ directory?: string;
4072
+ };
4073
+ url: "/log";
4074
+ };
4075
+ export type AppLogErrors = {
4076
+ /**
4077
+ * Bad request
4078
+ */
4079
+ 400: BadRequestError;
4080
+ };
4081
+ export type AppLogError = AppLogErrors[keyof AppLogErrors];
4082
+ export type AppLogResponses = {
4083
+ /**
4084
+ * Log entry written successfully
4085
+ */
4086
+ 200: boolean;
4087
+ };
4088
+ export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
4089
+ export type AppAgentsData = {
4090
+ body?: never;
4091
+ path?: never;
4092
+ query?: {
4093
+ directory?: string;
4094
+ };
4095
+ url: "/agent";
4096
+ };
4097
+ export type AppAgentsResponses = {
4098
+ /**
4099
+ * List of agents
4100
+ */
4101
+ 200: Array<Agent>;
4102
+ };
4103
+ export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
4104
+ export type AppSkillsData = {
4105
+ body?: never;
4106
+ path?: never;
4107
+ query?: {
4108
+ directory?: string;
4109
+ };
4110
+ url: "/skill";
4111
+ };
4112
+ export type AppSkillsResponses = {
4113
+ /**
4114
+ * List of skills
4115
+ */
4116
+ 200: Array<{
4117
+ name: string;
4118
+ description: string;
4119
+ location: string;
4120
+ }>;
4121
+ };
4122
+ export type AppSkillsResponse = AppSkillsResponses[keyof AppSkillsResponses];
4123
+ export type LspStatusData = {
4124
+ body?: never;
4125
+ path?: never;
4126
+ query?: {
4127
+ directory?: string;
4128
+ };
4129
+ url: "/lsp";
4130
+ };
4131
+ export type LspStatusResponses = {
4132
+ /**
4133
+ * LSP server status
4134
+ */
4135
+ 200: Array<LspStatus>;
4136
+ };
4137
+ export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses];
4138
+ export type FormatterStatusData = {
4139
+ body?: never;
4140
+ path?: never;
4141
+ query?: {
4142
+ directory?: string;
4143
+ };
4144
+ url: "/formatter";
4145
+ };
4146
+ export type FormatterStatusResponses = {
4147
+ /**
4148
+ * Formatter status
4149
+ */
4150
+ 200: Array<FormatterStatus>;
4151
+ };
4152
+ export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
4129
4153
  export type AuthSetData = {
4130
4154
  body?: Auth;
4131
4155
  path: {