codeburn/tests
iamtoruk c2ab80d6e2 Merge main into feat/omp-support-model-aliases
Brings the PR branch up to the current main so the OMP provider and the
model-alias command can land cleanly. Resolves six merge conflicts and
applies a handful of small fixups alongside the resolution so the
feature matches the conventions set by the cursor-agent merge earlier
today.

Conflict resolutions:

  README.md               Combine cursor-agent and OMP rows in provider
                          list, Requirements, and data-location table;
                          take main's Node 22+ and node:sqlite text.
  src/cli.ts              Keep both new commands: model-alias and plan.
  src/config.ts           Add modelAliases alongside plan on the config
                          type.
  src/providers/index.ts  Keep the cursor-agent lazy-loader from main
                          and add omp to coreProviders. Fold the two
                          pi-module imports into one statement.
  src/providers/pi.ts     Keep the discovery-cache snapshot path from
                          main and the providerName parameterization
                          from the PR. Propagate providerName through
                          saveDiscoveryCache, loadDiscoveryCache, the
                          parserVersion tag, and the dedup key prefix
                          so OMP sources no longer stamp 'pi:' inside
                          their cache entries or dedup keys.
  tests/models.test.ts    Keep main's pricing-and-short-name tests and
                          add the PR's alias tests alongside, sharing a
                          single loadPricing setup and an afterEach
                          alias reset.

Fixups in the same commit:

  src/models.ts           Replace ?? chain in resolveAlias with
                          Object.hasOwn checks. The previous form
                          returned Object.prototype for a model named
                          '__proto__' and broke downstream
                          canonical.startsWith calls. Caught by the
                          existing prototype-pollution test suite.
  src/providers/pi.ts     Use source.provider in the dedup key prefix
                          and add a trailing newline to the file.
  tests/providers/omp.test.ts  Expect 'omp:' in the dedup key for OMP
                          sources, matching the fix above.

Feature work by @cgrossde.
2026-04-21 03:16:28 -07:00
..
fixtures/security test(security): add failing test for HIGH-1 prototype pollution 2026-04-17 08:32:18 +02:00
providers Merge main into feat/omp-support-model-aliases 2026-04-21 03:16:28 -07:00
security feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
bash-commands.test.ts chore: hoist Pi model sort + cover bash-utils edge cases 2026-04-16 02:02:32 -07:00
cli-plan.test.ts feat(plan): subscription plan tracking with usage progress bar 2026-04-20 14:55:07 -07:00
compare-stats.test.ts feat(compare): model comparison with planning rate fix 2026-04-19 08:34:49 -07:00
daily-cache.test.ts fix: recompute yesterday in daily cache to prevent stale menubar data 2026-04-19 03:07:54 -07:00
dashboard.test.ts fix: handle empty firstTimestamp in TopSessions, add dashboard tests 2026-04-16 15:48:24 +02:00
date-range-filter.test.ts feat(report): add --from/--to date range filtering and avgCostPerSession (#80) 2026-04-18 15:11:33 -07:00
day-aggregator.test.ts test: stabilize local-date aggregation 2026-04-21 00:03:49 +02:00
export.test.ts fix: pricing accuracy, stream leak, CSV injection hardening 2026-04-20 14:49:32 -07:00
fs-utils.test.ts feat: cache Claude sources by session file 2026-04-21 00:01:46 +02:00
menubar-json.test.ts feat(mac): native Swift menubar app + one-command install 2026-04-17 16:55:56 -07:00
models.test.ts Merge main into feat/omp-support-model-aliases 2026-04-21 03:16:28 -07:00
optimize-fs.test.ts docs(optimize): remove references to non-existent .claudeignore 2026-04-17 08:32:07 +02:00
optimize.test.ts docs(optimize): remove references to non-existent .claudeignore 2026-04-17 08:32:07 +02:00
parse-progress.test.ts feat: optimize parse caching across providers 2026-04-21 00:07:07 +02:00
parser-cache.test.ts feat: optimize parse caching across providers 2026-04-21 00:07:07 +02:00
parser-filter.test.ts test: cover filterProjectsByName include/exclude semantics 2026-04-16 15:49:57 -07:00
plan-usage.test.ts feat(plan): subscription plan tracking with usage progress bar 2026-04-20 14:55:07 -07:00
plans.test.ts feat(plan): subscription plan tracking with usage progress bar 2026-04-20 14:55:07 -07:00
provider-colors.test.ts refactor: share provider presentation metadata 2026-04-21 00:04:29 +02:00
provider-registry.test.ts Add OMP provider support and model alias mapping 2026-04-16 23:35:46 +02:00
source-cache.test.ts fix: harden source cache validation 2026-04-21 00:01:46 +02:00