Changed
- BREAKING — Paid tier commands (Pro/Team/Enterprise) split out into the separate
tokenpak-paidprivate package. The OSStokenpakpackage now contains upgrade stubs for 25 command modules; real implementations ship separately and are installed viatokenpak install-tier <tier>. Tier-package-separation initiative (2026-04-21). - Removed ~5,150 LOC of paid implementation from the OSS package:
cli/commands/{optimize, route, compression, diff, prune, retain, fingerprint, replay, debug, last, template, dashboard, savings, metrics, budget, serve, trigger, exec, workflow, handoff, compliance, sla, maintenance, policy, vault}.pynow emit aDeprecationWarningon import and print an upgrade message on invocation (exit 2). Every public symbol external callers imported is preserved, aliased to the same_upgrade_stub. tokenpak.enterprise.*(audit, compliance, governance, policy, sla) — canonical home moved totokenpak_paid.enterprise.*. The OSS namespace now raisesImportErroron attribute access (these modules exposed classes — a silent no-op stub would be surprising).tokenpak/cli/trigger_cmd.pyreduced to a re-export shim pointing at the (stubbed)tokenpak.cli.commands.trigger.
Added
tokenpak.cli._plugin_loader— plugin discovery viatokenpak.commandsentry-points. Paid commands installed viatokenpak-paidsurface automatically. Feature-flagged viaTOKENPAK_ENABLE_PLUGINS=1until the default flips in a future release.tokenpak install-tier <tier>subcommand — pip-installs the privatetokenpak-paidpackage frompypi.tokenpak.ai/simple/using a local license key for HTTP Basic auth (__token__:<KEY>).- 3-layer gating model — (1) license-key-gated PEP 503 index controls package access, (2)
tokenpak_paid.entitlements.gate_commandruntime-gates every paid command based on tier + features, (3) license-server periodic revalidation with tier-dependent grace periods (14d Pro / 7d Team / 3d Enterprise) + 30d offline tolerance.
Migration
- OSS users who previously ran
tokenpak optimize,tokenpak dashboard, etc. see an upgrade message + non-zero exit. Path forward:tokenpak activate <KEY>→tokenpak install-tier pro(orteam/enterprise). No code change required for users who only use OSS commands (status,doctor,config,index, etc.). .importlintercontract updated — dropped the obsoletecli.commands.fingerprint → compression.fingerprinting.*ignore entry (stub has no fingerprinting imports). 5/5 contracts still KEPT.
Removed
- Direct access to paid implementation bodies from the OSS package (see migration note).