toga-ai 1.0.10 → 1.0.12
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 +22 -3
- package/skills/kickoff/SKILL.md +16 -4
package/package.json
CHANGED
package/skills/capture/SKILL.md
CHANGED
|
@@ -35,9 +35,28 @@ validate + index succeed:
|
|
|
35
35
|
|
|
36
36
|
## Step 1 — Resolve the team-repo (`claude`) path
|
|
37
37
|
|
|
38
|
-
Same as kickoff
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
Same resolution order as kickoff, but **push requires a real git clone** — flag clearly if
|
|
39
|
+
only the installed `.claude/` bundle is found.
|
|
40
|
+
|
|
41
|
+
Resolve in order:
|
|
42
|
+
1. Claude memory `team-repo-path` — valid if path contains `knowledge/registry.json`
|
|
43
|
+
2. Env var `CLAUDE_TEAM_REPO`
|
|
44
|
+
3. Auto-discover — probe for `knowledge/registry.json` (NOT `knowledge/INDEX.md` — it's
|
|
45
|
+
auto-generated and absent in fresh clones) at these paths:
|
|
46
|
+
- `~/toga-tech` ← install.js clones here by default
|
|
47
|
+
- `~/claude`, `~/Documents/claude`, `~/Projects/claude`, `~/dev/claude`
|
|
48
|
+
- `C:\WWW\claude`, `D:\WWW\claude` (Windows)
|
|
49
|
+
- `./claude`, `../claude`, `../../claude`
|
|
50
|
+
- Walk up the directory tree from cwd
|
|
51
|
+
- `.claude/` in the current project (last resort — read-only, cannot push)
|
|
52
|
+
4. Ask the developer
|
|
53
|
+
|
|
54
|
+
If only `.claude/` is found — write docs there but warn before Step 7:
|
|
55
|
+
> "⚠ No git clone found. Docs written locally but cannot push to GitHub.
|
|
56
|
+
> Run: `git clone https://github.com/agilantsolutions/claude ~/toga-tech`
|
|
57
|
+
> then re-run /capture to push."
|
|
58
|
+
|
|
59
|
+
Persist a `team-repo-path` memory if missing. Call the helper as `node "<TEAM_REPO>/knowledge.js" …`.
|
|
41
60
|
|
|
42
61
|
## Step 2 — Determine framework / repo / project (ask if unknown)
|
|
43
62
|
|
package/skills/kickoff/SKILL.md
CHANGED
|
@@ -26,13 +26,25 @@ nothing without confirmation.
|
|
|
26
26
|
You need this to read the registry and knowledge. Resolve in order; **persist the result
|
|
27
27
|
to Claude memory** so you never ask twice:
|
|
28
28
|
|
|
29
|
-
1. **Claude memory** — a `reference` memory named `team-repo-path
|
|
30
|
-
|
|
29
|
+
1. **Claude memory** — a `reference` memory named `team-repo-path`. Use it if present
|
|
30
|
+
and the path contains `knowledge/registry.json`.
|
|
31
31
|
2. **Env var** `CLAUDE_TEAM_REPO`.
|
|
32
|
-
3. **Auto-discover** — probe
|
|
33
|
-
|
|
32
|
+
3. **Auto-discover** — probe these paths in order for a directory containing `knowledge/registry.json`:
|
|
33
|
+
- `~/toga-tech` ← install.js clones here by default
|
|
34
|
+
- `~/claude`, `~/Documents/claude`, `~/Projects/claude`, `~/dev/claude`
|
|
35
|
+
- `C:\WWW\claude`, `D:\WWW\claude` (Windows)
|
|
36
|
+
- `./claude`, `../claude`, `../../claude` (relative to cwd)
|
|
37
|
+
- Walk up the directory tree from cwd
|
|
38
|
+
- `.claude/` in the current project (installed bundle — last resort, read-only)
|
|
34
39
|
4. **Ask** the developer: "Where is the team `claude` repo checked out on this machine?"
|
|
35
40
|
|
|
41
|
+
**Critical:** probe for `knowledge/registry.json` — NOT `knowledge/INDEX.md`. INDEX.md is
|
|
42
|
+
auto-generated and will not exist in a fresh clone. registry.json is always committed.
|
|
43
|
+
|
|
44
|
+
**If only `.claude/` is found** (no git clone available): load knowledge for reading but warn:
|
|
45
|
+
> "Using installed knowledge at `.claude/knowledge/` — /capture push requires the full repo.
|
|
46
|
+
> Run: `git clone https://github.com/agilantsolutions/claude ~/toga-tech` to enable pushing."
|
|
47
|
+
|
|
36
48
|
When resolved, if there was no `team-repo-path` memory, **write one** (memory type
|
|
37
49
|
`reference`) and add its `MEMORY.md` pointer. From here on call the helper as
|
|
38
50
|
`node "<TEAM_REPO>/knowledge.js" <command>`.
|