@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 +18 -0
- package/README.md +77 -16
- package/SHA256SUMS +8 -8
- package/aggregate-lock.json +2 -2
- package/index.js +2 -2
- package/index.js.map +2 -2
- package/metafile.json +3 -3
- package/package.json +5 -2
- package/release-lock.json +4 -4
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
|
-
|
|
4
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
15
|
-
|
|
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 --
|
|
35
|
+
AGENT_CONTACT="you@example.com" pi --finance-track=cn
|
|
19
36
|
```
|
|
20
37
|
|
|
21
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
1
|
+
be1d7b10d37c16134e960bbb5569c327cea14ba66b41ec3c7f827ae23636984e aggregate-lock.json
|
|
2
2
|
07c985352bd848a23b0cef6cc59d8da0b54698d17e86cb5d9fbb54c4ca7c269a build.json
|
|
3
|
-
|
|
3
|
+
2c6400c3b08c415e41c65a59ab620e2eb279fed4358c1e2f4ff2d88c899b3e2b CHANGELOG.md
|
|
4
4
|
129e482a74d7d89b8c3c79cad9857d20c54d4e51eecec458fb1dca23e364f97d CONFIGURATION.md
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
9c024279e5248a01816e0597036fc925a869de74d51de8b46502e4cf75fd79b5 index.js
|
|
6
|
+
018f9fbf1242919d9e37da96e1e94c391b17388dc40e9bc73002cc2e175c4286 index.js.map
|
|
7
7
|
c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4 LICENSE
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
package/aggregate-lock.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"package": {
|
|
4
4
|
"name": "pi-sparkles-aggregate-t5",
|
|
5
|
-
"version": "0.1.
|
|
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": "
|
|
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-
|
|
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=
|
|
653961
|
+
//# debugId=D60A81772ABF902A64756E2164756E21
|