casedev 0.58.0 → 0.59.0

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 (75) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent/v1/chat/chat.d.mts +6 -7
  12. package/resources/agent/v1/chat/chat.d.mts.map +1 -1
  13. package/resources/agent/v1/chat/chat.d.ts +6 -7
  14. package/resources/agent/v1/chat/chat.d.ts.map +1 -1
  15. package/resources/agent/v1/chat/chat.js +5 -6
  16. package/resources/agent/v1/chat/chat.js.map +1 -1
  17. package/resources/agent/v1/chat/chat.mjs +5 -6
  18. package/resources/agent/v1/chat/chat.mjs.map +1 -1
  19. package/resources/agent/v1/run.d.mts +7 -3
  20. package/resources/agent/v1/run.d.mts.map +1 -1
  21. package/resources/agent/v1/run.d.ts +7 -3
  22. package/resources/agent/v1/run.d.ts.map +1 -1
  23. package/resources/index.d.mts +1 -0
  24. package/resources/index.d.mts.map +1 -1
  25. package/resources/index.d.ts +1 -0
  26. package/resources/index.d.ts.map +1 -1
  27. package/resources/index.js +3 -1
  28. package/resources/index.js.map +1 -1
  29. package/resources/index.mjs +1 -0
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/worker/index.d.mts +3 -0
  32. package/resources/worker/index.d.mts.map +1 -0
  33. package/resources/worker/index.d.ts +3 -0
  34. package/resources/worker/index.d.ts.map +1 -0
  35. package/resources/worker/index.js +9 -0
  36. package/resources/worker/index.js.map +1 -0
  37. package/resources/worker/index.mjs +4 -0
  38. package/resources/worker/index.mjs.map +1 -0
  39. package/resources/worker/v1.d.mts +62 -0
  40. package/resources/worker/v1.d.mts.map +1 -0
  41. package/resources/worker/v1.d.ts +62 -0
  42. package/resources/worker/v1.d.ts.map +1 -0
  43. package/resources/worker/v1.js +94 -0
  44. package/resources/worker/v1.js.map +1 -0
  45. package/resources/worker/v1.mjs +90 -0
  46. package/resources/worker/v1.mjs.map +1 -0
  47. package/resources/worker/worker.d.mts +10 -0
  48. package/resources/worker/worker.d.mts.map +1 -0
  49. package/resources/worker/worker.d.ts +10 -0
  50. package/resources/worker/worker.d.ts.map +1 -0
  51. package/resources/worker/worker.js +17 -0
  52. package/resources/worker/worker.js.map +1 -0
  53. package/resources/worker/worker.mjs +12 -0
  54. package/resources/worker/worker.mjs.map +1 -0
  55. package/resources/worker.d.mts +2 -0
  56. package/resources/worker.d.mts.map +1 -0
  57. package/resources/worker.d.ts +2 -0
  58. package/resources/worker.d.ts.map +1 -0
  59. package/resources/worker.js +6 -0
  60. package/resources/worker.js.map +1 -0
  61. package/resources/worker.mjs +3 -0
  62. package/resources/worker.mjs.map +1 -0
  63. package/src/client.ts +5 -0
  64. package/src/resources/agent/v1/chat/chat.ts +6 -7
  65. package/src/resources/agent/v1/run.ts +8 -3
  66. package/src/resources/index.ts +1 -0
  67. package/src/resources/worker/index.ts +11 -0
  68. package/src/resources/worker/v1.ts +130 -0
  69. package/src/resources/worker/worker.ts +29 -0
  70. package/src/resources/worker.ts +3 -0
  71. package/src/version.ts +1 -1
  72. package/version.d.mts +1 -1
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. package/version.mjs +1 -1
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Worker = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const V1API = tslib_1.__importStar(require("./v1.js"));
8
+ const v1_1 = require("./v1.js");
9
+ class Worker extends resource_1.APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.v1 = new V1API.V1(this._client);
13
+ }
14
+ }
15
+ exports.Worker = Worker;
16
+ Worker.V1 = v1_1.V1;
17
+ //# sourceMappingURL=worker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.js","sourceRoot":"","sources":["../../src/resources/worker/worker.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,uDAA8B;AAC9B,gCAOc;AAEd,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAFD,wBAEC;AAED,MAAM,CAAC,EAAE,GAAG,OAAE,CAAC"}
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as V1API from "./v1.mjs";
4
+ import { V1, } from "./v1.mjs";
5
+ export class Worker extends APIResource {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.v1 = new V1API.V1(this._client);
9
+ }
10
+ }
11
+ Worker.V1 = V1;
12
+ //# sourceMappingURL=worker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.mjs","sourceRoot":"","sources":["../../src/resources/worker/worker.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EACL,EAAE,GAMH;AAED,MAAM,OAAO,MAAO,SAAQ,WAAW;IAAvC;;QACE,OAAE,GAAa,IAAI,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;CAAA;AAED,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./worker/index.mjs";
2
+ //# sourceMappingURL=worker.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.d.mts","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from "./worker/index.js";
2
+ //# sourceMappingURL=worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ const tslib_1 = require("../internal/tslib.js");
5
+ tslib_1.__exportStar(require("./worker/index.js"), exports);
6
+ //# sourceMappingURL=worker.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.js","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4DAA+B"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./worker/index.mjs";
3
+ //# sourceMappingURL=worker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.mjs","sourceRoot":"","sources":["../src/resources/worker.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
package/src/client.ts CHANGED
@@ -65,6 +65,7 @@ import {
65
65
  } from './resources/vault/vault';
