@bloomai/cli 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -46
- package/SKILL.md +2 -2
- package/dist/index.js +7 -1
- package/package.json +13 -2
- package/src/api.ts +0 -67
- package/src/auth.ts +0 -83
- package/src/commands/auth.ts +0 -45
- package/src/commands/catalysts.ts +0 -18
- package/src/commands/collections.ts +0 -20
- package/src/commands/earnings.ts +0 -18
- package/src/commands/financials.ts +0 -30
- package/src/commands/info.ts +0 -79
- package/src/commands/market.ts +0 -22
- package/src/commands/news.ts +0 -48
- package/src/commands/options.ts +0 -35
- package/src/commands/portfolio.ts +0 -28
- package/src/commands/position.ts +0 -44
- package/src/commands/price.ts +0 -76
- package/src/commands/screen.ts +0 -77
- package/src/commands/sentiment.ts +0 -51
- package/src/commands/technicals.ts +0 -25
- package/src/commands/trades.ts +0 -41
- package/src/commands/transcript.ts +0 -69
- package/src/format.ts +0 -179
- package/src/global-opts.ts +0 -9
- package/src/index.ts +0 -49
- package/tsconfig.json +0 -15
- package/tsup.config.ts +0 -12
package/src/global-opts.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
|
|
3
|
-
export function addGlobalOptions(cmd: Command): Command {
|
|
4
|
-
return cmd
|
|
5
|
-
.option("-o, --output <file>", "Write output to file")
|
|
6
|
-
.option("-f, --format <fmt>", "Output format: json, csv, table")
|
|
7
|
-
.option("-q, --quiet", "Suppress headers, data only")
|
|
8
|
-
.option("--raw", "Raw JSON from API");
|
|
9
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { Command } from "commander";
|
|
2
|
-
import { registerAuthCommand } from "./commands/auth.js";
|
|
3
|
-
import { registerInfoCommand } from "./commands/info.js";
|
|
4
|
-
import { registerNewsCommand } from "./commands/news.js";
|
|
5
|
-
import { registerPriceCommand } from "./commands/price.js";
|
|
6
|
-
import { registerFinancialsCommand } from "./commands/financials.js";
|
|
7
|
-
import { registerSentimentCommand } from "./commands/sentiment.js";
|
|
8
|
-
import { registerMarketCommand } from "./commands/market.js";
|
|
9
|
-
import { registerCollectionsCommand } from "./commands/collections.js";
|
|
10
|
-
import { registerScreenCommand } from "./commands/screen.js";
|
|
11
|
-
import { registerEarningsCommand } from "./commands/earnings.js";
|
|
12
|
-
import { registerTechnicalsCommand } from "./commands/technicals.js";
|
|
13
|
-
import { registerOptionsCommand } from "./commands/options.js";
|
|
14
|
-
import { registerPortfolioCommand } from "./commands/portfolio.js";
|
|
15
|
-
import { registerTradesCommand } from "./commands/trades.js";
|
|
16
|
-
import { registerCatalystsCommand } from "./commands/catalysts.js";
|
|
17
|
-
import { registerPositionCommand } from "./commands/position.js";
|
|
18
|
-
import { registerTranscriptCommand } from "./commands/transcript.js";
|
|
19
|
-
|
|
20
|
-
const program = new Command();
|
|
21
|
-
|
|
22
|
-
program
|
|
23
|
-
.name("bloom")
|
|
24
|
-
.description("Bloom CLI — financial data for coding agents and humans")
|
|
25
|
-
.version("0.1.0");
|
|
26
|
-
|
|
27
|
-
// Register all commands (each command adds its own global options via addGlobalOptions)
|
|
28
|
-
registerAuthCommand(program);
|
|
29
|
-
registerInfoCommand(program);
|
|
30
|
-
registerNewsCommand(program);
|
|
31
|
-
registerPriceCommand(program);
|
|
32
|
-
registerFinancialsCommand(program);
|
|
33
|
-
registerSentimentCommand(program);
|
|
34
|
-
registerMarketCommand(program);
|
|
35
|
-
registerCollectionsCommand(program);
|
|
36
|
-
registerScreenCommand(program);
|
|
37
|
-
registerEarningsCommand(program);
|
|
38
|
-
registerTechnicalsCommand(program);
|
|
39
|
-
registerOptionsCommand(program);
|
|
40
|
-
registerPortfolioCommand(program);
|
|
41
|
-
registerTradesCommand(program);
|
|
42
|
-
registerCatalystsCommand(program);
|
|
43
|
-
registerPositionCommand(program);
|
|
44
|
-
registerTranscriptCommand(program);
|
|
45
|
-
|
|
46
|
-
program.parseAsync().catch((err) => {
|
|
47
|
-
console.error("Error:", err.message || err);
|
|
48
|
-
process.exit(1);
|
|
49
|
-
});
|
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2022",
|
|
4
|
-
"module": "ES2022",
|
|
5
|
-
"moduleResolution": "bundler",
|
|
6
|
-
"strict": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
"outDir": "dist",
|
|
10
|
-
"rootDir": "src",
|
|
11
|
-
"declaration": true,
|
|
12
|
-
"resolveJsonModule": true
|
|
13
|
-
},
|
|
14
|
-
"include": ["src/**/*"]
|
|
15
|
-
}
|
package/tsup.config.ts
DELETED