Commit graph

1818 commits

Author SHA1 Message Date
Resham Joshi
7b79a4ba5e
Merge pull request #1197 from getagentseal/fix/dock-hover-any-frontmost
fix(menubar): Capacity Dock hover works over any frontmost app
2026-08-31 09:56:46 -07:00
Resham Joshi
0c71cdcf31
Merge pull request #1202 from MiguelMachado-dev/feat/zai-menubar-quota
feat(mac): add Z.ai Coding Plan quota
2026-08-31 09:44:15 -07:00
Resham Joshi
10598498f6
Merge pull request #1201 from getagentseal/fix/copilot-credit-estimate
fix(plan): estimate Copilot AI credits from tokens and say when the total is incomplete (#1199)
2026-08-31 09:44:11 -07:00
Resham Joshi
9ef77a15a5
Merge pull request #1200 from getagentseal/fix/copilot-credential-discovery
fix(menubar): find Copilot credentials beyond the legacy plugin files (#1198)
2026-08-31 09:44:07 -07:00
Miguel Machado
069a163e26 feat(mac): add Z.ai quota provider 2026-08-31 12:11:55 -03:00
iamtoruk
ac6cfc045f fix(quota): skip zero-entitlement and unlimited Copilot windows instead of showing 100% used
A Free or Individual plan reports premium_interactions with entitlement 0
and 0% remaining, which both the menubar and the desktop decoder turned
into a full 100% used ring. Verified against a live quota payload.
2026-08-31 03:26:19 -07:00
iamtoruk
71bd7607f3 docs(plan): calibrate the Copilot credit estimate wording against real session-store rows (#1199) 2026-08-31 03:13:04 -07:00
iamtoruk
616a1fada2 fix(plan): move the Copilot credits bar onto the estimate and print whole credits (#1199) 2026-08-31 03:10:29 -07:00
iamtoruk
d879d6590b fix(plan): estimate Copilot AI credits from tokens and say when the total is incomplete (#1199)
Only Copilot CLI session-store rows carry total_nano_aiu, so a typical user
has a handful of exactly rated requests and hundreds of unrated ones, and
codeburn plan showed the exact-only sum as if it were the whole bill.

Price every unrated request from its tokens at listed API rates (1 credit =
$0.01) and carry that as estimatedCredits alongside creditRatedCalls /
creditUnratedCalls. A session that already carries an exact figure is never
estimated on top of: total_nano_aiu bills that request's whole token set,
JSONL twin included. spentCredits, the bar and percentUsed stay on GitHub's
exact figures. The plan headline, and status JSON via creditsNote, now say
how much of the total is estimated.
2026-08-31 03:07:38 -07:00
iamtoruk
c2524308bf fix(menubar): drop the copilot-cli Keychain rung from Copilot discovery (#1198)
The Copilot CLI's Keychain item is written by a Node keyring library, so
/usr/bin/security is not in its partition list. Unlike the Claude Code item,
every read would raise the macOS "allow access?" dialog, and with the probe
cache a user who clicks Deny would be asked again every five minutes.

`gh auth token` already reaches the same users, because the Copilot CLI itself
falls back to gh, so the rung was risk without benefit.

The chain is now legacy plugin files, ~/.copilot/config.json and settings.json,
the environment variables, `gh auth token`, and a pasted token. No `security`
subprocess remains in the adapter, and the probe cache collapses to the single
gh answer.
2026-08-31 02:09:44 -07:00
iamtoruk
7e37d33acc fix(menubar): keep the Copilot credential chain private to the adapter 2026-08-31 02:05:38 -07:00
iamtoruk
25c1218874 fix(menubar): find Copilot credentials from the Copilot CLI keychain, gh, env, and a pasted token (#1198)
Modern Copilot clients no longer write ~/.config/github-copilot/hosts.json or
apps.json, so the menubar reported "No GitHub Copilot credentials found" even
after signing in through VS Code and the Copilot CLI.

Discovery now walks an ordered read-only chain, first hit wins, every rung
tolerating an absent, locked, or malformed source: the legacy plugin files,
the Copilot CLI keychain item (service copilot-cli, read via /usr/bin/security
so no partition-list prompt can fire), ~/.copilot/config.json and
settings.json, COPILOT_GITHUB_TOKEN / GH_TOKEN / GITHUB_TOKEN, `gh auth token`,
and finally a token pasted into Settings. The two subprocess rungs are cached
for five minutes so eligibility checks and the 30s refresh cadence never spawn
per call, and hasCredential stays spawn-free.

VS Code's encrypted secret storage is deliberately untouched.

The no-credentials message now says usage tracking still works and names every
way to connect, and the Copilot settings pane gains a token field.
2026-08-31 02:05:03 -07:00
iamtoruk
286c1daf0d fix(menubar): poll the pointer so Capacity Dock hover works over any frontmost app
The #1170 hover synthesis rides on a global .mouseMoved monitor, but
macOS only delivers global mouse-moved events while the frontmost app
itself requests them. Chrome does, so hover appeared fixed there;
Finder and Terminal do not, so the dock went hover-dead over the
desktop and most native apps.

Add a 10 Hz pointer poll feeding the same passthrough + hover sync
path. A same-position diff guard makes idle ticks free, and the timer
lives and dies with the existing monitor lifecycle.
2026-08-30 15:12:20 -07:00
Resham Joshi
6a3fa2d0ce
Merge pull request #1196 from getagentseal/fix/atomic-heartbeat-rewrite
Some checks failed
Tests / test (22) (push) Has been cancelled
Tests / test (22.13.0) (push) Has been cancelled
Tests / desktop (push) Has been cancelled
CI / semgrep (push) Has been cancelled
fix(lock): atomic heartbeat rewrite ends the #904 torn-read flake
2026-08-30 03:33:16 -07:00
Resham Joshi
b74db73e3d
Merge pull request #1195 from getagentseal/snap/split-claude-credentials-plug
fix(snap): separate Claude credentials plug, narrow cline grant
2026-08-30 03:30:22 -07:00
iamtoruk
bc451ed1b6 fix(lock): heartbeat replaces the lock body atomically instead of truncating in place
The heartbeat rewrote session-refresh.lock with a plain writeFile,
which truncates before it writes, so any reader could observe an empty
or partial body for the width of the write. observe() tolerated that
window with retries, but every plain reader (the lock tests included)
raced it, which is the JSON parse flake behind #904.

The rewrite now lands next to the lock and renames over it, so a
reader sees the previous body or the next one, never a torn one. A
refused replace on Windows skips the tick, which staleness absorbs at
nine heartbeats per staleMs. observe() keeps its tolerance because
older codeburn versions sharing the cache dir still rewrite in place.

The new regression test hammers plain reads against a 1ms heartbeat:
it failed 5 of 5 runs against the old rewrite and passes 10 of 10
serial lock-suite runs with this change.
2026-08-30 03:29:01 -07:00
iamtoruk
acc6f743cc fix(snap): split Claude credential file into a manually-connected plug; narrow cline grant to data/tasks
Snap Store review (forum topic 52615) asked for both: the credential
file is sensitive and only powers the optional quota tile, so it moves
to its own claude-quota-credentials plug with no auto-connect; the
cline parser reads only ~/.cline/data/tasks/<id> transcripts, so the
grant names that directory instead of the whole data root.
2026-08-30 02:58:53 -07:00
Resham Joshi
920a03deee
Merge pull request #1194 from getagentseal/docs/contributing-gates
docs(contributing): full-suite gate, agent accountability, affiliation disclosure
2026-08-30 01:58:32 -07:00
iamtoruk
2d3333a57d docs(contributing): full-suite gate, review-response and agent accountability rules, provider affiliation disclosure 2026-08-30 01:56:53 -07:00
Resham Joshi
17092200a2
Merge pull request #1173 from avs-io/perf/harness-phase0
Some checks failed
CI / semgrep (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / desktop (push) Waiting to run
macOS Menubar CI / test (push) Has been cancelled
test(perf): Phase 0 wait-path harness and pinned main baselines
2026-08-29 16:07:25 -07:00
iamtoruk
af9c653d87 refactor(perf): trim the harness to what the receipts need
Drop pin-baselines.mjs: pinning is a once-per-phase paste and the
script hard-coded this phase's iteration-log row, so every later phase
would edit by hand anyway. Replace three hand-rolled argv parsers with
node:util parseArgs. Read machine facts from node:os instead of eight
subprocess probes (hw.model keeps its sysctl call). Track fixture bytes
with a running counter instead of re-walking the tree per file. Delete
the hover proxy that measured an argv the dock never spawns, plus
unused exports (ensureDir, assertAbsolute, GENERATED_FIXTURE_DIR).

Fixture output is byte-identical for the same seed (verified by full
tree diff against the pre-refactor generator) and all harness metrics
reproduce within run-to-run noise.
2026-08-29 15:34:25 -07:00
Resham Joshi
fcbe978206
Merge pull request #1172 from avs-io/codex/fix-claude-keychain-test-isolation
fix: isolate overridden Claude credential homes
2026-08-29 15:24:04 -07:00
Resham Joshi
b0b7627868
Merge pull request #1174 from avs-io/codex/cursor-provider
feat: add native Cursor quota connection
2026-08-29 15:07:44 -07:00
iamtoruk
03b6cc4857 fix(menubar): harden the Cursor quota adapter
Require every Dependencies field explicitly so a test can never fall
through to the live adapter and read the local Cursor session. Surface
an unreadable local store as its own honest error instead of a network
failure. Read the state database off the main actor so a lock held by
Cursor cannot stall the UI. Report the tighter of the Auto and API
pools when Cursor omits the total, since averaging hides an exhausted
pool behind an idle one.
2026-08-29 14:17:15 -07:00
iamtoruk
1f1954f257 fix(menubar): disconnect drops the provider from the persisted dock selection
A credential-less adapter left in the dock selection was silently
reconnected by the next scheduled refresh, undoing the user's explicit
disconnect. Cursor is the first adapter that needs no saved credential,
so the disconnect intent now persists: the provider leaves the stored
selection without latching manual-selection mode.
2026-08-29 14:17:15 -07:00
Aditya Vikram Singh
bce49926c3 feat: add native Cursor quota connection 2026-08-29 23:48:42 +05:30
Aditya Vikram Singh
3432bac335 test(perf): add Phase 0 wait-path harness and pin main baselines
Scripted isolated-HOME measurements for session parse, incremental
append, period switch, CLI cold start, and RSS. Extends the #1164
timings.csv shape without touching parser, cache, or UI hot paths.
2026-08-29 23:45:46 +05:30
Aditya Vikram Singh
6ac0db4604 fix: isolate overridden Claude credential homes 2026-08-29 23:38:37 +05:30
Resham Joshi
93b7b9a7da
docs(readme): refresh the Capacity Dock screenshot (#1171)
Some checks are pending
CI / semgrep (push) Waiting to run
macOS Menubar CI / test (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / desktop (push) Waiting to run
2026-08-29 18:42:42 +02:00
Resham Joshi
91b4ad87b6
fix(menubar): keep Capacity Dock hover alive after app deactivation (#1170)
SwiftUI onHover rides on NSTrackingAreas that only deliver while the
app is active. The dock lives in a nonactivating panel inside an
accessory app, so the first click into another app killed every hover
interaction until relaunch.

Hover enter/exit is now synthesized in CapacityDockController from the
existing local and global mouse monitors, which observe the pointer
regardless of activation. Provider rows are resolved by inverting the
layoutDetail row-midpoint math (CapacityDockPlacement.providerRowIndex,
unit-tested), and the SwiftUI onHover plumbing is removed so the
controller is the single hover source. Row exits no longer cancel the
rail's pending collapse, and a drag drop re-derives hover so a
stationary pointer resting on a row still opens its bubble.
2026-08-29 18:42:27 +02:00
iamtoruk
b23dbf967f docs(readme): add Capacity Dock to the surfaces showcase
Some checks failed
CI / semgrep (push) Waiting to run
macOS Menubar CI / test (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / desktop (push) Waiting to run
Windows Menubar CI / check (ubuntu-latest) (push) Has been cancelled
Windows Menubar CI / check (windows-latest) (push) Has been cancelled
2026-08-29 02:49:49 -07:00
iamtoruk
5958294f67 fix(menubar): only list providers with a live quota adapter in settings
The Capacity Dock settings sidebar listed the whole 69-provider catalog, but
only 7 have a live CodeBurn quota adapter; the rest just read 'coming soon'.
Filter the settings provider list to live-adapter providers so users only see
what actually works.
2026-08-29 02:26:33 -07:00
iamtoruk
76d77d4ef7 chore: release 0.9.23
Bump all surfaces to 0.9.23 together (CLI, desktop app, Windows menubar +
Tauri/Cargo, Flatpak, README download links) and regenerate the lockfile
version fields. Move the Unreleased changelog into a dated 0.9.23 section
covering the Capacity Dock, OMP/Grok pricing fix, CB-3/CB-4 sync, and the
desktop/TUI/menubar reliability fixes. Credit CodexBar (prior art) in the
README acknowledgements and third-party notices.
2026-08-29 01:22:46 -07:00
Aditya Vikram Singh
72564460c8
test(tui): cover exact-zero auto period (#1168) 2026-08-29 00:47:31 -07:00
Aditya Vikram Singh
84fea9d550
feat(menubar): add native Capacity Dock (#1167)
* feat(menubar): add native capacity dock

* fix(menubar): harden dock interaction boundaries

* feat(menubar): polish native Capacity Dock for launch

- Flush top-edge docking via NSHostingView safe-area opt-out; shielding
  window level so the rail necks into the physical top like the system notch
- Liquid Glass legibility scrim so labels stay readable on light wallpapers
- Weekly-else-monthly headline window; unified severity colour bands
  (green <50 / yellow / orange / red) across rings and detail bars
- Squircle gauge + graphite theme defaults; auto-show connected
  subscriptions (up to 5) until the user edits the set, then respect it
- Capacity Dock Settings menu item; re-centre the settings window; info
  glyph for the About row
- Trim dead provider-credential override fields down to apiKey only
- Reconcile and extend tests for all of the above

---------

Co-authored-by: iamtoruk <hello@agentseal.org>
2026-08-29 00:37:30 -07:00
Aditya Vikram Singh
fa540325fb
fix(desktop): reap CLI process trees on quit (#1166)
Some checks are pending
CI / semgrep (push) Waiting to run
macOS Menubar CI / test (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
Tests / desktop (push) Waiting to run
2026-08-28 15:12:33 -07:00
Aditya Vikram Singh
1487c75fa4
fix(tui): clean cache locks on confirmed exit (#1165) 2026-08-28 15:06:07 -07:00
Aditya Vikram Singh
9a929c87ab
test: add repeatable release acceptance ledger (#1164)
* test: add repeatable release acceptance ledger

* ci: gate desktop typecheck tests and build
2026-08-28 15:02:07 -07:00
Aditya Vikram Singh
b5f07d1cc7
perf(desktop): keep every destination useful across restarts (#1163)
* perf(desktop): keep every destination useful across restarts

* fix(desktop): label cached reports while they refresh

* fix(desktop): preserve reviewed cache invariants

* fix(desktop): bound durable snapshot work
2026-08-28 14:51:18 -07:00
Aditya Vikram Singh
81f1eb3d6a
perf(tui): show cached periods before refreshing sources (#1159)
* perf: paint Today before indexing TUI history

* perf(tui): serve cached periods before source refresh

* fix(tui): keep cached snapshots out of parse memo

* fix(tui): preserve provider and period truth

* fix(tui): label visible period while indexing

* fix(tui): recover provider switches and empty Today
2026-08-28 13:21:47 -07:00
Aditya Vikram Singh
9a93fdd77d
fix(tui): clear stale panels on settled resize (#1156) 2026-08-28 13:21:03 -07:00
Aditya Vikram Singh
daafb593ea
fix(menubar): recover parked status item (#1161) 2026-08-28 13:20:48 -07:00
Aditya Vikram Singh
6406296cb1
perf(desktop): show exact totals while details refresh (#1157)
* perf(desktop): warm time horizons before providers

* perf(desktop): avoid idle provider parse storm

* perf(desktop): show last exact headline during refresh

* perf(desktop): paint cached headline without animation

* fix(desktop): keep timeout recovery single-flight

* fix(desktop): keep cached headline stable on handoff

* fix(desktop): keep overview timelines legible

* fix(desktop): keep period switches truthful

* fix(desktop): open heatmap at newest dates

* fix(desktop): label cached data during refresh

* fix(desktop): invalidate progressive cache safely

* fix(desktop): keep progressive views exact across boundaries

* fix(desktop): preserve filter responsiveness

* fix(desktop): bound instant-switch memo
2026-08-28 13:20:33 -07:00
Aditya Vikram Singh
0d39b8cd0a
fix(desktop): harden packaged resident CLI routing (#1155)
* fix(desktop): recover from resident pipe closure

* fix(desktop): keep packaged resident serve alive

* test(desktop): make closed-pipe proof deterministic

* fix(desktop): preserve packaged CLI command routing

* test(desktop): isolate packaged CLI smoke
2026-08-28 13:19:29 -07:00
Resham Joshi
2512f6e487
Merge pull request #1158 from getagentseal/feat/desktop-plugin-era
Some checks are pending
CI / semgrep (push) Waiting to run
Tests / test (22) (push) Waiting to run
Tests / test (22.13.0) (push) Waiting to run
feat(desktop): plugin manager, install flow, sharing consent center, dormant Team tab
2026-08-28 07:09:17 -07:00
Resham Joshi
4cb59e8404
Merge pull request #1154 from getagentseal/feat/plugin-commands
feat(plugins): socket phase 2 - command invocation, exporter seam, remote install (10A/10B/14A)
2026-08-28 07:08:58 -07:00
Resham Joshi
3b4d3fd665
Merge pull request #1153 from getagentseal/feat/consent-scheduler
feat(sync): consent-once auto-sync with acceptance fingerprint, receipts, and kill switch (CB-4)
2026-08-28 07:08:35 -07:00
Resham Joshi
25e595c06b
Merge pull request #1152 from getagentseal/feat/plugin-signing
feat(plugins): ed25519 release-key verification and plugin add/remove (9b)
2026-08-28 07:08:17 -07:00
Resham Joshi
aca73fb8d0
Merge pull request #1151 from getagentseal/feat/plugin-socket
feat(plugins): CB-3 plugin socket - wire guard, CLI inspector, payload seam
2026-08-28 07:07:40 -07:00
iamtoruk
12f6d47afb test(sync): union the consent tests from both branches after rebase
The rebase spliced HEAD's damaged-record tests and the desktop branch's --json status tests into one block; rebuilt as the full HEAD suite plus the desktop 'sync auto status --json' describe block. 30 tests, no duplicate titles.
2026-08-28 07:02:23 -07:00