@pi-sparkles/pi-sparkles 0.1.2 → 0.1.3

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/CHANGELOG.md CHANGED
@@ -5,6 +5,24 @@ here. Versions follow Semantic Versioning. The exact selected tier, plugin
5
5
  inventory, maturity, and content hashes remain authoritative in each tarball's
6
6
  `release-lock.json` and `aggregate-lock.json`.
7
7
 
8
+ ## 0.1.3 - 2026-08-14
9
+
10
+ - Replace the npm README's internal tier terminology with a user-facing
11
+ introduction, supported market coverage, primary data sources, example
12
+ questions, minimal environment setup, optional provider credentials, track
13
+ selection, and explicit read-only boundaries.
14
+ - Make T6 the guarded default for aggregate and npm-package preparation while
15
+ retaining an explicit T5 build for the published 0.1.2 product boundary.
16
+ - Record omitted proposals, partial implementations, open blockers, maturity,
17
+ and publish eligibility directly in generated aggregate and npm manifests.
18
+ - Prepare a private 0.1.3 T6 preview containing the exact present plugin
19
+ inventory, while preserving the publish refusal until T6 is complete and
20
+ ProductUseful.
21
+ - Add private transaction-tape and bounded-stream laws, local possible-fill
22
+ simulation, evidence-first compliance evaluation, and exact-hash caller-owned
23
+ receipt review to the T6 development inventory without exposing order
24
+ mutation or making OpenD a deliverable.
25
+
8
26
  ## 0.1.2 - 2026-08-13
9
27
 
10
28
  - Use `AGENT_CONTACT` as the single caller-owned operator identity across CN,
package/README.md CHANGED
@@ -1,31 +1,92 @@
1
1
  # Pi Sparkles
2
2
 
