This is a small prose-only follow-up that rewrites clearly internal or explanatory Anthropic comment language to neutral wording in a handful of high-confidence files. It avoids runtime strings, flags, command labels, protocol identifiers, and provider-facing references. Constraint: Keep this pass narrowly scoped to comments/documentation only Rejected: Broader Anthropic comment sweep across functional API/protocol references | too ambiguous for a safe prose-only PR Confidence: high Scope-risk: narrow Reversibility: clean Directive: Leave functional Anthropic references (API behavior, SDKs, URLs, provider labels, protocol docs) for separate reviewed passes Tested: bun run build Tested: bun run smoke Tested: bun run verify:privacy Tested: bun run test:provider Tested: bun run test:provider-recommendation Not-tested: Full repo typecheck (upstream baseline remains noisy) Co-authored-by: anandh8x <test@example.com>
23 lines
752 B
TypeScript
23 lines
752 B
TypeScript
export type ModifierKey = 'shift' | 'command' | 'control' | 'option'
|
|
|
|
/**
|
|
* Pre-warm the native module by loading it in advance.
|
|
*
|
|
* NOTE: The `modifiers-napi` package is an internal-only native addon
|
|
* that is not shipped with the open-source build. All calls are no-ops here
|
|
* to avoid supply-chain risk from unverified npm packages with the same name.
|
|
*/
|
|
export function prewarmModifiers(): void {
|
|
// No-op in open-source build — native modifier detection is not available.
|
|
}
|
|
|
|
/**
|
|
* Check if a specific modifier key is currently pressed (synchronous).
|
|
*
|
|
* Always returns false in the open-source build since the native addon
|
|
* is not available.
|
|
*/
|
|
export function isModifierPressed(_modifier: ModifierKey): boolean {
|
|
return false
|
|
}
|