skillwiki 0.10.85 → 0.10.86
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.
|
@@ -181,7 +181,7 @@ snapshot_direct_s3_preflight() {
|
|
|
181
181
|
fi
|
|
182
182
|
SNAPSHOT_REMOTE_INVENTORY_READY=1
|
|
183
183
|
|
|
184
|
-
grep -vE '^(\.skillwiki/|\.claude/|\.obsidian/|\.antigravitycli/|\.playwright-cli/|raw/\._\.DS_Store$|\._\.DS_Store$)' "$direct_paths" | LC_ALL=C sort -u > "$direct_notes" || true
|
|
184
|
+
grep -vE '^(\.skillwiki/|\.claude/|\.obsidian/|\.antigravitycli/|\.playwright-cli/|\.superpowers/|raw/\._\.DS_Store$|\._\.DS_Store$)' "$direct_paths" | LC_ALL=C sort -u > "$direct_notes" || true
|
|
185
185
|
(
|
|
186
186
|
cd "$SNAPSHOT_WORKTREE" || exit 1
|
|
187
187
|
if git rev-parse --verify --quiet origin/main >/dev/null 2>&1; then
|
|
@@ -504,6 +504,20 @@ snapshot_live_projection_matches_frozen() {
|
|
|
504
504
|
return 0
|
|
505
505
|
}
|
|
506
506
|
|
|
507
|
+
snapshot_projection_log_is_store_ahead() {
|
|
508
|
+
local freeze="${1:-}"
|
|
509
|
+
local remote="${2:-}"
|
|
510
|
+
local freeze_bytes remote_bytes
|
|
511
|
+
[ -f "$freeze" ] && [ -f "$remote" ] || return 1
|
|
512
|
+
freeze_bytes="$(wc -c < "$freeze" | tr -d ' ')"
|
|
513
|
+
remote_bytes="$(wc -c < "$remote" | tr -d ' ')"
|
|
514
|
+
case "$freeze_bytes" in ''|*[!0-9]*) return 1 ;; esac
|
|
515
|
+
case "$remote_bytes" in ''|*[!0-9]*) return 1 ;; esac
|
|
516
|
+
[ "$freeze_bytes" -gt 0 ] || return 1
|
|
517
|
+
[ "$remote_bytes" -gt "$freeze_bytes" ] || return 1
|
|
518
|
+
head -c "$freeze_bytes" "$remote" | cmp -s "$freeze" -
|
|
519
|
+
}
|
|
520
|
+
|
|
507
521
|
snapshot_wait_for_direct_projection_parity() {
|
|
508
522
|
if [ -z "$PROJECTION_STATE_DIR" ]; then
|
|
509
523
|
# Test-only skip path above. Production always has frozen state.
|
|
@@ -545,6 +559,19 @@ snapshot_wait_for_direct_projection_parity() {
|
|
|
545
559
|
log "projection direct-store parity confirmed attempts=$attempts expected_index_sha256=$PROJECTION_EXPECTED_INDEX_SHA256 live_index_sha256=$PROJECTION_EXPECTED_INDEX_SHA256 remote_index_sha256=$remote_index_sha expected_log_sha256=$PROJECTION_EXPECTED_LOG_SHA256 live_log_sha256=$PROJECTION_EXPECTED_LOG_SHA256 remote_log_sha256=$remote_log_sha"
|
|
546
560
|
return 0
|
|
547
561
|
fi
|
|
562
|
+
if cmp -s "$PROJECTION_STATE_DIR/expected-index.md" "$remote_index" \
|
|
563
|
+
&& snapshot_projection_log_is_store_ahead "$PROJECTION_STATE_DIR/expected-log.md" "$remote_log"; then
|
|
564
|
+
if ! cp "$remote_index" "$PROJECTION_STATE_DIR/expected-index.md" \
|
|
565
|
+
|| ! cp "$remote_log" "$PROJECTION_STATE_DIR/expected-log.md"; then
|
|
566
|
+
log "ERROR: could not adopt store-ahead projection bytes"
|
|
567
|
+
return 1
|
|
568
|
+
fi
|
|
569
|
+
snapshot_record_projection_expectation_hashes || return 1
|
|
570
|
+
remote_index_sha="$(snapshot_projection_hash_file "$remote_index" 2>/dev/null || echo unavailable)"
|
|
571
|
+
remote_log_sha="$(snapshot_projection_hash_file "$remote_log" 2>/dev/null || echo unavailable)"
|
|
572
|
+
log "projection store-ahead log accepted attempts=$attempts expected_index_sha256=$PROJECTION_EXPECTED_INDEX_SHA256 remote_index_sha256=$remote_index_sha expected_log_sha256=$PROJECTION_EXPECTED_LOG_SHA256 remote_log_sha256=$remote_log_sha"
|
|
573
|
+
return 0
|
|
574
|
+
fi
|
|
548
575
|
fi
|
|
549
576
|
|
|
550
577
|
now="$(date +%s)"
|
|
@@ -874,6 +901,7 @@ RCLONE_OPTS=(
|
|
|
874
901
|
--exclude ".claude/**"
|
|
875
902
|
--exclude ".antigravitycli/**"
|
|
876
903
|
--exclude ".playwright-cli/**"
|
|
904
|
+
--exclude ".superpowers/**"
|
|
877
905
|
--exclude "._*"
|
|
878
906
|
--exclude ".conflict*"
|
|
879
907
|
--exclude "*.conflict-*"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.86",
|
|
4
4
|
"skills": "./",
|
|
5
5
|
"description": "Project-aware Karpathy-style knowledge base for Claude Code: 21 prompt-only skills (wiki-*, proj-*, using-skillwiki, skillwiki-mcp) backed by the deterministic `skillwiki` CLI.",
|
|
6
6
|
"author": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillwiki",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.86",
|
|
4
4
|
"description": "Project-aware Karpathy-style knowledge base: 21 prompt-only skills (wiki-*, proj-*, using-skillwiki, skillwiki-mcp) backed by HTTP MCP wiki_capture.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "karlorz"
|