@opencode-ai/sdk 1.1.31 → 1.1.33

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.
@@ -65,7 +65,7 @@ export declare class Project extends HeyApiClient {
65
65
  /**
66
66
  * Update project
67
67
  *
68
- * Update project properties such as name, icon and color.
68
+ * Update project properties such as name, icon, and commands.
69
69
  */
70
70
  update<ThrowOnError extends boolean = false>(parameters: {
71
71
  projectID: string;
@@ -76,6 +76,12 @@ export declare class Project extends HeyApiClient {
76
76
  override?: string;
77
77
  color?: string;
78
78
  };
79
+ commands?: {
80
+ /**
81
+ * Startup script to run when creating a new workspace (worktree)
82
+ */
83
+ start?: string;
84
+ };
79
85
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectUpdateResponses, ProjectUpdateErrors, ThrowOnError, "fields">;
80
86
  }
81
87
  export declare class Pty extends HeyApiClient {
@@ -212,7 +218,7 @@ export declare class Worktree extends HeyApiClient {
212
218
  /**
213
219
  * Create worktree
214
220
  *
215
- * Create a new git worktree for the current project.
221
+ * Create a new git worktree for the current project and run any configured startup scripts.
216
222
  */
217
223
  create<ThrowOnError extends boolean = false>(parameters?: {
218
224
  directory?: string;
@@ -86,7 +86,7 @@ export class Project extends HeyApiClient {
86
86
  /**
87
87
  * Update project
88
88
  *
89
- * Update project properties such as name, icon and color.
89
+ * Update project properties such as name, icon, and commands.
90
90
  */
91
91
  update(parameters, options) {
92
92
  const params = buildClientParams([parameters], [
@@ -96,6 +96,7 @@ export class Project extends HeyApiClient {
96
96
  { in: "query", key: "directory" },
97
97
  { in: "body", key: "name" },
98
98
  { in: "body", key: "icon" },
99
+ { in: "body", key: "commands" },
99
100
  ],
100
101
  },
101
102
  ]);
@@ -373,7 +374,7 @@ export class Worktree extends HeyApiClient {
373
374
  /**
374
375
  * Create worktree
375
376
  *
376
- * Create a new git worktree for the current project.
377
+ * Create a new git worktree for the current project and run any configured startup scripts.
377
378
  */
378
379
  create(parameters, options) {
379
380
  const params = buildClientParams([parameters], [
@@ -23,6 +23,12 @@ export type Project = {
23
23
  override?: string;
24
24
  color?: string;
25
25
  };
26
+ commands?: {
27
+ /**
28
+ * Startup script to run when creating a new workspace (worktree)
29
+ */
30
+ start?: string;
31
+ };
26
32
  time: {
27
33
  created: number;
28
34
  updated: number;
@@ -1694,6 +1700,9 @@ export type Worktree = {
1694
1700
  };
1695
1701
  export type WorktreeCreateInput = {
1696
1702
  name?: string;
1703
+ /**
1704
+ * Additional startup script to run after the project's start command
1705
+ */
1697
1706
  startCommand?: string;
1698
1707
  };
1699
1708
  export type WorktreeRemoveInput = {
@@ -1971,6 +1980,12 @@ export type ProjectUpdateData = {
1971
1980
  override?: string;
1972
1981
  color?: string;
1973
1982
  };
1983
+ commands?: {
1984
+ /**
1985
+ * Startup script to run when creating a new workspace (worktree)
1986
+ */
1987
+ start?: string;
1988
+ };
1974
1989
  };
1975
1990
  path: {
1976
1991
  projectID: string;
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.1.31",
4
+ "version": "1.1.33",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {