summaryrefslogtreecommitdiffhomepage
path: root/packages/sdk
diff options
context:
space:
mode:
authorJames Long <[email protected]>2026-04-28 11:51:24 -0400
committerGitHub <[email protected]>2026-04-28 11:51:24 -0400
commit2c2fc3499b3723a0595e1666b97207043913f2a8 (patch)
tree28f1919756eadf06335bb697d900cd9c18d91cc2 /packages/sdk
parentea3c6c34811de792ba6870766dd0a36f3a392bc6 (diff)
downloadopencode-2c2fc3499b3723a0595e1666b97207043913f2a8.tar.gz
opencode-2c2fc3499b3723a0595e1666b97207043913f2a8.zip
feat(core): store relative path for sessions (#24704)
Diffstat (limited to 'packages/sdk')
-rw-r--r--packages/sdk/js/src/v2/gen/types.gen.ts3
-rw-r--r--packages/sdk/openapi.json16
2 files changed, 19 insertions, 0 deletions
diff --git a/packages/sdk/js/src/v2/gen/types.gen.ts b/packages/sdk/js/src/v2/gen/types.gen.ts
index f003ef063..ed9954aec 100644
--- a/packages/sdk/js/src/v2/gen/types.gen.ts
+++ b/packages/sdk/js/src/v2/gen/types.gen.ts
@@ -936,6 +936,7 @@ export type Session = {
projectID: string
workspaceID?: string
directory: string
+ path?: string
parentID?: string
summary?: {
additions: number
@@ -1063,6 +1064,7 @@ export type SyncEventSessionUpdated = {
projectID?: string | null
workspaceID?: string | null
directory?: string | null
+ path?: string | null
parentID?: string | null
summary?: {
additions: number
@@ -1882,6 +1884,7 @@ export type GlobalSession = {
projectID: string
workspaceID?: string
directory: string
+ path?: string
parentID?: string
summary?: {
additions: number
diff --git a/packages/sdk/openapi.json b/packages/sdk/openapi.json
index c122037f4..ff0a5dc2e 100644
--- a/packages/sdk/openapi.json
+++ b/packages/sdk/openapi.json
@@ -10154,6 +10154,9 @@
"directory": {
"type": "string"
},
+ "path": {
+ "type": "string"
+ },
"parentID": {
"type": "string",
"pattern": "^ses.*"
@@ -10584,6 +10587,16 @@
}
]
},
+ "path": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
"parentID": {
"anyOf": [
{
@@ -12538,6 +12551,9 @@
"directory": {
"type": "string"
},
+ "path": {
+ "type": "string"
+ },
"parentID": {
"type": "string",
"pattern": "^ses.*"