@stackbone/cli 0.1.0-alpha.2 → 0.1.0-alpha.4

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.
@@ -0,0 +1,22 @@
1
+ -- 0004_rename_runs_partial_index.sql — clarify semantics of the is_playground partial index.
2
+ -- ADR: docs/adr/2026-05-14-playground-runs-bill-like-real-invocations.md.
3
+ --
4
+ -- Migration 0003 created the partial index `runs_billable_workspace_started_idx`
5
+ -- on `stackbone_platform.runs (workspace_id, started_at DESC NULLS LAST)
6
+ -- WHERE is_playground = false`. Its name and accompanying comments framed the
7
+ -- predicate as the "billable" set — that framing is wrong.
8
+ --
9
+ -- Playground runs DO bill: invoking from Studio consumes real LLM tokens, real
10
+ -- DB queries and real compute, and the creator's organization is charged for
11
+ -- it like any other invocation (otherwise a malicious client could mark all
12
+ -- production traffic with `X-Stackbone-Playground: 1` and dodge billing). The
13
+ -- predicate `WHERE is_playground = false` actually identifies the rows that
14
+ -- count toward Trust Layer / public marketplace aggregations (p50 latency,
15
+ -- success rate, median cost) — a slow demo run from Studio must not lower
16
+ -- the public stats of an `agent_template`.
17
+ --
18
+ -- This migration renames the index so the next reader gets the semantics
19
+ -- right. The index definition (table, columns, predicate) is unchanged.
20
+
21
+ ALTER INDEX IF EXISTS stackbone_platform.runs_billable_workspace_started_idx
22
+ RENAME TO runs_public_metrics_workspace_started_idx;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackbone/cli",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.4",
4
4
  "license": "UNLICENSED",
5
5
  "type": "module",
6
6
  "bin": {
Binary file
Binary file