@kolisachint/hoocode-agent 0.5.15 → 0.5.16

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/core/learn/extract.d.ts +48 -1
  3. package/dist/core/learn/extract.d.ts.map +1 -1
  4. package/dist/core/learn/extract.js +120 -23
  5. package/dist/core/learn/extract.js.map +1 -1
  6. package/dist/core/learn/state.d.ts +6 -3
  7. package/dist/core/learn/state.d.ts.map +1 -1
  8. package/dist/core/learn/state.js +6 -3
  9. package/dist/core/learn/state.js.map +1 -1
  10. package/dist/core/session-manager.d.ts +8 -0
  11. package/dist/core/session-manager.d.ts.map +1 -1
  12. package/dist/core/session-manager.js +12 -2
  13. package/dist/core/session-manager.js.map +1 -1
  14. package/dist/core/settings-manager.d.ts +11 -0
  15. package/dist/core/settings-manager.d.ts.map +1 -1
  16. package/dist/core/settings-manager.js +14 -0
  17. package/dist/core/settings-manager.js.map +1 -1
  18. package/dist/extensions/core/learn.d.ts.map +1 -1
  19. package/dist/extensions/core/learn.js +149 -15
  20. package/dist/extensions/core/learn.js.map +1 -1
  21. package/dist/modes/interactive/components/settings-selector.d.ts +3 -1
  22. package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -1
  23. package/dist/modes/interactive/components/settings-selector.js +72 -0
  24. package/dist/modes/interactive/components/settings-selector.js.map +1 -1
  25. package/dist/modes/interactive/interactive-mode.d.ts +21 -3
  26. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  27. package/dist/modes/interactive/interactive-mode.js +54 -15
  28. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  29. package/docs/settings.md +4 -0
  30. package/docs/usage.md +16 -1
  31. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  32. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  33. package/examples/extensions/sandbox/package.json +1 -1
  34. package/examples/extensions/with-deps/package.json +1 -1
  35. package/package.json +4 -4
package/docs/settings.md CHANGED
@@ -188,6 +188,10 @@ When multiple sources specify a session directory, precedence is `--session-dir`
188
188
 
189
189
  The window `/learn` mines when looking for repeated directives, fixes, and workflows.
190
190
 
191
+ All five are editable from `/settings` under **Learning**. `/learn settings`
192
+ prints the same values as text, alongside the paths of both settings files and
193
+ the session directory being read.
194
+
191
195
  | Setting | Type | Default | Description |
192
196
  |---------|------|---------|-------------|
193
197
  | `learnMaxSessions` | number | `20` | Recent sessions in this directory to scan |
package/docs/usage.md CHANGED
@@ -47,7 +47,7 @@ Type `/` in the editor to open command completion. Extensions can register custo
47
47
  | `/fork` | Create a new session from a previous user message |
48
48
  | `/clone` | Duplicate the current active branch into a new session |
49
49
  | `/compact [prompt]` | Manually compact context, optionally with custom instructions |
50
- | `/learn [all\|stats]` | Mine recent sessions for repeated directives, fixes, and workflows and promote them to `AGENTS.md` or a skill; `stats` reports what became of past proposals |
50
+ | `/learn [all\|stats\|settings]` | Mine recent sessions for repeated directives, fixes, and workflows and promote them to `AGENTS.md` or a skill; `stats` reports what became of past proposals, `settings` shows where sessions are read from and the thresholds in force |
51
51
  | `/copy` | Copy last assistant message to clipboard |
52
52
  | `/export [file]` | Export session to HTML |
53
53
  | `/share` | Upload as private GitHub gist with shareable HTML link |
@@ -162,6 +162,21 @@ triggering problem, not a missing rule: the skill's `description` frontmatter
162
162
  probably does not describe the situation you were in, so sharpening it is the fix
163
163
  rather than writing a rule that duplicates the skill.
164
164
 
165
+ The five thresholds are editable from `/settings` under **Learning**. `/learn
166
+ settings` prints the same values as text, along with where sessions are read
167
+ from, how many were found, and the two files you can set them in by hand — the
168
+ user `~/.hoocode/settings.json` and the project `.hoocode/settings.json`. See
169
+ [settings](settings.md#learning-from-sessions) for what each one does.
170
+
171
+ Sessions are read from `~/.hoocode/sessions/<encoded-cwd>/`, the directory
172
+ hoocode writes this project's transcripts into. If a run reports nothing, it
173
+ names that directory, how many transcripts it holds, and why each was passed
174
+ over — out of the age window, over the session cap, or recorded under a
175
+ different working directory. Those are the three reasons a directory full of
176
+ history still mines to nothing, and each has a different fix: widen
177
+ `learnMaxAgeDays`, raise `learnMaxSessions`, or check that you are running from
178
+ the same path the sessions were recorded under.
179
+
165
180
  ### System Prompt Files
166
181
 
167
182
  Replace the default system prompt with:
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kolisachint/hoocode-extension-custom-provider-anthropic",
3
3
  "private": true,
4
- "version": "0.3.15",
4
+ "version": "0.3.16",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "bun": ">=1.0.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kolisachint/hoocode-extension-custom-provider-gitlab-duo",
3
3
  "private": true,
4
- "version": "0.3.15",
4
+ "version": "0.3.16",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "bun": ">=1.0.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kolisachint/hoocode-extension-sandbox",
3
3
  "private": true,
4
- "version": "0.3.15",
4
+ "version": "0.3.16",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "bun": ">=1.0.0"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kolisachint/hoocode-extension-with-deps",
3
3
  "private": true,
4
- "version": "0.3.15",
4
+ "version": "0.3.16",
5
5
  "type": "module",
6
6
  "engines": {
7
7
  "bun": ">=1.0.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolisachint/hoocode-agent",
3
- "version": "0.5.15",
3
+ "version": "0.5.16",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "hoocodeConfig": {
@@ -49,9 +49,9 @@
49
49
  "prepublishOnly": "npm run clean && npm run build"
50
50
  },
51
51
  "dependencies": {
52
- "@kolisachint/hoocode-agent-core": "^0.5.15",
53
- "@kolisachint/hoocode-ai": "^0.5.15",
54
- "@kolisachint/hoocode-tui": "^0.5.15",
52
+ "@kolisachint/hoocode-agent-core": "^0.5.16",
53
+ "@kolisachint/hoocode-ai": "^0.5.16",
54
+ "@kolisachint/hoocode-tui": "^0.5.16",
55
55
  "@silvia-odwyer/photon-node": "^0.3.4",
56
56
  "chalk": "^5.5.0",
57
57
  "cli-highlight": "^2.1.11",