@tinkerlandai/indiana-sdk 0.4.0 → 0.5.0
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 +8 -0
- package/README.md +6 -6
- package/README.zh-CN.md +4 -4
- package/THIRD_PARTY_NOTICES.md +0 -1
- package/dist/ai-usage-BzydP8eN.d.ts +11085 -0
- package/dist/chunk-3OSMEG44.js +17 -0
- package/dist/chunk-GA6X57BO.js +1 -0
- package/dist/chunk-GTBD4BJ4.js +11 -0
- package/dist/{chunk-2UFPTDCV.js → chunk-QUW4UOKZ.js} +1 -1
- package/dist/chunk-RMFH5TWV.js +1 -0
- package/dist/chunk-YNUVRZRQ.js +1 -0
- package/dist/funnel-runtime-host-RZRB2CY6.js +1 -0
- package/dist/{funnel-runtime-start-B93fV5gJ.d.ts → funnel-runtime-start-JHA9ES24.d.ts} +63 -29
- package/dist/index.d.ts +108 -53
- package/dist/index.js +1 -1
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.d.ts +3 -2
- package/dist/openrouter.js +1 -1
- package/dist/page.d.ts +12 -12
- package/dist/page.js +1 -1
- package/dist/{paywall-M5CIDUIT.js → paywall-MYBEOVTQ.js} +1 -1
- package/dist/popup.d.ts +254 -1
- package/dist/popup.js +6 -6
- package/dist/{screen-Keau_Qa2.d.ts → screen-16d-xADb.d.ts} +354 -463
- package/dist/server.d.ts +4 -3
- package/dist/server.js +1 -1
- package/dist/src-E2GXK6WA.js +1 -0
- package/dist/visual-editor-agent-FDCV3BXP.js +1 -0
- package/dist/visual.js +1 -1
- package/package.json +3 -2
- package/dist/ai-usage-D9xVKhvu.d.ts +0 -9953
- package/dist/chunk-LFNFVYC2.js +0 -1
- package/dist/chunk-PVJKOUNE.js +0 -11
- package/dist/chunk-TZ6REIUE.js +0 -17
- package/dist/chunk-VTSEZ4GI.js +0 -1
- package/dist/funnel-runtime-host-4PQY2MFC.js +0 -1
- package/dist/src-XEDJAKEB.js +0 -1
- package/dist/visual-editor-agent-PYMKMPY3.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,16 @@ Release facts and artifact evidence: [SDK release ledger](../../docs/sdk-release
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 0.5.0 — 2026-10-19
|
|
8
|
+
|
|
9
|
+
- Use protocol 0.5 for billing-window `anchor` responses and `sourceKind: manual` Invoices. The anchor semantics come from pinned Autumn; the Invoice source classification is an Indiana response adaptation. Add Invoice management methods and current subscription invoice-mode/anchor inputs. Requires a matching server/database release; package publication does not promote production.
|
|
10
|
+
|
|
7
11
|
- Separate remote Screen navigation (10 seconds), bridge handshake (5 seconds) and first render (5 seconds) startup budgets. Count visible time only, identify the timed-out phase and cancel timers/listeners on render or disposal. A slow valid document no longer consumes the bridge budget before it loads.
|
|
8
12
|
|
|
13
|
+
## Distribution tags — 2026-10-19
|
|
14
|
+
|
|
15
|
+
- Point `latest` to the existing `0.4.0`; retain `beta = 0.4.0`. Default npm installation now resolves 0.4.0. Package bytes, protocol, and runtime are unchanged; no package was republished.
|
|
16
|
+
|
|
9
17
|
## 0.4.0 — 2026-10-18
|
|
10
18
|
|
|
11
19
|
- Use protocol 0.4 with environment-scoped behavior, experiment-exposure and Feature-usage collection policies. New required delivery and tracking acknowledgement fields require a matching service release.
|
package/README.md
CHANGED
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
[简体中文](./README.zh-CN.md)
|
|
4
4
|
|
|
5
|
-
Version `0.
|
|
5
|
+
Version `0.5.0` uses protocol `0.5`. It adds billing-window `anchor` responses, standalone Invoice classification (`sourceKind: manual`), Invoice management methods and current subscription invoice-mode/anchor inputs. The anchor name, values and billing semantics come from pinned Autumn; the Invoice source classification is an Indiana adaptation.
|
|
6
6
|
|
|
7
|
-
Indiana's JavaScript and TypeScript SDK
|
|
7
|
+
Indiana's JavaScript and TypeScript SDK supports browsers, Node.js, screen rendering and optional AI usage integrations. This package requires a server and database implementing protocol `0.5`; publishing the SDK does not deploy them. For a server still advertising protocol `0.3`, use SDK `0.3.1`.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Environment collection controls introduced in protocol `0.4` remain available. Disabled collection keeps existing history and does not change billable usage. SDKs cache the policy for 30 seconds; the database checks each batch. Older `0.x` protocols are rejected before business operations.
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm install @tinkerlandai/indiana-sdk@0.
|
|
12
|
+
npm install --save-exact @tinkerlandai/indiana-sdk@0.5.0
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Version compatibility and support
|
|
16
16
|
|
|
17
17
|
During `0.x`, only the current protocol is supported. Starting with `1.0`, compatibility is preserved within each stable major version. Once the next stable major is published, the preceding stable major remains supported for at least 12 calendar months, with at least 180 days' public notice before retirement. The later deadline applies. See the [support policy](https://tinker.cash/docs/release-notes#support-policy).
|
|
18
18
|
|
|
19
|
-
Version `0.
|
|
19
|
+
Version `0.5.0` sends protocol and SDK version headers and validates the protocol declared by successful responses. Headerless historical clients retain the fixed identity `0.2`; they do not follow the current protocol automatically. Updating source code does not change an existing npm artifact or deploy a server.
|
|
20
20
|
|
|
21
21
|
## One package, seven entry points
|
|
22
22
|
|
|
@@ -121,7 +121,7 @@ unsubscribe();
|
|
|
121
121
|
flags.destroy();
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
Since protocol 0.4, the selected environment's integration settings control behavior events, experiment exposures and Feature usage independently. New environments enable only exposure collection; existing environments retain all three. `flush()` includes a `skipped` count for intentionally disabled collection. The database rechecks every batch, including direct SDK/server and Funnel ingestion. Running experiment/Bandit dependencies prevent incompatible collection changes. These controls do not delete history or affect commercial usage accounting.
|
|
125
125
|
|
|
126
126
|
Flags default to local evaluation; Owner/Admin can switch each flag to server evaluation. Server-evaluated flags deliver only keys and results, using the caller's fallback until the first result arrives. Attribute changes immediately discard old results. List hashes are not a secrecy boundary. Local Funnels cannot depend on server-evaluated flags; mode switches also check active historical Runs. `identify` / `reset` release the previous identity's Feature instances and event queue.
|
|
127
127
|
|
package/README.zh-CN.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
# @tinkerlandai/indiana-sdk
|
|
4
4
|
|
|
5
|
-
SDK `0.
|
|
5
|
+
SDK `0.5.0` 使用协议 `0.5`,新增用量窗口 `anchor` 返回字段、独立发票 `sourceKind: manual` 分类、Invoice 管理方法及订阅 invoice-mode/anchor 输入。anchor 的名称、取值与账期语义来自固定版本 Autumn;发票来源分类是 Indiana 的适配。
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Indiana 的 JavaScript/TypeScript SDK 支持浏览器、Node.js、屏幕渲染及可选 AI 用量集成。此版本需要实现协议 `0.5` 的匹配服务端和数据库;发布 SDK 不会部署服务。服务仍声明协议 `0.3` 时使用 SDK `0.3.1`。
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
协议 0.4 引入的环境采集控制继续保留。当前环境的接入设置分别控制行为事件、实验曝光和 Feature 求值记录。`flush()` 的 `skipped` 表示明确关闭的采集;SDK 缓存配置 30 秒,数据库对每批再次检查。开关不删除历史,也不影响业务计费用量。旧 0.x 协议会在业务执行前被拒绝。
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm install @tinkerlandai/indiana-sdk@0.
|
|
12
|
+
npm install --save-exact @tinkerlandai/indiana-sdk@0.5.0
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## 版本兼容与支持
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -45,7 +45,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
45
45
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
46
46
|
THE SOFTWARE.
|
|
47
47
|
|
|
48
|
-
|
|
49
48
|
# dom-mutator 0.7.0
|
|
50
49
|
|
|
51
50
|
GrowthBook declarative DOM mutations use the original `dom-mutator` package.
|