toga-ai 1.0.7 → 1.0.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toga-ai",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "TOGA Technology Team Claude Knowledge System — shared AI coding harness with skills, knowledge base CLI, and project installer for Claude Code.",
5
5
  "keywords": [
6
6
  "claude",
@@ -100,32 +100,68 @@ report success on an inconsistent knowledge base.
100
100
 
101
101
  ## Step 7 — Auto-push to share with teammates
102
102
 
103
- After validate + index succeed, stage and push only `knowledge/` changes directly to
104
- `feature/ai-harness-improvements`. CI picks up the push and publishes a new npm version
105
- automatically — teammates get it on their next `npx toga-ai`.
103
+ After validate + index succeed, run through these checks in order before pushing.
104
+ **Never skip straight to the push the repo must be verified first.**
106
105
 
106
+ ### Pre-push checklist (run each check, stop at the first failure and fix it)
107
+
108
+ **Check 1 — Is TEAM_REPO a git repository?**
109
+ ```bash
110
+ git -C "<TEAM_REPO>" rev-parse --is-inside-work-tree
111
+ ```
112
+ If this fails: the team repo is an npm bundle extract, not a git clone. Run:
113
+ ```bash
114
+ git clone https://github.com/agilantsolutions/claude "<TEAM_REPO>"
115
+ ```
116
+ Then re-run validate + index inside the freshly cloned repo before continuing.
117
+
118
+ **Check 2 — Is origin set to the right remote?**
119
+ ```bash
120
+ git -C "<TEAM_REPO>" remote get-url origin
121
+ ```
122
+ Expected: `https://github.com/agilantsolutions/claude` (or the SSH equivalent).
123
+ If wrong or missing: `git -C "<TEAM_REPO>" remote set-url origin https://github.com/agilantsolutions/claude`
124
+
125
+ **Check 3 — Are the knowledge docs in TEAM_REPO, not just the project?**
126
+
127
+ The docs you wrote in Steps 5–6 must exist inside `<TEAM_REPO>/knowledge/`, not only
128
+ in `<project>/.claude/knowledge/`. If you wrote them to the project's `.claude/knowledge/`
129
+ but not to `<TEAM_REPO>/knowledge/`, copy them now:
107
130
  ```bash
108
- # Stage only knowledge/ never stage source code
131
+ # Example adjust paths to match what was written
132
+ cp "<project>/.claude/knowledge/<path-to-doc>" "<TEAM_REPO>/knowledge/<path-to-doc>"
133
+ ```
134
+ Then re-run `node "<TEAM_REPO>/knowledge.js" validate` to confirm they're valid there too.
135
+
136
+ **Check 4 — Are there actually staged changes to push?**
137
+ ```bash
138
+ git -C "<TEAM_REPO>" status --short knowledge/
139
+ ```
140
+ If nothing shows: the docs were never written to TEAM_REPO. Go back to Check 3.
141
+
142
+ ---
143
+
144
+ ### Push (only after all 4 checks pass)
145
+
146
+ ```bash
147
+ # Stage only knowledge/ — never stage anything else
109
148
  git -C "<TEAM_REPO>" add knowledge/
110
- git -C "<TEAM_REPO>" diff --cached --quiet || git -C "<TEAM_REPO>" commit -m "knowledge: <brief description of what was captured>"
149
+ git -C "<TEAM_REPO>" diff --cached --quiet || \
150
+ git -C "<TEAM_REPO>" commit -m "knowledge: <brief description of what was captured>"
111
151
 
112
- # Push directly to the active development branch
152
+ # Push to the active development branch
113
153
  git -C "<TEAM_REPO>" push origin HEAD:feature/ai-harness-improvements
114
154
  ```
115
155
 
116
- Replace `<brief description of what was captured>` with a one-line summary
117
- (e.g. `"knowledge: add clickup-deploy feature doc for worker2"`).
118
-
119
156
  **If push succeeds:** report
120
157
  > "✓ Knowledge pushed to `feature/ai-harness-improvements` — CI will publish a new npm version. Teammates get it on their next `npx toga-ai`."
121
158
 
122
- **If push fails** (offline, no credentials, diverged): do **NOT** error out. Report:
123
- > "⚠ Could not push run `git -C <TEAM_REPO> push origin HEAD:feature/ai-harness-improvements` when ready"
124
- and still consider the capture session successful.
159
+ **If push fails** show the developer the exact git error output, then report:
160
+ > "⚠ Push failed: `<error>`. Fix credentials or run manually:
161
+ > `git -C <TEAM_REPO> push origin HEAD:feature/ai-harness-improvements`"
125
162
 
126
- Never stage anything outside `knowledge/`. If `git diff --cached` would include files
127
- outside `knowledge/`, abort the commit and warn: "Unexpected staged files outside
128
- `knowledge/` — push skipped. Review and push manually."
163
+ Never stage anything outside `knowledge/`. If `git diff --cached` shows files outside
164
+ `knowledge/`, abort and warn before committing.
129
165
 
130
166
  ## Step 8 — Report
131
167