@takutakahashi/claude-agentapi 0.19.0 → 0.20.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.
@@ -1,106 +1,198 @@
1
1
  import { z } from 'zod';
2
2
  export declare const MessageSchema: z.ZodObject<{
3
3
  id: z.ZodNumber;
4
- role: z.ZodEnum<{
5
- user: "user";
6
- assistant: "assistant";
7
- agent: "agent";
8
- tool_result: "tool_result";
9
- }>;
4
+ role: z.ZodEnum<["user", "assistant", "agent", "tool_result"]>;
10
5
  content: z.ZodString;
11
6
  time: z.ZodString;
12
- type: z.ZodOptional<z.ZodEnum<{
13
- normal: "normal";
14
- question: "question";
15
- plan: "plan";
16
- }>>;
7
+ type: z.ZodOptional<z.ZodEnum<["normal", "question", "plan"]>>;
17
8
  toolUseId: z.ZodOptional<z.ZodString>;
18
9
  parentToolUseId: z.ZodOptional<z.ZodString>;
19
- status: z.ZodOptional<z.ZodEnum<{
20
- success: "success";
21
- error: "error";
22
- }>>;
10
+ status: z.ZodOptional<z.ZodEnum<["success", "error"]>>;
23
11
  error: z.ZodOptional<z.ZodString>;
24
- }, z.core.$strip>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ id: number;
14
+ role: "user" | "assistant" | "agent" | "tool_result";
15
+ content: string;
16
+ time: string;
17
+ status?: "success" | "error" | undefined;
18
+ type?: "normal" | "question" | "plan" | undefined;
19
+ toolUseId?: string | undefined;
20
+ parentToolUseId?: string | undefined;
21
+ error?: string | undefined;
22
+ }, {
23
+ id: number;
24
+ role: "user" | "assistant" | "agent" | "tool_result";
25
+ content: string;
26
+ time: string;
27
+ status?: "success" | "error" | undefined;
28
+ type?: "normal" | "question" | "plan" | undefined;
29
+ toolUseId?: string | undefined;
30
+ parentToolUseId?: string | undefined;
31
+ error?: string | undefined;
32
+ }>;
25
33
  export type Message = z.infer<typeof MessageSchema>;
26
34
  export declare const MessagesResponseBodySchema: z.ZodObject<{
27
35
  $schema: z.ZodOptional<z.ZodString>;
28
36
  messages: z.ZodArray<z.ZodObject<{
29
37
  id: z.ZodNumber;
30
- role: z.ZodEnum<{
31
- user: "user";
32
- assistant: "assistant";
33
- agent: "agent";
34
- tool_result: "tool_result";
35
- }>;
38
+ role: z.ZodEnum<["user", "assistant", "agent", "tool_result"]>;
36
39
  content: z.ZodString;
37
40
  time: z.ZodString;
38
- type: z.ZodOptional<z.ZodEnum<{
39
- normal: "normal";
40
- question: "question";
41
- plan: "plan";
42
- }>>;
41
+ type: z.ZodOptional<z.ZodEnum<["normal", "question", "plan"]>>;
43
42
  toolUseId: z.ZodOptional<z.ZodString>;
44
43
  parentToolUseId: z.ZodOptional<z.ZodString>;
45
- status: z.ZodOptional<z.ZodEnum<{
46
- success: "success";
47
- error: "error";
48
- }>>;
44
+ status: z.ZodOptional<z.ZodEnum<["success", "error"]>>;
49
45
  error: z.ZodOptional<z.ZodString>;
50
- }, z.core.$strip>>;
51
- }, z.core.$strip>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ id: number;
48
+ role: "user" | "assistant" | "agent" | "tool_result";
49
+ content: string;
50
+ time: string;
51
+ status?: "success" | "error" | undefined;
52
+ type?: "normal" | "question" | "plan" | undefined;
53
+ toolUseId?: string | undefined;
54
+ parentToolUseId?: string | undefined;
55
+ error?: string | undefined;
56
+ }, {
57
+ id: number;
58
+ role: "user" | "assistant" | "agent" | "tool_result";
59
+ content: string;
60
+ time: string;
61
+ status?: "success" | "error" | undefined;
62
+ type?: "normal" | "question" | "plan" | undefined;
63
+ toolUseId?: string | undefined;
64
+ parentToolUseId?: string | undefined;
65
+ error?: string | undefined;
66
+ }>, "many">;
67
+ }, "strip", z.ZodTypeAny, {
68
+ messages: {
69
+ id: number;
70
+ role: "user" | "assistant" | "agent" | "tool_result";
71
+ content: string;
72
+ time: string;
73
+ status?: "success" | "error" | undefined;
74
+ type?: "normal" | "question" | "plan" | undefined;
75
+ toolUseId?: string | undefined;
76
+ parentToolUseId?: string | undefined;
77
+ error?: string | undefined;
78
+ }[];
79
+ $schema?: string | undefined;
80
+ }, {
81
+ messages: {
82
+ id: number;
83
+ role: "user" | "assistant" | "agent" | "tool_result";
84
+ content: string;
85
+ time: string;
86
+ status?: "success" | "error" | undefined;
87
+ type?: "normal" | "question" | "plan" | undefined;
88
+ toolUseId?: string | undefined;
89
+ parentToolUseId?: string | undefined;
90
+ error?: string | undefined;
91
+ }[];
92
+ $schema?: string | undefined;
93
+ }>;
52
94
  export type MessagesResponseBody = z.infer<typeof MessagesResponseBodySchema>;
