aury-agent 0.0.13__py3-none-any.whl → 0.0.14__py3-none-any.whl

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.
@@ -1,16 +1,23 @@
1
1
  """Session and Invocation data structures."""
2
2
  from __future__ import annotations
3
3
 
4
+ import random
5
+ import time
4
6
  from dataclasses import dataclass, field
5
7
  from datetime import datetime
6
8
  from enum import Enum
7
9
  from typing import Any
8
- from uuid import uuid4
9
10
 
10
11
 
11
12
  def generate_id(prefix: str = "") -> str:
12
- """Generate a unique ID with optional prefix."""
13
- uid = uuid4().hex[:12]
13
+ """Generate a unique ID with optional prefix.
14
+
15
+ Uses time + random instead of uuid4 to avoid blocking on os.urandom().
16
+ """
17
+ # 时间戳低 32 位 + 48 位随机数,避免 os.urandom 阻塞
18
+ ts = int(time.time() * 1000) & 0xFFFFFFFF
19
+ rand = random.getrandbits(48)
20
+ uid = f"{ts:08x}{rand:012x}"[:12]
14
21
  return f"{prefix}_{uid}" if prefix else uid
15
22
 
16
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: aury-agent
3
- Version: 0.0.13
3
+ Version: 0.0.14
4
4
  Summary: Aury Agent Framework - React Agent and Workflow orchestration
5
5
  Author: Aury Team
6
6
  License: MIT
@@ -80,7 +80,7 @@ aury/agents/core/types/artifact.py,sha256=tAG6WaQkscqHgE0umX5Mx5ZNSajQEWec_oW7Ks
80
80
  aury/agents/core/types/block.py,sha256=SWcvvG-vJDirrbP7XqgSUTX8lWgtPtzzaJCpPtst7oU,24141
81
81
  aury/agents/core/types/message.py,sha256=W0d8elddcbvW98bejDkHIzKiTigr6O5KxVuVUneo5wQ,11890
82
82
  aury/agents/core/types/recall.py,sha256=BZSDgv8Q0eK7Sshc-jA6ycpFpMHzndZ-lS86MPto9-c,4898
83
- aury/agents/core/types/session.py,sha256=oRn9jKFe8Tg-12ZFQcGJ0VLaJIWBfk8YQDzXUuXSNEk,9406
83
+ aury/agents/core/types/session.py,sha256=JX7Zg3ojKaGE4pixIoqGgWHPvgRs19hb9mY2IDA1ICM,9656
84
84
  aury/agents/core/types/subagent.py,sha256=vIxDkfekAaHj_V2UdSIaygDKb5RjiLqi8twTnhIUF_o,4651
85
85
  aury/agents/core/types/tool.py,sha256=Fg3Fq9yodPx-j530zLMSNwwWkfzWApHjUcFDGtZkwdE,14448
86
86
  aury/agents/eval/__init__.py,sha256=uRGZN-RBpNlwOmrn66EwZBNKufDVKgMc3tODuMM6WB4,8850
@@ -150,7 +150,7 @@ aury/agents/workflow/expression.py,sha256=Hsx2jBigtt5zbJb9uK9pveipqMbBBUUAvlgYjB
150
150
  aury/agents/workflow/parser.py,sha256=mfiFZ_TtFq3IxAqPlTGcNkluiZ8ww16y3NYwbmbsrwE,6149
151
151
  aury/agents/workflow/state.py,sha256=AxTSo7P9b1DbWjGdQdzFY4_7m6CJGNFo7xkGK28SPZw,4234
152
152
  aury/agents/workflow/types.py,sha256=PVvjTQRgTObx5Mq_lXFogyLjGChOi5pUgcJwF5ZzVtg,2354
153
- aury_agent-0.0.13.dist-info/METADATA,sha256=zcUJ_CJLCfa_5l3Eshz8AA2JCS99QdEbq-L5NfmzJcs,2115
154
- aury_agent-0.0.13.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
155
- aury_agent-0.0.13.dist-info/entry_points.txt,sha256=7EC5SMAKdC9HZLG8RfPhGno4OKOeSjaGsOWi1gOL-K8,56
156
- aury_agent-0.0.13.dist-info/RECORD,,
153
+ aury_agent-0.0.14.dist-info/METADATA,sha256=J9hqoZ94RCaqkdCJCzwIbOkPLFRz-lIBhyyTjlOifPw,2115
154
+ aury_agent-0.0.14.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
155
+ aury_agent-0.0.14.dist-info/entry_points.txt,sha256=7EC5SMAKdC9HZLG8RfPhGno4OKOeSjaGsOWi1gOL-K8,56
156
+ aury_agent-0.0.14.dist-info/RECORD,,