WHERE - Workspace InspectorOne local VS Code extension for execution comparisons and observed dotenv sources. InstallIn VS Code, open Extensions > ... > Install from VSIX and choose WHERE_0.2.0_Preview.vsix. Open a trusted project and run WHERE: Open workspace inspector. This keeps the existing identity ahmadsaad-where.where-dotenv and replaces WHERE 0.1.2 when installed as an update. Requires VS Code 1.99 or later. Source development requires Node.js 22 or later. The minimum VS Code version increased from WHERE 0.1.2 (1.95). Investigate
The interface follows the VS Code theme. It uses a compact execution rail, a ruled comparison table, expandable source rows and field-level evidence confidence. There are no network fonts, animations, third-party frontend frameworks or decorative generated images. Existing commandswhere.open, where.run, where.refresh, where.explain and where.report remain available. Known environment variables retain hover explanations in JS/TS and dotenv editors; the Environment view includes a Needs attention filter. Source locations open only after workspace and real-path containment checks. Additional commands control capture, probes, history and privacy reset. ContextLens aliases are registered only when another installed extension does not already own them. If the separate ContextLens preview is installed, disable it to use one product interface; this build does not uninstall or alter other extensions. What is observed
Observed, inferred, declared and unknown are distinct. Missing evidence is never proof a variable is absent. Rules identify leads, not proven causation. WHERE never executes fixes or restarts an application automatically. Launch semanticsDirect file launches load the observer through Node's --require argument. They preserve NODE_OPTIONS exactly, including absence or an empty value. Forked children inheriting execArgv can be traced independently. npm launches use an observer in NODE_OPTIONS so Node children can inherit it; the original task-shell value is retained for protected comparisons. If a dotenv file defines NODE_OPTIONS during npm instrumentation, that key's source is marked unverified and a direct file launch is recommended. The monitor's own options are not reported as a causal environment difference. The selected launch runs in a new VS Code task environment. It does not inherit ad-hoc changes made in an unrelated interactive terminal. The actual task shell environment is read by the launcher rather than replaced with extension-host NODE_OPTIONS. Each launch receives a random correlation ID; process records stay separate by process identity and are never joined by timestamp alone. Privacy and storageSee PRIVACY.md. No telemetry, account, external AI or cloud service is used. Instrumented Node applications transmit only HMAC fingerprints plus process/source metadata to a token-authenticated loopback collector. A separate workspace-scoped comparison key is obtained over the authenticated local channel. The long-lived SecretStorage master key never leaves the extension host and is not inserted into task definitions, terminal arguments or environment variables. Explicit Node/Python runtime probes use a private one-shot local pipe. Their selected raw environment values pass through host memory for validation and protection, then are discarded. Task/debug declarations are likewise protected before persistence. This distinction matters: the application-observer mode keeps raw values in the app; explicit probes have a transient local host boundary. No raw environment/config values, terminal output or privacy keys are saved to history, displayed in the interface or included in exports. Environment evidence uses its own comparison domain, separate from context metadata. Unknown/different domains never create a false value-change diagnosis. Values are not compared by treating an existing HMAC as a raw value. History defaults to 200 checkpoints / 14 days, with individual deletion, workspace deletion and key reset. Evidence is pruned with history. Key reset clears this workspace, rotates the privacy domain and disconnects old live observers. Older workspaces retain sanitized history but their old protected values become incomparable with newly captured values. Environment key names and relative source locations can identify a project. Known/common secret forms and private home paths are redacted, but arbitrary secret recognition cannot be guaranteed. Review exports before sharing. The user application and VS Code control their own terminal output and task history; WHERE does not rewrite application logs. Scope and limitsWindows/PowerShell is the primary verified host. Node CJS, ESM, dotenv/config, explicit paths, multiple paths, override and repeated config calls are covered. Python runtime context is supported; Python dotenv tracing is not. Framework loaders, dotenv-expand/dotenvx, Node --env-file, arbitrary third-party process attachment and worker-thread semantics are not claimed as fully traced. A process that forcibly exits before its observer can exchange metadata may have no observed dotenv evidence. Scans are bounded: 40 files by default (configurable to 100), 512 KB per source, 512 protected runtime keys, 32 live processes and 100 active launch identities per connection. Limits are surfaced as warnings and omitted keys stay unknown. WHERE_* names are reserved observer controls and excluded from comparison. macOS/Linux and remote-host extension runs were not executed on this machine. Core path/location fixtures do not establish full platform support. Unknown exit codes and unsupported origins remain unknown. The tool does not guarantee detection of every configuration problem. Source developmentnpm ci npm run verify npm run test:ui npm run package The test suite includes both original regression suites, new protected-evidence validation matrices, actual Node/Python IPC probes and real instrumented Node/npm/fork scenarios. Set CONTEXTLENS_TEST_PYTHON to a Python executable to include that interpreter's IPC test. Chrome is used headlessly by test:ui. For native integration checks, set CONTEXTLENS_TEST_VSCODE to Code.exe, CONTEXTLENS_TEST_PWSH to PowerShell 7 and CONTEXTLENS_TEST_PYTHON to Python, then run npm run test:extension. The suite uses its own profile, workspace and extensions directory under work/. A development-only companion verifies actual disk/SecretStorage persistence; Production extensions never expose test APIs. legacy-dotenv contains isolated reference modules used by regression tests. The active implementation is src/dotenv plus runtime. The unchanged ContextLens core contract is retained internally; richer protected environment/source evidence uses a separately validated versioned attachment. See docs/VERIFICATION.md and docs/MIGRATION.md for executed checks and compatibility details. MIT; bundled dotenv retains its BSD-2-Clause license. |