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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toga-ai",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
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",
@@ -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: Claude memory `team-repo-path` env `CLAUDE_TEAM_REPO` auto-discover
39
- (`./claude`, `../claude`, `../../claude`, walk up for `knowledge/INDEX.md`) → ask. Persist a
40
- `team-repo-path` memory if missing. Call the helper as `node "<TEAM_REPO>/knowledge.js" …`.
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
 
@@ -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` (recalled memories
30
- appear in your context). Use it if present and it contains `knowledge/INDEX.md`.
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 `./claude`, `../claude`, `../../claude`, and walk up the tree
33
- for a directory containing `knowledge/INDEX.md`.
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>`.