cli-consumption 0.5.0__tar.gz → 0.6.1__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 (119) hide show
  1. cli_consumption-0.6.1/CHANGELOG.md +597 -0
  2. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/PKG-INFO +72 -10
  3. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/README.md +64 -9
  4. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/pyproject.toml +12 -2
  5. cli_consumption-0.5.0/src/cli_consumption/INTER_FONT_LICENSE.txt → cli_consumption-0.6.1/src/cli_consumption/MARTIAN_MONO_FONT_LICENSE.txt +1 -1
  6. cli_consumption-0.6.1/src/cli_consumption/PRICING_DATA_LICENSE.txt +26 -0
  7. cli_consumption-0.6.1/src/cli_consumption/__init__.py +22 -0
  8. cli_consumption-0.6.1/src/cli_consumption/__main__.py +4 -0
  9. cli_consumption-0.6.1/src/cli_consumption/adapters/__init__.py +97 -0
  10. cli_consumption-0.6.1/src/cli_consumption/adapters/_claude_usage.py +180 -0
  11. cli_consumption-0.6.1/src/cli_consumption/adapters/_codex_zstd.py +134 -0
  12. cli_consumption-0.6.1/src/cli_consumption/adapters/_copilot_retry.py +371 -0
  13. cli_consumption-0.6.1/src/cli_consumption/adapters/_copy_selection.py +120 -0
  14. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/_incremental.py +43 -13
  15. cli_consumption-0.6.1/src/cli_consumption/adapters/_kimi_code.py +522 -0
  16. cli_consumption-0.6.1/src/cli_consumption/adapters/_primitives.py +33 -0
  17. cli_consumption-0.6.1/src/cli_consumption/adapters/_session_files.py +117 -0
  18. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/_shared.py +211 -84
  19. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/aider.py +8 -2
  20. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/amazon_q.py +8 -2
  21. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/amp.py +10 -26
  22. cli_consumption-0.6.1/src/cli_consumption/adapters/antigravity.py +527 -0
  23. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/base.py +5 -3
  24. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/claude.py +165 -152
  25. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/cline.py +16 -12
  26. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/codex.py +411 -50
  27. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/continue_cli.py +17 -31
  28. cli_consumption-0.6.1/src/cli_consumption/adapters/copilot.py +798 -0
  29. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/crush.py +42 -22
  30. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/cursor.py +40 -13
  31. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/gemini.py +33 -15
  32. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/goose.py +18 -4
  33. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/grok.py +123 -68
  34. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/kilo.py +43 -2
  35. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/kimi.py +106 -39
  36. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/mistral_vibe.py +357 -53
  37. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/opencode.py +415 -91
  38. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/openhands.py +265 -74
  39. cli_consumption-0.6.1/src/cli_consumption/adapters/otlp.py +188 -0
  40. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/pi.py +43 -37
  41. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/plandex.py +7 -1
  42. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/adapters/qwen.py +53 -34
  43. cli_consumption-0.6.1/src/cli_consumption/adapters/registry.py +955 -0
  44. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/api.py +212 -29
  45. cli_consumption-0.6.1/src/cli_consumption/block_report.py +409 -0
  46. cli_consumption-0.6.1/src/cli_consumption/budget.py +687 -0
  47. cli_consumption-0.6.1/src/cli_consumption/cli.py +3395 -0
  48. cli_consumption-0.6.1/src/cli_consumption/copy_rank.py +126 -0
  49. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/dashboard.py +502 -58
  50. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/dashboard_layouts.py +54 -18
  51. cli_consumption-0.6.1/src/cli_consumption/dashboard_react.css +2 -0
  52. cli_consumption-0.6.1/src/cli_consumption/dashboard_react.js +9 -0
  53. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/exporting.py +76 -6
  54. cli_consumption-0.6.1/src/cli_consumption/file_parse_cache.py +372 -0
  55. cli_consumption-0.6.1/src/cli_consumption/git_activity.py +795 -0
  56. cli_consumption-0.6.1/src/cli_consumption/git_report.py +308 -0
  57. cli_consumption-0.6.1/src/cli_consumption/insights_report.py +1096 -0
  58. cli_consumption-0.6.1/src/cli_consumption/insights_sql.py +766 -0
  59. cli_consumption-0.6.1/src/cli_consumption/launcher.py +23 -0
  60. cli_consumption-0.6.1/src/cli_consumption/mcp_server.py +470 -0
  61. cli_consumption-0.6.1/src/cli_consumption/migrations/versions/v0009_replicated_call_keys.py +30 -0
  62. cli_consumption-0.6.1/src/cli_consumption/migrations/versions/v0010_normalization_version.py +28 -0
  63. cli_consumption-0.6.1/src/cli_consumption/migrations/versions/v0011_file_parse_cache.py +28 -0
  64. cli_consumption-0.6.1/src/cli_consumption/migrations/versions/v0012_rate_limit_samples.py +72 -0
  65. cli_consumption-0.6.1/src/cli_consumption/migrations/versions/v0013_git_commits.py +46 -0
  66. cli_consumption-0.6.1/src/cli_consumption/migrations/versions/v0014_statusline_quota_observations.py +51 -0
  67. cli_consumption-0.6.1/src/cli_consumption/migrations/versions/v0015_otlp_metrics.py +85 -0
  68. cli_consumption-0.6.1/src/cli_consumption/migrations/versions/v0016_metric_client_budgets.py +79 -0
  69. cli_consumption-0.6.1/src/cli_consumption/migrations/versions/v0017_tool_outcomes.py +21 -0
  70. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/models.py +186 -10
  71. cli_consumption-0.6.1/src/cli_consumption/otlp.py +538 -0
  72. cli_consumption-0.6.1/src/cli_consumption/otlp_storage.py +380 -0
  73. cli_consumption-0.6.1/src/cli_consumption/pricing.json +746 -0
  74. cli_consumption-0.6.1/src/cli_consumption/pricing.py +618 -0
  75. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/reporting.py +268 -7
  76. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/reporting_api.py +106 -5
  77. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/retention.py +63 -1
  78. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/schema.py +235 -18
  79. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/snapshot_extraction.py +60 -4
  80. cli_consumption-0.6.1/src/cli_consumption/snapshot_files.py +543 -0
  81. cli_consumption-0.6.1/src/cli_consumption/snapshot_split.py +132 -0
  82. cli_consumption-0.6.1/src/cli_consumption/statusline.py +1181 -0
  83. cli_consumption-0.6.1/src/cli_consumption/statusline_quota.py +83 -0
  84. cli_consumption-0.6.1/src/cli_consumption/storage.py +1380 -0
  85. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/sync.py +38 -3
  86. cli_consumption-0.6.1/src/cli_consumption/terminal_report.py +510 -0
  87. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/timestamps.py +4 -1
  88. cli_consumption-0.6.1/src/cli_consumption/tool_outcomes.py +92 -0
  89. cli_consumption-0.6.1/src/cli_consumption/usage_report.py +950 -0
  90. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/web_runtime.zip +0 -0
  91. cli_consumption-0.5.0/CHANGELOG.md +0 -319
  92. cli_consumption-0.5.0/src/cli_consumption/__init__.py +0 -10
  93. cli_consumption-0.5.0/src/cli_consumption/__main__.py +0 -4
  94. cli_consumption-0.5.0/src/cli_consumption/adapters/__init__.py +0 -45
  95. cli_consumption-0.5.0/src/cli_consumption/adapters/_kimi_code.py +0 -399
  96. cli_consumption-0.5.0/src/cli_consumption/adapters/copilot.py +0 -454
  97. cli_consumption-0.5.0/src/cli_consumption/adapters/registry.py +0 -519
  98. cli_consumption-0.5.0/src/cli_consumption/cli.py +0 -1738
  99. cli_consumption-0.5.0/src/cli_consumption/dashboard_react.css +0 -2
  100. cli_consumption-0.5.0/src/cli_consumption/dashboard_react.js +0 -9
  101. cli_consumption-0.5.0/src/cli_consumption/snapshot_files.py +0 -255
  102. cli_consumption-0.5.0/src/cli_consumption/storage.py +0 -739
  103. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/.gitignore +0 -0
  104. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/LICENSE +0 -0
  105. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/NOTICE +0 -0
  106. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/frontend.py +0 -0
  107. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/__init__.py +0 -0
  108. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/env.py +0 -0
  109. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/versions/__init__.py +0 -0
  110. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/versions/v0001_baseline.py +0 -0
  111. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/versions/v0002_minimize_subagents.py +0 -0
  112. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/versions/v0003_canonical_timestamps.py +0 -0
  113. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/versions/v0004_subagent_scope_freshness.py +0 -0
  114. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/versions/v0005_sync_receipts.py +0 -0
  115. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/versions/v0006_dashboard_layouts.py +0 -0
  116. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/versions/v0007_dashboard_layout_revision.py +0 -0
  117. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/migrations/versions/v0008_cache_write_duration.py +0 -0
  118. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/py.typed +0 -0
  119. {cli_consumption-0.5.0 → cli_consumption-0.6.1}/src/cli_consumption/qualifications.py +0 -0