53
95
  export declare const ToolStatusResponseBodySchema: z.ZodObject<{
54
96
  $schema: z.ZodOptional<z.ZodString>;
55
97
  messages: z.ZodArray<z.ZodObject<{
56
98
  id: z.ZodNumber;
57
- role: z.ZodEnum<{
58
- user: "user";
59
- assistant: "assistant";
60
- agent: "agent";
61
- tool_result: "tool_result";
62
- }>;
99
+ role: z.ZodEnum<["user", "assistant", "agent", "tool_result"]>;
63
100
  content: z.ZodString;
64
101
  time: z.ZodString;
65
- type: z.ZodOptional<z.ZodEnum<{
66
- normal: "normal";
67
- question: "question";
68
- plan: "plan";
69
- }>>;
102
+ type: z.ZodOptional<z.ZodEnum<["normal", "question", "plan"]>>;
70
103
  toolUseId: z.ZodOptional<z.ZodString>;
71
104
  parentToolUseId: z.ZodOptional<z.ZodString>;
72
- status: z.ZodOptional<z.ZodEnum<{
73
- success: "success";
74
- error: "error";
75
- }>>;
105
+ status: z.ZodOptional<z.ZodEnum<["success", "error"]>>;
76
106
  error: z.ZodOptional<z.ZodString>;
77
- }, z.core.$strip>>;
78
- }, z.core.$strip>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ id: number;
109
+ role: "user" | "assistant" | "agent" | "tool_result";
110
+ content: string;
111
+ time: string;
112
+ status?: "success" | "error" | undefined;
113
+ type?: "normal" | "question" | "plan" | undefined;
114
+ toolUseId?: string | undefined;
115
+ parentToolUseId?: string | undefined;
116
+ error?: string | undefined;
117
+ }, {
118
+ id: number;
119
+ role: "user" | "assistant" | "agent" | "tool_result";
120
+ content: string;
121
+ time: string;
122
+ status?: "success" | "error" | undefined;
123
+ type?: "normal" | "question" | "plan" | undefined;
124
+ toolUseId?: string | undefined;
125
+ parentToolUseId?: string | undefined;
126
+ error?: string | undefined;
127
+ }>, "many">;
128
+ }, "strip", z.ZodTypeAny, {
129
+ messages: {
130
+ id: number;
131
+ role: "user" | "assistant" | "agent" | "tool_result";
132
+ content: string;
133
+ time: string;
134
+ status?: "success" | "error" | undefined;
135
+ type?: "normal" | "question" | "plan" | undefined;
136
+ toolUseId?: string | undefined;
137
+ parentToolUseId?: string | undefined;
138
+ error?: string | undefined;
139
+ }[];
140
+ $schema?: string | undefined;
141
+ }, {
142
+ messages: {
143
+ id: number;
144
+ role: "user" | "assistant" | "agent" | "tool_result";
145
+ content: string;
146
+ time: string;
147
+ status?: "success" | "error" | undefined;
148
+ type?: "normal" | "question" | "plan" | undefined;
149
+ toolUseId?: string | undefined;
150
+ parentToolUseId?: string | undefined;
151
+ error?: string | undefined;
152
+ }[];
153
+ $schema?: string | undefined;
154
+ }>;
79
155
  export type ToolStatusResponseBody = z.infer<typeof ToolStatusResponseBodySchema>;
