casedev 0.58.0 → 0.60.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 (87) hide show
  1. package/CHANGELOG.md +22 -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/internal/types.d.mts +6 -6
  11. package/internal/types.d.mts.map +1 -1
  12. package/internal/types.d.ts +6 -6
  13. package/internal/types.d.ts.map +1 -1
  14. package/package.json +1 -1
  15. package/resources/agent/v1/chat/chat.d.mts +6 -7
  16. package/resources/agent/v1/chat/chat.d.mts.map +1 -1
  17. package/resources/agent/v1/chat/chat.d.ts +6 -7
  18. package/resources/agent/v1/chat/chat.d.ts.map +1 -1
  19. package/resources/agent/v1/chat/chat.js +5 -6
  20. package/resources/agent/v1/chat/chat.js.map +1 -1
  21. package/resources/agent/v1/chat/chat.mjs +5 -6
  22. package/resources/agent/v1/chat/chat.mjs.map +1 -1
  23. package/resources/agent/v1/run.d.mts +7 -3
  24. package/resources/agent/v1/run.d.mts.map +1 -1
  25. package/resources/agent/v1/run.d.ts +7 -3
  26. package/resources/agent/v1/run.d.ts.map +1 -1
  27. package/resources/index.d.mts +1 -0
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +1 -0
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +3 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +1 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/skills/skills.d.mts +24 -0
  36. package/resources/skills/skills.d.mts.map +1 -1
  37. package/resources/skills/skills.d.ts +24 -0
  38. package/resources/skills/skills.d.ts.map +1 -1
  39. package/resources/skills/skills.js.map +1 -1
  40. package/resources/skills/skills.mjs.map +1 -1
  41. package/resources/worker/index.d.mts +3 -0
  42. package/resources/worker/index.d.mts.map +1 -0
  43. package/resources/worker/index.d.ts +3 -0
  44. package/resources/worker/index.d.ts.map +1 -0
  45. package/resources/worker/index.js +9 -0
  46. package/resources/worker/index.js.map +1 -0
  47. package/resources/worker/index.mjs +4 -0
  48. package/resources/worker/index.mjs.map +1 -0
  49. package/resources/worker/v1.d.mts +68 -0
  50. package/resources/worker/v1.d.mts.map +1 -0
  51. package/resources/worker/v1.d.ts +68 -0
  52. package/resources/worker/v1.d.ts.map +1 -0
  53. package/resources/worker/v1.js +105 -0
  54. package/resources/worker/v1.js.map +1 -0
  55. package/resources/worker/v1.mjs +101 -0
  56. package/resources/worker/v1.mjs.map +1 -0
  57. package/resources/worker/worker.d.mts +10 -0
  58. package/resources/worker/worker.d.mts.map +1 -0
  59. package/resources/worker/worker.d.ts +10 -0
  60. package/resources/worker/worker.d.ts.map +1 -0
  61. package/resources/worker/worker.js +17 -0
  62. package/resources/worker/worker.js.map +1 -0
  63. package/resources/worker/worker.mjs +12 -0
  64. package/resources/worker/worker.mjs.map +1 -0
  65. package/resources/worker.d.mts +2 -0
  66. package/resources/worker.d.mts.map +1 -0
  67. package/resources/worker.d.ts +2 -0
  68. package/resources/worker.d.ts.map +1 -0
  69. package/resources/worker.js +6 -0
  70. package/resources/worker.js.map +1 -0
  71. package/resources/worker.mjs +3 -0
  72. package/resources/worker.mjs.map +1 -0
  73. package/src/client.ts +5 -0
  74. package/src/internal/types.ts +6 -8
  75. package/src/resources/agent/v1/chat/chat.ts +6 -7
  76. package/src/resources/agent/v1/run.ts +8 -3
  77. package/src/resources/index.ts +1 -0
  78. package/src/resources/skills/skills.ts +35 -0
  79. package/src/resources/worker/index.ts +11 -0
  80. package/src/resources/worker/v1.ts +142 -0
  81. package/src/resources/worker/worker.ts +29 -0
  82. package/src/resources/worker.ts +3 -0
  83. package/src/version.ts +1 -1
  84. package/version.d.mts +1 -1
  85. package/version.d.ts +1 -1
  86. package/version.js +1 -1
  87. package/version.mjs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AM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAOnG;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -0,0 +1,68 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class V1 extends APIResource {
5
+ /**
6
+ * Creates a Daytona-backed worker runtime. The worker exposes its native runtime
7
+ * API through /worker/v1/:id/\* without reshaping payloads or events.
8
+ */
9
+ create(options?: RequestOptions): APIPromise<void>;
10
+ /**
11
+ * Get worker
12
+ */
13
+ retrieve(id: string, options?: RequestOptions): APIPromise<void>;
14
+ /**
15
+ * End worker
16
+ */
17
+ delete(id: string, options?: RequestOptions): APIPromise<void>;
18
+ /**
19
+ * Starts or resumes the worker sandbox and OpenCode server. Native
20
+ * /worker/v1/:id/\* proxy routes require this lifecycle primitive to have
21
+ * completed first.
22
+ */
23
+ boot(id: string, options?: RequestOptions): APIPromise<void>;
24
+ /**
25
+ * Forwards a DELETE request to the worker runtime without translating response
26
+ * shapes.
27
+ */
28
+ proxyDelete(workerPath: string, params: V1ProxyDeleteParams, options?: RequestOptions): APIPromise<void>;
29
+ /**
30
+ * Forwards a GET request to the worker runtime without translating response or SSE
31
+ * event shapes.
32
+ */
33
+ proxyGet(workerPath: string, params: V1ProxyGetParams, options?: RequestOptions): APIPromise<void>;
34
+ /**
35
+ * Forwards a PATCH request to the worker runtime without translating request or
36
+ * response shapes.
37
+ */
38
+ proxyPatch(workerPath: string, params: V1ProxyPatchParams, options?: RequestOptions): APIPromise<void>;
39
+ /**
40
+ * Forwards a POST request to the worker runtime without translating request,
41
+ * response, or SSE event shapes.
42
+ */
43
+ proxyPost(workerPath: string, params: V1ProxyPostParams, options?: RequestOptions): APIPromise<void>;
44
+ /**
45
+ * Forwards a PUT request to the worker runtime without translating request or
46
+ * response shapes.
47
+ */
48
+ proxyPut(workerPath: string, params: V1ProxyPutParams, options?: RequestOptions): APIPromise<void>;
49
+ }
50
+ export interface V1ProxyDeleteParams {
51
+ id: string;
52
+ }
53
+ export interface V1ProxyGetParams {
54
+ id: string;
55
+ }
56
+ export interface V1ProxyPatchParams {
57
+ id: string;
58
+ }
59
+ export interface V1ProxyPostParams {
60
+ id: string;
61
+ }
62
+ export interface V1ProxyPutParams {
63
+ id: string;
64
+ }
65
+ export declare namespace V1 {
66
+ export { type V1ProxyDeleteParams as V1ProxyDeleteParams, type V1ProxyGetParams as V1ProxyGetParams, type V1ProxyPatchParams as V1ProxyPatchParams, type V1ProxyPostParams as V1ProxyPostParams, type V1ProxyPutParams as V1ProxyPutParams, };
67
+ }
68
+ //# sourceMappingURL=v1.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/worker/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;OAGG;IACH,MAAM,CAAC,OAAO,CA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E,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -0,0 +1,105 @@
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.V1 = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const headers_1 = require("../../internal/headers.js");
7
+ const path_1 = require("../../internal/utils/path.js");
8
+ class V1 extends resource_1.APIResource {
9
+ /**
10
+ * Creates a Daytona-backed worker runtime. The worker exposes its native runtime
11
+ * API through /worker/v1/:id/\* without reshaping payloads or events.
12
+ */
13
+ create(options) {
14
+ return this._client.post('/worker/v1', {
15
+ ...options,
16
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
17
+ });
18
+ }
19
+ /**
20
+ * Get worker
21
+ */
22
+ retrieve(id, options) {
23
+ return this._client.get((0, path_1.path) `/worker/v1/${id}`, {
24
+ ...options,
25
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
26
+ });
27
+ }
28
+ /**
29
+ * End worker
30
+ */
31
+ delete(id, options) {
32
+ return this._client.delete((0, path_1.path) `/worker/v1/${id}`, {
33
+ ...options,
34
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
35
+ });
36
+ }
37
+ /**
38
+ * Starts or resumes the worker sandbox and OpenCode server. Native
39
+ * /worker/v1/:id/\* proxy routes require this lifecycle primitive to have
40
+ * completed first.
41
+ */
42
+ boot(id, options) {
43
+ return this._client.post((0, path_1.path) `/worker/v1/${id}/boot`, {
44
+ ...options,
45
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
46
+ });
47
+ }
48
+ /**
49
+ * Forwards a DELETE request to the worker runtime without translating response
50
+ * shapes.
51
+ */
52
+ proxyDelete(workerPath, params, options) {
53
+ const { id } = params;
54
+ return this._client.delete((0, path_1.path) `/worker/v1/${id}/${workerPath}`, {
55
+ ...options,
56
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
57
+ });
58
+ }
59
+ /**
60
+ * Forwards a GET request to the worker runtime without translating response or SSE
61
+ * event shapes.
62
+ */
63
+ proxyGet(workerPath, params, options) {
64
+ const { id } = params;
65
+ return this._client.get((0, path_1.path) `/worker/v1/${id}/${workerPath}`, {
66
+ ...options,
67
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
68
+ });
69
+ }
70
+ /**
71
+ * Forwards a PATCH request to the worker runtime without translating request or
72
+ * response shapes.
73
+ */
74
+ proxyPatch(workerPath, params, options) {
75
+ const { id } = params;
76
+ return this._client.patch((0, path_1.path) `/worker/v1/${id}/${workerPath}`, {
77
+ ...options,
78
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
79
+ });
80
+ }
81
+ /**
82
+ * Forwards a POST request to the worker runtime without translating request,
83
+ * response, or SSE event shapes.
84
+ */
85
+ proxyPost(workerPath, params, options) {
86
+ const { id } = params;
87
+ return this._client.post((0, path_1.path) `/worker/v1/${id}/${workerPath}`, {
88
+ ...options,
89
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
90
+ });
91
+ }
92
+ /**
93
+ * Forwards a PUT request to the worker runtime without translating request or
94
+ * response shapes.
95
+ */
96
+ proxyPut(workerPath, params, options) {
97
+ const { id } = params;
98
+ return this._client.put((0, path_1.path) `/worker/v1/${id}/${workerPath}`, {
99
+ ...options,
100
+ headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
101
+ });
102
+ }
103
+ }
104
+ exports.V1 = V1;
105
+ //# sourceMappingURL=v1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/worker/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;OAGG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE;YACrC,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE;YAC9C,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,EAAE,EAAE;YACjD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,IAAI,CA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C9D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,SAAS,CAAC,UAAkB,EAAE,MAAyB,EAAE,OAAwB;QAC/E,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,IAAI,UAAU,EAAE,EAAE;YAC7D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,UAAkB,EAAE,MAAwB,EAAE,OAAwB;QAC7E,MAAM,EAAE,EAAE,EAAE,GAAG,MAAM,CAAC;QACtB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,cAAc,EAAE,IAAI,UAAU,EAAE,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAvGD,gBAuGC"}
@@ -0,0 +1,101 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { buildHeaders } from "../../internal/headers.mjs";
4
+ import { path } from "../../internal/utils/path.mjs";
5
+ export class V1 extends APIResource {
6
+ /**
7
+ * Creates a Daytona-backed worker runtime. The worker exposes its native runtime
8
+ * API through /worker/v1/:id/\* without reshaping payloads or events.
9
+ */
10
+ create(options) {
11
+ return this._client.post('/worker/v1', {
12
+ ...options,
13
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
14
+ });
15
+ }
16
+ /**
17
+ * Get worker
18
+ */
19
+ retrieve(id, options) {
20
+ return this._client.get(path `/worker/v1/${id}`, {
21
+ ...options,
22
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
23
+ });
24
+ }
25
+ /**
26
+ * End worker
27
+ */
28
+ delete(id, options) {
29
+ return this._client.delete(path `/worker/v1/${id}`, {
30
+ ...options,
31
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
32
+ });
33
+ }
34
+ /**
35
+ * Starts or resumes the worker sandbox and OpenCode server. Native
36
+ * /worker/v1/:id/\* proxy routes require this lifecycle primitive to have
37
+ * completed first.
38
+ */
39
+ boot(id, options) {
40
+ return this._client.post(path `/worker/v1/${id}/boot`, {
41
+ ...options,
42
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
43
+ });
44
+ }
45
+ /**
46
+ * Forwards a DELETE request to the worker runtime without translating response
47
+ * shapes.
48
+ */
49
+ proxyDelete(workerPath, params, options) {
50
+ const { id } = params;
51
+ return this._client.delete(path `/worker/v1/${id}/${workerPath}`, {
52
+ ...options,
53
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
54
+ });
55
+ }
56
+ /**
57
+ * Forwards a GET request to the worker runtime without translating response or SSE
58
+ * event shapes.
59
+ */
60
+ proxyGet(workerPath, params, options) {
61
+ const { id } = params;
62
+ return this._client.get(path `/worker/v1/${id}/${workerPath}`, {
63
+ ...options,
64
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
65
+ });
66
+ }
67
+ /**
68
+ * Forwards a PATCH request to the worker runtime without translating request or
69
+ * response shapes.
70
+ */
71
+ proxyPatch(workerPath, params, options) {
72
+ const { id } = params;
73
+ return this._client.patch(path `/worker/v1/${id}/${workerPath}`, {
74
+ ...options,
75
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
76
+ });
77
+ }
78
+ /**
79
+ * Forwards a POST request to the worker runtime without translating request,
80
+ * response, or SSE event shapes.
81
+ */
82
+ proxyPost(workerPath, params, options) {
83
+ const { id } = params;
84
+ return this._client.post(path `/worker/v1/${id}/${workerPath}`, {
85
+ ...options,
86
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
87
+ });
88
+ }
89
+ /**
90
+ * Forwards a PUT request to the worker runtime without translating request or
91
+ * response shapes.
92
+ */
93
+ proxyPut(workerPath, params, options) {
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
+ //# sourceMappingURL=v1.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/worker/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;OAGG;IACH,MAAM,CAAC,OAAwB;QAC7B,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,EAAE;YACrC,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,cAAc,EAAE,EAAE,EAAE;YAC9C,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,E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atchParams, V1ProxyPostParams, V1ProxyPutParams } from "./v1.mjs";
4
+ export declare class Worker extends APIResource {
5
+ v1: V1API.V1;
6
+ }
7
+ export declare namespace Worker {
8
+ export { V1 as V1, type V1ProxyDeleteParams as V1ProxyDeleteParams, type V1ProxyGetParams as V1ProxyGetParams, type V1ProxyPatchParams as V1ProxyPatchParams, type V1ProxyPostParams as V1ProxyPostParams, type V1ProxyPutParams as V1ProxyPutParams, };
9
+ }
10
+ //# sourceMappingURL=worker.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.d.mts","sourceRoot":"","sources":["../../src/resources/worker/worker.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EACL,EAAE,EACF,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EACjB;AAED,qBAAa,MAAO,SAAQ,WAAW;IACrC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,EAAE,IAAI,EAAE,EACR,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as V1API from "./v1.js";
3
+ import { V1, V1ProxyDeleteParams, V1ProxyGetParams, V1ProxyPatchParams, V1ProxyPostParams, V1ProxyPutParams } from "./v1.js";
4
+ export declare class Worker extends APIResource {
5
+ v1: V1API.V1;
6
+ }
7
+ export declare namespace Worker {
8
+ export { V1 as V1, type V1ProxyDeleteParams as V1ProxyDeleteParams, type V1ProxyGetParams as V1ProxyGetParams, type V1ProxyPatchParams as V1ProxyPatchParams, type V1ProxyPostParams as V1ProxyPostParams, type V1ProxyPutParams as V1ProxyPutParams, };
9
+ }
10
+ //# sourceMappingURL=worker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["../../src/resources/worker/worker.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,KAAK;OACV,EACL,EAAE,EACF,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EACjB;AAED,qBAAa,MAAO,SAAQ,WAAW;IACrC,EAAE,EAAE,KAAK,CAAC,EAAE,CAA8B;CAC3C;AAID,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,EAAE,IAAI,EAAE,EACR,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -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 };
@@ -40,7 +40,6 @@ type OverloadedParameters<T> =
40
40
  : T extends (...args: infer A) => unknown ? A
41
41
  : never;
42
42
 
43
- /* eslint-disable */
44
43
  /**
45
44
  * These imports attempt to get types from a parent package's dependencies.
46
45
  * Unresolved bare specifiers can trigger [automatic type acquisition][1] in some projects, which
@@ -63,19 +62,18 @@ type OverloadedParameters<T> =
63
62
  *
64
63
  * [1]: https://www.typescriptlang.org/tsconfig/#typeAcquisition
65
64
  */
66
- /** @ts-ignore For users with \@types/node */
65
+ /** @ts-ignore For users with \@types/node */ /* prettier-ignore */
67
66
  type UndiciTypesRequestInit = NotAny<import('../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici-types/index.d.ts').RequestInit>;
68
- /** @ts-ignore For users with undici */
67
+ /** @ts-ignore For users with undici */ /* prettier-ignore */
69
68
  type UndiciRequestInit = NotAny<import('../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/undici/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/undici/index.d.ts').RequestInit>;
70
- /** @ts-ignore For users with \@types/bun */
69
+ /** @ts-ignore For users with \@types/bun */ /* prettier-ignore */
71
70
  type BunRequestInit = globalThis.FetchRequestInit;
72
- /** @ts-ignore For users with node-fetch@2 */
71
+ /** @ts-ignore For users with node-fetch@2 */ /* prettier-ignore */
73
72
  type NodeFetch2RequestInit = NotAny<import('../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/@types/node-fetch/index.d.ts').RequestInit>;
74
- /** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */
73
+ /** @ts-ignore For users with node-fetch@3, doesn't need file extension because types are at ./@types/index.d.ts */ /* prettier-ignore */
75
74
  type NodeFetch3RequestInit = NotAny<import('../node_modules/node-fetch').RequestInit> | NotAny<import('../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../node_modules/node-fetch').RequestInit> | NotAny<import('../../../../../../../../../../node_modules/node-fetch').RequestInit>;
76
- /** @ts-ignore For users who use Deno */
75
+ /** @ts-ignore For users who use Deno */ /* prettier-ignore */
77
76
  type FetchRequestInit = NonNullable<OverloadedParameters<typeof fetch>[1]>;
78
- /* eslint-enable */
79
77
 
80
78
  type RequestInits =
81
79
  | NotAny<UndiciTypesRequestInit>
@@ -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';
@@ -102,6 +102,11 @@ export interface SkillReadResponse {
102
102
  */
103
103
  author_name?: string;
104
104
 
105
+ /**
106
+ * Skill bundle metadata for root skills and companion file rows
107
+ */
108
+ bundle?: SkillReadResponse.UnionMember0 | SkillReadResponse.UnionMember1 | null;
109
+
105
110
  /**
106
111
  * Full skill content in markdown
107
112
  */
@@ -148,6 +153,36 @@ export interface SkillReadResponse {
148
153
  version?: string;
149
154
  }
150
155
 
156
+ export namespace SkillReadResponse {
157
+ export interface UnionMember0 {
158
+ files: Array<UnionMember0.File>;
159
+
160
+ role: 'root';
161
+ }
162
+
163
+ export namespace UnionMember0 {
164
+ export interface File {
165
+ path: string;
166
+
167
+ slug: string;
168
+
169
+ content_type?: string | null;
170
+
171
+ name?: string | null;
172
+ }
173
+ }
174
+
175
+ export interface UnionMember1 {
176
+ path: string;
177
+
178
+ role: 'file';
179
+
180
+ root_slug: string;
181
+
182
+ content_type?: string | null;
183
+ }
184
+ }
185
+
151
186
  export interface SkillResolveResponse {
152
187
  /**
153
188
  * Search methods used (text, tag, semantic)
@@ -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';