@agentunion/fastaun 0.4.1 → 0.4.2

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
@@ -6,6 +6,22 @@
6
6
 
7
7
  ---
8
8
 
9
+ ## 0.4.2 — 2026-05-30
10
+
11
+ ### Added
12
+ - **`AIDStore` 新增具名返回类型**:`ResolveResult`、`FetchAgentMdResult`、`HeadAgentMdResult`、`CheckAgentMdResult`、`DiagnoseResult`、`RenewCertResult`、`RekeyResult`、`ChangeSeedResult`、`ListResult`,替代原来的 `Record<string, unknown>`。
13
+ - **`AID` 新增 `verifySsl` 只读字段**:创建时由 `AIDStore` 注入,供内部 HTTP 请求使用。
14
+ - **`AUNClientOptions` 新增 `rootCaPath` / `debug`**:支持私有部署自定义根证书路径,以及构造时直接传入调试开关。
15
+
16
+ ### Changed
17
+ - **移除 `discoveryPort`**:`AIDStore` 构造选项删除 `discoveryPort`,gateway URL 改为纯自动发现。
18
+ - **`fetchAgentMd` 新增 `timeoutMs` 参数**(默认 30000ms),`resolve` 内部调用时透传 `opts.timeout`(默认 10000ms)。
19
+ - **返回字段精简**:`fetchAgentMd` / `headAgentMd` / `checkAgentMd` / `diagnose` 移除冗余的 camelCase 别名字段,统一使用 snake_case。
20
+ - **`resolve` 返回 `source` 字段精简**:移除 `certFromCache` / `agentMdFetched` camelCase 别名,只保留 `cert_from_cache` / `agent_md_fetched`。
21
+ - **`AID._create` 透传 `verifySsl` / `rootCaPath` / `debug`**:`AIDStore` 在 `load` / `resolve` 时自动注入这三个配置项到 `AID` 实例。
22
+
23
+ ---
24
+
9
25
  ## 0.4.0 — 2026-05-30
10
26
 
11
27
  > **破坏性重构版本。** 与 Python SDK 0.4.0 对齐:身份管理剥离为 `AID` / `AIDStore`;删除 `auth` / `custody` / `meta` 公开命名空间;引入 `Result` 与字符串错误码;连接状态机扩展为 9 态。
@@ -6,6 +6,22 @@
6
6
 
7
7
  ---
8
8
 
9
+ ## 0.4.2 — 2026-05-30
10
+
11
+ ### Added
12
+ - **`AIDStore` 新增具名返回类型**:`ResolveResult`、`FetchAgentMdResult`、`HeadAgentMdResult`、`CheckAgentMdResult`、`DiagnoseResult`、`RenewCertResult`、`RekeyResult`、`ChangeSeedResult`、`ListResult`,替代原来的 `Record<string, unknown>`。
13
+ - **`AID` 新增 `verifySsl` 只读字段**:创建时由 `AIDStore` 注入,供内部 HTTP 请求使用。
14
+ - **`AUNClientOptions` 新增 `rootCaPath` / `debug`**:支持私有部署自定义根证书路径,以及构造时直接传入调试开关。
15
+
16
+ ### Changed
17
+ - **移除 `discoveryPort`**:`AIDStore` 构造选项删除 `discoveryPort`,gateway URL 改为纯自动发现。
18
+ - **`fetchAgentMd` 新增 `timeoutMs` 参数**(默认 30000ms),`resolve` 内部调用时透传 `opts.timeout`(默认 10000ms)。
19
+ - **返回字段精简**:`fetchAgentMd` / `headAgentMd` / `checkAgentMd` / `diagnose` 移除冗余的 camelCase 别名字段,统一使用 snake_case。
20
+ - **`resolve` 返回 `source` 字段精简**:移除 `certFromCache` / `agentMdFetched` camelCase 别名,只保留 `cert_from_cache` / `agent_md_fetched`。
21
+ - **`AID._create` 透传 `verifySsl` / `rootCaPath` / `debug`**:`AIDStore` 在 `load` / `resolve` 时自动注入这三个配置项到 `AID` 实例。
22
+
23
+ ---
24
+
9
25
  ## 0.4.0 — 2026-05-30
10
26
 
11
27
  > **破坏性重构版本。** 与 Python SDK 0.4.0 对齐:身份管理剥离为 `AID` / `AIDStore`;删除 `auth` / `custody` / `meta` 公开命名空间;引入 `Result` 与字符串错误码;连接状态机扩展为 9 态。
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.4.1";
1
+ export declare const VERSION = "0.4.2";
package/dist/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // AUN SDK 版本号(单一事实来源)。
2
2
  // 所有引用点(index.ts / auth.ts / v2/e2ee/encrypt-p2p.ts)统一从此导入,
3
3
  // 避免多处独立定义导致版本号不一致。
4
- export const VERSION = '0.4.1';
4
+ export const VERSION = '0.4.2';
5
5
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentunion/fastaun",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "AUN Protocol Core SDK for Node.js",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",