Repository navigation
docs: 补充 VSIX、npm 与 Agent 安装提示词 - #60
Merged
Merged
Conversation
Document the three install paths with the commands the packager and postinstall actually run, including a short prompt an agent can execute.
JSON mode holds no SSE stream, so an 80ms idle TTL was shorter than the gap between client.connect POSTs on a loaded Node 20 runner. The test override is now 3s, still far under the 30-minute product default, and the sweep assertion waits until after that window.
Roarpeng
marked this pull request as ready for review
October 7, 2026 09:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
为什么
安装说明没有一段能直接交给编程 Agent 的短提示词。另外 Node 20 的
validate在tests/mcp-http-session-ttl.test.ts里失败:JSON 模式没有 SSE 流,sessionTtlMs: 80短于client.connect两次 POST 之间的间隔,会话在握手中被清掉。改动
README.md与README.zh.md在快速开始前增加三条安装路径:手动 VSIX、npm install -g @roarpeng/graphflow、以及一段可复制的 Agent 提示词。命令与npm run package:extension、全局 postinstall、graphflow install/doctor --json/install --host一致。HANDSHAKE_SAFE_TTL_MS),扫除间隔 200ms,握手结束并关闭客户端后再静默等待超过该窗口。产品默认仍是 30 分钟。环境变量覆盖用例使用同一个窗口,避免同样在client.connect里过期。已合并 main(含 #58)。
验证
npx vitest run tests/mcp-http-session-ttl.test.ts— 5 passednpx vitest run tests/m48-doc-code-consistency.test.ts— 9 passed(提交钩子)