@opencode-ai/sdk 1.4.7 → 1.4.9

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.
@@ -446,7 +446,6 @@ export type EventWorkspaceStatus = {
446
446
  properties: {
447
447
  workspaceID: string;
448
448
  status: "connected" | "connecting" | "disconnected" | "error";
449
- error?: string;
450
449
  };
451
450
  };
452
451
  export type OutputFormatText = {
@@ -1333,7 +1332,7 @@ export type Config = {
1333
1332
  enabled: boolean;
1334
1333
  };
1335
1334
  };
1336
- formatter?: false | {
1335
+ formatter?: boolean | {
1337
1336
  [key: string]: {
1338
1337
  disabled?: boolean;
1339
1338
  command?: Array<string>;
@@ -1343,7 +1342,7 @@ export type Config = {
1343
1342
  extensions?: Array<string>;
1344
1343
  };
1345
1344
  };
1346
- lsp?: false | {
1345
+ lsp?: boolean | {
1347
1346
  [key: string]: {
1348
1347
  disabled: true;
1349
1348
  } | {
@@ -1439,6 +1438,15 @@ export type WellKnownAuth = {
1439
1438
  token: string;
1440
1439
  };
1441
1440
  export type Auth = OAuth | ApiAuth | WellKnownAuth;
1441
+ export type Workspace = {
1442
+ id: string;
1443
+ type: string;
1444
+ name: string;
1445
+ branch: string | null;
1446
+ directory: string | null;
1447
+ extra: unknown | null;
1448
+ projectID: string;
1449
+ };
1442
1450
  export type NotFoundError = {
1443
1451
  name: "NotFoundError";
1444
1452
  data: {
@@ -1533,15 +1541,6 @@ export type ToolListItem = {
1533
1541
  parameters: unknown;
1534
1542
  };
1535
1543
  export type ToolList = Array<ToolListItem>;
1536
- export type Workspace = {
1537
- id: string;
1538
- type: string;
1539
- name: string;
1540
- branch: string | null;
1541
- directory: string | null;
1542
- extra: unknown | null;
1543
- projectID: string;
1544
- };
1545
1544
  export type Worktree = {
1546
1545
  name: string;
1547
1546
  branch: string;
@@ -1993,6 +1992,143 @@ export type AppLogResponses = {
1993
1992
  200: boolean;
1994
1993
  };
1995
1994
  export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
1995
+ export type ExperimentalWorkspaceAdaptorListData = {
1996
+ body?: never;
1997
+ path?: never;
1998
+ query?: {
1999
+ directory?: string;
2000
+ workspace?: string;
2001
+ };
2002
+ url: "/experimental/workspace/adaptor";
2003
+ };
2004
+ export type ExperimentalWorkspaceAdaptorListResponses = {
2005
+ /**
2006
+ * Workspace adaptors
2007
+ */
2008
+ 200: Array<{
2009
+ type: string;
2010
+ name: string;
2011
+ description: string;
2012
+ }>;
2013
+ };
2014
+ export type ExperimentalWorkspaceAdaptorListResponse = ExperimentalWorkspaceAdaptorListResponses[keyof ExperimentalWorkspaceAdaptorListResponses];
2015
+ export type ExperimentalWorkspaceListData = {
2016
+ body?: never;
2017
+ path?: never;
2018
+ query?: {
2019
+ directory?: string;
2020
+ workspace?: string;
2021
+ };
2022
+ url: "/experimental/workspace";
2023
+ };
2024
+ export type ExperimentalWorkspaceListResponses = {
2025
+ /**
2026
+ * Workspaces
2027
+ */
2028
+ 200: Array<Workspace>;
2029
+ };
2030
+ export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses];
2031
+ export type ExperimentalWorkspaceCreateData = {
2032
+ body?: {
2033
+ id?: string;
2034
+ type: string;
2035
+ branch: string | null;
2036
+ extra: unknown | null;
2037
+ };
2038
+ path?: never;
2039
+ query?: {
2040
+ directory?: string;
2041
+ workspace?: string;
2042
+ };
2043
+ url: "/experimental/workspace";
2044
+ };
2045
+ export type ExperimentalWorkspaceCreateErrors = {
2046
+ /**
2047
+ * Bad request
2048
+ */
2049
+ 400: BadRequestError;
2050
+ };
2051
+ export type ExperimentalWorkspaceCreateError = ExperimentalWorkspaceCreateErrors[keyof ExperimentalWorkspaceCreateErrors];
2052
+ export type ExperimentalWorkspaceCreateResponses = {
2053
+ /**
2054
+ * Workspace created
2055
+ */
2056
+ 200: Workspace;
2057
+ };
2058
+ export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
2059
+ export type ExperimentalWorkspaceStatusData = {
2060
+ body?: never;
2061
+ path?: never;
2062
+ query?: {
2063
+ directory?: string;
2064
+ workspace?: string;
2065
+ };
2066
+ url: "/experimental/workspace/status";
2067
+ };
2068
+ export type ExperimentalWorkspaceStatusResponses = {
2069
+ /**
2070
+ * Workspace status
2071
+ */
2072
+ 200: Array<{
2073
+ workspaceID: string;
2074
+ status: "connected" | "connecting" | "disconnected" | "error";
2075
+ }>;
2076
+ };
2077
+ export type ExperimentalWorkspaceStatusResponse = ExperimentalWorkspaceStatusResponses[keyof ExperimentalWorkspaceStatusResponses];
2078
+ export type ExperimentalWorkspaceRemoveData = {
2079
+ body?: never;
2080
+ path: {
2081
+ id: string;
2082
+ };
2083
+ query?: {
2084
+ directory?: string;
2085
+ workspace?: string;
2086
+ };
2087
+ url: "/experimental/workspace/{id}";
2088
+ };
2089
+ export type ExperimentalWorkspaceRemoveErrors = {
2090
+ /**
2091
+ * Bad request
2092
+ */
2093
+ 400: BadRequestError;
2094
+ };
2095
+ export type ExperimentalWorkspaceRemoveError = ExperimentalWorkspaceRemoveErrors[keyof ExperimentalWorkspaceRemoveErrors];
2096
+ export type ExperimentalWorkspaceRemoveResponses = {
2097
+ /**
2098
+ * Workspace removed
2099
+ */
2100
+ 200: Workspace;
2101
+ };
2102
+ export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses];
2103
+ export type ExperimentalWorkspaceSessionRestoreData = {
2104
+ body?: {
2105
+ sessionID: string;
2106
+ };
2107
+ path: {
2108
+ id: string;
2109
+ };
2110
+ query?: {
2111
+ directory?: string;
2112
+ workspace?: string;
2113
+ };
2114
+ url: "/experimental/workspace/{id}/session-restore";
2115
+ };
2116
+ export type ExperimentalWorkspaceSessionRestoreErrors = {
2117
+ /**
2118
+ * Bad request
2119
+ */
2120
+ 400: BadRequestError;
2121
+ };
2122
+ export type ExperimentalWorkspaceSessionRestoreError = ExperimentalWorkspaceSessionRestoreErrors[keyof ExperimentalWorkspaceSessionRestoreErrors];
2123
+ export type ExperimentalWorkspaceSessionRestoreResponses = {
2124
+ /**
2125
+ * Session replay started
2126
+ */
2127
+ 200: {
2128
+ total: number;
2129
+ };
2130
+ };
2131
+ export type ExperimentalWorkspaceSessionRestoreResponse = ExperimentalWorkspaceSessionRestoreResponses[keyof ExperimentalWorkspaceSessionRestoreResponses];
1996
2132
  export type ProjectListData = {
1997
2133
  body?: never;
1998
2134
  path?: never;
@@ -2408,144 +2544,6 @@ export type ToolListResponses = {
2408
2544
  200: ToolList;
2409
2545
  };
2410
2546
  export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
2411
- export type ExperimentalWorkspaceAdaptorListData = {
2412
- body?: never;
2413
- path?: never;
2414
- query?: {
2415
- directory?: string;
2416
- workspace?: string;
2417
- };
2418
- url: "/experimental/workspace/adaptor";
2419
- };
2420
- export type ExperimentalWorkspaceAdaptorListResponses = {
2421
- /**
2422
- * Workspace adaptors
2423
- */
2424
- 200: Array<{
2425
- type: string;
2426
- name: string;
2427
- description: string;
2428
- }>;
2429
- };
2430
- export type ExperimentalWorkspaceAdaptorListResponse = ExperimentalWorkspaceAdaptorListResponses[keyof ExperimentalWorkspaceAdaptorListResponses];
2431
- export type ExperimentalWorkspaceListData = {
2432
- body?: never;
2433
- path?: never;
2434
- query?: {
2435
- directory?: string;
2436
- workspace?: string;
2437
- };
2438
- url: "/experimental/workspace";
2439
- };
2440
- export type ExperimentalWorkspaceListResponses = {
2441
- /**
2442
- * Workspaces
2443
- */
2444
- 200: Array<Workspace>;
2445
- };
2446
- export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses];
2447
- export type ExperimentalWorkspaceCreateData = {
2448
- body?: {
2449
- id?: string;
2450
- type: string;
2451
- branch: string | null;
2452
- extra: unknown | null;
2453
- };
2454
- path?: never;
2455
- query?: {
2456
- directory?: string;
2457
- workspace?: string;
2458
- };
2459
- url: "/experimental/workspace";
2460
- };
2461
- export type ExperimentalWorkspaceCreateErrors = {
2462
- /**
2463
- * Bad request
2464
- */
2465
- 400: BadRequestError;
2466
- };
2467
- export type ExperimentalWorkspaceCreateError = ExperimentalWorkspaceCreateErrors[keyof ExperimentalWorkspaceCreateErrors];
2468
- export type ExperimentalWorkspaceCreateResponses = {
2469
- /**
2470
- * Workspace created
2471
- */
2472
- 200: Workspace;
2473
- };
2474
- export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
2475
- export type ExperimentalWorkspaceStatusData = {
2476
- body?: never;
2477
- path?: never;
2478
- query?: {
2479
- directory?: string;
2480
- workspace?: string;
2481
- };
2482
- url: "/experimental/workspace/status";
2483
- };
2484
- export type ExperimentalWorkspaceStatusResponses = {
2485
- /**
2486
- * Workspace status
2487
- */
2488
- 200: Array<{
2489
- workspaceID: string;
2490
- status: "connected" | "connecting" | "disconnected" | "error";
2491
- error?: string;
2492
- }>;
2493
- };
2494
- export type ExperimentalWorkspaceStatusResponse = ExperimentalWorkspaceStatusResponses[keyof ExperimentalWorkspaceStatusResponses];
2495
- export type ExperimentalWorkspaceRemoveData = {
2496
- body?: never;
2497
- path: {
2498
- id: string;
2499
- };
2500
- query?: {
2501
- directory?: string;
2502
- workspace?: string;
2503
- };
2504
- url: "/experimental/workspace/{id}";
2505
- };
2506
- export type ExperimentalWorkspaceRemoveErrors = {
2507
- /**
2508
- * Bad request
2509
- */
2510
- 400: BadRequestError;
2511
- };
2512
- export type ExperimentalWorkspaceRemoveError = ExperimentalWorkspaceRemoveErrors[keyof ExperimentalWorkspaceRemoveErrors];
2513
- export type ExperimentalWorkspaceRemoveResponses = {
2514
- /**
2515
- * Workspace removed
2516
- */
2517
- 200: Workspace;
2518
- };
2519
- export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses];
2520
- export type ExperimentalWorkspaceSessionRestoreData = {
2521
- body?: {
2522
- sessionID: string;
2523
- };
2524
- path: {
2525
- id: string;
2526
- };
2527
- query?: {
2528
- directory?: string;
2529
- workspace?: string;
2530
- };
2531
- url: "/experimental/workspace/{id}/session-restore";
2532
- };
2533
- export type ExperimentalWorkspaceSessionRestoreErrors = {
2534
- /**
2535
- * Bad request
2536
- */
2537
- 400: BadRequestError;
2538
- };
2539
- export type ExperimentalWorkspaceSessionRestoreError = ExperimentalWorkspaceSessionRestoreErrors[keyof ExperimentalWorkspaceSessionRestoreErrors];
2540
- export type ExperimentalWorkspaceSessionRestoreResponses = {
2541
- /**
2542
- * Session replay started
2543
- */
2544
- 200: {
2545
- total: number;
2546
- };
2547
- };
2548
- export type ExperimentalWorkspaceSessionRestoreResponse = ExperimentalWorkspaceSessionRestoreResponses[keyof ExperimentalWorkspaceSessionRestoreResponses];
2549
2547
  export type WorktreeRemoveData = {
2550
2548
  body?: WorktreeRemoveInput;
2551
2549
  path?: never;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "1.4.7",
4
+ "version": "1.4.9",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {