@agentunion/fastaun 0.5.29 → 0.5.31

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.
Files changed (88) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/_packed_docs/CHANGELOG.md +44 -0
  3. package/_packed_docs/INDEX.md +11 -2
  4. package/_packed_docs/KITE_DOCS_GUIDE.md +10 -8
  5. package/_packed_docs/aun/346/265/213/350/257/225/350/277/220/350/241/214/346/214/207/345/215/227.md +18 -1
  6. package/_packed_docs/sdk/0.5.30-SDK/345/272/224/347/224/250/351/233/206/346/210/220/346/214/207/345/215/227.md +61 -0
  7. package/_packed_docs/sdk/0.5.30-SDK/345/274/200/345/217/221/344/270/216/347/247/273/346/244/215/346/214/207/345/215/227.md +68 -0
  8. package/_packed_docs/sdk/0.5.31-SDK/345/272/224/347/224/250/351/233/206/346/210/220/346/214/207/345/215/227.md +162 -0
  9. package/_packed_docs/sdk/0.5.31-SDK/345/274/200/345/217/221/344/270/216/347/247/273/346/244/215/346/214/207/345/215/227.md +167 -0
  10. package/_packed_docs/sdk/AUN_DOCS_GUIDE.md +5 -3
  11. package/_packed_docs/sdk/INDEX.md +9 -1
  12. package/_packed_docs//351/231/214/347/224/237/344/272/272/346/213/222/347/273/235/345/215/217/350/256/256TDD/345/210/206/351/230/266/346/256/265/345/256/236/346/226/275/350/256/241/345/210/222.md +138 -0
  13. package/_packed_docs//351/231/214/347/224/237/344/272/272/346/213/222/347/273/235/345/215/217/350/256/256/350/257/246/347/273/206/350/256/276/350/256/241.md +231 -0
  14. package/dist/agent-md-schema.js +7 -6
  15. package/dist/agent-md-schema.js.map +1 -1
  16. package/dist/agent-md.d.ts +2 -0
  17. package/dist/agent-md.js +33 -10
  18. package/dist/agent-md.js.map +1 -1
  19. package/dist/aid-store.d.ts +1 -0
  20. package/dist/aid-store.js +6 -3
  21. package/dist/aid-store.js.map +1 -1
  22. package/dist/aid.js +1 -1
  23. package/dist/aid.js.map +1 -1
  24. package/dist/auth.js +1 -1
  25. package/dist/auth.js.map +1 -1
  26. package/dist/client/control-messages.d.ts +0 -2
  27. package/dist/client/control-messages.js +79 -108
  28. package/dist/client/control-messages.js.map +1 -1
  29. package/dist/client/lifecycle.js +11 -3
  30. package/dist/client/lifecycle.js.map +1 -1
  31. package/dist/client/rpc-pipeline.d.ts +1 -1
  32. package/dist/client/rpc-pipeline.js +17 -5
  33. package/dist/client/rpc-pipeline.js.map +1 -1
  34. package/dist/client/v2-e2ee.js +7 -7
  35. package/dist/client/v2-e2ee.js.map +1 -1
  36. package/dist/client.d.ts +12 -0
  37. package/dist/client.js +346 -126
  38. package/dist/client.js.map +1 -1
  39. package/dist/config.js +23 -18
  40. package/dist/config.js.map +1 -1
  41. package/dist/discovery.d.ts +1 -0
  42. package/dist/discovery.js +3 -1
  43. package/dist/discovery.js.map +1 -1
  44. package/dist/facades.d.ts +20 -0
  45. package/dist/facades.js +9 -0
  46. package/dist/facades.js.map +1 -1
  47. package/dist/index.d.ts +1 -1
  48. package/dist/index.js.map +1 -1
  49. package/dist/keystore/aid-db.js +14 -2
  50. package/dist/keystore/aid-db.js.map +1 -1
  51. package/dist/keystore/index.d.ts +3 -0
  52. package/dist/keystore/index.js +61 -1
  53. package/dist/keystore/index.js.map +1 -1
  54. package/dist/keystore/local-identity-store.js +112 -76
  55. package/dist/keystore/local-identity-store.js.map +1 -1
  56. package/dist/keystore/local-token-store.js +15 -26
  57. package/dist/keystore/local-token-store.js.map +1 -1
  58. package/dist/ownership-v21.d.ts +2 -2
  59. package/dist/ownership-v21.js +18 -21
  60. package/dist/ownership-v21.js.map +1 -1
  61. package/dist/ownership-workflow.js +7 -4
  62. package/dist/ownership-workflow.js.map +1 -1
  63. package/dist/register-flow.js +4 -3
  64. package/dist/register-flow.js.map +1 -1
  65. package/dist/risk-control.js +2 -2
  66. package/dist/risk-control.js.map +1 -1
  67. package/dist/secret-store/file-store.js +68 -56
  68. package/dist/secret-store/file-store.js.map +1 -1
  69. package/dist/semantic-protocol.d.ts +2 -12
  70. package/dist/semantic-protocol.js +31 -48
  71. package/dist/semantic-protocol.js.map +1 -1
  72. package/dist/storage/lowlevel.d.ts +4 -0
  73. package/dist/storage/lowlevel.js +62 -1
  74. package/dist/storage/lowlevel.js.map +1 -1
  75. package/dist/storage/vfs.d.ts +4 -0
  76. package/dist/storage/vfs.js +55 -12
  77. package/dist/storage/vfs.js.map +1 -1
  78. package/dist/tools/cross-sdk-agent.d.ts +1 -1
  79. package/dist/tools/cross-sdk-agent.js +14 -3
  80. package/dist/tools/cross-sdk-agent.js.map +1 -1
  81. package/dist/transport.d.ts +1 -1
  82. package/dist/transport.js +8 -8
  83. package/dist/transport.js.map +1 -1
  84. package/dist/validators.js +9 -8
  85. package/dist/validators.js.map +1 -1
  86. package/dist/version.d.ts +1 -1
  87. package/dist/version.js +1 -1
  88. package/package.json +1 -1
