Skip to content

Commit 7594f38

Browse files
feat(api): created at filter in list view
1 parent a7cc203 commit 7594f38

4 files changed

Lines changed: 17 additions & 6 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 3
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-c4c5f89f67a73e4d17377d2b96fc201a63cd5458cbebaa23e78f92b59b90cc5b.yml
3-
openapi_spec_hash: 931c6189a4fc4ee320963646b1b7edbe
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/warp-bnavetta%2Fwarp-api-678afb4efd7b655ded420e66621722701b018bcfce2423ec9beb4e575108c05c.yml
3+
openapi_spec_hash: 4f8537526fc20ec33facbc86e1abd571
44
config_hash: 9c6b93a5f4b658b946f0ab7fcfedbaa3

src/resources/agent/agent.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface AmbientAgentConfig {
3535
base_prompt?: string;
3636

3737
/**
38-
* UID of a CloudEnvironment GSO to use
38+
* UID of the environment to run the task in
3939
*/
4040
environment_id?: string;
4141

@@ -45,7 +45,7 @@ export interface AmbientAgentConfig {
4545
mcp_servers?: { [key: string]: AmbientAgentConfig.McpServers };
4646

4747
/**
48-
* LLM model to use (uses workspace default if not specified)
48+
* LLM model to use (uses team default if not specified)
4949
*/
5050
model_id?: string;
5151

@@ -123,6 +123,11 @@ export interface AgentRunParams {
123123
*/
124124
config?: AmbientAgentConfig;
125125

126+
/**
127+
* Make the task visible to all team members, not only the calling user
128+
*/
129+
team?: boolean;
130+
126131
/**
127132
* Custom title for the task (auto-generated if not provided)
128133
*/

src/resources/agent/tasks.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,18 @@ export interface TaskItem {
9898
* Source that created the task:
9999
*
100100
* - LINEAR: Created from Linear integration
101-
* - API: Created via the public API
101+
* - API: Created via the Warp API
102102
* - SLACK: Created from Slack integration
103103
* - LOCAL: Created from local CLI/app
104104
* - SCHEDULED_AGENT: Created by a scheduled agent
105105
*/
106106
source?: TaskSourceType;
107107

108+
/**
109+
* Timestamp when the agent started working on the task (RFC3339)
110+
*/
111+
started_at?: string | null;
112+
108113
status_message?: TaskItem.StatusMessage;
109114
}
110115

@@ -133,7 +138,7 @@ export namespace TaskItem {
133138
* Source that created the task:
134139
*
135140
* - LINEAR: Created from Linear integration
136-
* - API: Created via the public API
141+
* - API: Created via the Warp API
137142
* - SLACK: Created from Slack integration
138143
* - LOCAL: Created from local CLI/app
139144
* - SCHEDULED_AGENT: Created by a scheduled agent

tests/api-resources/agent/agent.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ describe('resource agent', () => {
4040
model_id: 'model_id',
4141
name: 'name',
4242
},
43+
team: true,
4344
title: 'title',
4445
});
4546
});

0 commit comments

Comments
 (0)