skillwiki 0.10.23 → 0.10.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.
@@ -100,44 +100,57 @@ acquire_pull_lock() {
100
100
  drop_or_preserve_untracked_remote_overlaps() {
101
101
  local removed=0
102
102
  local preserved=0
103
- local path remote_blob
104
- local collision_root backup_path backup_dir
103
+ local path remote_blob identical
104
+ local collision_root=""
105
+ local backup_path backup_dir
105
106
 
106
107
  while IFS= read -r -d '' path; do
107
- if ! git cat-file -e "$REMOTE/$BRANCH:$path" 2>/dev/null; then
108
+ if ! git cat-file -e "$TARGET_OID:$path" 2>/dev/null; then
108
109
  continue
109
110
  fi
110
111
 
111
112
  remote_blob="$(mktemp)"
112
- if git show "$REMOTE/$BRANCH:$path" >"$remote_blob" 2>/dev/null && cmp -s "$path" "$remote_blob"; then
113
+ identical=0
114
+ if git show "$TARGET_OID:$path" >"$remote_blob" 2>/dev/null && cmp -s "$path" "$remote_blob"; then
115
+ identical=1
116
+ fi
117
+ rm -f "$remote_blob"
118
+
119
+ if [ "$identical" -eq 1 ]; then
113
120
  if rm -f -- "$path"; then
114
121
  removed=$((removed + 1))
115
122
  else
116
- rm -f "$remote_blob"
117
123
  log "FAIL could not remove untracked remote duplicate before pull: $path"
118
124
  return 1
119
125
  fi
126
+ continue
127
+ fi
128
+
129
+ if [ -z "$collision_root" ]; then
130
+ collision_root="$(platform_cache_dir)/untracked-collisions/$(date -u +%Y%m%dT%H%M%SZ)-$$"
131
+ fi
132
+ backup_path="$collision_root/$path"
133
+ backup_dir="$(dirname "$backup_path")"
134
+ if ! mkdir -p "$backup_dir" || ! cp -p "$path" "$backup_path"; then
135
+ log "FAIL could not preserve divergent untracked remote overlap before pull: $path"
136
+ return 1
137
+ fi
138
+ if rm -f -- "$path"; then
139
+ preserved=$((preserved + 1))
140
+ log "PRESERVE divergent untracked remote overlap before pull: $path -> $backup_path"
120
141
  else
121
- rm -f "$remote_blob"
122
- if [ -z "${collision_root:-}" ]; then
123
- collision_root="$(platform_cache_dir)/untracked-collisions/$(date -u +%Y%m%dT%H%M%SZ)-$$"
124
- fi
125
- backup_path="$collision_root/$path"
126
- backup_dir="$(dirname "$backup_path")"
127
- if ! mkdir -p "$backup_dir" || ! cp -p "$path" "$backup_path"; then
128
- log "FAIL could not preserve divergent untracked remote overlap before pull: $path"
129
- return 1
130
- fi
131
- if rm -f -- "$path"; then
132
- preserved=$((preserved + 1))
133
- log "PRESERVE divergent untracked remote overlap before pull: $path -> $backup_path"
134
- else
135
- log "FAIL could not remove preserved divergent untracked remote overlap before pull: $path"
136
- return 1
137
- fi
142
+ log "FAIL could not remove preserved divergent untracked remote overlap before pull: $path"
143
+ return 1
138
144
  fi
139
- rm -f "$remote_blob"
140
- done < <(git ls-files --others --exclude-standard -z)
145
+ done < <(
146
+ git ls-files --others --exclude-standard -z
147
+ # `stash -u` excludes ignored paths. Protect only ignored typed-page
148
+ # Markdown, without sweeping unrelated ignored caches into the operation.
149
+ git ls-files --others --ignored --exclude-standard -z -- \
150
+ ':(glob)queries/**/*.md' \
151
+ ':(glob)concepts/**/*.md' \
152
+ ':(glob)entities/**/*.md'
153
+ )
141
154
 
142
155
  if [ "$removed" -gt 0 ]; then
143
156
  log "DROP $removed identical untracked remote duplicate(s) before pull"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.23",
3
+ "version": "0.10.25",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "skillwiki": "dist/cli.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.23",
3
+ "version": "0.10.25",
4
4
  "skills": "./",
5
5
  "description": "Project-aware Karpathy-style knowledge base for Claude Code: 19 prompt-only skills (wiki-*, proj-*, using-skillwiki) backed by the deterministic `skillwiki` CLI.",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skillwiki",
3
- "version": "0.10.23",
3
+ "version": "0.10.25",
4
4
  "description": "Project-aware Karpathy-style knowledge base for Codex with 19 prompt-only skills backed by the deterministic skillwiki CLI.",
5
5
  "author": {
6
6
  "name": "karlorz",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skillwiki/skills",
3
- "version": "0.10.23",
3
+ "version": "0.10.25",
4
4
  "private": true,
5
5
  "files": [
6
6
  "wiki-*",