@eng-ai/sdk 2.8.3 → 2.8.4

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 CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to `@eng-ai/sdk` will be documented in this file.
4
4
 
5
+ ## 2.8.4 - 2026-04-09
6
+
7
+ ### Added
8
+
9
+ - Project Knowledge pages now support graph payload in SDK:
10
+ - `listProjectKnowledgePages(projectId, { limit?, includeGraph? })`
11
+ - When `includeGraph=true`, API may return envelope with:
12
+ - `pages`
13
+ - `graph`
14
+ - `graph_meta`
15
+
16
+ ### Changed
17
+
18
+ - README updated with graph-enabled knowledge pages example.
19
+
5
20
  ## 2.8.3 - 2026-04-09
6
21
 
7
22
  ### 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
- console.log(knowledgeStatus.status, knowledgePages.length, knowledgeIssues.length);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eng-ai/sdk",
3
- "version": "2.8.3",
3
+ "version": "2.8.4",
4
4
  "description": "Official JavaScript SDK for ENG-AI External API v2",
5
5
  "type": "module",
6
6
  "main": "./src/client.js",
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}`,