package/dist/client.d.ts CHANGED
@@ -161,6 +161,8 @@ export declare class AUNClient {
161
161
  private _agentMdManager;
162
162
  private _aidStore?;
163
163
  private _groupIdentityOperations;
164
+ private _entityOwnershipConnection;
165
+ private _entityOwnershipChecks;
164
166
  private _groupIndexMetaCache;
165
167
  /** 消息序列号跟踪器(群消息 + P2P 空洞检测) */
166
168
  private _p2pPeerPullEnabled;
@@ -235,6 +237,8 @@ export declare class AUNClient {
235
237
  private _reconnectTask;
236
238
  private _reconnectEventDispatchDepth;
237
239
  private _gatewayConnectionId;
240
+ private _gatewayRuntimeIdentity;
241
+ private _gatewayReleaseRevision;
238
242
  private _negotiatedCapabilities;
239
243
  private _riskNegotiated;
240
244
  private _riskRestoredAid;
@@ -397,6 +401,10 @@ export declare class AUNClient {
397
401
  * 自动处理内部方法限制、E2EE 加解密、客户端签名等。
398
402
  */
399
403
  call(method: string, params?: RpcParams): Promise<RpcResult>;
404
+ private _entityOwnershipGuard;
405
+ private _prepareEntityOwnershipLifecycle;
406
+ private _checkEntityOwnershipOnAccess;
407
+ private _completeEntityOwnership;
400
408
  private _maybeHandleHalfOpenRpcFailure;
401
409
  _recoverIdentityAdmission(err: unknown, _method?: string, params?: RpcParams): Promise<boolean>;
402
410
  private _ensureInitialAgentMd;
@@ -404,6 +412,7 @@ export declare class AUNClient {
404
412
  private _runGroupIdentityOperation;
405
413
  private _resumeOrgRequest;
406
414
  createOrg(params?: RpcParams, options?: OrgIdentityOptions): Promise<RpcResult>;
415
+ private _createOrg;
407
416
  private _resumeOrgIdentityAfterConnect;
408
417
  private _verifyOrgTransferMaterials;
409
418
  completeOrgTransfer(params?: RpcParams, options?: OrgIdentityOptions): Promise<RpcResult>;
@@ -418,6 +427,8 @@ export declare class AUNClient {
418
427
  private _freshEntityCertificate;
419
428
  private _freshEntitySigner;
420
429
  private _resolveEntityAgentMdOwner;
430
+ private _entityLifecycle;
431
+ private _entityLifecycleOwner;
421
432
  bindGroupAid(params?: RpcParams, options?: BindGroupAidOptions): Promise<RpcResult>;
422
433
  startGroupTransfer(params?: RpcParams, options?: CompleteGroupTransferOptions): Promise<RpcResult>;
423
434
  renewGroupAid(params?: RpcParams, options?: BindGroupAidOptions): Promise<RpcResult>;
@@ -648,6 +659,7 @@ export declare class AUNClient {
648
659
  private _unrefTimer;
649
660
  /** 不重连 close code 集合:认证失败/权限错误/被踢等,重连无意义 */
650
661
  private static readonly _NO_RECONNECT_CODES;
662
+ private _bindGatewayRuntimeIdentity;
651
663
  private _onGatewayMigrate;
652
664
  private _runGatewayMigration;
653
665
  /** 处理服务端主动断开通知 event/gateway.disconnect。