@eng-ai/sdk 2.8.0 → 2.8.1

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,14 @@
2
2
 
3
3
  All notable changes to `@eng-ai/sdk` will be documented in this file.
4
4
 
5
+ ## 2.8.1 - 2026-04-09
6
+
7
+ ### Added
8
+
9
+ - External Project Knowledge pages API (v2) in SDK:
10
+ - `listProjectKnowledgePages(projectId, { limit? })`
11
+ - Enables external integrations to inspect compiled knowledge pages (`wiki/index/log`) for user-facing observability.
12
+
5
13
  ## 2.8.0 - 2026-04-09
6
14
 
7
15
  ### Added
package/README.md CHANGED
@@ -85,6 +85,9 @@ Project knowledge (status, lint issues, manual rebuild):
85
85
 
86
86
  ```js
87
87
  const knowledgeStatus = await client.getProjectKnowledgeStatus(project.id);
88
+ const knowledgePages = await client.listProjectKnowledgePages(project.id, {
89
+ limit: 20
90
+ });
88
91
  const knowledgeIssues = await client.listProjectKnowledgeIssues(project.id, {
89
92
  onlyOpen: true,
90
93
  limit: 10
@@ -93,7 +96,7 @@ await client.rebuildProjectKnowledge(project.id, {
93
96
  idempotencyKey: `knowledge-rebuild-${project.id}`
94
97
  });
95
98
 
96
- console.log(knowledgeStatus.status, knowledgeIssues.length);
99
+ console.log(knowledgeStatus.status, knowledgePages.length, knowledgeIssues.length);
97
100
  ```
98
101
 
99
102
  Project documents (tags, filters, upload, update):
@@ -145,6 +148,7 @@ Supported automation plan actions:
145
148
  Supported project knowledge actions:
146
149
 
147
150
  - `getProjectKnowledgeStatus(projectId)`
151
+ - `listProjectKnowledgePages(projectId, { limit? })`
148
152
  - `listProjectKnowledgeIssues(projectId, { onlyOpen?, limit? })`
149
153
  - `rebuildProjectKnowledge(projectId, { idempotencyKey? })`
150
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eng-ai/sdk",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
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
@@ -706,6 +706,21 @@ export class EngAIClient {
706
706
  );
707
707
  }
708
708
 
709
+ async listProjectKnowledgePages(projectId, options = {}) {
710
+ const normalizedProjectId = this._requireNonEmptyString(projectId, "projectId");
711
+ const query = new URLSearchParams();
712
+ if (options.limit !== undefined && options.limit !== null) {
713
+ query.set("limit", String(options.limit));
714
+ }
715
+ const suffix = query.toString() ? `?${query.toString()}` : "";
716
+ return await this._request(
717
+ `/projects/${encodeURIComponent(normalizedProjectId)}/knowledge/pages${suffix}`,
718
+ {
719
+ method: "GET",
720
+ }
721
+ );
722
+ }
723
+
709
724
  async rebuildProjectKnowledge(projectId, options = {}) {
710
725
  const normalizedProjectId = this._requireNonEmptyString(projectId, "projectId");
711
726
  const headers = {};