@iamdevlinph/codex-kit 1.1.4 → 1.1.6

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 CHANGED
@@ -132,8 +132,9 @@ codex-kit project sync
132
132
  `project sync` never edits `AGENTS.md` or project skills. The reconciliation skill
133
133
  compares the refreshed template with the project's guidance and merges only
134
134
  applicable rules while preserving local organization and adaptations. If
135
- `TEMPLATE_AGENTS.md` was modified locally, sync preserves it for review instead
136
- of overwriting it.
135
+ `TEMPLATE_AGENTS.md` was modified locally, sync overwrites it with the packaged
136
+ template. Keep durable local rules in `AGENTS.md`; recover overwritten template
137
+ edits through Git history when needed.
137
138
 
138
139
  After reconciliation and validation, Codex runs:
139
140
 
@@ -151,9 +152,8 @@ template still needs reconciliation.
151
152
  `CODEX_HOME` or `~/.codex`.
152
153
  - `--cwd PATH` selects a project directory for project commands instead of the
153
154
  current directory.
154
- - `--force` lets `global install`, `global configure`, `project init`, or
155
- `project sync` replace modified files they manage. Use it only when you intend
156
- to discard those local changes.
155
+ - `--force` lets global commands replace modified files they manage. Use it only
156
+ when you intend to discard those local changes.
157
157
 
158
158
  Examples:
159
159
 
@@ -89,9 +89,12 @@ conditional procedures into validated project skills.
89
89
  - Work within imperfect architecture. If it prevents safe completion, stop,
90
90
  explain the limitation, propose the smallest viable design change, and wait
91
91
  for approval. Escalate blockers instead of bypassing them.
92
- - Reuse existing constants, schemas, enums, shared types, and components before
93
- creating duplicates. Add reusable domain values at their existing source of
94
- truth instead of scattering magic strings.
92
+ - Keep identical configuration and behavior in one source of truth at the
93
+ narrowest shared scope. Reuse that owner across callers or features; create a
94
+ separate implementation or instance only when scope, lifecycle, or behavior
95
+ genuinely differs. Reuse existing constants, schemas, enums, shared types,
96
+ and components before creating duplicates. Add reusable domain values at
97
+ their existing source of truth instead of scattering magic strings.
95
98
  - Replace numeric literals that encode domain rules, limits, durations, units,
96
99
  or protocol values with descriptively named constants. Universally obvious
97
100
  structural values, such as basic indexes or empty-state values, may remain
@@ -9,9 +9,7 @@ description: Reconcile a refreshed TEMPLATE_AGENTS.md with a project's AGENTS.md
9
9
 
10
10
  1. Inspect `AGENTS.md`, `TEMPLATE_AGENTS.md`, `.codex-kit-state.json`, the
11
11
  project's existing `.agents/skills`, and `codex-kit project status`. Record
12
- the initial status before making changes. If a codex-kit template backup
13
- exists, compare it with the refreshed template to isolate the actual template
14
- change.
12
+ the initial status before making changes.
15
13
  2. Preserve the existing `AGENTS.md` organization and all project-specific
16
14
  adaptations. Merge only reusable template guidance that applies to this
17
15
  repository; report conflicts between local and template rules, and do not
package/bin/codex-kit.js CHANGED
@@ -645,19 +645,8 @@ function syncProject(options) {
645
645
  const state = loadProjectState(cwd);
646
646
  if (existsSync6(stagedTemplate)) {
647
647
  const currentHash = sha256(read(stagedTemplate));
648
- const locallyModified = currentHash !== sourceHash && (!state.template.availableHash || currentHash !== state.template.availableHash);
649
- if (locallyModified && !options.force) {
650
- console.warn(
651
- `preserved locally modified template: ${stagedTemplate} (use --force to replace)`
652
- );
653
- console.log(
654
- `The installed kit has template ${PACKAGE.version}; review the local change before syncing.`
655
- );
656
- return;
657
- }
658
648
  if (currentHash === sourceHash) console.log(`unchanged: ${stagedTemplate}`);
659
649
  else {
660
- backup(stagedTemplate);
661
650
  write(stagedTemplate, desired);
662
651
  console.log(`refreshed template reference: ${stagedTemplate}`);
663
652
  }
@@ -893,7 +882,6 @@ Options by command:
893
882
 
894
883
  project init, project sync
895
884
  --cwd PATH Use a project directory other than the current directory.
896
- --force Replace modified files managed by codex-kit.
897
885
 
898
886
  project status, project mark-applied
899
887
  --cwd PATH Use a project directory other than the current directory.
@@ -901,7 +889,7 @@ Options by command:
901
889
  Examples:
902
890
  codex-kit global install --force
903
891
  codex-kit global configure --reasoning-effort low --plan-reasoning-effort high
904
- codex-kit project sync --cwd /path/to/project --force
892
+ codex-kit project sync --cwd /path/to/project
905
893
  codex-kit project status --cwd /path/to/project`);
906
894
  }
907
895
  async function main(argv = process.argv.slice(2)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iamdevlinph/codex-kit",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "Portable Codex subagents and project AGENTS.md defaults.",
5
5
  "type": "module",
6
6
  "bin": {