Marketplace: container sync script and its tests

Constant POSIX sh + jq script (embedded via include_str!) that applies the
payload into ~/.claude, tracks ownership in state.json, never overwrites
user-owned files, merges hook entries surgically, drives claude plugin and
prints a JSON SyncReport. Also: settings.json kept 0600 (pre-flight N11),
payloads containing symlinks are refused, slugs parsed via @tsv.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-09-27 09:17:23 -07:00
co-authored by Claude Opus 5.5
parent 51490a534e
commit b73067019f
4 changed files with 947 additions and 0 deletions
+4
View File
@@ -3,4 +3,8 @@
pub mod auth;
pub mod catalog;
pub mod git;
pub mod sync;
pub mod tree;
#[cfg(test)]
mod sync_script_tests;