80
156
  export declare const PostMessageRequestSchema: z.ZodObject<{
81
157
  content: z.ZodString;
82
- type: z.ZodEnum<{
83
- user: "user";
84
- raw: "raw";
85
- }>;
86
- }, z.core.$strip>;
158
+ type: z.ZodEnum<["user", "raw"]>;
159
+ }, "strip", z.ZodTypeAny, {
160
+ type: "user" | "raw";
161
+ content: string;
162
+ }, {
163
+ type: "user" | "raw";
164
+ content: string;
165
+ }>;
87
166
  export type PostMessageRequest = z.infer<typeof PostMessageRequestSchema>;
88
167
  export declare const PostMessageResponseSchema: z.ZodObject<{
89
168
  ok: z.ZodBoolean;
90
- }, z.core.$strip>;
169
+ }, "strip", z.ZodTypeAny, {
170
+ ok: boolean;
171
+ }, {
172
+ ok: boolean;
173
+ }>;
91
174
  export type PostMessageResponse = z.infer<typeof PostMessageResponseSchema>;
92
175
  export declare const StatusResponseSchema: z.ZodObject<{
93
176
  agent_type: z.ZodString;
94
- status: z.ZodEnum<{
95
- running: "running";
96
- stable: "stable";
97
- }>;
98
- }, z.core.$strip>;
177
+ status: z.ZodEnum<["running", "stable"]>;
178
+ }, "strip", z.ZodTypeAny, {
179
+ status: "running" | "stable";
180
+ agent_type: string;
181
+ }, {
182
+ status: "running" | "stable";
183
+ agent_type: string;
184
+ }>;
99
185
  export type StatusResponse = z.infer<typeof StatusResponseSchema>;
100
186
  export declare const UploadResponseSchema: z.ZodObject<{
101
187
  filePath: z.ZodString;
102
188
  ok: z.ZodBoolean;
103
- }, z.core.$strip>;
189
+ }, "strip", z.ZodTypeAny, {
190
+ ok: boolean;
191
+ filePath: string;
192
+ }, {
193
+ ok: boolean;
194
+ filePath: string;
195
+ }>;
104
196
  export type UploadResponse = z.infer<typeof UploadResponseSchema>;
105
197
  export declare const ProblemJsonSchema: z.ZodObject<{
106
198
  type: z.ZodString;
@@ -108,7 +200,19 @@ export declare const ProblemJsonSchema: z.ZodObject<{
108
200
  status: z.ZodNumber;
109
201
  detail: z.ZodOptional<z.ZodString>;
110
202
  instance: z.ZodOptional<z.ZodString>;
111
- }, z.core.$strip>;
203
+ }, "strip", z.ZodTypeAny, {
204
+ status: number;
205
+ type: string;
206
+ title: string;
207
+ detail?: string | undefined;
208
+ instance?: string | undefined;
209
+ }, {
210
+ status: number;
211
+ type: string;
212
+ title: string;
213
+ detail?: string | undefined;
214
+ instance?: string | undefined;
215
+ }>;
112
216
  export type ProblemJson = z.infer<typeof ProblemJsonSchema>;
113
217
  export type SSEEventType = 'init' | 'message_update' | 'status_change';
