@tinkerlandai/longplay-sdk 0.10.4 → 0.10.6
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 +9 -0
- package/README.md +9 -3
- package/README.zh-CN.md +6 -4
- package/dist/chunk-5JJZSH23.js +179 -0
- package/dist/chunk-65WKEU2L.js +1 -0
- package/dist/{chunk-MRN4HP4W.js → chunk-AWZFL4HE.js} +1 -1
- package/dist/{chunk-YQHPEP4X.js → chunk-F4YCLQGU.js} +1 -1
- package/dist/{chunk-KBM7BYQY.js → chunk-FRGIXMNP.js} +1 -1
- package/dist/{chunk-HOW7NIIR.js → chunk-FXVZRIJ3.js} +1 -1
- package/dist/{chunk-JB46ZKGZ.js → chunk-HV4THS52.js} +1 -1
- package/dist/{chunk-VMM3GA3L.js → chunk-JSHLBGDY.js} +1 -1
- package/dist/chunk-MOWYD2TV.js +1 -0
- package/dist/chunk-VUWXU4FP.js +1 -0
- package/dist/{chunk-2HFA34QO.js → chunk-WCVK4OMS.js} +2 -2
- package/dist/content-ZQNYKPZT.js +1 -0
- package/dist/{funnel-local-client-CVokI0rx.d.ts → funnel-local-client-B4Z3dvNf.d.ts} +1 -1
- package/dist/{funnel-resource-client-Cv5OjfAn.d.ts → funnel-resource-client-BhbXsB2q.d.ts} +1 -1
- package/dist/funnel-runtime-host-DDBGBB5L.js +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/native-shell.js +1 -1
- package/dist/openrouter.js +1 -1
- package/dist/page.js +1 -1
- package/dist/paywall-XQG2D3PA.js +1 -0
- package/dist/popup.d.ts +2 -1
- package/dist/popup.js +1 -1
- package/dist/react-native.d.ts +5 -5
- package/dist/react-native.js +1 -1
- package/dist/screen-renderer-NLB3FAQJ.js +1 -0
- package/dist/server.d.ts +3 -3
- package/dist/server.js +1 -1
- package/dist/visual.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-VOEFXEPP.js +0 -1
- package/dist/chunk-X6BCUINI.js +0 -173
- package/dist/chunk-ZPZVSC4J.js +0 -1
- package/dist/content-NYMIZRNR.js +0 -1
- package/dist/funnel-runtime-host-UL4DEJDU.js +0 -1
- package/dist/paywall-EJCNWDHK.js +0 -1
- package/dist/screen-renderer-JMHV4GPP.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.6
|
|
4
|
+
|
|
5
|
+
Only Longplay public factories, errors, types and browser globals are supported. Migrate old Indiana imports to their Longplay names. Internal implementations, protocol and saved identities are unchanged; previously published artifacts remain immutable.
|
|
6
|
+
|
|
7
|
+
## 0.10.5 — 2026-11-01
|
|
8
|
+
|
|
9
|
+
- Make IAM Funnel entries recover from configuration timeouts, delayed scene changes, hidden retained pages and earlier refused entries; recheck the selected scene before mounting a Run.
|
|
10
|
+
- Accept up to 100 deduplicated Funnel page assignments so eligible changesets are no longer truncated at 20. Requires the matching GOP contract and IAM reliability SQL migration; wire protocol stays `0.10`.
|
|
11
|
+
|
|
3
12
|
## 0.10.4 — 2026-10-31
|
|
4
13
|
|
|
5
14
|
- Add Longplay public package names, `createLongplay*` factories, error/options aliases, browser readiness and native/Python entry points. Retain legacy exports, commands, downloads, protocol and saved identities; publication is a separate release step.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
# @tinkerlandai/longplay-sdk
|
|
8
8
|
|
|
9
|
-
This source checkout is SDK 0.10.
|
|
9
|
+
This source checkout is SDK 0.10.6, protocol 0.10. These examples use `https://api.longplayai.com` with a Sandbox App and credentials issued by the production deployment. Sandbox still contains production data; do not reuse credentials from the separate test deployment. Confirm runtime readiness in [environment state](../../docs/development-status.md) before running them.
|
|
10
10
|
|
|
11
11
|
[简体中文](./README.zh-CN.md)
|
|
12
12
|
|
|
@@ -20,6 +20,8 @@ npm install --save-exact @tinkerlandai/longplay-sdk@latest
|
|
|
20
20
|
|
|
21
21
|
The first install resolves latest and saves an exact package.json version. Commit the lockfile and use npm ci for later builds. Use the original package identity and exact version from the [release records](../../docs/sdk-releases.md) for historical installations and rollback. New Longplay package names require their own publication; source changes do not publish artifacts.
|
|
22
22
|
|
|
23
|
+
IAM Funnel entry reliability fixes require SDK 0.10.6 or later. Select this release explicitly with `npm install --save-exact @tinkerlandai/longplay-sdk@0.10.5`; current mutable tags are recorded in the [release records](../../docs/sdk-releases.md).
|
|
24
|
+
|
|
23
25
|
This SDK requires HTTP protocol 0.10. The runtime must serve the same current protocol; publishing a package does not deploy the server. Publication and accepted environment scope are recorded in the [release ledger](../../docs/sdk-releases.md) and [development status](../../docs/development-status.md).
|
|
24
26
|
|
|
25
27
|
The data/session layer handles public JSON, integrity checks and authenticated operations. The presentation host composes that layer with the packaged screen renderer; the renderer receives supplied data and emits action intents. Client display entry points load presentation lazily. The `/server` entry has no screen presentation dependency and uses a scoped Server Key only on your backend. A local SDK guard never replaces runtime authorization or verified payment completion. Console preview supplies simulated data/session results to the same presentation host.
|
|
@@ -69,8 +71,8 @@ The SDK sends current protocol and SDK version headers and validates the protoco
|
|
|
69
71
|
|
|
70
72
|
## Public entry points
|
|
71
73
|
|
|
72
|
-
| Import
|
|
73
|
-
|
|
|
74
|
+
| Import | Purpose |
|
|
75
|
+
| ----------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
74
76
|
| `@tinkerlandai/longplay-sdk` | Browser Customer, Funnel, Feature, and standalone Paywall clients |
|
|
75
77
|
| `@tinkerlandai/longplay-sdk/server` | Trusted Node.js backend, Customer Sessions, business writes, and Funnel decisions |
|
|
76
78
|
| `@tinkerlandai/longplay-sdk/react-native` | Portable Customer core and authenticated-backend usage relay; no DOM presentation |
|
|
@@ -394,8 +396,12 @@ entries.destroy();
|
|
|
394
396
|
|
|
395
397
|
The host observes original button behavior, matches unique render/element guards and attempts automatic entries once per pathname visit. GOP selects the Funnel, checks entry publication, suppresses an existing Customer/Funnel Run and enforces the automatic-entry cooldown. The host retains unknown requests in memory; page reload recovery is not included. When a Run is stopped from Console or expires, the host removes its UI and reports `run_ended`, whether the Run reads `closed` or its next command is refused with `FORBIDDEN`; a later trigger can then start again. An IAM binding supplies no Customer credential or business permission.
|
|
396
398
|
|
|
399
|
+
The entry scope is the route template plus render, covering every matching dynamic URL instance. Query/hash changes do not create a new visit. Supported anchor and inline-display changes recheck delayed scenes; hidden retained pages do not block the single active button. Multiple active targets remain refused. Configuration fetch/body reads default to a five-second deadline (`timeoutMs` overrides it), recover on the next 15-second poll, and discard late responses. Inspect `onStatus` for `identity_required`, `configuration_unavailable`, `incompatible` and `start_failed`. Definitively refused entries allow the next matching entry in delivered order; pending unknown starts wait for `retry()`. Other entries are preserved while a Run is mounted and reconsidered when it ends. Original button navigation continues, so full-page navigation can prevent presentation.
|
|
400
|
+
|
|
397
401
|
An opted-in Split (`applyPageExperiment: true`) uses its accepted experiment variation for the merchant page. The entry host automatically shares `appManifestRelease` with `showFunnelRun`; manual hosts pass that option explicitly. `createFunnelPageExperiments({client, appManifestRelease})` is available for hosts without the standard UI. The consumer never rebuckets, reports use against the accepted receipt, and reverts on stop, completion or destruction. A separately installed visual consumer yields ownership of that experiment during the Run. This Web source feature requires matching GOP contracts and the IAM/Funnel database migration; installation alone does not promote runtime support.
|
|
398
402
|
|
|
403
|
+
All eligible changesets are delivered within the visual payload's existing 100-item/2 MiB budget, with one assignment per accepted Split receipt and up to 100 assignments. More than 20 distinct assignments require the matching GOP response contract and SDK before the SQL is activated. Used-receipt requests keep their existing 20-ID limit. After a source upgrade, check **Version applicability** in the App page map: invalid published Funnel entries link to the affected Funnel for reselection and publication. Missing current versions, read failures and incomplete inventories remain explicit. Follow the [two-layer integration guide](https://longplayai.com/docs/iam?lang=en#funnel-entries) for build binding and host lifecycle.
|
|
404
|
+
|
|
399
405
|
## Funnel-scoped resource requests
|
|
400
406
|
|
|
401
407
|
Formal Local Runs submit advance signals to Longplay; the canonical executor supplies the original Run/node/visit/receipt when it issues a Coupon or performs commerce. An application consuming a pure Funnel result can bind its Customer client explicitly:
|
package/README.zh-CN.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
[English](./README.md)
|
|
8
8
|
|
|
9
|
-
当前源码为 SDK 0.10.
|
|
9
|
+
当前源码为 SDK 0.10.6、协议 0.10。本页示例使用 `https://api.longplayai.com` 以及生产部署内签发的 Sandbox App/凭据。Sandbox 仍属于生产数据,不能复用独立测试部署的凭据。运行前核对[环境状态](../../docs/development-status.md),确认服务已就绪。
|
|
10
10
|
|
|
11
11
|
# @tinkerlandai/longplay-sdk
|
|
12
12
|
|
|
@@ -20,7 +20,9 @@ npm install --save-exact @tinkerlandai/longplay-sdk@latest
|
|
|
20
20
|
|
|
21
21
|
首次安装解析最新稳定版,--save-exact 将结果固定在 package.json。提交锁文件,后续构建使用 npm ci;历史安装或回滚请沿用[发布记录](../../docs/sdk-releases.md)中的原包名和精确版本。Longplay 新包名需要单独发布,源码修改不代表已经发布。
|
|
22
22
|
|
|
23
|
-
SDK 0.10.
|
|
23
|
+
IAM Funnel 入口的可靠触发修复需要 SDK 0.10.6 或更新版本。可执行 `npm install --save-exact @tinkerlandai/longplay-sdk@0.10.5` 固定安装此版本;可变标签的实际指向见[发布记录](../../docs/sdk-releases.md)。
|
|
24
|
+
|
|
25
|
+
SDK 0.10.6 要求 HTTP 协议 0.10。服务端须使用同一当前协议,不提供旧协议兼容;发布包不会部署服务端。实际发布、标签与环境验收范围见 [SDK 发布总账](../../docs/sdk-releases.md) 和 [开发状态](../../docs/development-status.md)。
|
|
24
26
|
|
|
25
27
|
数据/会话层负责公开 JSON、完整性校验和鉴权操作;展示宿主将会话接口接入打包的屏幕渲染器,渲染器消费已提供的数据并返回动作意图。客户端按需加载展示;`/server` 入口使用商户后端的受限 Server Key,不加载屏幕展示。SDK 本地检查不替代运行时授权或付款核实。后台 Preview 为同一个展示宿主提供模拟会话和数据。
|
|
26
28
|
|
|
@@ -79,8 +81,8 @@ SDK 发送当前协议及 SDK 版本请求头,并校验成功响应的协议
|
|
|
79
81
|
|
|
80
82
|
## 公开入口
|
|
81
83
|
|
|
82
|
-
| 导入入口
|
|
83
|
-
|
|
|
84
|
+
| 导入入口 | 用途 |
|
|
85
|
+
| ----------------------------------------- | ----------------------------------------------------------- |
|
|
84
86
|
| `@tinkerlandai/longplay-sdk` | 浏览器 Customer、Funnel、Feature 与独立 Paywall 客户端 |
|
|
85
87
|
| `@tinkerlandai/longplay-sdk/server` | 可信 Node.js 后端、Customer Session、业务写入和 Funnel 决策 |
|
|
86
88
|
| `@tinkerlandai/longplay-sdk/react-native` | Customer 核心和经认证业务后端转发的用量上报,不含 DOM 展示 |
|