@fractary/codex 0.11.0 → 0.11.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/dist/index.cjs CHANGED
@@ -888,12 +888,21 @@ var SyncRulesSchema = zod.z.object({
888
888
  defaultInclude: zod.z.array(zod.z.string()).optional(),
889
889
  defaultExclude: zod.z.array(zod.z.string()).optional()
890
890
  });
891
+ var DirectionalSyncConfigSchema = zod.z.object({
892
+ /** Patterns to include (required) */
893
+ include: zod.z.array(zod.z.string()),
894
+ /** Patterns to exclude (optional) */
895
+ exclude: zod.z.array(zod.z.string()).optional()
896
+ });
891
897
  var DirectionalSyncSchema = zod.z.object({
898
+ // New format (v0.7.0+) - Recommended
892
899
  // Patterns for files to push from this project to codex
893
- to_codex: zod.z.array(zod.z.string()).optional(),
900
+ to_codex: DirectionalSyncConfigSchema.optional(),
894
901
  // Patterns for files to pull from codex to this project
895
- // Format: "project-name/path/pattern" or "project-name/**"
896
- from_codex: zod.z.array(zod.z.string()).optional(),
902
+ from_codex: DirectionalSyncConfigSchema.optional(),
903
+ // Global exclude patterns (applied to both directions)
904
+ exclude: zod.z.array(zod.z.string()).optional(),
905
+ // Legacy format (deprecated, backward compatible)
897
906
  // Org-level defaults (only in codex repository config)
898
907
  default_to_codex: zod.z.array(zod.z.string()).optional(),
899
908
  default_from_codex: zod.z.array(zod.z.string()).optional()