-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmod.ts
More file actions
executable file
·39 lines (36 loc) · 824 Bytes
/
mod.ts
File metadata and controls
executable file
·39 lines (36 loc) · 824 Bytes
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
36
37
38
39
#!/usr/bin/env deno run --allow-net --allow-run
import {
findSimilarPackages,
getErrorMessage,
getPackageDetails,
getPackageDocs,
getPackageDownloadSummary,
getPackageFile,
getPackageInfoDirect,
getScopePackages,
getSearchCapabilities,
queryOrama,
relevanceSearch
} from "./common.ts";
import { main as cliMain } from "./cli.ts";
import { main as mcpMain } from "./mcp.ts";
export {
findSimilarPackages,
getErrorMessage,
getPackageDetails,
getPackageDocs,
getPackageDownloadSummary,
getPackageFile,
getPackageInfoDirect,
getScopePackages,
getSearchCapabilities,
queryOrama,
relevanceSearch
};
if (import.meta.main) {
if (Deno.args.length > 0 && Deno.args[0] === "mcp") {
mcpMain();
} else {
cliMain();
}
}