opencode-agent[bot] 4 месяцев назад
Родитель
Сommit
ae8904c4ff
2 измененных файлов с 19 добавлено и 2 удалено
  1. 1 1
      packages/sdk/js/src/v2/gen/types.gen.ts
  2. 18 1
      packages/sdk/openapi.json

+ 1 - 1
packages/sdk/js/src/v2/gen/types.gen.ts

@@ -3285,7 +3285,7 @@ export type SessionListData = {
   path?: never
   path?: never
   query?: {
   query?: {
     /**
     /**
-     * Filter sessions by project directory
+     * Filter sessions by directory
      */
      */
     directory?: string
     directory?: string
     workspace?: string
     workspace?: string

+ 18 - 1
packages/sdk/openapi.json

@@ -2311,7 +2311,7 @@
             "schema": {
             "schema": {
               "type": "string"
               "type": "string"
             },
             },
-            "description": "Filter sessions by project directory"
+            "description": "Filter sessions by directory"
           },
           },
           {
           {
             "in": "query",
             "in": "query",
@@ -2320,6 +2320,23 @@
               "type": "string"
               "type": "string"
             }
             }
           },
           },
+          {
+            "in": "query",
+            "name": "scope",
+            "schema": {
+              "type": "string",
+              "enum": ["project"]
+            },
+            "description": "List all sessions for the current project"
+          },
+          {
+            "in": "query",
+            "name": "path",
+            "schema": {
+              "type": "string"
+            },
+            "description": "Filter sessions by project-relative path"
+          },
           {
           {
             "in": "query",
             "in": "query",
             "name": "roots",
             "name": "roots",