@opencode-ai/sdk 1.14.29 → 1.14.31

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.
@@ -495,6 +495,8 @@ export declare class Session2 extends HeyApiClient {
495
495
  list<ThrowOnError extends boolean = false>(parameters?: {
496
496
  directory?: string;
497
497
  workspace?: string;
498
+ scope?: "project";
499
+ path?: string;
498
500
  roots?: boolean | "true" | "false";
499
501
  start?: number;
500
502
  search?: string;
@@ -980,6 +980,8 @@ export class Session2 extends HeyApiClient {
980
980
  args: [
981
981
  { in: "query", key: "directory" },
982
982
  { in: "query", key: "workspace" },
983
+ { in: "query", key: "scope" },
984
+ { in: "query", key: "path" },
983
985
  { in: "query", key: "roots" },
984
986
  { in: "query", key: "start" },
985
987
  { in: "query", key: "search" },
@@ -373,6 +373,34 @@ export type EventVcsBranchUpdated = {
373
373
  branch?: string;
374
374
  };
375
375
  };
376
+ export type EventWorkspaceReady = {
377
+ type: "workspace.ready";
378
+ properties: {
379
+ name: string;
380
+ };
381
+ };
382
+ export type EventWorkspaceFailed = {
383
+ type: "workspace.failed";
384
+ properties: {
385
+ message: string;
386
+ };
387
+ };
388
+ export type EventWorkspaceRestore = {
389
+ type: "workspace.restore";
390
+ properties: {
391
+ workspaceID: string;
392
+ sessionID: string;
393
+ total: number;
394
+ step: number;
395
+ };
396
+ };
397
+ export type EventWorkspaceStatus = {
398
+ type: "workspace.status";
399
+ properties: {
400
+ workspaceID: string;
401
+ status: "connected" | "connecting" | "disconnected" | "error";
402
+ };
403
+ };
376
404
  export type EventWorktreeReady = {
377
405
  type: "worktree.ready";
378
406
  properties: {
@@ -420,34 +448,6 @@ export type EventPtyDeleted = {
420
448
  id: string;
421
449
  };
422
450
  };
423
- export type EventWorkspaceReady = {
424
- type: "workspace.ready";
425
- properties: {
426
- name: string;
427
- };
428
- };
429
- export type EventWorkspaceFailed = {
430
- type: "workspace.failed";
431
- properties: {
432
- message: string;
433
- };
434
- };
435
- export type EventWorkspaceRestore = {
436
- type: "workspace.restore";
437
- properties: {
438
- workspaceID: string;
439
- sessionID: string;
440
- total: number;
441
- step: number;
442
- };
443
- };
444
- export type EventWorkspaceStatus = {
445
- type: "workspace.status";
446
- properties: {
447
- workspaceID: string;
448
- status: "connected" | "connecting" | "disconnected" | "error";
449
- };
450
- };
451
451
  export type OutputFormatText = {
452
452
  type: "text";
453
453
  };
@@ -952,7 +952,7 @@ export type GlobalEvent = {
952
952
  directory: string;
953
953
  project?: string;
954
954
  workspace?: string;
955
- payload: EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted;
955
+ payload: EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted;
956
956
  };
957
957
  /**
958
958
  * Log level
@@ -1001,7 +1001,6 @@ export type PermissionConfig = PermissionActionConfig | {
1001
1001
  question?: PermissionActionConfig;
1002
1002
  webfetch?: PermissionActionConfig;
1003
1003
  websearch?: PermissionActionConfig;
1004
- codesearch?: PermissionActionConfig;
1005
1004
  lsp?: PermissionRuleConfig;
1006
1005
  doom_loop?: PermissionActionConfig;
1007
1006
  skill?: PermissionRuleConfig;
@@ -1757,7 +1756,7 @@ export type File = {
1757
1756
  removed: number;
1758
1757
  status: "added" | "deleted" | "modified";
1759
1758
  };
1760
- export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted;
1759
+ export type Event = EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventFileEdited | EventFileWatcherUpdated | EventLspClientDiagnostics | EventLspUpdated | EventMessagePartDelta | EventPermissionAsked | EventPermissionReplied | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceRestore | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCreated | EventSessionUpdated | EventSessionDeleted;
1761
1760
  export type McpStatusConnected = {
1762
1761
  status: "connected";
1763
1762
  };
@@ -2747,10 +2746,18 @@ export type SessionListData = {
2747
2746
  path?: never;
2748
2747
  query?: {
2749
2748
  /**
2750
- * Filter sessions by project directory
2749
+ * Filter sessions by directory
2751
2750
  */
2752
2751
  directory?: string;
2753
2752
  workspace?: string;
2753
+ /**
2754
+ * List all sessions for the current project
2755
+ */
2756
+ scope?: "project";
2757
+ /**
2758
+ * Filter sessions by project-relative path
2759
+ */
2760
+ path?: string;
2754
2761
  /**
2755
2762
  * Only return root sessions (no parentID)
2756
2763
  */
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.14.29",
4
+ "version": "1.14.31",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {