# v0.11.1-alpha.2

> Changes since v0.11.1-alpha.0

Source: https://kcq.nebutra.com/docs/changelog/v0-11-1-alpha-2


Breaking Changes & Migration [#breaking-changes--migration]

<details>
<summary>English</summary>

Changes since v0.11.1-alpha.0 [#changes-since-v0111-alpha0]

Breaking Changes & Migration [#breaking-changes--migration-1]

* **Script API moves to v2**: `scriptVersion: 2` in `defineIndicator` becomes `version: 2`; the old field is rejected at registration. Agent script tools and the per-origin SharedWorker host move with it. Migration: rename `scriptVersion` to `version` in every indicator script and update implementations to the v2 contract. ([#396](https://github.com/363045841/KLineChartQuant/pull/396), [9b056b6d](https://github.com/363045841/KLineChartQuant/commit/9b056b6d))
* **Drawing label targets are named**: the exported `DrawingLabelIndex` type becomes `DrawingLabelTarget`; labels are no longer located by index. Migration: update imports and field types, and pass named targets. ([678b3082](https://github.com/363045841/KLineChartQuant/commit/678b3082))
* **Main price-axis settings removed, layout document bumped**: the public `mainPriceAxisRangeMode` and `mainPriceAxisPriceOnly` settings are gone; range mode is now per-axis state. The layout document moves to v4 and older documents are discarded under the existing alpha policy. Migration: stop passing those settings, use the price-axis context menu or `axes.setRangeMode`, and re-save existing layouts. ([#402](https://github.com/363045841/KLineChartQuant/pull/402), [#399](https://github.com/363045841/KLineChartQuant/issues/399))

Features [#features]

* **Third price-axis mode**: fixed K-line share fits the axis to visible bars with the candles occupying about 70% of the pane; out-of-range plots still render and are clipped at the pane edge. "Scale price chart only" is also available; the default remains the all-sources mode. ([#402](https://github.com/363045841/KLineChartQuant/pull/402))
* **Agent can author indicator scripts**: the Agent can create and edit indicator scripts, load the scripting DSL and API reference on demand, and route validation and activation through one registration pipeline. ([#396](https://github.com/363045841/KLineChartQuant/pull/396), [0e2672c6](https://github.com/363045841/KLineChartQuant/commit/0e2672c6))
* **Chart interaction**: object tree with unified pane axes, crosshair lock, drawing context menu, indicator removal and trading-day separators. ([#380](https://github.com/363045841/KLineChartQuant/pull/380), [#379](https://github.com/363045841/KLineChartQuant/pull/379), [#385](https://github.com/363045841/KLineChartQuant/pull/385))
* **Themes and UI**: light theme, brand-green icons, unified dark surfaces and menu contracts. ([#381](https://github.com/363045841/KLineChartQuant/pull/381), [#383](https://github.com/363045841/KLineChartQuant/pull/383), [1eedf70c](https://github.com/363045841/KLineChartQuant/commit/1eedf70c))
* **Desktop**: unified macOS 13+ packaging. ([#373](https://github.com/363045841/KLineChartQuant/pull/373))

Agent Architecture [#agent-architecture]

* **Per-origin runtime isolation**: the Agent runtime moves into a SharedWorker host per origin and provider settings converge on a host-owned API, fixing the AI panel being unusable when several charts on one page fight over the exclusive lock. ([6e4dc2ec](https://github.com/363045841/KLineChartQuant/commit/6e4dc2ec), [50d0ee68](https://github.com/363045841/KLineChartQuant/commit/50d0ee68), [#396](https://github.com/363045841/KLineChartQuant/pull/396), [#382](https://github.com/363045841/KLineChartQuant/issues/382))
* **Official Pi records as the session source**: the panel renders official transcript entries directly, with native run continuation, Plan/Build switching and an `ask_user` card. ([bbb980db](https://github.com/363045841/KLineChartQuant/commit/bbb980db), [#387](https://github.com/363045841/KLineChartQuant/pull/387))
* **Rebuilt tool surface and drawing anchors**: a declarative tool catalog, unified instrument routing and tool contracts, persistence of disabled tools only, and stable tool sets and prompts across modes. ([0e55c108](https://github.com/363045841/KLineChartQuant/commit/0e55c108), [c7a72f68](https://github.com/363045841/KLineChartQuant/commit/c7a72f68), [9cd9dd85](https://github.com/363045841/KLineChartQuant/commit/9cd9dd85), [834e2679](https://github.com/363045841/KLineChartQuant/commit/834e2679), [#389](https://github.com/363045841/KLineChartQuant/pull/389))
* **Web search**: search now runs over the Exa MCP channel. ([523f5006](https://github.com/363045841/KLineChartQuant/commit/523f5006))

Fixes [#fixes]

* Pass through unknown fields on status frames. ([#392](https://github.com/363045841/KLineChartQuant/pull/392))
* Anchor VWAP to market sessions and skip missing volume. ([#378](https://github.com/363045841/KLineChartQuant/pull/378))
* `immutableMap` now returns a real `Map`; incremental indicator recomputation no longer stays in loading. ([d83bc483](https://github.com/363045841/KLineChartQuant/commit/d83bc483), [d8ff63d8](https://github.com/363045841/KLineChartQuant/commit/d8ff63d8))
* Commit axis views through the coordinator; fix selector row alignment and label truncation. ([833943c1](https://github.com/363045841/KLineChartQuant/commit/833943c1), [95baa559](https://github.com/363045841/KLineChartQuant/commit/95baa559))

Architecture & Refactoring [#architecture--refactoring]

* Removed dead script code and duplicate calculation paths; deduplicated Vue formatters, symbol specs and overlays. ([#395](https://github.com/363045841/KLineChartQuant/pull/395), [#393](https://github.com/363045841/KLineChartQuant/pull/393), [#394](https://github.com/363045841/KLineChartQuant/pull/394))
* Unified UI component contracts, overlay positioning and native font roles. ([#390](https://github.com/363045841/KLineChartQuant/pull/390), [#384](https://github.com/363045841/KLineChartQuant/pull/384))
* Reused rendering geometry and time ticks per frame; derived reactive values on read. ([1e7009b1](https://github.com/363045841/KLineChartQuant/commit/1e7009b1), [fe37e083](https://github.com/363045841/KLineChartQuant/commit/fe37e083))

Documentation [#documentation]

* Split the script API reference into topic pages; updated price-axis range design docs. ([658b7673](https://github.com/363045841/KLineChartQuant/commit/658b7673), [#402](https://github.com/363045841/KLineChartQuant/pull/402))

</details>
