-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathfetcher.cppm
More file actions
35 lines (30 loc) · 1.33 KB
/
fetcher.cppm
File metadata and controls
35 lines (30 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// mcpp.fetcher — backward-compat shim. The implementation has moved
// to `mcpp.pm.package_fetcher` as part of the package-management
// subsystem refactor (PR-R3 in
// `.agents/docs/2026-05-08-pm-subsystem-architecture.md`).
//
// All existing call sites continue to use `mcpp::fetcher::Fetcher`,
// `mcpp::fetcher::EventHandler`, etc. — the aliases below resolve those
// to the new `mcpp::pm` types. The shim disappears once `cli.cppm`
// migrates to the `mcpp::pm::` qualified names directly.
//
// (The architecture doc's "split into index_repo + index_store +
// package_fetcher" is reserved for the index-config feature work; the
// current `fetcher.cppm` body is a single xlings NDJSON client and
// stays a single module here.)
export module mcpp.fetcher;
import std;
export import mcpp.pm.package_fetcher;
export namespace mcpp::fetcher {
using EventKind = mcpp::pm::EventKind;
using ProgressEvent = mcpp::pm::ProgressEvent;
using LogEvent = mcpp::pm::LogEvent;
using DataEvent = mcpp::pm::DataEvent;
using ErrorEvent = mcpp::pm::ErrorEvent;
using ResultEvent = mcpp::pm::ResultEvent;
using Event = mcpp::pm::Event;
using EventHandler = mcpp::pm::EventHandler;
using CallError = mcpp::pm::CallError;
using CallResult = mcpp::pm::CallResult;
using Fetcher = mcpp::pm::Fetcher;
} // namespace mcpp::fetcher