@deployxai/dxc 0.1.8 → 0.1.12

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.
@@ -596,6 +596,17 @@ var publishingPreviewLinkSchema = z4.object({
596
596
  snapshotHash: sha256Schema,
597
597
  url: z4.url()
598
598
  }).strict();
599
+ var publishingPreviewSelectionStateSchema = z4.object({
600
+ rootSnapshotHash: sha256Schema,
601
+ rootSnapshotId: z4.uuid(),
602
+ selectedSnapshotHash: sha256Schema,
603
+ selectedSnapshotId: z4.uuid(),
604
+ selectionRevision: z4.number().int().nonnegative(),
605
+ templateId: wechatTemplateIdSchema,
606
+ updatedAt: z4.iso.datetime(),
607
+ viewed: z4.boolean(),
608
+ viewedAt: z4.iso.datetime().nullable()
609
+ }).strict();
599
610
  var createPublishingApprovalRequestSchema = z4.object({
600
611
  accountId: z4.uuid(),
601
612
  confirmed: z4.literal(true),
@@ -621,7 +632,8 @@ var publishingApprovalSchema = z4.object({
621
632
  }
622
633
  });
623
634
  var createPublishingDraftIntentRequestSchema = z4.object({
624
- approvalId: z4.uuid()
635
+ approvalId: z4.uuid(),
636
+ previousIntentId: z4.uuid().optional()
625
637
  }).strict();
626
638
  var publishingDraftStatusSchema = z4.enum([
627
639
  "QUEUED",
@@ -1077,8 +1089,9 @@ var visualGenerationPlanSchema = z5.object({
1077
1089
  chargesQuota: z5.boolean(),
1078
1090
  dataTransit: z5.enum(["local-only", "agent-provider", "dxc-cloud"]),
1079
1091
  executionLocation: z5.enum(["local-device", "agent-hosted"]),
1080
- maxAttempts: z5.literal(1),
1081
- plannedAssets: z5.array(visualGenerationPlannedAssetSchema).min(1).max(20)
1092
+ maxAttempts: z5.number().int().min(1).max(2),
1093
+ plannedAssets: z5.array(visualGenerationPlannedAssetSchema).min(1).max(20),
1094
+ retryPolicy: z5.enum(["never", "verified-no-asset-no-charge-once"])
1082
1095
  }).strict().superRefine((value, context) => {
1083
1096
  if (value.plannedAssets.filter((asset) => asset.role === "cover").length > 1) {
1084
1097
  context.addIssue({
@@ -1087,6 +1100,13 @@ var visualGenerationPlanSchema = z5.object({
1087
1100
  path: ["plannedAssets"]
1088
1101
  });
1089
1102
  }
1103
+ if (value.maxAttempts === 1 && value.retryPolicy !== "never" || value.maxAttempts === 2 && value.retryPolicy !== "verified-no-asset-no-charge-once") {
1104
+ context.addIssue({
1105
+ code: "custom",
1106
+ message: "maxAttempts=1 requires retryPolicy=never; maxAttempts=2 requires verified-no-asset-no-charge-once",
1107
+ path: ["retryPolicy"]
1108
+ });
1109
+ }
1090
1110
  });
1091
1111
  var visualPlanGenerationProposalFrontmatterSchema = z5.object({
1092
1112
  assetsDirectory: portableRelativePathSchema,
@@ -1145,6 +1165,9 @@ var deliveryStageArtifactFrontmatterSchema = z5.object({
1145
1165
  intentId: z5.uuid().nullable(),
1146
1166
  mediaId: z5.string().trim().min(1).max(256).nullable().optional(),
1147
1167
  previewExpiresAt: z5.iso.datetime(),
1168
+ previewSelectionRevision: z5.number().int().nonnegative(),
1169
+ retryAttempt: z5.number().int().nonnegative().default(0),
1170
+ retryOfIntentId: z5.uuid().nullable().optional(),
1148
1171
  rootSnapshotHash: z5.string().regex(/^[a-f0-9]{64}$/u),
1149
1172
  rootSnapshotId: z5.uuid(),
1150
1173
  selectedSnapshotHash: z5.string().regex(/^[a-f0-9]{64}$/u),
@@ -1159,6 +1182,13 @@ var deliveryStageArtifactFrontmatterSchema = z5.object({
1159
1182
  path: ["state"]
1160
1183
  });
1161
1184
  }
1185
+ if (value.retryAttempt === 0 && value.retryOfIntentId !== void 0 && value.retryOfIntentId !== null || value.retryAttempt > 0 && (value.retryOfIntentId === void 0 || value.retryOfIntentId === null)) {
1186
+ context.addIssue({
1187
+ code: "custom",
1188
+ message: "retryAttempt and retryOfIntentId must describe the same retry generation",
1189
+ path: ["retryOfIntentId"]
1190
+ });
1191
+ }
1162
1192
  });
1163
1193
  function contentStageArtifactFrontmatterSchema(stage) {
1164
1194
  switch (stage) {
@@ -2250,8 +2280,10 @@ export {
2250
2280
  publishingArticleSchema,
2251
2281
  publishingRenderSnapshotSchema,
2252
2282
  publishingPreviewLinkSchema,
2283
+ publishingPreviewSelectionStateSchema,
2253
2284
  createPublishingApprovalRequestSchema,
2254
2285
  publishingApprovalSchema,
2286
+ createPublishingDraftIntentRequestSchema,
2255
2287
  publishingDraftIntentResponseSchema,
2256
2288
  CONTENT_WORKFLOW_ID,
2257
2289
  CONTENT_ARTIFACT_KINDS,
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __dxcCreateRequire } from "node:module"; const require = __dxcCreateRequire(import.meta.url);
2
2
  import {
3
3
  sourceFetchResultSchema
4
- } from "./chunk-UQRFCGHR.js";
4
+ } from "./chunk-BWOC5S2C.js";
5
5
 
6
6
  // apps/cli/src/source.ts
7
7
  import { createHash } from "node:crypto";
@@ -27,7 +27,7 @@ import {
27
27
  readPrivateFile,
28
28
  writePrivateBuffer,
29
29
  writePrivateJson
30
- } from "./chunk-UQRFCGHR.js";
30
+ } from "./chunk-BWOC5S2C.js";
31
31
 
32
32
  // apps/cli/src/knowledge.ts
33
33
  import { createHash as createHash2, randomUUID } from "node:crypto";
@@ -2,7 +2,7 @@ import { createRequire as __dxcCreateRequire } from "node:module"; const require
2
2
  import {
3
3
  SourceCli,
4
4
  SourceCliError
5
- } from "./chunk-QPHUHGHV.js";
5
+ } from "./chunk-PX25ABJR.js";
6
6
  import {
7
7
  CONTENT_MONITOR_SCHEMA_VERSION,
8
8
  LocalStateError,
@@ -14,7 +14,7 @@ import {
14
14
  contentMonitorStatusResultSchema,
15
15
  ensurePrivateRegularFile,
16
16
  sourceFetchKindSchema
17
- } from "./chunk-UQRFCGHR.js";
17
+ } from "./chunk-BWOC5S2C.js";
18
18
 
19
19
  // apps/cli/src/monitor.ts
20
20
  import { createHash, randomUUID as systemRandomUUID } from "node:crypto";