3
- One Pi extension entrypoint containing 124 tier-ledger plugins
4
- through **T5**. This package is releasable: every included tier through T5 is ProductUseful.
3
+ Turn [Pi](https://github.com/badlogic/pi-mono) into a finance research
4
+ assistant for mainland China, Hong Kong, and US markets.
5
5
 
6
- ## Install
6
+ Ask about a stock or ETF in everyday language. Pi Sparkles brings current market
7
+ data, price history, company filings, fundamentals, and financial calculations
8
+ into the conversation, so you can spend less time moving between websites,
9
+ spreadsheets, and one-off scripts.
7
10
 
8
- Install the published package through plain Pi:
11
+ ## What it gives you
12
+
13
+ - Current quotes and recent price history for supported CN, HK, and US sources.
14
+ - Trend, momentum, and volatility analysis with SMA, RSI, and ATR.
15
+ - SEC, CNINFO, and HKEXnews filing and disclosure research.
16
+ - Fundamental, valuation, portfolio-risk, scenario, event-study, and backtest
17
+ calculations when the required data is available.
18
+ - Clear source, timestamp, currency, freshness, and data-limit context in answers.
19
+
20
+ Pi automatically looks up current evidence for questions about price, trend,
21
+ buying now, or when to sell. You do not need to ask it to "use tools" first.
22
+
23
+ ## Quick start
9
24
 
10
25
  ```sh
11
26
  pi install npm:@pi-sparkles/pi-sparkles
12
27
  ```
13
28
 
14
- For a project-local installation, add `--local`. To inspect an unpacked package
15
- without changing Pi settings:
29
+
30
+ For most mainland China and Hong Kong quote/history research, and for SEC filing
31
+ research, the only setup is a contact address used to identify requests to public
32
+ data services:
16
33
 
17
34
  ```sh
18
- pi --no-extensions --extension ./index.js --list-models
35
+ AGENT_CONTACT="you@example.com" pi --finance-track=cn
19
36
  ```
20
37
 
21
- ## Boundaries
38
+ Choose `cn`, `hk`, or `us`. You can switch later with `/cn-track`,
39
+ `/hk-track`, or `/us-track` inside Pi.
40
+
41
+ Then ask naturally:
42
+
43
+ - `分析一下科创50ETF的走势`
44
+ - `588000 如果现在买,什么时候卖比较好?`
45
+ - `分析腾讯 00700.HK 最近半年的趋势、动量和波动`
46
+ - `Summarize AAPL's latest SEC fundamentals and cite the evidence.`
47
+ - `Compare this portfolio with its benchmark and explain the largest risks.`
48
+
49
+ ## Data sources
50
+
51
+ | Research area | Available sources |
52
+ | --- | --- |
53
+ | Mainland China | Eastmoney quotes and daily history; CNINFO disclosures; optional Tushare symbol, name, corporate-action, earnings, quote, and history data; SSE, SZSE, and BSE calendars and rules |
54
+ | Hong Kong | Eastmoney quotes and daily history; HKEXnews disclosures; HKEX calendar and rules |
55
+ | United States | SEC EDGAR and XBRL filings; optional Alpaca quotes, bars, news, corporate actions, and asset data; optional OpenFIGI identity mapping and Twelve Data company profiles; NYSE and Nasdaq calendars and rules |
56
+ | Macroeconomics | Optional Federal Reserve Bank of St. Louis FRED series |
57
+ | Your own data | Portfolio files and supported structured imports for research and calculation |
58
+
59
+ Availability and history depth depend on the selected provider and your account's
60
+ permissions. Public-web sources do not promise uptime, completeness, or real-time
61
+ delivery.
62
+
63
+ ## Optional data-service setup
64
+
65
+ The package loads without provider credentials. Add only the services you want;
66
+ you do not need every variable below.
67
+
68
+ | Variable | What it enables |
69
+ | --- | --- |
70
+ | `AGENT_CONTACT` | Identified access to supported public services, including Eastmoney, CNINFO, SEC, and HKEXnews. Use one email address everywhere. |
71
+ | `TUSHARE_TOKEN` | Optional Tushare data for mainland China. Tushare permissions and points apply. |
72
+ | `ALPACA_API_KEY_ID`, `ALPACA_API_SECRET_KEY` | Optional Alpaca US prices, bars, news, corporate actions, and assets. Feed permissions apply. |
73
+ | `OPENFIGI_API_KEY` | Optional OpenFIGI identity mapping. |
74
+ | `TWELVE_DATA_API_KEY` | Optional Twelve Data company profiles. |
75
+ | `FRED_API_KEY` | Optional FRED macroeconomic series. |
76
+
77
+ Example:
78
+
79
+ ```sh
80
+ AGENT_CONTACT="you@example.com" \
81
+ ALPACA_API_KEY_ID="..." \
82
+ ALPACA_API_SECRET_KEY="..." \
83
+ pi --finance-track=us
84
+ ```
22
85
 
23
- The aggregate changes initialization and distribution only. Every source plugin
24
- retains its domain, market-track, receipt, provider, entitlement, licence, and
25
- configuration contracts. No plugin may place, submit, route, cancel, replace,
26
- or otherwise mutate a paper or live broker order. Runtime guards reject duplicate
27
- named Pi registrations before forwarding the conflicting registration.
86
+ Your credentials stay in your runtime environment. Pi Sparkles does not add them
87
+ to the package or save them in Pi settings. For a project-local installation,
88
+ add `--local` to `pi install`.
28
89
 
29
- Review `CONFIGURATION.md` before provider-backed use. `aggregate-lock.json`,
30
- `release-lock.json`, and `SHA256SUMS` identify the exact content. No credential
31
- value is read or copied during packaging.
90
+ Pi Sparkles is read-only research software: it cannot place, change, or cancel
91
+ broker orders. It is not investment, legal, accounting, or tax advice. See
92
+ `CONFIGURATION.md` for the complete source and configuration reference.
package/SHA256SUMS CHANGED
@@ -1,13 +1,13 @@
1
- 5e2d9888cd25422c03821322c8fbf3eec3ccd7c214b45239e58430a3661152e6 aggregate-lock.json
1
+ be1d7b10d37c16134e960bbb5569c327cea14ba66b41ec3c7f827ae23636984e aggregate-lock.json
2
2
  07c985352bd848a23b0cef6cc59d8da0b54698d17e86cb5d9fbb54c4ca7c269a build.json
3
- a066fd7d33420441f1cb5b361b23ae3201d7c7b9be86375413a1a985c51f32f5 CHANGELOG.md
3
+ 2c6400c3b08c415e41c65a59ab620e2eb279fed4358c1e2f4ff2d88c899b3e2b CHANGELOG.md
4
4
  129e482a74d7d89b8c3c79cad9857d20c54d4e51eecec458fb1dca23e364f97d CONFIGURATION.md
5
- 4ffb2a4becf5c32e8d02ddc387dd6b6bfd970db17ddad7f584419fa8895b451d index.js
6
- 61d860e412d10b3860816ad5ae03c5a5bfd36d182d7c0dc5fd988f217755165d index.js.map
5
+ 9c024279e5248a01816e0597036fc925a869de74d51de8b46502e4cf75fd79b5 index.js
6
+ 018f9fbf1242919d9e37da96e1e94c391b17388dc40e9bc73002cc2e175c4286 index.js.map
7
7
  c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
8
- 61ec8be8cfe3255df922a6c478d428a808c56f6b6ea7c137e663f97feabb3d8a metafile.json
9
- ff8056445d6c0a0b830efbddfd5c755d475f27c1d20205694d6ea23d43511f10 package.json
10
- 47ab2b7c73dfade838f5a33970c4aca2a52385f878303747b2bfdd111e1ed1c5 README.md
11
- 223c01b44cba11ef68e97c91d6dfc5a97466714f075d0de785b04478ac54505d release-lock.json
8
+ f91e5a30720091a1d438ac95fea721243b3647c893be1b9ef3ac136c44541b2b metafile.json
9
+ 70d606c914f14658debd4ede65a769ef3399b29f0aac85f5edd266ba52e36729 package.json
10
+ 4df841a2a3666b49d91bc0cc9a5260df5fb85f7c426570e7fb7fcc3869b25e31 README.md
11
+ 9ee845e057d6e9df141dff19d6cf36bf09023127d4d6d3053f5fd8318a2ac62e release-lock.json
12
12
  55f8635b1a174907129c477809e87925b6b019c38d7bf61ca5766f4be801f88d SECURITY.md
13
13
  6b1a6493888478a81eb0e72cd50d7bb385ee6772601d05ff3ea61ec00112a269 THIRD_PARTY_NOTICES.md
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 1,
3
3
  "package": {
4
4
  "name": "pi-sparkles-aggregate-t5",
5
- "version": "0.1.2"
5
+ "version": "0.1.3"
6
6
  },
7
7
  "throughTierId": "T5",
8
8
  "maturity": "product_useful_aggregate",
@@ -1996,5 +1996,5 @@
1996
1996
  ],
