arkaos 2.1.1 → 2.1.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/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.1
1
+ 2.1.2
@@ -119,6 +119,22 @@ class IngestEngine:
119
119
 
120
120
  progress(100, f"Done — {count} chunks indexed")
121
121
 
122
+ # Record token usage in budget
123
+ try:
124
+ from core.budget.manager import BudgetManager
125
+ from pathlib import Path as BudgetPath
126
+ budget_mgr = BudgetManager(storage_path=BudgetPath.home() / ".arkaos" / "budget-usage.json")
127
+ tokens_est = len(text) // 4 # ~1 token per 4 chars
128
+ budget_mgr.record_usage(
129
+ agent_id="kb-indexer",
130
+ tokens=tokens_est,
131
+ tier=2,
132
+ department="kb",
133
+ description=f"ingest-{source_type}: {source[:60]}",
134
+ )
135
+ except Exception:
136
+ pass
137
+
122
138
  return IngestResult(
123
139
  source=source,
124
140
  source_type=source_type,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkaos",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "The Operating System for AI Agent Teams",
5
5
  "type": "module",
6
6
  "bin": {
package/pyproject.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "arkaos-core"
3
- version = "2.1.1"
3
+ version = "2.1.2"
4
4
  description = "Core engine for ArkaOS — The Operating System for AI Agent Teams"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}