@meistrari/agent-sdk 0.3.0 → 0.3.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/README.md CHANGED
@@ -102,7 +102,12 @@ const update = await client.updateAgentModel({
102
102
  commitMessage: 'Switch support bot model',
103
103
  })
104
104
 
105
- console.log(update.commitHash)
105
+ if (update.success) {
106
+ console.log(update.commitHash)
107
+ }
108
+ else {
109
+ console.error(update.error)
110
+ }
106
111
  ```
107
112
 
108
113
  `updateAgentModel` writes `agent.config.json` on the main branch and lets agent-api
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { E as ExecuteAgentRequest, a as ExecuteAgentResponse, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, S as SessionTimelineResponse, c as SessionStreamEvent } from './shared/agent-sdk.4ad2c746.cjs';
2
- export { A as AgentInput, d as SessionStatus, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult } from './shared/agent-sdk.4ad2c746.cjs';
1
+ import { E as ExecuteAgentRequest, a as ExecuteAgentResponse, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, S as SessionTimelineResponse, c as SessionStreamEvent } from './shared/agent-sdk.3fcc7aba.cjs';
2
+ export { A as AgentInput, d as SessionStatus, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult } from './shared/agent-sdk.3fcc7aba.cjs';
3
3
  import 'zod';
4
4
 
5
5
  interface AuthStrategy {
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { E as ExecuteAgentRequest, a as ExecuteAgentResponse, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, S as SessionTimelineResponse, c as SessionStreamEvent } from './shared/agent-sdk.4ad2c746.mjs';
2
- export { A as AgentInput, d as SessionStatus, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult } from './shared/agent-sdk.4ad2c746.mjs';
1
+ import { E as ExecuteAgentRequest, a as ExecuteAgentResponse, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, S as SessionTimelineResponse, c as SessionStreamEvent } from './shared/agent-sdk.3fcc7aba.mjs';
2
+ export { A as AgentInput, d as SessionStatus, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult } from './shared/agent-sdk.3fcc7aba.mjs';
3
3
  import 'zod';
4
4
 
5
5
  interface AuthStrategy {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { E as ExecuteAgentRequest, a as ExecuteAgentResponse, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, S as SessionTimelineResponse, c as SessionStreamEvent } from './shared/agent-sdk.4ad2c746.js';
2
- export { A as AgentInput, d as SessionStatus, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult } from './shared/agent-sdk.4ad2c746.js';
1
+ import { E as ExecuteAgentRequest, a as ExecuteAgentResponse, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, S as SessionTimelineResponse, c as SessionStreamEvent } from './shared/agent-sdk.3fcc7aba.js';
2
+ export { A as AgentInput, d as SessionStatus, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult } from './shared/agent-sdk.3fcc7aba.js';
3
3
  import 'zod';
4
4
 
5
5
  interface AuthStrategy {
package/dist/schemas.cjs CHANGED
@@ -495,15 +495,15 @@ const updateAgentModelRequestSchema = zod.z.object({
495
495
  }).strict();
496
496
  const updateAgentModelSuccessResponseSchema = zod.z.object({
497
497
  success: zod.z.literal(true).describe("Whether the model update succeeded"),
498
- organizationName: zod.z.string().optional().describe("Resolved Forgejo organization name"),
499
- repository: zod.z.string().optional().describe("Forgejo repository name"),
500
- branch: zod.z.string().optional().describe("Branch written to"),
501
- commitHash: zod.z.string().optional().describe("Commit hash after update"),
502
- model: modelSchema.optional().describe("Configured model after update"),
503
- providerTemplate: zod.z.string().optional().describe("Provider template selected from the model prefix"),
504
- templateSynced: zod.z.boolean().optional().describe("Whether managed template files were synchronized"),
505
- files: zod.z.array(zod.z.string()).optional().describe("Files written by the update"),
506
- deletedFiles: zod.z.array(zod.z.string()).optional().describe("Files deleted by the update")
498
+ organizationName: zod.z.string().describe("Resolved Forgejo organization name"),
499
+ repository: zod.z.string().describe("Forgejo repository name"),
500
+ branch: zod.z.string().describe("Branch written to"),
501
+ commitHash: zod.z.string().describe("Commit hash after update"),
502
+ model: modelSchema.describe("Configured model after update"),
503
+ providerTemplate: zod.z.string().describe("Provider template selected from the model prefix"),
504
+ templateSynced: zod.z.boolean().describe("Whether managed template files were synchronized"),
505
+ files: zod.z.array(zod.z.string()).describe("Files written by the update"),
506
+ deletedFiles: zod.z.array(zod.z.string()).describe("Files deleted by the update")
507
507
  });
508
508
  const updateAgentModelErrorResponseSchema = zod.z.object({
509
509
  success: zod.z.literal(false).describe("Whether the model update succeeded"),
@@ -1,4 +1,4 @@
1
- export { A as AgentInput, E as ExecuteAgentRequest, a as ExecuteAgentResponse, D as SESSION_STREAM_EVENT_KINDS, d as SessionStatus, c as SessionStreamEvent, S as SessionTimelineResponse, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, j as agentInputSchema, m as executeAgentErrorResponseSchema, k as executeAgentRequestSchema, n as executeAgentResponseSchema, l as executeAgentSuccessResponseSchema, s as sessionStatusSchema, C as sessionStreamEventSchema, r as sessionTimelineIdSchema, B as sessionTimelineResponseSchema, y as timelineEventSchema, t as timelineMetricsSchema, v as timelinePromptSchema, x as timelineRunTurnMetricsSchema, z as timelineSpanSchema, w as timelineToolResultSchema, p as updateAgentModelErrorResponseSchema, u as updateAgentModelRequestSchema, q as updateAgentModelResponseSchema, o as updateAgentModelSuccessResponseSchema } from './shared/agent-sdk.4ad2c746.cjs';
1
+ export { A as AgentInput, E as ExecuteAgentRequest, a as ExecuteAgentResponse, D as SESSION_STREAM_EVENT_KINDS, d as SessionStatus, c as SessionStreamEvent, S as SessionTimelineResponse, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, j as agentInputSchema, m as executeAgentErrorResponseSchema, k as executeAgentRequestSchema, n as executeAgentResponseSchema, l as executeAgentSuccessResponseSchema, s as sessionStatusSchema, C as sessionStreamEventSchema, r as sessionTimelineIdSchema, B as sessionTimelineResponseSchema, y as timelineEventSchema, t as timelineMetricsSchema, v as timelinePromptSchema, x as timelineRunTurnMetricsSchema, z as timelineSpanSchema, w as timelineToolResultSchema, p as updateAgentModelErrorResponseSchema, u as updateAgentModelRequestSchema, q as updateAgentModelResponseSchema, o as updateAgentModelSuccessResponseSchema } from './shared/agent-sdk.3fcc7aba.cjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const nativeAnthropicModelIds: readonly ["claude-sonnet-4-5", "claude-sonnet-4-6", "claude-haiku-4-5", "claude-opus-4-6", "claude-opus-4-7", "claude-opus-4-8"];
@@ -1,4 +1,4 @@
1
- export { A as AgentInput, E as ExecuteAgentRequest, a as ExecuteAgentResponse, D as SESSION_STREAM_EVENT_KINDS, d as SessionStatus, c as SessionStreamEvent, S as SessionTimelineResponse, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, j as agentInputSchema, m as executeAgentErrorResponseSchema, k as executeAgentRequestSchema, n as executeAgentResponseSchema, l as executeAgentSuccessResponseSchema, s as sessionStatusSchema, C as sessionStreamEventSchema, r as sessionTimelineIdSchema, B as sessionTimelineResponseSchema, y as timelineEventSchema, t as timelineMetricsSchema, v as timelinePromptSchema, x as timelineRunTurnMetricsSchema, z as timelineSpanSchema, w as timelineToolResultSchema, p as updateAgentModelErrorResponseSchema, u as updateAgentModelRequestSchema, q as updateAgentModelResponseSchema, o as updateAgentModelSuccessResponseSchema } from './shared/agent-sdk.4ad2c746.mjs';
1
+ export { A as AgentInput, E as ExecuteAgentRequest, a as ExecuteAgentResponse, D as SESSION_STREAM_EVENT_KINDS, d as SessionStatus, c as SessionStreamEvent, S as SessionTimelineResponse, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, j as agentInputSchema, m as executeAgentErrorResponseSchema, k as executeAgentRequestSchema, n as executeAgentResponseSchema, l as executeAgentSuccessResponseSchema, s as sessionStatusSchema, C as sessionStreamEventSchema, r as sessionTimelineIdSchema, B as sessionTimelineResponseSchema, y as timelineEventSchema, t as timelineMetricsSchema, v as timelinePromptSchema, x as timelineRunTurnMetricsSchema, z as timelineSpanSchema, w as timelineToolResultSchema, p as updateAgentModelErrorResponseSchema, u as updateAgentModelRequestSchema, q as updateAgentModelResponseSchema, o as updateAgentModelSuccessResponseSchema } from './shared/agent-sdk.3fcc7aba.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const nativeAnthropicModelIds: readonly ["claude-sonnet-4-5", "claude-sonnet-4-6", "claude-haiku-4-5", "claude-opus-4-6", "claude-opus-4-7", "claude-opus-4-8"];
package/dist/schemas.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { A as AgentInput, E as ExecuteAgentRequest, a as ExecuteAgentResponse, D as SESSION_STREAM_EVENT_KINDS, d as SessionStatus, c as SessionStreamEvent, S as SessionTimelineResponse, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, j as agentInputSchema, m as executeAgentErrorResponseSchema, k as executeAgentRequestSchema, n as executeAgentResponseSchema, l as executeAgentSuccessResponseSchema, s as sessionStatusSchema, C as sessionStreamEventSchema, r as sessionTimelineIdSchema, B as sessionTimelineResponseSchema, y as timelineEventSchema, t as timelineMetricsSchema, v as timelinePromptSchema, x as timelineRunTurnMetricsSchema, z as timelineSpanSchema, w as timelineToolResultSchema, p as updateAgentModelErrorResponseSchema, u as updateAgentModelRequestSchema, q as updateAgentModelResponseSchema, o as updateAgentModelSuccessResponseSchema } from './shared/agent-sdk.4ad2c746.js';
1
+ export { A as AgentInput, E as ExecuteAgentRequest, a as ExecuteAgentResponse, D as SESSION_STREAM_EVENT_KINDS, d as SessionStatus, c as SessionStreamEvent, S as SessionTimelineResponse, T as TimelineEvent, e as TimelineMetrics, f as TimelinePrompt, g as TimelineRunTurnMetrics, h as TimelineSpan, i as TimelineToolResult, U as UpdateAgentModelRequest, b as UpdateAgentModelResponse, j as agentInputSchema, m as executeAgentErrorResponseSchema, k as executeAgentRequestSchema, n as executeAgentResponseSchema, l as executeAgentSuccessResponseSchema, s as sessionStatusSchema, C as sessionStreamEventSchema, r as sessionTimelineIdSchema, B as sessionTimelineResponseSchema, y as timelineEventSchema, t as timelineMetricsSchema, v as timelinePromptSchema, x as timelineRunTurnMetricsSchema, z as timelineSpanSchema, w as timelineToolResultSchema, p as updateAgentModelErrorResponseSchema, u as updateAgentModelRequestSchema, q as updateAgentModelResponseSchema, o as updateAgentModelSuccessResponseSchema } from './shared/agent-sdk.3fcc7aba.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const nativeAnthropicModelIds: readonly ["claude-sonnet-4-5", "claude-sonnet-4-6", "claude-haiku-4-5", "claude-opus-4-6", "claude-opus-4-7", "claude-opus-4-8"];
package/dist/schemas.mjs CHANGED
@@ -493,15 +493,15 @@ const updateAgentModelRequestSchema = z.object({
493
493
  }).strict();
494
494
  const updateAgentModelSuccessResponseSchema = z.object({
495
495
  success: z.literal(true).describe("Whether the model update succeeded"),
496
- organizationName: z.string().optional().describe("Resolved Forgejo organization name"),
497
- repository: z.string().optional().describe("Forgejo repository name"),
498
- branch: z.string().optional().describe("Branch written to"),
499
- commitHash: z.string().optional().describe("Commit hash after update"),
500
- model: modelSchema.optional().describe("Configured model after update"),
501
- providerTemplate: z.string().optional().describe("Provider template selected from the model prefix"),
502
- templateSynced: z.boolean().optional().describe("Whether managed template files were synchronized"),
503
- files: z.array(z.string()).optional().describe("Files written by the update"),
504
- deletedFiles: z.array(z.string()).optional().describe("Files deleted by the update")
496
+ organizationName: z.string().describe("Resolved Forgejo organization name"),
497
+ repository: z.string().describe("Forgejo repository name"),
498
+ branch: z.string().describe("Branch written to"),
499
+ commitHash: z.string().describe("Commit hash after update"),
500
+ model: modelSchema.describe("Configured model after update"),
501
+ providerTemplate: z.string().describe("Provider template selected from the model prefix"),
502
+ templateSynced: z.boolean().describe("Whether managed template files were synchronized"),
503
+ files: z.array(z.string()).describe("Files written by the update"),
504
+ deletedFiles: z.array(z.string()).describe("Files deleted by the update")
505
505
  });
506
506
  const updateAgentModelErrorResponseSchema = z.object({
507
507
  success: z.literal(false).describe("Whether the model update succeeded"),
@@ -47,17 +47,17 @@ declare const updateAgentModelRequestSchema: z.ZodObject<{
47
47
  type UpdateAgentModelRequest = z.infer<typeof updateAgentModelRequestSchema>;
48
48
  declare const updateAgentModelSuccessResponseSchema: z.ZodObject<{
49
49
  success: z.ZodLiteral<true>;
50
- organizationName: z.ZodOptional<z.ZodString>;
51
- repository: z.ZodOptional<z.ZodString>;
52
- branch: z.ZodOptional<z.ZodString>;
53
- commitHash: z.ZodOptional<z.ZodString>;
54
- model: z.ZodOptional<z.ZodEnum<{
50
+ organizationName: z.ZodString;
51
+ repository: z.ZodString;
52
+ branch: z.ZodString;
53
+ commitHash: z.ZodString;
54
+ model: z.ZodEnum<{
55
55
  [x: string]: string;
56
- }>>;
57
- providerTemplate: z.ZodOptional<z.ZodString>;
58
- templateSynced: z.ZodOptional<z.ZodBoolean>;
59
- files: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
- deletedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
+ }>;
57
+ providerTemplate: z.ZodString;
58
+ templateSynced: z.ZodBoolean;
59
+ files: z.ZodArray<z.ZodString>;
60
+ deletedFiles: z.ZodArray<z.ZodString>;
61
61
  }, z.core.$strip>;
62
62
  declare const updateAgentModelErrorResponseSchema: z.ZodObject<{
63
63
  success: z.ZodLiteral<false>;
@@ -65,17 +65,17 @@ declare const updateAgentModelErrorResponseSchema: z.ZodObject<{
65
65
  }, z.core.$strip>;
66
66
  declare const updateAgentModelResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
67
67
  success: z.ZodLiteral<true>;
68
- organizationName: z.ZodOptional<z.ZodString>;
69
- repository: z.ZodOptional<z.ZodString>;
70
- branch: z.ZodOptional<z.ZodString>;
71
- commitHash: z.ZodOptional<z.ZodString>;
72
- model: z.ZodOptional<z.ZodEnum<{
68
+ organizationName: z.ZodString;
69
+ repository: z.ZodString;
70
+ branch: z.ZodString;
71
+ commitHash: z.ZodString;
72
+ model: z.ZodEnum<{
73
73
  [x: string]: string;
74
- }>>;
75
- providerTemplate: z.ZodOptional<z.ZodString>;
76
- templateSynced: z.ZodOptional<z.ZodBoolean>;
77
- files: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
- deletedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ }>;
75
+ providerTemplate: z.ZodString;
76
+ templateSynced: z.ZodBoolean;
77
+ files: z.ZodArray<z.ZodString>;
78
+ deletedFiles: z.ZodArray<z.ZodString>;
79
79
  }, z.core.$strip>, z.ZodObject<{
80
80
  success: z.ZodLiteral<false>;
81
81
  error: z.ZodString;
@@ -150,9 +150,9 @@ declare const timelineEventSchema: z.ZodObject<{
150
150
  other: "other";
151
151
  }>>;
152
152
  status: z.ZodOptional<z.ZodEnum<{
153
- success: "success";
154
153
  failed: "failed";
155
154
  cancelled: "cancelled";
155
+ success: "success";
156
156
  timeout: "timeout";
157
157
  }>>;
158
158
  result: z.ZodOptional<z.ZodObject<{
@@ -341,9 +341,9 @@ declare const sessionStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
341
341
  other: "other";
342
342
  }>>;
343
343
  status: z.ZodOptional<z.ZodEnum<{
344
- success: "success";
345
344
  failed: "failed";
346
345
  cancelled: "cancelled";
346
+ success: "success";
347
347
  timeout: "timeout";
348
348
  }>>;
349
349
  result: z.ZodOptional<z.ZodObject<{
@@ -47,17 +47,17 @@ declare const updateAgentModelRequestSchema: z.ZodObject<{
47
47
  type UpdateAgentModelRequest = z.infer<typeof updateAgentModelRequestSchema>;
48
48
  declare const updateAgentModelSuccessResponseSchema: z.ZodObject<{
49
49
  success: z.ZodLiteral<true>;
50
- organizationName: z.ZodOptional<z.ZodString>;
51
- repository: z.ZodOptional<z.ZodString>;
52
- branch: z.ZodOptional<z.ZodString>;
53
- commitHash: z.ZodOptional<z.ZodString>;
54
- model: z.ZodOptional<z.ZodEnum<{
50
+ organizationName: z.ZodString;
51
+ repository: z.ZodString;
52
+ branch: z.ZodString;
53
+ commitHash: z.ZodString;
54
+ model: z.ZodEnum<{
55
55
  [x: string]: string;
56
- }>>;
57
- providerTemplate: z.ZodOptional<z.ZodString>;
58
- templateSynced: z.ZodOptional<z.ZodBoolean>;
59
- files: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
- deletedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
+ }>;
57
+ providerTemplate: z.ZodString;
58
+ templateSynced: z.ZodBoolean;
59
+ files: z.ZodArray<z.ZodString>;
60
+ deletedFiles: z.ZodArray<z.ZodString>;
61
61
  }, z.core.$strip>;
62
62
  declare const updateAgentModelErrorResponseSchema: z.ZodObject<{
63
63
  success: z.ZodLiteral<false>;
@@ -65,17 +65,17 @@ declare const updateAgentModelErrorResponseSchema: z.ZodObject<{
65
65
  }, z.core.$strip>;
66
66
  declare const updateAgentModelResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
67
67
  success: z.ZodLiteral<true>;
68
- organizationName: z.ZodOptional<z.ZodString>;
69
- repository: z.ZodOptional<z.ZodString>;
70
- branch: z.ZodOptional<z.ZodString>;
71
- commitHash: z.ZodOptional<z.ZodString>;
72
- model: z.ZodOptional<z.ZodEnum<{
68
+ organizationName: z.ZodString;
69
+ repository: z.ZodString;
70
+ branch: z.ZodString;
71
+ commitHash: z.ZodString;
72
+ model: z.ZodEnum<{
73
73
  [x: string]: string;
74
- }>>;
75
- providerTemplate: z.ZodOptional<z.ZodString>;
76
- templateSynced: z.ZodOptional<z.ZodBoolean>;
77
- files: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
- deletedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ }>;
75
+ providerTemplate: z.ZodString;
76
+ templateSynced: z.ZodBoolean;
77
+ files: z.ZodArray<z.ZodString>;
78
+ deletedFiles: z.ZodArray<z.ZodString>;
79
79
  }, z.core.$strip>, z.ZodObject<{
80
80
  success: z.ZodLiteral<false>;
81
81
  error: z.ZodString;
@@ -150,9 +150,9 @@ declare const timelineEventSchema: z.ZodObject<{
150
150
  other: "other";
151
151
  }>>;
152
152
  status: z.ZodOptional<z.ZodEnum<{
153
- success: "success";
154
153
  failed: "failed";
155
154
  cancelled: "cancelled";
155
+ success: "success";
156
156
  timeout: "timeout";
157
157
  }>>;
158
158
  result: z.ZodOptional<z.ZodObject<{
@@ -341,9 +341,9 @@ declare const sessionStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
341
341
  other: "other";
342
342
  }>>;
343
343
  status: z.ZodOptional<z.ZodEnum<{
344
- success: "success";
345
344
  failed: "failed";
346
345
  cancelled: "cancelled";
346
+ success: "success";
347
347
  timeout: "timeout";
348
348
  }>>;
349
349
  result: z.ZodOptional<z.ZodObject<{
@@ -47,17 +47,17 @@ declare const updateAgentModelRequestSchema: z.ZodObject<{
47
47
  type UpdateAgentModelRequest = z.infer<typeof updateAgentModelRequestSchema>;
48
48
  declare const updateAgentModelSuccessResponseSchema: z.ZodObject<{
49
49
  success: z.ZodLiteral<true>;
50
- organizationName: z.ZodOptional<z.ZodString>;
51
- repository: z.ZodOptional<z.ZodString>;
52
- branch: z.ZodOptional<z.ZodString>;
53
- commitHash: z.ZodOptional<z.ZodString>;
54
- model: z.ZodOptional<z.ZodEnum<{
50
+ organizationName: z.ZodString;
51
+ repository: z.ZodString;
52
+ branch: z.ZodString;
53
+ commitHash: z.ZodString;
54
+ model: z.ZodEnum<{
55
55
  [x: string]: string;
56
- }>>;
57
- providerTemplate: z.ZodOptional<z.ZodString>;
58
- templateSynced: z.ZodOptional<z.ZodBoolean>;
59
- files: z.ZodOptional<z.ZodArray<z.ZodString>>;
60
- deletedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
56
+ }>;
57
+ providerTemplate: z.ZodString;
58
+ templateSynced: z.ZodBoolean;
59
+ files: z.ZodArray<z.ZodString>;
60
+ deletedFiles: z.ZodArray<z.ZodString>;
61
61
  }, z.core.$strip>;
62
62
  declare const updateAgentModelErrorResponseSchema: z.ZodObject<{
63
63
  success: z.ZodLiteral<false>;
@@ -65,17 +65,17 @@ declare const updateAgentModelErrorResponseSchema: z.ZodObject<{
65
65
  }, z.core.$strip>;
66
66
  declare const updateAgentModelResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
67
67
  success: z.ZodLiteral<true>;
68
- organizationName: z.ZodOptional<z.ZodString>;
69
- repository: z.ZodOptional<z.ZodString>;
70
- branch: z.ZodOptional<z.ZodString>;
71
- commitHash: z.ZodOptional<z.ZodString>;
72
- model: z.ZodOptional<z.ZodEnum<{
68
+ organizationName: z.ZodString;
69
+ repository: z.ZodString;
70
+ branch: z.ZodString;
71
+ commitHash: z.ZodString;
72
+ model: z.ZodEnum<{
73
73
  [x: string]: string;
74
- }>>;
75
- providerTemplate: z.ZodOptional<z.ZodString>;
76
- templateSynced: z.ZodOptional<z.ZodBoolean>;
77
- files: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
- deletedFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
74
+ }>;
75
+ providerTemplate: z.ZodString;
76
+ templateSynced: z.ZodBoolean;
77
+ files: z.ZodArray<z.ZodString>;
78
+ deletedFiles: z.ZodArray<z.ZodString>;
79
79
  }, z.core.$strip>, z.ZodObject<{
80
80
  success: z.ZodLiteral<false>;
81
81
  error: z.ZodString;
@@ -150,9 +150,9 @@ declare const timelineEventSchema: z.ZodObject<{
150
150
  other: "other";
151
151
  }>>;
152
152
  status: z.ZodOptional<z.ZodEnum<{
153
- success: "success";
154
153
  failed: "failed";
155
154
  cancelled: "cancelled";
155
+ success: "success";
156
156
  timeout: "timeout";
157
157
  }>>;
158
158
  result: z.ZodOptional<z.ZodObject<{
@@ -341,9 +341,9 @@ declare const sessionStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
341
341
  other: "other";
342
342
  }>>;
343
343
  status: z.ZodOptional<z.ZodEnum<{
344
- success: "success";
345
344
  failed: "failed";
346
345
  cancelled: "cancelled";
346
+ success: "success";
347
347
  timeout: "timeout";
348
348
  }>>;
349
349
  result: z.ZodOptional<z.ZodObject<{
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meistrari/agent-sdk",
3
3
  "type": "module",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
7
7
  "type": "git",