@sanqianx/project-knowledge 5.0.9-rc.16 → 5.0.9-rc.17

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.
@@ -9,7 +9,7 @@
9
9
  "plugins": [
10
10
  {
11
11
  "name": "project-knowledge",
12
- "version": "5.0.9-rc.16",
12
+ "version": "5.0.9-rc.17",
13
13
  "source": "./plugins/project-knowledge",
14
14
  "description": "Search durable project decisions and implementation history through MCP."
15
15
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## [5.0.9-rc.17] - 2026-10-11
4
+
5
+ - Pin Workbench 0.13.2-rc.6. Repeated embedded notifications for the current
6
+ project no longer abandon a newly created session; real project changes and
7
+ late project lookups still preserve isolation and per-project drafts.
8
+ - Keep a healthy progress stream labelled as connected on redundant online
9
+ events. Verify actual offline cleanup, snapshot recovery and exactly one
10
+ restored SSE connection with a real browser and HTTP proxy.
11
+ - Preserve the rc.16 real Workbench failure and require official-package
12
+ streaming/citation acceptance before upgrading the actual user instance.
13
+ - No data reset or third-party configuration overwrite. Stable latest remains
14
+ behind the full candidate and installed-product acceptance gates.
15
+
3
16
  ## [5.0.9-rc.16] - 2026-10-11
4
17
 
5
18
  - Pin Workbench 0.13.2-rc.5. Bound OpenCode's health request at both
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+ const assert = require('node:assert/strict');
3
+ const fs = require('node:fs');
4
+ const os = require('node:os');
5
+ const path = require('node:path');
6
+ const http = require('node:http');
7
+ const { spawnServer } = require('./helpers/spawn-server');
8
+ const { findChrome } = require('./helpers/find-chrome');
9
+ const { launchCdpBrowser, waitFor } = require('./helpers/cdp-browser');
10
+
11
+ const ROOT = path.resolve(__dirname, '../..');
12
+ async function main() {
13
+ const fixture = fs.mkdtempSync(path.join(os.tmpdir(), 'pk-product-progress-'));
14
+ const snapshot = { projects: [], runs: [], events: [], memories: [], sharedScopes: [] };
15
+ let connections = 0, snapshots = 0, healthRequests = 0;
16
+ const streams = new Set();
17
+ const upstream = http.createServer((req, res) => {
18
+ if (req.url === '/api/progress') {
19
+ connections++; streams.add(res); res.on('close', () => streams.delete(res));
20
+ res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Cache-Control': 'no-cache' });
21
+ res.write(`event: snapshot\ndata: ${JSON.stringify(snapshot)}\n\n`);
22
+ return;
23
+ }
24
+ req.resume();
25
+ if (req.url === '/api/snapshot') snapshots++;
26
+ if (req.url.includes('/health')) healthRequests++;
27
+ res.writeHead(200, { 'Content-Type': 'application/json' });
28
+ res.end(JSON.stringify(req.url === '/api/snapshot' ? snapshot : req.url === '/api/projects' ? { projects: [] } : { ok: true, name: 'knowledge-engine', dataSchemaVersion: 3 }));
29
+ });
30
+ await new Promise(resolve => upstream.listen(0, '127.0.0.1', resolve));
31
+ const moduleUrl = `http://127.0.0.1:${upstream.address().port}`;
32
+ const port = 8400 + process.pid % 200;
33
+ const base = `http://127.0.0.1:${port}`;
34
+ const server = spawnServer({ root: ROOT, port, dataDir: path.join(fixture, 'data'), analysisOwner: 'engine', tag: 'product-progress', extraEnv: {
35
+ KB_TERMINAL_URL: moduleUrl, KB_VECTORHUB_URL: moduleUrl,
36
+ KB_EVENTBRIDGE_URL: moduleUrl, KB_KNOWLEDGE_ENGINE_URL: moduleUrl,
37
+ } });
38
+ let browser;
39
+ try {
40
+ await waitFor(async () => { try { return (await fetch(base + '/api/health')).ok; } catch { return false; } }, 'isolated product', 20000);
41
+ browser = await launchCdpBrowser({ chrome: findChrome(), profileDir: path.join(fixture, 'browser'), url: base, width: 1920, height: 1080 });
42
+ await browser.setViewport(1920, 1080);
43
+ const run = expression => browser.evaluate(expression);
44
+ const status = () => run("document.getElementById('activityConnection').textContent");
45
+ await waitFor(async () => await status() === '已连接实时更新', 'initial SSE snapshot');
46
+ assert.equal(connections, 1);
47
+ for (let attempt = 0; attempt < 2; attempt++) {
48
+ const beforeHealth = healthRequests, beforeSnapshot = snapshots;
49
+ await run("window.dispatchEvent(new Event('online'))");
50
+ await waitFor(() => healthRequests > beforeHealth && snapshots > beforeSnapshot, 'online registry and snapshot refresh');
51
+ assert.equal(await status(), '已连接实时更新', 'a duplicate online event must not leave a healthy stream labelled as recovering');
52
+ assert.equal(connections, 1, 'a redundant online receipt cannot create another progress subscription');
53
+ }
54
+ await browser.send('Network.enable');
55
+ await browser.send('Network.emulateNetworkConditions', { offline: true, latency: 0, downloadThroughput: -1, uploadThroughput: -1 });
56
+ await waitFor(async () => (await status()).includes('连接中断'), 'genuine offline feedback');
57
+ await waitFor(() => streams.size === 0, 'offline closes the upstream stream');
58
+ await browser.send('Network.emulateNetworkConditions', { offline: false, latency: 0, downloadThroughput: -1, uploadThroughput: -1 });
59
+ await waitFor(async () => await status() === '已连接实时更新' && connections === 2, 'new snapshot and stream after real reconnection');
60
+ assert.equal(streams.size, 1);
61
+ assert.equal(browser.exceptions.length, 0);
62
+ console.log('product-progress-status-test PASS (real product/browser/proxy/SSE; duplicate online stays connected; real offline reconnects once)');
63
+ } finally {
64
+ await browser?.close(); await server.cleanup();
65
+ upstream.closeAllConnections(); await new Promise(resolve => upstream.close(resolve));
66
+ assert.equal(path.dirname(fixture), path.resolve(os.tmpdir())); assert.ok(path.basename(fixture).startsWith('pk-product-progress-'));
67
+ fs.rmSync(fixture, { recursive: true, force: true, maxRetries: 3, retryDelay: 100 });
68
+ }
69
+ }
70
+ main().catch(error => { console.error(error.stack || error.message); process.exitCode = 1; });
@@ -2,7 +2,7 @@
2
2
  "schema": "project-knowledge/module-content/v1",
3
3
  "productFiles": {
4
4
  "ui/index.html": "5cc3f9519a0671e7d5b24a94987a96b7ee81d3ed3367e3c02cd70934f08e64c8",
5
- "ui/product.js": "714295970c175e4ada8155422dd3b1a013e9f452efc713f528373b36030ca26d",
5
+ "ui/product.js": "e7ac0fc1d1d515039f981ed8481155d112034dc4961a2e7259864720f54c83ea",
6
6
  "ui/product.css": "70547d3f2c53b6cc5c73cb95eb8cb3faf0dc8ccee7cd6b11a89a88885de7c3f8",
7
7
  "ui/favicon.svg": "c48be946b224112ebb0238b44263f7a61bda31e531afa895c2e9801c0ff24f32"
8
8
  },
@@ -10,12 +10,12 @@
10
10
  "terminal": {
11
11
  "name": "@sanqianx/claude-ai-workbench",
12
12
  "installName": "claude-ai-workbench",
13
- "version": "0.13.2-rc.5",
13
+ "version": "0.13.2-rc.6",
14
14
  "files": {
15
15
  "LICENSE": "c1b9df1275e769f3dbab000d1e457a2d4b0f28eb5da6c77e48dc37eeba202ed7",
16
- "README.md": "514097cc681e79b9e29c04fcd60cc567f5e896b6d8415fd1e643da0b18772b48",
16
+ "README.md": "5a382c531372deaa63b3e014f4dbd077d41ce02efee40347973463081848cb86",
17
17
  "apps/agent-terminal/app.css": "39cc65ac65bcb390f4aa21d9b783182ca229557f6bec15090f69598120161917",
18
- "apps/agent-terminal/app.js": "2fedcc79f9515ebae89d1c7dc996d732aa1d0946038eaaa045438121bf27f551",
18
+ "apps/agent-terminal/app.js": "16486a5def42174f6ce75fcf3866b6eb965a56eae827b0b4f91882346ab6f1df",
19
19
  "apps/agent-terminal/index.html": "6a52ba210696c8aed99e2786e21d2771340070d51583199dd74c8da41edf0257",
20
20
  "apps/ai-profile-settings-host/index.html": "bc158f68954506d2b8e43c690f28dbe931eff9a02b1524855ac17e74ea4df736",
21
21
  "apps/ai-profile-settings-host/page.css": "8b75cbf7f1ea5aaa92f2889390720ece310a8fd4b9ca38c890fa447d4323a557",
@@ -27,20 +27,20 @@
27
27
  "apps/minimal-test-host/README.md": "fa73136f4ee3865c2d91eb97b2e8c03679aa4688e44c1e1c8ec6e27d604b0de5",
28
28
  "docs/sdk/FILE_LAYOUT.md": "17882f96505c8161bfb66876684b9d2d3f50021a111b8b844502d3cb4e97870a",
29
29
  "docs/sdk/INTEGRATION.md": "d4c0c80d2d2fc610205102d703a429bfaa20f9f3a48f1718f5bab02ee90138df",
30
- "docs/sdk/openapi.yaml": "a8d38234527724917063bf48b90181d807d35fb69b0103d2dcab88d5bd355400",
30
+ "docs/sdk/openapi.yaml": "43f4476ce8511efb5668f3236cd3e27de890c171eedb2366670626754b9247e6",
31
31
  "docs/sdk/README.md": "7ab591d39c36a3b84cfdf487ff567040ec453975f3ef0fba86dc822094667b61",
32
- "package.json": "35991e7dd59ed2e1ffce8187d6b6e8b569b645a5c573453d0aa0d2f87355bdfa",
32
+ "package.json": "34e4bf492c3095d74ed04d9e3d8c9d288e07f681566622ce12621a27e83533c1",
33
33
  "packages/client/index.d.ts": "fb66b7b21ac936cddcb7f74543cf4f3bb7e80c169534ec249ab8ef2356224162",
34
34
  "packages/client/index.js": "92fe5ddd32289d729f336f669e47bd9601e562f5a4309ee4fa7f7f15b567edc2",
35
- "packages/client/package.json": "a91ce48904429c67c7f460d7e1cb424f52d36e784c3318677bea0a24beddd48f",
35
+ "packages/client/package.json": "287b0669ef32b04986596ef0fede6d3b07025814548127b9d1edda0dca9c6fc5",
36
36
  "packages/client/README.md": "342dff9b1dcbc85fccc9b980ed3e4e455aa71133af1d0805b8431ea2ac564ef8",
37
37
  "packages/contracts/index.d.ts": "edc717067bfb864c6c95df0c408a799fbf90b7552519131e6dc35af3f9eb9006",
38
38
  "packages/contracts/index.js": "565b4a88190dbb8994cd0a9309b30b00f64305d65505fff9fa360d7ce69dfb58",
39
- "packages/contracts/package.json": "b70a3f0c47c6aeafc82c8095a0877fb2e5acb53dc9416924c93bb710d18d748f",
39
+ "packages/contracts/package.json": "0902c2cd6e262823d774d8d2cd07c0726680e8f26d4f06afc80aa385c9a4524b",
40
40
  "packages/contracts/README.md": "44d83a3cc508cec6c5c20dfa1f2c08d5ea03e3afb2853639fdc0a9cc8eb5b9c8",
41
41
  "packages/core/index.d.ts": "c95b24a13f8aeeb128497833cf298790563baca6036ea5d29a9d8daff53199d7",
42
42
  "packages/core/index.js": "5579ceb1a63d3f962f5656c75f82cf60cd834fd270b4aa95e581bf38e4432448",
43
- "packages/core/package.json": "6014f4fa87dba65ccb98446b37b3f1178e6201025700adf5f3ac16176562bea3",
43
+ "packages/core/package.json": "0d4672540365af4a40028e0cd0f2f838e73936d4ae3d11fa71f7770289a36b38",
44
44
  "packages/core/README.md": "e222c546104a168f1038d95c6c4efb8e5603edd6145ab2cab79cab977fb710e5",
45
45
  "packages/server/bin/agent-terminal-server.js": "043dff4d76e3fd213b666a55e581ed1e72f9e5b8de6cb798fbf42bd39ed26861",
46
46
  "packages/server/bin/claude-workbench-server.js": "b03c730b6d86faf6974afea26c74109d59b1bbc1ecc656c1d6270258708694ac",
@@ -74,7 +74,7 @@
74
74
  "packages/server/lib/system-doctor.js": "2b0e858d69d8fb268eaed950c9883473ee9850684b532bc2db8e14674a974919",
75
75
  "packages/server/lib/ui-preferences-store.js": "e108cb22e7cc1f3438704913d5401e01de2c0e717eb2abd3bdc4727209393819",
76
76
  "packages/server/lib/workbench-service.js": "92b9323db8742bbdd69abd111c81cab86b225103596f6818b007fbfe2376fc6f",
77
- "packages/server/package.json": "7b8f95ecb73936a377809dc95bf5210e04ffa708958f9a8d32bd867409791703",
77
+ "packages/server/package.json": "5d0256b88560fb71b7ed544d0799749e3bee3915326c3513a605a5574283b2b9",
78
78
  "packages/server/README.md": "a34cfaa4f4e859008b44e2be8e1aafb56e97fe83e6129c968a8562945fa843f3",
79
79
  "packages/ui/ai-profile-settings.d.ts": "0551b6c6eda6d18ea89a976daddf01b2161195f4874fe2d67a57cd9ecc6ce643",
80
80
  "packages/ui/ai-profile-settings.js": "e92bbac67a1199d473e4e44b32d1cc76c5b6c79306d4fef9d9067a1bb6ec42ca",
@@ -82,7 +82,7 @@
82
82
  "packages/ui/claude-terminal.js": "96bd217a4a7e4792ae3fbaaf46249ecee13b0f4e01fc6d25a1b8b22d8f8fe00c",
83
83
  "packages/ui/index.d.ts": "e547ab39640fe7519fb367b78442dc8a2c51b2efd17b66f8b0a003b154b36ead",
84
84
  "packages/ui/index.js": "f4394aabd395938f5c3fe587e430471d4033e83945a9b9c7e0149ad4040982c9",
85
- "packages/ui/package.json": "de838d552b22a23dbfc1c426628953adc5f9f284a2b2a028b16a2061f8560e6d",
85
+ "packages/ui/package.json": "3710b0d80c29435e9845cea8e03ec056cee5818d360a653c2c6fbc9de47b7ab1",
86
86
  "packages/ui/README.md": "793c4a9c286fee23f39062a1976ca3afe9d2816dcdb55e156ba940e1ef514f89",
87
87
  "packages/ui/theme.css": "8f03a081272a7db11b196f7a70d0fafb1f8d954778f329f1ba53d110d9d5fd98",
88
88
  "src/assets/claude-prompts.json": "cb111f2e0a45afe8a31c251a504d1ab5375966ed61291660e61fd2efd77f6d9f",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanqianx/project-knowledge",
3
- "version": "5.0.9-rc.16",
3
+ "version": "5.0.9-rc.17",
4
4
  "description": "Knowledge base manager with Git integration, AI-driven analysis, and bilingual (zh-CN/en-US) knowledge output",
5
5
  "main": "_site/server.js",
6
6
  "scripts": {
@@ -84,7 +84,7 @@
84
84
  "@sanqianx/vector-hub": "1.0.8-rc.3",
85
85
  "buffer": "^6.0.3",
86
86
  "cheerio": "^1.2.0",
87
- "claude-ai-workbench": "npm:@sanqianx/claude-ai-workbench@0.13.2-rc.5",
87
+ "claude-ai-workbench": "npm:@sanqianx/claude-ai-workbench@0.13.2-rc.6",
88
88
  "cross-spawn": "7.0.6",
89
89
  "dotenv": "^17.4.2",
90
90
  "gpt-tokenizer": "^3.4.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json",
3
3
  "name": "project-knowledge",
4
- "version": "5.0.9-rc.16",
4
+ "version": "5.0.9-rc.17",
5
5
  "description": "Read durable project decisions and implementation history from Project Knowledge.",
6
6
  "author": {
7
7
  "name": "SanQianX",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "project-knowledge",
3
- "version": "5.0.9-rc.16",
3
+ "version": "5.0.9-rc.17",
4
4
  "description": "Read durable project decisions and implementation history from Project Knowledge.",
5
5
  "author": {
6
6
  "name": "SanQianX",
@@ -6,7 +6,7 @@
6
6
  "args": [
7
7
  "-y",
8
8
  "--package",
9
- "@sanqianx/project-knowledge@5.0.9-rc.16",
9
+ "@sanqianx/project-knowledge@5.0.9-rc.17",
10
10
  "project-knowledge-mcp"
11
11
  ]
12
12
  }
package/ui/product.js CHANGED
@@ -451,7 +451,7 @@
451
451
  renderSystem(); render();
452
452
  });
453
453
  window.addEventListener('online', () => {
454
- $('activityConnection').textContent = '正在恢复快照'; refreshRegistry();
454
+ $('activityConnection').textContent = state.engineAvailable && state.stream?.readyState === EventSource.OPEN ? '已连接实时更新' : '正在恢复快照'; refreshRegistry();
455
455
  if ($('logsDialog').open) loadLogs().catch(error => toast(error.message));
456
456
  });
457
457
  window.addEventListener('beforeunload', () => { state.stream?.close(); logStream?.close(); });