@tansr/sdk 0.2.0 → 0.3.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/dist/index.d.ts +314 -103
- package/dist/index.js +1374 -430
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10928,6 +10928,41 @@ declare class UnavailableChannel implements PromptChannel {
|
|
|
10928
10928
|
ask(_questions: readonly Question[], _signal: AbortSignal): Promise<Answer[]>;
|
|
10929
10929
|
}
|
|
10930
10930
|
|
|
10931
|
+
/**
|
|
10932
|
+
* T-D4 — Web 搜索后端接口(可插拔)。
|
|
10933
|
+
*
|
|
10934
|
+
* 命名为 WebSearchProvider(而非任务卡字面的 SearchProvider)以避开
|
|
10935
|
+
* 《09》§8 前置项 4 预留给代码检索(T-D2 语义索引)的 SearchProvider
|
|
10936
|
+
* 名字空间——kernel 顶层出口是 `export *`,同名必撞。偏差已记入任务报告。
|
|
10937
|
+
*/
|
|
10938
|
+
/** 单条搜索结果(结构化;渲染归表面层) */
|
|
10939
|
+
interface WebSearchResultItem {
|
|
10940
|
+
title: string;
|
|
10941
|
+
url: string;
|
|
10942
|
+
snippet: string;
|
|
10943
|
+
}
|
|
10944
|
+
/** provider 收到的查询(maxResults 已被工具层夹紧到上限) */
|
|
10945
|
+
interface WebSearchQuery {
|
|
10946
|
+
query: string;
|
|
10947
|
+
maxResults: number;
|
|
10948
|
+
}
|
|
10949
|
+
interface WebSearchProviderContext {
|
|
10950
|
+
/** 工具层合成的取消信号(ctx.signal + 工具内部超时) */
|
|
10951
|
+
signal: AbortSignal;
|
|
10952
|
+
}
|
|
10953
|
+
/**
|
|
10954
|
+
* 搜索后端契约:
|
|
10955
|
+
* - 返回结构化结果数组(可多于 maxResults,工具层会截断);
|
|
10956
|
+
* - 失败以 throw 表达(工具层捕获并转结构化错误);错误消息中**不得**
|
|
10957
|
+
* 出现密钥原文(实现方自行脱敏,内置 HTTP provider 见 http-search-provider.ts);
|
|
10958
|
+
* - 必须尊重 signal(至少把它传给底层 I/O)。
|
|
10959
|
+
*/
|
|
10960
|
+
interface WebSearchProvider {
|
|
10961
|
+
/** 后端名(进 ToolResult.data 供渲染与审计;如 "http") */
|
|
10962
|
+
readonly name: string;
|
|
10963
|
+
search(query: WebSearchQuery, context: WebSearchProviderContext): Promise<WebSearchResultItem[]>;
|
|
10964
|
+
}
|
|
10965
|
+
|
|
10931
10966
|
/** 单条解析结果(node:dns lookup all:true 的消费子集) */
|
|
10932
10967
|
interface ResolvedHostAddress {
|
|
10933
10968
|
address: string;
|
|
@@ -15489,22 +15524,98 @@ type AppCapabilities = z.infer<typeof AppCapabilitiesSchema>;
|
|
|
15489
15524
|
/** 平台缺省档(保守值;终值⏸候拍板⑥,doc/83 §八) */
|
|
15490
15525
|
declare const DEFAULT_APP_CAPABILITIES: AppCapabilities;
|
|
15491
15526
|
|
|
15527
|
+
/** bundle 内单模型条目(SDK 消费子集) */
|
|
15528
|
+
interface AppBundleModel {
|
|
15529
|
+
handle: string;
|
|
15530
|
+
modelId: string;
|
|
15531
|
+
displayName: string;
|
|
15532
|
+
/**
|
|
15533
|
+
* 原始厂商(模型呈现面二波,用户拍板 2026-08-30 ④;api bundle 加法键,
|
|
15534
|
+
* 法人/品牌如 'Anthropic')。集成方模型切换器「厂商 → 系列」分组呈现的
|
|
15535
|
+
* 一级维;旧 bundle 缺键/api 未校准 = null(呈现面回落平铺,恒不猜)。
|
|
15536
|
+
*/
|
|
15537
|
+
manufacturer: string | null;
|
|
15538
|
+
/** 模型族 = 系列维(api T-A13 列;两级分组二级维;缺键 = null) */
|
|
15539
|
+
family: string | null;
|
|
15540
|
+
/** 上游协议标识(信息位;消费恒走 twp,方言转换收敛在网关) */
|
|
15541
|
+
protocol: string;
|
|
15542
|
+
capabilities: Record<string, unknown>;
|
|
15543
|
+
contextWindow: number | null;
|
|
15544
|
+
}
|
|
15545
|
+
/**
|
|
15546
|
+
* 授权媒体模型条目(S-G1 媒体池化顺位取用,用户拍板 2026-08-30):`model` =
|
|
15547
|
+
* canonical handle(/t1/imagegen、/t1/videogen 的 model 位可直用)。网关契约
|
|
15548
|
+
* 恒不下发价格/成本/供应商内部信息,本形态即全量。
|
|
15549
|
+
*/
|
|
15550
|
+
interface AppBundleMediaModel {
|
|
15551
|
+
model: string;
|
|
15552
|
+
displayName: string;
|
|
15553
|
+
}
|
|
15554
|
+
/**
|
|
15555
|
+
* 授权媒体模型集(bundle platformModels 段):序 = 平台收敛稳定序,**顺位第一
|
|
15556
|
+
* 即工具/网关 model 缺省时的生效模型**;空数组 = 平台未配置(如实,恒不猜名)。
|
|
15557
|
+
*/
|
|
15558
|
+
interface AppBundlePlatformModels {
|
|
15559
|
+
imageGen: AppBundleMediaModel[];
|
|
15560
|
+
videoGen: AppBundleMediaModel[];
|
|
15561
|
+
}
|
|
15562
|
+
/** bundle-for-app 的 SDK 消费子集 */
|
|
15563
|
+
interface AppBundle {
|
|
15564
|
+
models: AppBundleModel[];
|
|
15565
|
+
aliases: Record<string, string>;
|
|
15566
|
+
/** App 能力位(doc/89 契约 2;段缺席/坏形状 = 平台缺省档) */
|
|
15567
|
+
capabilities: AppCapabilities;
|
|
15568
|
+
/**
|
|
15569
|
+
* 授权媒体模型集(S-G1):工具描述/装配 system 段的自取数据源——集成方
|
|
15570
|
+
* 恒不手配模型名。旧 bundle 无段 = 双空集如实(段级容错同 capabilities
|
|
15571
|
+
* 方向:缺席恒不臆造)。
|
|
15572
|
+
*/
|
|
15573
|
+
platformModels: AppBundlePlatformModels;
|
|
15574
|
+
}
|
|
15575
|
+
/** 平台 provider 档名(与 cli TANSR_PROVIDER_ID 同值;registry 键与别名前缀) */
|
|
15576
|
+
declare const TANSR_PROVIDER_ID = "tansr";
|
|
15577
|
+
/**
|
|
15578
|
+
* 令牌档 registry 的 ApiKey 占位环境变量(readApiKey 非空校验的哑值通道;
|
|
15579
|
+
* 真实鉴权头由 createAppTokenFetch 包装覆写,令牌恒不进 registry env)。
|
|
15580
|
+
*/
|
|
15581
|
+
declare const APP_TOKEN_PLACEHOLDER_ENV = "TANSR_SDK_APP_TOKEN_TIER";
|
|
15582
|
+
/**
|
|
15583
|
+
* bundle 载荷 → SDK 消费子集。顶层形状非法返回 null(调用方结构化报错);
|
|
15584
|
+
* 条目级损坏逐条跳过。capabilities 段严格校验,失败回落平台缺省档
|
|
15585
|
+
* (fail-closed 方向:缺省档保守)。platformModels 段(S-G1)加法解析:
|
|
15586
|
+
* 段缺席(旧 api)/坏形状 = 双空集如实——媒体工具据此如实注明未配置,
|
|
15587
|
+
* 恒不猜模型名;**序恒保持下发序**(顺位第一即缺省)。
|
|
15588
|
+
*/
|
|
15589
|
+
declare function parseAppBundle(raw: unknown): AppBundle | null;
|
|
15590
|
+
/**
|
|
15591
|
+
* bundle → 令牌档 RegistryConfig:单一 tansr 档(twp/1,占位鉴权变量)+
|
|
15592
|
+
* 别名表(目录裸名自动别名最低层,显式 aliases 压过)。恒零本地配置 IO。
|
|
15593
|
+
*/
|
|
15594
|
+
declare function appBundleRegistryConfig(bundle: AppBundle, baseUrl: string): RegistryConfig;
|
|
15595
|
+
|
|
15492
15596
|
/** 环2 内置工具词表(与 AppCapabilities.tools 的工具位同名,doc/84 §4.1) */
|
|
15493
15597
|
type BuiltinToolName = 'read' | 'write' | 'edit' | 'glob' | 'grep' | 'list' | 'shell' | 'webFetch' | 'webSearch' | 'http' | 'todoWrite' | 'askUser';
|
|
15494
|
-
/**
|
|
15495
|
-
|
|
15598
|
+
/**
|
|
15599
|
+
* 环3 平台能力词表(与 AppCapabilities.platform 同名;webSearch 自 S-WS2 收编
|
|
15600
|
+
* 进环2 builtin——位 platform.webSearch 仍在能力契约,但装配入口移位)。
|
|
15601
|
+
*/
|
|
15602
|
+
type PlatformCapabilityName = 'imageGen' | 'videoGen';
|
|
15496
15603
|
/** 三环工具入口(CreateSessionOptions.tools / ManagedQueryOptions.tools) */
|
|
15497
15604
|
interface SdkToolsOptions {
|
|
15498
15605
|
/**
|
|
15499
15606
|
* 环2 内置工具选择(词表:read/write/edit/glob/grep/list/shell/webFetch/
|
|
15500
15607
|
* webSearch/http/todoWrite/askUser)。缺席 = 装配能力位放行的全部内置
|
|
15501
15608
|
* 工具;空数组 = 零内置(纯自定义工具场景)。显式列出位关工具报可读错。
|
|
15609
|
+
* webSearch 双门(S-WS2):除工具位外还需令牌档材料 + platform.webSearch 位
|
|
15610
|
+
* (后端恒平台通道,SDK 恒不 BYO)——缺席选择时通道不备静默不装,显式选择
|
|
15611
|
+
* 即 fail-fast 分因可读错。
|
|
15502
15612
|
*/
|
|
15503
15613
|
builtin?: readonly string[];
|
|
15504
15614
|
/**
|
|
15505
|
-
* 环3 平台能力选择(词表:imageGen/videoGen
|
|
15506
|
-
*
|
|
15507
|
-
*
|
|
15615
|
+
* 环3 平台能力选择(词表:imageGen/videoGen)。位关恒 fail-fast;位开即
|
|
15616
|
+
* 装配平台工具客户端(ImageGen/VideoGen,材料 = 令牌档 platformContext,
|
|
15617
|
+
* 托管/注入档选择即可读错)。webSearch 已收编进 tools.builtin(S-WS2),
|
|
15618
|
+
* 此处显式列出报迁移指引。
|
|
15508
15619
|
*/
|
|
15509
15620
|
platform?: readonly string[];
|
|
15510
15621
|
/** 环1 自定义工具(defineTool 产物;kernel Tool 形态直给亦可) */
|
|
@@ -15520,6 +15631,13 @@ interface PlatformToolContext {
|
|
|
15520
15631
|
token: string;
|
|
15521
15632
|
/** fetch 注入缝(测试桩网关;缺省全局 fetch) */
|
|
15522
15633
|
fetchImpl?: typeof fetch;
|
|
15634
|
+
/**
|
|
15635
|
+
* bundle 授权媒体模型集(S-G1 媒体池化顺位取用):令牌档装配自
|
|
15636
|
+
* assemblePlatformModel 随取随注——ImageGen/VideoGen 工具描述自列授权集
|
|
15637
|
+
* (顺位第一 = model 缺省生效模型),集成方零手配。缺席(注入档测试直构
|
|
15638
|
+
* 等)= 工具描述按未知集处理(仍可显式点名)。
|
|
15639
|
+
*/
|
|
15640
|
+
platformModels?: AppBundlePlatformModels;
|
|
15523
15641
|
}
|
|
15524
15642
|
interface BuildSdkToolSetOptions {
|
|
15525
15643
|
/** 三环工具入口;缺席 = 只装能力位放行的内置工具 */
|
|
@@ -15782,6 +15900,85 @@ declare function accumulateUsage(total: IRUsage | undefined, next: IRUsage): IRU
|
|
|
15782
15900
|
*/
|
|
15783
15901
|
declare function query(options: QueryOptions): AsyncGenerator<KernelEvent, QueryResult, undefined>;
|
|
15784
15902
|
|
|
15903
|
+
/**
|
|
15904
|
+
* doc/91 会话管理实施批 — SessionStore 可注入存储接口(拍板③/⑦)。
|
|
15905
|
+
*
|
|
15906
|
+
* 定位:SDK 会话存储的**唯一承诺面**(拍板⑦:kernel journal 原语恒不经
|
|
15907
|
+
* SDK 出口导出,FileSessionStore 只作内部消费)。「存哪」被本接口抽象掉——
|
|
15908
|
+
* 本地文件(createFileSessionStore)、开发者自建 DB、平台托管(二期
|
|
15909
|
+
* createPlatformSessionStore,候独立拍板)三态同形,createSession 的
|
|
15910
|
+
* resume/store 双字段(拍板③)恒不随存储后端变化。
|
|
15911
|
+
*
|
|
15912
|
+
* 概念收敛(doc/91 §3.1):对外「会话」= AgentSession 逻辑会话,一个
|
|
15913
|
+
* sessionId 一段历史;存储内部的卷/纪元轮换是实现细节,list 面恒按逻辑
|
|
15914
|
+
* 会话呈现。
|
|
15915
|
+
*/
|
|
15916
|
+
|
|
15917
|
+
/** 会话存储登记行(元数据半边;内容经 get 另取,list 恒不携内容) */
|
|
15918
|
+
interface SessionRecordMeta {
|
|
15919
|
+
/** 逻辑会话 id(= AgentSession.sessionId;缺省 UUID 形制,可显式供给) */
|
|
15920
|
+
sessionId: string;
|
|
15921
|
+
/** ISO-8601 创建时间 */
|
|
15922
|
+
createdAt: string;
|
|
15923
|
+
/** ISO-8601 最近提交时间(list 排序锚) */
|
|
15924
|
+
updatedAt: string;
|
|
15925
|
+
/** 会话标题(缺省 = 首条用户输入截断;可显式供给) */
|
|
15926
|
+
title?: string;
|
|
15927
|
+
/**
|
|
15928
|
+
* 平台会话 id(ULID 26 位 Crockford;doc/91 拍板⑤):令牌档 createSession
|
|
15929
|
+
* per-AgentSession 铸造并经 twp meta.sessionId 出线,ULID↔内核 UUID 映射
|
|
15930
|
+
* 落在此键——平台侧会话行(归因/续租/亲和)与本地记录互认的桥。
|
|
15931
|
+
*/
|
|
15932
|
+
platformSessionId?: string;
|
|
15933
|
+
/** 开发者自留元数据域(SDK 恒不消费其内容) */
|
|
15934
|
+
meta?: Record<string, unknown>;
|
|
15935
|
+
}
|
|
15936
|
+
/** create 登记参数(sessionId 缺省由 store 铸造 UUID) */
|
|
15937
|
+
interface SessionStoreCreateInit {
|
|
15938
|
+
sessionId?: string;
|
|
15939
|
+
title?: string;
|
|
15940
|
+
/** 平台会话 ULID(令牌档装配注入;重复登记时以新值对账更新) */
|
|
15941
|
+
platformSessionId?: string;
|
|
15942
|
+
meta?: Record<string, unknown>;
|
|
15943
|
+
}
|
|
15944
|
+
/** commit 附带信息(与 CreateSessionOptions.onHistoryCommit 的 meta 同形) */
|
|
15945
|
+
interface SessionStoreCommitMeta {
|
|
15946
|
+
/**
|
|
15947
|
+
* true = 历史前缀被就地改写(session.compacted 压缩折叠 /
|
|
15948
|
+
* session.microcompacted 存根化),已存内容不再与之对齐——实现方不得按
|
|
15949
|
+
* 长度增量追加,须整卷轮换(demo persistence 先例,doc/91 §3.3)。
|
|
15950
|
+
*/
|
|
15951
|
+
readonly rewritten: boolean;
|
|
15952
|
+
}
|
|
15953
|
+
/** get 终值(meta + 完整历史;resume 径另过配对治理,见 session.ts) */
|
|
15954
|
+
interface SessionRecord {
|
|
15955
|
+
meta: SessionRecordMeta;
|
|
15956
|
+
messages: IRMessage[];
|
|
15957
|
+
}
|
|
15958
|
+
/**
|
|
15959
|
+
* 会话存储接口(拍板③冻结形态)。实现纪律:
|
|
15960
|
+
* - commit 的 rewritten=true 须整卷轮换(语义见 SessionStoreCommitMeta);
|
|
15961
|
+
* - 存储损坏恒结构化报错(throw),恒不静默返回残缺历史(doc/88 对抗式
|
|
15962
|
+
* 验收:改坏存储文件须报错不静默);
|
|
15963
|
+
* - list 恒不携消息内容(枚举是元数据面);
|
|
15964
|
+
* - create 幂等(同 sessionId 重复登记返回既有记录,platformSessionId
|
|
15965
|
+
* 以新值对账更新——resume 后的新 AgentSession 铸新平台 ULID 经此落位)。
|
|
15966
|
+
*/
|
|
15967
|
+
interface SessionStore {
|
|
15968
|
+
/** 建会话(登记 meta;id 由 store 铸造或调用方供给;幂等) */
|
|
15969
|
+
create(init: SessionStoreCreateInit): Promise<SessionRecordMeta>;
|
|
15970
|
+
/** 取单会话(meta + 完整历史;不存在返回 null;损坏结构化 throw) */
|
|
15971
|
+
get(sessionId: string): Promise<SessionRecord | null>;
|
|
15972
|
+
/** 列会话(按 updatedAt 倒序;恒无内容) */
|
|
15973
|
+
list(filter?: {
|
|
15974
|
+
limit?: number;
|
|
15975
|
+
}): Promise<SessionRecordMeta[]>;
|
|
15976
|
+
/** 轮末提交(对接 onHistoryCommit;rewritten=true 须整卷轮换) */
|
|
15977
|
+
commit(sessionId: string, history: readonly IRMessage[], meta: SessionStoreCommitMeta): Promise<void>;
|
|
15978
|
+
/** 删除/归档(FileSessionStore = 目录删除;平台实现 = 归档语义) */
|
|
15979
|
+
delete(sessionId: string): Promise<void>;
|
|
15980
|
+
}
|
|
15981
|
+
|
|
15785
15982
|
interface CreateSessionOptions {
|
|
15786
15983
|
/**
|
|
15787
15984
|
* 模型档(三档判定):
|
|
@@ -15867,6 +16064,26 @@ interface CreateSessionOptions {
|
|
|
15867
16064
|
* console.warn(错误不静默消失)。
|
|
15868
16065
|
*/
|
|
15869
16066
|
onHistoryCommit?: (history: readonly IRMessage[], meta: HistoryCommitMeta) => void | Promise<void>;
|
|
16067
|
+
/**
|
|
16068
|
+
* 一等恢复:自 store 取回历史与 meta 预载(与 initialMessages 互斥;
|
|
16069
|
+
* sessionId 同给时必须与 resume.sessionId 一致)。resume 径内置配对治理
|
|
16070
|
+
* (sessions/pairing.ts,拍板④):断尾 tool_call 补 isError 占位、孤儿
|
|
16071
|
+
* tool_result 截断到干净边界——kernel 对 initialMessages 原样收不校验,
|
|
16072
|
+
* 治理保证 wire 恒不 400。目标不存在抛 TansrSdkError('session_not_found');
|
|
16073
|
+
* 存储损坏由 store.get 结构化上抛(恒不静默)。
|
|
16074
|
+
*/
|
|
16075
|
+
resume?: {
|
|
16076
|
+
sessionId: string;
|
|
16077
|
+
store: SessionStore;
|
|
16078
|
+
};
|
|
16079
|
+
/**
|
|
16080
|
+
* 在场时自动接管会话登记(store.create,幂等;令牌档的平台会话 ULID
|
|
16081
|
+
* 映射随登记落 SessionRecordMeta,拍板⑤)与每轮落卷(store.commit;
|
|
16082
|
+
* store 先行、onHistoryCommit 回调后行,失败面同 sdk.persistence 吞错
|
|
16083
|
+
* 纪律)。与 resume 正交:续存一个恢复的会话把同一 store 同时传两处。
|
|
16084
|
+
* 缺席 = 纯内存零变化(SDK 恒不引入任何隐式落盘)。
|
|
16085
|
+
*/
|
|
16086
|
+
store?: SessionStore;
|
|
15870
16087
|
}
|
|
15871
16088
|
/** onHistoryCommit 附带信息(落盘方决定增量追加还是整卷轮换) */
|
|
15872
16089
|
interface HistoryCommitMeta {
|
|
@@ -15958,6 +16175,16 @@ declare class AgentSession {
|
|
|
15958
16175
|
*/
|
|
15959
16176
|
declare function createSession(options?: CreateSessionOptions): Promise<AgentSession>;
|
|
15960
16177
|
|
|
16178
|
+
interface CreateFileSessionStoreOptions {
|
|
16179
|
+
/** 存储根目录(显式传入,恒不隐式扫用户目录;Electron 场景传 userData) */
|
|
16180
|
+
dir: string;
|
|
16181
|
+
}
|
|
16182
|
+
/**
|
|
16183
|
+
* 缺省文件实现工厂。目录布局(kernel journal 原语同款):
|
|
16184
|
+
* <dir>/sessions/<sessionId>/{journal.jsonl, meta.json, lock, attachments/}
|
|
16185
|
+
*/
|
|
16186
|
+
declare function createFileSessionStore(options: CreateFileSessionStoreOptions): SessionStore;
|
|
16187
|
+
|
|
15961
16188
|
/**
|
|
15962
16189
|
* T-E8 — SDK 结构化错误。
|
|
15963
16190
|
*
|
|
@@ -15975,7 +16202,11 @@ type SdkErrorCode =
|
|
|
15975
16202
|
/** App 能力位关闭而被显式选择(S-B3;消息含控制台修复指引) */
|
|
15976
16203
|
| 'capability_disabled'
|
|
15977
16204
|
/** 会话已关闭后仍调用会改变状态的方法 */
|
|
15978
|
-
| 'session_closed'
|
|
16205
|
+
| 'session_closed'
|
|
16206
|
+
/** resume 目标会话在 store 中不存在(doc/91 拍板③) */
|
|
16207
|
+
| 'session_not_found'
|
|
16208
|
+
/** 会话存储损坏(中段损坏/哈希链断裂/坏 payload;doc/88 对抗锚:恒不静默) */
|
|
16209
|
+
| 'session_store_corrupted';
|
|
15979
16210
|
declare class TansrSdkError extends Error {
|
|
15980
16211
|
readonly code: SdkErrorCode;
|
|
15981
16212
|
constructor(code: SdkErrorCode, message: string, options?: {
|
|
@@ -16155,6 +16386,25 @@ declare function appendUserMessage(state: SessionViewReducerState, text: string)
|
|
|
16155
16386
|
*/
|
|
16156
16387
|
declare function markSourceFailure(state: SessionViewReducerState, error: unknown): SessionViewReducerState;
|
|
16157
16388
|
|
|
16389
|
+
/**
|
|
16390
|
+
* viewStateFromHistory — L2/L3 重建入口(doc/98 §五恢复链步骤④;doc/97
|
|
16391
|
+
* 卡 A3-1 的 TS 半边,与 tansr-android :core 同名 Kotlin 实现逐语义对齐,
|
|
16392
|
+
* 双端金样卷(test/view-golden)锁一致性,重录恒双仓同笔)。
|
|
16393
|
+
*
|
|
16394
|
+
* 语义:治理后历史快照(IRMessage[],pairing 已保证配对完整)→ 定稿消息
|
|
16395
|
+
* 投影(无流式簿记):
|
|
16396
|
+
* - text/thinking 空文本不建 part(与 reducer「空块定稿即删」同律);
|
|
16397
|
+
* - tool_call 与 tool_result 按 callId 全卷配对(后写者胜):有回执按
|
|
16398
|
+
* isError 落 completed/failed,resultText = 回执 text 项拼接(空则缺席);
|
|
16399
|
+
* 无回执(断尾)落 aborted;
|
|
16400
|
+
* - 纯 tool_result 消息不落 user 气泡(回执是协议载体不是用户话语);
|
|
16401
|
+
* tool_result/opaque/image 与未知块型恒不建 part,空消息整条跳过;
|
|
16402
|
+
* - 消息 id 单调续接(msg-1…),internal.nextMessageSeq 随之推进——重建后
|
|
16403
|
+
* 新增消息恒不撞 id;其余内部簿记与视图字段取初始态(status='idle')。
|
|
16404
|
+
*/
|
|
16405
|
+
|
|
16406
|
+
declare function viewStateFromHistory(messages: readonly IRMessage[]): SessionViewReducerState;
|
|
16407
|
+
|
|
16158
16408
|
/**
|
|
16159
16409
|
* S-B7 — 事件泵(view 内部共享;session-view 与 narrator 同用)。
|
|
16160
16410
|
*
|
|
@@ -16233,6 +16483,13 @@ interface AssemblePlatformModelOptions {
|
|
|
16233
16483
|
fetchImpl?: typeof fetch;
|
|
16234
16484
|
/** fallback 链最终命中通报(session 装配合成 cost.provider.switched) */
|
|
16235
16485
|
onProviderSelected?: (selection: FallbackSelection) => void;
|
|
16486
|
+
/**
|
|
16487
|
+
* doc/91 拍板⑤ — twp meta.sessionId 动态供给(平台会话 id,ULID 形制;
|
|
16488
|
+
* 经 ProviderRegistry twp 选项缝透传,providers 零改动)。createSession
|
|
16489
|
+
* 令牌档 per-AgentSession 铸造一枚注入;缺席 = meta.sessionId 如实不携带
|
|
16490
|
+
* (归账兜底在认证头,批ι 前语义),query 单轮档现维持缺席。
|
|
16491
|
+
*/
|
|
16492
|
+
sessionId?: () => string | undefined;
|
|
16236
16493
|
}
|
|
16237
16494
|
interface AssembledPlatformModel {
|
|
16238
16495
|
client: ModelClient;
|
|
@@ -16243,6 +16500,11 @@ interface AssembledPlatformModel {
|
|
|
16243
16500
|
registry: ProviderRegistry;
|
|
16244
16501
|
/** bundle capabilities 段(S-B3 裁剪的事实源;缺席时为平台缺省档) */
|
|
16245
16502
|
capabilities: AppCapabilities;
|
|
16503
|
+
/**
|
|
16504
|
+
* bundle 授权媒体模型集(S-G1;初始化即取,媒体工具装配自取的数据源——
|
|
16505
|
+
* 集成方零手配)。旧 api 无段 = 双空集如实。
|
|
16506
|
+
*/
|
|
16507
|
+
platformModels: AppBundlePlatformModels;
|
|
16246
16508
|
}
|
|
16247
16509
|
/**
|
|
16248
16510
|
* 令牌头注入 fetch 包装:剥 AK/SK 双头与签名三头(值只是占位哑值,但
|
|
@@ -16278,22 +16540,22 @@ declare function assemblePlatformModel(options: AssemblePlatformModelOptions): P
|
|
|
16278
16540
|
/** 生成张数 wire 帽(与网关 TwpImagegenRequestSchema 同值;超模型帽由网关再钳)。 */
|
|
16279
16541
|
declare const IMAGEGEN_TOOL_MAX_N = 4;
|
|
16280
16542
|
declare const ImageGenArgsSchema: z.ZodObject<{
|
|
16281
|
-
model: z.ZodString
|
|
16543
|
+
model: z.ZodOptional<z.ZodString>;
|
|
16282
16544
|
prompt: z.ZodEffects<z.ZodString, string, string>;
|
|
16283
16545
|
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
16284
16546
|
size: z.ZodOptional<z.ZodString>;
|
|
16285
16547
|
n: z.ZodOptional<z.ZodNumber>;
|
|
16286
16548
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
16287
16549
|
}, "strip", z.ZodTypeAny, {
|
|
16288
|
-
model: string;
|
|
16289
16550
|
prompt: string;
|
|
16551
|
+
model?: string | undefined;
|
|
16290
16552
|
size?: string | undefined;
|
|
16291
16553
|
n?: number | undefined;
|
|
16292
16554
|
negativePrompt?: string | undefined;
|
|
16293
16555
|
seed?: number | undefined;
|
|
16294
16556
|
}, {
|
|
16295
|
-
model: string;
|
|
16296
16557
|
prompt: string;
|
|
16558
|
+
model?: string | undefined;
|
|
16297
16559
|
size?: string | undefined;
|
|
16298
16560
|
n?: number | undefined;
|
|
16299
16561
|
negativePrompt?: string | undefined;
|
|
@@ -16317,6 +16579,13 @@ interface CreateImageGenToolOptions {
|
|
|
16317
16579
|
token: string;
|
|
16318
16580
|
/** fetch 注入缝(测试桩网关;缺省全局 fetch)。 */
|
|
16319
16581
|
fetchImpl?: typeof fetch;
|
|
16582
|
+
/**
|
|
16583
|
+
* 授权图像模型集(S-G1;bundle platformModels.imageGen,装配循环自取):
|
|
16584
|
+
* 工具描述自列(顺位第一 = model 缺省生效模型);空数组 = 平台未配置
|
|
16585
|
+
* (描述如实注明,恒不猜名);缺席 = 集未知(注入档直构/旧径),描述回落
|
|
16586
|
+
* 通用指引。
|
|
16587
|
+
*/
|
|
16588
|
+
models?: readonly AppBundleMediaModel[];
|
|
16320
16589
|
}
|
|
16321
16590
|
/**
|
|
16322
16591
|
* 环3 平台图像生成工具(kernel Tool 形态;name 'ImageGen' 沿 kernel PascalCase
|
|
@@ -16346,22 +16615,22 @@ declare function createImageGenTool(options: CreateImageGenToolOptions): Tool<Im
|
|
|
16346
16615
|
/** 时长 wire 帽(秒;与网关 TwpVideogenRequestSchema 同值;超模型帽由网关再钳)。 */
|
|
16347
16616
|
declare const VIDEOGEN_TOOL_MAX_DURATION = 30;
|
|
16348
16617
|
declare const VideoGenArgsSchema: z.ZodObject<{
|
|
16349
|
-
model: z.ZodString
|
|
16618
|
+
model: z.ZodOptional<z.ZodString>;
|
|
16350
16619
|
prompt: z.ZodEffects<z.ZodString, string, string>;
|
|
16351
16620
|
negativePrompt: z.ZodOptional<z.ZodString>;
|
|
16352
16621
|
duration: z.ZodOptional<z.ZodNumber>;
|
|
16353
16622
|
ratio: z.ZodOptional<z.ZodString>;
|
|
16354
16623
|
seed: z.ZodOptional<z.ZodNumber>;
|
|
16355
16624
|
}, "strip", z.ZodTypeAny, {
|
|
16356
|
-
model: string;
|
|
16357
16625
|
prompt: string;
|
|
16626
|
+
model?: string | undefined;
|
|
16358
16627
|
duration?: number | undefined;
|
|
16359
16628
|
negativePrompt?: string | undefined;
|
|
16360
16629
|
seed?: number | undefined;
|
|
16361
16630
|
ratio?: string | undefined;
|
|
16362
16631
|
}, {
|
|
16363
|
-
model: string;
|
|
16364
16632
|
prompt: string;
|
|
16633
|
+
model?: string | undefined;
|
|
16365
16634
|
duration?: number | undefined;
|
|
16366
16635
|
negativePrompt?: string | undefined;
|
|
16367
16636
|
seed?: number | undefined;
|
|
@@ -16387,6 +16656,13 @@ interface CreateVideoGenToolOptions {
|
|
|
16387
16656
|
token: string;
|
|
16388
16657
|
/** fetch 注入缝(测试桩网关;缺省全局 fetch)。 */
|
|
16389
16658
|
fetchImpl?: typeof fetch;
|
|
16659
|
+
/**
|
|
16660
|
+
* 授权视频模型集(S-G1;bundle platformModels.videoGen,装配循环自取):
|
|
16661
|
+
* 工具描述自列(顺位第一 = model 缺省生效模型);空数组 = 平台未配置
|
|
16662
|
+
* (描述如实注明,恒不猜名);缺席 = 集未知(注入档直构/旧径),描述回落
|
|
16663
|
+
* 通用指引。
|
|
16664
|
+
*/
|
|
16665
|
+
models?: readonly AppBundleMediaModel[];
|
|
16390
16666
|
}
|
|
16391
16667
|
/**
|
|
16392
16668
|
* 环3 平台视频生成工具(kernel Tool 形态;name 'VideoGen' 沿 kernel PascalCase
|
|
@@ -16396,60 +16672,30 @@ interface CreateVideoGenToolOptions {
|
|
|
16396
16672
|
declare function createVideoGenTool(options: CreateVideoGenToolOptions): Tool<VideoGenArgs>;
|
|
16397
16673
|
|
|
16398
16674
|
/**
|
|
16399
|
-
* S-
|
|
16400
|
-
*
|
|
16675
|
+
* S-WS2 — 平台联网搜索后端(kernel WebSearchProvider 实现;用户拍板 2026-08-31
|
|
16676
|
+
* 「SDK 恒不暴露 BYO 档,移除相关逻辑,内核态 WebSearch 直接走平台」)。
|
|
16401
16677
|
*
|
|
16402
|
-
*
|
|
16403
|
-
*
|
|
16404
|
-
*
|
|
16405
|
-
*
|
|
16678
|
+
* 形态注记(取代 S-WS 的环3 独立工具 'PlatformWebSearch'):SDK 里联网搜索恒
|
|
16679
|
+
* 一件工具 = kernel 环2 'WebSearch',后端恒为本 provider(平台通道)。BYO
|
|
16680
|
+
* (TANSR_WEBSEARCH_ENDPOINT/KEY 环境变量后端)在 SDK 装配面恒不存在——终端
|
|
16681
|
+
* 持搜索商密钥即 appkey 防盗模型要消灭的反模式;可解释可审计面恒在平台
|
|
16682
|
+
* (逐笔 usage_events、预扣结算闭环、endUserId 归因、失败零计费)。
|
|
16406
16683
|
*
|
|
16407
|
-
* wire 契约(api
|
|
16408
|
-
* {query, max_results
|
|
16409
|
-
*
|
|
16410
|
-
*
|
|
16684
|
+
* wire 契约(api TwpWebsearchRequest/Response,doc/36 §3.2):POST /t1/websearch
|
|
16685
|
+
* {query, max_results} snake_case;响应 {results:[{title,url,snippet}]}
|
|
16686
|
+
* (供应商方言已在网关归一;供应商身份恒匿名,doc/50 采购红线)。按次计量
|
|
16687
|
+
* 计费归 App(pricePerCall;开发者对终端如何转售自主,计量计费分离)。
|
|
16411
16688
|
*
|
|
16412
|
-
*
|
|
16413
|
-
*
|
|
16414
|
-
*
|
|
16415
|
-
*
|
|
16416
|
-
* 装配面:tools.platform: ['webSearch'] 且 bundle 能力位 platform.webSearch=true
|
|
16417
|
-
* 时由 buildSdkToolSet 装配(位关 fail-fast 可读错);材料(baseUrl/token)
|
|
16418
|
-
* 来自会话令牌档——托管/注入档选择本工具恒 fail-fast 指引改用令牌档。
|
|
16419
|
-
*
|
|
16420
|
-
* 错误纪律(imagegen 同款):恒不 throw——网关错误信封归一为 isError 结构化
|
|
16421
|
-
* 结果(携错误码与修复指引),智能体可自纠不炸查询环;令牌本体只活在闭包
|
|
16422
|
-
* (INV-10 密钥纪律)。数据主权注记:查询文本平台侧恒不落日志不落库(网关
|
|
16423
|
-
* 红线),SDK 侧同样恒不打印。
|
|
16689
|
+
* 错误纪律:WebSearchProvider 契约以 throw 表达失败——kernel search-tool 捕获
|
|
16690
|
+
* 转 provider_error 结构化错误(不炸查询环),错误消息携网关错误码与修复指引;
|
|
16691
|
+
* 令牌只活在闭包(INV-10),查询文本平台侧恒不落日志不落库(网关红线),SDK
|
|
16692
|
+
* 侧同样恒不打印。
|
|
16424
16693
|
*/
|
|
16425
16694
|
|
|
16426
|
-
/**
|
|
16427
|
-
declare const
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
max_results: z.ZodOptional<z.ZodNumber>;
|
|
16431
|
-
}, "strip", z.ZodTypeAny, {
|
|
16432
|
-
query: string;
|
|
16433
|
-
max_results?: number | undefined;
|
|
16434
|
-
}, {
|
|
16435
|
-
query: string;
|
|
16436
|
-
max_results?: number | undefined;
|
|
16437
|
-
}>;
|
|
16438
|
-
type WebSearchArgs = z.infer<typeof WebSearchArgsSchema>;
|
|
16439
|
-
/** 表面层渲染用结构化数据(ToolResult.data;错误时携错误码)。 */
|
|
16440
|
-
interface WebSearchData {
|
|
16441
|
-
query: string;
|
|
16442
|
-
results: Array<{
|
|
16443
|
-
title: string;
|
|
16444
|
-
url: string;
|
|
16445
|
-
snippet: string;
|
|
16446
|
-
}>;
|
|
16447
|
-
resultCount: number;
|
|
16448
|
-
/** 网关错误码(如 forbidden/websearch_not_configured/websearch_quota_exceeded;成功缺席)。 */
|
|
16449
|
-
errorCode?: string;
|
|
16450
|
-
}
|
|
16451
|
-
interface CreateWebSearchToolOptions {
|
|
16452
|
-
/** 平台 API 基址(令牌档会话档;/t1 前缀由本工具追加)。 */
|
|
16695
|
+
/** 后端名(进 kernel WebSearch 的 ToolResult.data.provider,供渲染与审计)。 */
|
|
16696
|
+
declare const PLATFORM_SEARCH_PROVIDER_NAME = "tansr-platform";
|
|
16697
|
+
interface CreatePlatformSearchProviderOptions {
|
|
16698
|
+
/** 平台 API 基址(令牌档会话档;/t1 前缀由本 provider 追加)。 */
|
|
16453
16699
|
baseUrl: string;
|
|
16454
16700
|
/** app_user 短期令牌(只活在本闭包,恒不进工具定义/日志)。 */
|
|
16455
16701
|
token: string;
|
|
@@ -16457,47 +16703,12 @@ interface CreateWebSearchToolOptions {
|
|
|
16457
16703
|
fetchImpl?: typeof fetch;
|
|
16458
16704
|
}
|
|
16459
16705
|
/**
|
|
16460
|
-
*
|
|
16461
|
-
*
|
|
16462
|
-
* (
|
|
16706
|
+
* 平台联网搜索 provider(kernel WebSearchProvider 契约):经令牌档 fetch 打
|
|
16707
|
+
* 平台网关,平台代调搜索供应商池(加权选池 + 故障转移),按次计费归 App。
|
|
16708
|
+
* 结果条目做最小映射(title/url 非字符串剔除,snippet 缺席补空串);上限
|
|
16709
|
+
* 截断、URL 卫生、去重恒由 kernel search-tool 层收口(不信任 provider 同律)。
|
|
16463
16710
|
*/
|
|
16464
|
-
declare function
|
|
16465
|
-
|
|
16466
|
-
/** bundle 内单模型条目(SDK 消费子集) */
|
|
16467
|
-
interface AppBundleModel {
|
|
16468
|
-
handle: string;
|
|
16469
|
-
modelId: string;
|
|
16470
|
-
displayName: string;
|
|
16471
|
-
/** 上游协议标识(信息位;消费恒走 twp,方言转换收敛在网关) */
|
|
16472
|
-
protocol: string;
|
|
16473
|
-
capabilities: Record<string, unknown>;
|
|
16474
|
-
contextWindow: number | null;
|
|
16475
|
-
}
|
|
16476
|
-
/** bundle-for-app 的 SDK 消费子集 */
|
|
16477
|
-
interface AppBundle {
|
|
16478
|
-
models: AppBundleModel[];
|
|
16479
|
-
aliases: Record<string, string>;
|
|
16480
|
-
/** App 能力位(doc/89 契约 2;段缺席/坏形状 = 平台缺省档) */
|
|
16481
|
-
capabilities: AppCapabilities;
|
|
16482
|
-
}
|
|
16483
|
-
/** 平台 provider 档名(与 cli TANSR_PROVIDER_ID 同值;registry 键与别名前缀) */
|
|
16484
|
-
declare const TANSR_PROVIDER_ID = "tansr";
|
|
16485
|
-
/**
|
|
16486
|
-
* 令牌档 registry 的 ApiKey 占位环境变量(readApiKey 非空校验的哑值通道;
|
|
16487
|
-
* 真实鉴权头由 createAppTokenFetch 包装覆写,令牌恒不进 registry env)。
|
|
16488
|
-
*/
|
|
16489
|
-
declare const APP_TOKEN_PLACEHOLDER_ENV = "TANSR_SDK_APP_TOKEN_TIER";
|
|
16490
|
-
/**
|
|
16491
|
-
* bundle 载荷 → SDK 消费子集。顶层形状非法返回 null(调用方结构化报错);
|
|
16492
|
-
* 条目级损坏逐条跳过。capabilities 段严格校验,失败回落平台缺省档
|
|
16493
|
-
* (fail-closed 方向:缺省档保守)。
|
|
16494
|
-
*/
|
|
16495
|
-
declare function parseAppBundle(raw: unknown): AppBundle | null;
|
|
16496
|
-
/**
|
|
16497
|
-
* bundle → 令牌档 RegistryConfig:单一 tansr 档(twp/1,占位鉴权变量)+
|
|
16498
|
-
* 别名表(目录裸名自动别名最低层,显式 aliases 压过)。恒零本地配置 IO。
|
|
16499
|
-
*/
|
|
16500
|
-
declare function appBundleRegistryConfig(bundle: AppBundle, baseUrl: string): RegistryConfig;
|
|
16711
|
+
declare function createPlatformSearchProvider(options: CreatePlatformSearchProviderOptions): WebSearchProvider;
|
|
16501
16712
|
|
|
16502
16713
|
interface CreateSdkPermissionGateOptions {
|
|
16503
16714
|
/** 权限规则的路径锚定目录;必须与 executor 的 cwd 一致 */
|
|
@@ -16527,5 +16738,5 @@ declare function attachSdkTaskTool(toolset: SdkToolsetRef, config: AttachSdkTask
|
|
|
16527
16738
|
*/
|
|
16528
16739
|
declare function subagentModelResolverOf(registry: ProviderRegistry | null): SubagentModelResolver | undefined;
|
|
16529
16740
|
|
|
16530
|
-
export { APP_SDK_CONTRACT_VERSION, APP_TOKEN_PLACEHOLDER_ENV, AgentSession, AppCapabilitiesSchema, AppTokenRequestSchema, AppTokenResponseSchema, DEFAULT_APP_CAPABILITIES, DEFAULT_MAX_TOKENS, DEFAULT_MAX_TURNS, EndUserIdSchema, HEADER_APP_TOKEN, IMAGEGEN_TOOL_MAX_N, ImageGenArgsSchema, McpHost, OUTPUT_TAIL_MAX_CHARS, QueueChannel, SequentialToolExecutor, TANSR_PROVIDER_ID, TOOL_GUIDE_LABEL, TansrSdkError, UnavailableChannel, VIDEOGEN_TOOL_MAX_DURATION, VideoGenArgsSchema,
|
|
16531
|
-
export type { ActiveToolStatus, Answer, AppBundle, AppBundleModel, AppCapabilities, AppTokenRequest, AppTokenResponse, AskUserCallback, AssembleManagedModelOptions, AssemblePlatformModelOptions, AssembleToolingOptions, AssembledManagedModel, AssembledPlatformModel, AssembledSkills, AssembledTooling, AttachSdkTaskToolConfig, BuildSdkToolSetOptions, BuiltinToolName, Capability, CompactNowOptions, CompactNowResult, ConfigDiagnostic, CreateImageGenToolOptions, CreateSdkPermissionGateOptions, CreateSessionOptions, CreateVideoGenToolOptions,
|
|
16741
|
+
export { APP_SDK_CONTRACT_VERSION, APP_TOKEN_PLACEHOLDER_ENV, AgentSession, AppCapabilitiesSchema, AppTokenRequestSchema, AppTokenResponseSchema, DEFAULT_APP_CAPABILITIES, DEFAULT_MAX_TOKENS, DEFAULT_MAX_TURNS, EndUserIdSchema, HEADER_APP_TOKEN, IMAGEGEN_TOOL_MAX_N, ImageGenArgsSchema, McpHost, OUTPUT_TAIL_MAX_CHARS, PLATFORM_SEARCH_PROVIDER_NAME, QueueChannel, SequentialToolExecutor, TANSR_PROVIDER_ID, TOOL_GUIDE_LABEL, TansrSdkError, UnavailableChannel, VIDEOGEN_TOOL_MAX_DURATION, VideoGenArgsSchema, accumulateUsage, appBundleRegistryConfig, appendUserMessage, assembleManagedModel, assemblePlatformModel, assembleSdkSkills, assembleTooling, attachSdkMcp, attachSdkTaskTool, buildClientFromRegistry, buildSdkToolSet, buildToolGuideSegment, createAppTokenFetch, createFileSessionStore, createImageGenTool, createMcpHost, createNarrator, createPlatformSearchProvider, createSdkPermissionGate, createSession, createSessionView, createVideoGenTool, defineSkill, defineTool, initialSessionViewState, markSourceFailure, parseAppBundle, providerSwitchedBody, query, reduceSessionView, resolveBuiltinSelection, resolveInitialMessages, resolvePlatformSelection, runAgent, subagentModelResolverOf, toToolDef, viewStateFromHistory };
|
|
16742
|
+
export type { ActiveToolStatus, Answer, AppBundle, AppBundleMediaModel, AppBundleModel, AppBundlePlatformModels, AppCapabilities, AppTokenRequest, AppTokenResponse, AskUserCallback, AssembleManagedModelOptions, AssemblePlatformModelOptions, AssembleToolingOptions, AssembledManagedModel, AssembledPlatformModel, AssembledSkills, AssembledTooling, AttachSdkTaskToolConfig, BuildSdkToolSetOptions, BuiltinToolName, Capability, CompactNowOptions, CompactNowResult, ConfigDiagnostic, CreateFileSessionStoreOptions, CreateImageGenToolOptions, CreatePlatformSearchProviderOptions, CreateSdkPermissionGateOptions, CreateSessionOptions, CreateVideoGenToolOptions, DecisionSource, DefineSkillOptions, DefineToolOptions, DefinedSkill, DefinedTool, ErrorView, EventBody, EventEnvelope, GateDecision, HistoryCommitMeta, HookOutcomeStatus, IRBlock, IRErrorKind, IRMessage, IRRequest, IRRole, IRStreamEvent, IRSystemSegment, IRToolContent, IRToolDef, IRToolResultBlock, IRUsage, ImageGenArgs, ImageGenData, Integrity, JournalKind, JournalRecord, KernelEvent, KernelState, LoadConfigOptions, LoadedConfig, ManagedQueryOptions, McpClientEvent, McpConnectFactory, McpConnection, McpEventObserver, McpHostOptions, McpServerConfig, McpSessionOption, ModelCallOptions, ModelClient, Narrator, NarratorOptions, NarratorVerbosity, PermissionDecision, PermissionGate, PermissionMode, PermissionOptions, PermissionRules, PlatformCapabilityName, PlatformToolContext, Pricing, PromptCachingMode, PromptChannel, ProposedToolCall, ProtocolKind, ProviderProfile, QueryCompactionOptions, QueryCounters, QueryHandle, QueryOptions, QueryResult, Question, QuestionOption, ResolvedModel, RunAgentOptions, SdkErrorCode, SdkSkillsOptions, SdkToolSet, SdkToolsOptions, SdkToolsetRef, SequentialToolHandler, SequentialToolResult, SessionEventSource, SessionRecord, SessionRecordMeta, SessionStore, SessionStoreCommitMeta, SessionStoreCreateInit, SessionView, SessionViewReducerState, SessionViewSource, SessionViewState, SessionViewStatus, SetModelBinding, SkillsFileSystem, TansrConfig, TerminalReason, TodoView, Tool, ToolCallPartStatus, ToolCallView, ToolContext, ToolErrorType, ToolExecutionContext, ToolExecutionOutcome, ToolExecutor, ToolExecutorYield, ToolParameterSpec, ToolResult, ToolResultContent, UIMessage, UIMessagePart, UITextPart, UIThinkingPart, UIToolCallPart, UsageView, VideoGenArgs, VideoGenData, Visibility };
|