@dsh-ft/dsh-fft-paper-trading 0.6.3 → 0.7.1

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.
Files changed (48) hide show
  1. package/lib/client.js +9 -1
  2. package/node_modules/@ftshare-lab/dsh-kline/CHANGELOG.md +47 -0
  3. package/node_modules/@ftshare-lab/dsh-kline/README.en.md +107 -201
  4. package/node_modules/@ftshare-lab/dsh-kline/README.md +106 -216
  5. package/node_modules/@ftshare-lab/dsh-kline/chart_service.py +3 -2
  6. package/node_modules/@ftshare-lab/dsh-kline/config/dsh-tool-catalog.json +103 -11
  7. package/node_modules/@ftshare-lab/dsh-kline/core/calc.py +8 -0
  8. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-applications.js +1 -1
  9. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-context.js +1 -1
  10. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-observation.js +11 -1
  11. package/node_modules/@ftshare-lab/dsh-kline/lib/chart-sources.js +6 -1
  12. package/node_modules/@ftshare-lab/dsh-kline/lib/client.js +2971 -835
  13. package/node_modules/@ftshare-lab/dsh-kline/lib/drawing-feedback.js +35 -3
  14. package/node_modules/@ftshare-lab/dsh-kline/lib/pattern-groups.js +91 -0
  15. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/PanelHost.d.ts +25 -0
  16. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/chart-handoff.d.ts +5 -0
  17. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/client-context.d.ts +2 -0
  18. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/conversation.d.ts +4 -0
  19. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/generated-view.d.ts +1 -1
  20. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/host-options.d.ts +38 -0
  21. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/host-panels.d.ts +55 -0
  22. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/mode-preferences.d.ts +13 -1
  23. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/ui-onboarding.d.ts +3 -9
  24. package/node_modules/@ftshare-lab/dsh-kline/lib/types/pattern-groups.d.ts +2 -0
  25. package/node_modules/@ftshare-lab/dsh-kline/package.json +27 -6
  26. package/node_modules/@ftshare-lab/dsh-kline/scripts/run-dsh-kline.mjs +4 -1
  27. package/node_modules/@ftshare-lab/dsh-kline/server.py +46 -25
  28. package/node_modules/@ftshare-lab/dsh-kline/tools/automatic_analysis.py +158 -0
  29. package/node_modules/@ftshare-lab/dsh-kline/tools/channel_candidates.py +1 -1
  30. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_context.py +1 -1
  31. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_edits.py +30 -12
  32. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_functions.py +53 -68
  33. package/node_modules/@ftshare-lab/dsh-kline/tools/chart_indicators.py +3 -1
  34. package/node_modules/@ftshare-lab/dsh-kline/tools/closed_daily.py +68 -0
  35. package/node_modules/@ftshare-lab/dsh-kline/tools/draw.py +18 -2
  36. package/node_modules/@ftshare-lab/dsh-kline/tools/drawing_feedback.py +2 -2
  37. package/node_modules/@ftshare-lab/dsh-kline/tools/fetch.py +2 -3
  38. package/node_modules/@ftshare-lab/dsh-kline/tools/nine_count.py +66 -0
  39. package/node_modules/@ftshare-lab/dsh-kline/tools/pattern_groups.py +103 -0
  40. package/node_modules/@ftshare-lab/dsh-kline/tools/polylines.py +12 -6
  41. package/node_modules/@ftshare-lab/dsh-kline/tools/price_patterns.py +311 -0
  42. package/node_modules/@ftshare-lab/dsh-kline/tools/range_candidates.py +1 -1
  43. package/node_modules/@ftshare-lab/dsh-kline/tools/recent_drawing_candidates.py +123 -0
  44. package/package.json +4 -4
  45. package/src/client/index.js +8 -0
  46. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/PaperKlinePanel.d.ts +0 -15
  47. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/canvas-panel.d.ts +0 -33
  48. package/node_modules/@ftshare-lab/dsh-kline/lib/types/client/host-services.d.ts +0 -55
