toga-ai 1.0.27 → 1.0.28
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 +1 -1
- package/skills/capture/SKILL.md +25 -2
package/package.json
CHANGED
package/skills/capture/SKILL.md
CHANGED
|
@@ -163,17 +163,40 @@ git -C "<TEAM_REPO>" status --short knowledge/
|
|
|
163
163
|
```
|
|
164
164
|
If empty — report "No new knowledge to push" and exit cleanly.
|
|
165
165
|
|
|
166
|
-
**
|
|
166
|
+
**Commit:**
|
|
167
167
|
```bash
|
|
168
168
|
git -C "<TEAM_REPO>" add knowledge/
|
|
169
169
|
git -C "<TEAM_REPO>" diff --cached --quiet || \
|
|
170
170
|
git -C "<TEAM_REPO>" commit -m "knowledge: <one-line summary>"
|
|
171
|
-
git -C "<TEAM_REPO>" push origin HEAD:feature/ai-harness-improvements
|
|
172
171
|
```
|
|
173
172
|
|
|
174
173
|
Never stage files outside `knowledge/`. If `git diff --cached` includes anything outside
|
|
175
174
|
`knowledge/`, abort and warn before committing.
|
|
176
175
|
|
|
176
|
+
**Sync, then push (rebase BEFORE pushing — this prevents the version-bump conflict):**
|
|
177
|
+
|
|
178
|
+
Every push to this branch triggers a CI job that commits a `chore: bump version [skip ci]`
|
|
179
|
+
back to the branch. So after *any* prior push (e.g. an earlier capture in the same session),
|
|
180
|
+
your local branch is one commit behind the remote, and a naive push is rejected as a
|
|
181
|
+
non-fast-forward. Rebase your fresh commit onto the remote **before** pushing — this pulls in
|
|
182
|
+
commits that already exist (no waiting on CI), so the push fast-forwards cleanly:
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
git -C "<TEAM_REPO>" fetch origin
|
|
186
|
+
git -C "<TEAM_REPO>" rebase origin/feature/ai-harness-improvements
|
|
187
|
+
git -C "<TEAM_REPO>" push origin HEAD:feature/ai-harness-improvements
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
> **Do NOT "pull after push" instead** — the bump commit for *this* push is created
|
|
191
|
+
> asynchronously by CI a few seconds later, so pulling immediately afterward races CI and
|
|
192
|
+
> usually grabs nothing. Rebasing *before* the push is what reliably avoids the conflict,
|
|
193
|
+
> with zero dependency on npm build/publish timing.
|
|
194
|
+
|
|
195
|
+
**If the push is still rejected** (a bump commit landed in the brief window between your
|
|
196
|
+
rebase and push), simply repeat `fetch` → `rebase` → `push`, up to 2 more times. This is an
|
|
197
|
+
expected occasional race, not an error — do not report it as a failure unless all retries are
|
|
198
|
+
exhausted.
|
|
199
|
+
|
|
177
200
|
**If push succeeds:**
|
|
178
201
|
> "✓ Pushed to `feature/ai-harness-improvements` — CI publishes new npm version. Teammates get it on `npx toga-ai`."
|
|
179
202
|
|