Quick Start: TypeScript mediation example calls ConnectionsManager with missing arguments
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 88/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
阅读 documentation/develop/quick-start.md 中的 TypeScript mediation 示例(第 375–402 行),并将其中对 ConnectionsManager 的调用与固定版本 SDK v6.6.0 源码 src/edge-agent/connectionsManager/ConnectionsManager.ts 中的构造函数进行比较。更新示例以提供所需依赖,然后根据该构造函数验证 handler 已定义且调用通过类型检查。
由索引模型根据 Issue 内容生成。
描述
User impact
Developers copying the Quick Start's "establish mediation when building your own application" TypeScript example cannot construct the connection manager at the SDK version the page itself selects. The call supplies four arguments, so the mediator handler is passed into the Pollux position and the required mediation-handler argument is missing. Starting the agent then reaches mediation setup with an undefined handler instead of a working manager.
Affected documentation and ownership
- Page URL and observed deployment/time: https://identus.io/documentation/develop/quick-start/ — GET 200 (after a 301 from the no-slash form) on 2026-10-29T16:56:40Z; the deployed HTML contains the same snippet.
- Documentation source permalink and revision: documentation/develop/quick-start.md, TypeScript mediation example lines 375–402 (defective call at line 388), revision
fa985dfa33caefa45bf1e9009e1f6f5a445344fb. - Editable owning source: the same file in
hyperledger-identus/docs. Hand-authored portal Markdown, not imported SDK documentation or generated API output. - Intended component version and evidence establishing it: the page's SDK checkout instructions select tag v6.6.0 (quick-start lines 216–220), which resolves to commit
1a9da8135ec5745bca182904f0a1703d7be6d1a2. The page selects no other SDK version for this snippet.
Observed versus expected
The page example calls:
const manager = new SDK.ConnectionsManager(castor, mercury, pluto, handler);
At the selected v6.6.0 commit, ConnectionsManager requires five positional dependencies before the optional arguments (ConnectionsManager.ts lines 70–78):
constructor(
public castor: Castor,
public mercury: Mercury,
public pluto: Pluto,
public pollux: Pollux,
public mediationHandler: MediatorHandler,
public pairings: DIDPair[] = [],
public options?: AgentOptions
)
With the page's four arguments, handler binds to pollux, and mediationHandler is undefined. The manager's startMediator() calls this.mediationHandler.bootRegisteredMediator().
Expected: the example supplies the dependencies the selected SDK requires, so the copied code type-checks and agent start can begin mediation.
The rest of the snippet is consistent with v6.6.0: SDK.Agent resolves to edge-agent/didcomm/Agent (src/index.ts lines 10–11), whose constructor takes apollo, castor, pluto, mercury, mediationHandler, connectionManager, seed, ... (Agent.ts lines 62–72). The defect is the manager construction, not a comparison against an unrelated base Agent class.
Evidence and reproduction
Static comparison at immutable revisions, observed 2026-10-29T16:57:35Z:
- Read the page snippet in the current source at
fa985dfand in the saved deployed HTML. - Read the v6.6.0
ConnectionsManagerconstructor andstartMediator()inhyperledger-identus/sdk-tsat1a9da81. - Count the page's arguments (4) against the constructor's required parameters (5).
Limitations: no TypeScript compiler, build or agent run was executed. Execution was blocked because no disposable credential-free check environment was established. This is a source-level contradiction with the page's own selected version, not a runtime trace.
Existing work checked
Searched open and closed issues and PRs in hyperledger-identus/docs (full title inventory of 62 issues and 238 PRs) and in hyperledger-identus/sdk-ts, by ConnectionsManager, Pollux, mediation, code example and quick start, and read matching bodies and discussion.
- The seven open Quick Start issues #290–#296 cover startup paths, schema examples, offer/response IDs, demo controls and manual issuance attribution; none covers this mediation constructor snippet.
- sdk-ts PR #394 (
feat!: refactor ConnectionManager) is the SDK-side API change that the portal example did not follow; it is not a documentation repair. - No open issue or PR repairs this example.
Acceptance criteria
- The TypeScript mediation example constructs
ConnectionsManagerwith the dependencies required by the page's selected SDK version. - Verification against the pinned v6.6.0 source, or a type-check/build in a disposable environment, shows the example compiles and reaches mediation setup with a defined handler.
- 主要语言
- TypeScript
- 星标
- 15
- 派生
- 8
- 平均合并
- 3 天 14 小时
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hyperledger-identus/docs 的其他 Issue
-
bug documentation ready-for-agent
难度 1/5 1 小时以内 新手友好度 85/100
hyperledger-identus/docs#303 · 1 条评论 ·
-
bug documentation ready-for-agent
难度 1/5 1 小时以内 新手友好度 88/100
hyperledger-identus/docs#301 · 1 条评论 ·
-
bug documentation ready-for-agent
难度 2/5 1-3 小时 新手友好度 78/100
hyperledger-identus/docs#299 · 1 条评论 ·
-
bug documentation ready-for-agent
难度 2/5 1-3 小时 新手友好度 74/100
hyperledger-identus/docs#298 · 1 条评论 ·
-
bug documentation ready-for-agent
难度 1/5 1-3 小时 新手友好度 84/100
hyperledger-identus/docs#297 · 1 条评论 ·
查看 hyperledger-identus/docs 的全部 Issue
相似的 Issue
-
Replace discontinued crypto-js in the theme可能已有人在做 @aelmanaa 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
PaloAltoNetworks/docusaurus-openapi-docs#1689 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
solana-foundation/solana-web3.js#4015 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
documentation
难度 1/5 1-3 小时 新手友好度 90/100
ivopogace/opencode-courier#422 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
chapel-lang/chapel-vscode#158 ·
维护者通常 1 天内回复