@myclaw163/clawclaw 0.0.0-stage → 0.2.2-rc.5-alpha.7
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/cordis.patch.yml +17 -0
- package/lib/client.js +3 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +2962 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +1640 -0
- package/lib/typert.remote-client.d.ts +70 -0
- package/lib/typert.remote-client.d.ts.map +1 -0
- package/lib/typert.remote-client.js +804 -0
- package/lib/types/account-state.d.ts +17 -0
- package/lib/types/account-state.d.ts.map +1 -0
- package/lib/types/account-state.js.map +1 -0
- package/lib/types/auth.d.ts +25 -0
- package/lib/types/auth.d.ts.map +1 -0
- package/lib/types/auth.js.map +1 -0
- package/lib/types/browser-pages.d.ts +40 -0
- package/lib/types/browser-pages.d.ts.map +1 -0
- package/lib/types/browser-pages.js.map +1 -0
- package/lib/types/client/AutoOpen.d.ts +24 -0
- package/lib/types/client/AutoOpen.d.ts.map +1 -0
- package/lib/types/client/AutoOpen.js.map +1 -0
- package/lib/types/client/ChatOverlay.d.ts +27 -0
- package/lib/types/client/ChatOverlay.d.ts.map +1 -0
- package/lib/types/client/ChatOverlay.js.map +1 -0
- package/lib/types/client/GuideCard.d.ts +24 -0
- package/lib/types/client/GuideCard.d.ts.map +1 -0
- package/lib/types/client/GuideCard.js.map +1 -0
- package/lib/types/client/PageLauncher.d.ts +25 -0
- package/lib/types/client/PageLauncher.d.ts.map +1 -0
- package/lib/types/client/PageLauncher.js.map +1 -0
- package/lib/types/client/QuickCommand.d.ts +14 -0
- package/lib/types/client/QuickCommand.d.ts.map +1 -0
- package/lib/types/client/QuickCommand.js.map +1 -0
- package/lib/types/client/SessionMark.d.ts +12 -0
- package/lib/types/client/SessionMark.d.ts.map +1 -0
- package/lib/types/client/SessionMark.js.map +1 -0
- package/lib/types/client/Title.d.ts +9 -0
- package/lib/types/client/Title.d.ts.map +1 -0
- package/lib/types/client/Title.js.map +1 -0
- package/lib/types/client/View.d.ts +77 -0
- package/lib/types/client/View.d.ts.map +1 -0
- package/lib/types/client/View.js.map +1 -0
- package/lib/types/client/browser-pages.d.ts +24 -0
- package/lib/types/client/browser-pages.d.ts.map +1 -0
- package/lib/types/client/browser-pages.js.map +1 -0
- package/lib/types/client/capability-reference.d.ts +19 -0
- package/lib/types/client/capability-reference.d.ts.map +1 -0
- package/lib/types/client/capability-reference.js.map +1 -0
- package/lib/types/client/chat-geometry.d.ts +90 -0
- package/lib/types/client/chat-geometry.d.ts.map +1 -0
- package/lib/types/client/chat-geometry.js.map +1 -0
- package/lib/types/client/chat-layout.d.ts +30 -0
- package/lib/types/client/chat-layout.d.ts.map +1 -0
- package/lib/types/client/chat-layout.js.map +1 -0
- package/lib/types/client/chat-resize.d.ts +12 -0
- package/lib/types/client/chat-resize.d.ts.map +1 -0
- package/lib/types/client/chat-resize.js.map +1 -0
- package/lib/types/client/distribution.d.ts +3 -0
- package/lib/types/client/distribution.d.ts.map +1 -0
- package/lib/types/client/distribution.js.map +1 -0
- package/lib/types/client/index.d.ts +8 -0
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/index.js.map +1 -0
- package/lib/types/client/launcher-menu.d.ts +40 -0
- package/lib/types/client/launcher-menu.d.ts.map +1 -0
- package/lib/types/client/launcher-menu.js.map +1 -0
- package/lib/types/client/launcher-request.d.ts +16 -0
- package/lib/types/client/launcher-request.d.ts.map +1 -0
- package/lib/types/client/launcher-request.js.map +1 -0
- package/lib/types/client/launcher.d.ts +57 -0
- package/lib/types/client/launcher.d.ts.map +1 -0
- package/lib/types/client/launcher.js.map +1 -0
- package/lib/types/client/locales.d.ts +44 -0
- package/lib/types/client/locales.d.ts.map +1 -0
- package/lib/types/client/locales.js.map +1 -0
- package/lib/types/client/login-tab.d.ts +10 -0
- package/lib/types/client/login-tab.d.ts.map +1 -0
- package/lib/types/client/login-tab.js.map +1 -0
- package/lib/types/client/open-game-tab.d.ts +25 -0
- package/lib/types/client/open-game-tab.d.ts.map +1 -0
- package/lib/types/client/open-game-tab.js.map +1 -0
- package/lib/types/client/pages.d.ts +23 -0
- package/lib/types/client/pages.d.ts.map +1 -0
- package/lib/types/client/pages.js.map +1 -0
- package/lib/types/client/spectator-float.d.ts +16 -0
- package/lib/types/client/spectator-float.d.ts.map +1 -0
- package/lib/types/client/spectator-float.js.map +1 -0
- package/lib/types/client/strategy-input.d.ts +20 -0
- package/lib/types/client/strategy-input.d.ts.map +1 -0
- package/lib/types/client/strategy-input.js.map +1 -0
- package/lib/types/client/ui.d.ts +22 -0
- package/lib/types/client/ui.d.ts.map +1 -0
- package/lib/types/client/ui.js.map +1 -0
- package/lib/types/commands.d.ts +8 -0
- package/lib/types/commands.d.ts.map +1 -0
- package/lib/types/commands.js.map +1 -0
- package/lib/types/controller.d.ts +110 -0
- package/lib/types/controller.d.ts.map +1 -0
- package/lib/types/controller.js.map +1 -0
- package/lib/types/diagnostics.d.ts +38 -0
- package/lib/types/diagnostics.d.ts.map +1 -0
- package/lib/types/diagnostics.js.map +1 -0
- package/lib/types/distribution.d.ts +3 -0
- package/lib/types/distribution.d.ts.map +1 -0
- package/lib/types/distribution.js.map +1 -0
- package/lib/types/error.d.ts +9 -0
- package/lib/types/error.d.ts.map +1 -0
- package/lib/types/error.js.map +1 -0
- package/lib/types/events.d.ts +32 -0
- package/lib/types/events.d.ts.map +1 -0
- package/lib/types/events.js.map +1 -0
- package/lib/types/game-login.d.ts +20 -0
- package/lib/types/game-login.d.ts.map +1 -0
- package/lib/types/game-login.js.map +1 -0
- package/lib/types/game-route.d.ts +19 -0
- package/lib/types/game-route.d.ts.map +1 -0
- package/lib/types/game-route.js.map +1 -0
- package/lib/types/global-ccl.d.ts +43 -0
- package/lib/types/global-ccl.d.ts.map +1 -0
- package/lib/types/global-ccl.js.map +1 -0
- package/lib/types/index.d.ts +219 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/navigation.d.ts +32 -0
- package/lib/types/navigation.d.ts.map +1 -0
- package/lib/types/navigation.js.map +1 -0
- package/lib/types/ownership.d.ts +30 -0
- package/lib/types/ownership.d.ts.map +1 -0
- package/lib/types/ownership.js.map +1 -0
- package/lib/types/pages.d.ts +105 -0
- package/lib/types/pages.d.ts.map +1 -0
- package/lib/types/pages.js.map +1 -0
- package/lib/types/participation.d.ts +8 -0
- package/lib/types/participation.d.ts.map +1 -0
- package/lib/types/participation.js.map +1 -0
- package/lib/types/process.d.ts +37 -0
- package/lib/types/process.d.ts.map +1 -0
- package/lib/types/process.js.map +1 -0
- package/lib/types/projection.d.ts +69 -0
- package/lib/types/projection.d.ts.map +1 -0
- package/lib/types/projection.js.map +1 -0
- package/lib/types/skill.d.ts +37 -0
- package/lib/types/skill.d.ts.map +1 -0
- package/lib/types/skill.js.map +1 -0
- package/lib/types/standalone-account.d.ts +25 -0
- package/lib/types/standalone-account.d.ts.map +1 -0
- package/lib/types/standalone-account.js.map +1 -0
- package/lib/types/types.d.ts +60 -0
- package/lib/types/types.d.ts.map +1 -0
- package/lib/types/types.js.map +1 -0
- package/locale/de.json +6 -0
- package/locale/en.json +6 -0
- package/locale/es.json +6 -0
- package/locale/fr.json +6 -0
- package/locale/ja.json +6 -0
- package/locale/pt.json +6 -0
- package/locale/ru.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +95 -3
- package/plugin-icon.png +0 -0
- package/src/account-state.ts +38 -0
- package/src/browser-pages.ts +43 -0
- package/src/client/AutoOpen.tsx +46 -0
- package/src/client/ChatOverlay.tsx +133 -0
- package/src/client/GuideCard.module.css +11 -0
- package/src/client/GuideCard.tsx +53 -0
- package/src/client/PageLauncher.module.css +52 -0
- package/src/client/PageLauncher.tsx +40 -0
- package/src/client/QuickCommand.module.css +7 -0
- package/src/client/QuickCommand.tsx +22 -0
- package/src/client/SessionMark.tsx +14 -0
- package/src/client/Title.tsx +11 -0
- package/src/client/View.tsx +521 -0
- package/src/client/browser-pages.ts +91 -0
- package/src/client/capability-reference.ts +50 -0
- package/src/client/chat-geometry.ts +257 -0
- package/src/client/chat-layout.ts +61 -0
- package/src/client/chat-overlay.module.css +32 -0
- package/src/client/chat-resize.ts +48 -0
- package/src/client/distribution.ts +4 -0
- package/src/client/index.ts +16 -0
- package/src/client/launcher-menu.tsx +74 -0
- package/src/client/launcher-request.ts +29 -0
- package/src/client/launcher.ts +80 -0
- package/src/client/locales.ts +75 -0
- package/src/client/login-tab.tsx +110 -0
- package/src/client/open-game-tab.ts +58 -0
- package/src/client/pages.ts +13 -0
- package/src/client/spectator.module.css +14 -0
- package/src/client/strategy-input.ts +48 -0
- package/src/client/ui.ts +393 -0
- package/src/commands.ts +52 -0
- package/src/controller.ts +142 -0
- package/src/css-modules.d.ts +5 -0
- package/src/diagnostics.ts +114 -0
- package/src/distribution.ts +4 -0
- package/src/error.ts +10 -0
- package/src/events.ts +92 -0
- package/src/game-login.ts +122 -0
- package/src/game-route.ts +17 -0
- package/src/global-ccl.ts +203 -0
- package/src/index.ts +1185 -0
- package/src/navigation.ts +85 -0
- package/src/ownership.ts +63 -0
- package/src/pages.ts +62 -0
- package/src/participation.ts +18 -0
- package/src/process.ts +147 -0
- package/src/projection.ts +81 -0
- package/src/skill.ts +88 -0
- package/src/standalone-account.ts +69 -0
- package/src/types.ts +54 -0
- package/README.md +0 -3
|
@@ -0,0 +1,1640 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
|
|
5
|
+
|
|
6
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_parameter_0$schema$value
|
|
7
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_parameter_0$schema$value ??= z.string())
|
|
8
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_result$schema$value
|
|
9
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_result$schema$value ??= z.object({
|
|
10
|
+
'state': z.string(),
|
|
11
|
+
'url': z.string(),
|
|
12
|
+
}))
|
|
13
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_0$schema$value
|
|
14
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_0$schema$value ??= z.string())
|
|
15
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_1$schema$value
|
|
16
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_1$schema$value ??= z.union([z.literal("profile"), z.literal("game"), z.literal("preparation"), z.literal("leaderboard"), z.literal("level-tasks"), z.literal("highlight-matches"), z.literal("shop"), z.literal("wardrobe")]))
|
|
17
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_2$schema$value
|
|
18
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_2$schema$value ??= z.string())
|
|
19
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_3$schema$value
|
|
20
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_3$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_3$schema$value ??= z.string())
|
|
21
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_result$schema$value
|
|
22
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_result$schema$value ??= z.void())
|
|
23
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_parameter_0$schema$value
|
|
24
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_parameter_0$schema$value ??= z.string())
|
|
25
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_result$schema$value
|
|
26
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_result$schema$value ??= z.void())
|
|
27
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_parameter_0$schema$value
|
|
28
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_parameter_0$schema$value ??= z.string())
|
|
29
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_result$schema$value
|
|
30
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_result$schema$value ??= z.boolean())
|
|
31
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_0$schema$value
|
|
32
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_0$schema$value ??= z.string())
|
|
33
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_1$schema$value
|
|
34
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_1$schema$value ??= z.string())
|
|
35
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_2$schema$value
|
|
36
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_2$schema$value ??= z.union([z.literal("unconfirmed"), z.literal("opened"), z.literal("focused"), z.literal("login-required")]))
|
|
37
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_result$schema$value
|
|
38
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_result$schema$value ??= z.void())
|
|
39
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_0$schema$value
|
|
40
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_0$schema$value ??= z.union([z.literal("profile"), z.literal("preparation"), z.literal("leaderboard"), z.literal("level-tasks"), z.literal("highlight-matches"), z.literal("shop"), z.literal("wardrobe")]))
|
|
41
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_1$schema$value
|
|
42
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_1$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
43
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_result$schema$value
|
|
44
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_result$schema$value ??= z.string())
|
|
45
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_parameter_0$schema$value
|
|
46
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_parameter_0$schema$value ??= z.string())
|
|
47
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_result$schema$value
|
|
48
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_result$schema$value ??= z.object({
|
|
49
|
+
'host_type': z.literal("desktop"),
|
|
50
|
+
'host_instance_id': z.string(),
|
|
51
|
+
'host_session_id': z.string(),
|
|
52
|
+
'client_kind': z.union([z.literal("fork"), z.literal("official")]),
|
|
53
|
+
'distribution_target': z.string(),
|
|
54
|
+
}))
|
|
55
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_0$schema$value
|
|
56
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_0$schema$value ??= z.string())
|
|
57
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_1$schema$value
|
|
58
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_1$schema$value ??= z.union([z.literal("prepare-room-creation"), z.literal("start-ranked-match"), z.literal("resume-current-participation"), z.literal("quit-match"), z.literal("create-friend-room"), z.literal("create-training-room"), z.literal("start-competition")]))
|
|
59
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_2$schema$value
|
|
60
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_2$schema$value ??= z.union([z.literal("zh-CN"), z.literal("en-US")]))
|
|
61
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_result$schema$value
|
|
62
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_result$schema$value ??= z.union([z.object({
|
|
63
|
+
'status': z.literal("submitted").readonly(),
|
|
64
|
+
}), z.object({
|
|
65
|
+
'status': z.literal("failed").readonly(),
|
|
66
|
+
'code': z.union([z.literal("in-match-blocked"), z.literal("submission-failed"), z.literal("ccl-missing"), z.literal("ccl-incompatible")]).readonly(),
|
|
67
|
+
})]))
|
|
68
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_parameter_0$schema$value
|
|
69
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_parameter_0$schema$value ??= z.string())
|
|
70
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_result$schema$value
|
|
71
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_result$schema$value ??= z.string())
|
|
72
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_parameter_0$schema$value
|
|
73
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_parameter_0$schema$value ??= z.string())
|
|
74
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_result$schema$value
|
|
75
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_result$schema$value ??= z.string())
|
|
76
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_0$schema$value
|
|
77
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_0$schema$value ??= z.union([z.literal(null), z.string()]))
|
|
78
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_1$schema$value
|
|
79
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_1$schema$value ??= z.boolean())
|
|
80
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_2$schema$value
|
|
81
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_2$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_2$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
82
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_result$schema$value
|
|
83
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_result$schema$value ??= z.boolean())
|
|
84
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_usePlatformGameAccount_result$schema$value
|
|
85
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_usePlatformGameAccount_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_usePlatformGameAccount_result$schema$value ??= z.boolean())
|
|
86
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_0$schema$value
|
|
87
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_0$schema$value ??= z.string())
|
|
88
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_1$schema$value
|
|
89
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_1$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_1$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
90
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_result$schema$value
|
|
91
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_result$schema$value ??= z.void())
|
|
92
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchAccount_result$schema$value
|
|
93
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchAccount_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchAccount_result$schema$value ??= z.object({
|
|
94
|
+
'revision': z.number().readonly().describe('宿主进程内递增,重连沿用最新值。'),
|
|
95
|
+
'loggedIn': z.boolean().readonly(),
|
|
96
|
+
'source': z.string().readonly().optional(),
|
|
97
|
+
}))
|
|
98
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_parameter_0$schema$value
|
|
99
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_parameter_0$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_parameter_0$schema$value ??= z.string())
|
|
100
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_result$schema$value
|
|
101
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_result$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_result$schema$value ??= z.union([z.object({
|
|
102
|
+
'type': z.literal("ready").readonly(),
|
|
103
|
+
}), z.object({
|
|
104
|
+
'type': z.literal("cancel").readonly(),
|
|
105
|
+
'id': z.string().readonly(),
|
|
106
|
+
}), z.object({
|
|
107
|
+
'type': z.literal("open").readonly(),
|
|
108
|
+
'id': z.string().readonly(),
|
|
109
|
+
'sessionId': z.string().readonly(),
|
|
110
|
+
'page': z.union([z.literal("profile"), z.literal("game"), z.literal("preparation"), z.literal("leaderboard"), z.literal("level-tasks"), z.literal("highlight-matches"), z.literal("shop"), z.literal("wardrobe"), z.literal("game-intro"), z.literal("skills-hub")]).readonly(),
|
|
111
|
+
})]))
|
|
112
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_parameter_0_strict$schema$value
|
|
113
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_parameter_0_strict$schema$value ??= z.string())
|
|
114
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_0_strict$schema$value
|
|
115
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_0_strict$schema$value ??= z.string())
|
|
116
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_1_strict$schema$value
|
|
117
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_1_strict$schema$value ??= z.union([z.literal("profile"), z.literal("game"), z.literal("preparation"), z.literal("leaderboard"), z.literal("level-tasks"), z.literal("highlight-matches"), z.literal("shop"), z.literal("wardrobe")]))
|
|
118
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_2_strict$schema$value
|
|
119
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_2_strict$schema$value ??= z.string())
|
|
120
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_3_strict$schema$value
|
|
121
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_3_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_3_strict$schema$value ??= z.string())
|
|
122
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_parameter_0_strict$schema$value
|
|
123
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_parameter_0_strict$schema$value ??= z.string())
|
|
124
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_parameter_0_strict$schema$value
|
|
125
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_parameter_0_strict$schema$value ??= z.string())
|
|
126
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_0_strict$schema$value
|
|
127
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_0_strict$schema$value ??= z.string())
|
|
128
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_1_strict$schema$value
|
|
129
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_1_strict$schema$value ??= z.string())
|
|
130
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_2_strict$schema$value
|
|
131
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_2_strict$schema$value ??= z.union([z.literal("unconfirmed"), z.literal("opened"), z.literal("focused"), z.literal("login-required")]))
|
|
132
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_0_strict$schema$value
|
|
133
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_0_strict$schema$value ??= z.union([z.literal("profile"), z.literal("preparation"), z.literal("leaderboard"), z.literal("level-tasks"), z.literal("highlight-matches"), z.literal("shop"), z.literal("wardrobe")]))
|
|
134
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_1_strict$schema$value
|
|
135
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
136
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_parameter_0_strict$schema$value
|
|
137
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_parameter_0_strict$schema$value ??= z.string())
|
|
138
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_0_strict$schema$value
|
|
139
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_0_strict$schema$value ??= z.string())
|
|
140
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_1_strict$schema$value
|
|
141
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_1_strict$schema$value ??= z.union([z.literal("prepare-room-creation"), z.literal("start-ranked-match"), z.literal("resume-current-participation"), z.literal("quit-match"), z.literal("create-friend-room"), z.literal("create-training-room"), z.literal("start-competition")]))
|
|
142
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_2_strict$schema$value
|
|
143
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_2_strict$schema$value ??= z.union([z.literal("zh-CN"), z.literal("en-US")]))
|
|
144
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_parameter_0_strict$schema$value
|
|
145
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_parameter_0_strict$schema$value ??= z.string())
|
|
146
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_parameter_0_strict$schema$value
|
|
147
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_parameter_0_strict$schema$value ??= z.string())
|
|
148
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_0_strict$schema$value
|
|
149
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_0_strict$schema$value ??= z.union([z.literal(null), z.string()]))
|
|
150
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_1_strict$schema$value
|
|
151
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_1_strict$schema$value ??= z.boolean())
|
|
152
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_2_strict$schema$value
|
|
153
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_2_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_2_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
154
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_0_strict$schema$value
|
|
155
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_0_strict$schema$value ??= z.string())
|
|
156
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_1_strict$schema$value
|
|
157
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_1_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_1_strict$schema$value ??= z.union([z.undefined(), z.string()]))
|
|
158
|
+
let _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_parameter_0_strict$schema$value
|
|
159
|
+
const _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_parameter_0_strict$schema = () => (_deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_parameter_0_strict$schema$value ??= z.string())
|
|
160
|
+
|
|
161
|
+
const $remote = createTypertRemoteInfo({
|
|
162
|
+
package: '@myclaw163/clawclaw',
|
|
163
|
+
methods: {
|
|
164
|
+
'clawclaw/beginGameLogin': {
|
|
165
|
+
service: 'clawclawController',
|
|
166
|
+
description: '发起官方插件的游戏登录。',
|
|
167
|
+
invocation: { kind: 'direct' },
|
|
168
|
+
parameters: [
|
|
169
|
+
{
|
|
170
|
+
name: 'sessionId',
|
|
171
|
+
description: '发起会话。',
|
|
172
|
+
source: 'json',
|
|
173
|
+
codec: {
|
|
174
|
+
mode: 'strict',
|
|
175
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
176
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_parameter_0$schema,
|
|
177
|
+
jsonSchema: {"type":"string"},
|
|
178
|
+
},
|
|
179
|
+
strictCodec: {
|
|
180
|
+
mode: 'strict',
|
|
181
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
182
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_parameter_0_strict$schema,
|
|
183
|
+
jsonSchema: {"type":"string"},
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
result: {
|
|
188
|
+
mode: 'strict',
|
|
189
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/beginGameLogin:result',
|
|
190
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_beginGameLogin_result$schema,
|
|
191
|
+
description: '一次性授权入口。',
|
|
192
|
+
jsonSchema: {"type":"object","properties":{"state":{"type":"string"},"url":{"type":"string"}},"required":["state","url"],"additionalProperties":true},
|
|
193
|
+
},
|
|
194
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":106,"column":3},
|
|
195
|
+
},
|
|
196
|
+
'clawclaw/browserDiagnostic': {
|
|
197
|
+
service: 'clawclawController',
|
|
198
|
+
description: '记录来源已由标签页验证的内嵌页面错误。',
|
|
199
|
+
invocation: { kind: 'direct' },
|
|
200
|
+
parameters: [
|
|
201
|
+
{
|
|
202
|
+
name: 'sessionId',
|
|
203
|
+
description: '标签所属会话。',
|
|
204
|
+
source: 'json',
|
|
205
|
+
codec: {
|
|
206
|
+
mode: 'strict',
|
|
207
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
208
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_0$schema,
|
|
209
|
+
jsonSchema: {"type":"string"},
|
|
210
|
+
},
|
|
211
|
+
strictCodec: {
|
|
212
|
+
mode: 'strict',
|
|
213
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
214
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_0_strict$schema,
|
|
215
|
+
jsonSchema: {"type":"string"},
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
name: 'page',
|
|
220
|
+
description: '插件页面标识。',
|
|
221
|
+
source: 'json',
|
|
222
|
+
codec: {
|
|
223
|
+
mode: 'strict',
|
|
224
|
+
typeSymbol: '@myclaw163/clawclaw/types#Page',
|
|
225
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_1$schema,
|
|
226
|
+
jsonSchema: {"type":"string","enum":["profile","game","preparation","leaderboard","level-tasks","highlight-matches","shop","wardrobe"]},
|
|
227
|
+
},
|
|
228
|
+
strictCodec: {
|
|
229
|
+
mode: 'strict',
|
|
230
|
+
typeSymbol: '@myclaw163/clawclaw/types#Page',
|
|
231
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_1_strict$schema,
|
|
232
|
+
jsonSchema: {"type":"string","enum":["profile","game","preparation","leaderboard","level-tasks","highlight-matches","shop","wardrobe"]},
|
|
233
|
+
},
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: 'path',
|
|
237
|
+
description: '不含认证查询参数的页面路径。',
|
|
238
|
+
source: 'json',
|
|
239
|
+
codec: {
|
|
240
|
+
mode: 'strict',
|
|
241
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/browserDiagnostic:path',
|
|
242
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_2$schema,
|
|
243
|
+
jsonSchema: {"type":"string"},
|
|
244
|
+
},
|
|
245
|
+
strictCodec: {
|
|
246
|
+
mode: 'strict',
|
|
247
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/browserDiagnostic:path',
|
|
248
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_2_strict$schema,
|
|
249
|
+
jsonSchema: {"type":"string"},
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'message',
|
|
254
|
+
description: '有界浏览器错误摘要;导出时统一脱敏。',
|
|
255
|
+
source: 'json',
|
|
256
|
+
codec: {
|
|
257
|
+
mode: 'strict',
|
|
258
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/browserDiagnostic:message',
|
|
259
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_3$schema,
|
|
260
|
+
jsonSchema: {"type":"string"},
|
|
261
|
+
},
|
|
262
|
+
strictCodec: {
|
|
263
|
+
mode: 'strict',
|
|
264
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/browserDiagnostic:message',
|
|
265
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_parameter_3_strict$schema,
|
|
266
|
+
jsonSchema: {"type":"string"},
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
],
|
|
270
|
+
result: {
|
|
271
|
+
mode: 'strict',
|
|
272
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/browserDiagnostic:result',
|
|
273
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_browserDiagnostic_result$schema,
|
|
274
|
+
jsonSchemaError: 'typert tool schema: unsupported void value',
|
|
275
|
+
},
|
|
276
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":130,"column":3},
|
|
277
|
+
},
|
|
278
|
+
'clawclaw/cancelGameLogin': {
|
|
279
|
+
service: 'clawclawController',
|
|
280
|
+
description: '取消游戏授权。',
|
|
281
|
+
invocation: { kind: 'direct' },
|
|
282
|
+
parameters: [
|
|
283
|
+
{
|
|
284
|
+
name: 'state',
|
|
285
|
+
description: '授权的随机 state。',
|
|
286
|
+
source: 'json',
|
|
287
|
+
codec: {
|
|
288
|
+
mode: 'strict',
|
|
289
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/cancelGameLogin:state',
|
|
290
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_parameter_0$schema,
|
|
291
|
+
jsonSchema: {"type":"string"},
|
|
292
|
+
},
|
|
293
|
+
strictCodec: {
|
|
294
|
+
mode: 'strict',
|
|
295
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/cancelGameLogin:state',
|
|
296
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_parameter_0_strict$schema,
|
|
297
|
+
jsonSchema: {"type":"string"},
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
],
|
|
301
|
+
result: {
|
|
302
|
+
mode: 'strict',
|
|
303
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/cancelGameLogin:result',
|
|
304
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_cancelGameLogin_result$schema,
|
|
305
|
+
jsonSchemaError: 'typert tool schema: unsupported void value',
|
|
306
|
+
},
|
|
307
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":117,"column":3},
|
|
308
|
+
},
|
|
309
|
+
'clawclaw/completeGameLogin': {
|
|
310
|
+
service: 'clawclawController',
|
|
311
|
+
description: '等待游戏登录结果。',
|
|
312
|
+
invocation: { kind: 'direct' },
|
|
313
|
+
parameters: [
|
|
314
|
+
{
|
|
315
|
+
name: 'state',
|
|
316
|
+
description: '授权的随机 state。',
|
|
317
|
+
source: 'json',
|
|
318
|
+
codec: {
|
|
319
|
+
mode: 'strict',
|
|
320
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/completeGameLogin:state',
|
|
321
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_parameter_0$schema,
|
|
322
|
+
jsonSchema: {"type":"string"},
|
|
323
|
+
},
|
|
324
|
+
strictCodec: {
|
|
325
|
+
mode: 'strict',
|
|
326
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/completeGameLogin:state',
|
|
327
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_parameter_0_strict$schema,
|
|
328
|
+
jsonSchema: {"type":"string"},
|
|
329
|
+
},
|
|
330
|
+
},
|
|
331
|
+
],
|
|
332
|
+
result: {
|
|
333
|
+
mode: 'strict',
|
|
334
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/completeGameLogin:result',
|
|
335
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeGameLogin_result$schema,
|
|
336
|
+
description: '游戏账号是否绑定成功。',
|
|
337
|
+
jsonSchema: {"type":"boolean"},
|
|
338
|
+
},
|
|
339
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":112,"column":3},
|
|
340
|
+
},
|
|
341
|
+
'clawclaw/completeNavigation': {
|
|
342
|
+
service: 'clawclawController',
|
|
343
|
+
description: '提交游戏页面确认结果。',
|
|
344
|
+
invocation: { kind: 'direct' },
|
|
345
|
+
parameters: [
|
|
346
|
+
{
|
|
347
|
+
name: 'sessionId',
|
|
348
|
+
description: '导航所属会话。',
|
|
349
|
+
source: 'json',
|
|
350
|
+
codec: {
|
|
351
|
+
mode: 'strict',
|
|
352
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
353
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_0$schema,
|
|
354
|
+
jsonSchema: {"type":"string"},
|
|
355
|
+
},
|
|
356
|
+
strictCodec: {
|
|
357
|
+
mode: 'strict',
|
|
358
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
359
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_0_strict$schema,
|
|
360
|
+
jsonSchema: {"type":"string"},
|
|
361
|
+
},
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
name: 'id',
|
|
365
|
+
description: '工具调用 ID。',
|
|
366
|
+
source: 'json',
|
|
367
|
+
codec: {
|
|
368
|
+
mode: 'strict',
|
|
369
|
+
typeSymbol: '@deepseek-ai/dsh-llm/brand#ToolCallId',
|
|
370
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_1$schema,
|
|
371
|
+
jsonSchema: {"type":"string"},
|
|
372
|
+
},
|
|
373
|
+
strictCodec: {
|
|
374
|
+
mode: 'strict',
|
|
375
|
+
typeSymbol: '@deepseek-ai/dsh-llm/brand#ToolCallId',
|
|
376
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_1_strict$schema,
|
|
377
|
+
jsonSchema: {"type":"string"},
|
|
378
|
+
},
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: 'status',
|
|
382
|
+
description: '页面确认结果。',
|
|
383
|
+
source: 'json',
|
|
384
|
+
codec: {
|
|
385
|
+
mode: 'strict',
|
|
386
|
+
typeSymbol: '@myclaw163/clawclaw/types#NavigationStatus',
|
|
387
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_2$schema,
|
|
388
|
+
jsonSchema: {"type":"string","enum":["unconfirmed","opened","focused","login-required"]},
|
|
389
|
+
},
|
|
390
|
+
strictCodec: {
|
|
391
|
+
mode: 'strict',
|
|
392
|
+
typeSymbol: '@myclaw163/clawclaw/types#NavigationStatus',
|
|
393
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_parameter_2_strict$schema,
|
|
394
|
+
jsonSchema: {"type":"string","enum":["unconfirmed","opened","focused","login-required"]},
|
|
395
|
+
},
|
|
396
|
+
},
|
|
397
|
+
],
|
|
398
|
+
result: {
|
|
399
|
+
mode: 'strict',
|
|
400
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/completeNavigation:result',
|
|
401
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_completeNavigation_result$schema,
|
|
402
|
+
jsonSchemaError: 'typert tool schema: unsupported void value',
|
|
403
|
+
},
|
|
404
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":46,"column":3},
|
|
405
|
+
},
|
|
406
|
+
'clawclaw/contentUrl': {
|
|
407
|
+
service: 'clawclawController',
|
|
408
|
+
description: '获取内容页的独立登录地址。',
|
|
409
|
+
invocation: { kind: 'direct' },
|
|
410
|
+
parameters: [
|
|
411
|
+
{
|
|
412
|
+
name: 'page',
|
|
413
|
+
description: '固定内容页面。',
|
|
414
|
+
source: 'json',
|
|
415
|
+
codec: {
|
|
416
|
+
mode: 'strict',
|
|
417
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/contentUrl:page',
|
|
418
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_0$schema,
|
|
419
|
+
jsonSchema: {"type":"string","enum":["profile","preparation","leaderboard","level-tasks","highlight-matches","shop","wardrobe"]},
|
|
420
|
+
},
|
|
421
|
+
strictCodec: {
|
|
422
|
+
mode: 'strict',
|
|
423
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/contentUrl:page',
|
|
424
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_0_strict$schema,
|
|
425
|
+
jsonSchema: {"type":"string","enum":["profile","preparation","leaderboard","level-tasks","highlight-matches","shop","wardrobe"]},
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
name: 'sessionId',
|
|
430
|
+
description: '官方账号所属会话;Desktop 可省略。',
|
|
431
|
+
source: 'json',
|
|
432
|
+
acceptsUndefined: true,
|
|
433
|
+
codec: {
|
|
434
|
+
mode: 'strict',
|
|
435
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
436
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_1$schema,
|
|
437
|
+
jsonSchema: {"type":"string"},
|
|
438
|
+
},
|
|
439
|
+
strictCodec: {
|
|
440
|
+
mode: 'strict',
|
|
441
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
442
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_parameter_1_strict$schema,
|
|
443
|
+
jsonSchema: {"type":"string"},
|
|
444
|
+
},
|
|
445
|
+
},
|
|
446
|
+
],
|
|
447
|
+
result: {
|
|
448
|
+
mode: 'strict',
|
|
449
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/contentUrl:result',
|
|
450
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_contentUrl_result$schema,
|
|
451
|
+
description: '不进入模型上下文的登录 URL。',
|
|
452
|
+
jsonSchema: {"type":"string"},
|
|
453
|
+
},
|
|
454
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":69,"column":3},
|
|
455
|
+
},
|
|
456
|
+
'clawclaw/hostContext': {
|
|
457
|
+
service: 'clawclawController',
|
|
458
|
+
description: '获取页面所属会话的稳定宿主信息。',
|
|
459
|
+
invocation: { kind: 'direct' },
|
|
460
|
+
parameters: [
|
|
461
|
+
{
|
|
462
|
+
name: 'sessionId',
|
|
463
|
+
description: '页面所属会话。',
|
|
464
|
+
source: 'json',
|
|
465
|
+
codec: {
|
|
466
|
+
mode: 'strict',
|
|
467
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
468
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_parameter_0$schema,
|
|
469
|
+
jsonSchema: {"type":"string"},
|
|
470
|
+
},
|
|
471
|
+
strictCodec: {
|
|
472
|
+
mode: 'strict',
|
|
473
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
474
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_parameter_0_strict$schema,
|
|
475
|
+
jsonSchema: {"type":"string"},
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
],
|
|
479
|
+
result: {
|
|
480
|
+
mode: 'strict',
|
|
481
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/hostContext:result',
|
|
482
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_hostContext_result$schema,
|
|
483
|
+
description: '与该会话 CCL 进程一致的身份字段。',
|
|
484
|
+
jsonSchema: {"type":"object","properties":{"host_type":{"type":"string","const":"desktop"},"host_instance_id":{"type":"string"},"host_session_id":{"type":"string"},"client_kind":{"type":"string","enum":["fork","official"]},"distribution_target":{"type":"string"}},"required":["host_type","host_instance_id","host_session_id","client_kind","distribution_target"],"additionalProperties":true},
|
|
485
|
+
},
|
|
486
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":141,"column":3},
|
|
487
|
+
},
|
|
488
|
+
'clawclaw/requestAction': {
|
|
489
|
+
service: 'clawclawController',
|
|
490
|
+
description: '提交页面上的游戏操作。',
|
|
491
|
+
invocation: { kind: 'direct' },
|
|
492
|
+
parameters: [
|
|
493
|
+
{
|
|
494
|
+
name: 'sessionId',
|
|
495
|
+
description: '页面所属会话。',
|
|
496
|
+
source: 'json',
|
|
497
|
+
codec: {
|
|
498
|
+
mode: 'strict',
|
|
499
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
500
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_0$schema,
|
|
501
|
+
jsonSchema: {"type":"string"},
|
|
502
|
+
},
|
|
503
|
+
strictCodec: {
|
|
504
|
+
mode: 'strict',
|
|
505
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
506
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_0_strict$schema,
|
|
507
|
+
jsonSchema: {"type":"string"},
|
|
508
|
+
},
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
name: 'action',
|
|
512
|
+
description: '允许的游戏意图。',
|
|
513
|
+
source: 'json',
|
|
514
|
+
codec: {
|
|
515
|
+
mode: 'strict',
|
|
516
|
+
typeSymbol: '@myclaw163/clawclaw/types#GameAction',
|
|
517
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_1$schema,
|
|
518
|
+
jsonSchema: {"type":"string","enum":["prepare-room-creation","start-ranked-match","resume-current-participation","quit-match","create-friend-room","create-training-room","start-competition"]},
|
|
519
|
+
},
|
|
520
|
+
strictCodec: {
|
|
521
|
+
mode: 'strict',
|
|
522
|
+
typeSymbol: '@myclaw163/clawclaw/types#GameAction',
|
|
523
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_1_strict$schema,
|
|
524
|
+
jsonSchema: {"type":"string","enum":["prepare-room-creation","start-ranked-match","resume-current-participation","quit-match","create-friend-room","create-training-room","start-competition"]},
|
|
525
|
+
},
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
name: 'language',
|
|
529
|
+
description: '当前平台界面语言。',
|
|
530
|
+
source: 'json',
|
|
531
|
+
codec: {
|
|
532
|
+
mode: 'strict',
|
|
533
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/requestAction:language',
|
|
534
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_2$schema,
|
|
535
|
+
jsonSchema: {"type":"string","enum":["zh-CN","en-US"]},
|
|
536
|
+
},
|
|
537
|
+
strictCodec: {
|
|
538
|
+
mode: 'strict',
|
|
539
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/requestAction:language',
|
|
540
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_parameter_2_strict$schema,
|
|
541
|
+
jsonSchema: {"type":"string","enum":["zh-CN","en-US"]},
|
|
542
|
+
},
|
|
543
|
+
},
|
|
544
|
+
],
|
|
545
|
+
result: {
|
|
546
|
+
mode: 'strict',
|
|
547
|
+
typeSymbol: '@myclaw163/clawclaw/types#GameActionResult',
|
|
548
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_requestAction_result$schema,
|
|
549
|
+
description: '已提交或提交失败;其他异常由 Remote 报告。',
|
|
550
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"submitted"}},"required":["status"],"additionalProperties":true},{"type":"object","properties":{"status":{"type":"string","const":"failed"},"code":{"type":"string","enum":["in-match-blocked","submission-failed","ccl-missing","ccl-incompatible"]}},"required":["status","code"],"additionalProperties":true}]},
|
|
551
|
+
},
|
|
552
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":77,"column":9},
|
|
553
|
+
},
|
|
554
|
+
'clawclaw/spectatorPageUrl': {
|
|
555
|
+
service: 'clawclawController',
|
|
556
|
+
description: '获取不依赖认证或 CLI 的游戏入口。',
|
|
557
|
+
invocation: { kind: 'direct' },
|
|
558
|
+
parameters: [
|
|
559
|
+
{
|
|
560
|
+
name: 'sessionId',
|
|
561
|
+
description: '页面所属会话。',
|
|
562
|
+
source: 'json',
|
|
563
|
+
codec: {
|
|
564
|
+
mode: 'strict',
|
|
565
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
566
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_parameter_0$schema,
|
|
567
|
+
jsonSchema: {"type":"string"},
|
|
568
|
+
},
|
|
569
|
+
strictCodec: {
|
|
570
|
+
mode: 'strict',
|
|
571
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
572
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_parameter_0_strict$schema,
|
|
573
|
+
jsonSchema: {"type":"string"},
|
|
574
|
+
},
|
|
575
|
+
},
|
|
576
|
+
],
|
|
577
|
+
result: {
|
|
578
|
+
mode: 'strict',
|
|
579
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/spectatorPageUrl:result',
|
|
580
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorPageUrl_result$schema,
|
|
581
|
+
description: '无票据的内容页地址。',
|
|
582
|
+
jsonSchema: {"type":"string"},
|
|
583
|
+
},
|
|
584
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":56,"column":3},
|
|
585
|
+
},
|
|
586
|
+
'clawclaw/spectatorUrl': {
|
|
587
|
+
service: 'clawclawController',
|
|
588
|
+
description: '获取当前会话的观战链接。',
|
|
589
|
+
invocation: { kind: 'direct' },
|
|
590
|
+
parameters: [
|
|
591
|
+
{
|
|
592
|
+
name: 'sessionId',
|
|
593
|
+
description: '当前观战会话。',
|
|
594
|
+
source: 'json',
|
|
595
|
+
codec: {
|
|
596
|
+
mode: 'strict',
|
|
597
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
598
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_parameter_0$schema,
|
|
599
|
+
jsonSchema: {"type":"string"},
|
|
600
|
+
},
|
|
601
|
+
strictCodec: {
|
|
602
|
+
mode: 'strict',
|
|
603
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
604
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_parameter_0_strict$schema,
|
|
605
|
+
jsonSchema: {"type":"string"},
|
|
606
|
+
},
|
|
607
|
+
},
|
|
608
|
+
],
|
|
609
|
+
result: {
|
|
610
|
+
mode: 'strict',
|
|
611
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/spectatorUrl:result',
|
|
612
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_spectatorUrl_result$schema,
|
|
613
|
+
description: '只供 UI 加载的观战地址。',
|
|
614
|
+
jsonSchema: {"type":"string"},
|
|
615
|
+
},
|
|
616
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":62,"column":3},
|
|
617
|
+
},
|
|
618
|
+
'clawclaw/syncGameAccount': {
|
|
619
|
+
service: 'clawclawController',
|
|
620
|
+
description: '同步可信游戏页面当前账号,不修改平台凭据。',
|
|
621
|
+
invocation: { kind: 'direct' },
|
|
622
|
+
parameters: [
|
|
623
|
+
{
|
|
624
|
+
name: 'clawKey',
|
|
625
|
+
description: '游戏账号密钥或退出登录的 null。',
|
|
626
|
+
source: 'json',
|
|
627
|
+
codec: {
|
|
628
|
+
mode: 'strict',
|
|
629
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/syncGameAccount:clawKey',
|
|
630
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_0$schema,
|
|
631
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
|
|
632
|
+
},
|
|
633
|
+
strictCodec: {
|
|
634
|
+
mode: 'strict',
|
|
635
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/syncGameAccount:clawKey',
|
|
636
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_0_strict$schema,
|
|
637
|
+
jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
|
|
638
|
+
},
|
|
639
|
+
},
|
|
640
|
+
{
|
|
641
|
+
name: 'confirm',
|
|
642
|
+
description: '只核对启动票据,不覆盖后续账号选择。',
|
|
643
|
+
source: 'json',
|
|
644
|
+
codec: {
|
|
645
|
+
mode: 'strict',
|
|
646
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/syncGameAccount:confirm',
|
|
647
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_1$schema,
|
|
648
|
+
jsonSchema: {"type":"boolean"},
|
|
649
|
+
},
|
|
650
|
+
strictCodec: {
|
|
651
|
+
mode: 'strict',
|
|
652
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/syncGameAccount:confirm',
|
|
653
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_1_strict$schema,
|
|
654
|
+
jsonSchema: {"type":"boolean"},
|
|
655
|
+
},
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
name: 'sessionId',
|
|
659
|
+
description: '官方账号所属会话;Desktop 可省略。',
|
|
660
|
+
source: 'json',
|
|
661
|
+
acceptsUndefined: true,
|
|
662
|
+
codec: {
|
|
663
|
+
mode: 'strict',
|
|
664
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
665
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_2$schema,
|
|
666
|
+
jsonSchema: {"type":"string"},
|
|
667
|
+
},
|
|
668
|
+
strictCodec: {
|
|
669
|
+
mode: 'strict',
|
|
670
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
671
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_parameter_2_strict$schema,
|
|
672
|
+
jsonSchema: {"type":"string"},
|
|
673
|
+
},
|
|
674
|
+
},
|
|
675
|
+
],
|
|
676
|
+
result: {
|
|
677
|
+
mode: 'strict',
|
|
678
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/syncGameAccount:result',
|
|
679
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_syncGameAccount_result$schema,
|
|
680
|
+
description: '生效账号是否变化;确认票据返回 false,登出成功返回 true。',
|
|
681
|
+
jsonSchema: {"type":"boolean"},
|
|
682
|
+
},
|
|
683
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":98,"column":3},
|
|
684
|
+
},
|
|
685
|
+
'clawclaw/usePlatformGameAccount': {
|
|
686
|
+
service: 'clawclawController',
|
|
687
|
+
description: '显式平台重新授权成功后,用新兑换的账号恢复游戏。',
|
|
688
|
+
invocation: { kind: 'direct' },
|
|
689
|
+
parameters: [
|
|
690
|
+
],
|
|
691
|
+
result: {
|
|
692
|
+
mode: 'strict',
|
|
693
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/usePlatformGameAccount:result',
|
|
694
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_usePlatformGameAccount_result$schema,
|
|
695
|
+
description: '生效账号是否变化,包括从登出状态恢复同一账号。',
|
|
696
|
+
jsonSchema: {"type":"boolean"},
|
|
697
|
+
},
|
|
698
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":122,"column":3},
|
|
699
|
+
},
|
|
700
|
+
'clawclaw/validateBrowserPage': {
|
|
701
|
+
service: 'clawclawController',
|
|
702
|
+
description: '校验外层 SkillHub 页签的地址与游戏登录状态。',
|
|
703
|
+
invocation: { kind: 'direct' },
|
|
704
|
+
parameters: [
|
|
705
|
+
{
|
|
706
|
+
name: 'url',
|
|
707
|
+
description: '待校验的 Hub 地址。',
|
|
708
|
+
source: 'json',
|
|
709
|
+
codec: {
|
|
710
|
+
mode: 'strict',
|
|
711
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/validateBrowserPage:url',
|
|
712
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_0$schema,
|
|
713
|
+
jsonSchema: {"type":"string"},
|
|
714
|
+
},
|
|
715
|
+
strictCodec: {
|
|
716
|
+
mode: 'strict',
|
|
717
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/validateBrowserPage:url',
|
|
718
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_0_strict$schema,
|
|
719
|
+
jsonSchema: {"type":"string"},
|
|
720
|
+
},
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
name: 'sessionId',
|
|
724
|
+
description: '官方账号所属会话;Desktop 可省略。',
|
|
725
|
+
source: 'json',
|
|
726
|
+
acceptsUndefined: true,
|
|
727
|
+
codec: {
|
|
728
|
+
mode: 'strict',
|
|
729
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
730
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_1$schema,
|
|
731
|
+
jsonSchema: {"type":"string"},
|
|
732
|
+
},
|
|
733
|
+
strictCodec: {
|
|
734
|
+
mode: 'strict',
|
|
735
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
736
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_parameter_1_strict$schema,
|
|
737
|
+
jsonSchema: {"type":"string"},
|
|
738
|
+
},
|
|
739
|
+
},
|
|
740
|
+
],
|
|
741
|
+
result: {
|
|
742
|
+
mode: 'strict',
|
|
743
|
+
typeSymbol: '@myclaw163/clawclaw#clawclaw/validateBrowserPage:result',
|
|
744
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_validateBrowserPage_result$schema,
|
|
745
|
+
description: '校验完成;失败时不打开页面。',
|
|
746
|
+
jsonSchemaError: 'typert tool schema: unsupported void value',
|
|
747
|
+
},
|
|
748
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":23,"column":3},
|
|
749
|
+
},
|
|
750
|
+
'clawclaw/watchAccount': {
|
|
751
|
+
service: 'clawclawController',
|
|
752
|
+
description: '订阅官方插件共享登录状态,重连收到当前快照。',
|
|
753
|
+
mode: 'stream',
|
|
754
|
+
invocation: { kind: 'direct' },
|
|
755
|
+
parameters: [
|
|
756
|
+
],
|
|
757
|
+
cancellation: { parameter: 'signal' },
|
|
758
|
+
result: {
|
|
759
|
+
mode: 'strict',
|
|
760
|
+
typeSymbol: '@myclaw163/clawclaw/types#AccountState',
|
|
761
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchAccount_result$schema,
|
|
762
|
+
description: '不含凭据的共享账号状态。',
|
|
763
|
+
jsonSchema: {"type":"object","properties":{"revision":{"type":"number","description":"宿主进程内递增,重连沿用最新值。"},"loggedIn":{"type":"boolean"},"source":{"type":"string"}},"required":["revision","loggedIn"],"additionalProperties":true},
|
|
764
|
+
},
|
|
765
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":39,"column":3},
|
|
766
|
+
},
|
|
767
|
+
'clawclaw/watchNavigation': {
|
|
768
|
+
service: 'clawclawController',
|
|
769
|
+
description: '订阅在线窗口导航,不重放历史请求。',
|
|
770
|
+
mode: 'stream',
|
|
771
|
+
invocation: { kind: 'direct' },
|
|
772
|
+
parameters: [
|
|
773
|
+
{
|
|
774
|
+
name: 'sessionId',
|
|
775
|
+
description: '窗口当前显示的会话。',
|
|
776
|
+
source: 'json',
|
|
777
|
+
codec: {
|
|
778
|
+
mode: 'strict',
|
|
779
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
780
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_parameter_0$schema,
|
|
781
|
+
jsonSchema: {"type":"string"},
|
|
782
|
+
},
|
|
783
|
+
strictCodec: {
|
|
784
|
+
mode: 'strict',
|
|
785
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
786
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_parameter_0_strict$schema,
|
|
787
|
+
jsonSchema: {"type":"string"},
|
|
788
|
+
},
|
|
789
|
+
},
|
|
790
|
+
],
|
|
791
|
+
cancellation: { parameter: 'signal' },
|
|
792
|
+
result: {
|
|
793
|
+
mode: 'strict',
|
|
794
|
+
typeSymbol: '@myclaw163/clawclaw/types#NavigationFrame',
|
|
795
|
+
create: _deepseek_ai_dsh_experimental_clawclaw_clawclaw_watchNavigation_result$schema,
|
|
796
|
+
description: '当前连接收到的导航消息。',
|
|
797
|
+
jsonSchema: {"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"ready"}},"required":["type"],"additionalProperties":true},{"type":"object","properties":{"type":{"type":"string","const":"cancel"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":true},{"type":"object","properties":{"type":{"type":"string","const":"open"},"id":{"type":"string"},"sessionId":{"type":"string"},"page":{"type":"string","enum":["profile","game","preparation","leaderboard","level-tasks","highlight-matches","shop","wardrobe","game-intro","skills-hub"]}},"required":["type","id","sessionId","page"],"additionalProperties":true}]},
|
|
798
|
+
},
|
|
799
|
+
sourceLocation: {"file":"packages/experimental/clawclaw/src/controller.ts","line":30,"column":3},
|
|
800
|
+
},
|
|
801
|
+
},
|
|
802
|
+
}, z)
|
|
803
|
+
|
|
804
|
+
export const TYPERT = {
|
|
805
|
+
package: '@myclaw163/clawclaw',
|
|
806
|
+
face: 'host',
|
|
807
|
+
schemas: [
|
|
808
|
+
],
|
|
809
|
+
get invocations() { return $remote.descriptors },
|
|
810
|
+
model: {
|
|
811
|
+
"services": [
|
|
812
|
+
{
|
|
813
|
+
"description": "对局服务;模型回合取消不停止独立运行的 CCL owner。",
|
|
814
|
+
"summary": "对局服务;模型回合取消不停止独立运行的 CCL owner。",
|
|
815
|
+
"tags": [],
|
|
816
|
+
"jsDoc": "/** 对局服务;模型回合取消不停止独立运行的 CCL owner。 */",
|
|
817
|
+
"key": "clawclaw",
|
|
818
|
+
"exportName": "default",
|
|
819
|
+
"members": [
|
|
820
|
+
{
|
|
821
|
+
"kind": "property",
|
|
822
|
+
"name": "pageNavigator",
|
|
823
|
+
"signature": "readonly pageNavigator: PageNavigator = new PageNavigator()",
|
|
824
|
+
"summary": "在线窗口导航及确认的生命周期所有者。",
|
|
825
|
+
"jsDoc": "/** 在线窗口导航及确认的生命周期所有者。 */"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"kind": "method",
|
|
829
|
+
"name": "authenticated",
|
|
830
|
+
"signature": "async authenticated(signal: AbortSignal = this.lifetime.signal, sessionId?: SessionId): Promise<boolean>",
|
|
831
|
+
"summary": "查询 Desktop 授权账号对应的 CCL 本地登录状态。",
|
|
832
|
+
"jsDoc": "/** 查询 Desktop 授权账号对应的 CCL 本地登录状态。\n * @param signal - 调用取消信号;省略时仅随宿主生命周期取消。\n * @param sessionId - 调用所属会话;省略时仅执行宿主共享账号操作。\n * @returns CCL 是否已登录;参与态核对、绑定或状态查询失败时抛错,不返回凭据值。\n */"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"kind": "method",
|
|
836
|
+
"name": "syncGameAccount",
|
|
837
|
+
"signature": "async syncGameAccount(clawKey: string | null, confirm: boolean, sessionId?: SessionId): Promise<boolean>",
|
|
838
|
+
"summary": "同步当前游戏账号;当前实例仅成功选号才撤销登出请求,失败时保留;凭据仅供可信 UI,不进入模型日志。",
|
|
839
|
+
"jsDoc": "/** 同步当前游戏账号;当前实例仅成功选号才撤销登出请求,失败时保留;凭据仅供可信 UI,不进入模型日志。\n * @param clawKey - 当前游戏密钥;null 表示游戏退出登录;立即禁止后续认证操作,保留活动对局归属供清理;当前实例不自动恢复,重启后重新使用平台凭据授权。\n * @param confirm - 启动票据只核对账号,不覆盖用户之后选择的账号。\n * @param sessionId - 调用所属会话;省略时仅执行宿主共享账号操作。\n * @returns 生效账号是否变化;确认票据返回 false,登出成功或重新绑定同账号返回 true。\n */"
|
|
840
|
+
},
|
|
841
|
+
{
|
|
842
|
+
"kind": "method",
|
|
843
|
+
"name": "beginGameLogin",
|
|
844
|
+
"signature": "async beginGameLogin(sessionId: SessionId): Promise<{ state: string; url: string }>",
|
|
845
|
+
"summary": "发起独立的游戏 OpenID 授权,不读取或修改平台账号。",
|
|
846
|
+
"jsDoc": "/** 发起独立的游戏 OpenID 授权,不读取或修改平台账号。\n * @param sessionId - 用户发起授权的会话。\n * @returns 不含凭据的授权事务标识与浏览器入口。\n */"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"kind": "method",
|
|
850
|
+
"name": "completeGameLogin",
|
|
851
|
+
"signature": "async completeGameLogin(state: string): Promise<boolean>",
|
|
852
|
+
"summary": "等待游戏账号绑定;过期、取消或失败均不报告成功。",
|
|
853
|
+
"jsDoc": "/** 等待游戏账号绑定;过期、取消或失败均不报告成功。\n * @param state - 当前授权的随机 state。\n * @returns 是否完成游戏账号绑定。\n */"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"kind": "method",
|
|
857
|
+
"name": "cancelGameLogin",
|
|
858
|
+
"signature": "cancelGameLogin(state: string): void",
|
|
859
|
+
"summary": "取消指定游戏授权,迟到回调不能覆盖账号。",
|
|
860
|
+
"jsDoc": "/** 取消指定游戏授权,迟到回调不能覆盖账号。\n * @param state - 要取消的授权 state。\n */"
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
"kind": "method",
|
|
864
|
+
"name": "usePlatformGameAccount",
|
|
865
|
+
"signature": "async usePlatformGameAccount(): Promise<boolean>",
|
|
866
|
+
"summary": "显式重新授权以平台账号恢复游戏;需重新绑定时先核验并清理已结束的参与记录,普通 CLI 调用不覆盖游戏选择。",
|
|
867
|
+
"jsDoc": "/** 显式重新授权以平台账号恢复游戏;需重新绑定时先核验并清理已结束的参与记录,普通 CLI 调用不覆盖游戏选择。\n * @returns 生效账号是否变化,包括从登出状态恢复同一账号。\n */"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"kind": "method",
|
|
871
|
+
"name": "watchAccount",
|
|
872
|
+
"signature": "watchAccount(signal: AbortSignal): AsyncIterable<AccountState>",
|
|
873
|
+
"summary": "订阅本宿主共享账号,连接恢复时重新发送当前状态。",
|
|
874
|
+
"jsDoc": "/** 订阅本宿主共享账号,连接恢复时重新发送当前状态。\n * @param signal - 窗口连接生命周期。\n * @returns 不含凭据的登录状态。\n */"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"kind": "method",
|
|
878
|
+
"name": "participationSessions",
|
|
879
|
+
"signature": "participationSessions(): SessionId[]",
|
|
880
|
+
"summary": "读取需恢复或完成清理的会话,不用于拦截其他会话调用。",
|
|
881
|
+
"jsDoc": "/** 读取需恢复或完成清理的会话,不用于拦截其他会话调用。\n * @returns 持久参与会话列表。\n */"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"kind": "method",
|
|
885
|
+
"name": "hostContext",
|
|
886
|
+
"signature": "hostContext(sessionId: SessionId): { host_type: 'desktop'; host_instance_id: string; host_session_id: string; client_kind: 'official' | 'fork'; distribution_target: string }",
|
|
887
|
+
"summary": "返回页面与 CCL 共用的稳定宿主身份。",
|
|
888
|
+
"jsDoc": "/** 返回页面与 CCL 共用的稳定宿主身份。\n * @param sessionId - 调用所属会话,不取前台会话。\n * @returns 非凭据的宿主和会话标识。\n */"
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
"kind": "method",
|
|
892
|
+
"name": "spectatorPageUrl",
|
|
893
|
+
"signature": "spectatorPageUrl(sessionId: SessionId): string",
|
|
894
|
+
"summary": "获取无需认证或 CLI 的大厅入口,不等待账号操作队列。",
|
|
895
|
+
"jsDoc": "/** 获取无需认证或 CLI 的大厅入口,不等待账号操作队列。\n * @param sessionId - 页面所属会话。\n * @returns 无票据内容页;页面就绪后再请求登录信息。\n */"
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
"kind": "method",
|
|
899
|
+
"name": "spectatorUrl",
|
|
900
|
+
"signature": "async spectatorUrl(sessionId: SessionId): Promise<string>",
|
|
901
|
+
"summary": "获取当前会话大厅地址;仅对仍标记参与的会话尝试恢复,接续权限由 CCL 与服务端决定;失败不阻断大厅。",
|
|
902
|
+
"jsDoc": "/** 获取当前会话大厅地址;仅对仍标记参与的会话尝试恢复,接续权限由 CCL 与服务端决定;失败不阻断大厅。\n * @param sessionId - 页面所属会话。\n * @returns 大厅 URL;认证或票据失败时记录阶段诊断并返回带失败标记的无凭据内容页,保留账号和参与记录;插件卸载取消仍抛出原错误且不记失败日志。\n */"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"kind": "method",
|
|
906
|
+
"name": "requestAction",
|
|
907
|
+
"signature": "async requestAction(sessionId: SessionId, action: GameAction, language: 'zh-CN' | 'en-US'): Promise<void>",
|
|
908
|
+
"summary": "创建前校验只检查账号;其他页面操作进入真实会话收件箱,由技能和 CLI 执行。",
|
|
909
|
+
"jsDoc": "/** 创建前校验只检查账号;其他页面操作进入真实会话收件箱,由技能和 CLI 执行。\n * @param sessionId - 发起操作的会话。\n * @param action - 固定页面操作。\n * @param language - 当前平台界面语言。\n */"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"kind": "method",
|
|
913
|
+
"name": "contentUrl",
|
|
914
|
+
"signature": "async contentUrl(page: Exclude<Page, 'game'>, sessionId?: SessionId): Promise<string>",
|
|
915
|
+
"summary": "为内容页签发独立登录票据;不启动对局、不改变归属。",
|
|
916
|
+
"jsDoc": "/** 为内容页签发独立登录票据;不启动对局、不改变归属。\n * @param page - 固定内容页标识,不允许游戏页。\n * @param sessionId - 调用所属会话;省略时仅执行宿主共享账号操作。\n * @returns 交给可信内嵌页面消费的 URL;失败记录脱敏阶段诊断并继续抛出原错误,插件卸载取消不记失败日志。\n */"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"kind": "method",
|
|
920
|
+
"name": "validateBrowserPage",
|
|
921
|
+
"signature": "async validateBrowserPage(url: string, sessionId?: SessionId): Promise<void>",
|
|
922
|
+
"summary": "校验可信客户端的 Hub 目标与当前登录状态,不签发观战票据。",
|
|
923
|
+
"jsDoc": "/** 校验可信客户端的 Hub 目标与当前登录状态,不签发观战票据。\n * @param url - 客户端请求的 Hub 地址,必须匹配宿主配置的源站、路径和查询参数。\n * @param sessionId - 调用所属会话;省略时仅执行宿主共享账号操作。\n * @returns 校验完成;失败时不打开页面。\n */"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"kind": "method",
|
|
927
|
+
"name": "command",
|
|
928
|
+
"signature": "async command(agent: Agent, argv: readonly string[], signal: AbortSignal): Promise<string>",
|
|
929
|
+
"summary": "串行执行 CCL 命令;参与准入由 CLI 与服务端决定,插件仅跟踪进程与确认后的参与状态;取消与持久化失败仍上抛。 game watch 允许已建立托管进程但尚未确认参与的会话打开页面,不激活游戏标记。",
|
|
930
|
+
"jsDoc": "/**\n * 串行执行 CCL 命令;参与准入由 CLI 与服务端决定,插件仅跟踪进程与确认后的参与状态;取消与持久化失败仍上抛。\n * game watch 允许已建立托管进程但尚未确认参与的会话打开页面,不激活游戏标记。\n * @param agent - 发起调用的真实会话。\n * @param argv - 经宿主参数校验的 CLI 参数。\n * @param signal - 只取消有限命令和启动等待,不结束已运行对局。\n * @returns 可进入模型历史的无凭据输出。\n */"
|
|
931
|
+
}
|
|
932
|
+
],
|
|
933
|
+
"types": [
|
|
934
|
+
{
|
|
935
|
+
"name": "AccountState",
|
|
936
|
+
"declaration": "export interface AccountState {\n readonly revision: number;\n readonly loggedIn: boolean;\n readonly source?: SessionId;\n}"
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
"name": "AfterScheduleRecord",
|
|
940
|
+
"declaration": "export interface AfterScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'after';\n readonly title: string;\n readonly prompt: string;\n readonly afterSeconds: number;\n readonly scheduledAt: string;\n}"
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"name": "Agent",
|
|
944
|
+
"declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly model: Model;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"name": "AgentCancelCause",
|
|
948
|
+
"declaration": "export type AgentCancelCause = { readonly kind: 'user'; } | { readonly kind: 'parent'; } | { readonly kind: 'hook'; readonly reason: string; } | { readonly kind: 'disposed'; };"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"name": "AgentMessageSource",
|
|
952
|
+
"declaration": "export interface AgentMessageSource {\n readonly kind: 'agent-message';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
"name": "AgentOptions",
|
|
956
|
+
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId | undefined;\n maxTokens?: number;\n subagentDepth?: number;\n}"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"name": "AgentStatus",
|
|
960
|
+
"declaration": "export type AgentStatus = 'idle' | 'running';"
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
"name": "AllowedModelRoute",
|
|
964
|
+
"declaration": "export interface AllowedModelRoute {\n readonly provider: string;\n readonly model: string;\n}"
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
"name": "ApprovalOutcome",
|
|
968
|
+
"declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"name": "ApprovalPolicy",
|
|
972
|
+
"declaration": "export type ApprovalPolicy = 'ask' | 'never';"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"name": "ApprovalRequestId",
|
|
976
|
+
"declaration": "export type ApprovalRequestId = Branded<'ApprovalRequestId'>;"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"name": "AssistantMessage",
|
|
980
|
+
"declaration": "export interface AssistantMessage extends MessageBase {\n readonly role: 'assistant';\n readonly source: ModelMessageSource;\n}"
|
|
981
|
+
},
|
|
982
|
+
{
|
|
983
|
+
"name": "AssistantProviderMetadata",
|
|
984
|
+
"declaration": "export interface AssistantProviderMetadata {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
"name": "AssistantStreamRecord",
|
|
988
|
+
"declaration": "export type AssistantStreamRecord = { readonly type: 'text-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'reasoning-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'tool-call-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly id: ToolCallId; readonly name?: string; readonly args: readonly string[]; } | { readonly type: 'chunk'; readonly time: number; readonly chunk: StreamChunk; };"
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"name": "AtScheduleRecord",
|
|
992
|
+
"declaration": "export interface AtScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'at';\n readonly title: string;\n readonly prompt: string;\n readonly scheduledAt: string;\n}"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"name": "AttachmentId",
|
|
996
|
+
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
"name": "Branded",
|
|
1000
|
+
"declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
"name": "BrandedNumber",
|
|
1004
|
+
"declaration": "export type BrandedNumber<B extends string> = number & { readonly [BRAND]: B; };"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "BrowserPage",
|
|
1008
|
+
"declaration": "export type BrowserPage = keyof typeof browserPageCatalog;"
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"name": "CancelOptions",
|
|
1012
|
+
"declaration": "export interface CancelOptions {\n keepInbox?: boolean | undefined;\n}"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
"name": "CommandId",
|
|
1016
|
+
"declaration": "export type CommandId = Branded<'CommandId'>;"
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
"name": "CommandSource",
|
|
1020
|
+
"declaration": "export type CommandSource = CommandSourceMap[keyof CommandSourceMap];"
|
|
1021
|
+
},
|
|
1022
|
+
{
|
|
1023
|
+
"name": "CommandSourceMap",
|
|
1024
|
+
"declaration": "export interface CommandSourceMap {\n user: { kind: 'user'; };\n}"
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
"name": "CompactionCheckpointSource",
|
|
1028
|
+
"declaration": "export type CompactionCheckpointSource = typeof COMPACT_CHECKPOINT_MARKER & { readonly compactionId: CompactionId; readonly sourceCommandId?: CommandId; };"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"name": "CompactionId",
|
|
1032
|
+
"declaration": "export type CompactionId = Branded<'CompactionId'>;"
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"name": "ContentBlock",
|
|
1036
|
+
"declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"name": "ContentBlockMap",
|
|
1040
|
+
"declaration": "export interface ContentBlockMap {\n text: TextBlock;\n reasoning: ReasoningBlock;\n image: ImageBlock;\n file: FileBlock;\n 'tool-call': ToolCallBlock;\n 'tool-addition': ToolAdditionBlock;\n 'tool-removal': ToolRemovalBlock;\n}"
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"name": "ContentBlockType",
|
|
1044
|
+
"declaration": "export type ContentBlockType = keyof ContentBlockMap;"
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"name": "ContextFormed",
|
|
1048
|
+
"declaration": "export type ContextFormed = { readonly form?: never; } | { readonly form: 'instructions'; } | { readonly form: 'catalog'; } | { readonly form: 'snapshot'; readonly sections: readonly ContextSnapshotSection[]; } | { readonly form: 'notice'; readonly summary: string; } | { readonly form: 'relay'; } | { readonly form: 'recall'; };"
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
"name": "ContextSnapshotSection",
|
|
1052
|
+
"declaration": "export interface ContextSnapshotSection {\n readonly name: string;\n readonly text: string;\n}"
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "ContinuableSubagentDescriptorData",
|
|
1056
|
+
"declaration": "export interface ContinuableSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'continuable';\n readonly label: string;\n readonly agentProvider?: string;\n readonly agentModel?: string;\n readonly agentReasoningEffort?: ReasoningEffortId;\n readonly persona?: string;\n readonly toolFilter?: ToolRestriction;\n}"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"name": "DeveloperMessage",
|
|
1060
|
+
"declaration": "export interface DeveloperMessage extends MessageBase {\n readonly role: 'developer';\n}"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"name": "EpochHeader",
|
|
1064
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
1065
|
+
},
|
|
1066
|
+
{
|
|
1067
|
+
"name": "EveryScheduleDispatchChange",
|
|
1068
|
+
"declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"name": "EveryScheduleRecord",
|
|
1072
|
+
"declaration": "export interface EveryScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'every';\n readonly title: string;\n readonly prompt: string;\n readonly everySeconds: number;\n readonly scheduledAt: string;\n}"
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
"name": "FeedbackCategory",
|
|
1076
|
+
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
"name": "FeedbackRecord",
|
|
1080
|
+
"declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
"name": "FileAttachmentRef",
|
|
1084
|
+
"declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
"name": "FileBlock",
|
|
1088
|
+
"declaration": "export interface FileBlock {\n type: 'file';\n attachment: FileAttachmentRef;\n}"
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
"name": "FinishReason",
|
|
1092
|
+
"declaration": "export type FinishReason = FinishReasonMap[keyof FinishReasonMap];"
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"name": "FinishReasonMap",
|
|
1096
|
+
"declaration": "export interface FinishReasonMap {\n stop: { kind: 'stop'; };\n 'tool-calls': { kind: 'tool-calls'; };\n 'max-tokens': { kind: 'max-tokens'; };\n aborted: { kind: 'aborted'; failure: LlmFailure; };\n error: { kind: 'error'; failure: LlmFailure; };\n}"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"name": "GameAction",
|
|
1100
|
+
"declaration": "export type GameAction = 'prepare-room-creation' | 'start-ranked-match' | 'resume-current-participation' | 'quit-match' | 'create-friend-room' | 'create-training-room' | 'start-competition';"
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
"name": "GoalBlockReason",
|
|
1104
|
+
"declaration": "export interface GoalBlockReason {\n readonly code: string;\n readonly message: string;\n}"
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"name": "GoalChangeMeta",
|
|
1108
|
+
"declaration": "export type GoalChangeMeta = GoalSnapshotChangeMeta | GoalClearChangeMeta;"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"name": "GoalClearChangeMeta",
|
|
1112
|
+
"declaration": "export interface GoalClearChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: 'clear';\n readonly cleared: GoalRef;\n readonly clearedAt: number;\n}"
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
"name": "GoalId",
|
|
1116
|
+
"declaration": "export type GoalId = Branded<'GoalId'>;"
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
"name": "GoalMessageSource",
|
|
1120
|
+
"declaration": "export interface GoalMessageSource {\n readonly kind: 'goal';\n readonly goalId: GoalId;\n readonly revision: number;\n readonly round: number;\n}"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
"name": "GoalOperation",
|
|
1124
|
+
"declaration": "export type GoalOperation = 'create' | 'edit' | 'pause' | 'resume' | 'complete' | 'block' | 'clear';"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"name": "GoalPhase",
|
|
1128
|
+
"declaration": "export type GoalPhase = 'active' | 'paused' | 'blocked' | 'complete';"
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
"name": "GoalRef",
|
|
1132
|
+
"declaration": "export interface GoalRef {\n readonly id: GoalId;\n readonly revision: number;\n}"
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
"name": "GoalSnapshot",
|
|
1136
|
+
"declaration": "export interface GoalSnapshot extends GoalRef {\n readonly objective: string;\n readonly phase: GoalPhase;\n readonly blockedReason?: GoalBlockReason;\n readonly maxGoalRounds: number;\n}"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
"name": "GoalSnapshotChangeMeta",
|
|
1140
|
+
"declaration": "export interface GoalSnapshotChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: Exclude<GoalOperation, 'clear'>;\n readonly goal: GoalSnapshot;\n readonly roundsStarted: number;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"name": "ImageAttachmentRef",
|
|
1144
|
+
"declaration": "export interface ImageAttachmentRef {\n attachmentId: AttachmentId;\n mediaType: ImageMediaType;\n bytes: number;\n width: number;\n height: number;\n name?: string;\n originalDimensions?: { width: number; height: number; };\n}"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"name": "ImageBlock",
|
|
1148
|
+
"declaration": "export interface ImageBlock {\n type: 'image';\n attachment: ImageAttachmentRef;\n offloaded?: true;\n}"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"name": "ImageMediaType",
|
|
1152
|
+
"declaration": "export type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';"
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"name": "ImageOffloadTarget",
|
|
1156
|
+
"declaration": "export interface ImageOffloadTarget {\n seq: SessionSeq;\n imageIndexes: number[];\n}"
|
|
1157
|
+
},
|
|
1158
|
+
{
|
|
1159
|
+
"name": "Inbox",
|
|
1160
|
+
"declaration": "export interface Inbox {\n readonly nextTurn: readonly UserMessage[];\n readonly nextStep: readonly UserMessage[];\n clear(): void;\n append(target: InboxTarget, message: UserMessage): void;\n prepend(target: InboxTarget, message: UserMessage): void;\n replace(messageId: MessageId, newMessage: UserMessage): boolean;\n remove(messageId: MessageId): boolean;\n splice(target: InboxTarget, start: number, deleteCount: number, inserted: UserMessage[]): UserMessage[];\n}"
|
|
1161
|
+
},
|
|
1162
|
+
{
|
|
1163
|
+
"name": "InboxTarget",
|
|
1164
|
+
"declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"name": "JobId",
|
|
1168
|
+
"declaration": "export type JobId = Branded<'JobId'>;"
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"name": "JobOutcome",
|
|
1172
|
+
"declaration": "export interface JobOutcome {\n status: 'completed' | 'killed' | 'failed';\n detail?: string;\n result?: string;\n}"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"name": "JobRegisteredData",
|
|
1176
|
+
"declaration": "export interface JobRegisteredData {\n readonly jobId: JobId;\n readonly owner: SessionId;\n readonly kind: string;\n readonly label: string;\n readonly startedAt: number;\n readonly toolCall?: JobToolCall;\n}"
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"name": "JobSettleCause",
|
|
1180
|
+
"declaration": "export type JobSettleCause = 'producer' | 'kill' | 'teardown';"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"name": "JobSettledData",
|
|
1184
|
+
"declaration": "export interface JobSettledData extends JobRegisteredData {\n readonly finishedAt: number;\n readonly status: JobOutcome['status'];\n readonly cause: JobSettleCause;\n readonly producerReported: boolean;\n readonly detail?: string;\n}"
|
|
1185
|
+
},
|
|
1186
|
+
{
|
|
1187
|
+
"name": "JobToolCall",
|
|
1188
|
+
"declaration": "export interface JobToolCall {\n readonly callId: SessionEventMap['tool/call']['callId'];\n readonly rootCallId: SessionEventMap['tool/call']['callId'];\n}"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"name": "JsonValue",
|
|
1192
|
+
"declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
|
|
1193
|
+
},
|
|
1194
|
+
{
|
|
1195
|
+
"name": "KnownCatalogMode",
|
|
1196
|
+
"declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"name": "LegacyAfterScheduleRecord",
|
|
1200
|
+
"declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1201
|
+
},
|
|
1202
|
+
{
|
|
1203
|
+
"name": "LegacyAtScheduleRecord",
|
|
1204
|
+
"declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1205
|
+
},
|
|
1206
|
+
{
|
|
1207
|
+
"name": "LegacyEveryScheduleRecord",
|
|
1208
|
+
"declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"name": "LegacyScheduleRecord",
|
|
1212
|
+
"declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"name": "LlmCallConfig",
|
|
1216
|
+
"declaration": "export interface LlmCallConfig extends LlmCallControls {\n provider: string;\n model: string;\n}"
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
"name": "LlmCallConfigAdapterDefaults",
|
|
1220
|
+
"declaration": "export interface LlmCallConfigAdapterDefaults {\n reasoningEffort?: true;\n maxTokens?: true;\n}"
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"name": "LlmCallControls",
|
|
1224
|
+
"declaration": "export interface LlmCallControls {\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"name": "LlmFailure",
|
|
1228
|
+
"declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n readonly offloadImages?: number;\n}"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"name": "LlmRetryEventData",
|
|
1232
|
+
"declaration": "export type LlmRetryEventData = { retryId: RetryId; turn: number; step: number; provider: string; mode: 'normal'; policyKey: string; retry: number; maxRetries: number; delayMs: number; failure: LlmFailure; } | { retryId: RetryId; turn: number; step: number; provider: string; mode: 'always'; policyKey: string; retry: number; delayMs: number; failure: LlmFailure; };"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"name": "LlmRetryStartedEventData",
|
|
1236
|
+
"declaration": "export interface LlmRetryStartedEventData {\n retryId: RetryId;\n turn: number;\n step: number;\n retry: number;\n}"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"name": "Message",
|
|
1240
|
+
"declaration": "export type Message = MessageRoleMap[keyof MessageRoleMap];"
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
"name": "MessageBase",
|
|
1244
|
+
"declaration": "export interface MessageBase {\n readonly id: MessageId;\n readonly content: readonly ContentBlock[];\n readonly source: MessageSource;\n}"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"name": "MessageFeedbackDelete",
|
|
1248
|
+
"declaration": "export interface MessageFeedbackDelete {\n readonly sessionId: SessionId;\n readonly messageId: MessageId;\n}"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"name": "MessageFeedbackItem",
|
|
1252
|
+
"declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly category?: FeedbackCategory;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"name": "MessageFeedbackPut",
|
|
1256
|
+
"declaration": "export interface MessageFeedbackPut {\n readonly sessionId: SessionId;\n readonly item: MessageFeedbackItem;\n}"
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
"name": "MessageFeedbackRating",
|
|
1260
|
+
"declaration": "export type MessageFeedbackRating = 'positive' | 'negative';"
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"name": "MessageFeedbackVersion",
|
|
1264
|
+
"declaration": "export type MessageFeedbackVersion = Branded<'MessageFeedbackVersion'>;"
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"name": "MessageId",
|
|
1268
|
+
"declaration": "export type MessageId = Branded<'MessageId'>;"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"name": "MessageRoleMap",
|
|
1272
|
+
"declaration": "export interface MessageRoleMap {\n system: SystemMessage;\n developer: DeveloperMessage;\n user: UserMessage;\n assistant: AssistantMessage;\n tool: ToolResultMessage;\n}"
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"name": "MessageSource",
|
|
1276
|
+
"declaration": "export type MessageSource = MessageSourceMap[keyof MessageSourceMap];"
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
"name": "MessageSourceMap",
|
|
1280
|
+
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'tool-registry': { kind: 'tool-registry'; };\n 'action-cards': { kind: 'action-cards'; through: SessionSeq; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'team-message': TeamMessageSource;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'retry-rpc': { kind: 'retry'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'skill-invocation': SkillInvocationSource;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n 'clawclaw-missing-cli': { kind: 'clawclaw-missing-cli'; };\n clawclaw: { kind: 'clawclaw'; deliveryId: string; };\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"name": "Model",
|
|
1284
|
+
"declaration": "export interface Model {\n current(): Readonly<ModelSelection> | undefined;\n select(selection: Readonly<ModelSelection>): void;\n}"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"name": "ModelMessageSource",
|
|
1288
|
+
"declaration": "export interface ModelMessageSource extends AssistantProviderMetadata {\n kind: 'model';\n}"
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"name": "ModelSelection",
|
|
1292
|
+
"declaration": "export interface ModelSelection {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n}"
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
"name": "NavigationFrame",
|
|
1296
|
+
"declaration": "export type NavigationFrame = { readonly type: 'ready'; } | { readonly type: 'cancel'; readonly id: ToolCallId; } | { readonly type: 'open'; readonly id: ToolCallId; readonly sessionId: SessionId; readonly page: Page | BrowserPage; };"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"name": "NavigationOutcome",
|
|
1300
|
+
"declaration": "export type NavigationOutcome = NavigationStatus | 'client-unavailable' | 'multiple-clients' | 'busy' | 'unconfirmed';"
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
"name": "NavigationStatus",
|
|
1304
|
+
"declaration": "export type NavigationStatus = 'opened' | 'focused' | 'login-required' | 'unconfirmed';"
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
"name": "OneShotScheduleDispatchChange",
|
|
1308
|
+
"declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"name": "OneShotSubagentDescriptorData",
|
|
1312
|
+
"declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
|
|
1313
|
+
},
|
|
1314
|
+
{
|
|
1315
|
+
"name": "OptionalSessionSeq",
|
|
1316
|
+
"declaration": "export type OptionalSessionSeq = SessionSeq | null;"
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
"name": "Page",
|
|
1320
|
+
"declaration": "export type Page = keyof typeof pageCatalog;"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"name": "PageNavigator",
|
|
1324
|
+
"declaration": "export class PageNavigator {\n watch(sessionId: SessionId, signal: AbortSignal): AsyncIterable<NavigationFrame>;\n open(request: Extract<NavigationFrame, { type: 'open'; }>, signal: AbortSignal, timeoutMs: number): Promise<NavigationOutcome>;\n complete(sessionId: SessionId, id: ToolCallId, status: NavigationStatus): void;\n}"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"name": "Principal",
|
|
1328
|
+
"declaration": "export type Principal = PrincipalMap[keyof PrincipalMap];"
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"name": "PrincipalMap",
|
|
1332
|
+
"declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n 'share-viewer': ShareViewerPrincipal;\n}"
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"name": "ProviderRequestId",
|
|
1336
|
+
"declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"name": "PtcDispatchEventData",
|
|
1340
|
+
"declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n meta?: JsonValue;\n error?: { name: string; code: string; reason?: string; };\n}"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"name": "PtcDispatchStartEventData",
|
|
1344
|
+
"declaration": "export interface PtcDispatchStartEventData {\n rootCallId: ToolCallId;\n parentCallId: ToolCallId;\n subCallId: ToolCallId;\n name: string;\n arguments: unknown;\n}"
|
|
1345
|
+
},
|
|
1346
|
+
{
|
|
1347
|
+
"name": "ReasoningBlock",
|
|
1348
|
+
"declaration": "export interface ReasoningBlock {\n type: 'reasoning';\n text: string;\n}"
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
"name": "ReasoningEffortId",
|
|
1352
|
+
"declaration": "export type ReasoningEffortId = Branded<'ReasoningEffortId'>;"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"name": "ReplayEnvelope",
|
|
1356
|
+
"declaration": "export interface ReplayEnvelope {\n response: unknown;\n blocks?: readonly unknown[];\n}"
|
|
1357
|
+
},
|
|
1358
|
+
{
|
|
1359
|
+
"name": "RequestContext",
|
|
1360
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
|
|
1361
|
+
},
|
|
1362
|
+
{
|
|
1363
|
+
"name": "RequestHeaderReason",
|
|
1364
|
+
"declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
|
|
1365
|
+
},
|
|
1366
|
+
{
|
|
1367
|
+
"name": "RetryId",
|
|
1368
|
+
"declaration": "export type RetryId = Branded<'RetryId'>;"
|
|
1369
|
+
},
|
|
1370
|
+
{
|
|
1371
|
+
"name": "SandboxMode",
|
|
1372
|
+
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
1373
|
+
},
|
|
1374
|
+
{
|
|
1375
|
+
"name": "ScheduleChange",
|
|
1376
|
+
"declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"name": "ScheduleCreateChange",
|
|
1380
|
+
"declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
|
|
1381
|
+
},
|
|
1382
|
+
{
|
|
1383
|
+
"name": "ScheduleDeleteChange",
|
|
1384
|
+
"declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"name": "ScheduleDispatchChange",
|
|
1388
|
+
"declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
|
|
1389
|
+
},
|
|
1390
|
+
{
|
|
1391
|
+
"name": "ScheduleId",
|
|
1392
|
+
"declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"name": "Session",
|
|
1396
|
+
"declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n get currentBatchPublication(): SessionEvent | undefined;\n append(inputs: readonly SessionEventInput[]): readonly SessionEvent[];\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"name": "SessionEvent",
|
|
1400
|
+
"declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? SurfaceIntent<K> : { surfaceOp?: never; sourceEventSeqs?: never; }) }[T];"
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"name": "SessionEventInput",
|
|
1404
|
+
"declaration": "export type SessionEventInput = { [K in SessionEventType]: readonly [type: K, data: SessionEventMap[K], ...opts: K extends SurfaceEventType ? [opts: SurfaceIntent<K>] : []] }[SessionEventType];"
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
"name": "SessionEventMap",
|
|
1408
|
+
"declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'model/selection': ModelSelection;\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'agent-preset/selected': { agentPreset: string; };\n 'team/mode': { enabled: boolean; };\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'working-directory/change': { cwd: string; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'session-log-deepseek/delivery-accepted': { sessionId: import('@deepseek-ai/dsh-session/types').SessionId; sessionFormatVersion?: number; throughSeq: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n}"
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"name": "SessionEventType",
|
|
1412
|
+
"declaration": "export type SessionEventType = keyof SessionEventMap;"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"name": "SessionHeader",
|
|
1416
|
+
"declaration": "export interface SessionHeader {\n readonly version: typeof SESSION_FORMAT_VERSION;\n readonly id: SessionId;\n readonly createdAt: number;\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly isSeeded: boolean;\n readonly origin?: 'subagent';\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"name": "SessionId",
|
|
1420
|
+
"declaration": "export type SessionId = Branded<'SessionId'>;"
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
"name": "SessionLogOffset",
|
|
1424
|
+
"declaration": "export type SessionLogOffset = BrandedNumber<'SessionLogOffset'>;"
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"name": "SessionReferenceSource",
|
|
1428
|
+
"declaration": "export interface SessionReferenceSource {\n kind: 'session-reference';\n form: 'recall';\n version: 1;\n references: { sessionId: string; label: string; capturedFormatVersion?: number; capturedThroughSeq: OptionalSessionSeq; compacted: boolean; originalMessages: number; retainedMessages: number; omittedMessages: number; omittedBytes: number; truncated: boolean; inputIndex: number; }[];\n}"
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"name": "SessionRequestId",
|
|
1432
|
+
"declaration": "export type SessionRequestId = Branded<'session-request-id'>;"
|
|
1433
|
+
},
|
|
1434
|
+
{
|
|
1435
|
+
"name": "SessionSeq",
|
|
1436
|
+
"declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"name": "SessionSurface",
|
|
1440
|
+
"declaration": "export interface SessionSurface {\n readonly nodes: readonly SessionSeq[];\n readonly replaceGeneration: number;\n readonly contentGeneration: number;\n}"
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
"name": "SessionTitleEventData",
|
|
1444
|
+
"declaration": "export interface SessionTitleEventData {\n readonly title: string;\n readonly messageSeqs: SessionSeq[];\n readonly source: SessionTitleSource;\n}"
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"name": "SessionTitleModelIdentity",
|
|
1448
|
+
"declaration": "export interface SessionTitleModelIdentity {\n readonly provider: string;\n readonly model: string;\n}"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
"name": "SessionTitleProviderId",
|
|
1452
|
+
"declaration": "export type SessionTitleProviderId = Branded<'SessionTitleProviderId'>;"
|
|
1453
|
+
},
|
|
1454
|
+
{
|
|
1455
|
+
"name": "SessionTitleSource",
|
|
1456
|
+
"declaration": "export type SessionTitleSource = { readonly kind: 'fallback'; } | { readonly kind: 'provider'; readonly provider: SessionTitleProviderId; readonly model?: SessionTitleModelIdentity; } | { readonly kind: 'user'; };"
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"name": "ShareViewerPrincipal",
|
|
1460
|
+
"declaration": "export interface ShareViewerPrincipal {\n readonly kind: 'share-viewer';\n readonly shareId: string;\n readonly actor: { readonly providerId: string; readonly tenantId: string; readonly subjectId: string; readonly displayName?: string; };\n}"
|
|
1461
|
+
},
|
|
1462
|
+
{
|
|
1463
|
+
"name": "SkillInvocationSource",
|
|
1464
|
+
"declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"name": "StreamChunk",
|
|
1468
|
+
"declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: ToolCallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: ReplayEnvelope; };"
|
|
1469
|
+
},
|
|
1470
|
+
{
|
|
1471
|
+
"name": "SubagentCatalogEvent",
|
|
1472
|
+
"declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })) | { readonly version: 2; readonly mode: 'external'; readonly label?: string; } | ({ readonly version: 3; readonly name: string; } & ({ readonly mode: 'continuable'; readonly label: string; } | { readonly mode: 'external'; readonly label?: string; })));"
|
|
1473
|
+
},
|
|
1474
|
+
{
|
|
1475
|
+
"name": "SubagentDescriptorBase",
|
|
1476
|
+
"declaration": "export interface SubagentDescriptorBase {\n readonly version: number;\n readonly mode: 'one-shot' | 'continuable';\n readonly provider: string;\n}"
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "SubagentDescriptorData",
|
|
1480
|
+
"declaration": "export type SubagentDescriptorData = OneShotSubagentDescriptorData | ContinuableSubagentDescriptorData;"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"name": "SubagentResult",
|
|
1484
|
+
"declaration": "export interface SubagentResult {\n readonly output: readonly ContentBlock[];\n readonly structured?: unknown;\n readonly diagnostic?: string;\n readonly stopReason: SubagentStopReason;\n}"
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
"name": "SubagentSettledMessageSource",
|
|
1488
|
+
"declaration": "export interface SubagentSettledMessageSource {\n readonly kind: 'subagent-settled';\n readonly form: 'notice';\n readonly summary: string;\n readonly stopReason?: SubagentResult['stopReason'];\n readonly senderSessionId: SessionId;\n}"
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
"name": "SubagentStopReason",
|
|
1492
|
+
"declaration": "export type SubagentStopReason = SubagentStopReasonMap[keyof SubagentStopReasonMap];"
|
|
1493
|
+
},
|
|
1494
|
+
{
|
|
1495
|
+
"name": "SubagentStopReasonMap",
|
|
1496
|
+
"declaration": "export interface SubagentStopReasonMap {\n completed: 'completed';\n aborted: 'aborted';\n error: 'error';\n 'max-tokens': 'max-tokens';\n refusal: 'refusal';\n}"
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
"name": "SurfaceEventType",
|
|
1500
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'developer/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"name": "SurfaceIntent",
|
|
1504
|
+
"declaration": "export type SurfaceIntent<T extends SurfaceEventType = SurfaceEventType> = { surfaceOp: SurfaceOp; } & (T extends 'assistant/message' ? { sourceEventSeqs?: never; } : { sourceEventSeqs?: SessionSeq[]; });"
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"name": "SurfaceOp",
|
|
1508
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
|
|
1509
|
+
},
|
|
1510
|
+
{
|
|
1511
|
+
"name": "SystemMessage",
|
|
1512
|
+
"declaration": "export interface SystemMessage extends MessageBase {\n readonly role: 'system';\n readonly source: MessageSourceMap['system-prompt'];\n}"
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
"name": "SystemPromptMessageSource",
|
|
1516
|
+
"declaration": "export interface SystemPromptMessageSource {\n kind: 'system-prompt';\n}"
|
|
1517
|
+
},
|
|
1518
|
+
{
|
|
1519
|
+
"name": "SystemPromptUpdate",
|
|
1520
|
+
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
"name": "TeamId",
|
|
1524
|
+
"declaration": "export type TeamId = Branded<'TeamId'>;"
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
"name": "TeamMemberPhase",
|
|
1528
|
+
"declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
"name": "TeamMemberSnapshot",
|
|
1532
|
+
"declaration": "export interface TeamMemberSnapshot {\n readonly id: SessionId;\n readonly name: string;\n readonly description: string;\n readonly provider: string;\n readonly context: 'fresh' | 'fork';\n readonly phase: TeamMemberPhase;\n readonly error?: string;\n}"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"name": "TeamMessageId",
|
|
1536
|
+
"declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
|
|
1537
|
+
},
|
|
1538
|
+
{
|
|
1539
|
+
"name": "TeamMessageSnapshot",
|
|
1540
|
+
"declaration": "export interface TeamMessageSnapshot {\n readonly id: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n readonly targetId: SessionId;\n readonly content: ContentBlock[];\n}"
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
"name": "TeamMessageSource",
|
|
1544
|
+
"declaration": "export interface TeamMessageSource {\n readonly kind: 'team-message';\n readonly teamId: TeamId;\n readonly messageId: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n}"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
"name": "TeamTaskId",
|
|
1548
|
+
"declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
"name": "TeamTaskSnapshot",
|
|
1552
|
+
"declaration": "export interface TeamTaskSnapshot {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly ownerId?: SessionId;\n readonly ownerName?: string;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n}"
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
"name": "TeamTaskStatus",
|
|
1556
|
+
"declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
"name": "TextBlock",
|
|
1560
|
+
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
"name": "TodoItem",
|
|
1564
|
+
"declaration": "export interface TodoItem {\n content: string;\n status: 'pending' | 'in_progress' | 'completed';\n}"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
"name": "TokenUsage",
|
|
1568
|
+
"declaration": "export interface TokenUsage {\n inputTokens: number;\n outputTokens: number;\n totalTokens?: number;\n cacheReadTokens?: number;\n cacheWriteTokens?: number;\n reasoningTokens?: number;\n}"
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
"name": "ToolAdditionBlock",
|
|
1572
|
+
"declaration": "export interface ToolAdditionBlock {\n type: 'tool-addition';\n toolName: string;\n tool?: never;\n}"
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
"name": "ToolCallBlock",
|
|
1576
|
+
"declaration": "export interface ToolCallBlock {\n type: 'tool-call';\n id: ToolCallId;\n name: string;\n arguments: string;\n}"
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
"name": "ToolCallId",
|
|
1580
|
+
"declaration": "export type ToolCallId = Branded<'ToolCallId'>;"
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
"name": "ToolHistory",
|
|
1584
|
+
"declaration": "export interface ToolHistory {\n readonly tools: readonly ToolSchema[];\n readonly updates: readonly { readonly messageId: MessageId; readonly additions: readonly ToolSchema[]; }[];\n}"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
"name": "ToolMessageSource",
|
|
1588
|
+
"declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: ToolCallId;\n}"
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
"name": "ToolRemovalBlock",
|
|
1592
|
+
"declaration": "export interface ToolRemovalBlock {\n type: 'tool-removal';\n toolName: string;\n}"
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
"name": "ToolRestriction",
|
|
1596
|
+
"declaration": "export interface ToolRestriction {\n readonly allow?: readonly string[];\n readonly deny?: readonly string[];\n}"
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
"name": "ToolResultMessage",
|
|
1600
|
+
"declaration": "export interface ToolResultMessage extends MessageBase {\n readonly role: 'tool';\n readonly source: ToolMessageSource;\n readonly toolCallId: ToolCallId;\n readonly isError?: boolean;\n}"
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
"name": "ToolSchema",
|
|
1604
|
+
"declaration": "export interface ToolSchema {\n deferLoading?: true;\n name: string;\n description: string;\n parameters: Record<string, unknown>;\n}"
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
"name": "TurnEndCancelCause",
|
|
1608
|
+
"declaration": "export type TurnEndCancelCause = AgentCancelCause | { readonly kind: 'legacy'; };"
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"name": "TurnEndReason",
|
|
1612
|
+
"declaration": "export type TurnEndReason = TurnEndReasonMap[keyof TurnEndReasonMap];"
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
"name": "TurnEndReasonMap",
|
|
1616
|
+
"declaration": "export interface TurnEndReasonMap {\n completed: { kind: 'completed'; };\n aborted: { kind: 'aborted'; reason: TurnEndCancelCause; };\n blocked: { kind: 'blocked'; };\n error: { kind: 'error'; error: LlmFailure; };\n 'max-tokens': { kind: 'max-tokens'; };\n interrupted: { kind: 'interrupted'; };\n forked: { kind: 'forked'; };\n}"
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
"name": "UserMessage",
|
|
1620
|
+
"declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
"name": "WebhookDeliveryId",
|
|
1624
|
+
"declaration": "export type WebhookDeliveryId = Branded<'WebhookDeliveryId'>;"
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"name": "WebhookRuleId",
|
|
1628
|
+
"declaration": "export type WebhookRuleId = Branded<'WebhookRuleId'>;"
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
"name": "WebhookSourceId",
|
|
1632
|
+
"declaration": "export type WebhookSourceId = Branded<'WebhookSourceId'>;"
|
|
1633
|
+
}
|
|
1634
|
+
]
|
|
1635
|
+
}
|
|
1636
|
+
],
|
|
1637
|
+
"events": [],
|
|
1638
|
+
"objects": []
|
|
1639
|
+
},
|
|
1640
|
+
}
|