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:
@@ -0,0 +1,9 @@
|
||||
//! Pushes a project's marketplace payload into its container and runs the
|
||||
//! sync script there (spec §4).
|
||||
|
||||
/// Where the payload and the script are uploaded. Owned by `claude`.
|
||||
pub const INCOMING_DIR: &str = "/home/claude/.claude/triple-c/marketplace/incoming";
|
||||
|
||||
/// The sync script. Shipped with the app and uploaded on every sync, so a new
|
||||
/// app version reaches existing containers without an image migration.
|
||||
pub const SYNC_SCRIPT: &str = include_str!("sync.sh");
|
||||
Reference in New Issue
Block a user