@m8tes/sdk 0.1.0-alpha.4 → 0.1.0-alpha.5

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 CHANGED
@@ -15,6 +15,20 @@ All notable changes to `@m8tes/sdk`.
15
15
 
16
16
  ## [Unreleased]
17
17
 
18
+ ## [0.1.0-alpha.5] — 2026-08-22
19
+
20
+ ### Added
21
+
22
+ - `Run.recovery_repeats_actions` reports whether the offered recovery would repeat
23
+ a side effect; chat recovery is scoped to the failed follow-up and
24
+ `Run.repeats_actions` keeps its whole-run meaning.
25
+
26
+ ### Changed
27
+
28
+ - Retry and reply recover provider auth, quota, own-subscription rate-limit, and
29
+ availability failures through the account's current connected/preferred provider.
30
+ Chat recovery resends only the failed follow-up on the same run.
31
+
18
32
  ## [0.1.0-alpha.4] — 2026-08-21
19
33
 
20
34
  ### Changed
@@ -23,6 +37,11 @@ All notable changes to `@m8tes/sdk`.
23
37
 
24
38
  ### Added
25
39
 
40
+ - **`Usage.free_path_available`.** Mirrors `GET /usage` so clients can render
41
+ the Free continuation path from the same authoritative billing predicate as
42
+ activation; false means the account must use paid-plan recovery. `usage()`
43
+ also defaults an omitted field to false when talking to an older server.
44
+
26
45
  - **`Agent.active_run_id`** (plus typed `last_active_at` / `active_run_count`) —
27
46
  roster liveness for messaging discovery; `active_run_id` is set only when
28
47
  exactly one live run exists.
package/dist/index.cjs CHANGED
@@ -1508,8 +1508,12 @@ function createUsersResource(http) {
1508
1508
  // src/resources/billing.ts
1509
1509
  function createBillingResource(http) {
1510
1510
  return {
1511
- usage() {
1512
- return http.request("GET", "/usage/");
1511
+ async usage() {
1512
+ const usage = await http.request("GET", "/usage/");
1513
+ return {
1514
+ ...usage,
1515
+ free_path_available: usage.free_path_available ?? false
1516
+ };
1513
1517
  },
1514
1518
  usageTimeseries(params = {}) {
1515
1519
  const { agent_id, teammate_id, ...rest } = params;
@@ -1524,8 +1528,14 @@ function createBillingResource(http) {
1524
1528
  plans() {
1525
1529
  return http.request("GET", "/billing/plans");
1526
1530
  },
1527
- setOverage(params) {
1528
- return http.request("PATCH", "/billing/overage", { body: toBody({ ...params }) });
1531
+ async setOverage(params) {
1532
+ const usage = await http.request("PATCH", "/billing/overage", {
1533
+ body: toBody({ ...params })
1534
+ });
1535
+ return {
1536
+ ...usage,
1537
+ free_path_available: usage.free_path_available ?? false
1538
+ };
1529
1539
  },
1530
1540
  balance() {
1531
1541
  return http.request("GET", "/billing/balance");
@@ -2341,7 +2351,7 @@ function createWebhooksResource(http) {
2341
2351
  }
2342
2352
 
2343
2353
  // src/index.ts
2344
- var M8TES_SDK_VERSION = "0.1.0-alpha.4";
2354
+ var M8TES_SDK_VERSION = "0.1.0-alpha.5";
2345
2355
  var M8tes = class {
2346
2356
  runs;
2347
2357
  agents;