1997
1997
  "collisionPolicy": "fail_before_duplicate_named_registration_is_forwarded_to_pi",
1998
1998
  "credentialsIncluded": false,
1999
- "bundleSha256": "4ffb2a4becf5c32e8d02ddc387dd6b6bfd970db17ddad7f584419fa8895b451d"
1999
+ "bundleSha256": "9c024279e5248a01816e0597036fc925a869de74d51de8b46502e4cf75fd79b5"
2000
2000
  }
package/index.js CHANGED
@@ -653784,7 +653784,7 @@ function extension124(api) {
653784
653784
  }
653785
653785
  var global_markets_default = extension124;
653786
653786
 
653787
- // .work/aggregate-adapters/t5-115410-67f8fee6-13cc-419b-a8b7-408a29f7e3f0.mjs
653787
+ // .work/aggregate-adapters/t5-203220-49e8d2eb-4917-4623-a4ae-ca6ac237b67f.mjs
653788
653788
  var extensions = [
653789
653789
  ["finance_setup", finance_setup_default],
653790
653790
  ["finance_track_status", finance_track_status_default],
@@ -653958,4 +653958,4 @@ export {
653958
653958
  aggregateExtension as default
653959
653959
  };
653960
653960
 
653961
- //# debugId=F59BF4DCD717893464756E2164756E21
653961
+ //# debugId=D60A81772ABF902A64756E2164756E21