@erclx/aitk 1.7.0 → 1.7.1
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/docs/agents/records.md
CHANGED
|
@@ -110,7 +110,7 @@ aitk records push --json
|
|
|
110
110
|
aitk records pull
|
|
111
111
|
```
|
|
112
112
|
|
|
113
|
-
The backed folders are `groundwork`, `intake`, `memory`, `plans`, `plans-archive`, `review`, `review-archive`, `task-archive`, `tasks`, and `teach`, all under `.claude/`. They are the
|
|
113
|
+
The backed folders are `groundwork`, `intake`, `memory`, `plans`, `plans-archive`, `review`, `review-archive`, `task-archive`, `tasks`, and `teach`, all under `.claude/`. They are the Claude ignore group the claude manifest ships, minus three entries: `.claude/.tmp`, which is deletable without loss, `.claude/worktrees/`, whose contents belong to the project repository already, and `.claude/.records.git/`, which is the history the other ten are pushed into. The list is a constant rather than configuration, matching the four folder names `validate` hardcodes.
|
|
114
114
|
|
|
115
115
|
Records are gitignored by design, so the history lives in a second git directory at `.claude/.records.git` with `.claude/` as its work tree. Every path stays where it is, which is what a separate checkout could not do. The verbs stage the ten folders by explicit pathspec with `--force`, so nothing outside them can enter the index however the ignore rules read, and the project working tree and its index are never touched.
|
|
116
116
|
|
package/package.json
CHANGED
package/src/records/backup.ts
CHANGED
|
@@ -5,10 +5,17 @@ import { gitEnv } from '@/git-env'
|
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* The folders a backup carries, relative to `.claude/`. They are the `# Claude`
|
|
8
|
-
* group
|
|
9
|
-
* without loss,
|
|
10
|
-
* enclosing repository already
|
|
11
|
-
*
|
|
8
|
+
* group the claude manifest ships, minus three: `.claude/.tmp`, which is
|
|
9
|
+
* defined as deletable without loss, `.claude/worktrees/`, whose contents
|
|
10
|
+
* belong to the enclosing repository already, and `.claude/.records.git/`,
|
|
11
|
+
* which is the history the other ten are pushed into. The list is spelled out
|
|
12
|
+
* rather than read off that group so adding an ignore entry cannot silently
|
|
13
|
+
* enlarge the payload.
|
|
14
|
+
*
|
|
15
|
+
* The manifest group is the one this reads rather than the enclosing
|
|
16
|
+
* repository's own `.gitignore`, which spreads the same entries across two
|
|
17
|
+
* headers and carries `.claude/README.md` that no target receives. Subtracting
|
|
18
|
+
* three from that file instead yields eleven names against this list of ten.
|
|
12
19
|
*
|
|
13
20
|
* `RECORD_KINDS` in `validate.ts` overlaps this on five names and carries one
|
|
14
21
|
* more that no backup reaches. The two lists differ on purpose: one is what a
|
|
@@ -8,4 +8,4 @@ runtime = ""
|
|
|
8
8
|
scaffold = ""
|
|
9
9
|
|
|
10
10
|
[gitignore]
|
|
11
|
-
"# Claude" = [".claude/.tmp/", ".claude/groundwork/", ".claude/intake/", ".claude/memory/", ".claude/plans/", ".claude/plans-archive/", ".claude/review/", ".claude/review-archive/", ".claude/task-archive/", ".claude/worktrees/", ".claude/tasks/"]
|
|
11
|
+
"# Claude" = [".claude/.records.git/", ".claude/.tmp/", ".claude/groundwork/", ".claude/intake/", ".claude/memory/", ".claude/plans/", ".claude/plans-archive/", ".claude/review/", ".claude/review-archive/", ".claude/task-archive/", ".claude/worktrees/", ".claude/tasks/", ".claude/teach/"]
|
|
@@ -50,7 +50,7 @@ A project installed before the diagram surface became a folder still holds `.cla
|
|
|
50
50
|
|
|
51
51
|
## Gitignore
|
|
52
52
|
|
|
53
|
-
- `# Claude`: `.claude/.tmp/`, `.claude/groundwork/`, `.claude/intake/`, `.claude/memory/`, `.claude/plans/`, `.claude/plans-archive/`, `.claude/review/`, `.claude/review-archive/`, `.claude/task-archive/`, `.claude/worktrees/`, `.claude/tasks/`
|
|
53
|
+
- `# Claude`: `.claude/.records.git/`, `.claude/.tmp/`, `.claude/groundwork/`, `.claude/intake/`, `.claude/memory/`, `.claude/plans/`, `.claude/plans-archive/`, `.claude/review/`, `.claude/review-archive/`, `.claude/task-archive/`, `.claude/worktrees/`, `.claude/tasks/`, `.claude/teach/`
|
|
54
54
|
|
|
55
55
|
## CLI
|
|
56
56
|
|