package/lib/client.js CHANGED
@@ -9,7 +9,7 @@ window.__ModuleLoader__.load({
9
9
 
10
10
  const ROUTE = '/api/ft-paper-trading'
11
11
  /** Release number stamped into the Feedback link title at build time. */
12
- const PAPER_VERSION = '0.6.3'
12
+ const PAPER_VERSION = '0.7.1'
13
13
  /** Public repository; the panel links out and collects nothing itself. */
14
14
  const ISSUE_NEW = 'https://github.com/gigaflw/dsh-fft-paper-trading/issues/new'
15
15
  /**
@@ -3257,6 +3257,14 @@ window.__ModuleLoader__.load({
3257
3257
  'paperTrading.kline': { kind: 'single', scope: 'root' },
3258
3258
  },
3259
3259
  }, Dashboard))
3260
+ // The declared slot stays empty until dsh_kline fills it through its
3261
+ // optional host contract; without that plugin (or on an older chart) the
3262
+ // rail keeps its built-in simplified chart instead.
3263
+ ctx.inject(['klinePanels'], scope => {
3264
+ const panels = scope.get('klinePanels')
3265
+ if (panels === undefined) return () => {}
3266
+ return panels.mount('paperTrading.kline')
3267
+ })
3260
3268
  }
3261
3269
 
3262
3270
  const inject = ['slots']
@@ -2,6 +2,53 @@
2
2
 
3
3
  本项目遵循 [Semantic Versioning](https://semver.org/lang/zh-CN/)。
4
4
 
5
+ ## 未发布
6
+
7
+ ## 0.6.11 - 2026-11-13
8
+
9
+ - README 在 npm 版本徽章旁显示自动更新的近一个月下载量;中英文与公开插件目录同步。
10
+ - 新增可选宿主面板挂载与界面偏好契约:宿主可复用图表、联动标的选择,并按需关闭浮动入口和首启提示;独立安装保留默认行为。
11
+ - 修复宿主面板重复挂载与清理的归属:每次挂载独立释放,旧清理函数不会误删新图表;支持槽位服务重连,并补充生命周期回归测试。
12
+ - 重写中英文 README:在首页列明十二类绘图及自动/手动操作,恢复最近的 ABC 与下降通道实测,保留高清大盘、主图对比和箱体突破展示。
13
+ - 补充 npm 安装入口;市场截图清单优先展示 ABC、通道与高清形态实例。
14
+
15
+ ## 0.6.10 - 2026-11-11
16
+
17
+ - 修复 DSH 0.2 工具返回成功但原生 K 线标签不自动打开:兼容宿主的独立 `role: tool` 结果消息,保留旧版结果格式与调用归属校验。
18
+ - 修复自动新建标签后停留在大盘页:把刚完成的分析交接给同一对话的新标签;新对话、其他宿主实例及网页重载不会继承该交接。
19
+ - 新版宿主依据事件的实时追加/历史加载类型判断是否自动开图,避免快速返回结果被固定等待窗口遗漏;加载旧历史不抢占当前页面。
20
+ - 界面选项改称“工作台标签”,避免让新版宿主用户误以为必须安装 Better Sidebar;中英文指南同步说明原生标签与旧宿主可选适配。
21
+
22
+ ## 0.6.9 - 2026-11-11
23
+
24
+ - 重构中英文 README,按功能展示、安装、使用、数据范围及文档索引组织;详细安装排障与历史绘图演示移入独立指南。大盘、主图对比和箱体突破重新采集原生 Retina 无损 PNG;双安装包同步包含指南与高清图片。
25
+ - 点位面板的「手动添加」改为与「重新分析点位」并列的橙色按钮,点击展开或收起输入区。
26
+ - 精简预警和对比面板的常驻说明;指标参数「设置」改为与「应用」并列的同款按钮。
27
+ - 隔离图表内部控件的显示层级,防止工具栏覆盖宿主侧栏拖拽边线、造成左侧边缘缺口。
28
+ - 修复形态/九转模式隐藏清除确认区、顶部搜索框覆盖设置面板的问题;溢出菜单改用统一的矢量箭头,移除绘图面板中的「规则与数据说明」入口。
29
+ - 将自动绘图的五种分析入口收敛到共享注册表;DSH 与 Codex 共用参数默认值、候选到图形的映射和版本。所有自动候选统一用当前图结果引用落图,图表端默认显示引擎返回的第一项。
30
+ - 完善 v0.6.8 已有的双顶/双底、头肩顶/底、平台状态与基础九转的自动绘图交互。
31
+ - 「绘图」统一提供近期候选自动绘制和手动选点;图形直接显示并保留,用户可切换候选或通过「清除绘图」移除。
32
+ - 形态和九转作为受保护的整体图表对象管理;按市场本地收盘时间过滤未完成日线,记录候选首次可知时间与状态事件。
33
+ - 修复九转标记上下颠倒:上涨计数显示在 K 线高点上方,下跌计数显示在低点下方;已有九转图形也按正确的 K 线边缘显示。计数到 9 后若比较方向反转,按规则从 1 重新开始。
34
+ - 九转数字按上涨/下跌配色,普通计数改用简洁文字、仅突出完成的 9;图表对象更新不再被误认为行情更新,避免自动重复绘制和画面抖动。自动更新失败时停止同一份数据上的循环重试,仍可手动重试。
35
+ - 绘图定位保留选中形态的视野;价格轴宽度刷新不再重置图表位置,画布缩放围绕当前形态或可见区间中心进行。候选切换时展示对应的确认/失效状态。
36
+ - 「绘图」默认展示引擎返回的最新合格形态,并标明其后续失效或过期状态;其他候选仍可手动点选。头肩底锚点标签改放在低点下方,贴近主图底边时回避到上方;平台未确认期间用虚线延续冻结边界到分析截止日。
37
+ - 修复价格形态边界与绘制:左侧历史不足时不再把最后一根未来 K 线读入前置趋势;头肩形态的斜颈线按 K 线索引延伸至分析事件或截止日;双顶/底的形态外辅助走势改用虚线,与已确认拐点区分。
38
+ - 双顶/底明确标注两个顶/底与颈线;移除末端拐点直连远处收盘价的虚线,突破标记落在实际确认日 K 线上,避免画出不存在的直线走势。双底状态标签避开第一个底部标记。
39
+ - 平台形态排除持续单向漂移及仅按顺序触及一侧再触及另一侧的区间,避免将明显的上行/下行段画成横盘箱体;旧平台区间候选接口保持原规则。
40
+ - 修复刷新网页后旧图表视图短时间仍被记为活动图表、触发“多个活动图表”提示:页面离开时立即上报关闭,返回页面时重新发布完整当前图表。
41
+ - 图表时间栏、主工具栏与绘图操作在窄画布中保持单行,放不下的按钮进入末尾菜单;统一按钮高度并压缩绘图面板宽度与字段间距,顶部搜索栏在窄屏中保持单行。
42
+
43
+ - 多标的对比支持主图叠加、搜索与常用指数快捷项;指标分图支持折叠、恢复和控制提示。
44
+ - 准备公开 npm 包及首次发布文档;尚未上传 npm,也未关联外部市场目录。
45
+
46
+ ## 0.6.8 - 2026-11-09
47
+
48
+ - Shared closed-daily double-top/bottom, head-and-shoulders, frozen-range status and transparent nine-count analyses.
49
+ - Guarded atomic pattern and nine-count snapshot groups for DSH and Codex, with an on-demand chart workbench.
50
+ - Conservative local-market close filtering, causal state events and rule/data-quality metadata.
51
+
5
52
  ## 0.6.7 - 2026-11-06
6
53
 
7
54
  - 修复 DSH 首次依赖安装耗尽宿主重连次数后工具无法注册:Node 在准备期间保持 MCP 和完整工具目录,后端退出后在同一连接恢复且不重放结果未知的操作。
@@ -1,265 +1,171 @@
1
- # Nonconvex K-Line Assistant / FT K-Line
1
+ # FT K-Line · 非凸 K 线助手
2
2
 
3
- [简体中文](README.md) | English
3
+ Explore market data in **DeepSeek Harness** and **Codex**. Analyze, draw, and revise charts through natural language, or pick anchors on the chart yourself.
4
4
 
5
- [![Cross-platform tests](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml/badge.svg?branch=main)](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml) [![Latest release](https://img.shields.io/github/v/release/FTShare-Lab/dsh_kline?label=Release)](https://github.com/FTShare-Lab/dsh_kline/releases) [![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB?logo=python&logoColor=white)](#get-started-with-dsh) [![MIT License](https://img.shields.io/github/license/FTShare-Lab/dsh_kline)](LICENSE)
5
+ [简体中文](README.md) · English
6
6
 
7
- **Supports DeepSeek Harness and Codex.** The DSH plugin is `dsh_kline`; the Codex plugin is `ft-kline`. Both support natural-language K-line analysis and guarded drawing in their desktop chart. Codex in the desktop app has an interactive chart; Codex CLI returns market data, indicators, and structured analysis without an interactive chart.
7
+ [![Cross-platform tests](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml/badge.svg?branch=main)](https://github.com/FTShare-Lab/dsh_kline/actions/workflows/install.yml) [![npm](https://img.shields.io/npm/v/%40ftshare-lab%2Fdsh-kline?label=npm)](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) [![npm monthly downloads](https://img.shields.io/npm/dm/%40ftshare-lab%2Fdsh-kline?label=downloads%2Fmonth)](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) [![Latest release](https://img.shields.io/github/v/release/FTShare-Lab/dsh_kline?label=Release)](https://github.com/FTShare-Lab/dsh_kline/releases) [![MIT](https://img.shields.io/github/license/FTShare-Lab/dsh_kline)](LICENSE)
8
8
 
9
- > Quotes and technical analysis are for research and education only, not investment advice.
9
+ [Drawing tools](#supported-drawing-tools) · [ABC and channel examples](#natural-language-drawing-in-action) · [Drawing workbench](#drawing-workbench-and-price-patterns) · [Market and comparison](#market-overview-and-chart-comparison) · [Install](#install) · [Documentation](#documentation)
10
10
 
11
- [Features](#what-it-helps-you-do) · [Use with Codex](#use-with-codex) · [Install DSH](#get-started-with-dsh) · [Drawing preview](#preview) · [Drawing tools](#drawing-through-chat-and-the-workbench) · [Data sources](#quotes-and-data-sources)
11
+ Current release: **v0.6.11**. npm package: **`@ftshare-lab/dsh-kline`**. Drawings appear directly and remain when the controls are closed. Switch candidates, continue editing, or clear them yourself.
12
12
 
13
- | Environment | Chart and manual drawing | Natural-language drawing | Market data, indicators, analysis |
14
- | --- | --- | --- | --- |
15
- | DeepSeek Harness Web | Yes | Yes | Yes |
16
- | Codex desktop | Yes, in an app card | Yes, after opening the current chart session | Yes |
17
- | Codex CLI | No interactive chart | No chart drawing | Yes, as structured results |
18
-
19
- The Codex plugin is currently **v0.6.7**, available through this repository's public **FTShare GitHub marketplace**. It is not listed in the official public plugin directory. DSH retains its existing installation path. The DSH screenshots and persistent-watchlist description below apply to DSH Web; see [Codex setup and differences](#use-with-codex) for the separate plugin.
13
+ ## Supported drawing tools
20
14
 
21
- ## What it helps you do
15
+ Chat and the chart panel use the same drawing capabilities. Automatic drawing uses the **latest closed daily bars already loaded in the current chart** and selects the newest qualifying candidate by default. You can also choose a candidate or specify dates and prices.
22
16
 
23
- - **Start with a sentence**: ask for a chart, a trend read, or an indicator analysis in natural language.
24
- - **Explore on your own**: open the K-line workspace, search a name or ticker, and switch among daily, weekly, monthly, quarterly, yearly, and available intraday views.
25
- - **Read trend and momentum**: use MA, volume, MACD, KDJ, RSI, BOLL, ATR, and VWAP.
26
- - **Put your analysis on the chart**: create horizontal/trend lines, parallel channels, range boxes, Fibonacci retracements, and ABC polylines by chat or point selection. Preview first; save only when the result looks right.
27
- - **Explore TA-Lib**: search and run all 201 TA-Lib 0.8.2 functions read-only on the loaded chart. Only selected SMA, EMA, and BBANDS results are directly drawable in this release; the other functions are not advertised as chart objects.
28
- - **Find price areas**: identify support and resistance, or draw and save your own levels and notes.
29
- - **Compare and review**: overlay indices or symbols, then select a period to inspect return, range, drawdown, and activity.
30
- - **Add context**: use Market, Sectors, News, Company, and Dragon & Tiger List views for indices, sector rankings, capital-flow events, news, company profiles, fundamentals, and ownership data.
31
- - **Build a watchlist**: save symbols, create or rename groups, sort, import, and open several at once. Watchlists stay in your current browser.
17
+ | Drawing tool | Automatic drawing | Manual anchors and natural-language control |
18
+ | --- | --- | --- |
19
+ | **Horizontal line** | Find recent high/low pivot price candidates | Specify a price or select a candle; use it as support, resistance, or a custom level |
20
+ | **Trend line** | Find a qualifying recent two-anchor move | Specify two times and prices; create or adjust the segment |
21
+ | **Parallel channel** | Find recent channel candidates | Select three anchors; adjust boundaries and the optional midpoint |
22
+ | **Range box** | Find recent ranges meeting boundary-contact and drift rules | Select the interval and upper/lower boundaries; edit the name, color, and fill |
23
+ | **Fibonacci retracement** | Find anchors from recent swings | Specify endpoints and ratios; edit or remove the group together |
24
+ | **ABC swing / wave labels** | Find 0/A/B/C swing candidates meeting geometric rules | Pick anchors or have the host verify them before drawing; revise a named point |
25
+ | **Double top** | Identify the structure and its subsequent state | Supply structural anchors, subject to the same recognition rules |
26
+ | **Double bottom** | Identify the structure and its subsequent state | Supply structural anchors, subject to the same recognition rules |
27
+ | **Head and shoulders top** | Identify shoulders, head, and neckline | Supply five structural anchors and validate the pattern |
28
+ | **Head and shoulders bottom** | Identify the inverse structure and neckline | Supply five structural anchors and validate the pattern |
29
+ | **Platform breakout / failure** | Freeze range boundaries and mark pending, confirmed, or failed breakouts | Use a range box for a manually chosen interval; states come from price analysis |
30
+ | **Nine Count** | Display upward/downward 1–9 counts and update with chart data | Counts are calculated from prices; adjust the display range and style |
32
31
 
33
- ## Preview
32
+ **ABC candidates and labels are not a complete Elliott-wave recognizer.** Price patterns and Nine Count currently support closed daily bars for A-share, Hong Kong, and US stocks. When no candidate qualifies, the tool explains that instead of forcing a drawing.
34
33
 
35
- Live natural-language example: DeepSeek screened the watchlist for an ABC **candidate** in Wolong Electric, checked the four 0/A/B/C anchors against candles, and used the plugin to draw them. This unedited full-page capture shows the conversation, application result, and visible chart together. The host interprets the pattern; a rules-based candidate is not a verified Elliott-wave conclusion.
34
+ ### Indicators and additional annotations
36
35
 
37
- ![Full DSH Web page: DeepSeek checks four ABC candidate anchors for Wolong Electric while the daily chart displays the corresponding polyline and labels](docs/images/natural-language-abc-wolong-2026-10-27.png)
36
+ - **Indicator panel:** SMA, EMA, VOL, MACD, KDJ, RSI, BOLL, ATR, and VWAP. Selected SMA/EMA/BOLL results can also be added as independent objects through the host.
37
+ - **Chat-driven annotations:** text, numbers, arrows, diamonds, and labeled polylines. Continue editing by object name or named point.
38
+ - **Advanced tool interfaces:** conditional price series, price bands, and conditional sticks. See [function and drawing coverage](docs/chart-functions.md) for inputs, display behavior, and limits.
39
+ - **Object management:** create, rename, recolor, update anchors, and delete; multiple objects can coexist on one chart. The 201 TA-Lib functions support queries and calculations; only implemented drawing and indicator families can be put on the chart.
38
40
 
39
- In the same chart, a follow-up natural-language request adds a descending channel. DeepSeek checks its three-anchor geometry and price deviations; the plugin applies it as a separate object while preserving the ABC labels. The lines are visible, but their trading relevance still requires independent judgment.
41
+ ## Natural-language drawing in action
40
42
 
41
- ![Full DSH Web page: DeepSeek explains the descending channel's anchors and deviations while the daily chart shows both the channel and ABC labels](docs/images/natural-language-descending-channel-wolong-2026-10-27.png)
43
+ ### Verify an ABC candidate, then draw its anchors
42
44
 
43
- ## Use with Codex
45
+ DeepSeek checks Wolong Electric's four 0/A/B/C anchors against daily candles before drawing through the plugin. The full capture preserves both the conversation and the visible result.
44
46
 
45
- The Codex plugin is `ft-kline`, available from the **FTShare** marketplace (`ftshare`). Add the GitHub source once, install the plugin, and use the same source for updates. No ZIP download or source build is required. This is a project-maintained marketplace, not a listing in OpenAI's official public plugin directory.
47
+ [![Natural-language ABC drawing: the conversation verifies four anchors while the daily chart displays the 0/A/B/C polyline and labels](docs/images/natural-language-abc-wolong-2026-10-27.png)](docs/images/natural-language-abc-wolong-2026-10-27.png)
46
48
 
47
- ### Install and verify
49
+ ### Continue by adding a descending channel
48
50
 
49
- 1. Install Git, Node.js **22.19+**, Python **3.11+**, and a Codex client supporting plugins. Enable Python Launcher on Windows; Git Bash and WSL are unnecessary.
50
- 2. Run these commands. The first adds the source and follows CI-validated `main`; the second installs and enables the plugin:
51
+ A follow-up request adds parallel channel boundaries after the host checks their anchors. The existing ABC labels remain on the same chart.
51
52
 
52
- ```bash
53
- codex plugin marketplace add FTShare-Lab/dsh_kline --ref main
54
- codex plugin add ft-kline@ftshare
55
- ```
53
+ [![Natural-language descending channel: the daily chart retains its ABC labels and adds the channel boundaries](docs/images/natural-language-descending-channel-wolong-2026-10-27.png)](docs/images/natural-language-descending-channel-wolong-2026-10-27.png)
56
54
 
57
- 3. Reopen Codex and ask for a daily chart and its data source. During first-time preparation, ask to check FT K-Line runtime status. Desktop users can expand the chart card, search symbols and use the drawing workbench; CLI returns data and analysis.
55
+ The two full captures above are from October 27, 2026 and retain the conversation and interface from that session. Click an image for its original resolution; current drawing controls are described below.
58
56
 
59
- After adding the source, you can also reopen the desktop app and select **FTShare → FT K-Line** in the Plugins page. Inspect the source and available plugins with:
57
+ Example requests:
60
58
 
61
- ```bash
62
- codex plugin marketplace list
63
- codex plugin list --marketplace ftshare --available --json
59
+ ```text
60
+ Open Wolong Electric's daily chart. Verify a recent ABC swing candidate and draw it if it qualifies.
61
+ Add a descending channel to the same chart, keeping the ABC labels.
62
+ Draw the newest qualifying double bottom and explain its current state.
63
+ Show Nine Count for the latest 30 closed daily bars.
64
+ Make “Key support” blue and move it to 30.8.
64
65
  ```
65
66
 
66
- ### Updates and migration
67
+ An analysis request returns analysis. An explicit drawing request puts the result on the chart. Specified anchors and candidate choices take priority.
67
68
 
68
- Refresh the existing source, install its current plugin version, then reopen Codex:
69
+ ## Drawing workbench and price patterns
69
70
 
70
- ```bash
71
- codex plugin marketplace upgrade ftshare
72
- codex plugin add ft-kline@ftshare
73
- ```
71
+ Open **Draw** → select a tool → **Draw now**. Use **Pick anchors manually** to select your own points and **Settings** to adjust parameters. Drawings appear directly, without a separate save step. Closing or collapsing the controls preserves them; **Clear** is inside the drawing panel.
74
72
 
75
- If you previously installed `ft-kline@ftshare-local` from a ZIP, disable that old installation in the Plugins page before enabling `ft-kline@ftshare`, so two sources do not expose duplicate tools. The GitHub source needs access to GitHub; first launch also downloads Python dependencies.
73
+ ### Range formation, breakout, and failure states
76
74
 
77
- ### Install a fixed release ZIP
75
+ MSFT daily example: the range forms from August 28 to September 25, with an upward breakout confirmed on October 6. The chart shows its boundaries and actual confirmation date; subsequent prices do not enlarge the frozen range.
78
76
 
79
- To stay on a fixed release, download `ft-kline-v0.6.7.zip` and its SHA-256 from the [v0.6.7 release](https://github.com/FTShare-Lab/dsh_kline/releases/tag/v0.6.7), verify the hash, and extract to a permanent folder. Replace the quoted path below with that absolute folder path:
77
+ [![MSFT daily platform range with its upward breakout confirmation date](docs/images/platform-breakout-msft-v0.6.9.png)](docs/images/platform-breakout-msft-v0.6.9.png)
80
78
 
81
- ```bash
82
- codex plugin marketplace add "/absolute/path/ft-kline-v0.6.7"
83
- codex plugin add ft-kline@ftshare-local
84
- ```
79
+ Double tops/bottoms and head-and-shoulders patterns likewise show necklines and candidate, confirmation, or failure states. Nine Count displays individual counts; it does not include a full DeMARK 13 Countdown. See [pattern rules](docs/price-pattern-rules-v1.md).
85
80
 
86
- Reopen Codex to use it. The ZIP source is `ftshare-local`, separate from the public GitHub source `ftshare`. DSH retains its `dsh-kline-v0.6.7.tgz` package and the installation method below.
81
+ ## Market overview and chart comparison
87
82
 
88
- ### First launch and runtime modes
83
+ ### Put comparison lines in the main candlestick chart
89
84
 
90
- First use finds Python and installs dependencies automatically, which can take several minutes. The Node entry completes the handshake and exposes the **complete catalog on the first tools/list**, plus preloadable chart resources. It does not depend on catalog-change notifications. Check `ft_kline_runtime_status` while preparing. Ordinary calls wait briefly, then return `runtime_preparing` if necessary; rejected edits never execute later. Once ready, retry the original request without refreshing tools or reopening the chat. Logs are in `~/.cache/ft-kline/bootstrap.log` or `%LOCALAPPDATA%\ft-kline\bootstrap.log` on Windows.
85
+ Search for stocks, indices, or ETFs and overlay their price-performance lines behind the main chart. The primary symbol retains its candles and indicators. Hide or remove comparison lines independently.
91
86
 
92
- Restart Codex once after upgrading from v0.6.1 to replace its previous status-only startup snapshot. Then request a daily chart directly. Runtime readiness, data delivery and a visibly rendered native chart are separate acceptance checks; a fallback visualization does not satisfy native-plugin acceptance.
87
+ [![Shanghai Composite candles with CSI 300 and ChiNext comparison lines](docs/images/main-chart-comparison-v0.6.9.png)](docs/images/main-chart-comparison-v0.6.9.png)
93
88
 
94
- Default `auto` mode checks the host's declared MCP Apps HTML capability. Supporting hosts get interactive charts and guarded edits; other hosts, including CLI, get structured data and analysis without chart resources or drawing writes. Advanced integrations can explicitly set `FT_KLINE_CLIENT=desktop` or `cli`.
89
+ *Lines use a common normalization baseline to compare cumulative percentage changes. They do not compare raw prices across symbols or calculate technical indicators for the comparison lines.*
95
90
 
96
- Chart edits follow `get_chart_context → prepare_chart_edit → apply_chart_edit → get_chart_edit_status`. Server commits, UI receipts and visual verification remain separate.
91
+ ### Market overview
97
92
 
98
- ### Reuse an FTShare key
93
+ Browse major A-share, Hong Kong, and US indices, sector rankings, and unusual-trading lists. Select a symbol to continue in its chart and research panels.
99
94
 
100
- Symbol discovery and quote access are separate. v0.6.7 adds a keyless Tencent HK/US daily fallback: HK supports unadjusted, forward and backward adjustment; US supports unadjusted and forward adjustment. Volumes remain historical session shares. Public-source coverage is bounded; see the [data contract](docs/free-foreign-daily.md). See the [key-less capability and evaluation notes](docs/anonymous-market-support.md); fixed release archives retain their release's behavior.
95
+ [![Market overview with major indices, sector rankings, and unusual trading](docs/images/market-overview-v0.6.9.png)](docs/images/market-overview-v0.6.9.png)
101
96
 
102
- Credential priority is: **plugin-process `FTSHARE_API_KEY` → explicitly configured `FTSHARE_API_KEY_FILE` → temporary App-session key**. An export in an unrelated terminal is not automatically visible to the desktop app.
97
+ The market, comparison, and MSFT platform captures preserve native Retina pixels as lossless PNGs. Prices are snapshots from capture time.
103
98
 
104
- The selected file is reread before provider requests and is never modified or deleted by the plugin. Use JSON `{"version":1,"api_key":"your key"}`. macOS/Linux require owner-only permissions (`chmod 600`); symbolic links are rejected. Status reports only `environment`, `external_file`, `session` or `none`, never the key or path. Codex does not discover DSH credentials or scan `.env`, shell profiles, keychains or other apps; sharing a file requires explicitly configuring its path.
99
+ ## Levels, review, and research
105
100
 
106
- Without a key, supported A-share, HK and US daily-history and index fallbacks remain available. Chart state, results, watchlists and App-entered keys stay in connection memory until the last view closes, disconnect, or 30 idle minutes. User-managed environment/file credentials are not deleted when a chart closes. DSH persistent watchlists are not inherited.
107
-
108
- See the [v0.6.7 release notes](docs/release-notes-v0.6.7.md) and [acceptance checklist](docs/release-acceptance-v0.6.7.md) for verification and remaining manual desktop checks.
101
+ | Feature | What it does |
102
+ | --- | --- |
103
+ | **Support and resistance** | Analyze reference prices in Levels, add custom levels, and draw them on the current chart |
104
+ | **Interval review** | Inspect interval returns and drawdown alongside the chart |
105
+ | **News and company information** | Read symbol news, company information, and research panels, subject to source coverage and permissions |
106
+ | **Watchlists and groups** | Save, group, sort, import, and open symbols in batches; DSH retains these across conversations |
109
107
 
110
- ## Get started with DSH
108
+ ## Install
111
109
 
112
- v0.6.5 adds an optional chart-panel mounting interface for host developers, with external symbol and theme updates. Canvas and paper-trading panels require host integration; see the [embedding contract](docs/embedding.md).
110
+ Supports macOS, Linux, and native Windows. First launch downloads dependencies and may take several minutes.
113
111
 
114
- ### 1. Install and enable
112
+ ### DeepSeek Harness
115
113
 
116
- Find `dsh_kline` in the DeepSeek Harness plugin marketplace. If the catalog has not refreshed yet, install directly from GitHub:
114
+ Install a working DSH Web host and **Python 3.11+**, then run:
117
115
 
118
116
  ```bash
119
- dsh plugin --profile web add github:FTShare-Lab/dsh_kline
117
+ dsh plugin --profile web add @ftshare-lab/dsh-kline@0.6.11
120
118
  ```
121
119
 
122
- The first launch prepares its runtime automatically. Later, update from the marketplace or Settings when a new version is available.
123
-
124
- The plugin supports macOS, Linux, and native Windows. Install a working DSH Web host and Python 3.11 or newer first. On Windows, use the [python.org installer](https://www.python.org/downloads/windows/) with the Python Launcher enabled. Git Bash and WSL are not required. First-launch details are stored in `dsh_kline/bootstrap.log` under the user cache directory; the Windows default is `%LOCALAPPDATA%\dsh_kline\bootstrap.log`.
125
-
126
- ![Install and update dsh_kline from the plugin marketplace](docs/images/dsh-market.png)
127
-
128
- ### 2. Choose either entry point
129
-
130
- **Ask AI** in a conversation, for example:
131
-
132
- - `Show the K-line chart for Zijin Mining and its trend over the last month`
133
- - `Show Tencent's daily chart and mark support and resistance`
134
- - `Analyze NVIDIA's volume, MACD, and RSI over the past month`
135
- - `What recent news and fundamentals should I know about this company?`
136
- - `Draw a blue level at 1300 on the current chart, then change that object to green`
137
- - `Propose three anchors for a descending channel; explain the deviation and wait for my confirmation`
138
- - `Screen my watchlist for ABC candidates; verify one symbol's 0/A/B/C pivots on its daily chart before drawing, and tell me whether C is confirmed`
139
-
140
- **Open the workspace directly**: click the K button on the right, or choose **非凸 K 线助手 / dsh_kline** from the `+` menu where workspace Tabs are available. Search by name or ticker; exchange suffixes are not required.
141
-
142
- Both entry points can operate on the same new drawing objects in the active chart. In the chart toolbar, **Draw** opens the drawing workbench: choose a tool, click candles or enter parameters, preview, then confirm. Conversations retain separate chart states; watchlists remain user-level data.
143
-
144
- ## Using the chart
145
-
146
- 1. Search for a company or ticker at the top.
147
- 2. Pick a time range and candle timeframe. Intraday availability depends on the market and data entitlement.
148
- 3. Enable the indicators you need, then pan, zoom, or use the crosshair for detail.
149
- 4. Select **Key levels** for support and resistance, or **Draw** to choose a drawing tool, pick anchors or enter parameters, and save the preview. Manage your own price lines under **Levels**.
150
- 5. Click two candles in sequence to review return, range, drawdown, and trading activity for that interval.
151
- 6. Select the star beside a symbol to add it to a watchlist.
152
-
153
- Where a **UI** menu is available, choose Automatic, Classic sidebar, or workspace Tab. Automatic uses the best interface your current Harness supports; when Tabs are unavailable, the regular K-line sidebar continues to work.
154
-
155
- ### Sidebar compatibility
156
-
157
- DeepSeek Harness provides its own right sidebar, so **Better Sidebar is not required** to open the K-line sidebar. When a compatible Better Sidebar is installed, the plugin can also open the chart as a workspace Tab. This is an optional UI integration, not a requirement for quotes, indicators, or drawing. Use **UI** to choose Automatic, sidebar, or Tab; Automatic selects from the interface capabilities exposed by the current host. Installing Better Sidebar alone does not mean every version and layout has been validated.
158
-
159
- ## Quotes and data sources
160
-
161
- FTShare is the default optional source. After you configure an API key, the plugin exposes the quote, intraday, news, and company-data capabilities available to your account. Availability differs by market and plan.
120
+ GitHub installation is also available:
162
121
 
163
- Only unadjusted (`none`) single-session one-minute requests for regular A-share stocks prefer FTShare's raw realtime feed. Forward/backward requests (including qfq/hfq) use history with the matching `adjust_kind`; failure never silently falls back to raw realtime rows. Indices, ETFs and multi-session history retain their applicable endpoints. Full-session returns and adjustment-isolated caching are unchanged; routing is not independent verification of vendor-adjusted prices.
164
- Explicit source minute size survives ingestion, local redraw and workspace state. Missing/invalid metadata stays unknown; it is not inferred from timestamp spacing, UI labels or the previous symbol. Unconfirmed sources still cannot authorize guarded drawing.
165
-
166
- The plugin reuses FTShare credentials in this order: an `FTSHARE_API_KEY` already injected into the current DSH service, an explicitly configured `FTSHARE_API_KEY_FILE`, a Key saved in the DSH FTShare settings, and a local credential previously saved by this plugin. If the key is already available to the process that starts DSH, it is used automatically. Installing the FTShare SDK alone, or storing a key in another app's private configuration, is not enough for the plugin to read it.
167
-
168
- When the DSH FTShare settings plugin is installed, the host publishes its Key to the MCP server, which re-reads it before every request — so adding, rotating, or clearing the Key in the settings page needs no dsh restart. That Key belongs to the settings page; this plugin never displays or clears it.
169
-
170
- For safety, the plugin never scans `.env` files, shell configuration, keychains, or other apps' configuration files, and never displays a key or path. **Settings → Data source** identifies the active source; use **Manage FTShare configuration** to paste and test a replacement key, either for the current session or saved locally for future launches.
171
-
172
- Theme and language follow the DSH host by default. **Settings → Theme/Language** also offers manual choices and a way back to **Follow host (default)**.
173
-
174
- [FTShare's free-plan endpoints](https://market.ft.tech/gateway/doc/p/pb8eizu3) still require a registered API key. Without a key, some historical daily A-share bars can use BaoStock, HK/US daily bars can use Tencent, and selected broad-market indices have separate free fallbacks. Intraday bars, news and other capabilities still depend on source coverage and permissions. Existing valid OHLCV data, including rows supplied by the host, can still drive local indicators and drawing. The UI reports the applicable source or error when data is rate-limited, unavailable, or outside the account's entitlement.
175
-
176
- ## Frequently asked questions
177
-
178
- **Why is an intraday chart unavailable?**
179
- Intraday access depends on the symbol's market, your account plan, and the source's currently supported coverage. Test the connection in Data source first. Daily, weekly, and monthly views do not require the intraday entitlement, but individual-stock candles still need a working data source; FTShare's free plan requires an API key too.
180
-
181
- **What if the first launch fails on Windows?**
182
-
183
- Inspect `%LOCALAPPDATA%\dsh_kline\bootstrap.log`. From v0.6.4, dependency upgrades reuse a working venv; rebuilding also tries its recorded base interpreter and Desktop's bundled standard Python. Trimmed distributions lacking venv/ensurepip still need a standard Python 3.11+ installation. Check `py -3.11 --version` (newer versions work), or set `DSH_KLINE_PYTHON` to the full `python.exe` path before starting DSH. Correcting the configuration invalidates the old retry delay. Nested bundles no longer need a profile-root K-line package, but bundles pinning an older plugin must update it. DSH installation and Windows sandbox issues remain host-level concerns.
122
+ ```bash
123
+ dsh plugin --profile web add github:FTShare-Lab/dsh_kline
124
+ ```
184
125
 
185
- **Why do two conversations show different charts?**
186
- This is intentional: each chart belongs to its conversation, so an analysis in one conversation cannot replace another's chart. Search or start a new analysis in the other conversation when needed.
126
+ You can also find `dsh_kline` in the plugin marketplace. Its version and download information depend on catalog synchronization. See the [npm package](https://www.npmjs.com/package/@ftshare-lab/dsh-kline) for the published version; downloads are not unique installations.
187
127
 
188
- **Why can data differ slightly from another platform?**
189
- Quotes can be delayed and may differ with adjustment policy, exchange conventions, market-close state, and upstream services. Use appropriately licensed feeds for commercial, high-frequency, or latency-sensitive work.
128
+ [![dsh_kline installation and update entry in the plugin marketplace](docs/images/dsh-market.png)](docs/images/dsh-market.png)
190
129
 
191
- ## For AI and developers
130
+ After enabling it, click **K** or request analysis in chat. Newer DSH versions provide native right-sidebar tabs without Better Sidebar. Choose **UI → Workspace tab**, or continue using the classic K sidebar. v0.6.10's native auto-open was tested on DSH 0.2.1-rc.5, a prerelease host.
192
131
 
193
- ### Drawing through chat and the workbench
132
+ ### Codex
194
133
 
195
- On a source-checked current chart, the host can interpret a request and use the plugin's calculate → prepare → apply → verify flow. The workbench exposes the same protected objects for manual selection, preview, and editing. Selected families are horizontal levels, two-anchor trend segments, three-anchor finite parallel channels, rectangular ranges, two-anchor Fibonacci retracements, manually supplied or host-proposed-and-checked ABC anchors, and standalone SMA/EMA lines or BOLL three-line bands. Names, four colors, channel midlines, and rectangle fills are supported. The plugin draws ABC labels; **it does not automatically recognize Elliott waves**, and candidates are not definitive conclusions.
134
+ Install a plugin-capable Codex, Git, **Node.js 22.19+**, and **Python 3.11+**:
196
135
 
197
- Try “draw a blue level at 31.2 called support”, “move support to 30.8; leave everything else”,
198
- or “propose a descending channel with three anchors and explain deviations; wait for approval”.
136
+ ```bash
137
+ codex plugin marketplace add FTShare-Lab/dsh_kline --ref main
138
+ codex plugin add ft-kline@ftshare
139
+ ```
199
140
 
200
- The host interprets language, analyzes candles and selects anchors. The plugin observes,
201
- measures, executes and reports; it does not embed another AI or replay predefined drawing skills.
202
- Explicit parameters may execute directly; proposal-first requests must wait for approval.
203
- Host explanations and professional anchor selection can be wrong and require user judgement.
141
+ Reopen Codex and ask “Open China Merchants Bank's daily chart.” FTShare is this project's public GitHub plugin source.
204
142
 
205
- Foundation scope and limitations:
143
+ | Host | Interactive chart and manual drawing | Chat-driven drawing | Quotes and structured analysis |
144
+ | --- | --- | --- | --- |
145
+ | DSH Web | Yes | Yes | Yes |
146
+ | Codex Desktop | Inside an App card | Yes | Yes |
147
+ | Codex CLI | No canvas | No chart writes | Yes |
206
148
 
207
- - Daily/weekly paths are the main acceptance scope. Anchors must match actual loaded bars.
208
- The plugin does not guess missing dates, snap anchors or fetch extra candles to repair edits.
209
- - Trend segments and channels are finite, with no automatic extension or logarithmic geometry.
210
- Channels and rectangles retain their creation interval.
211
- - Guarded edits target stable IDs without resetting candles, indicators or the viewport.
212
- Manual drawings, automatic annotations and AI objects remain separate.
213
- - Confirmed drawings can restore and be edited after browser refresh within the same host run.
214
- Conversations are isolated. Returning to a conversation restores its last confirmed drawing
215
- checkpoint, **not necessarily its last manually selected interval, range or viewport**.
216
- - Workbench point selection and form editing are supported; AI mouse dragging, undo, cross-process old-chart editing and complete automatic failure
217
- recovery are not supported. Unknown outcomes stop automatic retries.
218
- - **Clear drawings and annotations** asks for confirmation, then removes AI objects,
219
- analysis annotations, manual drawings, and custom levels for the current symbol and interval.
220
- Indicators and alerts remain. Request an exact AI target when you want to delete only one object.
221
- - An object may be outside the visible time/price range. Object state and application receipts
222
- do not prove screen pixels, professional pattern quality or vendor quote correctness.
223
- - Minute availability depends on source/permissions; not all markets, minute sizes or operation combinations are accepted. Channels, boxes and ABC labels are not automatically recognized professional patterns. Chan analysis is not included. The 201 TA-Lib functions are primarily read-only; only the selected SMA/EMA/BBANDS outputs have a guarded drawing conversion.
149
+ See the [complete guide](docs/guide.en.md) for pinned archives, updates, migration, and startup troubleshooting.
224
150
 
225
- Host integration uses `get_chart_context → prepare_chart_edit → apply_chart_edit → get_chart_edit_status`.
226
- Read fresh context after approval and verify against independently retained approved parameters.
227
- A `context_ref` is not a `chart_session`. Read-only `preview_chart_channel` and `verify_chart_drawings`
228
- measure geometry/check parameters; neither selects patterns or grants drawing permission.
229
- Legacy per-family tools manipulate explicit snapshots, not the guarded live-chart workflow.
151
+ ## Data and scope
230
152
 
231
- Run `pnpm build:sidebar` and `pnpm test` for the build and complete Node/Python regression suite.
232
- See the [v0.5.0 candidate acceptance notes](docs/release-acceptance-v0.5.0.md) for scope, evidence, and remaining release gates. The full [function guide](docs/chart-functions.md) separates read-only calculations from drawable results.
233
- First-time automatic dependency preparation needs network access and may take several minutes.
153
+ - **Sources:** FTShare can be configured and tested under Settings → Data source. Without a key, selected A-share, Hong Kong, US, and index historical daily sources may be available; coverage depends on the public provider.
154
+ - **Permissions and periods:** minute bars, news, and company information depend on the source and permissions. Automatic drawing, patterns, and Nine Count currently use loaded, closed daily bars for A-share, Hong Kong, and US stocks.
155
+ - **Editing:** drawings use real candles in the current chart. Unknown sources, expired results, or ambiguous active views stop edits with an explanation. Dragging anchors and undo are not currently supported.
156
+ - **Retention:** DSH watchlists and groups persist across conversations. Codex charts, watchlists, and temporary App keys remain in the current connection's memory and do not inherit DSH settings. Drawing recovery across service restarts is not guaranteed.
234
157
 
235
- ### Host-provided Python runtime
158
+ Market data may be delayed. Patterns and counts support research and review, without guaranteed trading returns. See [key-less coverage](docs/anonymous-market-support.md) and [free Hong Kong/US daily sources](docs/free-foreign-daily.md).
236
159
 
237
- Ordinary installs default to `DSH_KLINE_RUNTIME_MODE=auto`, preserving existing Python/venv selection and dependency preparation. Desktop applications, containers, and other hosts can set these variables before starting DSH:
160
+ ## Documentation
238
161
 
239
- | Environment variable | Meaning |
162
+ | Topic | Link |
240
163
  | --- | --- |
241
- | `DSH_KLINE_PACKAGE_ROOT` | Optional absolute plugin package directory; otherwise resolved beside the plugin module, including nested installs. |
242
- | `DSH_KLINE_PYTHON` | Path to the Python interpreter provided by the host. |
243
- | `DSH_KLINE_RUNTIME_MODE` | `auto` (default) or `external`. |
244
-
245
- `external` requires Python 3.11+ with the required dependencies already available. It only validates and launches the service: no venv creation, dependency installation, or interpreter fallback. The host must repair failures. This mode rejects `DSH_KLINE_VENV`, `--prepare-project`, and `--bootstrap-runtime`. `DSH_KLINE_DEFER_BOOTSTRAP` does not trigger background installation in this mode.
246
-
247
- `DSH_KLINE_PYTHON` must identify the executable file (`python.exe` on Windows), not its directory. Automatic preparation distinguishes `PYTHON_NOT_FOUND`, `PYTHON_VERSION_TOO_OLD`, `PYTHON_EXECUTION_FAILED`, `PYTHON_VENV_UNAVAILABLE`, `PYTHON_DEPENDENCY_INSTALL_FAILED`, and `PYTHON_IMPORT_CHECK_FAILED`; an unusable Windows Store redirector is `PYTHON_STORE_ALIAS`. Candidate paths and outcomes are logged locally, without keys or a dump of the parent environment.
248
-
249
- In `external` mode, the host owns the interpreter, dependency search paths, and isolation settings (such as `PYTHONPATH`, `PYTHONNOUSERSITE`, or Windows embedded Python's `._pth`); no other interpreter is discovered. `auto` mode uses the bounded discovery and repair described above. Set `DSH_KLINE_CHART_PORT=0` for a dynamic port. The MCP patch explicitly forwards runtime variables without changes to DSH core.
250
-
251
- ## Updates and license
252
-
253
- See [Releases](https://github.com/FTShare-Lab/dsh_kline/releases) for version history. This project is released under the [MIT License](LICENSE); frontend provenance is in [PROVENANCE.md](PROVENANCE.md).
254
-
255
- Maintainers changing tools, annotations, resources or the App bridge must regenerate the packaged catalog with `python scripts/generate-codex-catalog.py`; `--check` and regression tests detect stale catalogs.
256
-
257
- The public `marketplace/ft-kline/` snapshot is generated from the same Codex package allowlist. After editing source, plugin manifests or README files, run `pnpm sync:codex-marketplace` and commit the generated files. CI runs `pnpm verify:codex-marketplace` and independently starts the directory in Desktop and CLI modes. Do not edit generated files directly; see [marketplace maintenance](marketplace/README.md).
258
-
259
- ### DSH startup diagnostics
260
-
261
- MCP discovery remains connected while Python is prepared; `dsh_kline_runtime_status` reports `preparing`, `recovering`, or `ready`. Backend restarts never replay operations with unknown outcomes. Chart registration retries without terminating other MCP tools.
262
-
263
- Request `/dsh-kline/healthz` on the current DSH Web origin: 200 confirms the locator and HTTP backend instance agree; 503 identifies the failure. It does not check provider permissions or MCP tool execution. Historical `/dsh-kline/session?session=…` snapshots are not a health check. Use the locator's actual service port rather than assuming 8765.
264
-
265
- Dependency logs remain in `bootstrap.log`; backend stderr is persisted to `logs/backend-<host_pid>.log` with one `.previous` rotation at approximately 1 MiB. The default cache is `~/.cache/dsh_kline` on macOS/Linux (honoring `XDG_CACHE_HOME`) or `%LOCALAPPDATA%\dsh_kline` on Windows. `DSH_KLINE_CACHE_DIR` overrides it; `DSH_KLINE_RUNTIME_DIR` independently overrides runtime files. Health responses never expose the service token.
164
+ | Install, updates, keys, troubleshooting | [Complete guide](docs/guide.en.md) |
165
+ | Automatic drawing and extension | [Shared drawing architecture](docs/automatic-drawing.md) |
166
+ | Pattern definitions and real samples | [Rules](docs/price-pattern-rules-v1.md) · [Samples](docs/price-pattern-samples-v1.md) |
167
+ | Technical functions and advanced annotations | [Function and drawing coverage](docs/chart-functions.md) |
168
+ | Host and provider integration | [Embedding](docs/embedding.md) · [Provider adaptation](docs/provider-adaptation.md) |
169
+ | Releases and acceptance | [Changelog](CHANGELOG.md) · [v0.6.11 release notes](docs/release-notes-v0.6.11.md) · [Acceptance](docs/release-acceptance-v0.6.11.md) |
170
+
171
+ [MIT License](LICENSE) · [Frontend provenance](PROVENANCE.md) · [GitHub Releases](https://github.com/FTShare-Lab/dsh_kline/releases)