@eng-ai/sdk 2.8.3 → 2.8.5
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/CHANGELOG.md +26 -0
- package/README.md +10 -3
- package/package.json +1 -1
- package/src/client.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to `@eng-ai/sdk` will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 2.8.5 - 2026-04-14
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Release alignment with backend intake pipeline update:
|
|
10
|
+
- Intake now relies on native multimodal document handling in the backend.
|
|
11
|
+
- Legacy OCR/vision-deep endpoints were removed server-side.
|
|
12
|
+
- No breaking JS SDK API surface changes; existing project intake methods remain:
|
|
13
|
+
- `getProjectIntakeStatus(projectId)`
|
|
14
|
+
- `runProjectIntake(projectId, { mode?: "initial_full" | "delta_refresh" })`
|
|
15
|
+
|
|
16
|
+
## 2.8.4 - 2026-04-09
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Project Knowledge pages now support graph payload in SDK:
|
|
21
|
+
- `listProjectKnowledgePages(projectId, { limit?, includeGraph? })`
|
|
22
|
+
- When `includeGraph=true`, API may return envelope with:
|
|
23
|
+
- `pages`
|
|
24
|
+
- `graph`
|
|
25
|
+
- `graph_meta`
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- README updated with graph-enabled knowledge pages example.
|
|
30
|
+
|
|
5
31
|
## 2.8.3 - 2026-04-09
|
|
6
32
|
|
|
7
33
|
### Added
|
package/README.md
CHANGED
|
@@ -97,7 +97,8 @@ Project knowledge (status, lint issues, manual rebuild):
|
|
|
97
97
|
```js
|
|
98
98
|
const knowledgeStatus = await client.getProjectKnowledgeStatus(project.id);
|
|
99
99
|
const knowledgePages = await client.listProjectKnowledgePages(project.id, {
|
|
100
|
-
limit: 20
|
|
100
|
+
limit: 20,
|
|
101
|
+
includeGraph: true,
|
|
101
102
|
});
|
|
102
103
|
const knowledgeIssues = await client.listProjectKnowledgeIssues(project.id, {
|
|
103
104
|
onlyOpen: true,
|
|
@@ -107,7 +108,13 @@ await client.rebuildProjectKnowledge(project.id, {
|
|
|
107
108
|
idempotencyKey: `knowledge-rebuild-${project.id}`
|
|
108
109
|
});
|
|
109
110
|
|
|
110
|
-
|
|
111
|
+
const pagesCount = Array.isArray(knowledgePages)
|
|
112
|
+
? knowledgePages.length
|
|
113
|
+
: (knowledgePages?.pages || []).length;
|
|
114
|
+
const graphNodes = Array.isArray(knowledgePages)
|
|
115
|
+
? 0
|
|
116
|
+
: (knowledgePages?.graph?.nodes || []).length;
|
|
117
|
+
console.log(knowledgeStatus.status, pagesCount, knowledgeIssues.length, graphNodes);
|
|
111
118
|
```
|
|
112
119
|
|
|
113
120
|
Project chat suggestion confirmation (when response includes `context_update_suggestion`):
|
|
@@ -180,7 +187,7 @@ Supported project knowledge actions:
|
|
|
180
187
|
- `getProjectIntakeStatus(projectId)`
|
|
181
188
|
- `runProjectIntake(projectId, { mode? })`
|
|
182
189
|
- `getProjectKnowledgeStatus(projectId)`
|
|
183
|
-
- `listProjectKnowledgePages(projectId, { limit? })`
|
|
190
|
+
- `listProjectKnowledgePages(projectId, { limit?, includeGraph? })`
|
|
184
191
|
- `listProjectKnowledgeIssues(projectId, { onlyOpen?, limit? })`
|
|
185
192
|
- `rebuildProjectKnowledge(projectId, { idempotencyKey? })`
|
|
186
193
|
- `confirmProjectContextSuggestion(projectId, suggestionId, { summary, proposedPatch, expiresAt, checksum })`
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -781,6 +781,10 @@ export class EngAIClient {
|
|
|
781
781
|
if (options.limit !== undefined && options.limit !== null) {
|
|
782
782
|
query.set("limit", String(options.limit));
|
|
783
783
|
}
|
|
784
|
+
if (options.includeGraph !== undefined || options.include_graph !== undefined) {
|
|
785
|
+
const includeGraph = options.includeGraph ?? options.include_graph;
|
|
786
|
+
query.set("include_graph", String(!!includeGraph));
|
|
787
|
+
}
|
|
784
788
|
const suffix = query.toString() ? `?${query.toString()}` : "";
|
|
785
789
|
return await this._request(
|
|
786
790
|
`/projects/${encodeURIComponent(normalizedProjectId)}/knowledge/pages${suffix}`,
|