youmd 0.8.24 → 0.8.25
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/package.json
CHANGED
|
@@ -35,8 +35,11 @@ log() { local ts; ts="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"; echo "[${ts}] $*"; echo
|
|
|
35
35
|
is_dry() { [ "${DRY_RUN}" -eq 1 ]; }
|
|
36
36
|
|
|
37
37
|
if [ ! -d "${AGENT_SHARED}/.git" ]; then
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
# Expected on a fresh machine: agent-shared hasn't been cloned/provisioned yet.
|
|
39
|
+
# It will be cloned later in this same sync pass, so skip capture quietly
|
|
40
|
+
# rather than erroring (nothing local to capture into it yet).
|
|
41
|
+
log "agent-shared not present yet — skipping capture (will be cloned this sync)."
|
|
42
|
+
exit 0
|
|
40
43
|
fi
|
|
41
44
|
|
|
42
45
|
# copy_in <src> <dest-subpath> — copy a file/dir into the staging dest if it exists
|
|
@@ -44,8 +44,10 @@ is_dry() { [ "${DRY_RUN}" -eq 1 ]; }
|
|
|
44
44
|
is_force() { [ "${FORCE}" -eq 1 ]; }
|
|
45
45
|
|
|
46
46
|
if [ ! -d "${AGENT_SHARED}/.git" ]; then
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
# Fresh machine: agent-shared not cloned/provisioned yet. Nothing to restore
|
|
48
|
+
# from yet — skip quietly instead of erroring (sync clones it this pass).
|
|
49
|
+
log "agent-shared not present yet — skipping restore (will be cloned this sync)."
|
|
50
|
+
exit 0
|
|
49
51
|
fi
|
|
50
52
|
|
|
51
53
|
if [ ! -d "${SRC}" ]; then
|
|
@@ -126,6 +126,12 @@ dirs_differ() {
|
|
|
126
126
|
# ---------------------------------------------------------------------------
|
|
127
127
|
mirror_loose_skills_to_repo() {
|
|
128
128
|
local skill name src dst
|
|
129
|
+
# On a fresh machine agent-shared isn't cloned yet; nothing to mirror INTO it.
|
|
130
|
+
# It gets cloned later this pass, then the reverse mirror populates ~/.claude.
|
|
131
|
+
if [ ! -d "${AGENT_SHARED}/.git" ]; then
|
|
132
|
+
log "Loose-skill mirror: agent-shared not present yet — skipping (will clone this sync)."
|
|
133
|
+
return 0
|
|
134
|
+
fi
|
|
129
135
|
log "--- Loose-skill mirror: ~/.claude/skills/ → ${AGENT_SHARED}/claude-skills/ ---"
|
|
130
136
|
|
|
131
137
|
for skill in ${LOOSE_SKILLS}; do
|