@gitterm/sdk 0.0.7 → 0.0.8

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.
Files changed (2) hide show
  1. package/dist/types.d.ts +19 -1
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -115,6 +115,11 @@ type ExeDevResources = {
115
115
  memory?: string;
116
116
  disk?: string;
117
117
  };
118
+ /** E2B fixes CPU/RAM per template, so resources select a template build. */
119
+ type E2bResources = {
120
+ templateId?: string;
121
+ sshTemplateId?: string;
122
+ };
118
123
  export type WorkspaceProviderSelection = {
119
124
  type: "railway";
120
125
  providerId?: string;
@@ -137,7 +142,11 @@ export type WorkspaceProviderSelection = {
137
142
  } & Omit<ProviderSelectionBase, "machine"> & {
138
143
  machine?: FlexibleMachine<ExeDevResources>;
139
144
  }) | ({
140
- type: "e2b" | "ascii";
145
+ type: "e2b";
146
+ } & Omit<ProviderSelectionBase, "machine"> & {
147
+ machine?: FlexibleMachine<E2bResources>;
148
+ }) | ({
149
+ type: "ascii";
141
150
  } & ProviderSelectionBase) | {
142
151
  type: "cloudflare";
143
152
  providerId?: string;
@@ -149,7 +158,9 @@ export type WorkspaceCreateInput = {
149
158
  name?: string;
150
159
  repo: string;
151
160
  branch?: string;
161
+ /** Commit SHA to pin the checkout to after cloning `branch`/`checkoutRef`. */
152
162
  baseCommit?: string;
163
+ /** Branch or tag to clone when distinct from the display `branch`. Not a commit SHA — use `baseCommit` to pin a revision. */
153
164
  checkoutRef?: string;
154
165
  subdomain?: string;
155
166
  /** Stable agent key. Defaults to `opencode`. */
@@ -183,6 +194,12 @@ export type WorkspaceCreateInput = {
183
194
  }>;
184
195
  /** NPM package specs or plugin paths accepted by OpenCode. Pin versions for repeatable runs. */
185
196
  plugins?: string[];
197
+ /**
198
+ * OpenCode config (opencode.json keys) merged over your saved config for
199
+ * this workspace only. e.g. { permission: { edit: "allow", bash: "allow",
200
+ * webfetch: "allow" } } disables tool approval prompts in headless runs.
201
+ */
202
+ config?: Record<string, unknown>;
186
203
  };
187
204
  };
188
205
  export type WorkspaceRestartResult = {
@@ -232,6 +249,7 @@ export type AgentRunCreateInput = {
232
249
  };
233
250
  /** Wait for workspace setup commands before submitting the prompt. */
234
251
  waitForSetup?: boolean;
252
+ /** How long to wait for setup, in ms. Server maximum is 600000 (10 minutes). */
235
253
  setupTimeoutMs?: number;
236
254
  };
237
255
  export type AgentRunMessage = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitterm/sdk",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "files": [
5
5
  "dist"
6
6
  ],