@agentrix/shared 2.0.8 → 2.0.10

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/dist/index.cjs CHANGED
@@ -663,7 +663,11 @@ const DraftAgentConfigSchema = zod.z.object({
663
663
  // environment configuration (from CLI envVars)
664
664
  environmentSchema: zod.z.array(EnvironmentVariableSchema).optional(),
665
665
  // Display configuration (same as AgentCustomConfig)
666
- displayConfig: DisplayConfigSchema.optional()
666
+ displayConfig: DisplayConfigSchema.optional(),
667
+ // Agent UI fields (stored in config for DraftAgent, but as top-level fields in Agent)
668
+ signature: zod.z.string().optional(),
669
+ guildMsg: zod.z.string().optional(),
670
+ placeholderMsg: zod.z.string().optional()
667
671
  });
668
672
  const CreateDraftAgentRequestSchema = zod.z.object({
669
673
  name: zod.z.string().min(1, "Name is required"),
@@ -675,7 +679,9 @@ const CreateDraftAgentRequestSchema = zod.z.object({
675
679
  taskId: zod.z.string(),
676
680
  envVars: zod.z.array(EnvironmentVariableSchema).optional(),
677
681
  // From CLI tool
678
- isUpdate: zod.z.boolean().optional().default(false).describe("Whether is agent updated")
682
+ signature: zod.z.string().optional(),
683
+ guildMsg: zod.z.string().optional(),
684
+ placeholderMsg: zod.z.string().optional()
679
685
  });
680
686
  const SetEnvironmentVariablesRequestSchema = zod.z.object({
681
687
  ownerType: zod.z.enum(["draft-agent", "agent", "machine", "cloud"]),
@@ -704,6 +710,12 @@ const DraftAgentSchema = zod.z.object({
704
710
  createdAt: zod.z.string(),
705
711
  updatedAt: zod.z.string()
706
712
  });
713
+ const UpdateDraftAgentRequestSchema = zod.z.object({
714
+ avatar: zod.z.string().nullable().optional(),
715
+ description: zod.z.string().nullable().optional(),
716
+ config: DraftAgentConfigSchema.partial().optional()
717
+ });
718
+ const UpdateDraftAgentResponseSchema = DraftAgentSchema;
707
719
  const GetUserAgentsResponseSchema = zod.z.object({
708
720
  agents: zod.z.array(AgentSchema),
709
721
  // Published agents
@@ -2451,6 +2463,8 @@ exports.UnarchiveTaskRequestSchema = UnarchiveTaskRequestSchema;
2451
2463
  exports.UnarchiveTaskResponseSchema = UnarchiveTaskResponseSchema;
2452
2464
  exports.UpdateAgentRequestSchema = UpdateAgentRequestSchema;
2453
2465
  exports.UpdateAgentResponseSchema = UpdateAgentResponseSchema;
2466
+ exports.UpdateDraftAgentRequestSchema = UpdateDraftAgentRequestSchema;
2467
+ exports.UpdateDraftAgentResponseSchema = UpdateDraftAgentResponseSchema;
2454
2468
  exports.UpdateOAuthServerRequestSchema = UpdateOAuthServerRequestSchema;
2455
2469
  exports.UpdateOAuthServerResponseSchema = UpdateOAuthServerResponseSchema;
2456
2470
  exports.UpdateTaskAgentSessionIdEventSchema = UpdateTaskAgentSessionIdEventSchema;