cortex-sync 0.1.0
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/CHANGELOG.md +36 -0
- package/LICENSE +661 -0
- package/README.md +163 -0
- package/dist/cli.js +1090 -0
- package/package.json +47 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [0.1.0] - 2026-05-12
|
|
4
|
+
|
|
5
|
+
First public release.
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
**Sync**
|
|
10
|
+
- `cortex init` — configure storage backend, encryption email, passphrase, detect installed tools
|
|
11
|
+
- `cortex sync` — encrypt `~/.claude/` with AES-256-GCM and upload to configured storage
|
|
12
|
+
- `cortex pull` — download, decrypt, and restore files with automatic path remapping
|
|
13
|
+
- `cortex status` — show diff between local and remote without downloading anything
|
|
14
|
+
|
|
15
|
+
**Encryption**
|
|
16
|
+
- AES-256-GCM with PBKDF2 key derivation (600,000 iterations, SHA-256)
|
|
17
|
+
- Email-as-salt — unique key per user without storing the key anywhere
|
|
18
|
+
- Versionated binary format (`CTXP` magic + version byte) for future migrations
|
|
19
|
+
- Secret detection before upload (AWS, GitHub, Anthropic, Stripe, Google API, Slack, PEM keys)
|
|
20
|
+
|
|
21
|
+
**Path remapping**
|
|
22
|
+
- Project identification via git remote URL (primary) or first commit hash (fallback)
|
|
23
|
+
- Manual override via `cortex.json` in project root
|
|
24
|
+
- Persistent mappings in `~/.cortex/path-mappings.json`
|
|
25
|
+
- JSONL rewriter: rewrites only structural path fields (`cwd`, `filePath`, `file_path`, `file.filePath`); historical content (stdout, text responses, commands) is never modified
|
|
26
|
+
- EOL byte preservation per line (LF and CRLF)
|
|
27
|
+
|
|
28
|
+
**Storage backends**
|
|
29
|
+
- GitHub private repo via Personal Access Token — no OAuth app registration needed
|
|
30
|
+
- Local filesystem — works transparently with Dropbox, iCloud Drive, Syncthing, or any shared folder
|
|
31
|
+
|
|
32
|
+
**Skill conversion**
|
|
33
|
+
- `cortex convert <file> --to antigravity` — converts to `.agent/skills/<name>/SKILL.md`
|
|
34
|
+
- `cortex convert <file> --to cursor` — appends/replaces a named section in `.cursorrules`
|
|
35
|
+
- `cortex convert <file> --to all` — both targets in one run
|
|
36
|
+
- Anthropic API key: reads from `ANTHROPIC_API_KEY` env, encrypted `~/.cortex/api-key.enc`, or interactive prompt
|