114
218
  export interface SSEEvent {
@@ -121,65 +225,155 @@ export interface InitEvent {
121
225
  }
122
226
  export declare const AnswerQuestionActionSchema: z.ZodObject<{
123
227
  type: z.ZodLiteral<"answer_question">;
124
- answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
125
- }, z.core.$strip>;
228
+ answers: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ type: "answer_question";
231
+ answers: Record<string, string | string[]>;
232
+ }, {
233
+ type: "answer_question";
234
+ answers: Record<string, string | string[]>;
235
+ }>;
126
236
  export declare const ApprovePlanActionSchema: z.ZodObject<{
127
237
  type: z.ZodLiteral<"approve_plan">;
128
238
  approved: z.ZodBoolean;
129
- }, z.core.$strip>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ type: "approve_plan";
241
+ approved: boolean;
242
+ }, {
243
+ type: "approve_plan";
244
+ approved: boolean;
245
+ }>;
130
246
  export declare const StopAgentActionSchema: z.ZodObject<{
131
247
  type: z.ZodLiteral<"stop_agent">;
132
- }, z.core.$strip>;
133
- export declare const PostActionRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
248
+ }, "strip", z.ZodTypeAny, {
249
+ type: "stop_agent";
250
+ }, {
251
+ type: "stop_agent";
252
+ }>;
253
+ export declare const PostActionRequestSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
134
254
  type: z.ZodLiteral<"answer_question">;
135
- answers: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
136
- }, z.core.$strip>, z.ZodObject<{
255
+ answers: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
256
+ }, "strip", z.ZodTypeAny, {
257
+ type: "answer_question";
258
+ answers: Record<string, string | string[]>;
259
+ }, {
260
+ type: "answer_question";
261
+ answers: Record<string, string | string[]>;
262
+ }>, z.ZodObject<{
137
263
  type: z.ZodLiteral<"approve_plan">;
138
264
  approved: z.ZodBoolean;
139
- }, z.core.$strip>, z.ZodObject<{
265
+ }, "strip", z.ZodTypeAny, {
266
+ type: "approve_plan";
267
+ approved: boolean;
268
+ }, {
269
+ type: "approve_plan";
270
+ approved: boolean;
271
+ }>, z.ZodObject<{
140
272
  type: z.ZodLiteral<"stop_agent">;
141
- }, z.core.$strip>], "type">;
273
+ }, "strip", z.ZodTypeAny, {
274
+ type: "stop_agent";
275
+ }, {
276
+ type: "stop_agent";
277
+ }>]>;
142
278
  export type PostActionRequest = z.infer<typeof PostActionRequestSchema>;
143
279
  export declare const PostActionResponseSchema: z.ZodObject<{
144
280
  ok: z.ZodBoolean;
145
- }, z.core.$strip>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ ok: boolean;
283
+ }, {
284
+ ok: boolean;
285
+ }>;
146
286
  export type PostActionResponse = z.infer<typeof PostActionResponseSchema>;
147
287
  export declare const PendingActionSchema: z.ZodObject<{
148
288
  type: z.ZodString;
149
289
  tool_use_id: z.ZodString;
150
290
  content: z.ZodUnknown;
151
- }, z.core.$strip>;
291
+ }, "strip", z.ZodTypeAny, {
292
+ type: string;
293
+ tool_use_id: string;
294
+ content?: unknown;
295
+ }, {
296
+ type: string;
297
+ tool_use_id: string;
298
+ content?: unknown;
299
+ }>;
152
300
  export type PendingAction = z.infer<typeof PendingActionSchema>;
153
301
  export declare const GetActionResponseSchema: z.ZodObject<{
154
302
  pending_actions: z.ZodArray<z.ZodObject<{
155
303
  type: z.ZodString;
156
304
  tool_use_id: z.ZodString;
157
305
  content: z.ZodUnknown;
158
- }, z.core.$strip>>;
159
- }, z.core.$strip>;
306
+ }, "strip", z.ZodTypeAny, {
307
+ type: string;
308
+ tool_use_id: string;
309
+ content?: unknown;
310
+ }, {
311
+ type: string;
312
+ tool_use_id: string;
313
+ content?: unknown;
314
+ }>, "many">;
315
+ }, "strip", z.ZodTypeAny, {
316
+ pending_actions: {
317
+ type: string;
318
+ tool_use_id: string;
319
+ content?: unknown;
320
+ }[];
321
+ }, {
322
+ pending_actions: {
323
+ type: string;
324
+ tool_use_id: string;
325
+ content?: unknown;
326
+ }[];
327
+ }>;
160
328
  export type GetActionResponse = z.infer<typeof GetActionResponseSchema>;
