cogpit-memory 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -135,19 +135,32 @@ bun run build
135
135
  bun run build:npm
136
136
  ```
137
137
 
138
- ## Claude Code Skill
138
+ ## Agent Skill
139
139
 
140
- cogpit-memory ships with a [Claude Code skill](https://docs.anthropic.com/en/docs/claude-code/skills) that teaches Claude how to use it automatically — layered drill-down, search workflows, and all command options.
140
+ cogpit-memory ships with a skill that teaches AI agents how to use it automatically — layered drill-down, search workflows, and all command options. Works with Claude Code, Cursor, Gemini CLI, GitHub Copilot, and more.
141
+
142
+ ### Install via Skills CLI (recommended)
143
+
144
+ Installs globally across all supported agents:
145
+
146
+ ```bash
147
+ npx skills add gentritbiba/cogpit-memory -g -y
148
+ ```
149
+
150
+ Browse at [skills.sh](https://skills.sh).
151
+
152
+ ### Install via cogpit-memory CLI
153
+
154
+ Installs into a single project's `.claude/skills/`:
141
155
 
142
156
  ```bash
143
- # Install the skill into the current project
144
157
  npx cogpit-memory install-skill
145
158
 
146
159
  # Or specify a project directory
147
160
  npx cogpit-memory install-skill --cwd /path/to/project
148
161
  ```
149
162
 
150
- This creates `.claude/skills/cogpit-memory/SKILL.md` in your project. Once installed, Claude Code will automatically use `cogpit-memory` when it needs to recall past session context or search conversation history.
163
+ Once installed, your AI agent will automatically use `cogpit-memory` when it needs to recall past session context or search conversation history.
151
164
 
152
165
  ## License
153
166
 
package/dist/cli.js CHANGED
@@ -813,7 +813,7 @@ var SearchIndex = class {
813
813
  const ftsQuery = `"${query.replace(/"/g, '""')}"`;
814
814
  let sql = `
815
815
  SELECT sc.session_id, sc.location,
816
- snippet(search_content, 3, '', '', '...', 40) as snippet
816
+ snippet(search_content, 3, '', '', '...', 120) as snippet
817
817
  FROM search_content sc
818
818
  `;
819
819
  const params = [];
@@ -1980,6 +1980,7 @@ async function listSessions(opts = {}) {
1980
1980
  if (opts.cwd && meta.cwd !== opts.cwd) continue;
1981
1981
  results.push({
1982
1982
  sessionId: meta.sessionId,
1983
+ filePath: file.path,
1983
1984
  timestamp: meta.timestamp,
1984
1985
  model: meta.model,
1985
1986
  cwd: meta.cwd,
@@ -2028,6 +2029,7 @@ async function currentSession(cwd) {
2028
2029
  ]);
2029
2030
  return {
2030
2031
  sessionId: meta.sessionId,
2032
+ filePath: latest.path,
2031
2033
  timestamp: meta.timestamp,
2032
2034
  model: meta.model,
2033
2035
  cwd: meta.cwd,
package/dist/index.js CHANGED
@@ -899,7 +899,7 @@ var SearchIndex = class {
899
899
  const ftsQuery = `"${query.replace(/"/g, '""')}"`;
900
900
  let sql = `
901
901
  SELECT sc.session_id, sc.location,
902
- snippet(search_content, 3, '', '', '...', 40) as snippet
902
+ snippet(search_content, 3, '', '', '...', 120) as snippet
903
903
  FROM search_content sc
904
904
  `;
905
905
  const params = [];
@@ -2071,6 +2071,7 @@ async function listSessions(opts = {}) {
2071
2071
  if (opts.cwd && meta.cwd !== opts.cwd) continue;
2072
2072
  results.push({
2073
2073
  sessionId: meta.sessionId,
2074
+ filePath: file.path,
2074
2075
  timestamp: meta.timestamp,
2075
2076
  model: meta.model,
2076
2077
  cwd: meta.cwd,
@@ -2119,6 +2120,7 @@ async function currentSession(cwd) {
2119
2120
  ]);
2120
2121
  return {
2121
2122
  sessionId: meta.sessionId,
2123
+ filePath: latest.path,
2122
2124
  timestamp: meta.timestamp,
2123
2125
  model: meta.model,
2124
2126
  cwd: meta.cwd,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cogpit-memory",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "CLI tool for Claude Code session introspection — search, browse, and drill into past sessions",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./src/index.ts",