casedev 0.13.6 → 0.14.1
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 +16 -0
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +2 -12
- package/client.js.map +1 -1
- package/client.mjs +2 -12
- package/client.mjs.map +1 -1
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +1 -1
- package/resources/agent/v1/agents.d.mts +6 -0
- package/resources/agent/v1/agents.d.mts.map +1 -1
- package/resources/agent/v1/agents.d.ts +6 -0
- package/resources/agent/v1/agents.d.ts.map +1 -1
- package/resources/agent/v1/execute.d.mts +82 -0
- package/resources/agent/v1/execute.d.mts.map +1 -0
- package/resources/agent/v1/execute.d.ts +82 -0
- package/resources/agent/v1/execute.d.ts.map +1 -0
- package/resources/agent/v1/execute.js +17 -0
- package/resources/agent/v1/execute.js.map +1 -0
- package/resources/agent/v1/execute.mjs +13 -0
- package/resources/agent/v1/execute.mjs.map +1 -0
- package/resources/agent/v1/index.d.mts +1 -0
- package/resources/agent/v1/index.d.mts.map +1 -1
- package/resources/agent/v1/index.d.ts +1 -0
- package/resources/agent/v1/index.d.ts.map +1 -1
- package/resources/agent/v1/index.js +3 -1
- package/resources/agent/v1/index.js.map +1 -1
- package/resources/agent/v1/index.mjs +1 -0
- package/resources/agent/v1/index.mjs.map +1 -1
- package/resources/agent/v1/run.d.mts +14 -0
- package/resources/agent/v1/run.d.mts.map +1 -1
- package/resources/agent/v1/run.d.ts +14 -0
- package/resources/agent/v1/run.d.ts.map +1 -1
- package/resources/agent/v1/v1.d.mts +4 -0
- package/resources/agent/v1/v1.d.mts.map +1 -1
- package/resources/agent/v1/v1.d.ts +4 -0
- package/resources/agent/v1/v1.d.ts.map +1 -1
- package/resources/agent/v1/v1.js +4 -0
- package/resources/agent/v1/v1.js.map +1 -1
- package/resources/agent/v1/v1.mjs +4 -0
- package/resources/agent/v1/v1.mjs.map +1 -1
- package/src/client.ts +5 -17
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/resources/agent/v1/agents.ts +9 -0
- package/src/resources/agent/v1/execute.ts +105 -0
- package/src/resources/agent/v1/index.ts +1 -0
- package/src/resources/agent/v1/run.ts +18 -0
- package/src/resources/agent/v1/v1.ts +10 -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,105 @@
|
|
|
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 { RequestOptions } from '../../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class Execute extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Creates an ephemeral agent and immediately executes a run. Returns the run ID
|
|
10
|
+
* for polling status and results. This is the fastest way to run an agent without
|
|
11
|
+
* managing agent lifecycle.
|
|
12
|
+
*/
|
|
13
|
+
create(body: ExecuteCreateParams, options?: RequestOptions): APIPromise<ExecuteCreateResponse> {
|
|
14
|
+
return this._client.post('/agent/v1/execute', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ExecuteCreateResponse {
|
|
19
|
+
/**
|
|
20
|
+
* Ephemeral agent ID (auto-created)
|
|
21
|
+
*/
|
|
22
|
+
agentId?: string;
|
|
23
|
+
|
|
24
|
+
message?: string;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Run ID — poll /agent/v1/run/:id/status
|
|
28
|
+
*/
|
|
29
|
+
runId?: string;
|
|
30
|
+
|
|
31
|
+
status?: 'running';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface ExecuteCreateParams {
|
|
35
|
+
/**
|
|
36
|
+
* Task prompt for the agent
|
|
37
|
+
*/
|
|
38
|
+
prompt: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Denylist of tools the agent cannot use
|
|
42
|
+
*/
|
|
43
|
+
disabledTools?: Array<string> | null;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Allowlist of tools the agent can use
|
|
47
|
+
*/
|
|
48
|
+
enabledTools?: Array<string> | null;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Additional context or constraints for this run
|
|
52
|
+
*/
|
|
53
|
+
guidance?: string | null;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* System instructions. Defaults to a general-purpose legal assistant prompt if not
|
|
57
|
+
* provided.
|
|
58
|
+
*/
|
|
59
|
+
instructions?: string;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* LLM model identifier. Defaults to anthropic/claude-sonnet-4.6
|
|
63
|
+
*/
|
|
64
|
+
model?: string;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Scope this run to specific vault object IDs. The agent will only access these
|
|
68
|
+
* objects.
|
|
69
|
+
*/
|
|
70
|
+
objectIds?: Array<string> | null;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Custom sandbox resources (cpu, memoryMiB)
|
|
74
|
+
*/
|
|
75
|
+
sandbox?: ExecuteCreateParams.Sandbox | null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Restrict agent to specific vault IDs
|
|
79
|
+
*/
|
|
80
|
+
vaultIds?: Array<string> | null;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export namespace ExecuteCreateParams {
|
|
84
|
+
/**
|
|
85
|
+
* Custom sandbox resources (cpu, memoryMiB)
|
|
86
|
+
*/
|
|
87
|
+
export interface Sandbox {
|
|
88
|
+
/**
|
|
89
|
+
* Number of CPUs
|
|
90
|
+
*/
|
|
91
|
+
cpu?: number;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Memory in MiB
|
|
95
|
+
*/
|
|
96
|
+
memoryMiB?: number;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export declare namespace Execute {
|
|
101
|
+
export {
|
|
102
|
+
type ExecuteCreateResponse as ExecuteCreateResponse,
|
|
103
|
+
type ExecuteCreateParams as ExecuteCreateParams,
|
|
104
|
+
};
|
|
105
|
+
}
|
|
@@ -62,6 +62,8 @@ export interface RunCreateResponse {
|
|
|
62
62
|
|
|
63
63
|
createdAt?: string;
|
|
64
64
|
|
|
65
|
+
objectIds?: Array<string> | null;
|
|
66
|
+
|
|
65
67
|
status?: 'queued';
|
|
66
68
|
}
|
|
67
69
|
|
|
@@ -100,6 +102,11 @@ export interface RunGetDetailsResponse {
|
|
|
100
102
|
|
|
101
103
|
guidance?: string | null;
|
|
102
104
|
|
|
105
|
+
/**
|
|
106
|
+
* Modal sandbox ID (available once sandbox is created)
|
|
107
|
+
*/
|
|
108
|
+
modalSandboxId?: string | null;
|
|
109
|
+
|
|
103
110
|
model?: string | null;
|
|
104
111
|
|
|
105
112
|
prompt?: string;
|
|
@@ -119,6 +126,11 @@ export interface RunGetDetailsResponse {
|
|
|
119
126
|
* Token usage statistics
|
|
120
127
|
*/
|
|
121
128
|
usage?: RunGetDetailsResponse.Usage | null;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Durable workflow run ID
|
|
132
|
+
*/
|
|
133
|
+
workflowId?: string | null;
|
|
122
134
|
}
|
|
123
135
|
|
|
124
136
|
export namespace RunGetDetailsResponse {
|
|
@@ -226,6 +238,12 @@ export interface RunCreateParams {
|
|
|
226
238
|
* Override the agent default model for this run
|
|
227
239
|
*/
|
|
228
240
|
model?: string | null;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Scope this run to specific vault object IDs. The agent will only be able to
|
|
244
|
+
* access these objects during execution.
|
|
245
|
+
*/
|
|
246
|
+
objectIds?: Array<string> | null;
|
|
229
247
|
}
|
|
230
248
|
|
|
231
249
|
export interface RunWatchParams {
|
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
AgentUpdateResponse,
|
|
13
13
|
Agents,
|
|
14
14
|
} from './agents';
|
|
15
|
+
import * as ExecuteAPI from './execute';
|
|
16
|
+
import { Execute, ExecuteCreateParams, ExecuteCreateResponse } from './execute';
|
|
15
17
|
import * as RunAPI from './run';
|
|
16
18
|
import {
|
|
17
19
|
Run,
|
|
@@ -28,10 +30,12 @@ import {
|
|
|
28
30
|
export class V1 extends APIResource {
|
|
29
31
|
agents: AgentsAPI.Agents = new AgentsAPI.Agents(this._client);
|
|
30
32
|
run: RunAPI.Run = new RunAPI.Run(this._client);
|
|
33
|
+
execute: ExecuteAPI.Execute = new ExecuteAPI.Execute(this._client);
|
|
31
34
|
}
|
|
32
35
|
|
|
33
36
|
V1.Agents = Agents;
|
|
34
37
|
V1.Run = Run;
|
|
38
|
+
V1.Execute = Execute;
|
|
35
39
|
|
|
36
40
|
export declare namespace V1 {
|
|
37
41
|
export {
|
|
@@ -56,4 +60,10 @@ export declare namespace V1 {
|
|
|
56
60
|
type RunCreateParams as RunCreateParams,
|
|
57
61
|
type RunWatchParams as RunWatchParams,
|
|
58
62
|
};
|
|
63
|
+
|
|
64
|
+
export {
|
|
65
|
+
Execute as Execute,
|
|
66
|
+
type ExecuteCreateResponse as ExecuteCreateResponse,
|
|
67
|
+
type ExecuteCreateParams as ExecuteCreateParams,
|
|
68
|
+
};
|
|
59
69
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.14.1'; // 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.14.1";
|
|
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.14.1";
|
|
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.14.1'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|