@agentrix/shared 2.17.0 → 2.18.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/dist/index.cjs CHANGED
@@ -1949,6 +1949,20 @@ const HiveInstallResponseSchema = zod.z.object({
1949
1949
  status: zod.z.string(),
1950
1950
  draftAgentId: zod.z.string().nullable().optional()
1951
1951
  });
1952
+ const RecordHiveInstallRequestSchema = zod.z.object({
1953
+ agentDir: zod.z.string().min(1),
1954
+ name: zod.z.string().min(1).optional(),
1955
+ machineId: zod.z.string().optional(),
1956
+ cloudId: zod.z.string().optional(),
1957
+ installedVersion: zod.z.string().optional()
1958
+ }).refine(
1959
+ (data) => !(data.machineId && data.cloudId),
1960
+ { message: "Only one of machineId or cloudId may be provided" }
1961
+ );
1962
+ const RecordHiveInstallResponseSchema = zod.z.object({
1963
+ install: HiveInstallSchema,
1964
+ draftAgentId: zod.z.string().nullable().optional()
1965
+ });
1952
1966
  const HiveReviewSchema = zod.z.object({
1953
1967
  id: IdSchema,
1954
1968
  hiveListingId: zod.z.string(),
@@ -2861,6 +2875,7 @@ const DeployAgentCompleteEventSchema = EventBaseSchema.extend({
2861
2875
  });
2862
2876
  const HivePublishEventSchema = EventBaseSchema.extend({
2863
2877
  taskId: zod.z.string(),
2878
+ listingId: zod.z.string(),
2864
2879
  userId: zod.z.string(),
2865
2880
  machineId: zod.z.string().optional(),
2866
2881
  cloudId: zod.z.string().optional(),
@@ -2880,6 +2895,7 @@ const HivePublishEventSchema = EventBaseSchema.extend({
2880
2895
  );
2881
2896
  const HivePublishCompleteEventSchema = EventBaseSchema.extend({
2882
2897
  taskId: zod.z.string(),
2898
+ listingId: zod.z.string().optional(),
2883
2899
  success: zod.z.boolean(),
2884
2900
  error: zod.z.string().optional(),
2885
2901
  gitCommitHash: zod.z.string().optional(),
@@ -3908,6 +3924,8 @@ exports.RELEVANT_DEPENDENCIES = RELEVANT_DEPENDENCIES;
3908
3924
  exports.RTC_CHUNK_HEADER_SIZE = RTC_CHUNK_HEADER_SIZE;
3909
3925
  exports.RecentTaskSummarySchema = RecentTaskSummarySchema;
3910
3926
  exports.RechargeResponseSchema = RechargeResponseSchema;
3927
+ exports.RecordHiveInstallRequestSchema = RecordHiveInstallRequestSchema;
3928
+ exports.RecordHiveInstallResponseSchema = RecordHiveInstallResponseSchema;
3911
3929
  exports.RegisterCompanionRequestSchema = RegisterCompanionRequestSchema;
3912
3930
  exports.RegisterCompanionResponseSchema = RegisterCompanionResponseSchema;
3913
3931
  exports.RemoveChatMemberRequestSchema = RemoveChatMemberRequestSchema;