@@ -0,0 +1,597 @@
1
+ # Changelog
2
+
3
+ Notable user-visible changes to CLI Consumption are documented in this file. The
4
+ format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and releases
5
+ use [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.6.1] - 2026-12-05
10
+
11
+ ### Added
12
+
13
+ - Collect Antigravity ACP model calls, token counters, turn timings, and tool
14
+ outcomes from local conversation databases.
15
+
16
+ ## [0.6.0] - 2026-12-05
17
+
18
+ ### Added
19
+
20
+ - Simulate routing a share of model calls in detailed dashboards and offline
21
+ HTML. Show pricing coverage and compare the current and simulated estimates.
22
+ - Show active quota windows and heuristic five-hour activity blocks in the live
23
+ and offline dashboards. Share-safe exports omit the quota snapshot.
24
+ - Show the collector's current calendar budget and observed quota statuses on the
25
+ persistent dashboard, independently of the selected date range or filters.
26
+
27
+ - Report terminal OpenCode 2.x tool outcomes in detailed CLI insights and through
28
+ the authorized reporting API. The failure rate uses calls with a known
29
+ terminal outcome and includes coverage by SQLite projection format.
30
+ - Show the technical tool failure rate and source coverage in the detailed
31
+ persistent dashboard.
32
+ - Add a local `retry-links` command for qualified Copilot CLI permission-recovery
33
+ episodes, with aggregate counts and coverage.
34
+
35
+ - Collect OpenHands Agent Canvas conversations from the local agent server
36
+ store (`~/.openhands/agent-canvas/conversations/` or `OH_CONVERSATIONS_PATH`).
37
+ Usage copied into a fork counts once in reports, even after the source is
38
+ deleted or collected in another batch. Fork usage without a per-call response
39
+ ID, and all usage in ACP forks, is excluded.
40
+ - Publish an authenticated calendar budget status from an explicit
41
+ `serve --budgets-config` file. The collector reports one aggregate status
42
+ for recorded tokens and estimated USD and omits it from share-safe reports
43
+ and exports.
44
+ - Publish an authenticated aggregate quota status for explicitly configured
45
+ Codex source windows and opted-in local Claude Code statusline windows.
46
+
47
+ - Declare which usage insight signals each adapter can report. The dashboard and
48
+ `report insights` can show zero measured events for a supported signal even
49
+ when it has never appeared in storage. Unsupported signals remain unavailable.
50
+
51
+ - Receive authenticated OTLP/HTTP metrics from Claude Code, Codex, and Gemini CLI
52
+ with the optional `otlp` extra. The collector stores bounded counters separately
53
+ from conversations and reports an all-time token total that prefers collected
54
+ files for matching sessions. OTLP activity counters stay separate from git
55
+ history counters. Identity storage defaults to off. The receiver limits new
56
+ rows per rolling minute and rejects stale intervals.
57
+
58
+ - Accept several OTLP metrics tokens, each with a non-secret label set by
59
+ `--metrics-client LABEL=ENV_VAR` or `CLI_CONSUMPTION_METRICS_CLIENTS`. Each
60
+ token has its own rolling write budget, so one client that reaches it gets 429
61
+ without blocking the others. The global storage caps still apply to all
62
+ clients. A token can be revoked by removing its label.
63
+ `CLI_CONSUMPTION_METRICS_TOKEN` keeps working as the `default` client. Database
64
+ revision `0016` adds the client label to the budget table.
65
+
66
+ - Collect content-free git commit counters (commits, added and deleted lines, files
67
+ changed) from repositories selected with `--git-repo` or `--git-activity` on
68
+ `collect`, `snapshot create`, and `sync`, and correlate them with token usage and
69
+ estimated cost per project and day in `report git`. Commit identifiers, messages,
70
+ file names, branches, and remote URLs are never stored; commits are filtered to the
71
+ local `user.email` by default, deduplicated across clones by a truncated
72
+ fingerprint, and authors are stored only with `--git-identity hmac|raw`. Snapshot
73
+ schema 7 and database revision `0013` carry the counters; upgrade collectors first.
74
+
75
+ - `report insights` and a dashboard **Usage insights** widget derive cache read rates
76
+ (by model and project, low-cache sessions), compactions per 100 turns with a weekly
77
+ trend, high context pressure, aborted turns, failed work items, repeated tool runs,
78
+ and subagent token share from stored metadata, with documented definitions. A
79
+ provider that never records a signal shows `n/a`, never zero. `--route-from`,
80
+ `--route-to`, and `--route-share` add a routing what-if at public list prices. The
81
+ indicators are correlations, not a measure of quality, productivity, or billing.
82
+
83
+ - `statusline` prints one Claude Code status line in well under 100 ms: session and
84
+ daily Claude Code tokens, cache rate, estimated cost, and the quota windows that
85
+ Claude Code passes on stdin. It reads the database read-only plus a bounded tail of
86
+ the current session transcript and never echoes text from stdin. Add
87
+ `--record-quotas` to save local five-hour, seven-day, and gateway spend observations
88
+ for `report blocks`. These expire after 90 days and stay out of snapshot and sync.
89
+
90
+ - Serve bounded usage and public list-price cost estimates over MCP stdio with
91
+ `cli-consumption[mcp]`. The server opens an existing SQLite database read-only
92
+ and supports `--share-safe` label pseudonyms.
93
+
94
+ - Check daily, weekly, or monthly token and estimated USD budgets with
95
+ `budget check`. Local JSON rules can target providers, projects, and models.
96
+ Stable exit codes support automation, and share-safe output shows the overall
97
+ status without per-rule details.
98
+
99
+ - Record Codex quota window observations without account identifiers, and show active
100
+ quota windows alongside clearly marked five-hour activity blocks in `report blocks`.
101
+ Snapshot schema 6 transfers the new observations.
102
+
103
+ - Reuse unchanged eligible provider-file parses during local SQLite collection.
104
+ `collect --full` forces a fresh parse.
105
+ - `report daily|weekly|monthly|session` prints token usage tables from the database
106
+ without collecting. It supports `--since`, `--until`, `--timezone`, repeated
107
+ `--provider`, `--project`, `--machine`, and `--model` filters, `--by
108
+ model|provider|project|machine` breakdowns, `--share-safe` pseudonyms, and a
109
+ versioned deterministic `--json` contract. Unavailable token counters display as
110
+ `n/a`, and conversation-aggregate or context-snapshot counters are flagged.
111
+ - `quick` collects every detected provider into the default database, then prints the
112
+ daily report, for a one-command first run.
113
+ - `report` and `report --json` show an estimated cost at public API list prices per
114
+ row and total, with the pricing currency and version. Calls are priced from a
115
+ versioned price table bundled with the package (uncached input, cache reads,
116
+ five-minute and one-hour cache writes, output, reasoning, and long-context tiers);
117
+ unknown models and non-additive token semantics display as `n/a`. Every output
118
+ states that the value is an estimate, not an invoice. `--pricing PATH` merges a
119
+ strictly validated local override file.
120
+ - The offline and online dashboards, the reporting API, and CSV exports show the same
121
+ estimated cost: a headline metric, a daily calendar metric, breakdowns by provider,
122
+ project, and model, and a per-conversation column, each labelled as an estimate at
123
+ public API list prices with its pricing version. The dashboard dataset adds optional
124
+ `meta.pricing`, per-call `estimatedCost`, and per-conversation `estimatedCost`,
125
+ `pricedCalls`, and `unpricedCalls` fields within contract version 1;
126
+ `model_calls.csv` adds `estimated_cost` and the pricing currency and versions.
127
+ `export --pricing PATH` applies a local override. Unpriced values show as `n/a`,
128
+ never zero, and partial sums are flagged.
129
+
130
+ ### Changed
131
+
132
+ - Redesign both dashboards (persistent and offline) around one headline band: total
133
+ tokens for the selected period beside a daily trend with its peak labelled, then
134
+ estimated cost, closed turns, active days and conversations with a neutral change
135
+ against the previous period of equal length, then a dense readout of secondary
136
+ measurements. The period and its comparison window are always named. Sections are
137
+ numbered, panel notes are shortened, charts gain exact-value tables, and the light
138
+ and dark palettes are revalidated for contrast and colour-vision deficiency. The
139
+ bundled font is now Martian Mono (SIL OFL 1.1, four subsets), which roughly halves
140
+ the offline stylesheet; dashboards still make no network requests. Both follow the
141
+ system light or dark preference until a theme is chosen, including the sign-in
142
+ page. Both dashboards apply one comparison rule: a change is shown only against
143
+ a previous period that has conversations and, in a bounded offline export, lies
144
+ inside the exported window; a cost change also needs both periods fully priced.
145
+ Long periods are drawn per UTC week or month, and the token series shares the
146
+ headline trend's axis. Each chart takes the form that fits its data: the token
147
+ mix is a ring with its total at the centre, turn outcomes a completion gauge,
148
+ context pressure one 0–100% track with its median and p95, the overall token
149
+ series and the weekly compaction trend dotted lines with their values written,
150
+ and the activity calendar fills each level to its own height. A period with a
151
+ single bound reads "from 3 Aug 2026" or "until 16 Aug 2026" rather than "All
152
+ history"; offline, an open end stops at the export's end and shows no comparison,
153
+ and a period that misses the export entirely keeps the dates entered and reads
154
+ "outside the export" with the export's dates, never an invented day. The token
155
+ mix adds a hatched "Unattributed" sector when a provider reports tokens it does
156
+ not split, so the ring's total equals the headline total.
157
+ Long row labels wrap instead of widening tables. The context pressure gauge keeps
158
+ its track and p95 tick in forced colours, marks a value above 100% at the end of
159
+ its track, and keeps its labels inside the track at any width; both gauges are
160
+ drawn as inline SVG with their numbers in HTML. A token share is never written as
161
+ 0% or 100% while another counter is non-zero. Token counts outside the detail
162
+ tables read compactly in three significant digits ("4.56M", "124k"), with the
163
+ exact count in their title and accessible text. Activity and Cohorts span the full width by default, and
164
+ narrow screens get conversation cards and sideways-scrolling tables. After a
165
+ failed reload, the persistent dashboard no longer shows, explores or exports a
166
+ selection that the filters no longer describe. `npm run check:contrast` measures
167
+ every painted colour pair in both themes against WCAG AA and runs in
168
+ `npm run verify` (G1L-911).
169
+
170
+ - `report insights` computes its indicators with SQL aggregates on SQLite and
171
+ PostgreSQL instead of loading the dashboard dataset, so a year of history no longer
172
+ hits the 250,000-record or 128 MiB selected-value limit and needs no `--since`.
173
+ Values are unchanged, including `n/a` coverage, replica exclusion, share-safe
174
+ aliases, and the routing what-if. Memory follows selected conversations and model
175
+ and project names rather than records (about 100 MiB and 2 s for 310,000 records);
176
+ only the 128 MiB index limit remains (G1L-908).
177
+ - Mistral Vibe collection honors `MISTRAL_VIBE_SESSION_ROOT`, links subagent
178
+ conversations to their parents, and diagnoses unsupported Unified log layouts.
179
+ - Grok Build, Kimi, Mistral Vibe, and OpenHands switch to bounded batches when a
180
+ store exceeds an aggregate limit or holds an oversized file, like the other
181
+ session-file providers. Their duplicate copies are now selected with the storage
182
+ rank, so a whole collection, batches, `sync`, and signed snapshots keep the same
183
+ copy. Kimi Code relationships now follow their child conversation copy, and Kimi
184
+ normalization version 2 refreshes stored copies whose project differs. Malformed
185
+ records of losing duplicate copies are counted.
186
+
187
+ ### Fixed
188
+
189
+ - Keep the dashboard's last budget statuses during a busy collector refresh, and
190
+ clear them across dashboard tabs when one detects session loss (G1L-924).
191
+ - Reuse authenticated collector budget and quota statuses for 30 seconds, bound
192
+ Codex quota history reads to the configured windows, and warn when the budget
193
+ endpoint has no read credential (G1L-921).
194
+ - Dashboard exports handle replicated token totals above BIGINT on SQLite and
195
+ PostgreSQL while preserving exact subtraction below the limit (G1L-912).
196
+ - `report insights` names the selection limit it exceeds (250,000 records, an
197
+ estimated 128 MiB of selected values, or the 128 MiB identifier and label index) and
198
+ suggests `--since` / `--until`, instead of blaming share-safe labels when share-safe
199
+ mode is off. Other `report --share-safe` views name the alias index limit. With
200
+ `--json`, `report_limit_exceeded` now also carries `limit` and `hint` (G1L-907).
201
+ - Git activity collection now parses the bounded prefix when a single pipe read exceeds
202
+ the byte limit, instead of discarding it and reporting zero commits (G1L-906).
203
+ - Kimi Code sessions imported from kimi-cli, Claude Code, or Codex now count the
204
+ usage, turns, and tools produced after the import. The imported history is still
205
+ excluded, so the original session is never counted twice. Kimi normalization
206
+ version 3 refreshes stored copies. Forks of imported sessions remain excluded.
207
+ - Kimi Code forks now count only the usage, turns, and tools recorded after their
208
+ last `forked` marker, so history copied from the source session, or from an
209
+ earlier fork, is no longer counted twice. Forks of imported sessions are counted
210
+ the same way instead of being skipped. Kimi normalization version 4 refreshes
211
+ stored copies (G1L-900).
212
+
213
+ - Exclude copied Kilo Code fork history from usage and turn counts while keeping
214
+ the original session ID and any new activity in the fork.
215
+
216
+ - Ignore Grok Build interjection chunks when reconstructing user turns.
217
+
218
+ - Count visible Goose prompts consisting only of a document as user turns.
219
+
220
+ - Pair Cursor CLI chat metadata discovered under `XDG_CONFIG_HOME` with transcripts
221
+ from the independent data directory, even when the chat store has a nested
222
+ directory named `projects`.
223
+
224
+ - Discover Pi journals in Pi's workspace directories so Codex rollouts and
225
+ unrelated session directories no longer generate Pi malformed-record warnings.
226
+
227
+ - Copilot CLI collection restores linked journal archives under one session ID
228
+ and excludes replayed activity from usage totals.
229
+ - Count OpenCode title and generate usage recorded in SQLite events. Discover
230
+ channel databases and honor `OPENCODE_DB` during local discovery.
231
+
232
+ - Discover relocated provider stores from documented directory environment
233
+ variables. Report unavailable overrides without exposing paths or interrupting
234
+ discovery of other providers.
235
+
236
+ - Align all-history terminal, dashboard, and model-call CSV totals, including tokens
237
+ already recorded in open turns and calls with no timestamp.
238
+
239
+ - Skip non-regular provider files, including FIFOs and direct symlinks, so regular
240
+ files can still be collected.
241
+
242
+ - `sync` and `snapshot create` read large provider stores in bounded, restart-safe
243
+ batches like `collect`, instead of failing with `provider_limit_exceeded`. `sync`
244
+ keeps each request within the collector's advertised size; `snapshot create` writes
245
+ numbered signed files when one file cannot hold everything, and `snapshot ingest`
246
+ accepts them and refuses incomplete, mixed, or renamed sets. Batched transfers never replace the collector's Codex subagent graph.
247
+ Snapshot schema 5 adds the `partial` flag; upgrade collectors before clients.
248
+ - Batched collection skips and counts only a file over a per-file size limit instead
249
+ of failing the whole provider; `--strict` still refuses it.
250
+ - `providers --json` (schema 3) inspects large stores in batches, so they are no longer
251
+ reported as `degraded`. A new `oversized` status and an `issues` list distinguish
252
+ skipped oversized files from malformed records and inspection failures.
253
+
254
+ - Recollect available transcripts to refresh stored usage when an adapter's
255
+ normalization changes. This applies the Qwen reasoning and Claude replicated-call
256
+ fixes to existing databases while keeping history for expired transcripts.
257
+ Upgrade central collectors before schema-4 clients.
258
+
259
+ - Claude Code responses copied into resumed or forked sessions are counted once in
260
+ reports, dashboards, and CSV exports, whatever the collection order or machine.
261
+ Snapshot schema 3 and database revision `0009` add an internal per-call digest of
262
+ the response identifiers; existing rows are counted as before until an unchanged
263
+ session is collected again. Upgrade the collector before clients.
264
+ - Codex usage copied by a forked session, or re-emitted after a rate-limit update or a
265
+ compaction, is counted once in reports, dashboards, and CSV exports. Compaction
266
+ context estimates are no longer counted as tokens. The Codex normalization version
267
+ becomes 2, so the next collection renormalizes stored Codex sessions whose rollout
268
+ is still available with at least as many events; other rows are counted as before.
269
+ No schema change is needed.
270
+ - Codex collection reads Zstandard-compressed session rollouts in both active and
271
+ archived stores, with bounded decompression and deduplication across formats.
272
+ - Copies with the same event count can refresh stored usage when they contain newer
273
+ activity or more complete counters, including settled OpenCode compactions.
274
+ - Qwen Code counts reasoning tokens once when completion usage already includes them.
275
+ - Claude Code subagent relationships survive transcript cleanup and are recorded as
276
+ soon as their child conversations are collected, including in batches.
277
+ - Collection accepts transcripts with out-of-order turn timestamps and leaves
278
+ inconsistent turn ends and durations unknown.
279
+ - Codex collection now also reads `archived_sessions/` in each Codex home, flat or
280
+ nested, under the same limits and in batched collection. Archived conversations
281
+ were previously missed after Codex moved them out of `sessions/`; they keep their
282
+ conversation IDs and subagent relationships, and a copy present in both locations
283
+ converges to the most complete one.
284
+
285
+ ## [0.5.0] - 2026-12-03
286
+
287
+ ### Added
288
+
289
+ - The `kimi` provider now collects Kimi Code 2.x model calls, tokens, turns, tools,
290
+ compactions, and subagents from the local Wire 1.5 store alongside legacy sessions.
291
+ Sessions imported from other CLIs are skipped.
292
+ - OpenCode 2.x stores (`session_v2`, `session_message`, `session_part`) are collected;
293
+ on upgraded databases the 2.x copy of a session replaces its frozen 1.x copy, forked
294
+ history is not counted twice, and compaction usage is counted once.
295
+ - Mistral Vibe 3.x unified sessions (`logs/session/unified/`) are collected alongside
296
+ 2.x sessions. Resumed imports contribute their post-migration usage, and the saved
297
+ projection supplies totals when the listing cache is missing or behind. Sessions
298
+ imported from other tools are skipped.
299
+ - Pi `usage` entries (cache keep-alive and extension-reported requests) count as model
300
+ calls.
301
+
302
+ ### Fixed
303
+
304
+ - Gemini CLI `$patch` history records are applied, so removed messages are no longer
305
+ counted.
306
+ - Cline sessions imported from other CLIs and display-only error banners are no
307
+ longer counted.
308
+ - Crush subagent reports and hidden continuations no longer open user turns.
309
+ - Copilot replayed `checkpoint` records are ignored; Cursor subagent stores no longer
310
+ appear as separate conversations.
311
+ - Grok turns closed as interrupted on session reopen are marked aborted without an
312
+ inflated duration.
313
+ - Claude Code collection now includes subagent transcripts under
314
+ `<session>/subagents/` and legacy `agent-*.jsonl` files as separate conversations
315
+ linked to their parent session. Their tokens were previously ignored, and a legacy
316
+ agent file could replace its parent session during duplicate selection. Sidechain
317
+ replays of parent responses are not counted twice.
318
+ - Claude Code collection now counts reasoning tokens from
319
+ `output_tokens_details.thinking_tokens` as a bounded subset of output, records each
320
+ advisor sub-inference from `usage.iterations` as its own model call under the
321
+ advisor model, and keeps the provider-reported one-hour cache-write share. Advisor
322
+ tokens were previously ignored. Already stored conversations are recounted only when
323
+ a more complete copy of their transcript is collected.
324
+ - Claude Code and Codex collection now reads each provider file once instead of twice,
325
+ so the aggregate 512 MiB read limit applies to the actual store size and the
326
+ selected copy is no longer parsed a second time. Only the normalized records of the
327
+ most complete copy of each conversation are retained between files.
328
+
329
+ ### Changed
330
+
331
+ - All 21 provider qualifications were rechecked against current upstream releases
332
+ on 2026-12-03 (see the qualification ledger).
333
+
334
+ - `collect` now switches automatically to bounded, restart-safe batches when an
335
+ incremental-capable provider exceeds the aggregate candidate, provider-read, or
336
+ normalized-record limit, instead of failing with `provider_limit_exceeded`. Pass
337
+ `--no-incremental` to keep the previous all-or-nothing failure. Only the
338
+ overflowing provider is batched; JSON output reports `"incremental": true`,
339
+ `"incremental_trigger": "automatic"`, and a per-provider `"batched"` flag.
340
+ `--incremental` still forces batches and now reports
341
+ `"incremental_trigger": "requested"`.
342
+ - Bounded incremental collection now covers Claude Code, Amp, Continue CLI, Gemini
343
+ CLI, Pi, and Qwen Code in addition to Codex. Claude Code batches keep every
344
+ transcript that shares a session identity, across sources and project
345
+ directories, in one batch, so batched results equal one collection, including
346
+ replayed parent responses, and subagent relationships converge instead of being
347
+ skipped. Per-file, per-line, symlink, and single-conversation limits are
348
+ unchanged, and one command is still capped at 10,000 batches.
349
+ - Snapshot schema 2 and database revision `0008` add an optional per-model-call
350
+ `cache_write_1h_input_tokens` counter: the one-hour share of cache-write input, null
351
+ when a provider reports no duration breakdown. Collectors accept schemas 1 and 2;
352
+ clients send schema 2, so upgrade the collector before its clients. The counter is
353
+ stored for cost estimation and is not yet included in dashboards or CSV exports.
354
+
355
+ ### Security
356
+
357
+ - Update the bundled dashboard to Next.js 16.5.0 and patch vulnerable web
358
+ development dependencies.
359
+ - Patch msgpack, certifi, filelock, and virtualenv in the Python lockfile.
360
+ - Update the persistent dashboard to Next.js 16.3.8 and refresh vulnerable web
361
+ dependencies; use Parcel watcher 2.6.0 to remove the unpatched braces dependency
362
+ from the Tailwind build toolchain. Rebuild the bundled dashboard runtime.
363
+ - Refresh vulnerable urllib3 and virtualenv development dependencies in the Python
364
+ lockfile.
365
+
366
+ ## [0.4.5] - 2026-09-11
367
+
368
+ ### Added
369
+
370
+ - `serve --front` now launches the FastAPI service and a bundled production Next.js
371
+ dashboard from the Python distribution, without requiring a repository checkout or
372
+ npm installation at runtime.
373
+
374
+ ## [0.4.4] - 2026-09-08
375
+
376
+ ### Fixed
377
+
378
+ - Mistral Vibe now counts each persisted assistant message as a model call while
379
+ retaining cumulative session tokens as one unsplit aggregate.
380
+
381
+ ## [0.4.3] - 2026-09-05
382
+
383
+ ### Added
384
+
385
+ - Added opt-in `collect --incremental` automatic bounded batching for large Codex
386
+ stores, with restart-safe ingestion, strict metadata-only preflight staging,
387
+ deterministic duplicate convergence, privacy-safe partial results, and unchanged
388
+ per-file and per-line safety limits; authoritative subagent graphs remain untouched.
389
+
390
+ ## [0.4.2] - 2026-09-05
391
+
392
+ ### Added
393
+
394
+ - Added reviewed autonomous web exports that freeze the visible dashboard layout,
395
+ bounded selection, privacy profile, and theme into a CSP-locked standalone file while
396
+ preserving query-only API and CLI export compatibility.
397
+ - Added the provider-neutral `DashboardLayout v1` contract, a bounded widget registry,
398
+ deterministic defaults and retired-widget recovery, plus SQLite/PostgreSQL
399
+ persistence for the single authenticated dashboard operator.
400
+ - Added an explicit, accessible dashboard edit mode with bounded undo/redo, deterministic
401
+ placement, and ETag/`If-Match` conflict protection for concurrent save and reset.
402
+
403
+ ## [0.4.1] - 2026-09-01
404
+
405
+ ### Changed
406
+
407
+ - Refined the persistent and offline dashboards with a compact side-by-side title
408
+ treatment, borderless page-colored cards, quieter spacing, and fewer decorative
409
+ effects across desktop and mobile layouts.
410
+
411
+ ## [0.4.0] - 2026-09-01
412
+
413
+ ### Added
414
+
415
+ - Added a blocking browser CI gate that opens detailed and share-safe dashboards
416
+ directly from `file://`, exercises their controls, and rejects network activity.
417
+ - Defined the versioned, scoped, and bounded contracts for database upload, persistent
418
+ dashboard reporting, conversation pagination, and standalone web export.
419
+ - Added read-only, migration-free extraction of bounded snapshot-schema-v1 payloads
420
+ from current local SQLite collection databases, including WAL-consistent reads,
421
+ exact schema verification, provider grouping, and privacy-safe failures.
422
+ - Added `upload-db` with stable per-snapshot replay keys, required capability
423
+ negotiation, bounded retries, deterministic partial results, resumable uploads, and
424
+ strict fail-fast automation.
425
+ - Added scoped `read` and `export` bearer credentials plus strict, bounded reporting
426
+ endpoints for dashboard datasets, filter options, opaque stable pagination,
427
+ conversation detail, and self-contained HTML downloads.
428
+ - Added a locked TypeScript workspace with versioned dashboard contracts, pure shared
429
+ analytics, presentation helpers, Vitest parity coverage, ESM output, and a
430
+ reproducible network-free browser bundle included in Python wheels.
431
+ - Added an authenticated responsive Next.js dashboard with a server-only collector
432
+ credential, bounded reporting BFF, URL-safe filters, conversation pagination and
433
+ detail, shared analytics, accessibility checks, and desktop/mobile browser coverage.
434
+ - Replaced the classic offline renderer with the self-contained React/Tailwind runtime,
435
+ shared web primitives, streamed bounded dataset injection, reproducible packaged
436
+ assets, and detailed/share-safe `file://` browser coverage. The temporary
437
+ `--renderer` migration option was removed.
438
+ - Added persistent-dashboard offline downloads for the exact visible selection, with
439
+ detailed/share-safe profiles, a credential-isolating bounded BFF, private temporary
440
+ cleanup, fixed failures, and self-contained browser coverage.
441
+
442
+ ## [0.3.3] - 2026-08-31
443
+
444
+ ### Added
445
+
446
+ - Added deterministic, compressed offline snapshot files authenticated with Ed25519,
447
+ with bounded verification-before-parsing and idempotent SQLite/PostgreSQL ingestion.
448
+
449
+ ### Fixed
450
+
451
+ - Continue now applies provider-specific cache semantics, preventing Anthropic cache
452
+ reads and writes from being omitted from input totals, and reports persisted
453
+ conversation-compaction markers.
454
+ - Codex now preserves valid token accounting when provider counters are inconsistent,
455
+ keeps partial work and compaction records from referencing nonexistent turns, and
456
+ safely handles malformed metadata and timestamps.
457
+ - OpenCode now rejects timezone-naive text timestamps consistently while retaining its
458
+ OpenCode 1.18.23 message/part extraction for models, tokens, and tools.
459
+
460
+ ## [0.3.2] - 2026-08-31
461
+
462
+ ### Changed
463
+
464
+ - Version releases now attach the validated wheel and source distribution to an
465
+ automatically generated GitHub Release after PyPI publication succeeds.
466
+
467
+ ### Fixed
468
+
469
+ - OpenCode 1.18.23 SQLite stores now extract model calls and token usage from
470
+ `message.data` and tool calls from `part.data`; incomplete current schemas are
471
+ reported as incompatible instead of silently producing zero usage.
472
+
473
+ ## [0.3.1] - 2026-08-31
474
+
475
+ ### Changed
476
+
477
+ - Python 3.11 is now supported and tested alongside Python 3.12, 3.13, and 3.14.
478
+ - Collection errors now distinguish provider limits, incompatible formats, invalid
479
+ snapshots, and unexpected adapter failures with privacy-safe human messages and
480
+ deterministic JSON codes.
481
+ - A pinned, privacy-preserving single-host production deployment example now covers
482
+ the central collector, PostgreSQL, and automatic TLS proxy operations.
483
+ - The README now leads with a reproducible synthetic dashboard preview and routes
484
+ operational and provider-qualification detail to dedicated guides.
485
+ - CI now performs scheduled Python security, locked dependency, and offline workflow
486
+ audits; third-party actions are pinned to immutable commits with least privileges.
487
+ - Provider adapters now carry auditable format qualification metadata backed by
488
+ synthetic fixtures, with a weekly check that flags qualifications older than 90
489
+ days and homogeneous privacy-minimized compatibility criteria.
490
+ - Linear is now the source of truth for new repository tasks and their progress, while
491
+ the roadmap remains focused on durable product direction.
492
+ - Dashboard token totals now include conversation aggregates and latest-context
493
+ snapshots for conversations overlapping the selected period, with explicit labels
494
+ distinguishing them from additive usage.
495
+ - Dashboard selection, period, aggregation, percentile, and comparison calculations
496
+ now use an independently tested JavaScript contract embedded in the offline report.
497
+ - Each detailed CSV export now uses a synchronized temporary file and atomic
498
+ replacement, preserving that table's previous file when generation fails early.
499
+ - Multi-provider sync now reuses one HTTP client, negotiates capabilities once, and
500
+ performs bounded idempotent retries when the collector advertises replay receipts.
501
+ - Sync automation now supports strict preflight refusal and deterministic JSON with
502
+ malformed/duplicate diagnostics, explicit partial success, and generic remote
503
+ errors that do not expose response or provider content.
504
+
505
+ ### Fixed
506
+
507
+ - Reject timezone-naive provider timestamps instead of interpreting them in the host
508
+ timezone.
509
+
510
+ ## [0.3.0] - 2026-08-29
511
+
512
+ ### Added
513
+
514
+ - Added privacy-safe database readiness checks and bounded request correlation for the
515
+ collector service ([#35]).
516
+
517
+ ### Changed
518
+
519
+ - Provider input processing now enforces cumulative discovery, byte, SQLite row, and
520
+ structured-field limits across a complete collection ([#31]).
521
+ - Dashboard generation now preflights bounded selections, streams its output, and
522
+ atomically replaces an existing report only after a successful write ([#32]).
523
+ - Concurrent schema initialization, upgrade, and downgrade are now serialized on
524
+ SQLite and PostgreSQL, with SQLite lock waits capped at 15 seconds ([#34]).
525
+ - Published source distributions exclude repository-only tests and automation while
526
+ retaining release metadata, the changelog and README, license notices, the runtime
527
+ package, and Hatchling's rebuild `.gitignore` ([#33]).
528
+ - Identical adapter primitives are shared while provider-specific parsing semantics
529
+ remain isolated ([#36]).
530
+
531
+ ### Fixed
532
+
533
+ - Older, identical, graph-only, and partially stale snapshots can no longer erase a
534
+ newer subagent relationship graph ([#30]).
535
+
536
+ ## [0.2.1] - 2026-08-29
537
+
538
+ ### Changed
539
+
540
+ - Hardened ingestion privacy and normalized persisted timestamps to canonical,
541
+ fixed-width UTC values ([#29]).
542
+
543
+ ## [0.2.0] - 2026-08-29
544
+
545
+ ### Added
546
+
547
+ - Added versioned SQLite and PostgreSQL schema migrations, retention previews, and a
548
+ metadata-only central collector and synchronization client ([#28]).
549
+ - Added streamed CSV exports, time-window selection, and a share-safe dashboard
550
+ profile ([#28]).
551
+
552
+ ### Changed
553
+
554
+ - Strengthened snapshot validation, transport defaults, storage deduplication, and
555
+ privacy regression coverage ([#28]).
556
+
557
+ ## [0.1.1] - 2026-08-27
558
+
559
+ ### Added
560
+
561
+ - Added the Mistral Vibe CLI adapter ([#27]).
562
+
563
+ ## [0.1.0] - 2026-08-27
564
+
565
+ ### Changed
566
+
567
+ - Refreshed the provider guide for the first minor release ([#26]).
568
+
569
+ [Unreleased]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.6.1...HEAD
570
+ [0.6.1]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.6.0...v0.6.1
571
+ [0.6.0]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.5.0...v0.6.0
572
+ [0.5.0]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.4.5...v0.5.0
573
+ [0.4.5]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.4.4...v0.4.5
574
+ [0.4.4]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.4.3...v0.4.4
575
+ [0.4.3]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.4.2...v0.4.3
576
+ [0.4.2]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.4.1...v0.4.2
577
+ [0.4.1]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.4.0...v0.4.1
578
+ [0.4.0]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.3.3...v0.4.0
579
+ [0.3.3]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.3.2...v0.3.3
580
+ [0.3.2]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.3.1...v0.3.2
581
+ [0.3.1]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.3.0...v0.3.1
582
+ [0.3.0]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.2.1...v0.3.0
583
+ [0.2.1]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.2.0...v0.2.1
584
+ [0.2.0]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.1.1...v0.2.0
585
+ [0.1.1]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.1.0...v0.1.1
586
+ [0.1.0]: https://github.com/Guillaume-Lombardo/cli-consumption/compare/v0.0.18...v0.1.0
587
+ [#26]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/26
588
+ [#27]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/27
589
+ [#28]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/28
590
+ [#29]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/29
591
+ [#30]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/30
592
+ [#31]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/31
593
+ [#32]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/32
594
+ [#33]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/33
595
+ [#34]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/34
596
+ [#35]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/35
597
+ [#36]: https://github.com/Guillaume-Lombardo/cli-consumption/pull/36