@fractary/codex 0.12.10 → 0.12.13
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 +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4147,7 +4147,7 @@ var ConfigManager = class {
|
|
|
4147
4147
|
/**
|
|
4148
4148
|
* Initialize the codex section in an existing unified config.
|
|
4149
4149
|
*
|
|
4150
|
-
* Requires .fractary/config.yaml to already exist (created by @fractary/core's config-
|
|
4150
|
+
* Requires .fractary/config.yaml to already exist (created by @fractary/core's config-init).
|
|
4151
4151
|
* Creates codex-specific directories, gitignore entries, and MCP server configuration.
|
|
4152
4152
|
*
|
|
4153
4153
|
* @param options - Initialization options
|
|
@@ -4206,12 +4206,12 @@ var ConfigManager = class {
|
|
|
4206
4206
|
const existingConfig = await readUnifiedConfig(configPath);
|
|
4207
4207
|
if (!existingConfig) {
|
|
4208
4208
|
throw new ValidationError(
|
|
4209
|
-
"Configuration not found at .fractary/config.yaml. Run config-
|
|
4209
|
+
"Configuration not found at .fractary/config.yaml. Run config-init first."
|
|
4210
4210
|
);
|
|
4211
4211
|
}
|
|
4212
4212
|
if (!existingConfig.codex) {
|
|
4213
4213
|
throw new ValidationError(
|
|
4214
|
-
"Codex section not found in .fractary/config.yaml. Run config-
|
|
4214
|
+
"Codex section not found in .fractary/config.yaml. Run config-init first to create the codex configuration."
|
|
4215
4215
|
);
|
|
4216
4216
|
}
|
|
4217
4217
|
const codex = { ...existingConfig.codex };
|
|
@@ -5302,10 +5302,13 @@ var SyncManager = class {
|
|
|
5302
5302
|
let synced = 0;
|
|
5303
5303
|
let failed = 0;
|
|
5304
5304
|
if (options?.dryRun) {
|
|
5305
|
+
const actualChanges = plan.files.filter(
|
|
5306
|
+
(f) => f.operation === "create" || f.operation === "update" || f.operation === "delete"
|
|
5307
|
+
).length;
|
|
5305
5308
|
return {
|
|
5306
5309
|
success: true,
|
|
5307
5310
|
plan,
|
|
5308
|
-
synced:
|
|
5311
|
+
synced: actualChanges,
|
|
5309
5312
|
failed: 0,
|
|
5310
5313
|
skipped: plan.skipped.length,
|
|
5311
5314
|
errors: [],
|