flatagents 2.4.2__tar.gz → 2.4.4__tar.gz

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 (36) hide show
  1. {flatagents-2.4.2 → flatagents-2.4.4}/.gitignore +1 -0
  2. {flatagents-2.4.2 → flatagents-2.4.4}/PKG-INFO +1 -1
  3. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/__init__.py +1 -1
  4. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagent.d.ts +1 -1
  5. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagent.slim.d.ts +1 -1
  6. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagents-runtime.d.ts +1 -1
  7. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagents-runtime.schema.json +1 -1
  8. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagents-runtime.slim.d.ts +1 -1
  9. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatmachine.d.ts +1 -1
  10. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatmachine.slim.d.ts +1 -1
  11. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/profiles.d.ts +1 -1
  12. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/profiles.slim.d.ts +1 -1
  13. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/monitoring.py +5 -1
  14. {flatagents-2.4.2 → flatagents-2.4.4}/pyproject.toml +1 -1
  15. {flatagents-2.4.2 → flatagents-2.4.4}/MACHINES.md +0 -0
  16. {flatagents-2.4.2 → flatagents-2.4.4}/README.md +0 -0
  17. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/README.md +0 -0
  18. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/__init__.py +0 -0
  19. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatagent.schema.json +0 -0
  20. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/flatmachine.schema.json +0 -0
  21. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/assets/profiles.schema.json +0 -0
  22. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/baseagent.py +0 -0
  23. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/flatagent.py +0 -0
  24. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/profiles.py +0 -0
  25. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/__init__.py +0 -0
  26. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/anthropic.py +0 -0
  27. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/cerebras.py +0 -0
  28. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/openai.py +0 -0
  29. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/openai_codex_auth.py +0 -0
  30. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/openai_codex_client.py +0 -0
  31. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/openai_codex_login.py +0 -0
  32. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/providers/openai_codex_types.py +0 -0
  33. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/tool_loop.py +0 -0
  34. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/tools.py +0 -0
  35. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/utils.py +0 -0
  36. {flatagents-2.4.2 → flatagents-2.4.4}/flatagents/validation.py +0 -0
@@ -15,3 +15,4 @@ data
15
15
  logs
16
16
 
17
17
  .aider.tags.cache.v4/
18
+ auth.json
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flatagents
3
- Version: 2.4.2
3
+ Version: 2.4.4
4
4
  Summary: A lightweight framework for building LLM-powered agents.
5
5
  Project-URL: Homepage, https://github.com/memgrafter/flatagents
6
6
  Project-URL: Repository, https://github.com/memgrafter/flatagents
@@ -1,4 +1,4 @@
1
- __version__ = "2.4.2"
1
+ __version__ = "2.4.4"
2
2
 
3
3
  from .baseagent import (
4
4
  # Base agent (abstract, for multi-step agents)
@@ -151,7 +151,7 @@
151
151
  * The profile field specifies which profile name to use as base.
152
152
  */
153
153
 
154
- export const SPEC_VERSION = "2.4.2";
154
+ export const SPEC_VERSION = "2.4.4";
155
155
 
156
156
  export interface AgentWrapper {
157
157
  spec: "flatagent";
@@ -1,4 +1,4 @@
1
- export const SPEC_VERSION = "2.4.2";
1
+ export const SPEC_VERSION = "2.4.4";
2
2
  export interface AgentWrapper {
3
3
  spec: "flatagent";
4
4
  spec_version: string;
@@ -800,7 +800,7 @@ export interface BackendConfig {
800
800
  aws_region?: string;
801
801
  }
802
802
 
803
- export const SPEC_VERSION = "2.4.2";
803
+ export const SPEC_VERSION = "2.4.4";
804
804
 
805
805
  export interface SDKRuntimeWrapper {
806
806
  spec: "flatagents-runtime";
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "spec_version": {
13
13
  "type": "string",
14
- "const": "2.4.2"
14
+ "const": "2.4.4"
15
15
  },
16
16
  "execution_lock": {
17
17
  "$ref": "#/definitions/ExecutionLock"
@@ -252,7 +252,7 @@ export interface BackendConfig {
252
252
  dynamodb_table?: string;
253
253
  aws_region?: string;
254
254
  }
255
- export const SPEC_VERSION = "2.4.2";
255
+ export const SPEC_VERSION = "2.4.4";
256
256
  export interface SDKRuntimeWrapper {
257
257
  spec: "flatagents-runtime";
258
258
  spec_version: typeof SPEC_VERSION;
@@ -319,7 +319,7 @@
319
319
  * config_hash - Content-addressed machine config key for cross-SDK resume (v2.1.0)
320
320
  */
321
321
 
322
- export const SPEC_VERSION = "2.4.2";
322
+ export const SPEC_VERSION = "2.4.4";
323
323
 
324
324
  export interface MachineWrapper {
325
325
  spec: "flatmachine";
@@ -1,4 +1,4 @@
1
- export const SPEC_VERSION = "2.4.2";
1
+ export const SPEC_VERSION = "2.4.4";
2
2
  export interface MachineWrapper {
3
3
  spec: "flatmachine";
4
4
  spec_version: string;
@@ -110,7 +110,7 @@
110
110
  * oauth - OAuth settings (used by codex backend)
111
111
  */
112
112
 
113
- export const SPEC_VERSION = "2.4.2";
113
+ export const SPEC_VERSION = "2.4.4";
114
114
 
115
115
  export interface ProfilesWrapper {
116
116
  spec: "flatprofiles";
@@ -1,4 +1,4 @@
1
- export const SPEC_VERSION = "2.4.2";
1
+ export const SPEC_VERSION = "2.4.4";
2
2
  export interface ProfilesWrapper {
3
3
  spec: "flatprofiles";
4
4
  spec_version: string;
@@ -480,7 +480,11 @@ class AgentMonitor:
480
480
  if "input_tokens" in self.metrics or "output_tokens" in self.metrics:
481
481
  in_tok = self.metrics.get("input_tokens", 0)
482
482
  out_tok = self.metrics.get("output_tokens", 0)
483
- log_parts.append(f"tokens: {in_tok}→{out_tok}")
483
+ tok_str = f"tokens: {in_tok}→{out_tok}"
484
+ cached = self.metrics.get("cache_read_tokens", 0)
485
+ if cached:
486
+ tok_str += f" (cached: {cached})"
487
+ log_parts.append(tok_str)
484
488
 
485
489
  # Add rate limit info if available
486
490
  if "ratelimit_remaining_requests" in self.metrics:
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "flatagents"
7
- version = "2.4.2"
7
+ version = "2.4.4"
8
8
  description = "A lightweight framework for building LLM-powered agents."
9
9
  readme = "README.md"
10
10
  license = "Apache-2.0"
File without changes
File without changes