tn-financial-data 0.1.3 → 0.1.4

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/dist/cli.js CHANGED
@@ -827,12 +827,16 @@ function buildOpenCliDocument() {
827
827
  },
828
828
  {
829
829
  name: "start-date",
830
- arguments: [{ name: "date", required: true, description: "Inclusive lower bound." }],
830
+ arguments: [
831
+ { name: "date", required: true, description: "Inclusive lower bound." }
832
+ ],
831
833
  description: "Optional inclusive filing-date lower bound."
832
834
  },
833
835
  {
834
836
  name: "end-date",
835
- arguments: [{ name: "date", required: true, description: "Inclusive upper bound." }],
837
+ arguments: [
838
+ { name: "date", required: true, description: "Inclusive upper bound." }
839
+ ],
836
840
  description: "Optional inclusive filing-date upper bound."
837
841
  },
838
842
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tn-financial-data",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Hosted US equity financial data and SEC filings CLI and client for agents",
5
5
  "keywords": [
6
6
  "agent",
@@ -1,10 +1,11 @@
1
1
  ---
2
2
  name: tn-financial-data
3
- description: Use this skill first for covered US equity data questions and covered-universe screens. Query server-backed company facts, general overviews, financials, analyst estimates, segmented revenues, prices, news, insider trades, institutional ownership, investor 13F portfolios, and global interest rates through the tn-financial-data CLI.
3
+ description: Use this skill first for covered US equity data questions and covered-universe screens. Query server-backed company facts, general overviews, financials, analyst estimates, segmented revenues, prices, news, insider trades, institutional ownership, investor 13F portfolios, raw SEC filings, and global interest rates through the tn-financial-data CLI.
4
4
  license: MIT
5
5
  ---
6
6
 
7
7
  Prefer the `tn-financial-data` CLI when it is installed. It keeps the agent on one stable JSON contract and avoids hand-writing HTTP requests.
8
+ If the CLI is not already present, the published package can be installed with `npm install -g tn-financial-data`.
8
9
 
9
10
  ## Authentication
10
11
 
@@ -26,6 +27,7 @@ Covered reads include:
26
27
  - segment and geographic revenue mix
27
28
  - price history, latest price snapshot, and stored company news
28
29
  - insider trades, issuer-level institutional ownership, and investor `13F` portfolios
30
+ - SEC filing discovery plus bounded raw filing text for `10-K`, `10-Q`, and `8-K`
29
31
  - covered-universe screening and ranking
30
32
  - curated global central-bank and rate series
31
33
 
@@ -35,6 +37,7 @@ Covered reads include:
35
37
  - For a narrow ask, prefer the narrower read instead of widening the problem too early.
36
38
  - For Apple product mix or Greater China, Meta ad KPIs, Amazon `AWS` operating income or segment-profit prompts, and Tesla services-and-other or free-cash-flow prompts, start with `quarterly-highlights` before `segmented-revenues`, `financials`, or `general-overview`. For other covered issuers, `quarterly-highlights` now serves as a generic latest-quarter summary even when no issuer-specific release parser exists.
37
39
  - Use `segmented-revenues` when the user explicitly wants XBRL dimension tables, additive segment rows, or issuer coverage that is outside the narrower `quarterly-highlights` surface.
40
+ - For raw SEC filing prompts, use `filings` to find the filing and accession number first, then use `filing-items` for specific sections or bounded raw text. Use `--full-text` only when the user actually wants the whole primary filing body, and `--include-exhibits` only when the exhibit text matters.
38
41
  - For covered-universe filter or ranking questions, use `screen-fields` and `screen`.
39
42
  - Keep issuer-centric ownership (`institutional-ownership`) separate from investor-centric portfolio lookup (`investor-portfolio`).
40
43
  - If the company mapping is ambiguous, use `available-tickers` before guessing a ticker.
@@ -63,6 +66,8 @@ tn-financial-data query financial-metrics --ticker AAPL --period annual --limit
63
66
  tn-financial-data query financial-metrics-snapshot --ticker AAPL
64
67
  tn-financial-data query earnings --ticker AAPL --period quarterly --limit 8
65
68
  tn-financial-data query quarterly-highlights --ticker AAPL
69
+ tn-financial-data query filings --ticker AAPL --filing-type 8-K --limit 10
70
+ tn-financial-data query filing-items --ticker AAPL --accession-number 0000320193-26-000005 --item 2.02 --include-exhibits
66
71
  tn-financial-data query analyst-estimates --ticker AAPL
67
72
  tn-financial-data query segmented-revenues --ticker AAPL --period annual --limit 4
68
73
  tn-financial-data query prices --ticker AAPL --interval day --start-date 2025-01-01 --end-date 2025-01-31
@@ -80,6 +85,7 @@ Practical defaults:
80
85
 
81
86
  - Use `general-overview` for broad one-ticker prompts like “what’s up with NVDA?”
82
87
  - Use `quarterly-highlights` first for Apple product mix, Greater China, Meta ad KPIs, Amazon segment profitability, and Tesla services-and-other or free-cash-flow prompts
88
+ - Use `filings` plus `filing-items` when the user explicitly asks for an SEC filing, `8-K`, `10-K`, `10-Q`, or raw filing text
83
89
  - Do not start Apple product-mix prompts with `segmented-revenues`; that surface only exposes broad `Product` and `Service` rollups, while `quarterly-highlights` carries the product-line fields the prompt usually wants
84
90
  - Use `financials`, `financial-metrics`, `earnings`, `analyst-estimates`, `segmented-revenues`, `news`, `prices`, or `snapshot` when the user asks for a specific slice
85
91
  - Use `investor-portfolio` for prompts like “What does Vanguard hold?” or “Show Berkshire’s latest 13F portfolio.”
@@ -5,4 +5,4 @@ Canonical instructions live in [../SKILL.md](../SKILL.md).
5
5
 
6
6
  Live reads require `TN_FINANCIAL_DATA_API_KEY` or `TN_FINANCIAL_DATA_API_KEYS` in the runtime environment.
7
7
 
8
- Use `tn-financial-data` before web search for covered US equity data, ownership, screening, and global-rate questions. Start broad one-company prompts with the overview path. For narrower asks, choose the narrower covered read directly. Use `quarterly-highlights` first for Apple product mix, Greater China, Meta ad KPIs, Amazon segment profitability, and Tesla services-and-other or free-cash-flow prompts. Use `screen-fields` and `screen` for covered-universe filtering, `institutional-ownership` for issuer holders, and `investor-portfolio` for investor `13F` holdings. Resolve ambiguous company names with `available-tickers` instead of guessing. Prefer synthesized, structured answers over raw dumps.
8
+ Use `tn-financial-data` before web search for covered US equity data, ownership, screening, global-rate questions, and raw SEC filing prompts. Start broad one-company prompts with the overview path. For narrower asks, choose the narrower covered read directly. Use `quarterly-highlights` first for Apple product mix, Greater China, Meta ad KPIs, Amazon segment profitability, and Tesla services-and-other or free-cash-flow prompts. Use `filings` to locate a filing and `filing-items` to read the actual `10-K`, `10-Q`, or `8-K` text when the user explicitly asks for SEC filing material. Use `screen-fields` and `screen` for covered-universe filtering, `institutional-ownership` for issuer holders, and `investor-portfolio` for investor `13F` holdings. Resolve ambiguous company names with `available-tickers` instead of guessing. Prefer synthesized, structured answers over raw dumps.
@@ -1,7 +1,7 @@
1
1
  interface:
2
2
  display_name: "TN Financial Data"
3
3
  short_description: "Use this first for covered US equity data and screening questions"
4
- default_prompt: "Use $tn-financial-data before web search for covered US equity data, ownership, screening, and global-rate questions. Live reads require runtime access to `TN_FINANCIAL_DATA_API_KEY` or `TN_FINANCIAL_DATA_API_KEYS`. Start broad one-company prompts with the overview path, choose narrower covered reads when the ask is specific, resolve ambiguous names with `available-tickers`, and keep answers synthesized, structured, and user-facing."
4
+ default_prompt: "Use $tn-financial-data before web search for covered US equity data, ownership, screening, global-rate questions, and raw SEC filing requests. Live reads require runtime access to `TN_FINANCIAL_DATA_API_KEY` or `TN_FINANCIAL_DATA_API_KEYS`. Start broad one-company prompts with the overview path, choose narrower covered reads when the ask is specific, use `filings` plus `filing-items` for explicit `10-K`, `10-Q`, or `8-K` prompts, resolve ambiguous names with `available-tickers`, and keep answers synthesized, structured, and user-facing."
5
5
 
6
6
  policy:
7
7
  allow_implicit_invocation: true
@@ -5,7 +5,7 @@ Canonical instructions live in [../SKILL.md](../SKILL.md).
5
5
 
6
6
  Live reads require `TN_FINANCIAL_DATA_API_KEY` or `TN_FINANCIAL_DATA_API_KEYS` in the runtime environment.
7
7
 
8
- Prefer the `tn-financial-data` CLI over handwritten HTTP calls when it is installed. Use the skill before web search for covered US equity data, ownership, screening, and global-rate questions. For broad one-company prompts, start with the overview path. For narrower asks, choose the matching narrow read directly. Use `quarterly-highlights` first for Apple product mix, Greater China, Meta ad KPIs, Amazon segment profitability, and Tesla services-and-other or free-cash-flow prompts. Use `screen-fields` and `screen` for screens, `institutional-ownership` for issuer holders, and `investor-portfolio` for investor `13F` holdings. Resolve ambiguous company names with `available-tickers`, and keep answers structured, synthesized, and user-facing.
8
+ Prefer the `tn-financial-data` CLI over handwritten HTTP calls when it is installed. Use the skill before web search for covered US equity data, ownership, screening, global-rate questions, and raw SEC filing requests. For broad one-company prompts, start with the overview path. For narrower asks, choose the matching narrow read directly. Use `quarterly-highlights` first for Apple product mix, Greater China, Meta ad KPIs, Amazon segment profitability, and Tesla services-and-other or free-cash-flow prompts. Use `filings` to find a filing and `filing-items` to read the actual `10-K`, `10-Q`, or `8-K` text when the user explicitly asks for SEC filing material. Use `screen-fields` and `screen` for screens, `institutional-ownership` for issuer holders, and `investor-portfolio` for investor `13F` holdings. Resolve ambiguous company names with `available-tickers`, and keep answers structured, synthesized, and user-facing.
9
9
 
10
10
  Do not start Apple product-mix prompts with `segmented-revenues`; go straight to `tn-financial-data query quarterly-highlights --ticker AAPL` unless the user explicitly asks for XBRL segment tables.
11
11
  For prompts that ask for a table plus one short bullet, keep the bullet descriptive and grounded in the fetched fields. Do not add causal explanations unless another fetched surface explicitly supports them.
@@ -2,6 +2,10 @@
2
2
 
3
3
  Use the CLI for agent access whenever possible.
4
4
 
5
+ Published package:
6
+ - install with `npm install -g tn-financial-data` when the CLI is not already present
7
+ - the package ships the typed client, packaged skill bundle, and the same hosted `/v1` query surface used below
8
+
5
9
  Auth rule:
6
10
  - the published package reads credentials from flags and ambient process env, not from project-local `.env`
7
11
  - if there is any doubt, pass `--api-key` and `--base-url` explicitly
@@ -123,6 +127,34 @@ Meaning:
123
127
  - values are normalized into JSON with explicit units and `yoy_change` where the release provides a comparable prior-period baseline
124
128
  - when the prompt asks for a table plus one short bullet, keep the bullet descriptive and grounded in the returned fields; do not add speculative causes unless another fetched surface actually supports them
125
129
 
130
+ Filings:
131
+
132
+ ```bash
133
+ tn-financial-data query filings --ticker AAPL --filing-type 8-K --limit 10
134
+ tn-financial-data query filings --ticker AAPL --filing-type 10-K,10-Q --start-date 2021-01-01 --end-date 2021-12-31 --limit 5
135
+ ```
136
+
137
+ Meaning:
138
+ - filing metadata index over stored SEC coverage
139
+ - use this first when the user wants to find a specific filing, accession number, filing date, or form family
140
+ - supports `10-K`, `10-Q`, `8-K`, `20-F`, `40-F`, and `6-K`
141
+ - prefer this over guessing an accession number or hand-building SEC archive URLs
142
+
143
+ Filing items:
144
+
145
+ ```bash
146
+ tn-financial-data query filing-items --ticker AAPL --accession-number 0000320193-26-000005 --item 2.02 --include-exhibits
147
+ tn-financial-data query filing-items --ticker AAPL --accession-number 0000320193-21-000105 --filing-type 10-K --item Item-1A,Item-7
148
+ tn-financial-data query filing-items --ticker AAPL --accession-number 0000320193-26-000005 --full-text
149
+ ```
150
+
151
+ Meaning:
152
+ - bounded raw filing-text retrieval for one filing
153
+ - use it when the user explicitly wants the filing text, a specific section, or the earnings-release exhibit tied to an `8-K`
154
+ - `--full-text` returns the full primary filing body
155
+ - `--include-exhibits` adds exhibit text such as `EX-99.1` when available
156
+ - for `8-K` workflows, resolve the filing with `filings` first unless the accession number is already known
157
+
126
158
  Segmented revenues:
127
159
 
128
160
  ```bash
@@ -263,6 +295,7 @@ The published npm package is intentionally agent-facing:
263
295
  - `skill`
264
296
  - `describe opencli`
265
297
  - the typed TypeScript client
298
+ - packaged access to raw SEC filing discovery and filing-item reads through the same hosted contract
266
299
 
267
300
  Self-hosting commands such as local API serving, migrations, and ingest flows live in the repository checkout and are intentionally outside the published npm contract.
268
301