
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@eiei114/pi-sub-shared
Advanced tools
Shared types, metadata, and event contracts for the sub-* ecosystem.
This package is consumed by sub-core and sub-bar to keep provider metadata, usage types, and model multipliers consistent. For repo setup and extension installation, see the root pi-sub README.
npm install @eiei114/pi-sub-shared
import {
PROVIDERS,
ProviderName,
UsageSnapshot,
getDefaultCoreSettings,
} from "@eiei114/pi-sub-shared";
const defaults = getDefaultCoreSettings();
const provider: ProviderName = "anthropic";
const snapshot: UsageSnapshot = {
provider,
displayName: "Anthropic (Claude)",
windows: [],
};
console.log(PROVIDERS, defaults, snapshot);
PROVIDERS, ProviderNameRateWindow, UsageSnapshot, ProviderUsageEntryUsageError, UsageErrorCodeProviderStatus, StatusIndicatorCoreSettings, CoreProviderSettings, CoreProviderSettingsMapBehaviorSettings, DEFAULT_BEHAVIOR_SETTINGSgetDefaultCoreSettings, getDefaultCoreProviderSettingsSubCoreState, SubCoreAllState, SubCoreEventsScopedUsageRequest, ScopedUsageResponse, SCOPED_USAGE_EVENT — optional
selective base-provider read contract, not account-level identity resolutionProviderMetadata, ProviderDetectionConfig, ProviderStatusConfigPROVIDER_METADATA, PROVIDER_DISPLAY_NAMESMODEL_MULTIPLIERSUsageSnapshotcreditTotal / creditUsage / creditRemaining are account-level (wallet)
amounts. creditUnavailable marks a refresh where the wallet could not be read,
so callers can say "unknown" instead of showing an older value as current.
keyLimit / keyRemaining / keyUsage describe the credential in use and
must never be written into the credit fields. keyLimit is null when the
credential has no cap (which says nothing about the wallet) and omitted when the
cap could not be determined; neither case has a percentage.
npm run check
FAQs

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.