@vpxa/aikit 0.1.254 → 0.1.255

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.
@@ -50,9 +50,9 @@ Use AI Kit retrieval/compression first. Native tools are fallback only.
50
50
  | NEVER use this | USE THIS instead | Why |
51
51
  |---|---|---|
52
52
  | \`read_file\` to understand a file | \`file_summary({ path })\` | Structure first |
53
- | \`read_file\` to find code | \`compact({ path, query })\` | Focused extract |
53
+ | \`read_file\` to find code | \`compact({ path, query })\` | Fresh compression: \`compact({ path, query })\`; \`query\` is required unless \`ref\` is supplied |
54
54
  | Multiple \`read_file\` calls | \`digest({ sources, query: "<task description>" })\` | Compress multi-file context |
55
- | Cached ref to refocus prior output | \`compact({ ref, query? })\` | Reuse reversible text artifacts |
55
+ | Cached ctxc ref to refocus prior output | \`compact({ ref })\` or \`compact({ ref, query? })\` | \`ctxc_...\` values are reversible refs, not ids or file paths |
56
56
  | \`grep_search\` / \`semantic_search\` | \`search({ query })\` | Indexed search |
57
57
  | \`grep_search\` for a symbol | \`symbol({ name })\` | Def + refs |
58
58
  | \`run_in_terminal\` for tsc/lint | \`check({})\` | Narrow validation |
@@ -61,7 +61,7 @@ Use AI Kit retrieval/compression first. Native tools are fallback only.
61
61
  | \`get_changed_files\` | \`run_in_terminal\` with \`git diff <specific-file>\` | Diff only target file |
62
62
  | \`run_in_terminal\` for code edits | \`replace_string_in_file\` | Avoid shell-edit loops |
63
63
 
64
- > **Path Note:** \`compact({path})\` and \`file_summary({path})\` accept any absolute path.
64
+ > **Path Note:** \`compact({ path, query })\` and \`file_summary({ path })\` accept any absolute path. Cached \`ctxc_...\` values are reversible refs passed as \`ref\` to \`compact({ ref })\` or \`compact({ ref, query? })\`; do not invent a separate \`read\`/\`id\` contract.
65
65
 
66
66
  **\`read_file\` is ONLY for exact edit lines.** Use \`file_summary\` or \`compact\` first.
67
67
 
@@ -155,9 +155,9 @@ Every tool call passes through extractors that capture reusable facts:
155
155
  | **Research results** | \`web_search\`, \`web_fetch\`, \`search\`, \`find\` | Search findings, web content, code discoveries |
156
156
  | **Behavioral patterns** | ALL tools (ring buffer) | Tool preferences, search→edit sequences, error-fix cycles |
157
157
 
158
- **Retrieval:** Use \`enrich: true\` on any tool that supports it — the server automatically surfaces previously captured facts relevant to your query. Search/find/knowledge responses can also emit reusable refs; feed those into \`compact({ ref, query })\` instead of reopening the source.
158
+ **Retrieval:** Use \`enrich: true\` on any tool that supports it — the server automatically surfaces previously captured facts relevant to your query. Search/find/knowledge responses can also emit reusable \`ctxc_...\` refs; pass them as \`ref\` to \`compact({ ref })\` or \`compact({ ref, query? })\` instead of reopening the source. \`ctxc_...\` is a reversible ref, not an id or path.
159
159
 
160
- **Best practice:** Before re-reading a file you've already explored, try \`search({ query: "file-path-or-topic" })\` — auto-knowledge may already have what you need, or reuse an existing \`ref\` with \`compact({ ref, query })\`.
160
+ **Best practice:** Before re-reading a file you've already explored, try \`search({ query: "file-path-or-topic" })\` — auto-knowledge may already have what you need, or reuse an existing \`ctxc_...\` ref with \`compact({ ref })\` or \`compact({ ref, query? })\`.
161
161
 
162
162
  ### Retention & Tier Promotion
163
163
  - Memories start at **working** tier → promote on repeated access: episodic (2) → semantic (5) → procedural (10)