@fractary/codex-mcp 0.10.3 → 0.10.4
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 +32 -262
- package/dist/cli.cjs +40 -42
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +21 -24
- package/dist/index.cjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9944,12 +9944,24 @@ var DirectionalSyncConfigSchema = external_exports.object({
|
|
|
9944
9944
|
/** Patterns to exclude (optional) */
|
|
9945
9945
|
exclude: external_exports.array(external_exports.string()).optional()
|
|
9946
9946
|
});
|
|
9947
|
+
var FromCodexSyncConfigSchema = DirectionalSyncConfigSchema.refine(
|
|
9948
|
+
(config) => {
|
|
9949
|
+
const includeValid = config.include.every(
|
|
9950
|
+
(pattern) => pattern.startsWith("codex://")
|
|
9951
|
+
);
|
|
9952
|
+
const excludeValid = !config.exclude || config.exclude.every((pattern) => pattern.startsWith("codex://"));
|
|
9953
|
+
return includeValid && excludeValid;
|
|
9954
|
+
},
|
|
9955
|
+
{
|
|
9956
|
+
message: 'from_codex patterns must use codex:// URI format (e.g., "codex://{org}/{codex_repo}/docs/**"). Plain paths like "docs/**" are not valid for from_codex.'
|
|
9957
|
+
}
|
|
9958
|
+
);
|
|
9947
9959
|
var DirectionalSyncSchema = external_exports.object({
|
|
9948
9960
|
// New format (v0.7.0+) - Recommended
|
|
9949
|
-
// Patterns for files to push from this project to codex
|
|
9961
|
+
// Patterns for files to push from this project to codex (plain paths)
|
|
9950
9962
|
to_codex: DirectionalSyncConfigSchema.optional(),
|
|
9951
|
-
// Patterns for files to pull from codex to this project
|
|
9952
|
-
from_codex:
|
|
9963
|
+
// Patterns for files to pull from codex to this project (codex:// URIs required)
|
|
9964
|
+
from_codex: FromCodexSyncConfigSchema.optional(),
|
|
9953
9965
|
// Global exclude patterns (applied to both directions)
|
|
9954
9966
|
exclude: external_exports.array(external_exports.string()).optional(),
|
|
9955
9967
|
// Legacy format (deprecated, backward compatible)
|
|
@@ -9977,25 +9989,9 @@ var AuthConfigSchema = external_exports.object({
|
|
|
9977
9989
|
/** GitHub authentication configuration */
|
|
9978
9990
|
github: GitHubAuthConfigSchema.optional()
|
|
9979
9991
|
});
|
|
9980
|
-
var
|
|
9981
|
-
/**
|
|
9982
|
-
|
|
9983
|
-
/** Environment variable containing the authentication token */
|
|
9984
|
-
token_env: external_exports.string().optional(),
|
|
9985
|
-
/** Direct token value (not recommended, use token_env instead) */
|
|
9986
|
-
token: external_exports.string().optional(),
|
|
9987
|
-
/** Branch to fetch from (for GitHub sources) */
|
|
9988
|
-
branch: external_exports.string().optional(),
|
|
9989
|
-
/** Base URL (for HTTP sources) */
|
|
9990
|
-
base_url: external_exports.string().optional(),
|
|
9991
|
-
/** Bucket name (for S3 sources) */
|
|
9992
|
-
bucket: external_exports.string().optional(),
|
|
9993
|
-
/** Prefix/path within bucket (for S3 sources) */
|
|
9994
|
-
prefix: external_exports.string().optional()
|
|
9995
|
-
});
|
|
9996
|
-
var DependencyConfigSchema = external_exports.object({
|
|
9997
|
-
/** Sources within this dependency */
|
|
9998
|
-
sources: external_exports.record(SourceConfigSchema)
|
|
9992
|
+
var RemoteConfigSchema = external_exports.object({
|
|
9993
|
+
/** Authentication token - can be direct value or ${ENV_VAR} reference */
|
|
9994
|
+
token: external_exports.string().optional()
|
|
9999
9995
|
});
|
|
10000
9996
|
var CodexConfigSchema = external_exports.object({
|
|
10001
9997
|
organizationSlug: external_exports.string(),
|
|
@@ -10013,8 +10009,9 @@ var CodexConfigSchema = external_exports.object({
|
|
|
10013
10009
|
archive: ArchiveConfigSchema.optional(),
|
|
10014
10010
|
// Authentication configuration
|
|
10015
10011
|
auth: AuthConfigSchema.optional(),
|
|
10016
|
-
//
|
|
10017
|
-
|
|
10012
|
+
// Remote repositories configuration (external projects)
|
|
10013
|
+
// Keys are org/project identifiers, values configure authentication
|
|
10014
|
+
remotes: external_exports.record(RemoteConfigSchema).optional()
|
|
10018
10015
|
}).strict();
|
|
10019
10016
|
var FileSourceSchema = external_exports.object({
|
|
10020
10017
|
type: external_exports.enum(["s3", "r2", "gcs", "local"]),
|