chore: mark shell scripts executable so make/./scripts work on fresh clone - #14
Open
allenter wants to merge 3 commits into
Open
chore: mark shell scripts executable so make/./scripts work on fresh clone#14allenter wants to merge 3 commits into
allenter wants to merge 3 commits into
Conversation
Layer a zero-dependency, pure-Python vector memory store (memories/vault/) on top of the existing single-file consensus baton: - scripts/core/memory_vault.py: chunk consensus + docs, index into memories/vault/index.json (TF-IDF char n-grams + cosine similarity, no external deps), and semantic search with -top-k / min-score. Backend swappable: replace _embed_chunk() to plug in ChromaDB or a model embedding. - auto-loop.sh: each cycle auto-retrieves the top relevant historical blocks (keyed off Next Action) and injects them into the prompt as '## Highly-relevant past memory'; after a successful/soft-timeout cycle it indexes the latest consensus + docs into the vault. - .gitignore: ignore memories/vault/* runtime data. - Docs updated: README(EN/ZH), CLAUDE.md, PROMPT.md, INDEX.md. consensus.md remains the authoritative running-state baton; the vault adds long-term recall of decisions/context that consensus collapses.
Add a Memory Vault panel to the control deck: - server.py: new GET /api/vault endpoint. Reads memories/vault/index.json directly (no subprocess) and returns stats (chunk/source/term counts, size, last-indexed), per-source breakdown, latest entries, plus optional in-process cosine semantic search via ?q=. - app.js: fetchVault() renderer with stat cards, a canvas bar chart of chunks per source, latest-entry list, and a live semantic-search box (Enter or button) showing scored hits with source tags. - index.html: Memory Vault section between Consensus and Recent Log. - styles.css: dark-theme styles for stats, canvas, entries, tags. Pure stdlib on the server side; canvas drawn client-side.
…clone Every scripts/**/*.sh is committed with mode 100644, so a fresh `git clone` then `make start` fails with `permission denied: ./scripts/core/auto-loop.sh` — the README's quick-start path breaks unless the user manually chmods. Mark them executable (100755). Content is unchanged; this is a mode-only change across the 7 scripts (monitor/stop-loop/install-daemon/status-mac/install-wsl/uninstall-wsl/ wsl-daemon-status). auto-loop.sh and the new cost-monitor scripts carry their exec bits in their own feature/fix PRs. Verified: git ls-files -s shows 100755; diff is mode-only. Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR: chore: 恢复 shell 脚本可执行位(make start 直接运行)
问题描述
仓库中所有
scripts/**/*.sh均以100644(无执行位)提交。README / Makefile 大量使用./scripts/core/auto-loop.sh、./scripts/macos/install-daemon.sh等直接执行方式:全新
git clone后运行make start报:用户必须先
chmod +x才能启动,README 的快速开始流程直接失败。根因
.gitattributes中*.sh text eol=lf只控制换行符,未声明执行位;脚本以100644提交。修复
将以下脚本模式由
100644改为100755(auto-loop.sh与cost-monitor.sh/cost-alert.sh的 mode 已随各自功能 PR 提交,此处不重复):scripts/core/monitor.shscripts/core/stop-loop.shscripts/macos/install-daemon.shscripts/macos/status-mac.shscripts/wsl/install-wsl-daemon.shscripts/wsl/uninstall-wsl-daemon.shscripts/wsl/wsl-daemon-status.sh验证
git ls-files -s scripts/显示100755模式make start/./scripts/core/auto-loop.sh可直接运行git diff仅显示 mode 变更)变更文件
.sh脚本(仅文件模式)Co-Authored-By: Claude noreply@anthropic.com