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.
- package/CHANGELOG.md +22 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/agent/v1/chat/chat.d.mts +6 -7
- package/resources/agent/v1/chat/chat.d.mts.map +1 -1
- package/resources/agent/v1/chat/chat.d.ts +6 -7
- package/resources/agent/v1/chat/chat.d.ts.map +1 -1
- package/resources/agent/v1/chat/chat.js +5 -6
- package/resources/agent/v1/chat/chat.js.map +1 -1
- package/resources/agent/v1/chat/chat.mjs +5 -6
- package/resources/agent/v1/chat/chat.mjs.map +1 -1
- package/resources/agent/v1/run.d.mts +7 -3
- package/resources/agent/v1/run.d.mts.map +1 -1
- package/resources/agent/v1/run.d.ts +7 -3
- package/resources/agent/v1/run.d.ts.map +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/skills/skills.d.mts +24 -0
- package/resources/skills/skills.d.mts.map +1 -1
- package/resources/skills/skills.d.ts +24 -0
- package/resources/skills/skills.d.ts.map +1 -1
- package/resources/skills/skills.js.map +1 -1
- package/resources/skills/skills.mjs.map +1 -1
- package/resources/worker/index.d.mts +3 -0
- package/resources/worker/index.d.mts.map +1 -0
- package/resources/worker/index.d.ts +3 -0
- package/resources/worker/index.d.ts.map +1 -0
- package/resources/worker/index.js +9 -0
- package/resources/worker/index.js.map +1 -0
- package/resources/worker/index.mjs +4 -0
- package/resources/worker/index.mjs.map +1 -0
- package/resources/worker/v1.d.mts +68 -0
- package/resources/worker/v1.d.mts.map +1 -0
- package/resources/worker/v1.d.ts +68 -0
- package/resources/worker/v1.d.ts.map +1 -0
- package/resources/worker/v1.js +105 -0
- package/resources/worker/v1.js.map +1 -0
- package/resources/worker/v1.mjs +101 -0
- package/resources/worker/v1.mjs.map +1 -0
- package/resources/worker/worker.d.mts +10 -0
- package/resources/worker/worker.d.mts.map +1 -0
- package/resources/worker/worker.d.ts +10 -0
- package/resources/worker/worker.d.ts.map +1 -0
- package/resources/worker/worker.js +17 -0
- package/resources/worker/worker.js.map +1 -0
- package/resources/worker/worker.mjs +12 -0
- package/resources/worker/worker.mjs.map +1 -0
- package/resources/worker.d.mts +2 -0
- package/resources/worker.d.mts.map +1 -0
- package/resources/worker.d.ts +2 -0
- package/resources/worker.d.ts.map +1 -0
- package/resources/worker.js +6 -0
- package/resources/worker.js.map +1 -0
- package/resources/worker.mjs +3 -0
- package/resources/worker.mjs.map +1 -0
- package/src/client.ts +5 -0
- package/src/internal/types.ts +6 -8
- package/src/resources/agent/v1/chat/chat.ts +6 -7
- package/src/resources/agent/v1/run.ts +8 -3
- package/src/resources/index.ts +1 -0
- package/src/resources/skills/skills.ts +35 -0
- package/src/resources/worker/index.ts +11 -0
- package/src/resources/worker/v1.ts +142 -0
- package/src/resources/worker/worker.ts +29 -0
- package/src/resources/worker.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,142 @@
|
|
|
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
|
+
* Starts or resumes the worker sandbox and OpenCode server. Native
|
|
43
|
+
* /worker/v1/:id/\* proxy routes require this lifecycle primitive to have
|
|
44
|
+
* completed first.
|
|
45
|
+
*/
|
|
46
|
+
boot(id: string, options?: RequestOptions): APIPromise<void> {
|
|
47
|
+
return this._client.post(path`/worker/v1/${id}/boot`, {
|
|
48
|
+
...options,
|
|
49
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Forwards a DELETE request to the worker runtime without translating response
|
|
55
|
+
* shapes.
|
|
56
|
+
*/
|
|
57
|
+
proxyDelete(workerPath: string, params: V1ProxyDeleteParams, options?: RequestOptions): APIPromise<void> {
|
|
58
|
+
const { id } = params;
|
|
59
|
+
return this._client.delete(path`/worker/v1/${id}/${workerPath}`, {
|
|
60
|
+
...options,
|
|
61
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Forwards a GET request to the worker runtime without translating response or SSE
|
|
67
|
+
* event shapes.
|
|
68
|
+
*/
|
|
69
|
+
proxyGet(workerPath: string, params: V1ProxyGetParams, options?: RequestOptions): APIPromise<void> {
|
|
70
|
+
const { id } = params;
|
|
71
|
+
return this._client.get(path`/worker/v1/${id}/${workerPath}`, {
|
|
72
|
+
...options,
|
|
73
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Forwards a PATCH request to the worker runtime without translating request or
|
|
79
|
+
* response shapes.
|
|
80
|
+
*/
|
|
81
|
+
proxyPatch(workerPath: string, params: V1ProxyPatchParams, options?: RequestOptions): APIPromise<void> {
|
|
82
|
+
const { id } = params;
|
|
83
|
+
return this._client.patch(path`/worker/v1/${id}/${workerPath}`, {
|
|
84
|
+
...options,
|
|
85
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Forwards a POST request to the worker runtime without translating request,
|
|
91
|
+
* response, or SSE event shapes.
|
|
92
|
+
*/
|
|
93
|
+
proxyPost(workerPath: string, params: V1ProxyPostParams, options?: RequestOptions): APIPromise<void> {
|
|
94
|
+
const { id } = params;
|
|
95
|
+
return this._client.post(path`/worker/v1/${id}/${workerPath}`, {
|
|
96
|
+
...options,
|
|
97
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Forwards a PUT request to the worker runtime without translating request or
|
|
103
|
+
* response shapes.
|
|
104
|
+
*/
|
|
105
|
+
proxyPut(workerPath: string, params: V1ProxyPutParams, options?: RequestOptions): APIPromise<void> {
|
|
106
|
+
const { id } = params;
|
|
107
|
+
return this._client.put(path`/worker/v1/${id}/${workerPath}`, {
|
|
108
|
+
...options,
|
|
109
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export interface V1ProxyDeleteParams {
|
|
115
|
+
id: string;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface V1ProxyGetParams {
|
|
119
|
+
id: string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export interface V1ProxyPatchParams {
|
|
123
|
+
id: string;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export interface V1ProxyPostParams {
|
|
127
|
+
id: string;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface V1ProxyPutParams {
|
|
131
|
+
id: string;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export declare namespace V1 {
|
|
135
|
+
export {
|
|
136
|
+
type V1ProxyDeleteParams as V1ProxyDeleteParams,
|
|
137
|
+
type V1ProxyGetParams as V1ProxyGetParams,
|
|
138
|
+
type V1ProxyPatchParams as V1ProxyPatchParams,
|
|
139
|
+
type V1ProxyPostParams as V1ProxyPostParams,
|
|
140
|
+
type V1ProxyPutParams as V1ProxyPutParams,
|
|
141
|
+
};
|
|
142
|
+
}
|
|
@@ -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
|
+
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.60.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.60.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.60.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.60.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|