@world-engines/agent-kit 0.1.0-alpha.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.
Files changed (77) hide show
  1. package/LICENSE +46 -0
  2. package/assets/README.md +58 -0
  3. package/assets/docs/development/README.md +25 -0
  4. package/assets/docs/development/authoring-bridge.md +52 -0
  5. package/assets/docs/development/authoring-workflows.md +48 -0
  6. package/assets/docs/development/chatplay-view.md +111 -0
  7. package/assets/docs/development/cli.md +145 -0
  8. package/assets/docs/development/desktop-transfer-security.md +46 -0
  9. package/assets/docs/development/generated/authoring-bridge-contract.json +598 -0
  10. package/assets/docs/development/generated/authoring-bridge-contract.md +660 -0
  11. package/assets/docs/development/generated/chatplay-sdk/SOURCE.json +10 -0
  12. package/assets/docs/development/generated/chatplay-sdk/chatplay-sdk.d.ts +309 -0
  13. package/assets/docs/development/generated/chatplay-sdk/descriptor.json +699 -0
  14. package/assets/docs/development/generated/chatplay-sdk/descriptor.md +363 -0
  15. package/assets/docs/development/installation-and-structure.md +70 -0
  16. package/assets/docs/development/local-gui.md +94 -0
  17. package/assets/docs/development/scene-authoring.md +74 -0
  18. package/assets/guides/long-form-ladybug-trigger.md +98 -0
  19. package/assets/launchers/worldengine-codex.ps1 +105 -0
  20. package/assets/launchers/worldengine-mcp.cmd +5 -0
  21. package/assets/launchers/worldengine-npm.cjs +18 -0
  22. package/assets/launchers/worldengine.cmd +39 -0
  23. package/assets/prompts/local-author-system.md +40 -0
  24. package/assets/skills/caveman/LICENSE.md +13 -0
  25. package/assets/skills/caveman/SKILL.md +50 -0
  26. package/assets/skills/caveman/SOURCE.md +9 -0
  27. package/assets/skills/diagnose/SKILL.md +118 -0
  28. package/assets/skills/diagnose/SOURCE.md +3 -0
  29. package/assets/skills/diagnose/scripts/hitl-loop.template.sh +41 -0
  30. package/assets/skills/i-have-adhd/LICENSE.md +9 -0
  31. package/assets/skills/i-have-adhd/SKILL.md +139 -0
  32. package/assets/skills/i-have-adhd/SOURCE.md +9 -0
  33. package/assets/skills/i-have-adhd/agents/gemini.toml +24 -0
  34. package/assets/skills/i-have-adhd/agents/openai.yaml +7 -0
  35. package/assets/skills/improve-codebase-architecture/DEEPENING.md +37 -0
  36. package/assets/skills/improve-codebase-architecture/INTERFACE-DESIGN.md +44 -0
  37. package/assets/skills/improve-codebase-architecture/LANGUAGE.md +53 -0
  38. package/assets/skills/improve-codebase-architecture/SKILL.md +72 -0
  39. package/assets/skills/improve-codebase-architecture/SOURCE.md +3 -0
  40. package/assets/skills/lossless-document-authoring/SKILL.md +45 -0
  41. package/assets/skills/lossless-document-authoring/references/d4f-workflow.md +155 -0
  42. package/assets/skills/platform-conversion/SKILL.md +23 -0
  43. package/assets/skills/platform-conversion/references/scenario-conversion.md +17 -0
  44. package/assets/skills/platform-conversion/references/view-conversion.md +19 -0
  45. package/assets/skills/setup-matt-pocock-skills/LICENSE.md +9 -0
  46. package/assets/skills/setup-matt-pocock-skills/SKILL.md +122 -0
  47. package/assets/skills/setup-matt-pocock-skills/SOURCE.md +11 -0
  48. package/assets/skills/setup-matt-pocock-skills/domain.md +51 -0
  49. package/assets/skills/setup-matt-pocock-skills/issue-tracker-github.md +22 -0
  50. package/assets/skills/setup-matt-pocock-skills/issue-tracker-gitlab.md +23 -0
  51. package/assets/skills/setup-matt-pocock-skills/issue-tracker-local.md +19 -0
  52. package/assets/skills/setup-matt-pocock-skills/triage-labels.md +15 -0
  53. package/assets/skills/tdd/SKILL.md +110 -0
  54. package/assets/skills/tdd/SOURCE.md +3 -0
  55. package/assets/skills/tdd/deep-modules.md +33 -0
  56. package/assets/skills/tdd/interface-design.md +31 -0
  57. package/assets/skills/tdd/mocking.md +59 -0
  58. package/assets/skills/tdd/refactoring.md +10 -0
  59. package/assets/skills/tdd/tests.md +61 -0
  60. package/assets/skills/to-issues/SKILL.md +90 -0
  61. package/assets/skills/to-issues/SOURCE.md +3 -0
  62. package/assets/skills/to-prd/SKILL.md +77 -0
  63. package/assets/skills/to-prd/SOURCE.md +3 -0
  64. package/assets/skills/triage/AGENT-BRIEF.md +168 -0
  65. package/assets/skills/triage/OUT-OF-SCOPE.md +101 -0
  66. package/assets/skills/triage/SKILL.md +104 -0
  67. package/assets/skills/triage/SOURCE.md +3 -0
  68. package/assets/skills/zoom-out/SKILL.md +8 -0
  69. package/assets/skills/zoom-out/SOURCE.md +3 -0
  70. package/assets/skills-disabled/chat-authority-recovery/SKILL.md +8 -0
  71. package/assets/skills-disabled/codepicker/SKILL.md +8 -0
  72. package/assets/skills-disabled/pacemaker/SKILL.md +8 -0
  73. package/assets/skills-disabled/project-spec-ticket-orchestration/SKILL.md +8 -0
  74. package/assets/skills-disabled/release-deployment-auditor/SKILL.md +8 -0
  75. package/dist/index.d.ts +132 -0
  76. package/dist/index.js +382 -0
  77. package/package.json +51 -0