66
66
  import { Voice } from './resources/voice/voice';
67
67
  import { Webhooks } from './resources/webhooks/webhooks';
68
+ import { Worker } from './resources/worker/worker';
68
69
  import { type Fetch } from './internal/builtin-types';
69
70
  import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
70
71
  import { FinalRequestOptions, RequestOptions } from './internal/request-options';
@@ -803,6 +804,7 @@ export class Casedev {
803
804
  * Public system metadata and discovery endpoints
804
805
  */
805
806
  system: API.System = new API.System(this);
807
+ worker: API.Worker = new API.Worker(this);
806
808
  compute: API.Compute = new API.Compute(this);
807
809
  database: API.Database = new API.Database(this);
808
810
  format: API.Format = new API.Format(this);
@@ -834,6 +836,7 @@ export class Casedev {
834
836
 
835
837
  Casedev.Agent = Agent;
836
838
  Casedev.System = System;
839
+ Casedev.Worker = Worker;
837
840
  Casedev.Compute = Compute;
838
841
  Casedev.Database = Database;
839
842
  Casedev.Format = Format;
@@ -860,6 +863,8 @@ export declare namespace Casedev {
860
863
 
861
864
  export { System as System, type SystemListServicesResponse as SystemListServicesResponse };
862
865
 
866
+ export { Worker as Worker };
867
+
863
868
  export { Compute as Compute };
864
869
 
865
870
  export { Database as Database };
@@ -16,9 +16,8 @@ export class Chat extends APIResource {
16
16
  files: FilesAPI.Files = new FilesAPI.Files(this._client);
17
17
 
18
18
  /**
19
- * Creates a persistent OpenCode chat session backed by a Daytona or Vercel
20
- * runtime. Session state is retained and can be resumed or recovered across
21
- * requests.
19
+ * Creates a persistent chat session backed by a Daytona or Vercel runtime. Session
20
+ * state is retained and can be resumed or recovered across requests.
22
21
  */
23
22
  create(
24
23
  body: ChatCreateParams | null | undefined = {},
@@ -36,14 +35,14 @@ export class Chat extends APIResource {
36
35
  }
37
36
 
38
37
  /**
39
- * Aborts the active OpenCode generation for this chat session.
38
+ * Aborts the active generation for this chat session.
40
39
  */
41
40
  cancel(id: string, options?: RequestOptions): APIPromise<ChatCancelResponse> {
42
41
  return this._client.post(path`/agent/v1/chat/${id}/cancel`, options);
43
42
  }
44
43
 
45
44
  /**
46
- * Answers a pending OpenCode question for the chat session bound to this agent
45
+ * Answers a pending runtime question for the chat session bound to this agent
47
46
  * chat.
48
47
  */
49
48
  replyToQuestion(
@@ -109,7 +108,7 @@ export class Chat extends APIResource {
109
108
  }
110
109
 
111
110
  /**
112
- * Relays OpenCode SSE events for this chat. Supports replay from buffered events
111
+ * Relays runtime SSE events for this chat. Supports replay from buffered events
113
112
  * using Last-Event-ID.
114
113
  */
115
114
  stream(
@@ -166,7 +165,7 @@ export interface ChatCreateParams {
166
165
  idleTimeoutMs?: number | null;
167
166
 
168
167
  /**
169
- * Optional model override for the OpenCode session
168
+ * Optional model override for the chat runtime session
170
169
  */
171
170
  model?: string | null;
172
171
 
@@ -225,7 +225,7 @@ export namespace RunGetDetailsResponse {
225
225
  finalResponse?: Result.FinalResponse | null;
226
226
 
227
227
  /**
228
- * Sandbox execution logs (OpenCode server + runner script)
228
+ * Sandbox execution logs (runtime server + runner script)
229
229
  */
230
230
  logs?: Result.Logs | null;
231
231
 
@@ -247,11 +247,11 @@ export namespace RunGetDetailsResponse {
247
247
  }
248
248
 
249
249
  /**
250
- * Sandbox execution logs (OpenCode server + runner script)
250
+ * Sandbox execution logs (runtime server + runner script)
251
251
  */
252
252
  export interface Logs {
253
253
  /**
254
- * OpenCode server stdout/stderr
254
+ * Legacy runtime server stdout/stderr
255
255
  */
256
256
  opencode?: string;
257
257
 
@@ -259,6 +259,11 @@ export namespace RunGetDetailsResponse {
259
259
  * Runner script stdout/stderr
260
260
  */
261
261
  runner?: string;
262
+
263
+ /**
264
+ * Runtime server stdout/stderr
265
+ */
266
+ runtime?: string;
262
267
  }
263
268
  }
264
269
 
@@ -48,3 +48,4 @@ export {
48
48
  } from './vault/vault';
49
49
  export { Voice } from './voice/voice';
50
50
  export { Webhooks } from './webhooks/webhooks';
51
+ export { Worker } from './worker/worker';
@@ -0,0 +1,11 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {
4
+ V1,
5
+ type V1ProxyDeleteParams,
6
+ type V1ProxyGetParams,
7
+ type V1ProxyPatchParams,
8
+ type V1ProxyPostParams,
9
+ type V1ProxyPutParams,
10
+ } from './v1';
11
+ export { Worker } from './worker';
@@ -0,0 +1,130 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { buildHeaders } from '../../internal/headers';
6
+ import { RequestOptions } from '../../internal/request-options';
7
+ import { path } from '../../internal/utils/path';
8
+
9
+ export class V1 extends APIResource {
10
+ /**
11
+ * Creates a Daytona-backed worker runtime. The worker exposes its native runtime
12
+ * API through /worker/v1/:id/\* without reshaping payloads or events.
13
+ */
14
+ create(options?: RequestOptions): APIPromise<void> {
15
+ return this._client.post('/worker/v1', {
16
+ ...options,
17
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
18
+ });
19
+ }
20
+
21
+ /**
22
+ * Get worker
23
+ */
24
+ retrieve(id: string, options?: RequestOptions): APIPromise<void> {
25
+ return this._client.get(path`/worker/v1/${id}`, {
26
+ ...options,
27
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
28
+ });
29
+ }
30
+
31
+ /**
32
+ * End worker
33
+ */
34
+ delete(id: string, options?: RequestOptions): APIPromise<void> {
35
+ return this._client.delete(path`/worker/v1/${id}`, {
36
+ ...options,
37
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
38
+ });
39
+ }
40
+
41
+ /**
42
+ * Forwards a DELETE request to the worker runtime without translating response
43
+ * shapes.
44
+ */
45
+ proxyDelete(workerPath: string, params: V1ProxyDeleteParams, options?: RequestOptions): APIPromise<void> {
46
+ const { id } = params;
47
+ return this._client.delete(path`/worker/v1/${id}/${workerPath}`, {
48
+ ...options,
49
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
50
+ });
51
+ }
52
+
53
+ /**
54
+ * Forwards a GET request to the worker runtime without translating response or SSE
55
+ * event shapes.
56
+ */
57
+ proxyGet(workerPath: string, params: V1ProxyGetParams, options?: RequestOptions): APIPromise<void> {
58
+ const { id } = params;
59
+ return this._client.get(path`/worker/v1/${id}/${workerPath}`, {
60
+ ...options,
61
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
62
+ });
63
+ }
64
+
65
+ /**
66
+ * Forwards a PATCH request to the worker runtime without translating request or
67
+ * response shapes.
68
+ */
69
+ proxyPatch(workerPath: string, params: V1ProxyPatchParams, options?: RequestOptions): APIPromise<void> {
70
+ const { id } = params;
71
+ return this._client.patch(path`/worker/v1/${id}/${workerPath}`, {
72
+ ...options,
73
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
74
+ });
75
+ }
76
+
77
+ /**
78
+ * Forwards a POST request to the worker runtime without translating request,
79
+ * response, or SSE event shapes.
80
+ */
81
+ proxyPost(workerPath: string, params: V1ProxyPostParams, options?: RequestOptions): APIPromise<void> {
82
+ const { id } = params;
83
+ return this._client.post(path`/worker/v1/${id}/${workerPath}`, {
84
+ ...options,
85
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
86
+ });
87
+ }
88
+
89
+ /**
90
+ * Forwards a PUT request to the worker runtime without translating request or
91
+ * response shapes.
92
+ */
93
+ proxyPut(workerPath: string, params: V1ProxyPutParams, options?: RequestOptions): APIPromise<void> {
94
+ const { id } = params;
95
+ return this._client.put(path`/worker/v1/${id}/${workerPath}`, {
96
+ ...options,
97
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
98
+ });
99
+ }
100
+ }
101
+
102
+ export interface V1ProxyDeleteParams {
103
+ id: string;
104
+ }
105
+
106
+ export interface V1ProxyGetParams {
107
+ id: string;
108
+ }
109
+
110
+ export interface V1ProxyPatchParams {
111
+ id: string;
112
+ }
113
+
114
+ export interface V1ProxyPostParams {
115
+ id: string;
116
+ }
117
+
118
+ export interface V1ProxyPutParams {
119
+ id: string;
120
+ }
121
+
122
+ export declare namespace V1 {
123
+ export {
124
+ type V1ProxyDeleteParams as V1ProxyDeleteParams,
125
+ type V1ProxyGetParams as V1ProxyGetParams,
126
+ type V1ProxyPatchParams as V1ProxyPatchParams,
127
+ type V1ProxyPostParams as V1ProxyPostParams,
128
+ type V1ProxyPutParams as V1ProxyPutParams,
129
+ };
130
+ }
@@ -0,0 +1,29 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as V1API from './v1';
5
+ import {
6
+ V1,
7
+ V1ProxyDeleteParams,
8
+ V1ProxyGetParams,
9
+ V1ProxyPatchParams,
10
+ V1ProxyPostParams,
11
+ V1ProxyPutParams,
12
+ } from './v1';
13
+
14
+ export class Worker extends APIResource {
15
+ v1: V1API.V1 = new V1API.V1(this._client);
16
+ }
17
+
18
+ Worker.V1 = V1;
19
+
20
+ export declare namespace Worker {
21
+ export {
22
+ V1 as V1,
23
+ type V1ProxyDeleteParams as V1ProxyDeleteParams,
24
+ type V1ProxyGetParams as V1ProxyGetParams,
25
+ type V1ProxyPatchParams as V1ProxyPatchParams,
26
+ type V1ProxyPostParams as V1ProxyPostParams,
27
+ type V1ProxyPutParams as V1ProxyPutParams,
28
+ };
29
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './worker/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.58.0'; // x-release-please-version
1
+ export const VERSION = '0.59.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.58.0";
1
+ export declare const VERSION = "0.59.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.58.0";
1
+ export declare const VERSION = "0.59.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.58.0'; // x-release-please-version
4
+ exports.VERSION = '0.59.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.58.0'; // x-release-please-version
1
+ export const VERSION = '0.59.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map