Scope: all of scopes/ and components/ (excluding e2e/ and node_modules).
Total call sites: 88 across 6 method names.
Generated: as part of OpenSpec change rewrite-component-loading, pre-work task 1.1.
| Method | Sites |
|---|---|
workspace.get( |
33 |
workspace.getMany( |
21 |
workspace.list( |
14 |
workspace.listWithInvalid( |
2 |
workspace.listInvalid( |
0 |
workspace.getConsumerComponent( |
0 |
consumer.loadComponents( |
12 |
consumer.loadComponent( |
4 |
consumer.loadComponentFromFileSystem( |
0 |
| Shape | Count |
|---|---|
files |
29 |
? ambiguous |
18 |
extensions |
13 |
dependencies |
10 |
identity |
8 |
aspects |
6 |
The ? bucket is large enough that we should plan to revisit each one during stage-2 migration; assigning a phase to those sites needs reading surrounding code.
workspace.get(:
scopes/dependencies/dependencies/dependencies.main.runtime.ts:222—const component = await this.workspace.get(compId);(missing-packages analysis)scopes/dependencies/dependencies/dependencies.main.runtime.ts:357—const component = await this.workspace.get(compId);(debug deps mode)scopes/dependencies/dependencies/dependencies.main.runtime.ts:391—await this.workspace.get(id.changeVersion(logItem.tag || logItem.hash));(blame deps across versions)scopes/workspace/workspace/workspace-component/workspace-component-loader.ts:590— internalconsumer.loadComponentscall
workspace.getMany(:
scopes/workspace/workspace/filter.ts:57— filter by envscopes/workspace/workspace/filter.ts:70— filter by modified statusscopes/workspace/workspace/filter.ts:94— filter by code modifiedscopes/workspace/workspace/filter.ts:107— filter by complex statescopes/compilation/compiler/workspace-compiler.ts:480— load for compile (then reload at 483)scopes/compilation/compiler/workspace-compiler.ts:483— reload after env loadingscopes/component/snapping/snapping.main.runtime.ts:1142— fresh post-cache-clear load
workspace.list(:
scopes/dependencies/dependencies/dependencies.main.runtime.ts:436— usage trackingscopes/dependencies/dependencies/dependencies.main.runtime.ts:458— all-components dep scanscopes/component/snapping/version-maker.ts:113— auto-tag dep tracking
consumer.loadComponents(:
scopes/workspace/workspace/auto-tag.ts:19— auto-tag dep graph
workspace.get(:
scopes/harmony/aspect/aspect.main.runtime.ts:160—component.state.aspectsscopes/harmony/aspect/aspect.main.runtime.ts:173— debug aspects + componentExtensions/beforeMergescopes/component/dev-files/dev-files.main.runtime.ts:220—loadExtensions: false(note: caller already opts out; verify shape)scopes/generator/generator/component-generator.ts:257— envs.hasEnvConfigured / envs.getEnv
workspace.getMany(:
scopes/harmony/aspect/aspect.main.runtime.ts:139— unsetAspectsFromComponentsscopes/harmony/aspect/aspect.main.runtime.ts:197— updateAspectsToComponentsscopes/harmony/application/application.main.runtime.ts:210— explicitloadExtensions: true, executeLoadSlot: true, loadSeedersAsAspects: true
workspace.list(:
scopes/component/renaming/renaming.main.runtime.ts:147— refactor packages across allscopes/component/forking/forking.main.runtime.ts:297— env detection during forkscopes/component/forking/forking.main.runtime.ts:395— env detection during multi-fork
workspace.getMany(:
scopes/harmony/api-server/api-for-ide.ts:550— autoTag config diffscopes/harmony/api-server/api-for-ide.ts:552— locallyDeleted config diffscopes/typescript/typescript/typescript.main.runtime.ts:319— TS file collection (verify)
workspace.list(:
scopes/defender/tester/tester.main.runtime.ts:194— uiWatch test executionscopes/git/ci/ci.main.runtime.ts:345— verifyWorkspaceStatus → builder.build
workspace.get(:
scopes/harmony/api-server/api-for-ide.ts:165— getMainFilePath (comp.state._consumer.mainFile)scopes/harmony/api-server/api-for-ide.ts:319— getCompFiles (comp.state.filesystem.files)scopes/harmony/api-server/api-for-ide.ts:733— getCompDetailsscopes/workspace/install/install.main.runtime.ts:281— env loading file checksscopes/workspace/install/install.main.runtime.ts:1060— env.jsonc parse/updatescopes/workspace/watcher/watcher.ts:663— componentMap & relative filesscopes/component/remove/remove.main.runtime.ts:284— getRemoveInfo configscopes/component/renaming/renaming.main.runtime.ts:105— componentPackageNamescopes/component/renaming/renaming.main.runtime.ts:120— refactor variable/class names in sourcescopes/component/renaming/renaming.main.runtime.ts:141— target component filesscopes/component/forking/forking.main.runtime.ts:87— fork file checksscopes/component/forking/forking.main.runtime.ts:152— fork filesscopes/workspace/workspace/workspace-component/workspace-component-loader.ts:689— internalconsumer.loadComponentscopes/pipelines/builder/build.cmd.ts:181— builder.listTasksscopes/component/component-log/component-log.main.runtime.ts:331— historical version files
workspace.getMany(:
scopes/workspace/install/install.main.runtime.ts:1324— comp dirs mappingscopes/workspace/modules/node-modules-linker/codemod-components.ts:58— codemod relative pathsscopes/workspace/modules/node-modules-linker/node-modules-linker.ts:322— explicitloadSeedersAsAspects: false, loadExtensions: falsescopes/component/component-compare/component-compare.main.runtime.ts:190— file diffscopes/component/stash/stash.main.runtime.ts:41— head + isModifiedscopes/defender/linter/lint.cmd.ts:148— lintscopes/defender/formatter/format.cmd.ts:85— format
workspace.list(:
scopes/harmony/api-server/api-for-ide.ts:246— getCompsMetadatascopes/workspace/install/install.main.runtime.ts:850— _getAllMissingPackagesscopes/workspace/install/install.main.runtime.ts:1097— getAllComponentsDirsscopes/workspace/install/install.main.runtime.ts:1117— getComponentsManifestsscopes/workspace/install/install.main.runtime.ts:1475— getAllComponentsDirs (variant)scopes/workspace/workspace-config-files/workspace-config-files.main.runtime.ts:361— component.json ops
consumer.loadComponents(:
scopes/workspace/workspace/workspace-component/workspace-component-loader.ts:880— main-loader internalscopes/workspace/eject/components-ejector.ts:118— eject prepscopes/component/remove/remove-components.ts:158— remove loadscopes/components/legacy/component-list/components-list.ts:150— listNewComponentsscopes/components/legacy/component-list/components-list.ts:229— getFromFileSystem
consumer.loadComponent(:
scopes/components/legacy/component-list/components-list.ts:197— single load for out-of-sync fix
workspace.get(:
scopes/component/deprecation/deprecation.main.runtime.ts:80— deprecated config markerscopes/component/remove/remove.main.runtime.ts:412— getHeadIfExists
workspace.getMany(:
scopes/component/remove/remove.main.runtime.ts:125— markRemoveComps (uses_consumer; verify if files needed)scopes/component/status/status.main.runtime.ts:197—opts.showIssues ? full : []
consumer.loadComponent(:
scopes/component/component/show/legacy-show/get-consumer-component.ts:8— recent vs modelscopes/scope/importer/import-components.ts:851— three-way merge
workspace.get(:
scopes/workspace/install/install.cmd.tsx:111scopes/workspace/workspace/workspace.main.runtime.ts:243— LegacyComponentLoader subscriber (conversion path)scopes/workspace/workspace/build-graph-ids-from-fs.ts:185scopes/workspace/workspace/build-graph-from-fs.ts:188scopes/workspace/workspace/workspace-aspects-loader.ts:764— aspect loading; very likelyaspectsscopes/workspace/watcher/watcher.ts:785— return value unusedscopes/workspace/modules/node-modules-linker/codemod-components.ts:82scopes/generator/generator/generator.main.runtime.ts:329— generator template aspectscopes/semantics/schema/schema.spec.ts:50— test only
workspace.listWithInvalid(:
scopes/component/remove/remove-components.ts:135scopes/component/status/status.main.runtime.ts:93— status command's primary call (target for stage-1 migration todependencies)
consumer.loadComponents(:
scopes/workspace/workspace/workspace-component/workspace-component-loader.ts:76scopes/component/checkout/checkout.main.runtime.ts:470scopes/scope/export/export.main.runtime.ts:747— out-of-sync fix; return unused
workspace.listInvalid()andworkspace.getConsumerComponent()have zero callers — both can be deleted as part of this change rather than migrated. Mark for removal in stage 3.workspace-component-loader.ts:590, 689, 880are internal calls within the loader being rewritten — they vanish along with the file in stage 3 (task 9.1).workspace.main.runtime.ts:243is the LegacyComponentLoader subscriber — this is the bridge invoked when legacy code requests a harmony component. It's exactly the conversion path the rewrite eliminates. Migration of this site = the legacy/harmony bridge collapse.- The 7 explicit
loadExtensions: false/loadSeedersAsAspects: falsecallers (e.g.node-modules-linker.ts:322,dev-files.main.runtime.ts:220,install.main.runtime.ts:1324) confirm the demand for sub-aspect phases — they're already paying to opt out of full hydration. workspace.list()is called 14 times — every one of those is a candidate forlistIds()if the caller only needs IDs, or a lower phase otherwise. Several install-command callers (850, 1097, 1117, 1475) iterate overcomp.state.filesystem.filesonly and never touch extensions —filesphase is sufficient.api-for-ide.tsis a hot caller (5 sites) — the IDE server triggers loads on every IDE event. Lowering the default phase here will give immediate latency wins for IDE flows.
| Default phase to switch to | Sites |
|---|---|
identity |
the 2 deprecation/remove sites + 2 consumer.loadComponent legacy show |
files |
the 29 already classified + several install/list sites currently doing extra work |
dependencies |
the 10 above + status.main.runtime.ts:93 (currently full hydration) |
extensions |
the 13 above only |
aspects |
the 6 above only |
| revisit | the 18 ambiguous sites |