arkaos 2.67.0 → 2.68.0

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.67.0
1
+ 2.68.0
@@ -161,6 +161,7 @@ class ArkaScheduler:
161
161
  """
162
162
  if schedule.python_module:
163
163
  return [sys.executable, "-m", schedule.python_module, *schedule.module_args]
164
+ self._warn_metered_billing_cutover(schedule)
164
165
  claude_bin = self._resolve_claude_binary()
165
166
  prompt_path = os.path.expanduser(schedule.prompt_file)
166
167
  prompt_content = Path(prompt_path).read_text(encoding="utf-8")
@@ -171,6 +172,41 @@ class ArkaScheduler:
171
172
  pass # fall back to raw template if profile unavailable
172
173
  return [claude_bin, "-p", prompt_content, "--dangerously-skip-permissions"]
173
174
 
175
+ @staticmethod
176
+ def _warn_metered_billing_cutover(schedule: ScheduleConfig) -> None:
177
+ """Emit a one-time warning for legacy `claude -p` schedules.
178
+
179
+ PR52 v2.68.0 — Anthropic's Agent SDK $200 credit policy takes
180
+ effect 2026-06-15: programmatic Claude usage (`claude -p`,
181
+ Agent SDK, GitHub Actions, third-party harnesses) is metered
182
+ separately from interactive use. Subscriptions previously
183
+ absorbed the burn; after the cutover they no longer do. Operator
184
+ action: migrate this schedule to `python_module` (Dreaming v2)
185
+ or to a direct-API-key invocation with explicit budget alarms.
186
+ """
187
+ marker_dir = Path.home() / ".arkaos" / "telemetry"
188
+ marker = marker_dir / f"metered-billing-warned.{schedule.command}"
189
+ if marker.exists():
190
+ return
191
+ try:
192
+ marker_dir.mkdir(parents=True, exist_ok=True)
193
+ marker.write_text(datetime.now().isoformat(), encoding="utf-8")
194
+ except OSError:
195
+ pass # best-effort marker; warning still fires every time
196
+ msg = (
197
+ "[arkaos] schedule '" + schedule.command + "' uses the legacy "
198
+ "`claude -p` path. From 2026-06-15, programmatic Claude usage "
199
+ "is metered separately from interactive subscription credit "
200
+ "(Pro $20 / Max5x $100 / Max20x $200, no rollover). "
201
+ "Migrate to python_module or direct API key before then. "
202
+ "See: knowledge-anthropic-agent-sdk-credit-policy-2026-06-15"
203
+ )
204
+ try:
205
+ sys.stderr.write(msg + "\n")
206
+ sys.stderr.flush()
207
+ except Exception:
208
+ pass
209
+
174
210
  # ------------------------------------------------------------------
175
211
  # Execution
176
212
  # ------------------------------------------------------------------
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arkaos",
3
- "version": "2.67.0",
3
+ "version": "2.68.0",
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.67.0"
3
+ version = "2.68.0"
4
4
  description = "Core engine for ArkaOS — The Operating System for AI Agent Teams"
5
5
  readme = "README.md"
6
6
  license = {text = "MIT"}