@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.
- package/CHANGELOG.md +44 -0
- package/_packed_docs/CHANGELOG.md +44 -0
- package/_packed_docs/INDEX.md +11 -2
- package/_packed_docs/KITE_DOCS_GUIDE.md +10 -8
- 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
- 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
- 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
- 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
- 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
- package/_packed_docs/sdk/AUN_DOCS_GUIDE.md +5 -3
- package/_packed_docs/sdk/INDEX.md +9 -1
- 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
- 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
- package/dist/agent-md-schema.js +7 -6
- package/dist/agent-md-schema.js.map +1 -1
- package/dist/agent-md.d.ts +2 -0
- package/dist/agent-md.js +33 -10
- package/dist/agent-md.js.map +1 -1
- package/dist/aid-store.d.ts +1 -0
- package/dist/aid-store.js +6 -3
- package/dist/aid-store.js.map +1 -1
- package/dist/aid.js +1 -1
- package/dist/aid.js.map +1 -1
- package/dist/auth.js +1 -1
- package/dist/auth.js.map +1 -1
- package/dist/client/control-messages.d.ts +0 -2
- package/dist/client/control-messages.js +79 -108
- package/dist/client/control-messages.js.map +1 -1
- package/dist/client/lifecycle.js +11 -3
- package/dist/client/lifecycle.js.map +1 -1
- package/dist/client/rpc-pipeline.d.ts +1 -1
- package/dist/client/rpc-pipeline.js +17 -5
- package/dist/client/rpc-pipeline.js.map +1 -1
- package/dist/client/v2-e2ee.js +7 -7
- package/dist/client/v2-e2ee.js.map +1 -1
- package/dist/client.d.ts +12 -0
- package/dist/client.js +346 -126
- package/dist/client.js.map +1 -1
- package/dist/config.js +23 -18
- package/dist/config.js.map +1 -1
- package/dist/discovery.d.ts +1 -0
- package/dist/discovery.js +3 -1
- package/dist/discovery.js.map +1 -1
- package/dist/facades.d.ts +20 -0
- package/dist/facades.js +9 -0
- package/dist/facades.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js.map +1 -1
- package/dist/keystore/aid-db.js +14 -2
- package/dist/keystore/aid-db.js.map +1 -1
- package/dist/keystore/index.d.ts +3 -0
- package/dist/keystore/index.js +61 -1
- package/dist/keystore/index.js.map +1 -1
- package/dist/keystore/local-identity-store.js +112 -76
- package/dist/keystore/local-identity-store.js.map +1 -1
- package/dist/keystore/local-token-store.js +15 -26
- package/dist/keystore/local-token-store.js.map +1 -1
- package/dist/ownership-v21.d.ts +2 -2
- package/dist/ownership-v21.js +18 -21
- package/dist/ownership-v21.js.map +1 -1
- package/dist/ownership-workflow.js +7 -4
- package/dist/ownership-workflow.js.map +1 -1
- package/dist/register-flow.js +4 -3
- package/dist/register-flow.js.map +1 -1
- package/dist/risk-control.js +2 -2
- package/dist/risk-control.js.map +1 -1
- package/dist/secret-store/file-store.js +68 -56
- package/dist/secret-store/file-store.js.map +1 -1
- package/dist/semantic-protocol.d.ts +2 -12
- package/dist/semantic-protocol.js +31 -48
- package/dist/semantic-protocol.js.map +1 -1
- package/dist/storage/lowlevel.d.ts +4 -0
- package/dist/storage/lowlevel.js +62 -1
- package/dist/storage/lowlevel.js.map +1 -1
- package/dist/storage/vfs.d.ts +4 -0
- package/dist/storage/vfs.js +55 -12
- package/dist/storage/vfs.js.map +1 -1
- package/dist/tools/cross-sdk-agent.d.ts +1 -1
- package/dist/tools/cross-sdk-agent.js +14 -3
- package/dist/tools/cross-sdk-agent.js.map +1 -1
- package/dist/transport.d.ts +1 -1
- package/dist/transport.js +8 -8
- package/dist/transport.js.map +1 -1
- package/dist/validators.js +9 -8
- package/dist/validators.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- 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。
|