161
329
  export declare const ResourceSchema: z.ZodObject<{
162
- type: z.ZodEnum<{
163
- skill: "skill";
164
- command: "command";
165
- subagent: "subagent";
166
- }>;
330
+ type: z.ZodEnum<["skill", "command", "subagent"]>;
167
331
  name: z.ZodString;
168
332
  description: z.ZodOptional<z.ZodString>;
169
333
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
170
- }, z.core.$strip>;
334
+ }, "strip", z.ZodTypeAny, {
335
+ type: "skill" | "command" | "subagent";
336
+ name: string;
337
+ description?: string | undefined;
338
+ metadata?: Record<string, unknown> | undefined;
339
+ }, {
340
+ type: "skill" | "command" | "subagent";
341
+ name: string;
342
+ description?: string | undefined;
343
+ metadata?: Record<string, unknown> | undefined;
344
+ }>;
171
345
  export type Resource = z.infer<typeof ResourceSchema>;
172
346
  export declare const ResourcesResponseSchema: z.ZodObject<{
173
347
  resources: z.ZodArray<z.ZodObject<{
174
- type: z.ZodEnum<{
175
- skill: "skill";
176
- command: "command";
177
- subagent: "subagent";
178
- }>;
348
+ type: z.ZodEnum<["skill", "command", "subagent"]>;
179
349
  name: z.ZodString;
180
350
  description: z.ZodOptional<z.ZodString>;
181
351
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
182
- }, z.core.$strip>>;
183
- }, z.core.$strip>;
352
+ }, "strip", z.ZodTypeAny, {
353
+ type: "skill" | "command" | "subagent";
354
+ name: string;
355
+ description?: string | undefined;
356
+ metadata?: Record<string, unknown> | undefined;
357
+ }, {
358
+ type: "skill" | "command" | "subagent";
359
+ name: string;
360
+ description?: string | undefined;
361
+ metadata?: Record<string, unknown> | undefined;
362
+ }>, "many">;
363
+ }, "strip", z.ZodTypeAny, {
364
+ resources: {
365
+ type: "skill" | "command" | "subagent";
366
+ name: string;
367
+ description?: string | undefined;
368
+ metadata?: Record<string, unknown> | undefined;
369
+ }[];
370
+ }, {
371
+ resources: {
372
+ type: "skill" | "command" | "subagent";
373
+ name: string;
374
+ description?: string | undefined;
375
+ metadata?: Record<string, unknown> | undefined;
376
+ }[];
377
+ }>;
184
378
  export type ResourcesResponse = z.infer<typeof ResourcesResponseSchema>;
185
379
  //# sourceMappingURL=api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../src/types/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;iBAWxB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;iBAGrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;iBAGvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,wBAAwB;;;;;;iBAGnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;iBAEpC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,oBAAoB;;;;;;iBAG/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,oBAAoB;;;iBAG/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,iBAAi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AC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takutakahashi/claude-agentapi",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "coder/agentapi compatible HTTP API server using Claude Agent SDK on AWS Bedrock",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -51,7 +51,7 @@
51
51
  "access": "public"
52
52
  },
53
53
  "dependencies": {
54
- "@anthropic-ai/claude-agent-sdk": "^0.2.19",
54
+ "@anthropic-ai/claude-agent-sdk": "^0.2.37",
55
55
  "@aws-sdk/client-bedrock-runtime": "^3.0.0",
56
56
  "@opentelemetry/api": "^1.9.0",
57
57
  "@opentelemetry/exporter-prometheus": "^0.211.0",
@@ -61,7 +61,7 @@
61
61
  "@opentelemetry/semantic-conventions": "^1.39.0",
62
62
  "dotenv": "^16.0.0",
63
63
  "express": "^4.18.0",
64
- "zod": "^4.0.0"
64
+ "zod": "^3.23.8"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@types/express": "^4.17.0",