@@ -0,0 +1,699 @@
1
+ {
2
+ "version": "3.1",
3
+ "runtimeReleaseId": "runtime-3-1",
4
+ "runtimeMajor": 3,
5
+ "runtimePatch": 1,
6
+ "protocolVersion": 3,
7
+ "sdkSchemaVersion": 3,
8
+ "capabilitiesShapeVersion": 3,
9
+ "headerSentinel": "ChatPlay SDK 接口描述",
10
+ "viewSurface": [
11
+ {
12
+ "name": "ready",
13
+ "kind": "property",
14
+ "paramsType": "N/A (property)",
15
+ "returnType": "Promise<{ scriptId: string; saveId: string; locale: string; theme: ThemeSnapshot; capabilities: SdkCapabilities }>",
16
+ "jsDoc": "同步握手 Promise 入口必先 await window.ChatPlay.ready 完成后才能调任何 wrapper",
17
+ "hostUiDomain": false
18
+ },
19
+ {
20
+ "name": "context",
21
+ "kind": "method",
22
+ "paramsType": "()",
23
+ "returnType": "{ scriptId: string; saveId: string; locale: string; theme: ThemeSnapshot; capabilities: SdkCapabilities } | null",
24
+ "jsDoc": "同步取当前握手 context ready 之前返回 null",
25
+ "hostUiDomain": false
26
+ },
27
+ {
28
+ "name": "listMessages",
29
+ "kind": "method",
30
+ "paramsType": "(opts?: { after?: string; before?: string; limit?: number })",
31
+ "returnType": "Promise<PersistedListItem[]>",
32
+ "jsDoc": "拉当前 save 持久化消息列表 支持 after/before 切片与 limit 截断",
33
+ "hostUiDomain": false
34
+ },
35
+ {
36
+ "name": "sendUserMessage",
37
+ "kind": "method",
38
+ "paramsType": "(text: string)",
39
+ "returnType": "Promise<{ messageId: string; turnId: string }>",
40
+ "jsDoc": "通过宿主受控 chat.sendUserMessage 发送非空 user 消息;不暴露底层 RPC",
41
+ "hostUiDomain": false
42
+ },
43
+ {
44
+ "name": "listAssets",
45
+ "kind": "method",
46
+ "paramsType": "()",
47
+ "returnType": "Promise<Array<{ id: string; url: string; size: number; mime: string; filename: string; scriptId: string; createdTs: number }>>",
48
+ "jsDoc": "列出当前 script 名下所有资产",
49
+ "hostUiDomain": false
50
+ },
51
+ {
52
+ "name": "getAssetUrl",
53
+ "kind": "method",
54
+ "paramsType": "(id: string)",
55
+ "returnType": "Promise<string>",
56
+ "jsDoc": "把 asset id 解析成运行时可访问 URL (blob:)",
57
+ "hostUiDomain": false
58
+ },
59
+ {
60
+ "name": "loadCustomState",
61
+ "kind": "method",
62
+ "paramsType": "(key: string)",
63
+ "returnType": "Promise<unknown>",
64
+ "jsDoc": "读 view 端自定义状态 缺省 key 返回 undefined",
65
+ "hostUiDomain": false
66
+ },
67
+ {
68
+ "name": "listCustomStateKeys",
69
+ "kind": "method",
70
+ "paramsType": "()",
71
+ "returnType": "Promise<string[]>",
72
+ "jsDoc": "列出当前 save 下所有 custom state key",
73
+ "hostUiDomain": false
74
+ },
75
+ {
76
+ "name": "customState",
77
+ "kind": "property",
78
+ "paramsType": "N/A (property)",
79
+ "returnType": "ReadonlyCustomStateApi",
80
+ "jsDoc": "按当前 view 作用域只读查询自定义状态;写入、删除和批量提交不暴露给 TMW3 view",
81
+ "hostUiDomain": false
82
+ },
83
+ {
84
+ "name": "events",
85
+ "kind": "property",
86
+ "paramsType": "N/A (property; emit(eventType: string, payload: Readonly<Record<string, TmwViewJsonValue>>, interactionId: string))",
87
+ "returnType": "TmwViewEventsApi { emit(eventType: string, payload: Readonly<Record<string, TmwViewJsonValue>>, interactionId: string): TmwViewEventEmitReceipt }",
88
+ "jsDoc": "TMW3 view interaction capability;仅可提交 manifest 预声明 eventType,返回 interactionId 与 nonce 回执;最终激活结果通过 interactionResult 事件异步回传,不生成或扩大宿主权限",
89
+ "hostUiDomain": false
90
+ },
91
+ {
92
+ "name": "worldline",
93
+ "kind": "property",
94
+ "paramsType": "N/A (property)",
95
+ "returnType": "ReadonlyPlayerWorldlines",
96
+ "jsDoc": "TMW3 same-Save worldline API. Scope is host-derived; no Save identifier is accepted or returned.",
97
+ "hostUiDomain": false
98
+ },
99
+ {
100
+ "name": "getScenarioMeta",
101
+ "kind": "method",
102
+ "paramsType": "()",
103
+ "returnType": "Promise<{ scriptId: string; title: string; schemaVersion: number }>",
104
+ "jsDoc": "取当前剧本元信息",
105
+ "hostUiDomain": false
106
+ },
107
+ {
108
+ "name": "getProgress",
109
+ "kind": "method",
110
+ "paramsType": "()",
111
+ "returnType": "Promise<number>",
112
+ "jsDoc": "取进度比 0..1",
113
+ "hostUiDomain": false
114
+ },
115
+ {
116
+ "name": "getVariable",
117
+ "kind": "method",
118
+ "paramsType": "(name: string)",
119
+ "returnType": "Promise<unknown>",
120
+ "jsDoc": "读取当前 save 的触发器变量;scope 由宿主固定为 save,View 不可改写",
121
+ "hostUiDomain": false
122
+ },
123
+ {
124
+ "name": "getUnlock",
125
+ "kind": "method",
126
+ "paramsType": "(target: \"node\" | \"edge\", id: string)",
127
+ "returnType": "Promise<{ unlocked: boolean }>",
128
+ "jsDoc": "读取当前 save 中指定节点或边的触发器解锁状态",
129
+ "hostUiDomain": false
130
+ },
131
+ {
132
+ "name": "getOwnedResources",
133
+ "kind": "method",
134
+ "paramsType": "()",
135
+ "returnType": "Promise<OwnedResourceGroup[]>",
136
+ "jsDoc": "返回当前已解锁资源 按节点和属性锚点分组",
137
+ "hostUiDomain": false
138
+ },
139
+ {
140
+ "name": "openModelSettings",
141
+ "kind": "method",
142
+ "paramsType": "()",
143
+ "returnType": "Promise<{ ok: true }>",
144
+ "jsDoc": "请求宿主打开模型设置面板;只返回是否接受意图,不读取或返回任何配置",
145
+ "hostUiDomain": false
146
+ },
147
+ {
148
+ "name": "getLocale",
149
+ "kind": "method",
150
+ "paramsType": "()",
151
+ "returnType": "Promise<string>",
152
+ "jsDoc": "取当前 UI locale (zh / en / ja)",
153
+ "hostUiDomain": false
154
+ },
155
+ {
156
+ "name": "getTheme",
157
+ "kind": "method",
158
+ "paramsType": "()",
159
+ "returnType": "Promise<ThemeSnapshot>",
160
+ "jsDoc": "只读获取宿主主题选择和当前解析后的明暗配色",
161
+ "hostUiDomain": false
162
+ },
163
+ {
164
+ "name": "runtimeVersion",
165
+ "kind": "method",
166
+ "paramsType": "()",
167
+ "returnType": "{ major: number; patch: number }",
168
+ "jsDoc": "同步返回 SDK runtime 版本号",
169
+ "hostUiDomain": false
170
+ },
171
+ {
172
+ "name": "on",
173
+ "kind": "method",
174
+ "paramsType": "(event: ChatPlayEvent, listener: (payload: unknown) => void)",
175
+ "returnType": "() => void",
176
+ "jsDoc": "订阅 SDK 事件 返回取消订阅函数;interactionResult 只关联本 iframe 的 interactionId/nonce,不暴露 committed event envelope、capability 或原始错误;tmwDelivery 不参与互动结果关联",
177
+ "hostUiDomain": false
178
+ }
179
+ ],
180
+ "hostOnly": [
181
+ {
182
+ "key": "chat.editMessage",
183
+ "paramsType": "unknown",
184
+ "paramsInferred": "{ id: string; content: string }",
185
+ "returnType": "Promise<WorldlineEditResult & { streamId?: string; }>",
186
+ "jsDoc": "",
187
+ "hostOnly": true,
188
+ "saveReserved": false
189
+ },
190
+ {
191
+ "key": "chat.rewindToMessage",
192
+ "paramsType": "unknown",
193
+ "paramsInferred": "{ id: string }",
194
+ "returnType": "Promise<WorldlineRewindResult>",
195
+ "jsDoc": "",
196
+ "hostOnly": true,
197
+ "saveReserved": false
198
+ },
199
+ {
200
+ "key": "chat.forkAtMessage",
201
+ "paramsType": "unknown",
202
+ "paramsInferred": "{ id: string; title: string }",
203
+ "returnType": "Promise<WorldlineForkResult>",
204
+ "jsDoc": "",
205
+ "hostOnly": true,
206
+ "saveReserved": false
207
+ },
208
+ {
209
+ "key": "chat.cloneFullSave",
210
+ "paramsType": "unknown",
211
+ "paramsInferred": null,
212
+ "returnType": "Promise<CloneFullSaveResult>",
213
+ "jsDoc": "",
214
+ "hostOnly": true,
215
+ "saveReserved": false
216
+ }
217
+ ],
218
+ "saveReserved": [
219
+ {
220
+ "key": "save.list",
221
+ "paramsType": "unknown",
222
+ "paramsInferred": null,
223
+ "returnType": "Promise<unknown>",
224
+ "jsDoc": "",
225
+ "hostOnly": false,
226
+ "saveReserved": true
227
+ },
228
+ {
229
+ "key": "save.create",
230
+ "paramsType": "unknown",
231
+ "paramsInferred": null,
232
+ "returnType": "Promise<unknown>",
233
+ "jsDoc": "",
234
+ "hostOnly": false,
235
+ "saveReserved": true
236
+ },
237
+ {
238
+ "key": "save.delete",
239
+ "paramsType": "unknown",
240
+ "paramsInferred": null,
241
+ "returnType": "Promise<unknown>",
242
+ "jsDoc": "",
243
+ "hostOnly": false,
244
+ "saveReserved": true
245
+ },
246
+ {
247
+ "key": "save.rename",
248
+ "paramsType": "unknown",
249
+ "paramsInferred": null,
250
+ "returnType": "Promise<unknown>",
251
+ "jsDoc": "",
252
+ "hostOnly": false,
253
+ "saveReserved": true
254
+ },
255
+ {
256
+ "key": "save.load",
257
+ "paramsType": "unknown",
258
+ "paramsInferred": null,
259
+ "returnType": "Promise<unknown>",
260
+ "jsDoc": "",
261
+ "hostOnly": false,
262
+ "saveReserved": true
263
+ },
264
+ {
265
+ "key": "save.export",
266
+ "paramsType": "unknown",
267
+ "paramsInferred": null,
268
+ "returnType": "Promise<unknown>",
269
+ "jsDoc": "",
270
+ "hostOnly": false,
271
+ "saveReserved": true
272
+ }
273
+ ],
274
+ "lowLevel": [
275
+ {
276
+ "key": "system.ready",
277
+ "paramsType": "unknown",
278
+ "paramsInferred": null,
279
+ "returnType": "Promise<{ scriptId: string; saveId: string; locale: Lang; theme: ThemeSnapshot; capabilities: SdkCapabilities; }>",
280
+ "jsDoc": "",
281
+ "hostOnly": false,
282
+ "saveReserved": false
283
+ },
284
+ {
285
+ "key": "system.getLocale",
286
+ "paramsType": "void",
287
+ "paramsInferred": null,
288
+ "returnType": "Promise<Lang>",
289
+ "jsDoc": "",
290
+ "hostOnly": false,
291
+ "saveReserved": false
292
+ },
293
+ {
294
+ "key": "system.getTheme",
295
+ "paramsType": "void",
296
+ "paramsInferred": null,
297
+ "returnType": "Promise<ThemeSnapshot>",
298
+ "jsDoc": "",
299
+ "hostOnly": false,
300
+ "saveReserved": false
301
+ },
302
+ {
303
+ "key": "chat.listMessages",
304
+ "paramsType": "unknown",
305
+ "paramsInferred": "{ after: string; before: string; limit: number }",
306
+ "returnType": "Promise<Message[]>",
307
+ "jsDoc": "",
308
+ "hostOnly": false,
309
+ "saveReserved": false
310
+ },
311
+ {
312
+ "key": "chat.sendUserMessage",
313
+ "paramsType": "unknown",
314
+ "paramsInferred": "{ text: string; meta: Record<string, unknown>; visibility: unknown; abortPending: unknown }",
315
+ "returnType": "Promise<{ userMessageId: string; streamId: string; assistantMessageId: string; turnId: string; extractionMessageId: string; }>",
316
+ "jsDoc": "",
317
+ "hostOnly": false,
318
+ "saveReserved": false
319
+ },
320
+ {
321
+ "key": "chat.abort",
322
+ "paramsType": "unknown",
323
+ "paramsInferred": "{ streamId: string; reason: string }",
324
+ "returnType": "Promise<{ ok: boolean; }>",
325
+ "jsDoc": "",
326
+ "hostOnly": false,
327
+ "saveReserved": false
328
+ },
329
+ {
330
+ "key": "chat.editMessage",
331
+ "paramsType": "unknown",
332
+ "paramsInferred": "{ id: string; content: string }",
333
+ "returnType": "Promise<WorldlineEditResult & { streamId?: string; }>",
334
+ "jsDoc": "",
335
+ "hostOnly": true,
336
+ "saveReserved": false
337
+ },
338
+ {
339
+ "key": "chat.deleteMessage",
340
+ "paramsType": "void",
341
+ "paramsInferred": null,
342
+ "returnType": "Promise<never>",
343
+ "jsDoc": "",
344
+ "hostOnly": false,
345
+ "saveReserved": false
346
+ },
347
+ {
348
+ "key": "chat.rewindToMessage",
349
+ "paramsType": "unknown",
350
+ "paramsInferred": "{ id: string }",
351
+ "returnType": "Promise<WorldlineRewindResult>",
352
+ "jsDoc": "",
353
+ "hostOnly": true,
354
+ "saveReserved": false
355
+ },
356
+ {
357
+ "key": "chat.forkAtMessage",
358
+ "paramsType": "unknown",
359
+ "paramsInferred": "{ id: string; title: string }",
360
+ "returnType": "Promise<WorldlineForkResult>",
361
+ "jsDoc": "",
362
+ "hostOnly": true,
363
+ "saveReserved": false
364
+ },
365
+ {
366
+ "key": "chat.cloneFullSave",
367
+ "paramsType": "unknown",
368
+ "paramsInferred": null,
369
+ "returnType": "Promise<CloneFullSaveResult>",
370
+ "jsDoc": "",
371
+ "hostOnly": true,
372
+ "saveReserved": false
373
+ },
374
+ {
375
+ "key": "chat.regenerate",
376
+ "paramsType": "unknown",
377
+ "paramsInferred": "{ assistantMessageId: string }",
378
+ "returnType": "Promise<WorldlineRegenerateResult & { streamId: string; }>",
379
+ "jsDoc": "",
380
+ "hostOnly": false,
381
+ "saveReserved": false
382
+ },
383
+ {
384
+ "key": "chat.retryPersistence",
385
+ "paramsType": "unknown",
386
+ "paramsInferred": null,
387
+ "returnType": "Promise<{ status: string; turnId: string; }>",
388
+ "jsDoc": "",
389
+ "hostOnly": false,
390
+ "saveReserved": false
391
+ },
392
+ {
393
+ "key": "save.list",
394
+ "paramsType": "unknown",
395
+ "paramsInferred": null,
396
+ "returnType": "Promise<unknown>",
397
+ "jsDoc": "",
398
+ "hostOnly": false,
399
+ "saveReserved": true
400
+ },
401
+ {
402
+ "key": "save.create",
403
+ "paramsType": "unknown",
404
+ "paramsInferred": null,
405
+ "returnType": "Promise<unknown>",
406
+ "jsDoc": "",
407
+ "hostOnly": false,
408
+ "saveReserved": true
409
+ },
410
+ {
411
+ "key": "save.delete",
412
+ "paramsType": "unknown",
413
+ "paramsInferred": null,
414
+ "returnType": "Promise<unknown>",
415
+ "jsDoc": "",
416
+ "hostOnly": false,
417
+ "saveReserved": true
418
+ },
419
+ {
420
+ "key": "save.rename",
421
+ "paramsType": "unknown",
422
+ "paramsInferred": null,
423
+ "returnType": "Promise<unknown>",
424
+ "jsDoc": "",
425
+ "hostOnly": false,
426
+ "saveReserved": true
427
+ },
428
+ {
429
+ "key": "save.load",
430
+ "paramsType": "unknown",
431
+ "paramsInferred": null,
432
+ "returnType": "Promise<unknown>",
433
+ "jsDoc": "",
434
+ "hostOnly": false,
435
+ "saveReserved": true
436
+ },
437
+ {
438
+ "key": "save.export",
439
+ "paramsType": "unknown",
440
+ "paramsInferred": null,
441
+ "returnType": "Promise<unknown>",
442
+ "jsDoc": "",
443
+ "hostOnly": false,
444
+ "saveReserved": true
445
+ },
446
+ {
447
+ "key": "state.get",
448
+ "paramsType": "unknown",
449
+ "paramsInferred": "{ key: string }",
450
+ "returnType": "Promise<unknown>",
451
+ "jsDoc": "",
452
+ "hostOnly": false,
453
+ "saveReserved": false
454
+ },
455
+ {
456
+ "key": "state.getEntry",
457
+ "paramsType": "unknown",
458
+ "paramsInferred": "{ key: string }",
459
+ "returnType": "Promise<CustomStateEntry | undefined>",
460
+ "jsDoc": "",
461
+ "hostOnly": false,
462
+ "saveReserved": false
463
+ },
464
+ {
465
+ "key": "state.set",
466
+ "paramsType": "unknown",
467
+ "paramsInferred": "{ key: string; scope: unknown; authorizedUserIds: unknown; value: unknown }",
468
+ "returnType": "Promise<{ ok: boolean; generation: number; }>",
469
+ "jsDoc": "",
470
+ "hostOnly": false,
471
+ "saveReserved": false
472
+ },
473
+ {
474
+ "key": "state.delete",
475
+ "paramsType": "unknown",
476
+ "paramsInferred": "{ key: string }",
477
+ "returnType": "Promise<{ ok: boolean; generation: number; }>",
478
+ "jsDoc": "",
479
+ "hostOnly": false,
480
+ "saveReserved": false
481
+ },
482
+ {
483
+ "key": "state.keys",
484
+ "paramsType": "unknown",
485
+ "paramsInferred": null,
486
+ "returnType": "Promise<readonly string[]>",
487
+ "jsDoc": "",
488
+ "hostOnly": false,
489
+ "saveReserved": false
490
+ },
491
+ {
492
+ "key": "state.commitBatch",
493
+ "paramsType": "unknown",
494
+ "paramsInferred": "{ idempotencyKey: string; mutations: unknown[]; expectedGeneration: unknown }",
495
+ "returnType": "Promise<CustomStateCommitResult>",
496
+ "jsDoc": "",
497
+ "hostOnly": false,
498
+ "saveReserved": false
499
+ },
500
+ {
501
+ "key": "state.requestCheckpoint",
502
+ "paramsType": "unknown",
503
+ "paramsInferred": null,
504
+ "returnType": "Promise<{ generation: number; entryCount: number; }>",
505
+ "jsDoc": "",
506
+ "hostOnly": false,
507
+ "saveReserved": false
508
+ },
509
+ {
510
+ "key": "asset.upload",
511
+ "paramsType": "unknown",
512
+ "paramsInferred": "{ data: string; filename: string; mime: string }",
513
+ "returnType": "Promise<{ url: string; id: string; scriptId: string; saveId: string; sha256: string; r2Key: string; uri: string; cloudRefVerified: boolean; eventSeq: number | null; filename: string; mime: string; size: number; createdTs: number; }>",
514
+ "jsDoc": "",
515
+ "hostOnly": false,
516
+ "saveReserved": false
517
+ },
518
+ {
519
+ "key": "asset.list",
520
+ "paramsType": "unknown",
521
+ "paramsInferred": null,
522
+ "returnType": "Promise<{ url: string; id: string; scriptId: string; saveId: string; sha256: string; r2Key: string; uri: string; cloudRefVerified: boolean; eventSeq: number | null; filename: string; mime: string; size: number; createdTs: number; }[]>",
523
+ "jsDoc": "",
524
+ "hostOnly": false,
525
+ "saveReserved": false
526
+ },
527
+ {
528
+ "key": "asset.delete",
529
+ "paramsType": "unknown",
530
+ "paramsInferred": "{ id: string }",
531
+ "returnType": "Promise<{ ok: boolean; }>",
532
+ "jsDoc": "",
533
+ "hostOnly": false,
534
+ "saveReserved": false
535
+ },
536
+ {
537
+ "key": "asset.getUrl",
538
+ "paramsType": "unknown",
539
+ "paramsInferred": "{ id: string }",
540
+ "returnType": "Promise<string>",
541
+ "jsDoc": "",
542
+ "hostOnly": false,
543
+ "saveReserved": false
544
+ },
545
+ {
546
+ "key": "scenario.getVariable",
547
+ "paramsType": "unknown",
548
+ "paramsInferred": "{ name: string; scope: unknown }",
549
+ "returnType": "Promise<TmwVariableV1>",
550
+ "jsDoc": "",
551
+ "hostOnly": false,
552
+ "saveReserved": false
553
+ },
554
+ {
555
+ "key": "scenario.getUnlock",
556
+ "paramsType": "unknown",
557
+ "paramsInferred": "{ id: string; target: unknown }",
558
+ "returnType": "Promise<{ unlocked: boolean; }>",
559
+ "jsDoc": "",
560
+ "hostOnly": false,
561
+ "saveReserved": false
562
+ },
563
+ {
564
+ "key": "scenario.getMeta",
565
+ "paramsType": "unknown",
566
+ "paramsInferred": null,
567
+ "returnType": "Promise<{ scriptId: string; title: string; schemaVersion: number; }>",
568
+ "jsDoc": "",
569
+ "hostOnly": false,
570
+ "saveReserved": false
571
+ },
572
+ {
573
+ "key": "scenario.getProgress",
574
+ "paramsType": "unknown",
575
+ "paramsInferred": null,
576
+ "returnType": "Promise<number>",
577
+ "jsDoc": "",
578
+ "hostOnly": false,
579
+ "saveReserved": false
580
+ },
581
+ {
582
+ "key": "scenario.setProgress",
583
+ "paramsType": "unknown",
584
+ "paramsInferred": "{ ratio: number }",
585
+ "returnType": "Promise<{ ok: boolean; }>",
586
+ "jsDoc": "",
587
+ "hostOnly": false,
588
+ "saveReserved": false
589
+ },
590
+ {
591
+ "key": "scenario.getOwnedResources",
592
+ "paramsType": "void",
593
+ "paramsInferred": null,
594
+ "returnType": "Promise<OwnedResourceGroup[]>",
595
+ "jsDoc": "",
596
+ "hostOnly": false,
597
+ "saveReserved": false
598
+ },
599
+ {
600
+ "key": "ui.requestExit",
601
+ "paramsType": "unknown",
602
+ "paramsInferred": null,
603
+ "returnType": "Promise<{ ok: boolean; }>",
604
+ "jsDoc": "",
605
+ "hostOnly": false,
606
+ "saveReserved": false
607
+ },
608
+ {
609
+ "key": "ui.requestReturnToSaveList",
610
+ "paramsType": "unknown",
611
+ "paramsInferred": null,
612
+ "returnType": "Promise<ReturnToSaveListAck>",
613
+ "jsDoc": "",
614
+ "hostOnly": false,
615
+ "saveReserved": false
616
+ },
617
+ {
618
+ "key": "ui.requestFullscreen",
619
+ "paramsType": "unknown",
620
+ "paramsInferred": null,
621
+ "returnType": "Promise<{ ok: boolean; }>",
622
+ "jsDoc": "",
623
+ "hostOnly": false,
624
+ "saveReserved": false
625
+ },
626
+ {
627
+ "key": "ui.requestSettings",
628
+ "paramsType": "unknown",
629
+ "paramsInferred": null,
630
+ "returnType": "Promise<{ ok: boolean; }>",
631
+ "jsDoc": "",
632
+ "hostOnly": false,
633
+ "saveReserved": false
634
+ },
635
+ {
636
+ "key": "ui.requestHistory",
637
+ "paramsType": "unknown",
638
+ "paramsInferred": null,
639
+ "returnType": "Promise<{ ok: boolean; }>",
640
+ "jsDoc": "",
641
+ "hostOnly": false,
642
+ "saveReserved": false
643
+ },
644
+ {
645
+ "key": "view.querySnapshot",
646
+ "paramsType": "unknown",
647
+ "paramsInferred": null,
648
+ "returnType": "Promise<ViewQuerySnapshotResult>",
649
+ "jsDoc": "",
650
+ "hostOnly": false,
651
+ "saveReserved": false
652
+ },
653
+ {
654
+ "key": "view.applyPatch",
655
+ "paramsType": "unknown",
656
+ "paramsInferred": null,
657
+ "returnType": "Promise<ViewApplyPatchResult>",
658
+ "jsDoc": "",
659
+ "hostOnly": false,
660
+ "saveReserved": false
661
+ },
662
+ {
663
+ "key": "worldline.list",
664
+ "paramsType": "unknown",
665
+ "paramsInferred": null,
666
+ "returnType": "Promise<WorldlineListResult>",
667
+ "jsDoc": "",
668
+ "hostOnly": false,
669
+ "saveReserved": false
670
+ },
671
+ {
672
+ "key": "worldline.fork",
673
+ "paramsType": "unknown",
674
+ "paramsInferred": null,
675
+ "returnType": "Promise<ProtocolWorldlineForkResult>",
676
+ "jsDoc": "",
677
+ "hostOnly": false,
678
+ "saveReserved": false
679
+ },
680
+ {
681
+ "key": "worldline.activate",
682
+ "paramsType": "unknown",
683
+ "paramsInferred": null,
684
+ "returnType": "Promise<WorldlineActivateResult>",
685
+ "jsDoc": "",
686
+ "hostOnly": false,
687
+ "saveReserved": false
688
+ },
689
+ {
690
+ "key": "worldline.trim",
691
+ "paramsType": "unknown",
692
+ "paramsInferred": null,
693
+ "returnType": "Promise<WorldlineTrimResult>",
694
+ "jsDoc": "",
695
+ "hostOnly": false,
696
+ "saveReserved": false
697
+ }
698
+ ]
699
+ }