@anthropic-ai/sdk 0.107.0 → 0.109.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 +26 -0
- package/client.d.mts +3 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -1
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +20 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +20 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +26 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +24 -0
- package/core/pagination.mjs.map +1 -1
- package/core/streaming.d.mts.map +1 -1
- package/core/streaming.d.ts.map +1 -1
- package/core/streaming.js +2 -0
- package/core/streaming.js.map +1 -1
- package/core/streaming.mjs +2 -0
- package/core/streaming.mjs.map +1 -1
- package/lib/sessions/accumulate.d.mts +22 -0
- package/lib/sessions/accumulate.d.mts.map +1 -0
- package/lib/sessions/accumulate.d.ts +22 -0
- package/lib/sessions/accumulate.d.ts.map +1 -0
- package/lib/sessions/accumulate.js +87 -0
- package/lib/sessions/accumulate.js.map +1 -0
- package/lib/sessions/accumulate.mjs +84 -0
- package/lib/sessions/accumulate.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/beta/agents/agents.d.mts +1 -1
- package/resources/beta/agents/agents.d.mts.map +1 -1
- package/resources/beta/agents/agents.d.ts +1 -1
- package/resources/beta/agents/agents.d.ts.map +1 -1
- package/resources/beta/agents/agents.js.map +1 -1
- package/resources/beta/agents/agents.mjs.map +1 -1
- package/resources/beta/beta.d.mts +4 -4
- package/resources/beta/beta.d.mts.map +1 -1
- package/resources/beta/beta.d.ts +4 -4
- package/resources/beta/beta.d.ts.map +1 -1
- package/resources/beta/beta.js.map +1 -1
- package/resources/beta/beta.mjs.map +1 -1
- package/resources/beta/environments/work.d.mts +2 -1
- package/resources/beta/environments/work.d.mts.map +1 -1
- package/resources/beta/environments/work.d.ts +2 -1
- package/resources/beta/environments/work.d.ts.map +1 -1
- package/resources/beta/environments/work.js.map +1 -1
- package/resources/beta/environments/work.mjs.map +1 -1
- package/resources/beta/index.d.mts +2 -2
- package/resources/beta/index.d.mts.map +1 -1
- package/resources/beta/index.d.ts +2 -2
- package/resources/beta/index.d.ts.map +1 -1
- package/resources/beta/index.js.map +1 -1
- package/resources/beta/index.mjs.map +1 -1
- package/resources/beta/sessions/events.d.mts +15 -2
- package/resources/beta/sessions/events.d.mts.map +1 -1
- package/resources/beta/sessions/events.d.ts +15 -2
- package/resources/beta/sessions/events.d.ts.map +1 -1
- package/resources/beta/sessions/events.js +2 -1
- package/resources/beta/sessions/events.js.map +1 -1
- package/resources/beta/sessions/events.mjs +2 -1
- package/resources/beta/sessions/events.mjs.map +1 -1
- package/resources/beta/sessions/index.d.mts +1 -1
- package/resources/beta/sessions/index.d.mts.map +1 -1
- package/resources/beta/sessions/index.d.ts +1 -1
- package/resources/beta/sessions/index.d.ts.map +1 -1
- package/resources/beta/sessions/index.js.map +1 -1
- package/resources/beta/sessions/index.mjs.map +1 -1
- package/resources/beta/sessions/sessions.d.mts +121 -6
- package/resources/beta/sessions/sessions.d.mts.map +1 -1
- package/resources/beta/sessions/sessions.d.ts +121 -6
- package/resources/beta/sessions/sessions.d.ts.map +1 -1
- package/resources/beta/sessions/sessions.js +1 -1
- package/resources/beta/sessions/sessions.js.map +1 -1
- package/resources/beta/sessions/sessions.mjs +2 -2
- package/resources/beta/sessions/sessions.mjs.map +1 -1
- package/resources/beta/sessions/threads/threads.d.mts +1 -1
- package/resources/beta/sessions/threads/threads.d.mts.map +1 -1
- package/resources/beta/sessions/threads/threads.d.ts +1 -1
- package/resources/beta/sessions/threads/threads.d.ts.map +1 -1
- package/resources/beta/sessions/threads/threads.js.map +1 -1
- package/resources/beta/sessions/threads/threads.mjs.map +1 -1
- package/resources/beta/vaults/credentials.d.mts +52 -1
- package/resources/beta/vaults/credentials.d.mts.map +1 -1
- package/resources/beta/vaults/credentials.d.ts +52 -1
- package/resources/beta/vaults/credentials.d.ts.map +1 -1
- package/resources/beta/vaults/index.d.mts +1 -1
- package/resources/beta/vaults/index.d.mts.map +1 -1
- package/resources/beta/vaults/index.d.ts +1 -1
- package/resources/beta/vaults/index.d.ts.map +1 -1
- package/resources/beta/vaults/index.js.map +1 -1
- package/resources/beta/vaults/index.mjs.map +1 -1
- package/resources/beta/vaults/vaults.d.mts +2 -2
- package/resources/beta/vaults/vaults.d.mts.map +1 -1
- package/resources/beta/vaults/vaults.d.ts +2 -2
- package/resources/beta/vaults/vaults.d.ts.map +1 -1
- package/resources/beta/vaults/vaults.js.map +1 -1
- package/resources/beta/vaults/vaults.mjs.map +1 -1
- package/resources/beta/webhooks.d.mts +183 -2
- package/resources/beta/webhooks.d.mts.map +1 -1
- package/resources/beta/webhooks.d.ts +183 -2
- package/resources/beta/webhooks.d.ts.map +1 -1
- package/resources/messages/messages.d.mts +1 -1
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +1 -1
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/src/client.ts +8 -0
- package/src/core/pagination.ts +60 -0
- package/src/core/streaming.ts +2 -0
- package/src/lib/sessions/accumulate.ts +129 -0
- package/src/resources/beta/agents/agents.ts +1 -0
- package/src/resources/beta/beta.ts +60 -2
- package/src/resources/beta/environments/work.ts +2 -1
- package/src/resources/beta/index.ts +30 -1
- package/src/resources/beta/sessions/events.ts +19 -2
- package/src/resources/beta/sessions/index.ts +9 -1
- package/src/resources/beta/sessions/sessions.ts +174 -14
- package/src/resources/beta/sessions/threads/threads.ts +2 -0
- package/src/resources/beta/vaults/credentials.ts +63 -0
- package/src/resources/beta/vaults/index.ts +3 -0
- package/src/resources/beta/vaults/vaults.ts +6 -0
- package/src/resources/beta/webhooks.ts +304 -1
- package/src/resources/messages/messages.ts +1 -0
- package/src/tools/agent-toolset/fs-util.ts +5 -11
- package/src/tools/agent-toolset/node.ts +10 -9
- package/src/version.ts +1 -1
- package/tools/agent-toolset/fs-util.d.mts +4 -3
- package/tools/agent-toolset/fs-util.d.mts.map +1 -1
- package/tools/agent-toolset/fs-util.d.ts +4 -3
- package/tools/agent-toolset/fs-util.d.ts.map +1 -1
- package/tools/agent-toolset/fs-util.js +5 -11
- package/tools/agent-toolset/fs-util.js.map +1 -1
- package/tools/agent-toolset/fs-util.mjs +5 -11
- package/tools/agent-toolset/fs-util.mjs.map +1 -1
- package/tools/agent-toolset/node.d.mts +10 -9
- package/tools/agent-toolset/node.d.mts.map +1 -1
- package/tools/agent-toolset/node.d.ts +10 -9
- package/tools/agent-toolset/node.d.ts.map +1 -1
- package/tools/agent-toolset/node.js +8 -6
- package/tools/agent-toolset/node.js.map +1 -1
- package/tools/agent-toolset/node.mjs +8 -6
- package/tools/agent-toolset/node.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -256,6 +256,8 @@ export type BetaManagedAgentsStreamSessionThreadEvents =
|
|
|
256
256
|
| SessionsAPI.BetaManagedAgentsUserToolResultEvent
|
|
257
257
|
| EventsAPI.BetaManagedAgentsSessionThreadStatusRescheduledEvent
|
|
258
258
|
| SessionsAPI.BetaManagedAgentsSessionUpdatedEvent
|
|
259
|
+
| SessionsAPI.BetaManagedAgentsStartEvent
|
|
260
|
+
| SessionsAPI.BetaManagedAgentsDeltaEvent
|
|
259
261
|
| SessionsAPI.BetaManagedAgentsSystemMessageEvent;
|
|
260
262
|
|
|
261
263
|
export interface ThreadRetrieveParams {
|
|
@@ -342,6 +342,11 @@ export interface BetaManagedAgentsDeletedCredential {
|
|
|
342
342
|
* Environment variable credential details. The secret value is never returned.
|
|
343
343
|
*/
|
|
344
344
|
export interface BetaManagedAgentsEnvironmentVariableAuthResponse {
|
|
345
|
+
/**
|
|
346
|
+
* Where in the outbound request the secret value is substituted.
|
|
347
|
+
*/
|
|
348
|
+
injection_location: BetaManagedAgentsInjectionLocationResponse;
|
|
349
|
+
|
|
345
350
|
/**
|
|
346
351
|
* Outbound hosts the secret value is substituted on.
|
|
347
352
|
*/
|
|
@@ -377,6 +382,11 @@ export interface BetaManagedAgentsEnvironmentVariableCreateParams {
|
|
|
377
382
|
secret_value: string;
|
|
378
383
|
|
|
379
384
|
type: 'environment_variable';
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Where in the outbound request the secret value may be substituted.
|
|
388
|
+
*/
|
|
389
|
+
injection_location?: BetaManagedAgentsInjectionLocationParams;
|
|
380
390
|
}
|
|
381
391
|
|
|
382
392
|
/**
|
|
@@ -386,6 +396,11 @@ export interface BetaManagedAgentsEnvironmentVariableCreateParams {
|
|
|
386
396
|
export interface BetaManagedAgentsEnvironmentVariableUpdateParams {
|
|
387
397
|
type: 'environment_variable';
|
|
388
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Updated injection location.
|
|
401
|
+
*/
|
|
402
|
+
injection_location?: BetaManagedAgentsInjectionLocationUpdateParams;
|
|
403
|
+
|
|
389
404
|
/**
|
|
390
405
|
* Updated networking scope. Full replacement.
|
|
391
406
|
*/
|
|
@@ -397,6 +412,51 @@ export interface BetaManagedAgentsEnvironmentVariableUpdateParams {
|
|
|
397
412
|
secret_value?: string | null;
|
|
398
413
|
}
|
|
399
414
|
|
|
415
|
+
/**
|
|
416
|
+
* Where in the outbound request the secret value may be substituted.
|
|
417
|
+
*/
|
|
418
|
+
export interface BetaManagedAgentsInjectionLocationParams {
|
|
419
|
+
/**
|
|
420
|
+
* Substitute when the placeholder appears in the request body.
|
|
421
|
+
*/
|
|
422
|
+
body?: boolean;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Substitute when the placeholder appears in a request header value.
|
|
426
|
+
*/
|
|
427
|
+
header?: boolean;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Where in the outbound request the secret value is substituted.
|
|
432
|
+
*/
|
|
433
|
+
export interface BetaManagedAgentsInjectionLocationResponse {
|
|
434
|
+
/**
|
|
435
|
+
* Whether the placeholder is substituted in the request body.
|
|
436
|
+
*/
|
|
437
|
+
body: boolean;
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Whether the placeholder is substituted in request header values.
|
|
441
|
+
*/
|
|
442
|
+
header: boolean;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* Updated injection location.
|
|
447
|
+
*/
|
|
448
|
+
export interface BetaManagedAgentsInjectionLocationUpdateParams {
|
|
449
|
+
/**
|
|
450
|
+
* Substitute when the placeholder appears in the request body.
|
|
451
|
+
*/
|
|
452
|
+
body?: boolean;
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Substitute when the placeholder appears in a request header value.
|
|
456
|
+
*/
|
|
457
|
+
header?: boolean;
|
|
458
|
+
}
|
|
459
|
+
|
|
400
460
|
/**
|
|
401
461
|
* Substitute the secret only on requests to the listed hosts.
|
|
402
462
|
*/
|
|
@@ -908,6 +968,9 @@ export declare namespace Credentials {
|
|
|
908
968
|
type BetaManagedAgentsEnvironmentVariableAuthResponse as BetaManagedAgentsEnvironmentVariableAuthResponse,
|
|
909
969
|
type BetaManagedAgentsEnvironmentVariableCreateParams as BetaManagedAgentsEnvironmentVariableCreateParams,
|
|
910
970
|
type BetaManagedAgentsEnvironmentVariableUpdateParams as BetaManagedAgentsEnvironmentVariableUpdateParams,
|
|
971
|
+
type BetaManagedAgentsInjectionLocationParams as BetaManagedAgentsInjectionLocationParams,
|
|
972
|
+
type BetaManagedAgentsInjectionLocationResponse as BetaManagedAgentsInjectionLocationResponse,
|
|
973
|
+
type BetaManagedAgentsInjectionLocationUpdateParams as BetaManagedAgentsInjectionLocationUpdateParams,
|
|
911
974
|
type BetaManagedAgentsLimitedCredentialNetworkingParams as BetaManagedAgentsLimitedCredentialNetworkingParams,
|
|
912
975
|
type BetaManagedAgentsLimitedCredentialNetworkingResponse as BetaManagedAgentsLimitedCredentialNetworkingResponse,
|
|
913
976
|
type BetaManagedAgentsMCPOAuthAuthResponse as BetaManagedAgentsMCPOAuthAuthResponse,
|
|
@@ -10,6 +10,9 @@ export {
|
|
|
10
10
|
type BetaManagedAgentsEnvironmentVariableAuthResponse,
|
|
11
11
|
type BetaManagedAgentsEnvironmentVariableCreateParams,
|
|
12
12
|
type BetaManagedAgentsEnvironmentVariableUpdateParams,
|
|
13
|
+
type BetaManagedAgentsInjectionLocationParams,
|
|
14
|
+
type BetaManagedAgentsInjectionLocationResponse,
|
|
15
|
+
type BetaManagedAgentsInjectionLocationUpdateParams,
|
|
13
16
|
type BetaManagedAgentsLimitedCredentialNetworkingParams,
|
|
14
17
|
type BetaManagedAgentsLimitedCredentialNetworkingResponse,
|
|
15
18
|
type BetaManagedAgentsMCPOAuthAuthResponse,
|
|
@@ -13,6 +13,9 @@ import {
|
|
|
13
13
|
BetaManagedAgentsEnvironmentVariableAuthResponse,
|
|
14
14
|
BetaManagedAgentsEnvironmentVariableCreateParams,
|
|
15
15
|
BetaManagedAgentsEnvironmentVariableUpdateParams,
|
|
16
|
+
BetaManagedAgentsInjectionLocationParams,
|
|
17
|
+
BetaManagedAgentsInjectionLocationResponse,
|
|
18
|
+
BetaManagedAgentsInjectionLocationUpdateParams,
|
|
16
19
|
BetaManagedAgentsLimitedCredentialNetworkingParams,
|
|
17
20
|
BetaManagedAgentsLimitedCredentialNetworkingResponse,
|
|
18
21
|
BetaManagedAgentsMCPOAuthAuthResponse,
|
|
@@ -355,6 +358,9 @@ export declare namespace Vaults {
|
|
|
355
358
|
type BetaManagedAgentsEnvironmentVariableAuthResponse as BetaManagedAgentsEnvironmentVariableAuthResponse,
|
|
356
359
|
type BetaManagedAgentsEnvironmentVariableCreateParams as BetaManagedAgentsEnvironmentVariableCreateParams,
|
|
357
360
|
type BetaManagedAgentsEnvironmentVariableUpdateParams as BetaManagedAgentsEnvironmentVariableUpdateParams,
|
|
361
|
+
type BetaManagedAgentsInjectionLocationParams as BetaManagedAgentsInjectionLocationParams,
|
|
362
|
+
type BetaManagedAgentsInjectionLocationResponse as BetaManagedAgentsInjectionLocationResponse,
|
|
363
|
+
type BetaManagedAgentsInjectionLocationUpdateParams as BetaManagedAgentsInjectionLocationUpdateParams,
|
|
358
364
|
type BetaManagedAgentsLimitedCredentialNetworkingParams as BetaManagedAgentsLimitedCredentialNetworkingParams,
|
|
359
365
|
type BetaManagedAgentsLimitedCredentialNetworkingResponse as BetaManagedAgentsLimitedCredentialNetworkingResponse,
|
|
360
366
|
type BetaManagedAgentsMCPOAuthAuthResponse as BetaManagedAgentsMCPOAuthAuthResponse,
|
|
@@ -18,6 +18,229 @@ export class Webhooks extends APIResource {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
export interface BetaWebhookAgentArchivedEventData {
|
|
22
|
+
/**
|
|
23
|
+
* ID of the agent that triggered the event.
|
|
24
|
+
*/
|
|
25
|
+
id: string;
|
|
26
|
+
|
|
27
|
+
organization_id: string;
|
|
28
|
+
|
|
29
|
+
type: 'agent.archived';
|
|
30
|
+
|
|
31
|
+
workspace_id: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface BetaWebhookAgentCreatedEventData {
|
|
35
|
+
/**
|
|
36
|
+
* ID of the agent that triggered the event.
|
|
37
|
+
*/
|
|
38
|
+
id: string;
|
|
39
|
+
|
|
40
|
+
organization_id: string;
|
|
41
|
+
|
|
42
|
+
type: 'agent.created';
|
|
43
|
+
|
|
44
|
+
workspace_id: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface BetaWebhookAgentDeletedEventData {
|
|
48
|
+
/**
|
|
49
|
+
* ID of the agent that triggered the event.
|
|
50
|
+
*/
|
|
51
|
+
id: string;
|
|
52
|
+
|
|
53
|
+
organization_id: string;
|
|
54
|
+
|
|
55
|
+
type: 'agent.deleted';
|
|
56
|
+
|
|
57
|
+
workspace_id: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface BetaWebhookAgentUpdatedEventData {
|
|
61
|
+
/**
|
|
62
|
+
* ID of the agent that triggered the event.
|
|
63
|
+
*/
|
|
64
|
+
id: string;
|
|
65
|
+
|
|
66
|
+
organization_id: string;
|
|
67
|
+
|
|
68
|
+
type: 'agent.updated';
|
|
69
|
+
|
|
70
|
+
workspace_id: string;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export interface BetaWebhookDeploymentArchivedEventData {
|
|
74
|
+
/**
|
|
75
|
+
* ID of the deployment that triggered the event.
|
|
76
|
+
*/
|
|
77
|
+
id: string;
|
|
78
|
+
|
|
79
|
+
organization_id: string;
|
|
80
|
+
|
|
81
|
+
type: 'deployment.archived';
|
|
82
|
+
|
|
83
|
+
workspace_id: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface BetaWebhookDeploymentCreatedEventData {
|
|
87
|
+
/**
|
|
88
|
+
* ID of the deployment that triggered the event.
|
|
89
|
+
*/
|
|
90
|
+
id: string;
|
|
91
|
+
|
|
92
|
+
organization_id: string;
|
|
93
|
+
|
|
94
|
+
type: 'deployment.created';
|
|
95
|
+
|
|
96
|
+
workspace_id: string;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export interface BetaWebhookDeploymentDeletedEventData {
|
|
100
|
+
/**
|
|
101
|
+
* ID of the deployment that triggered the event.
|
|
102
|
+
*/
|
|
103
|
+
id: string;
|
|
104
|
+
|
|
105
|
+
organization_id: string;
|
|
106
|
+
|
|
107
|
+
type: 'deployment.deleted';
|
|
108
|
+
|
|
109
|
+
workspace_id: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export interface BetaWebhookDeploymentPausedEventData {
|
|
113
|
+
/**
|
|
114
|
+
* ID of the deployment that triggered the event.
|
|
115
|
+
*/
|
|
116
|
+
id: string;
|
|
117
|
+
|
|
118
|
+
organization_id: string;
|
|
119
|
+
|
|
120
|
+
type: 'deployment.paused';
|
|
121
|
+
|
|
122
|
+
workspace_id: string;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export interface BetaWebhookDeploymentRunFailedEventData {
|
|
126
|
+
/**
|
|
127
|
+
* ID of the deployment run that triggered the event.
|
|
128
|
+
*/
|
|
129
|
+
id: string;
|
|
130
|
+
|
|
131
|
+
organization_id: string;
|
|
132
|
+
|
|
133
|
+
type: 'deployment_run.failed';
|
|
134
|
+
|
|
135
|
+
workspace_id: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export interface BetaWebhookDeploymentRunStartedEventData {
|
|
139
|
+
/**
|
|
140
|
+
* ID of the deployment run that triggered the event.
|
|
141
|
+
*/
|
|
142
|
+
id: string;
|
|
143
|
+
|
|
144
|
+
organization_id: string;
|
|
145
|
+
|
|
146
|
+
type: 'deployment_run.started';
|
|
147
|
+
|
|
148
|
+
workspace_id: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export interface BetaWebhookDeploymentRunSucceededEventData {
|
|
152
|
+
/**
|
|
153
|
+
* ID of the deployment run that triggered the event.
|
|
154
|
+
*/
|
|
155
|
+
id: string;
|
|
156
|
+
|
|
157
|
+
organization_id: string;
|
|
158
|
+
|
|
159
|
+
type: 'deployment_run.succeeded';
|
|
160
|
+
|
|
161
|
+
workspace_id: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface BetaWebhookDeploymentUnpausedEventData {
|
|
165
|
+
/**
|
|
166
|
+
* ID of the deployment that triggered the event.
|
|
167
|
+
*/
|
|
168
|
+
id: string;
|
|
169
|
+
|
|
170
|
+
organization_id: string;
|
|
171
|
+
|
|
172
|
+
type: 'deployment.unpaused';
|
|
173
|
+
|
|
174
|
+
workspace_id: string;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface BetaWebhookDeploymentUpdatedEventData {
|
|
178
|
+
/**
|
|
179
|
+
* ID of the deployment that triggered the event.
|
|
180
|
+
*/
|
|
181
|
+
id: string;
|
|
182
|
+
|
|
183
|
+
organization_id: string;
|
|
184
|
+
|
|
185
|
+
type: 'deployment.updated';
|
|
186
|
+
|
|
187
|
+
workspace_id: string;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export interface BetaWebhookEnvironmentArchivedEventData {
|
|
191
|
+
/**
|
|
192
|
+
* ID of the environment that triggered the event.
|
|
193
|
+
*/
|
|
194
|
+
id: string;
|
|
195
|
+
|
|
196
|
+
organization_id: string;
|
|
197
|
+
|
|
198
|
+
type: 'environment.archived';
|
|
199
|
+
|
|
200
|
+
workspace_id: string;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface BetaWebhookEnvironmentCreatedEventData {
|
|
204
|
+
/**
|
|
205
|
+
* ID of the environment that triggered the event.
|
|
206
|
+
*/
|
|
207
|
+
id: string;
|
|
208
|
+
|
|
209
|
+
organization_id: string;
|
|
210
|
+
|
|
211
|
+
type: 'environment.created';
|
|
212
|
+
|
|
213
|
+
workspace_id: string;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export interface BetaWebhookEnvironmentDeletedEventData {
|
|
217
|
+
/**
|
|
218
|
+
* ID of the environment that triggered the event.
|
|
219
|
+
*/
|
|
220
|
+
id: string;
|
|
221
|
+
|
|
222
|
+
organization_id: string;
|
|
223
|
+
|
|
224
|
+
type: BetaWebhookEnvironmentDeletedEventType;
|
|
225
|
+
|
|
226
|
+
workspace_id: string;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type BetaWebhookEnvironmentDeletedEventType = 'environment.deleted';
|
|
230
|
+
|
|
231
|
+
export interface BetaWebhookEnvironmentUpdatedEventData {
|
|
232
|
+
/**
|
|
233
|
+
* ID of the environment that triggered the event.
|
|
234
|
+
*/
|
|
235
|
+
id: string;
|
|
236
|
+
|
|
237
|
+
organization_id: string;
|
|
238
|
+
|
|
239
|
+
type: 'environment.updated';
|
|
240
|
+
|
|
241
|
+
workspace_id: string;
|
|
242
|
+
}
|
|
243
|
+
|
|
21
244
|
export interface BetaWebhookEvent {
|
|
22
245
|
/**
|
|
23
246
|
* Unique event identifier for idempotency.
|
|
@@ -60,7 +283,66 @@ export type BetaWebhookEventData =
|
|
|
60
283
|
| BetaWebhookVaultCredentialArchivedEventData
|
|
61
284
|
| BetaWebhookVaultCredentialDeletedEventData
|
|
62
285
|
| BetaWebhookVaultCredentialRefreshFailedEventData
|
|
63
|
-
| BetaWebhookSessionUpdatedEventData
|
|
286
|
+
| BetaWebhookSessionUpdatedEventData
|
|
287
|
+
| BetaWebhookAgentCreatedEventData
|
|
288
|
+
| BetaWebhookAgentArchivedEventData
|
|
289
|
+
| BetaWebhookAgentDeletedEventData
|
|
290
|
+
| BetaWebhookDeploymentPausedEventData
|
|
291
|
+
| BetaWebhookDeploymentRunFailedEventData
|
|
292
|
+
| BetaWebhookDeploymentCreatedEventData
|
|
293
|
+
| BetaWebhookDeploymentUpdatedEventData
|
|
294
|
+
| BetaWebhookDeploymentUnpausedEventData
|
|
295
|
+
| BetaWebhookAgentUpdatedEventData
|
|
296
|
+
| BetaWebhookDeploymentArchivedEventData
|
|
297
|
+
| BetaWebhookDeploymentRunStartedEventData
|
|
298
|
+
| BetaWebhookDeploymentDeletedEventData
|
|
299
|
+
| BetaWebhookDeploymentRunSucceededEventData
|
|
300
|
+
| BetaWebhookEnvironmentCreatedEventData
|
|
301
|
+
| BetaWebhookEnvironmentUpdatedEventData
|
|
302
|
+
| BetaWebhookEnvironmentArchivedEventData
|
|
303
|
+
| BetaWebhookEnvironmentDeletedEventData
|
|
304
|
+
| BetaWebhookMemoryStoreCreatedEventData
|
|
305
|
+
| BetaWebhookMemoryStoreArchivedEventData
|
|
306
|
+
| BetaWebhookMemoryStoreDeletedEventData;
|
|
307
|
+
|
|
308
|
+
export interface BetaWebhookMemoryStoreArchivedEventData {
|
|
309
|
+
/**
|
|
310
|
+
* ID of the memory store that triggered the event.
|
|
311
|
+
*/
|
|
312
|
+
id: string;
|
|
313
|
+
|
|
314
|
+
organization_id: string;
|
|
315
|
+
|
|
316
|
+
type: 'memory_store.archived';
|
|
317
|
+
|
|
318
|
+
workspace_id: string;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export interface BetaWebhookMemoryStoreCreatedEventData {
|
|
322
|
+
/**
|
|
323
|
+
* ID of the memory store that triggered the event.
|
|
324
|
+
*/
|
|
325
|
+
id: string;
|
|
326
|
+
|
|
327
|
+
organization_id: string;
|
|
328
|
+
|
|
329
|
+
type: 'memory_store.created';
|
|
330
|
+
|
|
331
|
+
workspace_id: string;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
export interface BetaWebhookMemoryStoreDeletedEventData {
|
|
335
|
+
/**
|
|
336
|
+
* ID of the memory store that triggered the event.
|
|
337
|
+
*/
|
|
338
|
+
id: string;
|
|
339
|
+
|
|
340
|
+
organization_id: string;
|
|
341
|
+
|
|
342
|
+
type: 'memory_store.deleted';
|
|
343
|
+
|
|
344
|
+
workspace_id: string;
|
|
345
|
+
}
|
|
64
346
|
|
|
65
347
|
export interface BetaWebhookSessionArchivedEventData {
|
|
66
348
|
/**
|
|
@@ -417,8 +699,29 @@ export interface UnwrapWebhookEvent {
|
|
|
417
699
|
|
|
418
700
|
export declare namespace Webhooks {
|
|
419
701
|
export {
|
|
702
|
+
type BetaWebhookAgentArchivedEventData as BetaWebhookAgentArchivedEventData,
|
|
703
|
+
type BetaWebhookAgentCreatedEventData as BetaWebhookAgentCreatedEventData,
|
|
704
|
+
type BetaWebhookAgentDeletedEventData as BetaWebhookAgentDeletedEventData,
|
|
705
|
+
type BetaWebhookAgentUpdatedEventData as BetaWebhookAgentUpdatedEventData,
|
|
706
|
+
type BetaWebhookDeploymentArchivedEventData as BetaWebhookDeploymentArchivedEventData,
|
|
707
|
+
type BetaWebhookDeploymentCreatedEventData as BetaWebhookDeploymentCreatedEventData,
|
|
708
|
+
type BetaWebhookDeploymentDeletedEventData as BetaWebhookDeploymentDeletedEventData,
|
|
709
|
+
type BetaWebhookDeploymentPausedEventData as BetaWebhookDeploymentPausedEventData,
|
|
710
|
+
type BetaWebhookDeploymentRunFailedEventData as BetaWebhookDeploymentRunFailedEventData,
|
|
711
|
+
type BetaWebhookDeploymentRunStartedEventData as BetaWebhookDeploymentRunStartedEventData,
|
|
712
|
+
type BetaWebhookDeploymentRunSucceededEventData as BetaWebhookDeploymentRunSucceededEventData,
|
|
713
|
+
type BetaWebhookDeploymentUnpausedEventData as BetaWebhookDeploymentUnpausedEventData,
|
|
714
|
+
type BetaWebhookDeploymentUpdatedEventData as BetaWebhookDeploymentUpdatedEventData,
|
|
715
|
+
type BetaWebhookEnvironmentArchivedEventData as BetaWebhookEnvironmentArchivedEventData,
|
|
716
|
+
type BetaWebhookEnvironmentCreatedEventData as BetaWebhookEnvironmentCreatedEventData,
|
|
717
|
+
type BetaWebhookEnvironmentDeletedEventData as BetaWebhookEnvironmentDeletedEventData,
|
|
718
|
+
type BetaWebhookEnvironmentDeletedEventType as BetaWebhookEnvironmentDeletedEventType,
|
|
719
|
+
type BetaWebhookEnvironmentUpdatedEventData as BetaWebhookEnvironmentUpdatedEventData,
|
|
420
720
|
type BetaWebhookEvent as BetaWebhookEvent,
|
|
421
721
|
type BetaWebhookEventData as BetaWebhookEventData,
|
|
722
|
+
type BetaWebhookMemoryStoreArchivedEventData as BetaWebhookMemoryStoreArchivedEventData,
|
|
723
|
+
type BetaWebhookMemoryStoreCreatedEventData as BetaWebhookMemoryStoreCreatedEventData,
|
|
724
|
+
type BetaWebhookMemoryStoreDeletedEventData as BetaWebhookMemoryStoreDeletedEventData,
|
|
422
725
|
type BetaWebhookSessionArchivedEventData as BetaWebhookSessionArchivedEventData,
|
|
423
726
|
type BetaWebhookSessionCreatedEventData as BetaWebhookSessionCreatedEventData,
|
|
424
727
|
type BetaWebhookSessionDeletedEventData as BetaWebhookSessionDeletedEventData,
|
|
@@ -70,9 +70,10 @@ export async function canonicalize(abs: string): Promise<string> {
|
|
|
70
70
|
/**
|
|
71
71
|
* Resolve `p` and confine it to `root`.
|
|
72
72
|
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
73
|
+
* Absolute and relative inputs go through the same canonicalise-then-contain
|
|
74
|
+
* check — an absolute path that lands inside `root` is permitted, only paths
|
|
75
|
+
* that resolve *outside* are rejected. Every symlink in `p` (including the
|
|
76
|
+
* leaf, even a dangling one) is resolved before the confinement check, and the
|
|
76
77
|
* resolved path is what the caller then operates on, so a symlink inside `root`
|
|
77
78
|
* that points outside it can neither pass the check nor be followed afterwards.
|
|
78
79
|
*
|
|
@@ -87,18 +88,11 @@ export async function confineToRoot(
|
|
|
87
88
|
opts?: { allowOutside?: boolean },
|
|
88
89
|
): Promise<string> {
|
|
89
90
|
const allowOutside = opts?.allowOutside ?? false;
|
|
90
|
-
if (path.isAbsolute(p)) {
|
|
91
|
-
if (!allowOutside) {
|
|
92
|
-
throw new ToolError(`absolute path ${JSON.stringify(p)} not permitted`);
|
|
93
|
-
}
|
|
94
|
-
return path.resolve(p);
|
|
95
|
-
}
|
|
96
91
|
const realRoot = await realpathOrSelf(path.resolve(root));
|
|
97
92
|
const abs = path.resolve(realRoot, p);
|
|
98
93
|
if (allowOutside) return abs;
|
|
99
94
|
const real = await canonicalize(abs);
|
|
100
|
-
|
|
101
|
-
if (real !== realRoot && !real.startsWith(rootSep)) {
|
|
95
|
+
if (real !== realRoot && !real.startsWith(realRoot + path.sep)) {
|
|
102
96
|
throw new ToolError(`path ${JSON.stringify(p)} escapes workdir`);
|
|
103
97
|
}
|
|
104
98
|
return real;
|
|
@@ -95,9 +95,8 @@ export interface AgentToolContext {
|
|
|
95
95
|
/** Base directory for resolving relative tool paths. */
|
|
96
96
|
workdir: string;
|
|
97
97
|
/**
|
|
98
|
-
* When `false` (default), the file tools reject
|
|
99
|
-
*
|
|
100
|
-
* {@link betaBashTool}.
|
|
98
|
+
* When `false` (default), the file tools reject paths that resolve outside
|
|
99
|
+
* `workdir` (symlinks resolved). Does **not** constrain {@link betaBashTool}.
|
|
101
100
|
*/
|
|
102
101
|
unrestrictedPaths?: boolean;
|
|
103
102
|
/**
|
|
@@ -161,12 +160,14 @@ export function betaAgentToolset20260401(ctx: AgentToolContext): BetaRunnableToo
|
|
|
161
160
|
}
|
|
162
161
|
|
|
163
162
|
/**
|
|
164
|
-
* Resolve `p`
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
*
|
|
163
|
+
* Resolve `p` against `ctx.workdir`. Absolute and relative inputs go through
|
|
164
|
+
* the same canonicalise-then-contain check — an absolute path that lands inside
|
|
165
|
+
* the workdir is permitted, only paths that resolve *outside* are rejected.
|
|
166
|
+
* Every symlink in `p` (including the leaf, even a dangling one) is resolved
|
|
167
|
+
* before the workdir check, and the resolved path is what the tool then operates
|
|
168
|
+
* on, so a symlink inside the workdir that points outside it can neither pass
|
|
169
|
+
* the check nor be followed afterwards. See the trust model on
|
|
170
|
+
* {@link AgentToolContext}.
|
|
170
171
|
*
|
|
171
172
|
* Residual TOCTOU: a component could still be swapped for a symlink between this
|
|
172
173
|
* call and the eventual `fs` operation. Closing that fully needs per-component
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.109.0'; // x-release-please-version
|
|
@@ -19,9 +19,10 @@ export declare function canonicalize(abs: string): Promise<string>;
|
|
|
19
19
|
/**
|
|
20
20
|
* Resolve `p` and confine it to `root`.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* Absolute and relative inputs go through the same canonicalise-then-contain
|
|
23
|
+
* check — an absolute path that lands inside `root` is permitted, only paths
|
|
24
|
+
* that resolve *outside* are rejected. Every symlink in `p` (including the
|
|
25
|
+
* leaf, even a dangling one) is resolved before the confinement check, and the
|
|
25
26
|
* resolved path is what the caller then operates on, so a symlink inside `root`
|
|
26
27
|
* that points outside it can neither pass the check nor be followed afterwards.
|
|
27
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs-util.d.mts","sourceRoot":"","sources":["../../src/tools/agent-toolset/fs-util.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,uFAAuF;AACvF,eAAO,MAAM,eAAe,MAAQ,CAAC;AACrC,4CAA4C;AAC5C,eAAO,MAAM,gBAAgB,MAAQ,CAAC;AAWtC;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkC/D;AAED
|
|
1
|
+
{"version":3,"file":"fs-util.d.mts","sourceRoot":"","sources":["../../src/tools/agent-toolset/fs-util.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,uFAAuF;AACvF,eAAO,MAAM,eAAe,MAAQ,CAAC;AACrC,4CAA4C;AAC5C,eAAO,MAAM,gBAAgB,MAAQ,CAAC;AAWtC;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkC/D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,MAAM,EACT,IAAI,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GAChC,OAAO,CAAC,MAAM,CAAC,CAUjB;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBxF;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAwBjE"}
|
|
@@ -19,9 +19,10 @@ export declare function canonicalize(abs: string): Promise<string>;
|
|
|
19
19
|
/**
|
|
20
20
|
* Resolve `p` and confine it to `root`.
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
22
|
+
* Absolute and relative inputs go through the same canonicalise-then-contain
|
|
23
|
+
* check — an absolute path that lands inside `root` is permitted, only paths
|
|
24
|
+
* that resolve *outside* are rejected. Every symlink in `p` (including the
|
|
25
|
+
* leaf, even a dangling one) is resolved before the confinement check, and the
|
|
25
26
|
* resolved path is what the caller then operates on, so a symlink inside `root`
|
|
26
27
|
* that points outside it can neither pass the check nor be followed afterwards.
|
|
27
28
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs-util.d.ts","sourceRoot":"","sources":["../../src/tools/agent-toolset/fs-util.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,uFAAuF;AACvF,eAAO,MAAM,eAAe,MAAQ,CAAC;AACrC,4CAA4C;AAC5C,eAAO,MAAM,gBAAgB,MAAQ,CAAC;AAWtC;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkC/D;AAED
|
|
1
|
+
{"version":3,"file":"fs-util.d.ts","sourceRoot":"","sources":["../../src/tools/agent-toolset/fs-util.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,uFAAuF;AACvF,eAAO,MAAM,eAAe,MAAQ,CAAC;AACrC,4CAA4C;AAC5C,eAAO,MAAM,gBAAgB,MAAQ,CAAC;AAWtC;;;;;;GAMG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAkC/D;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,CAAC,EAAE,MAAM,EACT,IAAI,CAAC,EAAE;IAAE,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,GAChC,OAAO,CAAC,MAAM,CAAC,CAUjB;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAgBxF;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAwBjE"}
|
|
@@ -77,9 +77,10 @@ async function canonicalize(abs) {
|
|
|
77
77
|
/**
|
|
78
78
|
* Resolve `p` and confine it to `root`.
|
|
79
79
|
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
80
|
+
* Absolute and relative inputs go through the same canonicalise-then-contain
|
|
81
|
+
* check — an absolute path that lands inside `root` is permitted, only paths
|
|
82
|
+
* that resolve *outside* are rejected. Every symlink in `p` (including the
|
|
83
|
+
* leaf, even a dangling one) is resolved before the confinement check, and the
|
|
83
84
|
* resolved path is what the caller then operates on, so a symlink inside `root`
|
|
84
85
|
* that points outside it can neither pass the check nor be followed afterwards.
|
|
85
86
|
*
|
|
@@ -90,19 +91,12 @@ async function canonicalize(abs) {
|
|
|
90
91
|
*/
|
|
91
92
|
async function confineToRoot(root, p, opts) {
|
|
92
93
|
const allowOutside = opts?.allowOutside ?? false;
|
|
93
|
-
if (path.isAbsolute(p)) {
|
|
94
|
-
if (!allowOutside) {
|
|
95
|
-
throw new ToolError_1.ToolError(`absolute path ${JSON.stringify(p)} not permitted`);
|
|
96
|
-
}
|
|
97
|
-
return path.resolve(p);
|
|
98
|
-
}
|
|
99
94
|
const realRoot = await realpathOrSelf(path.resolve(root));
|
|
100
95
|
const abs = path.resolve(realRoot, p);
|
|
101
96
|
if (allowOutside)
|
|
102
97
|
return abs;
|
|
103
98
|
const real = await canonicalize(abs);
|
|
104
|
-
|
|
105
|
-
if (real !== realRoot && !real.startsWith(rootSep)) {
|
|
99
|
+
if (real !== realRoot && !real.startsWith(realRoot + path.sep)) {
|
|
106
100
|
throw new ToolError_1.ToolError(`path ${JSON.stringify(p)} escapes workdir`);
|
|
107
101
|
}
|
|
108
102
|
return real;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs-util.js","sourceRoot":"","sources":["../../src/tools/agent-toolset/fs-util.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA4BH,oCAkCC;
|
|
1
|
+
{"version":3,"file":"fs-util.js","sourceRoot":"","sources":["../../src/tools/agent-toolset/fs-util.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA4BH,oCAkCC;AAiBD,sCAcC;AAOD,0CAgBC;AAQD,wCAwBC;;AAlJD,6DAAuC;AACvC,wDAAkC;AAClC,6CAAyC;AACzC,4DAAsD;AAEtD,uFAAuF;AAC1E,QAAA,eAAe,GAAG,KAAK,CAAC;AACrC,4CAA4C;AAC/B,QAAA,gBAAgB,GAAG,KAAK,CAAC;AAEtC,0EAA0E;AAC1E,KAAK,UAAU,cAAc,CAAC,CAAS;IACrC,IAAI,CAAC;QACH,OAAO,MAAM,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,CAAC,CAAC;IACX,CAAC;AACH,CAAC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,YAAY,CAAC,GAAW;IAC5C,MAAM,IAAI,GAAa,EAAE,CAAC;IAC1B,IAAI,MAAM,GAAG,GAAG,CAAC;IACjB,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,SAAS,CAAC;QACR,IAAI,IAAY,CAAC;QACjB,IAAI,CAAC;YACH,IAAI,GAAG,MAAM,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACnC,CAAC;QAAC,MAAM,CAAC;YACP,IAAI,MAAM,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC;gBACH,MAAM,GAAG,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,EAAE,CAAC;YACrD,CAAC;YAAC,MAAM,CAAC;gBACP,oEAAoE;YACtE,CAAC;YACD,IAAI,MAAM,EAAE,CAAC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