one-more-token 0.0.0-stage → 0.5.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/README.md +41 -2
- package/data/README.md +60 -0
- package/data/pricing.json +61 -0
- package/data/subscriptions.json +119 -0
- package/data/theme/README.md +16 -0
- package/data/theme/base.json +71 -0
- package/data/theme/themes.json +187 -0
- package/data/tools.json +11 -0
- package/data/views/activity-heatmap.json +26 -0
- package/data/views/cache-hit-ratio-by-agent.json +28 -0
- package/data/views/cost-by-model.json +25 -0
- package/data/views/daily-tokens-by-agent.json +23 -0
- package/data/views/tool-usage.json +22 -0
- package/dist/main.js +31510 -0
- package/migrations/001_initial.sql +149 -0
- package/migrations/002_ingest_checkpoints.sql +7 -0
- package/migrations/003_pricing_checkpoints.sql +3 -0
- package/migrations/004_session_links.sql +6 -0
- package/migrations/005_subscription_rules.sql +28 -0
- package/migrations/006_turn_profile_bindings.sql +8 -0
- package/migrations/007_provider_quota_readings.sql +13 -0
- package/migrations/008_git_links.sql +25 -0
- package/migrations/009_alert_notifications.sql +9 -0
- package/migrations/010_session_task_classes.sql +9 -0
- package/package.json +30 -4
- package/web-dist/assets/Chart-CwtBbQZ6.js +46402 -0
- package/web-dist/assets/index-AM5Hgs3S.js +27930 -0
- package/web-dist/assets/index-BPnFUN7Y.css +1232 -0
- package/web-dist/index.html +185 -0
package/README.md
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
-
#
|
|
1
|
+
# One More Token (`omt`)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Local web dashboard that analyzes usage, cost and subscription quotas of AI coding agents (Claude Code, gentle-shell/Pi, OpenCode, Codex). Everything stays on your machine: no telemetry, source sessions are opened read-only.
|
|
4
|
+
|
|
5
|
+
## Quick start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npx one-more-token
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
The single command:
|
|
12
|
+
|
|
13
|
+
1. Detects the agent session directories on your machine and prints them.
|
|
14
|
+
2. Validates the bundled pricing and subscription data.
|
|
15
|
+
3. Ingests the local sessions into a DuckDB database
|
|
16
|
+
(`${XDG_DATA_HOME:-~/.local/share}/one-more-token/omt.duckdb`).
|
|
17
|
+
4. Serves the dashboard (API + built UI) on `http://127.0.0.1:7317`.
|
|
18
|
+
5. Opens the dashboard in your browser.
|
|
19
|
+
|
|
20
|
+
Press `Ctrl+C` to stop.
|
|
21
|
+
|
|
22
|
+
## Options
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
omt start --port 8080 # different port (0 picks a free one)
|
|
26
|
+
omt start --no-open # do not open the browser
|
|
27
|
+
omt start --db ~/omt.duckdb
|
|
28
|
+
omt serve # serve without ingesting
|
|
29
|
+
omt ingest # ask a running server to ingest again
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Privacy
|
|
33
|
+
|
|
34
|
+
- Sessions of your agents are read-only; nothing is written to them.
|
|
35
|
+
- The database and reports stay under your XDG data/config directories.
|
|
36
|
+
- Alerts (optional) only leave the machine if you configure a Telegram channel.
|
|
37
|
+
|
|
38
|
+
## Development
|
|
39
|
+
|
|
40
|
+
This package is built from the One More Token monorepo: `pnpm check` (typecheck + lint + tests), `pnpm --filter @omt/cli build` produces the publishable bundle (`dist/`, `web-dist/`, `data/`, `migrations/`).
|
|
41
|
+
|
|
42
|
+
License: MIT.
|
package/data/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# data/
|
|
2
|
+
|
|
3
|
+
Prices, quota limits and design tokens are data, not code (spec §4, §8.2). Edit them here; never hardcode them.
|
|
4
|
+
|
|
5
|
+
| File | Contents | Schema |
|
|
6
|
+
|---|---|---|
|
|
7
|
+
| `pricing.json` | Price per million tokens by model and provider, with `validFrom` / `validTo` dates | `PricingFileSchema` in `packages/core/src/data/files.ts` |
|
|
8
|
+
| `subscriptions.json` | Plans, their quota windows and limits (`usd`, `tokens` or `estimated`). Which plans you pay for lives in your local config (see the README) | `SubscriptionsFileSchema` in the same file |
|
|
9
|
+
| `tools.json` | Canonical tool catalogue: each canonical id with the raw tool names that map to it (spec §7.3) | `ToolCatalogueSchema` in the same file |
|
|
10
|
+
| `theme/` | Design tokens for the Kanagawa themes | see `theme/README.md` |
|
|
11
|
+
| `views/` | Preset Explorer views: query, chart type and Vega-Lite (or Vega) spec, one file per view named `<id>.json` | `SavedViewSchema` in `packages/core/src/data/views.ts` |
|
|
12
|
+
|
|
13
|
+
`pnpm check` validates every file against its schema.
|
|
14
|
+
|
|
15
|
+
## Canonical tool catalogue (spec §7.3)
|
|
16
|
+
|
|
17
|
+
`tools.json` maps the raw tool name each adapter stores to one canonical id, so the Tools view and the Explorer's `tool` dimension can compare `Read`, `read` and `exec` as the same idea:
|
|
18
|
+
|
|
19
|
+
```json
|
|
20
|
+
{ "version": 1, "tools": [{ "id": "read", "aliases": ["read"] }] }
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
- Each object is strict: `id` matches `^[a-z][a-z0-9_-]{0,63}$`, `aliases` is non-empty, and an `id` or an alias listed twice is invalid (aliases are compared ignoring case, so `Read` and `read` are the same alias).
|
|
24
|
+
- Resolution is case-insensitive; a raw name with no alias degrades to its own lowercase form instead of disappearing. The raw name stays visible per agent in the Tools view, so the mapping can be audited.
|
|
25
|
+
- **Aliases are collected from what the adapters of this repository actually emit**, never invented: they come from the adapters' fixtures and snapshots (and their parsing code). A test fails when an alias appears in no adapter, and a new raw name from a new agent version is added here before the views can group it.
|
|
26
|
+
- The catalogue is data, not code: adding an alias needs no release. `tool_calls.tool` keeps storing the raw name, so editing the file never needs a re-ingest.
|
|
27
|
+
|
|
28
|
+
Preset views are versioned and read-only: `name` and `description` are i18n keys (`explorer.presets.<key>.name`), specs never embed data or URLs, and they contain no personal data. Views saved from the UI live outside the repository (see the README).
|
|
29
|
+
|
|
30
|
+
## Pricing policy (spec §4)
|
|
31
|
+
|
|
32
|
+
The bundled catalog is a **current-rate API-equivalent estimate**, observed on **2026-10-21**, not a historical bill or a subscription charge. Reported cost remains separate and unchanged, including reported zero.
|
|
33
|
+
|
|
34
|
+
- `basis: "current-reference"` requires an ISO `observedAt` date. Lookup uses that date even for older turns; `validFrom` records the observation date, never a fabricated historical effective date. Entries must cover `observedAt`.
|
|
35
|
+
- Version 1 files without policy metadata (or with `basis: "historical"`) retain inclusive UTC event-date lookup. `observedAt` is only valid with current-reference policy.
|
|
36
|
+
- Exact provider/model pairs only: `anthropic` and `claude-bridge` / `claude-opus-5-5`, and `openai-codex` / `gpt-6.1-sol`. Bridge/Codex entries are API reference equivalents, not subscription rates. Unknown identifiers, including `claude-opus-5-5[1m]`, remain null; no suffix stripping or inferred aliases.
|
|
37
|
+
- Standard global rates only. Fast, geography, batch, negotiated discounts and other modifiers cannot be inferred and are excluded. The catalog does not establish actual billing accuracy.
|
|
38
|
+
|
|
39
|
+
### Rates and provenance
|
|
40
|
+
|
|
41
|
+
All prices below are USD per million tokens. Each JSON entry carries its public source URLs.
|
|
42
|
+
|
|
43
|
+
| Exact model | Input | Output | Cache read | Short write | Long write |
|
|
44
|
+
|---|---:|---:|---:|---:|---:|
|
|
45
|
+
| `claude-opus-5-5` | 4 | 20 | 0.20 | 5 (5 min) | 8 (1 h) |
|
|
46
|
+
| `gpt-6.1-sol`, prompt ≤272000 | 2 | 10 | 0.10 | 2.50 (30 min) | 5 (12 h) |
|
|
47
|
+
| `gpt-6.1-sol`, prompt >272000 | 4 | 15 | 0.20 | 5 (30 min) | 10 (12 h) |
|
|
48
|
+
|
|
49
|
+
Anthropic: [model and 1M standard context](https://platform.claude.com/docs/en/models/opus-5-5/overview), [pricing](https://platform.claude.com/docs/en/about-claude/pricing).
|
|
50
|
+
OpenAI: [exact model](https://developers.openai.com/api/docs/models/gpt-6.1-sol), [pricing](https://developers.openai.com/api/docs/pricing).
|
|
51
|
+
|
|
52
|
+
`longContext.inputTokenThreshold` selects the entire request's alternate rate set only above the threshold. Prompt size is original input + cache read + aggregate cache write; output is excluded. No tier or rate is hardcoded in the calculator.
|
|
53
|
+
|
|
54
|
+
`cacheWriteLongPerMTok` is the provider's long-TTL write rate. Claude's observed `ephemeral_1h_input_tokens` is a subset of aggregate cache creation: it is weighted at the long rate, with remaining writes at the ordinary rate, never added twice. Invalid counts are rejected safely; a positive one-hour count without a long rate yields unknown computed cost. Repeated blocks retain observed TTL detail. Pi has no observed long-write metadata, so unspecified TTL uses the short-TTL rate as an estimate (including OpenAI); the presence of a long price alone does not imply long writes.
|
|
55
|
+
|
|
56
|
+
### Repricing and subscriptions
|
|
57
|
+
|
|
58
|
+
Ingestion hashes schema-normalized pricing JSON separately from source content and adapter version. A changed pricing hash reparses and atomically replaces the source snapshot and checkpoint; a failure rolls back both. Legacy null hashes reparse once. JSON whitespace/object key order does not invalidate the checkpoint. Source files remain read-only.
|
|
59
|
+
|
|
60
|
+
`subscriptions.json` must be reviewed periodically (spec §5.1); update `reviewedAt` when you do. `monthlyPriceUsd: null` means the price is not verified yet.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"currency": "USD",
|
|
4
|
+
"basis": "current-reference",
|
|
5
|
+
"observedAt": "2026-10-21",
|
|
6
|
+
"entries": [
|
|
7
|
+
{
|
|
8
|
+
"model": "claude-opus-5-5",
|
|
9
|
+
"provider": "anthropic",
|
|
10
|
+
"validFrom": "2026-10-21",
|
|
11
|
+
"validTo": null,
|
|
12
|
+
"inputPerMTok": 4,
|
|
13
|
+
"outputPerMTok": 20,
|
|
14
|
+
"cacheReadPerMTok": 0.2,
|
|
15
|
+
"cacheWritePerMTok": 5,
|
|
16
|
+
"cacheWriteLongPerMTok": 8,
|
|
17
|
+
"sources": [
|
|
18
|
+
"https://platform.claude.com/docs/en/models/opus-5-5/overview",
|
|
19
|
+
"https://platform.claude.com/docs/en/about-claude/pricing"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"model": "claude-opus-5-5",
|
|
24
|
+
"provider": "claude-bridge",
|
|
25
|
+
"validFrom": "2026-10-21",
|
|
26
|
+
"validTo": null,
|
|
27
|
+
"inputPerMTok": 4,
|
|
28
|
+
"outputPerMTok": 20,
|
|
29
|
+
"cacheReadPerMTok": 0.2,
|
|
30
|
+
"cacheWritePerMTok": 5,
|
|
31
|
+
"cacheWriteLongPerMTok": 8,
|
|
32
|
+
"sources": [
|
|
33
|
+
"https://platform.claude.com/docs/en/models/opus-5-5/overview",
|
|
34
|
+
"https://platform.claude.com/docs/en/about-claude/pricing"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"model": "gpt-6.1-sol",
|
|
39
|
+
"provider": "openai-codex",
|
|
40
|
+
"validFrom": "2026-10-21",
|
|
41
|
+
"validTo": null,
|
|
42
|
+
"inputPerMTok": 2,
|
|
43
|
+
"outputPerMTok": 10,
|
|
44
|
+
"cacheReadPerMTok": 0.1,
|
|
45
|
+
"cacheWritePerMTok": 2.5,
|
|
46
|
+
"cacheWriteLongPerMTok": 5,
|
|
47
|
+
"sources": [
|
|
48
|
+
"https://developers.openai.com/api/docs/models/gpt-6.1-sol",
|
|
49
|
+
"https://developers.openai.com/api/docs/pricing"
|
|
50
|
+
],
|
|
51
|
+
"longContext": {
|
|
52
|
+
"inputTokenThreshold": 272000,
|
|
53
|
+
"inputPerMTok": 4,
|
|
54
|
+
"outputPerMTok": 15,
|
|
55
|
+
"cacheReadPerMTok": 0.2,
|
|
56
|
+
"cacheWritePerMTok": 5,
|
|
57
|
+
"cacheWriteLongPerMTok": 10
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"plans": [
|
|
4
|
+
{
|
|
5
|
+
"id": "claude-pro",
|
|
6
|
+
"label": "Claude Pro",
|
|
7
|
+
"provider": "anthropic",
|
|
8
|
+
"monthlyPriceUsd": 20,
|
|
9
|
+
"reviewedAt": "2026-10-20",
|
|
10
|
+
"windows": [
|
|
11
|
+
{
|
|
12
|
+
"kind": "five_hours",
|
|
13
|
+
"limit": {
|
|
14
|
+
"unit": "estimated"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"kind": "weekly",
|
|
19
|
+
"limit": {
|
|
20
|
+
"unit": "estimated"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"id": "claude-max-5x",
|
|
27
|
+
"label": "Claude Max 5x",
|
|
28
|
+
"provider": "anthropic",
|
|
29
|
+
"monthlyPriceUsd": 100,
|
|
30
|
+
"reviewedAt": "2026-10-20",
|
|
31
|
+
"windows": [
|
|
32
|
+
{
|
|
33
|
+
"kind": "five_hours",
|
|
34
|
+
"limit": {
|
|
35
|
+
"unit": "estimated"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"kind": "weekly",
|
|
40
|
+
"limit": {
|
|
41
|
+
"unit": "estimated"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "claude-max-20x",
|
|
48
|
+
"label": "Claude Max 20x",
|
|
49
|
+
"provider": "anthropic",
|
|
50
|
+
"monthlyPriceUsd": 200,
|
|
51
|
+
"reviewedAt": "2026-10-20",
|
|
52
|
+
"windows": [
|
|
53
|
+
{
|
|
54
|
+
"kind": "five_hours",
|
|
55
|
+
"limit": {
|
|
56
|
+
"unit": "estimated"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "weekly",
|
|
61
|
+
"limit": {
|
|
62
|
+
"unit": "estimated"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"id": "opencode-go",
|
|
69
|
+
"label": "OpenCode Go",
|
|
70
|
+
"provider": "opencode",
|
|
71
|
+
"monthlyPriceUsd": null,
|
|
72
|
+
"reviewedAt": "2026-10-20",
|
|
73
|
+
"windows": [
|
|
74
|
+
{
|
|
75
|
+
"kind": "five_hours",
|
|
76
|
+
"limit": {
|
|
77
|
+
"unit": "usd",
|
|
78
|
+
"value": 12
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"kind": "weekly",
|
|
83
|
+
"limit": {
|
|
84
|
+
"unit": "usd",
|
|
85
|
+
"value": 30
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"kind": "monthly",
|
|
90
|
+
"limit": {
|
|
91
|
+
"unit": "usd",
|
|
92
|
+
"value": 60
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"id": "chatgpt-plus",
|
|
99
|
+
"label": "ChatGPT Plus",
|
|
100
|
+
"provider": "openai",
|
|
101
|
+
"monthlyPriceUsd": 20,
|
|
102
|
+
"reviewedAt": "2026-10-28",
|
|
103
|
+
"windows": [
|
|
104
|
+
{
|
|
105
|
+
"kind": "five_hours",
|
|
106
|
+
"limit": {
|
|
107
|
+
"unit": "estimated"
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"kind": "weekly",
|
|
112
|
+
"limit": {
|
|
113
|
+
"unit": "estimated"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# data/theme/
|
|
2
|
+
|
|
3
|
+
Single source of design tokens (spec §8.2). `apps/web` turns them into CSS custom properties and the Vega-Lite theme; no component uses hand-written values.
|
|
4
|
+
|
|
5
|
+
- `themes.json`: semantic colors and the ordered chart series for each Kanagawa variant. Wave (dark, default) comes from the author's gentle-shell and Zellij `kanagawa` theme; Dragon (deeper dark) and Lotus (light) come from [kanagawa.nvim](https://github.com/rebelot/kanagawa.nvim).
|
|
6
|
+
- `base.json`: typography, spacing scale per density, radii, borders, layout sizes and motion.
|
|
7
|
+
|
|
8
|
+
## Contrast
|
|
9
|
+
|
|
10
|
+
`pnpm check` enforces WCAG AA (spec §8.4):
|
|
11
|
+
|
|
12
|
+
- `fg`, `fg-muted`, `accent`, `success`, `warning`, `danger` and `info` reach 4.5:1 on `bg`, `surface` and `surface-raised`.
|
|
13
|
+
- `fg` and `fg-muted` also reach 4.5:1 on `selection`.
|
|
14
|
+
- `border-strong` and every chart color reach 3:1 on `bg`, `surface` and `surface-raised`.
|
|
15
|
+
|
|
16
|
+
When an original Kanagawa tone fails, adjust its lightness, keep its hue, and record the original under `adjustments` with the reason.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"font": {
|
|
4
|
+
"mono": [
|
|
5
|
+
"FiraCode Nerd Font",
|
|
6
|
+
"Fira Code",
|
|
7
|
+
"JetBrains Mono",
|
|
8
|
+
"ui-monospace",
|
|
9
|
+
"SFMono-Regular",
|
|
10
|
+
"Menlo",
|
|
11
|
+
"monospace"
|
|
12
|
+
],
|
|
13
|
+
"sans": ["Inter", "system-ui", "-apple-system", "Segoe UI", "sans-serif"]
|
|
14
|
+
},
|
|
15
|
+
"fontSize": {
|
|
16
|
+
"xs": "0.75rem",
|
|
17
|
+
"sm": "0.8125rem",
|
|
18
|
+
"md": "0.875rem",
|
|
19
|
+
"lg": "1rem",
|
|
20
|
+
"xl": "1.25rem",
|
|
21
|
+
"xxl": "1.75rem"
|
|
22
|
+
},
|
|
23
|
+
"fontWeight": {
|
|
24
|
+
"regular": 400,
|
|
25
|
+
"medium": 500,
|
|
26
|
+
"bold": 700
|
|
27
|
+
},
|
|
28
|
+
"lineHeight": {
|
|
29
|
+
"tight": 1.2,
|
|
30
|
+
"normal": 1.5
|
|
31
|
+
},
|
|
32
|
+
"density": {
|
|
33
|
+
"comfortable": {
|
|
34
|
+
"spaceUnit": "4px"
|
|
35
|
+
},
|
|
36
|
+
"compact": {
|
|
37
|
+
"spaceUnit": "3px"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"space": {
|
|
41
|
+
"0": 0,
|
|
42
|
+
"1": 1,
|
|
43
|
+
"2": 2,
|
|
44
|
+
"3": 3,
|
|
45
|
+
"4": 4,
|
|
46
|
+
"5": 6,
|
|
47
|
+
"6": 8,
|
|
48
|
+
"7": 12,
|
|
49
|
+
"8": 16
|
|
50
|
+
},
|
|
51
|
+
"radius": {
|
|
52
|
+
"none": "0",
|
|
53
|
+
"sm": "2px",
|
|
54
|
+
"md": "4px"
|
|
55
|
+
},
|
|
56
|
+
"borderWidth": {
|
|
57
|
+
"thin": "1px",
|
|
58
|
+
"focus": "2px"
|
|
59
|
+
},
|
|
60
|
+
"layout": {
|
|
61
|
+
"statusBarHeight": "1.75rem",
|
|
62
|
+
"sidebarWidth": "14rem",
|
|
63
|
+
"contentMaxWidth": "96rem",
|
|
64
|
+
"controlHeight": "1.875rem"
|
|
65
|
+
},
|
|
66
|
+
"motion": {
|
|
67
|
+
"durationFast": "100ms",
|
|
68
|
+
"durationBase": "160ms",
|
|
69
|
+
"easing": "cubic-bezier(0.2, 0, 0, 1)"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"defaults": {
|
|
4
|
+
"light": "lotus",
|
|
5
|
+
"dark": "wave"
|
|
6
|
+
},
|
|
7
|
+
"themes": {
|
|
8
|
+
"wave": {
|
|
9
|
+
"label": "Kanagawa Wave",
|
|
10
|
+
"appearance": "dark",
|
|
11
|
+
"source": "~/.gentle-shell/agent/themes/kanagawa.json (gentle-shell) and Zellij built-in kanagawa",
|
|
12
|
+
"colors": {
|
|
13
|
+
"bg": "#1F1F28",
|
|
14
|
+
"surface": "#2A2A37",
|
|
15
|
+
"surface-raised": "#363646",
|
|
16
|
+
"selection": "#223249",
|
|
17
|
+
"border": "#54546D",
|
|
18
|
+
"border-strong": "#938AA9",
|
|
19
|
+
"fg": "#DCD7BA",
|
|
20
|
+
"fg-muted": "#A69FB8",
|
|
21
|
+
"accent": "#86A2DA",
|
|
22
|
+
"success": "#98BB6C",
|
|
23
|
+
"warning": "#FF9E3B",
|
|
24
|
+
"danger": "#FF777B",
|
|
25
|
+
"info": "#7FB4CA"
|
|
26
|
+
},
|
|
27
|
+
"chart": [
|
|
28
|
+
"#7E9CD8",
|
|
29
|
+
"#98BB6C",
|
|
30
|
+
"#E6C384",
|
|
31
|
+
"#D27E99",
|
|
32
|
+
"#FFA066",
|
|
33
|
+
"#957FB8",
|
|
34
|
+
"#7AA89F",
|
|
35
|
+
"#E46876",
|
|
36
|
+
"#7FB4CA",
|
|
37
|
+
"#C0A36E"
|
|
38
|
+
],
|
|
39
|
+
"adjustments": {
|
|
40
|
+
"fg-muted": {
|
|
41
|
+
"from": "#938AA9",
|
|
42
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
43
|
+
},
|
|
44
|
+
"accent": {
|
|
45
|
+
"from": "#7E9CD8",
|
|
46
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
47
|
+
},
|
|
48
|
+
"danger": {
|
|
49
|
+
"from": "#FF5D62",
|
|
50
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"dragon": {
|
|
55
|
+
"label": "Kanagawa Dragon",
|
|
56
|
+
"appearance": "dark",
|
|
57
|
+
"source": "kanagawa.nvim dragon palette",
|
|
58
|
+
"colors": {
|
|
59
|
+
"bg": "#181616",
|
|
60
|
+
"surface": "#282727",
|
|
61
|
+
"surface-raised": "#393836",
|
|
62
|
+
"selection": "#223249",
|
|
63
|
+
"border": "#625E5A",
|
|
64
|
+
"border-strong": "#7A8382",
|
|
65
|
+
"fg": "#C5C9C5",
|
|
66
|
+
"fg-muted": "#A6A49C",
|
|
67
|
+
"accent": "#8EA6B2",
|
|
68
|
+
"success": "#8AAB8A",
|
|
69
|
+
"warning": "#C4B28A",
|
|
70
|
+
"danger": "#D1938F",
|
|
71
|
+
"info": "#92A7A5"
|
|
72
|
+
},
|
|
73
|
+
"chart": [
|
|
74
|
+
"#8BA4B0",
|
|
75
|
+
"#87A987",
|
|
76
|
+
"#C4B28A",
|
|
77
|
+
"#A292A3",
|
|
78
|
+
"#B6927B",
|
|
79
|
+
"#8992A7",
|
|
80
|
+
"#8EA4A2",
|
|
81
|
+
"#C4746E",
|
|
82
|
+
"#949FB5",
|
|
83
|
+
"#B98D7B"
|
|
84
|
+
],
|
|
85
|
+
"adjustments": {
|
|
86
|
+
"fg-muted": {
|
|
87
|
+
"from": "#9E9B93",
|
|
88
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
89
|
+
},
|
|
90
|
+
"accent": {
|
|
91
|
+
"from": "#8BA4B0",
|
|
92
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
93
|
+
},
|
|
94
|
+
"success": {
|
|
95
|
+
"from": "#87A987",
|
|
96
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
97
|
+
},
|
|
98
|
+
"danger": {
|
|
99
|
+
"from": "#C4746E",
|
|
100
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
101
|
+
},
|
|
102
|
+
"info": {
|
|
103
|
+
"from": "#8EA4A2",
|
|
104
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"lotus": {
|
|
109
|
+
"label": "Kanagawa Lotus",
|
|
110
|
+
"appearance": "light",
|
|
111
|
+
"source": "kanagawa.nvim lotus palette",
|
|
112
|
+
"colors": {
|
|
113
|
+
"bg": "#F2ECBC",
|
|
114
|
+
"surface": "#E5DDB0",
|
|
115
|
+
"surface-raised": "#E7DBA0",
|
|
116
|
+
"selection": "#C9CBD1",
|
|
117
|
+
"border": "#A09CAC",
|
|
118
|
+
"border-strong": "#716E61",
|
|
119
|
+
"fg": "#535363",
|
|
120
|
+
"fg-muted": "#57554B",
|
|
121
|
+
"accent": "#455F8C",
|
|
122
|
+
"success": "#516439",
|
|
123
|
+
"warning": "#635E34",
|
|
124
|
+
"danger": "#AB3142",
|
|
125
|
+
"info": "#386474"
|
|
126
|
+
},
|
|
127
|
+
"chart": [
|
|
128
|
+
"#4D699B",
|
|
129
|
+
"#688149",
|
|
130
|
+
"#77713F",
|
|
131
|
+
"#B35B79",
|
|
132
|
+
"#B86200",
|
|
133
|
+
"#624C83",
|
|
134
|
+
"#597B75",
|
|
135
|
+
"#C84053",
|
|
136
|
+
"#478094",
|
|
137
|
+
"#836F4A"
|
|
138
|
+
],
|
|
139
|
+
"adjustments": {
|
|
140
|
+
"border": {
|
|
141
|
+
"from": "#DCD5AC",
|
|
142
|
+
"reason": "Visible thin panel borders: the reference tone is 1.2:1 on bg"
|
|
143
|
+
},
|
|
144
|
+
"fg": {
|
|
145
|
+
"from": "#545464",
|
|
146
|
+
"reason": "WCAG AA: 4.5:1 on selection"
|
|
147
|
+
},
|
|
148
|
+
"fg-muted": {
|
|
149
|
+
"from": "#8A8980",
|
|
150
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
151
|
+
},
|
|
152
|
+
"accent": {
|
|
153
|
+
"from": "#4D699B",
|
|
154
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
155
|
+
},
|
|
156
|
+
"success": {
|
|
157
|
+
"from": "#6F894E",
|
|
158
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
159
|
+
},
|
|
160
|
+
"warning": {
|
|
161
|
+
"from": "#77713F",
|
|
162
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
163
|
+
},
|
|
164
|
+
"danger": {
|
|
165
|
+
"from": "#C84053",
|
|
166
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
167
|
+
},
|
|
168
|
+
"info": {
|
|
169
|
+
"from": "#4E8CA2",
|
|
170
|
+
"reason": "WCAG AA: 4.5:1 on bg, surface and surface-raised (spec §8.4)"
|
|
171
|
+
},
|
|
172
|
+
"chart.2": {
|
|
173
|
+
"from": "#6F894E",
|
|
174
|
+
"reason": "WCAG 1.4.11: 3:1 on bg and surfaces"
|
|
175
|
+
},
|
|
176
|
+
"chart.5": {
|
|
177
|
+
"from": "#CC6D00",
|
|
178
|
+
"reason": "WCAG 1.4.11: 3:1 on bg and surfaces"
|
|
179
|
+
},
|
|
180
|
+
"chart.9": {
|
|
181
|
+
"from": "#4E8CA2",
|
|
182
|
+
"reason": "WCAG 1.4.11: 3:1 on bg and surfaces"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
package/data/tools.json
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"tools": [
|
|
4
|
+
{ "id": "bash", "aliases": ["bash", "exec", "execute", "shell"] },
|
|
5
|
+
{ "id": "edit", "aliases": ["edit"] },
|
|
6
|
+
{ "id": "grep", "aliases": ["grep"] },
|
|
7
|
+
{ "id": "list", "aliases": ["list"] },
|
|
8
|
+
{ "id": "read", "aliases": ["read"] },
|
|
9
|
+
{ "id": "task", "aliases": ["spawn_agent"] }
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "omt.saved-view/1",
|
|
3
|
+
"id": "activity-heatmap",
|
|
4
|
+
"name": "explorer.presets.activityHeatmap.name",
|
|
5
|
+
"description": "explorer.presets.activityHeatmap.description",
|
|
6
|
+
"query": {
|
|
7
|
+
"metrics": ["turns"],
|
|
8
|
+
"dimensions": ["dayOfWeek", "hourOfDay"],
|
|
9
|
+
"filters": [],
|
|
10
|
+
"range": "last90Days"
|
|
11
|
+
},
|
|
12
|
+
"chart": {
|
|
13
|
+
"type": "heatmap",
|
|
14
|
+
"encoding": { "x": "hourOfDay", "y": "dayOfWeek", "color": "turns" }
|
|
15
|
+
},
|
|
16
|
+
"spec": {
|
|
17
|
+
"$schema": "https://vega.github.io/schema/vega-lite/v6.json",
|
|
18
|
+
"data": { "name": "table" },
|
|
19
|
+
"mark": { "type": "rect" },
|
|
20
|
+
"encoding": {
|
|
21
|
+
"x": { "field": "hourOfDay", "type": "ordinal" },
|
|
22
|
+
"y": { "field": "dayOfWeek", "type": "ordinal" },
|
|
23
|
+
"color": { "field": "turns", "type": "quantitative" }
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "omt.saved-view/1",
|
|
3
|
+
"id": "cache-hit-ratio-by-agent",
|
|
4
|
+
"name": "explorer.presets.cacheHitRatioByAgent.name",
|
|
5
|
+
"description": "explorer.presets.cacheHitRatioByAgent.description",
|
|
6
|
+
"query": {
|
|
7
|
+
"metrics": ["cacheHitRatio"],
|
|
8
|
+
"dimensions": ["day", "agent"],
|
|
9
|
+
"filters": [],
|
|
10
|
+
"range": "last30Days"
|
|
11
|
+
},
|
|
12
|
+
"chart": { "type": "line", "encoding": { "x": "day", "y": "cacheHitRatio", "color": "agent" } },
|
|
13
|
+
"spec": {
|
|
14
|
+
"$schema": "https://vega.github.io/schema/vega-lite/v6.json",
|
|
15
|
+
"data": { "name": "table" },
|
|
16
|
+
"mark": { "type": "line", "point": true },
|
|
17
|
+
"encoding": {
|
|
18
|
+
"x": { "field": "day", "type": "temporal", "timeUnit": "utcyearmonthdate" },
|
|
19
|
+
"y": {
|
|
20
|
+
"field": "cacheHitRatio",
|
|
21
|
+
"type": "quantitative",
|
|
22
|
+
"scale": { "domain": [0, 1] },
|
|
23
|
+
"axis": { "format": "%" }
|
|
24
|
+
},
|
|
25
|
+
"color": { "field": "agent", "type": "nominal" }
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "omt.saved-view/1",
|
|
3
|
+
"id": "cost-by-model",
|
|
4
|
+
"name": "explorer.presets.costByModel.name",
|
|
5
|
+
"description": "explorer.presets.costByModel.description",
|
|
6
|
+
"query": {
|
|
7
|
+
"metrics": ["computedCost", "reportedCost"],
|
|
8
|
+
"dimensions": ["model"],
|
|
9
|
+
"filters": [],
|
|
10
|
+
"range": "last30Days"
|
|
11
|
+
},
|
|
12
|
+
"chart": { "type": "barGrouped", "encoding": { "x": "model" } },
|
|
13
|
+
"spec": {
|
|
14
|
+
"$schema": "https://vega.github.io/schema/vega-lite/v6.json",
|
|
15
|
+
"data": { "name": "table" },
|
|
16
|
+
"transform": [{ "fold": ["computedCost", "reportedCost"], "as": ["cost", "usd"] }],
|
|
17
|
+
"mark": { "type": "bar" },
|
|
18
|
+
"encoding": {
|
|
19
|
+
"x": { "field": "model", "type": "nominal" },
|
|
20
|
+
"xOffset": { "field": "cost", "type": "nominal" },
|
|
21
|
+
"y": { "field": "usd", "type": "quantitative" },
|
|
22
|
+
"color": { "field": "cost", "type": "nominal" }
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|