sinapse-ai 7.7.1 → 7.7.3
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/.claude/CLAUDE.md +1 -0
- package/.claude/hooks/enforce-git-push-authority.sh +34 -2
- package/.claude/rules/safe-collaboration.md +173 -0
- package/.sinapse-ai/constitution.md +33 -1
- package/.sinapse-ai/core/doctor/checks/constitution-consistency.js +1 -0
- package/.sinapse-ai/core/health-check/checks/project/constitution-consistency.js +1 -0
- package/.sinapse-ai/data/entity-registry.yaml +785 -796
- package/.sinapse-ai/data/registry-update-log.jsonl +6 -0
- package/.sinapse-ai/infrastructure/templates/safe-collab/CODEOWNERS.template +16 -0
- package/.sinapse-ai/infrastructure/templates/safe-collab/README.md +66 -0
- package/.sinapse-ai/infrastructure/templates/safe-collab/apply.sh +85 -0
- package/.sinapse-ai/infrastructure/templates/safe-collab/parallel-workflow-guide.md +55 -0
- package/.sinapse-ai/infrastructure/templates/safe-collab/pull_request_template.md +11 -0
- package/.sinapse-ai/infrastructure/templates/safe-collab/safe-collaboration-rule.md +93 -0
- package/.sinapse-ai/install-manifest.yaml +35 -11
- package/.sinapse-ai/product/templates/ide-rules/claude-rules.md +1 -0
- package/docs/ORQX-PLAN.md +3 -2
- package/docs/getting-started.md +2 -2
- package/docs/guides/parallel-workflow.md +104 -0
- package/docs/guides/workflows/xref-phase2-templates.md +1 -1
- package/docs/guides/workflows/xref-phase4-infra.md +0 -1
- package/docs/pt/ide-integration.md +15 -45
- package/package.json +1 -1
- package/packages/installer/src/config/templates/core-config-template.js +1 -1
- package/packages/installer/src/wizard/ide-config-generator.js +2 -96
- package/packages/installer/src/wizard/index.js +0 -32
- package/scripts/ensure-manifest.js +9 -0
|
@@ -551,3 +551,9 @@
|
|
|
551
551
|
{"timestamp":"2026-03-30T18:05:54.953Z","action":"change","path":".sinapse-ai/development/tasks/dev-develop-story.md","trigger":"watcher"}
|
|
552
552
|
{"timestamp":"2026-03-30T18:05:54.953Z","action":"change","path":".sinapse-ai/development/tasks/health-check.yaml","trigger":"watcher"}
|
|
553
553
|
{"timestamp":"2026-03-30T18:05:54.953Z","action":"change","path":".sinapse-ai/product/templates/ide-rules/claude-rules.md","trigger":"watcher"}
|
|
554
|
+
{"timestamp":"2026-04-02T01:14:38.759Z","action":"change","path":".sinapse-ai/core/doctor/checks/constitution-consistency.js","trigger":"watcher"}
|
|
555
|
+
{"timestamp":"2026-04-02T01:14:38.761Z","action":"change","path":".sinapse-ai/core/health-check/checks/project/constitution-consistency.js","trigger":"watcher"}
|
|
556
|
+
{"timestamp":"2026-04-02T01:14:38.762Z","action":"change","path":".sinapse-ai/product/templates/ide-rules/claude-rules.md","trigger":"watcher"}
|
|
557
|
+
{"timestamp":"2026-04-02T01:18:15.933Z","action":"change","path":".sinapse-ai/core/doctor/checks/constitution-consistency.js","trigger":"watcher"}
|
|
558
|
+
{"timestamp":"2026-04-02T01:18:15.934Z","action":"change","path":".sinapse-ai/core/health-check/checks/project/constitution-consistency.js","trigger":"watcher"}
|
|
559
|
+
{"timestamp":"2026-04-02T01:18:15.934Z","action":"change","path":".sinapse-ai/product/templates/ide-rules/claude-rules.md","trigger":"watcher"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Code Owners — {{PROJECT_NAME}}
|
|
2
|
+
# All PRs require approval from an owner before merge.
|
|
3
|
+
|
|
4
|
+
# Default: all files require owner review
|
|
5
|
+
* @{{OWNER_GITHUB}} @{{COLLAB_GITHUB}}
|
|
6
|
+
|
|
7
|
+
# Critical paths (framework, config, CI/CD)
|
|
8
|
+
.sinapse-ai/ @{{OWNER_GITHUB}}
|
|
9
|
+
.claude/ @{{OWNER_GITHUB}}
|
|
10
|
+
.github/ @{{OWNER_GITHUB}}
|
|
11
|
+
package.json @{{OWNER_GITHUB}}
|
|
12
|
+
|
|
13
|
+
# Security-sensitive
|
|
14
|
+
.env* @{{OWNER_GITHUB}}
|
|
15
|
+
*.config.js @{{OWNER_GITHUB}}
|
|
16
|
+
*.config.ts @{{OWNER_GITHUB}}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# Safe Collaboration Template
|
|
2
|
+
|
|
3
|
+
Template reutilizavel para configurar colaboracao segura em qualquer projeto.
|
|
4
|
+
|
|
5
|
+
## Uso rapido
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
bash apply.sh <projeto> <owner-github> <collab-github> [prefix1] [prefix2]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Exemplo
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
bash .sinapse-ai/infrastructure/templates/safe-collab/apply.sh \
|
|
15
|
+
/path/to/meu-projeto \
|
|
16
|
+
caioimori \
|
|
17
|
+
Matheus-soier \
|
|
18
|
+
caio \
|
|
19
|
+
soier
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Isso cria automaticamente:
|
|
23
|
+
- `.claude/rules/safe-collaboration.md` — regras para agentes
|
|
24
|
+
- `.github/PULL_REQUEST_TEMPLATE.md` — template simplificado de PR
|
|
25
|
+
- `.github/CODEOWNERS` — code owners configurado
|
|
26
|
+
- `docs/guides/parallel-workflow.md` — guia para equipe
|
|
27
|
+
- Atualiza `.gitignore` com patterns de runtime
|
|
28
|
+
|
|
29
|
+
## Configuracao manual no GitHub
|
|
30
|
+
|
|
31
|
+
Apos rodar o script, configure no repositorio:
|
|
32
|
+
|
|
33
|
+
1. **Settings > Rules > Rulesets > New ruleset** (target: `main`)
|
|
34
|
+
- Block direct pushes
|
|
35
|
+
- Require 1 PR approval
|
|
36
|
+
- Block force pushes
|
|
37
|
+
- Block branch deletion
|
|
38
|
+
- Dismiss stale reviews
|
|
39
|
+
|
|
40
|
+
2. **Settings > Collaborators**
|
|
41
|
+
- Adicionar membros com permissao `Write` (nunca Admin)
|
|
42
|
+
|
|
43
|
+
3. **Settings > General**
|
|
44
|
+
- Marcar "Automatically delete head branches"
|
|
45
|
+
|
|
46
|
+
## Arquivos incluidos
|
|
47
|
+
|
|
48
|
+
| Arquivo | Proposito |
|
|
49
|
+
|---------|-----------|
|
|
50
|
+
| `apply.sh` | Script de aplicacao automatica |
|
|
51
|
+
| `safe-collaboration-rule.md` | Regra para `.claude/rules/` |
|
|
52
|
+
| `parallel-workflow-guide.md` | Guia para equipe |
|
|
53
|
+
| `CODEOWNERS.template` | Template de code owners |
|
|
54
|
+
| `pull_request_template.md` | PR template simplificado |
|
|
55
|
+
|
|
56
|
+
## Placeholders
|
|
57
|
+
|
|
58
|
+
| Placeholder | Descricao | Exemplo |
|
|
59
|
+
|-------------|-----------|---------|
|
|
60
|
+
| `{{USER_1}}` | Nome do usuario 1 | Caio |
|
|
61
|
+
| `{{USER_2}}` | Nome do usuario 2 | Matheus |
|
|
62
|
+
| `{{user1}}` | Prefixo de branch user 1 | caio |
|
|
63
|
+
| `{{user2}}` | Prefixo de branch user 2 | soier |
|
|
64
|
+
| `{{OWNER_GITHUB}}` | Username GitHub do owner | caioimori |
|
|
65
|
+
| `{{COLLAB_GITHUB}}` | Username GitHub do collab | Matheus-soier |
|
|
66
|
+
| `{{PROJECT_NAME}}` | Nome do projeto | meu-projeto |
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# apply.sh — Apply safe-collab template to a target project
|
|
3
|
+
# Usage: bash apply.sh <target-dir> <owner-github> <collab-github> [user1-prefix] [user2-prefix]
|
|
4
|
+
#
|
|
5
|
+
# Example:
|
|
6
|
+
# bash apply.sh /path/to/my-project caioimori Matheus-soier caio soier
|
|
7
|
+
|
|
8
|
+
set -e
|
|
9
|
+
|
|
10
|
+
TARGET="${1:?Usage: bash apply.sh <target-dir> <owner-github> <collab-github> [user1] [user2]}"
|
|
11
|
+
OWNER="${2:?Missing owner GitHub username}"
|
|
12
|
+
COLLAB="${3:?Missing collaborator GitHub username}"
|
|
13
|
+
USER1="${4:-dev1}"
|
|
14
|
+
USER2="${5:-dev2}"
|
|
15
|
+
|
|
16
|
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
17
|
+
|
|
18
|
+
echo "=== Safe Collaboration Setup ==="
|
|
19
|
+
echo "Target: $TARGET"
|
|
20
|
+
echo "Owner: @$OWNER"
|
|
21
|
+
echo "Collaborator: @$COLLAB"
|
|
22
|
+
echo "Branch prefixes: $USER1/, $USER2/"
|
|
23
|
+
echo ""
|
|
24
|
+
|
|
25
|
+
# Create directories
|
|
26
|
+
mkdir -p "$TARGET/.claude/rules"
|
|
27
|
+
mkdir -p "$TARGET/.github"
|
|
28
|
+
mkdir -p "$TARGET/docs/guides"
|
|
29
|
+
|
|
30
|
+
# Copy and customize rule file
|
|
31
|
+
sed -e "s/{{USER_1}}/$USER1/g" \
|
|
32
|
+
-e "s/{{USER_2}}/$USER2/g" \
|
|
33
|
+
-e "s/{{user1}}/$USER1/g" \
|
|
34
|
+
-e "s/{{user2}}/$USER2/g" \
|
|
35
|
+
"$SCRIPT_DIR/safe-collaboration-rule.md" > "$TARGET/.claude/rules/safe-collaboration.md"
|
|
36
|
+
echo "[OK] .claude/rules/safe-collaboration.md"
|
|
37
|
+
|
|
38
|
+
# Copy PR template
|
|
39
|
+
cp "$SCRIPT_DIR/pull_request_template.md" "$TARGET/.github/PULL_REQUEST_TEMPLATE.md"
|
|
40
|
+
echo "[OK] .github/PULL_REQUEST_TEMPLATE.md"
|
|
41
|
+
|
|
42
|
+
# Copy and customize CODEOWNERS
|
|
43
|
+
sed -e "s/{{PROJECT_NAME}}/$(basename "$TARGET")/g" \
|
|
44
|
+
-e "s/{{OWNER_GITHUB}}/$OWNER/g" \
|
|
45
|
+
-e "s/{{COLLAB_GITHUB}}/$COLLAB/g" \
|
|
46
|
+
"$SCRIPT_DIR/CODEOWNERS.template" > "$TARGET/.github/CODEOWNERS"
|
|
47
|
+
echo "[OK] .github/CODEOWNERS"
|
|
48
|
+
|
|
49
|
+
# Copy workflow guide
|
|
50
|
+
cp "$SCRIPT_DIR/parallel-workflow-guide.md" "$TARGET/docs/guides/parallel-workflow.md"
|
|
51
|
+
echo "[OK] docs/guides/parallel-workflow.md"
|
|
52
|
+
|
|
53
|
+
# Add runtime patterns to .gitignore if not already present
|
|
54
|
+
GITIGNORE="$TARGET/.gitignore"
|
|
55
|
+
if [ -f "$GITIGNORE" ]; then
|
|
56
|
+
if ! grep -q '.sinapse-ai/.cache/' "$GITIGNORE" 2>/dev/null; then
|
|
57
|
+
echo "" >> "$GITIGNORE"
|
|
58
|
+
echo "# SINAPSE runtime artifacts" >> "$GITIGNORE"
|
|
59
|
+
echo ".sinapse-ai/.cache/" >> "$GITIGNORE"
|
|
60
|
+
echo ".sinapse-ai/.tmp/" >> "$GITIGNORE"
|
|
61
|
+
echo "[OK] .gitignore updated"
|
|
62
|
+
else
|
|
63
|
+
echo "[OK] .gitignore already has runtime patterns"
|
|
64
|
+
fi
|
|
65
|
+
else
|
|
66
|
+
echo "[SKIP] No .gitignore found"
|
|
67
|
+
fi
|
|
68
|
+
|
|
69
|
+
echo ""
|
|
70
|
+
echo "=== Files applied. Now configure GitHub: ==="
|
|
71
|
+
echo ""
|
|
72
|
+
echo "1. Settings > Rules > Rulesets > New ruleset (target: main)"
|
|
73
|
+
echo " - Block direct pushes"
|
|
74
|
+
echo " - Require 1 PR approval"
|
|
75
|
+
echo " - Block force pushes"
|
|
76
|
+
echo " - Block branch deletion"
|
|
77
|
+
echo " - Dismiss stale reviews"
|
|
78
|
+
echo ""
|
|
79
|
+
echo "2. Settings > Collaborators"
|
|
80
|
+
echo " - Add @$COLLAB with Write permission"
|
|
81
|
+
echo ""
|
|
82
|
+
echo "3. Settings > General"
|
|
83
|
+
echo " - Check 'Automatically delete head branches'"
|
|
84
|
+
echo ""
|
|
85
|
+
echo "Done. Safe collaboration is ready."
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Trabalhando em Paralelo — Guia para a Equipe
|
|
2
|
+
|
|
3
|
+
## TL;DR
|
|
4
|
+
|
|
5
|
+
Voces focam no codigo. O Claude Code cuida do git.
|
|
6
|
+
|
|
7
|
+
## Glossario
|
|
8
|
+
|
|
9
|
+
| Termo | Significado |
|
|
10
|
+
|-------|-------------|
|
|
11
|
+
| **main** | Versao oficial do projeto. Ninguem mexe direto. |
|
|
12
|
+
| **branch** | Copia temporaria onde voce trabalha com seguranca. |
|
|
13
|
+
| **PR** | Pedido para o outro revisar suas mudancas. |
|
|
14
|
+
| **merge** | Juntar mudancas no main apos aprovacao. |
|
|
15
|
+
| **conflito** | Dois mexeram no mesmo trecho. O agente resolve. |
|
|
16
|
+
|
|
17
|
+
## Fluxo
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
Voce pede → Agente cria area segura → Trabalha → Agente salva
|
|
21
|
+
→ Envia para revisao → Outro aprova → Vai pro main
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## O que voce FAZ
|
|
25
|
+
|
|
26
|
+
1. Abrir o Claude Code
|
|
27
|
+
2. Pedir o que quer fazer
|
|
28
|
+
3. Revisar o que mudou
|
|
29
|
+
4. Aprovar mudancas do outro no GitHub
|
|
30
|
+
|
|
31
|
+
## Regras
|
|
32
|
+
|
|
33
|
+
1. **Dividam areas** — combinem quem mexe onde
|
|
34
|
+
2. **Mudancas pequenas** — enviem todo dia, nao acumulem
|
|
35
|
+
3. **Atualizem no inicio** — diga "sincroniza e cria branch para [tarefa]"
|
|
36
|
+
4. **Nunca trabalhem no main** — sempre em branch
|
|
37
|
+
5. **Avisem antes de mexer na area do outro**
|
|
38
|
+
|
|
39
|
+
## Se algo der errado
|
|
40
|
+
|
|
41
|
+
| Problema | Solucao |
|
|
42
|
+
|----------|---------|
|
|
43
|
+
| Codigo sumiu | Nada some. Peca ao agente recuperar. |
|
|
44
|
+
| Conflito | Agente resolve. Mostra as versoes. |
|
|
45
|
+
| Push rejeitado | Agente atualiza e tenta de novo. |
|
|
46
|
+
| PR com problema | Agente corrige e reenvia. |
|
|
47
|
+
|
|
48
|
+
## Aprovando PRs
|
|
49
|
+
|
|
50
|
+
1. GitHub > Pull requests
|
|
51
|
+
2. Clique na PR
|
|
52
|
+
3. Review changes > Approve > Submit
|
|
53
|
+
4. Squash and merge
|
|
54
|
+
|
|
55
|
+
Branch e apagada automaticamente.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## O que mudou?
|
|
2
|
+
<!-- Descreva brevemente o que essa PR faz -->
|
|
3
|
+
|
|
4
|
+
## Por que?
|
|
5
|
+
<!-- Link para issue/story ou explique o motivo -->
|
|
6
|
+
|
|
7
|
+
## Checklist
|
|
8
|
+
- [ ] Testei localmente
|
|
9
|
+
- [ ] Sem erros ou warnings novos
|
|
10
|
+
- [ ] Nao modifiquei arquivos em .sinapse-ai/ ou .claude/ (a menos que fosse necessario)
|
|
11
|
+
- [ ] Nao tem senhas, tokens ou chaves no codigo
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# Safe Collaboration — Git Safety Net (NON-NEGOTIABLE)
|
|
2
|
+
|
|
3
|
+
> **Applies to ALL agents in this project.**
|
|
4
|
+
> Users are product builders, NOT git experts.
|
|
5
|
+
> Agents MUST handle ALL git complexity automatically and safely.
|
|
6
|
+
|
|
7
|
+
## Golden Rule
|
|
8
|
+
|
|
9
|
+
**Users focus on WHAT to build. Agents handle HOW to save and share it safely.**
|
|
10
|
+
|
|
11
|
+
Users should NEVER need to:
|
|
12
|
+
- Resolve merge conflicts manually
|
|
13
|
+
- Decide which branch to use
|
|
14
|
+
- Remember to pull before working
|
|
15
|
+
- Worry about overwriting each other's code
|
|
16
|
+
|
|
17
|
+
## Session Start — Auto-Sync (MANDATORY)
|
|
18
|
+
|
|
19
|
+
Before ANY work begins, the agent MUST:
|
|
20
|
+
1. `git fetch origin`
|
|
21
|
+
2. Check if local main is behind origin/main
|
|
22
|
+
3. If behind: `git pull origin main` (fast-forward only)
|
|
23
|
+
4. If diverged: STOP, inform user, resolve safely
|
|
24
|
+
5. Create work branch if not already on one
|
|
25
|
+
6. NEVER start work on `main` directly
|
|
26
|
+
|
|
27
|
+
## Branch Naming — Automatic
|
|
28
|
+
|
|
29
|
+
| Who | Pattern | Example |
|
|
30
|
+
|-----|---------|---------|
|
|
31
|
+
| {{USER_1}} | `{{user1}}/{type}/{desc}` | `{{user1}}/feat/new-feature` |
|
|
32
|
+
| {{USER_2}} | `{{user2}}/{type}/{desc}` | `{{user2}}/fix/bug-fix` |
|
|
33
|
+
|
|
34
|
+
Types: `feat`, `fix`, `refactor`, `docs`, `chore`, `test`
|
|
35
|
+
|
|
36
|
+
**User Detection (priority order):**
|
|
37
|
+
1. `git config user.name` -> lookup in mapping table (case-insensitive)
|
|
38
|
+
2. `$USERNAME` (Windows) or `$USER` (Unix) -> lookup
|
|
39
|
+
3. Fallback: `dev/`
|
|
40
|
+
|
|
41
|
+
| git config / env contains | Branch prefix |
|
|
42
|
+
|----------------------------|---------------|
|
|
43
|
+
| {{user1}} (case-insensitive) | `{{user1}}/` |
|
|
44
|
+
| {{user2}} (case-insensitive) | `{{user2}}/` |
|
|
45
|
+
| (anything else) | `dev/` |
|
|
46
|
+
|
|
47
|
+
## Before Every Commit — Safety Checks
|
|
48
|
+
|
|
49
|
+
1. `git status` — verify only expected files changed
|
|
50
|
+
2. `git diff --stat` — show summary to user
|
|
51
|
+
3. SECRET SCAN — reject .env, API keys, tokens, passwords, private keys
|
|
52
|
+
4. Commit with conventional message
|
|
53
|
+
|
|
54
|
+
## Before Push — Conflict Prevention
|
|
55
|
+
|
|
56
|
+
1. `git fetch origin main`
|
|
57
|
+
2. `git merge origin/main --no-edit` (into feature branch)
|
|
58
|
+
3. If conflicts: agent resolves (simple: auto, complex: ask user)
|
|
59
|
+
4. Run tests after merge
|
|
60
|
+
5. Only then: push
|
|
61
|
+
|
|
62
|
+
## PR Creation — Automatic
|
|
63
|
+
|
|
64
|
+
1. `gh pr create` with clear title/description
|
|
65
|
+
2. Auto-assign other team member as reviewer
|
|
66
|
+
3. Inform user in simple language
|
|
67
|
+
|
|
68
|
+
## Conflict Resolution
|
|
69
|
+
|
|
70
|
+
| Scenario | Action |
|
|
71
|
+
|----------|--------|
|
|
72
|
+
| Same file, different sections | Auto-merge |
|
|
73
|
+
| Same file, same lines | Show both, ask user |
|
|
74
|
+
| package.json version | Take higher version |
|
|
75
|
+
| Generated files | Regenerate |
|
|
76
|
+
| Docs | Merge both (additive) |
|
|
77
|
+
|
|
78
|
+
## Destructive Operations — BLOCKED
|
|
79
|
+
|
|
80
|
+
These require EXPLICIT user confirmation:
|
|
81
|
+
- `git push --force` / `--force-with-lease`
|
|
82
|
+
- `git reset --hard`
|
|
83
|
+
- `git branch -D`
|
|
84
|
+
- `git clean -f`
|
|
85
|
+
|
|
86
|
+
## Anti-Patterns (FORBIDDEN)
|
|
87
|
+
|
|
88
|
+
- Working on `main` directly
|
|
89
|
+
- Pushing without PR
|
|
90
|
+
- Skipping `git fetch` at session start
|
|
91
|
+
- Using `--force` without confirmation
|
|
92
|
+
- Committing secrets
|
|
93
|
+
- Skipping tests after conflict resolution
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
# - SHA256 hashes for change detection
|
|
8
8
|
# - File types for categorization
|
|
9
9
|
#
|
|
10
|
-
version: 7.7.
|
|
11
|
-
generated_at: "2026-04-
|
|
10
|
+
version: 7.7.3
|
|
11
|
+
generated_at: "2026-04-02T01:44:04.986Z"
|
|
12
12
|
generator: scripts/generate-install-manifest.js
|
|
13
|
-
file_count:
|
|
13
|
+
file_count: 1113
|
|
14
14
|
files:
|
|
15
15
|
- path: cli/commands/config/index.js
|
|
16
16
|
hash: sha256:66f111eceef0f60fa0a8904add783b615d55b01d5fe36408623c3dd828e702f6
|
|
@@ -313,9 +313,9 @@ files:
|
|
|
313
313
|
type: core
|
|
314
314
|
size: 1724
|
|
315
315
|
- path: core/doctor/checks/constitution-consistency.js
|
|
316
|
-
hash: sha256:
|
|
316
|
+
hash: sha256:7d61a71fcc8eeaf139a9bea634dff99154441808e8411f4290ae5a34fa919951
|
|
317
317
|
type: core
|
|
318
|
-
size:
|
|
318
|
+
size: 3107
|
|
319
319
|
- path: core/doctor/checks/core-config.js
|
|
320
320
|
hash: sha256:5424528eefbc2f19213b30d00dcd96128acefdbb289c25712be844f0fbddb963
|
|
321
321
|
type: core
|
|
@@ -581,9 +581,9 @@ files:
|
|
|
581
581
|
type: core
|
|
582
582
|
size: 4733
|
|
583
583
|
- path: core/health-check/checks/project/constitution-consistency.js
|
|
584
|
-
hash: sha256:
|
|
584
|
+
hash: sha256:63f4aa67ac27b337d017c7b642b1e3554bd02554fa69e29b14ebb8922827b4b9
|
|
585
585
|
type: core
|
|
586
|
-
size:
|
|
586
|
+
size: 5960
|
|
587
587
|
- path: core/health-check/checks/project/dependencies.js
|
|
588
588
|
hash: sha256:a8f4d9fcadf5dc3274d8ed0605af6f25d6554b1a9b0d3e66c63d8ea4569c95b9
|
|
589
589
|
type: core
|
|
@@ -1237,9 +1237,9 @@ files:
|
|
|
1237
1237
|
type: data
|
|
1238
1238
|
size: 9586
|
|
1239
1239
|
- path: data/entity-registry.yaml
|
|
1240
|
-
hash: sha256:
|
|
1240
|
+
hash: sha256:17d002e1c7b1dc347bc369fd82b28a931babcb69f16efc9ac76eb484eaacc1a1
|
|
1241
1241
|
type: data
|
|
1242
|
-
size:
|
|
1242
|
+
size: 511993
|
|
1243
1243
|
- path: data/learned-patterns.yaml
|
|
1244
1244
|
hash: sha256:24ac0b160615583a0ff783d3da8af80b7f94191575d6db2054ec8e10a3f945dc
|
|
1245
1245
|
type: data
|
|
@@ -3508,6 +3508,30 @@ files:
|
|
|
3508
3508
|
hash: sha256:4c9b70cacde88097d53f9d4d6e2319f65cabf6a076047195cdcf949d9e949512
|
|
3509
3509
|
type: template
|
|
3510
3510
|
size: 5567
|
|
3511
|
+
- path: infrastructure/templates/safe-collab/apply.sh
|
|
3512
|
+
hash: sha256:1f9d39834ff301e3ee1adf1779fc3dd9e22bd12c9a603f8ff11d430c1328ed82
|
|
3513
|
+
type: template
|
|
3514
|
+
size: 2738
|
|
3515
|
+
- path: infrastructure/templates/safe-collab/CODEOWNERS.template
|
|
3516
|
+
hash: sha256:988d5f6e373df03913d84c11cc42af42917f702920059ef296b2b236be7387e8
|
|
3517
|
+
type: template
|
|
3518
|
+
size: 476
|
|
3519
|
+
- path: infrastructure/templates/safe-collab/parallel-workflow-guide.md
|
|
3520
|
+
hash: sha256:773473b226fe19eb5f6b9769f28c3388fba6f0700ca4c2bd80af9891f34dc433
|
|
3521
|
+
type: template
|
|
3522
|
+
size: 1485
|
|
3523
|
+
- path: infrastructure/templates/safe-collab/pull_request_template.md
|
|
3524
|
+
hash: sha256:1f07f6cb99640c15e11c685debd2dd66dc46ec4dce6a80ba3f1efdc3fb2e5bd7
|
|
3525
|
+
type: template
|
|
3526
|
+
size: 338
|
|
3527
|
+
- path: infrastructure/templates/safe-collab/README.md
|
|
3528
|
+
hash: sha256:53e1193eaf30b5a4d9a5d2c5f700b22a210515abb661baf2b5ebe056343806fe
|
|
3529
|
+
type: template
|
|
3530
|
+
size: 1958
|
|
3531
|
+
- path: infrastructure/templates/safe-collab/safe-collaboration-rule.md
|
|
3532
|
+
hash: sha256:9631681340fddc314080f9182b76ccfbb1ee3441d92ce181067e76cace960a5e
|
|
3533
|
+
type: template
|
|
3534
|
+
size: 2871
|
|
3511
3535
|
- path: infrastructure/templates/sinapse-sync.yaml.template
|
|
3512
3536
|
hash: sha256:36ada7873fcbd5bab225b528c7be39035a12fc156135cc82c73d75782d7c53a2
|
|
3513
3537
|
type: template
|
|
@@ -3929,9 +3953,9 @@ files:
|
|
|
3929
3953
|
type: template
|
|
3930
3954
|
size: 3691
|
|
3931
3955
|
- path: product/templates/ide-rules/claude-rules.md
|
|
3932
|
-
hash: sha256:
|
|
3956
|
+
hash: sha256:e82e8b6cc5c64791ba3a70ca728a920ce522d56e9a60dd0bb4ee76b9a150adf9
|
|
3933
3957
|
type: template
|
|
3934
|
-
size:
|
|
3958
|
+
size: 13341
|
|
3935
3959
|
- path: product/templates/ide-rules/codex-rules.md
|
|
3936
3960
|
hash: sha256:601ffec5e24ff5e247c25e4d61728167503722acc817a1b30fbd695182bed1bc
|
|
3937
3961
|
type: template
|
|
@@ -27,6 +27,7 @@ O SINAPSE possui uma **Constitution formal** com princípios inegociáveis e gat
|
|
|
27
27
|
| VI | Absolute Imports | SHOULD |
|
|
28
28
|
| VII | Ecosystem Metrics Accuracy | NON-NEGOTIABLE |
|
|
29
29
|
| VIII | Mandatory Delegation | NON-NEGOTIABLE |
|
|
30
|
+
| IX | Safe Collaboration | NON-NEGOTIABLE |
|
|
30
31
|
|
|
31
32
|
**Gates automáticos bloqueiam violações.** Consulte a Constitution para detalhes completos.
|
|
32
33
|
<!-- SINAPSE-MANAGED-END: constitution -->
|
package/docs/ORQX-PLAN.md
CHANGED
|
@@ -188,8 +188,9 @@ Pente fino em cada arquivo do framework. Zero assinaturas escondidas, zero easte
|
|
|
188
188
|
- [ ] `.github/workflows/` — actions com refs externas
|
|
189
189
|
- [ ] `scripts/` — automacoes com refs externas
|
|
190
190
|
- [ ] `packages/` — package.json internos (author, contributors, repository)
|
|
191
|
-
- [
|
|
192
|
-
- [
|
|
191
|
+
- [x] Git tags — verificar se alguma tag referencia AIOX (VERIFIED 2026-04-02: ZERO tags AIOX)
|
|
192
|
+
- [x] Git commit messages — verificar se tem refs problematicas (informativo, nao rewrite)
|
|
193
|
+
- [x] GitHub Issues/PRs/Labels/Milestones — VERIFIED 2026-04-02: 0 issues, 0 PRs, 0 AIOX labels, description=SINAPSE
|
|
193
194
|
|
|
194
195
|
### Pos-Audit
|
|
195
196
|
- [ ] Regenerar package-lock.json limpo (`npm install`)
|
package/docs/getting-started.md
CHANGED
|
@@ -39,7 +39,7 @@ cd my-first-project
|
|
|
39
39
|
- Claude Code: `/agent-name`
|
|
40
40
|
- Gemini CLI: `/sinapse-menu` then `/sinapse-<agent>`
|
|
41
41
|
- Codex CLI: `/skills` then `sinapse-<agent-id>`
|
|
42
|
-
- Cursor/Copilot
|
|
42
|
+
- Cursor/Copilot: follow constraints in `docs/ide-integration.md`
|
|
43
43
|
|
|
44
44
|
### Step 3: Validate first value
|
|
45
45
|
|
|
@@ -179,7 +179,7 @@ Summary:
|
|
|
179
179
|
| Codex CLI | Limited | `/skills` then `sinapse-<agent-id>` |
|
|
180
180
|
| Cursor | Limited | `@agent` + synced rules |
|
|
181
181
|
| GitHub Copilot | Limited | chat modes + repo instructions |
|
|
182
|
-
|
|
182
|
+
|
|
183
183
|
|
|
184
184
|
- **Works**: fully recommended for new users.
|
|
185
185
|
- **Limited**: usable with documented workarounds.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Trabalhando em Paralelo — Guia para Caio e Matheus
|
|
2
|
+
|
|
3
|
+
## TL;DR
|
|
4
|
+
|
|
5
|
+
Voces focam no codigo. O Claude Code cuida do git.
|
|
6
|
+
|
|
7
|
+
## Glossario rapido
|
|
8
|
+
|
|
9
|
+
| Termo | O que significa |
|
|
10
|
+
|-------|----------------|
|
|
11
|
+
| **main** | A versao "oficial" do projeto. Ninguem mexe direto nela. |
|
|
12
|
+
| **branch** | Uma copia temporaria onde voce trabalha sem afetar o main. |
|
|
13
|
+
| **PR (Pull Request)** | Um pedido para o outro revisar e aprovar suas mudancas. |
|
|
14
|
+
| **merge** | Juntar suas mudancas de volta no main apos aprovacao. |
|
|
15
|
+
| **conflito** | Quando dois mexeram no mesmo trecho. O agente resolve. |
|
|
16
|
+
|
|
17
|
+
## Como funciona
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
Voce pede algo → Agente cria area segura → Voce trabalha → Agente salva
|
|
21
|
+
→ Agente envia para revisao → Outro aprova → Mudancas vao pro main
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## O que voce FAZ
|
|
25
|
+
|
|
26
|
+
1. **Abrir o Claude Code** no projeto
|
|
27
|
+
2. **Pedir o que quer fazer** ("otimiza tal agent", "melhora o installer", etc)
|
|
28
|
+
3. **Revisar o que o agente fez** (ele mostra o que mudou)
|
|
29
|
+
4. **Aprovar mudancas do outro** no GitHub quando pedir
|
|
30
|
+
|
|
31
|
+
## O que voce NAO precisa fazer
|
|
32
|
+
|
|
33
|
+
- Criar branches (o agente cria)
|
|
34
|
+
- Resolver conflitos (o agente resolve)
|
|
35
|
+
- Lembrar de atualizar o projeto (o agente faz no inicio)
|
|
36
|
+
- Escrever mensagens de commit (o agente escreve)
|
|
37
|
+
- Saber comandos git (o agente sabe)
|
|
38
|
+
|
|
39
|
+
## Regra #1: Dividam as areas
|
|
40
|
+
|
|
41
|
+
Para evitar que os dois mexam no mesmo arquivo ao mesmo tempo:
|
|
42
|
+
|
|
43
|
+
| Area | Responsavel |
|
|
44
|
+
|------|-------------|
|
|
45
|
+
| Installer, CLI, hooks | Caio |
|
|
46
|
+
| Squads, agents, tasks | Matheus |
|
|
47
|
+
| Docs, stories | Quem estiver trabalhando naquela feature |
|
|
48
|
+
| Tests | Quem escreveu o codigo |
|
|
49
|
+
|
|
50
|
+
Se precisar mexer na area do outro: **avisem antes no WhatsApp/Discord**.
|
|
51
|
+
|
|
52
|
+
## Regra #2: Mudancas pequenas e frequentes
|
|
53
|
+
|
|
54
|
+
- Uma PR por feature ou correcao
|
|
55
|
+
- Nao acumule 3 dias de trabalho — envie todo dia
|
|
56
|
+
- Mudanca pequena = revisao rapida = menos chance de conflito
|
|
57
|
+
|
|
58
|
+
## Regra #3: Atualizar no inicio do dia
|
|
59
|
+
|
|
60
|
+
Ao abrir o Claude Code, diga:
|
|
61
|
+
|
|
62
|
+
> "sincroniza e cria branch para [o que vou fazer]"
|
|
63
|
+
|
|
64
|
+
O agente atualiza tudo e cria uma area segura para trabalhar.
|
|
65
|
+
|
|
66
|
+
## NUNCA faca isso
|
|
67
|
+
|
|
68
|
+
- **Nunca trabalhe direto no main** — o GitHub bloqueia, mas se por algum motivo conseguir, PARE e avise
|
|
69
|
+
- **Nunca delete branches do outro** — so delete as suas
|
|
70
|
+
- **Nunca faca push sem antes pedir ao agente** — ele verifica conflitos antes
|
|
71
|
+
|
|
72
|
+
## Se algo der errado
|
|
73
|
+
|
|
74
|
+
| Problema | O que fazer |
|
|
75
|
+
|----------|-------------|
|
|
76
|
+
| "Meu codigo sumiu!" | Calma. Nada some no git. Peca ao agente: "recupera minhas mudancas" |
|
|
77
|
+
| "Deu conflito" | Peca ao agente: "resolve o conflito". Ele mostra as duas versoes e pergunta qual manter. |
|
|
78
|
+
| "Nao consigo enviar" | O main mudou. Peca ao agente: "atualiza minha branch e tenta de novo" |
|
|
79
|
+
| "A PR ta com problema" | Peca ao agente: "corrige a PR". Ele atualiza e reenvia. |
|
|
80
|
+
| "Fiz algo errado no main" | Peca ao agente: "desfaz a ultima mudanca no main". Ele sabe como reverter com seguranca. |
|
|
81
|
+
|
|
82
|
+
## Aprovando mudancas do outro (unica coisa manual)
|
|
83
|
+
|
|
84
|
+
1. Abra o GitHub do projeto na aba **Pull requests**
|
|
85
|
+
2. Clique na PR do outro
|
|
86
|
+
3. Leia o resumo do que mudou
|
|
87
|
+
4. Clique **Review changes**
|
|
88
|
+
5. Selecione **Approve**
|
|
89
|
+
6. Clique **Submit review**
|
|
90
|
+
7. Clique **Squash and merge** (junta tudo em uma mudanca limpa)
|
|
91
|
+
|
|
92
|
+
Pronto. A branch temporaria e apagada automaticamente.
|
|
93
|
+
|
|
94
|
+
## Dica: como pedir coisas ao agente
|
|
95
|
+
|
|
96
|
+
Em vez de comandos tecnicos, fale normalmente:
|
|
97
|
+
|
|
98
|
+
| Voce diz | O agente entende |
|
|
99
|
+
|----------|------------------|
|
|
100
|
+
| "salva meu trabalho" | git add + commit |
|
|
101
|
+
| "envia pro Soier revisar" | push + criar PR |
|
|
102
|
+
| "atualiza meu projeto" | git fetch + pull + merge |
|
|
103
|
+
| "o que o Caio mudou?" | git log + diff |
|
|
104
|
+
| "desfaz isso" | git revert (seguro) |
|
|
@@ -115,7 +115,7 @@ IDE-specific rule files generated during project setup. Referenced in service-re
|
|
|
115
115
|
|
|
116
116
|
| # | File | Consuming Task(s) | Consuming Agent(s) | Workflow(s) | Orphan? |
|
|
117
117
|
|---|------|--------------------|---------------------|-------------|---------|
|
|
118
|
-
|
|
118
|
+
|
|
119
119
|
| 2 | `claude-rules.md` | -- (service-registry, workers.csv) | -- | -- | **WEAK** |
|
|
120
120
|
| 4 | `copilot-rules.md` | -- (service-registry, workers.csv) | -- | -- | **WEAK** |
|
|
121
121
|
| 5 | `cursor-rules.md` | -- (service-registry, workers.csv) | -- | -- | **WEAK** |
|
|
@@ -126,7 +126,6 @@ These scripts exist in the scripts/ directory but are NOT part of the module's p
|
|
|
126
126
|
| 4 | `scripts/ide-sync/redirect-generator.js` | IDE Sync | Creates redirect files for deprecated agents | `fs-extra` | ide-sync/index.js | No |
|
|
127
127
|
| 5 | `scripts/ide-sync/transformers/claude-code.js` | IDE Sync | Transforms agent definitions for Claude Code | -- | ide-sync/index.js, tests | No |
|
|
128
128
|
| 6 | `scripts/ide-sync/transformers/cursor.js` | IDE Sync | Transforms agent definitions for Cursor IDE | -- | ide-sync/index.js, tests | No |
|
|
129
|
-
| 8 | `scripts/ide-sync/transformers/antigravity.js` | IDE Sync | Transforms agent definitions for Antigravity | -- | ide-sync/index.js, tests | No |
|
|
130
129
|
|
|
131
130
|
### 1.4 Documentation Integrity Sub-module (7 files)
|
|
132
131
|
|