cogpit-memory 0.2.1 → 0.3.0
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 +34 -25
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +3261 -1726
- package/dist/commands/search.d.ts +1 -1
- package/dist/commands/sessions.d.ts +2 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +2762 -1300
- package/dist/lib/agent-descriptors.d.ts +387 -0
- package/dist/lib/agents.d.ts +112 -0
- package/dist/lib/claude.d.ts +49 -0
- package/dist/lib/codex-exec.d.ts +12 -0
- package/dist/lib/codex-tool-normalization.d.ts +25 -4
- package/dist/lib/codex.d.ts +29 -1
- package/dist/lib/copilot.d.ts +51 -0
- package/dist/lib/dirs.d.ts +9 -0
- package/dist/lib/helpers.d.ts +0 -20
- package/dist/lib/interactiveState.d.ts +9 -0
- package/dist/lib/metadata.d.ts +16 -14
- package/dist/lib/parser.d.ts +6 -4
- package/dist/lib/search-index.d.ts +7 -67
- package/dist/lib/sessionStats.d.ts +2 -1
- package/dist/lib/sessionStatus.d.ts +11 -32
- package/dist/lib/stores.d.ts +47 -0
- package/dist/lib/turnBuilder.d.ts +22 -0
- package/dist/lib/turnContent.d.ts +2 -0
- package/dist/lib/types.d.ts +41 -3
- package/package.json +3 -2
- package/skill/SKILL.md +58 -48
- package/dist/lib/token-costs.d.ts +0 -27
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
import { SearchIndex } from "../lib/search-index";
|
|
11
11
|
export interface SearchOptions {
|
|
12
12
|
sessionId?: string;
|
|
13
|
+
excludeSessionId?: string;
|
|
13
14
|
maxAge?: string;
|
|
14
15
|
limit?: number;
|
|
15
16
|
caseSensitive?: boolean;
|
|
16
|
-
depth?: number;
|
|
17
17
|
}
|
|
18
18
|
export interface SearchHit {
|
|
19
19
|
location: string;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Sessions command — list recent sessions and find the current session.
|
|
3
3
|
* Ported from the HTTP handlers in routes/sessions-list.ts.
|
|
4
4
|
*/
|
|
5
|
+
import { type AgentKind } from "../lib/agent-descriptors";
|
|
5
6
|
export interface SessionSummary {
|
|
6
7
|
sessionId: string;
|
|
7
8
|
filePath: string;
|
|
@@ -15,7 +16,7 @@ export interface SessionSummary {
|
|
|
15
16
|
turnCount: number;
|
|
16
17
|
status: string;
|
|
17
18
|
mtime: number;
|
|
18
|
-
source?:
|
|
19
|
+
source?: AgentKind;
|
|
19
20
|
}
|
|
20
21
|
export interface SessionsOptions {
|
|
21
22
|
cwd?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Usage from cogpit:
|
|
5
5
|
* import { SearchIndex } from "../packages/cogpit-memory"
|
|
6
6
|
* const index = new SearchIndex("~/.claude/cogpit-memory/search-index.db")
|
|
7
|
-
* index.startWatching(dirs.PROJECTS_DIR)
|
|
8
7
|
*/
|
|
9
8
|
export { SearchIndex, type IndexStats, type SearchHit } from "./lib/search-index";
|
|
10
9
|
export { parseSession, parseSessionAppend, getUserMessageText, getUserMessageImages, type ParseSessionOptions, } from "./lib/parser";
|