@opencode-ai/sdk 0.0.0-dev-202606020339 → 0.0.0-dev-202606020438

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.
@@ -2062,7 +2062,7 @@ export type SessionBusyError = {
2062
2062
  message: string;
2063
2063
  };
2064
2064
  export type V2SessionsResponse = {
2065
- items: Array<SessionInfo>;
2065
+ items: Array<SessionV2Info>;
2066
2066
  cursor: {
2067
2067
  previous?: string;
2068
2068
  next?: string;
@@ -2825,12 +2825,14 @@ export type ConfigV2ExperimentalPolicy = {
2825
2825
  effect: PolicyEffect;
2826
2826
  resource: string;
2827
2827
  };
2828
- export type SessionInfo = {
2828
+ export type LocationRef = {
2829
+ directory: string;
2830
+ workspaceID?: string;
2831
+ };
2832
+ export type SessionV2Info = {
2829
2833
  id: string;
2830
2834
  parentID?: string;
2831
2835
  projectID: string;
2832
- workspaceID?: string;
2833
- path?: string;
2834
2836
  agent?: string;
2835
2837
  model?: {
2836
2838
  id: string;
@@ -2853,6 +2855,8 @@ export type SessionInfo = {
2853
2855
  archived?: number;
2854
2856
  };
2855
2857
  title: string;
2858
+ location: LocationRef;
2859
+ subpath?: string;
2856
2860
  };
2857
2861
  export type SessionDelivery = "immediate" | "deferred";
2858
2862
  export type SessionMessageAgentSwitched = {
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": "0.0.0-dev-202606020339",
4
+ "version": "0.0.0-dev-202606020438",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {