@fractary/codex 0.12.2 → 0.12.5
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 +22 -167
- package/dist/index.cjs +140 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +75 -155
- package/dist/index.d.ts +75 -155
- package/dist/index.js +134 -43
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -460,7 +460,7 @@ declare const CodexConfigSchema: z.ZodObject<{
|
|
|
460
460
|
include: string[];
|
|
461
461
|
exclude?: string[] | undefined;
|
|
462
462
|
}>>;
|
|
463
|
-
from_codex: z.ZodOptional<z.ZodObject<{
|
|
463
|
+
from_codex: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
464
464
|
include: z.ZodArray<z.ZodString, "many">;
|
|
465
465
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
466
466
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -469,6 +469,12 @@ declare const CodexConfigSchema: z.ZodObject<{
|
|
|
469
469
|
}, {
|
|
470
470
|
include: string[];
|
|
471
471
|
exclude?: string[] | undefined;
|
|
472
|
+
}>, {
|
|
473
|
+
include: string[];
|
|
474
|
+
exclude?: string[] | undefined;
|
|
475
|
+
}, {
|
|
476
|
+
include: string[];
|
|
477
|
+
exclude?: string[] | undefined;
|
|
472
478
|
}>>;
|
|
473
479
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
474
480
|
default_to_codex: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -557,52 +563,12 @@ declare const CodexConfigSchema: z.ZodObject<{
|
|
|
557
563
|
fallback_to_public?: boolean | undefined;
|
|
558
564
|
} | undefined;
|
|
559
565
|
}>>;
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
type: z.ZodEnum<["github", "s3", "http", "local"]>;
|
|
563
|
-
token_env: z.ZodOptional<z.ZodString>;
|
|
564
|
-
token: z.ZodOptional<z.ZodString>;
|
|
565
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
566
|
-
base_url: z.ZodOptional<z.ZodString>;
|
|
567
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
568
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
569
|
-
}, "strip", z.ZodTypeAny, {
|
|
570
|
-
type: "local" | "github" | "http" | "s3";
|
|
571
|
-
token?: string | undefined;
|
|
572
|
-
branch?: string | undefined;
|
|
573
|
-
bucket?: string | undefined;
|
|
574
|
-
prefix?: string | undefined;
|
|
575
|
-
token_env?: string | undefined;
|
|
576
|
-
base_url?: string | undefined;
|
|
577
|
-
}, {
|
|
578
|
-
type: "local" | "github" | "http" | "s3";
|
|
579
|
-
token?: string | undefined;
|
|
580
|
-
branch?: string | undefined;
|
|
581
|
-
bucket?: string | undefined;
|
|
582
|
-
prefix?: string | undefined;
|
|
583
|
-
token_env?: string | undefined;
|
|
584
|
-
base_url?: string | undefined;
|
|
585
|
-
}>>;
|
|
566
|
+
remotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
567
|
+
token: z.ZodOptional<z.ZodString>;
|
|
586
568
|
}, "strip", z.ZodTypeAny, {
|
|
587
|
-
|
|
588
|
-
type: "local" | "github" | "http" | "s3";
|
|
589
|
-
token?: string | undefined;
|
|
590
|
-
branch?: string | undefined;
|
|
591
|
-
bucket?: string | undefined;
|
|
592
|
-
prefix?: string | undefined;
|
|
593
|
-
token_env?: string | undefined;
|
|
594
|
-
base_url?: string | undefined;
|
|
595
|
-
}>;
|
|
569
|
+
token?: string | undefined;
|
|
596
570
|
}, {
|
|
597
|
-
|
|
598
|
-
type: "local" | "github" | "http" | "s3";
|
|
599
|
-
token?: string | undefined;
|
|
600
|
-
branch?: string | undefined;
|
|
601
|
-
bucket?: string | undefined;
|
|
602
|
-
prefix?: string | undefined;
|
|
603
|
-
token_env?: string | undefined;
|
|
604
|
-
base_url?: string | undefined;
|
|
605
|
-
}>;
|
|
571
|
+
token?: string | undefined;
|
|
606
572
|
}>>>;
|
|
607
573
|
}, "strict", z.ZodTypeAny, {
|
|
608
574
|
organizationSlug: string;
|
|
@@ -652,16 +618,8 @@ declare const CodexConfigSchema: z.ZodObject<{
|
|
|
652
618
|
fallback_to_public?: boolean | undefined;
|
|
653
619
|
} | undefined;
|
|
654
620
|
} | undefined;
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
type: "local" | "github" | "http" | "s3";
|
|
658
|
-
token?: string | undefined;
|
|
659
|
-
branch?: string | undefined;
|
|
660
|
-
bucket?: string | undefined;
|
|
661
|
-
prefix?: string | undefined;
|
|
662
|
-
token_env?: string | undefined;
|
|
663
|
-
base_url?: string | undefined;
|
|
664
|
-
}>;
|
|
621
|
+
remotes?: Record<string, {
|
|
622
|
+
token?: string | undefined;
|
|
665
623
|
}> | undefined;
|
|
666
624
|
}, {
|
|
667
625
|
organizationSlug: string;
|
|
@@ -711,16 +669,8 @@ declare const CodexConfigSchema: z.ZodObject<{
|
|
|
711
669
|
fallback_to_public?: boolean | undefined;
|
|
712
670
|
} | undefined;
|
|
713
671
|
} | undefined;
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
type: "local" | "github" | "http" | "s3";
|
|
717
|
-
token?: string | undefined;
|
|
718
|
-
branch?: string | undefined;
|
|
719
|
-
bucket?: string | undefined;
|
|
720
|
-
prefix?: string | undefined;
|
|
721
|
-
token_env?: string | undefined;
|
|
722
|
-
base_url?: string | undefined;
|
|
723
|
-
}>;
|
|
672
|
+
remotes?: Record<string, {
|
|
673
|
+
token?: string | undefined;
|
|
724
674
|
}> | undefined;
|
|
725
675
|
}>;
|
|
726
676
|
type CodexConfig = z.infer<typeof CodexConfigSchema>;
|
|
@@ -818,6 +768,7 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
818
768
|
region?: string | undefined;
|
|
819
769
|
}>>;
|
|
820
770
|
}, "strip", z.ZodTypeAny, {
|
|
771
|
+
schema_version: string;
|
|
821
772
|
sources: Record<string, {
|
|
822
773
|
local: {
|
|
823
774
|
base_path: string;
|
|
@@ -834,8 +785,8 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
834
785
|
} | undefined;
|
|
835
786
|
region?: string | undefined;
|
|
836
787
|
}>;
|
|
837
|
-
schema_version: string;
|
|
838
788
|
}, {
|
|
789
|
+
schema_version: string;
|
|
839
790
|
sources: Record<string, {
|
|
840
791
|
local: {
|
|
841
792
|
base_path: string;
|
|
@@ -852,7 +803,6 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
852
803
|
} | undefined;
|
|
853
804
|
region?: string | undefined;
|
|
854
805
|
}>;
|
|
855
|
-
schema_version: string;
|
|
856
806
|
}>>;
|
|
857
807
|
codex: z.ZodOptional<z.ZodObject<{
|
|
858
808
|
organizationSlug: z.ZodString;
|
|
@@ -923,7 +873,7 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
923
873
|
include: string[];
|
|
924
874
|
exclude?: string[] | undefined;
|
|
925
875
|
}>>;
|
|
926
|
-
from_codex: z.ZodOptional<z.ZodObject<{
|
|
876
|
+
from_codex: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
927
877
|
include: z.ZodArray<z.ZodString, "many">;
|
|
928
878
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
929
879
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -932,6 +882,12 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
932
882
|
}, {
|
|
933
883
|
include: string[];
|
|
934
884
|
exclude?: string[] | undefined;
|
|
885
|
+
}>, {
|
|
886
|
+
include: string[];
|
|
887
|
+
exclude?: string[] | undefined;
|
|
888
|
+
}, {
|
|
889
|
+
include: string[];
|
|
890
|
+
exclude?: string[] | undefined;
|
|
935
891
|
}>>;
|
|
936
892
|
exclude: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
937
893
|
default_to_codex: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1020,52 +976,12 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
1020
976
|
fallback_to_public?: boolean | undefined;
|
|
1021
977
|
} | undefined;
|
|
1022
978
|
}>>;
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
type: z.ZodEnum<["github", "s3", "http", "local"]>;
|
|
1026
|
-
token_env: z.ZodOptional<z.ZodString>;
|
|
1027
|
-
token: z.ZodOptional<z.ZodString>;
|
|
1028
|
-
branch: z.ZodOptional<z.ZodString>;
|
|
1029
|
-
base_url: z.ZodOptional<z.ZodString>;
|
|
1030
|
-
bucket: z.ZodOptional<z.ZodString>;
|
|
1031
|
-
prefix: z.ZodOptional<z.ZodString>;
|
|
1032
|
-
}, "strip", z.ZodTypeAny, {
|
|
1033
|
-
type: "local" | "github" | "http" | "s3";
|
|
1034
|
-
token?: string | undefined;
|
|
1035
|
-
branch?: string | undefined;
|
|
1036
|
-
bucket?: string | undefined;
|
|
1037
|
-
prefix?: string | undefined;
|
|
1038
|
-
token_env?: string | undefined;
|
|
1039
|
-
base_url?: string | undefined;
|
|
1040
|
-
}, {
|
|
1041
|
-
type: "local" | "github" | "http" | "s3";
|
|
1042
|
-
token?: string | undefined;
|
|
1043
|
-
branch?: string | undefined;
|
|
1044
|
-
bucket?: string | undefined;
|
|
1045
|
-
prefix?: string | undefined;
|
|
1046
|
-
token_env?: string | undefined;
|
|
1047
|
-
base_url?: string | undefined;
|
|
1048
|
-
}>>;
|
|
979
|
+
remotes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
980
|
+
token: z.ZodOptional<z.ZodString>;
|
|
1049
981
|
}, "strip", z.ZodTypeAny, {
|
|
1050
|
-
|
|
1051
|
-
type: "local" | "github" | "http" | "s3";
|
|
1052
|
-
token?: string | undefined;
|
|
1053
|
-
branch?: string | undefined;
|
|
1054
|
-
bucket?: string | undefined;
|
|
1055
|
-
prefix?: string | undefined;
|
|
1056
|
-
token_env?: string | undefined;
|
|
1057
|
-
base_url?: string | undefined;
|
|
1058
|
-
}>;
|
|
982
|
+
token?: string | undefined;
|
|
1059
983
|
}, {
|
|
1060
|
-
|
|
1061
|
-
type: "local" | "github" | "http" | "s3";
|
|
1062
|
-
token?: string | undefined;
|
|
1063
|
-
branch?: string | undefined;
|
|
1064
|
-
bucket?: string | undefined;
|
|
1065
|
-
prefix?: string | undefined;
|
|
1066
|
-
token_env?: string | undefined;
|
|
1067
|
-
base_url?: string | undefined;
|
|
1068
|
-
}>;
|
|
984
|
+
token?: string | undefined;
|
|
1069
985
|
}>>>;
|
|
1070
986
|
}, "strict", z.ZodTypeAny, {
|
|
1071
987
|
organizationSlug: string;
|
|
@@ -1115,16 +1031,8 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
1115
1031
|
fallback_to_public?: boolean | undefined;
|
|
1116
1032
|
} | undefined;
|
|
1117
1033
|
} | undefined;
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
type: "local" | "github" | "http" | "s3";
|
|
1121
|
-
token?: string | undefined;
|
|
1122
|
-
branch?: string | undefined;
|
|
1123
|
-
bucket?: string | undefined;
|
|
1124
|
-
prefix?: string | undefined;
|
|
1125
|
-
token_env?: string | undefined;
|
|
1126
|
-
base_url?: string | undefined;
|
|
1127
|
-
}>;
|
|
1034
|
+
remotes?: Record<string, {
|
|
1035
|
+
token?: string | undefined;
|
|
1128
1036
|
}> | undefined;
|
|
1129
1037
|
}, {
|
|
1130
1038
|
organizationSlug: string;
|
|
@@ -1174,20 +1082,13 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
1174
1082
|
fallback_to_public?: boolean | undefined;
|
|
1175
1083
|
} | undefined;
|
|
1176
1084
|
} | undefined;
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
type: "local" | "github" | "http" | "s3";
|
|
1180
|
-
token?: string | undefined;
|
|
1181
|
-
branch?: string | undefined;
|
|
1182
|
-
bucket?: string | undefined;
|
|
1183
|
-
prefix?: string | undefined;
|
|
1184
|
-
token_env?: string | undefined;
|
|
1185
|
-
base_url?: string | undefined;
|
|
1186
|
-
}>;
|
|
1085
|
+
remotes?: Record<string, {
|
|
1086
|
+
token?: string | undefined;
|
|
1187
1087
|
}> | undefined;
|
|
1188
1088
|
}>>;
|
|
1189
1089
|
}, "strip", z.ZodTypeAny, {
|
|
1190
1090
|
file?: {
|
|
1091
|
+
schema_version: string;
|
|
1191
1092
|
sources: Record<string, {
|
|
1192
1093
|
local: {
|
|
1193
1094
|
base_path: string;
|
|
@@ -1204,7 +1105,6 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
1204
1105
|
} | undefined;
|
|
1205
1106
|
region?: string | undefined;
|
|
1206
1107
|
}>;
|
|
1207
|
-
schema_version: string;
|
|
1208
1108
|
} | undefined;
|
|
1209
1109
|
codex?: {
|
|
1210
1110
|
organizationSlug: string;
|
|
@@ -1254,20 +1154,13 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
1254
1154
|
fallback_to_public?: boolean | undefined;
|
|
1255
1155
|
} | undefined;
|
|
1256
1156
|
} | undefined;
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
type: "local" | "github" | "http" | "s3";
|
|
1260
|
-
token?: string | undefined;
|
|
1261
|
-
branch?: string | undefined;
|
|
1262
|
-
bucket?: string | undefined;
|
|
1263
|
-
prefix?: string | undefined;
|
|
1264
|
-
token_env?: string | undefined;
|
|
1265
|
-
base_url?: string | undefined;
|
|
1266
|
-
}>;
|
|
1157
|
+
remotes?: Record<string, {
|
|
1158
|
+
token?: string | undefined;
|
|
1267
1159
|
}> | undefined;
|
|
1268
1160
|
} | undefined;
|
|
1269
1161
|
}, {
|
|
1270
1162
|
file?: {
|
|
1163
|
+
schema_version: string;
|
|
1271
1164
|
sources: Record<string, {
|
|
1272
1165
|
local: {
|
|
1273
1166
|
base_path: string;
|
|
@@ -1284,7 +1177,6 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
1284
1177
|
} | undefined;
|
|
1285
1178
|
region?: string | undefined;
|
|
1286
1179
|
}>;
|
|
1287
|
-
schema_version: string;
|
|
1288
1180
|
} | undefined;
|
|
1289
1181
|
codex?: {
|
|
1290
1182
|
organizationSlug: string;
|
|
@@ -1334,16 +1226,8 @@ declare const UnifiedConfigSchema: z.ZodObject<{
|
|
|
1334
1226
|
fallback_to_public?: boolean | undefined;
|
|
1335
1227
|
} | undefined;
|
|
1336
1228
|
} | undefined;
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
type: "local" | "github" | "http" | "s3";
|
|
1340
|
-
token?: string | undefined;
|
|
1341
|
-
branch?: string | undefined;
|
|
1342
|
-
bucket?: string | undefined;
|
|
1343
|
-
prefix?: string | undefined;
|
|
1344
|
-
token_env?: string | undefined;
|
|
1345
|
-
base_url?: string | undefined;
|
|
1346
|
-
}>;
|
|
1229
|
+
remotes?: Record<string, {
|
|
1230
|
+
token?: string | undefined;
|
|
1347
1231
|
}> | undefined;
|
|
1348
1232
|
} | undefined;
|
|
1349
1233
|
}>;
|
|
@@ -1398,6 +1282,41 @@ interface LoadConfigOptions {
|
|
|
1398
1282
|
}
|
|
1399
1283
|
declare function loadConfig(options?: LoadConfigOptions): CodexConfig;
|
|
1400
1284
|
|
|
1285
|
+
declare const CONFIG_SCHEMA_VERSION: "2.0";
|
|
1286
|
+
interface SyncPresetConfig {
|
|
1287
|
+
to_codex: {
|
|
1288
|
+
include: string[];
|
|
1289
|
+
exclude?: string[];
|
|
1290
|
+
};
|
|
1291
|
+
from_codex: {
|
|
1292
|
+
include: string[];
|
|
1293
|
+
exclude?: string[];
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
interface SyncPreset {
|
|
1297
|
+
readonly name: string;
|
|
1298
|
+
readonly description: string;
|
|
1299
|
+
readonly config: {
|
|
1300
|
+
readonly to_codex: {
|
|
1301
|
+
readonly include: readonly string[];
|
|
1302
|
+
readonly exclude?: readonly string[];
|
|
1303
|
+
};
|
|
1304
|
+
readonly from_codex: {
|
|
1305
|
+
readonly include: readonly string[];
|
|
1306
|
+
readonly exclude?: readonly string[];
|
|
1307
|
+
};
|
|
1308
|
+
};
|
|
1309
|
+
}
|
|
1310
|
+
declare const SYNC_PATTERN_PRESETS: Record<string, SyncPreset>;
|
|
1311
|
+
declare const DEFAULT_GLOBAL_EXCLUDES: readonly ["**/.git/**", "**/node_modules/**", "**/.env", "**/.env.*", "**/*.log", "**/dist/**", "**/build/**", "**/.DS_Store", "**/credentials.json", "**/*secret*", "**/*password*"];
|
|
1312
|
+
declare function getSyncPreset(name: string): SyncPreset | undefined;
|
|
1313
|
+
declare function getSyncPresetNames(): string[];
|
|
1314
|
+
declare function substitutePatternPlaceholders(patterns: readonly string[], org: string, codexRepo: string): string[];
|
|
1315
|
+
interface GenerateSyncConfigOptions {
|
|
1316
|
+
includeGlobalExcludes?: boolean;
|
|
1317
|
+
}
|
|
1318
|
+
declare function generateSyncConfigFromPreset(presetName: string, org: string, codexRepo: string, options?: GenerateSyncConfigOptions): SyncPresetConfig | undefined;
|
|
1319
|
+
|
|
1401
1320
|
interface ShouldSyncOptions {
|
|
1402
1321
|
filePath: string;
|
|
1403
1322
|
fileMetadata: Metadata;
|
|
@@ -1544,6 +1463,7 @@ declare class StorageManager {
|
|
|
1544
1463
|
private priority;
|
|
1545
1464
|
private codexConfig?;
|
|
1546
1465
|
constructor(config?: StorageManagerConfig);
|
|
1466
|
+
private resolveTokenValue;
|
|
1547
1467
|
private resolveToken;
|
|
1548
1468
|
private resolveFetchOptions;
|
|
1549
1469
|
registerProvider(provider: StorageProvider): void;
|
|
@@ -2237,4 +2157,4 @@ declare function formatSeconds(seconds: number): string;
|
|
|
2237
2157
|
declare function isValidDuration(value: string): boolean;
|
|
2238
2158
|
declare function isValidSize(value: string): boolean;
|
|
2239
2159
|
|
|
2240
|
-
export { type ArchiveConfig, type ArtifactType, type AutoSyncPattern, AutoSyncPatternSchema, BUILT_IN_TYPES, CODEX_URI_PREFIX, type CacheEntry, type CacheEntryMetadata, type CacheEntryStatus, type CacheLookupResult, CacheManager, type CacheManagerConfig, CachePersistence, type CachePersistenceOptions, type CacheStats, type CodexConfig, CodexConfigSchema, CodexError, type CodexYamlConfig, CommonRules, ConfigurationError, type ConversionOptions, type ConvertedReference, type CustomSyncDestination, type CustomTypeConfig$1 as CustomTypeConfig, CustomTypeSchema, DEFAULT_CACHE_DIR, DEFAULT_FETCH_OPTIONS, DEFAULT_MIGRATION_OPTIONS, DEFAULT_PERMISSION_CONFIG, DEFAULT_SYNC_CONFIG, DEFAULT_TYPE, type DirectionalSyncConfig, type EvaluationResult, type EvaluationSummary, type ExpandEnvOptions, type FetchOptions, type FetchResult, type FileConfig, type FileInfo, FilePluginFileNotFoundError, type FilePluginFileNotFoundErrorOptions, FilePluginStorage, type FilePluginStorageOptions, type FileSyncStatus, GitHubStorage, type GitHubStorageOptions, HttpStorage, type HttpStorageOptions, LEGACY_PATTERNS, LEGACY_REF_PREFIX, type LegacyAutoSyncPattern, type LegacyCodexConfig, type LoadConfigOptions, LocalStorage, type LocalStorageOptions, type Metadata, MetadataSchema, type MigrationChange, type MigrationOptions, type MigrationResult, type ModernCodexConfig, type ModernSyncPattern, PERMISSION_LEVEL_ORDER, type ParseMetadataOptions, type ParseOptions, type ParseResult, type ParsedReference, type PermissionAction, type PermissionConfig, type PermissionContext, PermissionDeniedError, type PermissionLevel$1 as PermissionLevel, PermissionManager, type PermissionManagerConfig, type PermissionResult, type PermissionRule$1 as PermissionRule, type PermissionScope, type PlanStats, type ReadConfigOptions, type ReferenceConversionResult, type ResolveOptions, type ResolveOrgOptions, type ResolvedReference, type SerializedCacheEntry, type ShouldSyncOptions, StorageManager, type StorageManagerConfig, type StorageProvider, type StorageProviderConfig$1 as StorageProviderConfig, type StorageProviderType$1 as StorageProviderType, type SyncConfig$1 as SyncConfig, type SyncDirection, SyncManager, type SyncManagerConfig, type SyncManifest, type SyncManifestEntry, type SyncOperation, type SyncOptions, type SyncPlan, type SyncResult, type SyncRule$1 as SyncRule, type SyncRules, SyncRulesSchema, TTL, TypeRegistry, type TypeRegistryOptions, type TypesConfig$1 as TypesConfig, TypesConfigSchema, type UnifiedConfig, ValidationError, type VersionDetectionResult, type CacheConfig as YamlCacheConfig, type CustomTypeConfig as YamlCustomTypeConfig, type GitHubStorageConfig as YamlGitHubStorageConfig, type HttpStorageConfig as YamlHttpStorageConfig, type LocalStorageConfig as YamlLocalStorageConfig, type McpConfig as YamlMcpConfig, type PermissionLevel as YamlPermissionLevel, type PermissionRule as YamlPermissionRule, type PermissionsConfig as YamlPermissionsConfig, type S3StorageConfig as YamlS3StorageConfig, type StorageProviderConfig as YamlStorageProviderConfig, type StorageProviderType as YamlStorageProviderType, type SyncConfig as YamlSyncConfig, type SyncRule as YamlSyncRule, type TypesConfig as YamlTypesConfig, buildUri, calculateCachePath, calculateContentHash, convertLegacyReference, convertLegacyReferences, convertToUri, createCacheEntry, createCacheManager, createCachePersistence, createDefaultRegistry, createEmptyModernConfig, createEmptySyncPlan, createGitHubStorage, createHttpStorage, createLocalStorage, createPermissionManager, createRule, createRulesFromPatterns, createStorageManager, createSyncManager, createSyncPlan, deserializeCacheEntry, detectContentType, detectCurrentProject, detectVersion, estimateSyncTime, evaluatePath, evaluatePaths, evaluatePatterns, evaluatePermission, evaluatePermissions, expandEnvVars, expandEnvVarsInConfig, extendType, extractEnvVarNames, extractOrgFromRepoName, extractRawFrontmatter, filterByPatterns, filterByPermission, filterPlanOperations, filterSyncablePaths, findLegacyReferences, formatBytes, formatDuration, formatPlanSummary, formatSeconds, generateMigrationReport, generateReferenceMigrationSummary, getBuiltInType, getBuiltInTypeNames, getCacheEntryAge, getCacheEntryStatus, getCurrentContext, getCustomSyncDestinations, getDefaultCacheManager, getDefaultConfig, getDefaultDirectories, getDefaultPermissionManager, getDefaultRules, getDefaultStorageManager, getDirectory, getExtension, getFilename, getMigrationRequirements, getPlanStats, getRelativeCachePath, getRemainingTtl, getTargetRepos, hasContentChanged, hasEnvVars, hasFrontmatter, hasLegacyReferences, hasPermission as hasPermissionLevel, isBuiltInType, isCacheEntryFresh, isCacheEntryValid, isCurrentProjectUri, isLegacyConfig, isLegacyReference, isModernConfig, isAllowed as isPermissionAllowed, isUnifiedConfig, isValidDuration, isValidSize, isValidUri, levelGrants, loadConfig, loadCustomTypes, matchAnyPattern, matchPattern, maxLevel, mergeFetchOptions, mergeRules, mergeTypes, migrateConfig, migrateFileReferences, minLevel, needsMigration, parseCustomDestination, parseDuration, parseMetadata, parseReference, parseSize, parseTtl, readCodexConfig, readUnifiedConfig, resolveOrganization, resolveReference, resolveReferences, ruleMatchesAction, ruleMatchesContext, ruleMatchesPath, sanitizePath, serializeCacheEntry, setDefaultCacheManager, setDefaultPermissionManager, setDefaultStorageManager, shouldSyncToRepo, summarizeEvaluations, touchCacheEntry, validateCustomTypes, validateMetadata, validateMigratedConfig, validateOrg, validatePath, validateRules as validatePermissionRules, validateProject, validateRules$1 as validateRules, validateUri };
|
|
2160
|
+
export { type ArchiveConfig, type ArtifactType, type AutoSyncPattern, AutoSyncPatternSchema, BUILT_IN_TYPES, CODEX_URI_PREFIX, CONFIG_SCHEMA_VERSION, type CacheEntry, type CacheEntryMetadata, type CacheEntryStatus, type CacheLookupResult, CacheManager, type CacheManagerConfig, CachePersistence, type CachePersistenceOptions, type CacheStats, type CodexConfig, CodexConfigSchema, CodexError, type CodexYamlConfig, CommonRules, ConfigurationError, type ConversionOptions, type ConvertedReference, type CustomSyncDestination, type CustomTypeConfig$1 as CustomTypeConfig, CustomTypeSchema, DEFAULT_CACHE_DIR, DEFAULT_FETCH_OPTIONS, DEFAULT_GLOBAL_EXCLUDES, DEFAULT_MIGRATION_OPTIONS, DEFAULT_PERMISSION_CONFIG, DEFAULT_SYNC_CONFIG, DEFAULT_TYPE, type DirectionalSyncConfig, type EvaluationResult, type EvaluationSummary, type ExpandEnvOptions, type FetchOptions, type FetchResult, type FileConfig, type FileInfo, FilePluginFileNotFoundError, type FilePluginFileNotFoundErrorOptions, FilePluginStorage, type FilePluginStorageOptions, type FileSyncStatus, type GenerateSyncConfigOptions, GitHubStorage, type GitHubStorageOptions, HttpStorage, type HttpStorageOptions, LEGACY_PATTERNS, LEGACY_REF_PREFIX, type LegacyAutoSyncPattern, type LegacyCodexConfig, type LoadConfigOptions, LocalStorage, type LocalStorageOptions, type Metadata, MetadataSchema, type MigrationChange, type MigrationOptions, type MigrationResult, type ModernCodexConfig, type ModernSyncPattern, PERMISSION_LEVEL_ORDER, type ParseMetadataOptions, type ParseOptions, type ParseResult, type ParsedReference, type PermissionAction, type PermissionConfig, type PermissionContext, PermissionDeniedError, type PermissionLevel$1 as PermissionLevel, PermissionManager, type PermissionManagerConfig, type PermissionResult, type PermissionRule$1 as PermissionRule, type PermissionScope, type PlanStats, type ReadConfigOptions, type ReferenceConversionResult, type ResolveOptions, type ResolveOrgOptions, type ResolvedReference, SYNC_PATTERN_PRESETS, type SerializedCacheEntry, type ShouldSyncOptions, StorageManager, type StorageManagerConfig, type StorageProvider, type StorageProviderConfig$1 as StorageProviderConfig, type StorageProviderType$1 as StorageProviderType, type SyncConfig$1 as SyncConfig, type SyncDirection, SyncManager, type SyncManagerConfig, type SyncManifest, type SyncManifestEntry, type SyncOperation, type SyncOptions, type SyncPlan, type SyncPreset, type SyncPresetConfig, type SyncResult, type SyncRule$1 as SyncRule, type SyncRules, SyncRulesSchema, TTL, TypeRegistry, type TypeRegistryOptions, type TypesConfig$1 as TypesConfig, TypesConfigSchema, type UnifiedConfig, ValidationError, type VersionDetectionResult, type CacheConfig as YamlCacheConfig, type CustomTypeConfig as YamlCustomTypeConfig, type GitHubStorageConfig as YamlGitHubStorageConfig, type HttpStorageConfig as YamlHttpStorageConfig, type LocalStorageConfig as YamlLocalStorageConfig, type McpConfig as YamlMcpConfig, type PermissionLevel as YamlPermissionLevel, type PermissionRule as YamlPermissionRule, type PermissionsConfig as YamlPermissionsConfig, type S3StorageConfig as YamlS3StorageConfig, type StorageProviderConfig as YamlStorageProviderConfig, type StorageProviderType as YamlStorageProviderType, type SyncConfig as YamlSyncConfig, type SyncRule as YamlSyncRule, type TypesConfig as YamlTypesConfig, buildUri, calculateCachePath, calculateContentHash, convertLegacyReference, convertLegacyReferences, convertToUri, createCacheEntry, createCacheManager, createCachePersistence, createDefaultRegistry, createEmptyModernConfig, createEmptySyncPlan, createGitHubStorage, createHttpStorage, createLocalStorage, createPermissionManager, createRule, createRulesFromPatterns, createStorageManager, createSyncManager, createSyncPlan, deserializeCacheEntry, detectContentType, detectCurrentProject, detectVersion, estimateSyncTime, evaluatePath, evaluatePaths, evaluatePatterns, evaluatePermission, evaluatePermissions, expandEnvVars, expandEnvVarsInConfig, extendType, extractEnvVarNames, extractOrgFromRepoName, extractRawFrontmatter, filterByPatterns, filterByPermission, filterPlanOperations, filterSyncablePaths, findLegacyReferences, formatBytes, formatDuration, formatPlanSummary, formatSeconds, generateMigrationReport, generateReferenceMigrationSummary, generateSyncConfigFromPreset, getBuiltInType, getBuiltInTypeNames, getCacheEntryAge, getCacheEntryStatus, getCurrentContext, getCustomSyncDestinations, getDefaultCacheManager, getDefaultConfig, getDefaultDirectories, getDefaultPermissionManager, getDefaultRules, getDefaultStorageManager, getDirectory, getExtension, getFilename, getMigrationRequirements, getPlanStats, getRelativeCachePath, getRemainingTtl, getSyncPreset, getSyncPresetNames, getTargetRepos, hasContentChanged, hasEnvVars, hasFrontmatter, hasLegacyReferences, hasPermission as hasPermissionLevel, isBuiltInType, isCacheEntryFresh, isCacheEntryValid, isCurrentProjectUri, isLegacyConfig, isLegacyReference, isModernConfig, isAllowed as isPermissionAllowed, isUnifiedConfig, isValidDuration, isValidSize, isValidUri, levelGrants, loadConfig, loadCustomTypes, matchAnyPattern, matchPattern, maxLevel, mergeFetchOptions, mergeRules, mergeTypes, migrateConfig, migrateFileReferences, minLevel, needsMigration, parseCustomDestination, parseDuration, parseMetadata, parseReference, parseSize, parseTtl, readCodexConfig, readUnifiedConfig, resolveOrganization, resolveReference, resolveReferences, ruleMatchesAction, ruleMatchesContext, ruleMatchesPath, sanitizePath, serializeCacheEntry, setDefaultCacheManager, setDefaultPermissionManager, setDefaultStorageManager, shouldSyncToRepo, substitutePatternPlaceholders, summarizeEvaluations, touchCacheEntry, validateCustomTypes, validateMetadata, validateMigratedConfig, validateOrg, validatePath, validateRules as validatePermissionRules, validateProject, validateRules$1 as validateRules, validateUri };
|