@bloomai/cli 0.1.7 → 0.1.8
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/SKILL.md +1 -0
- package/dist/index.js +19 -1
- package/package.json +1 -1
package/SKILL.md
CHANGED
|
@@ -36,6 +36,7 @@ jq '.data[] | select(.revenue_growth > 0.1)' /tmp/bloom/aapl-revenue.json
|
|
|
36
36
|
| `news` | Recent news headlines | `bloom news AAPL --limit 5` |
|
|
37
37
|
| `price` | Historical price data | `bloom price AAPL --timeframes 1d,1m,1y` |
|
|
38
38
|
| `financials` | Revenue, margins, cash flow | `bloom financials AAPL --type revenue` |
|
|
39
|
+
| `briefing` | Today's written Morning Market Briefing | `bloom briefing` |
|
|
39
40
|
| `sentiment` | Market mood (AAII, Fear&Greed, VIX) | `bloom sentiment` |
|
|
40
41
|
| `market` | Market map, sectors, movers | `bloom market --type top_movers` |
|
|
41
42
|
| `collections` | Curated stock lists by theme | `bloom collections --section VALUE` |
|
package/dist/index.js
CHANGED
|
@@ -712,6 +712,10 @@ var BloomClient = class _BloomClient {
|
|
|
712
712
|
async getEarningsCalendar(params) {
|
|
713
713
|
return callRestCached("/markets/earnings-calendar/", params, "earnings");
|
|
714
714
|
}
|
|
715
|
+
// --- Market briefing ---
|
|
716
|
+
async getMarketBriefing() {
|
|
717
|
+
return callTool("get_market_briefing", {});
|
|
718
|
+
}
|
|
715
719
|
// --- Sentiment ---
|
|
716
720
|
async getSentiment(sections) {
|
|
717
721
|
const args = {};
|
|
@@ -1094,6 +1098,19 @@ Examples:
|
|
|
1094
1098
|
});
|
|
1095
1099
|
}
|
|
1096
1100
|
|
|
1101
|
+
// src/commands/briefing.ts
|
|
1102
|
+
function registerBriefingCommand(program2) {
|
|
1103
|
+
addGlobalOptions(
|
|
1104
|
+
program2.command("briefing").description("Today's Morning Market Briefing, written once each trading day")
|
|
1105
|
+
).action(async (opts) => {
|
|
1106
|
+
const data = await BloomClient.instance().getMarketBriefing();
|
|
1107
|
+
outputResult(data, opts, (d) => {
|
|
1108
|
+
const obj = d;
|
|
1109
|
+
return obj.briefing ?? "No briefing yet today (written each trading day around 10am ET).";
|
|
1110
|
+
});
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1097
1114
|
// src/commands/sentiment.ts
|
|
1098
1115
|
var SECTIONS = [
|
|
1099
1116
|
"aaii_sentiment",
|
|
@@ -2757,7 +2774,7 @@ Examples:
|
|
|
2757
2774
|
var program = new Command3();
|
|
2758
2775
|
var __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
2759
2776
|
var pkgPath = path.join(__dirname, "..", "package.json");
|
|
2760
|
-
var compiledVersion = "0.1.
|
|
2777
|
+
var compiledVersion = "0.1.8".length > 0 ? "0.1.8" : void 0;
|
|
2761
2778
|
var envVersion = process.env.BLOOM_CLI_VERSION ?? process.env.npm_package_version;
|
|
2762
2779
|
var fallbackVersion = compiledVersion ?? "unknown";
|
|
2763
2780
|
var cliVersion = envVersion ?? fallbackVersion;
|
|
@@ -2815,6 +2832,7 @@ registerCorrelationCommand(program);
|
|
|
2815
2832
|
registerRiskCommand(program);
|
|
2816
2833
|
registerDrawdownCommand(program);
|
|
2817
2834
|
registerMacroCommand(program);
|
|
2835
|
+
registerBriefingCommand(program);
|
|
2818
2836
|
registerSectorsCommand(program);
|
|
2819
2837
|
registerDcfCommand(program);
|
|
2820
2838
|
registerHoldersCommand(program);
|