Skip to content

docs: 补充 VSIX、npm 与 Agent 安装提示词 - #60

Merged
Roarpeng merged 3 commits into
mainfrom
cursor/agent-install-prompt-5e95
Oct 7, 2026
Merged

Roarpeng merged 3 commits into
mainfrom
cursor/agent-install-prompt-5e95

Conversation

@Roarpeng

@Roarpeng Roarpeng commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

为什么

安装说明没有一段能直接交给编程 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 一致。
  • 测试里的空闲 TTL 改为 3 秒(HANDSHAKE_SAFE_TTL_MS),扫除间隔 200ms,握手结束并关闭客户端后再静默等待超过该窗口。产品默认仍是 30 分钟。环境变量覆盖用例使用同一个窗口,避免同样在 client.connect 里过期。

已合并 main(含 #58)。

验证

  • npx vitest run tests/mcp-http-session-ttl.test.ts — 5 passed
  • npx vitest run tests/m48-doc-code-consistency.test.ts — 9 passed(提交钩子)
Open in Web Open in Cursor 

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
Roarpeng marked this pull request as ready for review October 7, 2026 09:58
@Roarpeng
Roarpeng merged commit 4ce5ccf into main Oct 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants