Skip to content

Commit 37424c7

Browse files
chore: reorganize docs/ — gitignore internal, ship public docs in npm (#529)
* chore: reorganize docs/ — gitignore internal, add public docs to npm package Remove internal development artifacts from git tracking (stories, research, qa, epics, prd, decisions, architecture, agents, etc.) — they remain local only. Add public documentation (guides, installation, examples, translations) to package.json files array so they ship with npm install. Move hybridOps to docs/private/ (gitignored). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(hooks): silence stderr and add CLAUDE_PROJECT_DIR fallback - Replace console.error() with silent catch in synapse-engine.cjs and precompact-session-digest.cjs — stderr output triggers "hook error" banner in Claude Code UI even when hook exits cleanly (code 0) - Add ${CLAUDE_PROJECT_DIR:-.} bash parameter expansion fallback in .claude/settings.json hook commands — prevents MODULE_NOT_FOUND when env var is unset in subagents/agent-teams context Root cause: Claude Code shows "UserPromptSubmit hook error" when hook process emits ANY stderr output or returns non-zero exit code. The synapse/precompact hooks logged parse errors to stderr on invalid stdin (common during multi-instance race conditions). Additionally, $CLAUDE_PROJECT_DIR is not reliably set in subagent/teams contexts, causing hook commands to resolve to Git Bash install directory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(ci): add CODECOV_TOKEN to codecov-action upload step The codecov/codecov-action@v4 requires an explicit token for protected branches. Without it, uploads fail with "Token required" error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * fix(hooks): silent exit on error to prevent Claude Code UI noise Remove stderr logging from hook catch handlers — stderr output triggers "hook error" warnings in Claude Code UI. Update corresponding tests to expect silent exit behavior. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a8af431 commit 37424c7

File tree

214 files changed

+47
-62217
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+47
-62217
lines changed

.claude/hooks/precompact-session-digest.cjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ function run() {
9595
timer.unref();
9696
main()
9797
.then(() => safeExit(0))
98-
.catch((err) => {
99-
console.error(`[precompact-hook] ${err.message}`);
100-
safeExit(0); // Never block the compact operation
98+
.catch(() => {
99+
// Silent exit — stderr output triggers "hook error" in Claude Code UI
100+
safeExit(0);
101101
});
102102
}
103103

.claude/hooks/synapse-engine.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ function run() {
8888
timer.unref();
8989
main()
9090
.then(() => safeExit(0))
91-
.catch((err) => {
92-
console.error(`[synapse-hook] ${err.message}`);
91+
.catch(() => {
92+
// Silent exit — stderr output triggers "hook error" in Claude Code UI
9393
safeExit(0);
9494
});
9595
}

.claude/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"hooks": [
66
{
77
"type": "command",
8-
"command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/synapse-engine.cjs\"",
8+
"command": "node \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/synapse-engine.cjs\"",
99
"timeout": 10
1010
}
1111
]
@@ -17,7 +17,7 @@
1717
"hooks": [
1818
{
1919
"type": "command",
20-
"command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/code-intel-pretool.cjs\"",
20+
"command": "node \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/code-intel-pretool.cjs\"",
2121
"timeout": 10
2222
}
2323
]
@@ -28,7 +28,7 @@
2828
"hooks": [
2929
{
3030
"type": "command",
31-
"command": "node \"$CLAUDE_PROJECT_DIR/.claude/hooks/precompact-session-digest.cjs\"",
31+
"command": "node \"${CLAUDE_PROJECT_DIR:-.}/.claude/hooks/precompact-session-digest.cjs\"",
3232
"timeout": 10
3333
}
3434
]

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ jobs:
181181
uses: codecov/codecov-action@v4
182182
if: always()
183183
with:
184+
token: ${{ secrets.CODECOV_TOKEN }}
184185
files: ./coverage/lcov.info
185186
flags: unittests
186187
name: codecov-umbrella

.gitignore

Lines changed: 17 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -160,18 +160,8 @@ tests/*/__fixtures__/
160160
# UI/UX design artifacts
161161
docs/ui-prompts.pdf
162162

163-
# Keep these main planning documents (DO commit these)
164-
# docs/prd.md
165-
# docs/architecture.md
166-
# docs/front-end-spec.md
167-
# docs/project-brief.md
168-
# docs/epics/ - Epic definitions
169-
# docs/stories/ - Story files (v2.1, v2.2, etc)
170-
# docs/qa/ - QA gates and reports
171-
# docs/architecture/ - Architecture decisions and reviews
172-
# docs/decisions/ - Decision logs and learnings (except roundtables)
173-
# NOTE: docs/standards/ is IGNORED - contains proprietary methodology (see below)
174-
# NOTE: docs/one-pagers/ is IGNORED - contains internal business decisions (see below)
163+
# NOTE: docs/ internal directories are gitignored in the
164+
# "INTERNAL DOCS" section below. Only public docs ship.
175165

176166
# Windows reserved device names
177167
NUL
@@ -236,33 +226,26 @@ test-sample-*.md
236226
.eslintcache
237227

238228
# ============================================
239-
# PROPRIETARY/INTERNAL CONTENT (Story TD-5)
229+
# INTERNAL DOCS (not for GitHub or npm install)
240230
# ============================================
241-
# Content that is NOT part of the public aios-core framework
242-
# These are SynkraAI-specific methodologies and business documents
231+
# Development artifacts, internal strategy, and proprietary content.
232+
# These stay local only — not published to GitHub or npm.
243233

244-
# Proprietary Process Mapping Frameworks (Pedro Valério methodology)
245-
docs/standards/
246-
247-
# Internal Business Decisions and Strategy
248-
docs/one-pagers/
249-
250-
# Internal PRDs (product requirements - internal development plans)
251-
docs/prd/
252-
253-
# Internal Decisions (business strategy, architecture decisions)
254-
docs/decisions/
255-
256-
# Internal Development Stories (sprint backlogs, story tracking)
257-
# Users don't need development history - only documentation
258234
docs/stories/
259-
260-
# Internal QA Reports and Assessments
235+
docs/research/
261236
docs/qa/
262-
263-
# Internal Epics (roadmap, partner strategies, business plans)
264-
# Contains sensitive info: partner names, financials, timelines
265237
docs/epics/
238+
docs/prd/
239+
docs/decisions/
240+
docs/one-pagers/
241+
docs/strategy/
242+
docs/handoffs/
243+
docs/requirements/
244+
docs/releases/
245+
docs/standards/
246+
docs/architecture/
247+
docs/agents/
248+
docs/private/
266249

267250
# Squad Design Files (test artifacts)
268251
squads/.designs/
@@ -363,7 +346,6 @@ scripts/glue/
363346
.claude/agent-memory/
364347
.claude/setup/
365348
docs/guides/aios-workflows/
366-
docs/guides/glue-script-guide.md
367349

368350
# Local Gemini project rules generated/managed per workspace
369351
.gemini/rules.md

0 commit comments

Comments
 (0)