ai-hist-native 0.8.3 → 0.9.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/index.d.ts CHANGED
@@ -11,6 +11,7 @@ export declare function nativeContractVersion(): number
11
11
  */
12
12
  export declare function nativeBuildProfile(): string
13
13
  export interface HistoryQueryOptions {
14
+ scope?: string
14
15
  dbPath?: string
15
16
  source?: string
16
17
  project?: string
@@ -19,6 +20,7 @@ export interface HistoryQueryOptions {
19
20
  limit?: number
20
21
  }
21
22
  export interface SearchOptions {
23
+ scope?: string
22
24
  dbPath?: string
23
25
  source?: string
24
26
  project?: string
@@ -39,6 +41,7 @@ export interface NativeHistoryEntry {
39
41
  project?: string
40
42
  prompt: string
41
43
  timestampMs: number
44
+ locations: Array<string>
42
45
  }
43
46
  export interface NativeSessionEvent {
44
47
  id: number
@@ -80,6 +83,7 @@ export interface ProjectCount {
80
83
  count: number
81
84
  }
82
85
  export interface NativeStats {
86
+ scope: string
83
87
  total: number
84
88
  bySource: Array<SourceCount>
85
89
  byProject: Array<ProjectCount>
@@ -87,6 +91,7 @@ export interface NativeStats {
87
91
  lastTimestampMs?: number
88
92
  }
89
93
  export interface StatsOptions {
94
+ scope?: string
90
95
  dbPath?: string
91
96
  tag?: string
92
97
  }
@@ -118,6 +123,7 @@ export interface CatalogSession {
118
123
  rawPath?: string
119
124
  sourceStamp?: string
120
125
  discoveryState: string
126
+ locations: Array<string>
121
127
  fromCache: boolean
122
128
  }
123
129
  export interface CatalogCursor {
@@ -126,6 +132,7 @@ export interface CatalogCursor {
126
132
  sessionId: string
127
133
  }
128
134
  export interface ListCatalogOptions {
135
+ scope?: string
129
136
  dbPath?: string
130
137
  sources?: Array<string>
131
138
  limit?: number
@@ -134,6 +141,7 @@ export interface ListCatalogOptions {
134
141
  }
135
142
  export interface SessionCatalogPage {
136
143
  contractVersion: number
144
+ scope: string
137
145
  sessions: Array<CatalogSession>
138
146
  nextCursor?: CatalogCursor
139
147
  }
@@ -142,6 +150,7 @@ export declare function listSessionCatalogPage(options?: ListCatalogOptions | un
142
150
  /** Convenience first-page catalog listing with identical cache-only semantics. */
143
151
  export declare function listSessionCatalog(options?: ListCatalogOptions | undefined | null): Promise<Array<CatalogSession>>
144
152
  export interface DiscoverOptions {
153
+ scope?: string
145
154
  dbPath?: string
146
155
  sources?: Array<string>
147
156
  limit?: number
@@ -171,6 +180,7 @@ export interface SourceExemption {
171
180
  }
172
181
  export interface DiscoverResult {
173
182
  contractVersion: number
183
+ scope: string
174
184
  sessions: Array<CatalogSession>
175
185
  discovered: number
176
186
  skippedUnchanged: number
@@ -183,10 +193,12 @@ export interface DiscoverResult {
183
193
  export declare function discoverSessions(options?: DiscoverOptions | undefined | null): Promise<DiscoverResult>
184
194
  export interface SyncOptions {
185
195
  dbPath?: string
196
+ scope?: string
186
197
  }
187
198
  export interface SyncResult {
188
199
  databasePath: string
189
200
  completed: boolean
201
+ scope: string
190
202
  }
191
203
  /** Explicit full ingestion. A read operation never calls this implicitly. */
192
204
  export declare function sync(options?: SyncOptions | undefined | null): Promise<SyncResult>
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-darwin-arm64",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "os": [
5
5
  "darwin"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-darwin-x64",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "os": [
5
5
  "darwin"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-linux-arm64-gnu",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "os": [
5
5
  "linux"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-linux-arm64-musl",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "os": [
5
5
  "linux"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-linux-x64-gnu",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "os": [
5
5
  "linux"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-linux-x64-musl",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "os": [
5
5
  "linux"
6
6
  ],
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native-win32-x64-msvc",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "os": [
5
5
  "win32"
6
6
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-hist-native",
3
- "version": "0.8.3",
3
+ "version": "0.9.0",
4
4
  "description": "Mandatory Node-API engine for RelayHistory.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -44,12 +44,12 @@
44
44
  "@napi-rs/cli": "^2.18.4"
45
45
  },
46
46
  "optionalDependencies": {
47
- "ai-hist-native-darwin-arm64": "0.8.3",
48
- "ai-hist-native-darwin-x64": "0.8.3",
49
- "ai-hist-native-linux-x64-gnu": "0.8.3",
50
- "ai-hist-native-linux-arm64-gnu": "0.8.3",
51
- "ai-hist-native-linux-x64-musl": "0.8.3",
52
- "ai-hist-native-linux-arm64-musl": "0.8.3",
53
- "ai-hist-native-win32-x64-msvc": "0.8.3"
47
+ "ai-hist-native-darwin-arm64": "0.9.0",
48
+ "ai-hist-native-darwin-x64": "0.9.0",
49
+ "ai-hist-native-linux-x64-gnu": "0.9.0",
50
+ "ai-hist-native-linux-arm64-gnu": "0.9.0",
51
+ "ai-hist-native-linux-x64-musl": "0.9.0",
52
+ "ai-hist-native-linux-arm64-musl": "0.9.0",
53
+ "ai-hist-native-win32-x64-msvc": "0.9.0"
54
54
  }
55
55
  }