@khorsheed/dsh-game 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/README.en.md +53 -0
- package/README.i18n.yaml +6 -0
- package/README.md +52 -2
- package/cordis.patch.yml +23 -0
- package/lib/client.js +30348 -0
- package/lib/index.js +4154 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +3769 -0
- package/lib/typert.remote-client.d.ts +101 -0
- package/lib/typert.remote-client.js +2082 -0
- package/lib/types/agent.d.ts +20 -0
- package/lib/types/agent.js +42 -0
- package/lib/types/checks.d.ts +44 -0
- package/lib/types/checks.js +267 -0
- package/lib/types/client/DesignView.d.ts +22 -0
- package/lib/types/client/DesignView.js +134 -0
- package/lib/types/client/ElementsView.d.ts +21 -0
- package/lib/types/client/ElementsView.js +187 -0
- package/lib/types/client/GameTab.d.ts +14 -0
- package/lib/types/client/GameTab.js +256 -0
- package/lib/types/client/PlayFrame.d.ts +54 -0
- package/lib/types/client/PlayFrame.js +129 -0
- package/lib/types/client/PlayView.d.ts +19 -0
- package/lib/types/client/PlayView.js +161 -0
- package/lib/types/client/Preview3D.d.ts +50 -0
- package/lib/types/client/Preview3D.js +176 -0
- package/lib/types/client/ProjectSwitcher.d.ts +20 -0
- package/lib/types/client/ProjectSwitcher.js +75 -0
- package/lib/types/client/Recipe3DEditor.d.ts +19 -0
- package/lib/types/client/Recipe3DEditor.js +44 -0
- package/lib/types/client/StyleGallery.d.ts +18 -0
- package/lib/types/client/StyleGallery.js +27 -0
- package/lib/types/client/TurnCard.d.ts +62 -0
- package/lib/types/client/TurnCard.js +100 -0
- package/lib/types/client/VersionsView.d.ts +17 -0
- package/lib/types/client/VersionsView.js +68 -0
- package/lib/types/client/chat-node.d.ts +42 -0
- package/lib/types/client/chat-node.js +77 -0
- package/lib/types/client/contract.d.ts +125 -0
- package/lib/types/client/contract.js +6 -0
- package/lib/types/client/definition.d.ts +22 -0
- package/lib/types/client/definition.js +28 -0
- package/lib/types/client/index.d.ts +21 -0
- package/lib/types/client/index.js +229 -0
- package/lib/types/client/locales.d.ts +376 -0
- package/lib/types/client/locales.js +727 -0
- package/lib/types/client/looks.d.ts +36 -0
- package/lib/types/client/looks.js +105 -0
- package/lib/types/client/markdown.d.ts +11 -0
- package/lib/types/client/markdown.js +52 -0
- package/lib/types/client/preset-visibility.d.ts +94 -0
- package/lib/types/client/preset-visibility.js +115 -0
- package/lib/types/client/preview-entry.d.ts +24 -0
- package/lib/types/client/preview-entry.js +107 -0
- package/lib/types/client/refs.d.ts +36 -0
- package/lib/types/client/refs.js +44 -0
- package/lib/types/client/style-samples.d.ts +5 -0
- package/lib/types/client/style-samples.js +196 -0
- package/lib/types/fsutil.d.ts +26 -0
- package/lib/types/fsutil.js +104 -0
- package/lib/types/hooks.d.ts +83 -0
- package/lib/types/hooks.js +108 -0
- package/lib/types/index.d.ts +30 -0
- package/lib/types/index.js +22 -0
- package/lib/types/kits/canvas2d.d.ts +6 -0
- package/lib/types/kits/canvas2d.js +60 -0
- package/lib/types/kits/ids.d.ts +11 -0
- package/lib/types/kits/ids.js +6 -0
- package/lib/types/kits/index.d.ts +26 -0
- package/lib/types/kits/index.js +28 -0
- package/lib/types/kits/three3d.d.ts +12 -0
- package/lib/types/kits/three3d.js +188 -0
- package/lib/types/kits/types.d.ts +52 -0
- package/lib/types/kits/types.js +6 -0
- package/lib/types/look3d.d.ts +20 -0
- package/lib/types/look3d.js +175 -0
- package/lib/types/panel-session.d.ts +21 -0
- package/lib/types/panel-session.js +16 -0
- package/lib/types/project.d.ts +132 -0
- package/lib/types/project.js +494 -0
- package/lib/types/remote.d.ts +182 -0
- package/lib/types/remote.js +256 -0
- package/lib/types/skills.d.ts +13 -0
- package/lib/types/skills.js +140 -0
- package/lib/types/store.d.ts +325 -0
- package/lib/types/store.js +1285 -0
- package/lib/types/tools.d.ts +12 -0
- package/lib/types/tools.js +301 -0
- package/lib/types/trash.d.ts +5 -0
- package/lib/types/trash.js +64 -0
- package/lib/types/types.d.ts +522 -0
- package/lib/types/types.js +85 -0
- package/lib/types/vfs.d.ts +92 -0
- package/lib/types/vfs.js +217 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +132 -3
- package/runtime/dsh3d.js +1279 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
|
|
2
|
+
import type {
|
|
3
|
+
RemoteResult,
|
|
4
|
+
TypertRemoteInfo,
|
|
5
|
+
TypertRemoteMethod,
|
|
6
|
+
} from '@deepseek-ai/dsh-typert-protocol'
|
|
7
|
+
import type { SessionId } from '@deepseek-ai/dsh-session/types'
|
|
8
|
+
import type { BundleFile, CommitResult, DeleteProjectResult, GameResult, PlayBundle, ProjectCard, SessionGameState, TurnReport, VersionDiff, WorkingChanges } from '@khorsheed/dsh-game/types'
|
|
9
|
+
|
|
10
|
+
declare module '@deepseek-ai/dsh-typert-protocol' {
|
|
11
|
+
interface TypertRemoteNamespace$67616d65 {
|
|
12
|
+
bind: (sessionId: SessionId, request: { projectId: string | null; }) => Promise<RemoteResult<GameResult>>
|
|
13
|
+
bundle: (request: { projectId: string; which?: 'current' | 'candidate'; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly bundle: PlayBundle; }>>>
|
|
14
|
+
changes: (request: { projectId: string; }) => Promise<RemoteResult<GameResult<WorkingChanges & { readonly ok: true; }>>>
|
|
15
|
+
checkShot: (request: { projectId: string; version?: number; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly webp: string; }>>>
|
|
16
|
+
commit: (sessionId: SessionId, request: { projectId: string; }) => Promise<RemoteResult<GameResult<CommitResult>>>
|
|
17
|
+
confirm: (sessionId: SessionId, request: { projectId: string; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly version: number; }>>>
|
|
18
|
+
deleteProject: (sessionId: SessionId, request: { projectId: string; mode: 'trash' | 'forget'; }) => Promise<RemoteResult<DeleteProjectResult>>
|
|
19
|
+
diff: (request: { projectId: string; from: number; to: number; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly diff: VersionDiff; }>>>
|
|
20
|
+
dropPending: (sessionId: SessionId, request: { projectId: string; key: string; }) => Promise<RemoteResult<GameResult>>
|
|
21
|
+
editElement: (sessionId: SessionId, request: { projectId: string; elementId: string; look?: string; fields?: string; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly elementJson: string; }>>>
|
|
22
|
+
finalizeParams: (sessionId: SessionId, request: { projectId: string; }) => Promise<RemoteResult<GameResult>>
|
|
23
|
+
logPlay: (sessionId: SessionId, request: { projectId: string; version: number; seconds: number; errors: string[]; }) => Promise<RemoteResult<GameResult>>
|
|
24
|
+
pickProposal: (sessionId: SessionId, request: { projectId: string; elementId: string; at: string; index: number; }) => Promise<RemoteResult<GameResult>>
|
|
25
|
+
projectCards: () => Promise<RemoteResult<ProjectCard[]>>
|
|
26
|
+
reject: (sessionId: SessionId, request: { projectId: string; reason: string; }) => Promise<RemoteResult<GameResult>>
|
|
27
|
+
requestRestyle: (sessionId: SessionId, request: { projectId: string; styleId: string; }) => Promise<RemoteResult<GameResult>>
|
|
28
|
+
resetParams: (sessionId: SessionId, request: { projectId: string; }) => Promise<RemoteResult<GameResult>>
|
|
29
|
+
rollback: (sessionId: SessionId, request: { projectId: string; version: number; }) => Promise<RemoteResult<GameResult>>
|
|
30
|
+
setAutoConfirm: (sessionId: SessionId, request: { projectId: string; on: boolean; }) => Promise<RemoteResult<GameResult>>
|
|
31
|
+
setOnePager: (sessionId: SessionId, request: { projectId: string; pitch?: string; elementTypes?: string; pillars?: string; }) => Promise<RemoteResult<GameResult>>
|
|
32
|
+
setParam: (sessionId: SessionId, request: { projectId: string; key: string; value: number; }) => Promise<RemoteResult<GameResult>>
|
|
33
|
+
state: (sessionId: SessionId) => Promise<RemoteResult<SessionGameState>>
|
|
34
|
+
turnReport: (sessionId: SessionId, request: { turn: number; }) => Promise<RemoteResult<TurnReport | null>>
|
|
35
|
+
versionBundle: (request: { projectId: string; version: number; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly bundle: PlayBundle; }>>>
|
|
36
|
+
workingFile: (request: { projectId: string; path: string; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly file: BundleFile; }>>>
|
|
37
|
+
writeChapter: (sessionId: SessionId, request: { projectId: string; chapterId: string; text: string; }) => Promise<RemoteResult<GameResult>>
|
|
38
|
+
}
|
|
39
|
+
interface TypertRemoteMap {
|
|
40
|
+
'game/bind': (sessionId: SessionId, request: { projectId: string | null; }) => Promise<RemoteResult<GameResult>>
|
|
41
|
+
'game/bundle': (request: { projectId: string; which?: 'current' | 'candidate'; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly bundle: PlayBundle; }>>>
|
|
42
|
+
'game/changes': (request: { projectId: string; }) => Promise<RemoteResult<GameResult<WorkingChanges & { readonly ok: true; }>>>
|
|
43
|
+
'game/checkShot': (request: { projectId: string; version?: number; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly webp: string; }>>>
|
|
44
|
+
'game/commit': (sessionId: SessionId, request: { projectId: string; }) => Promise<RemoteResult<GameResult<CommitResult>>>
|
|
45
|
+
'game/confirm': (sessionId: SessionId, request: { projectId: string; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly version: number; }>>>
|
|
46
|
+
'game/deleteProject': (sessionId: SessionId, request: { projectId: string; mode: 'trash' | 'forget'; }) => Promise<RemoteResult<DeleteProjectResult>>
|
|
47
|
+
'game/diff': (request: { projectId: string; from: number; to: number; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly diff: VersionDiff; }>>>
|
|
48
|
+
'game/dropPending': (sessionId: SessionId, request: { projectId: string; key: string; }) => Promise<RemoteResult<GameResult>>
|
|
49
|
+
'game/editElement': (sessionId: SessionId, request: { projectId: string; elementId: string; look?: string; fields?: string; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly elementJson: string; }>>>
|
|
50
|
+
'game/finalizeParams': (sessionId: SessionId, request: { projectId: string; }) => Promise<RemoteResult<GameResult>>
|
|
51
|
+
'game/logPlay': (sessionId: SessionId, request: { projectId: string; version: number; seconds: number; errors: string[]; }) => Promise<RemoteResult<GameResult>>
|
|
52
|
+
'game/pickProposal': (sessionId: SessionId, request: { projectId: string; elementId: string; at: string; index: number; }) => Promise<RemoteResult<GameResult>>
|
|
53
|
+
'game/projectCards': () => Promise<RemoteResult<ProjectCard[]>>
|
|
54
|
+
'game/reject': (sessionId: SessionId, request: { projectId: string; reason: string; }) => Promise<RemoteResult<GameResult>>
|
|
55
|
+
'game/requestRestyle': (sessionId: SessionId, request: { projectId: string; styleId: string; }) => Promise<RemoteResult<GameResult>>
|
|
56
|
+
'game/resetParams': (sessionId: SessionId, request: { projectId: string; }) => Promise<RemoteResult<GameResult>>
|
|
57
|
+
'game/rollback': (sessionId: SessionId, request: { projectId: string; version: number; }) => Promise<RemoteResult<GameResult>>
|
|
58
|
+
'game/setAutoConfirm': (sessionId: SessionId, request: { projectId: string; on: boolean; }) => Promise<RemoteResult<GameResult>>
|
|
59
|
+
'game/setOnePager': (sessionId: SessionId, request: { projectId: string; pitch?: string; elementTypes?: string; pillars?: string; }) => Promise<RemoteResult<GameResult>>
|
|
60
|
+
'game/setParam': (sessionId: SessionId, request: { projectId: string; key: string; value: number; }) => Promise<RemoteResult<GameResult>>
|
|
61
|
+
'game/state': (sessionId: SessionId) => Promise<RemoteResult<SessionGameState>>
|
|
62
|
+
'game/turnReport': (sessionId: SessionId, request: { turn: number; }) => Promise<RemoteResult<TurnReport | null>>
|
|
63
|
+
'game/versionBundle': (request: { projectId: string; version: number; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly bundle: PlayBundle; }>>>
|
|
64
|
+
'game/workingFile': (request: { projectId: string; path: string; }) => Promise<RemoteResult<GameResult<{ readonly ok: true; readonly file: BundleFile; }>>>
|
|
65
|
+
'game/writeChapter': (sessionId: SessionId, request: { projectId: string; chapterId: string; text: string; }) => Promise<RemoteResult<GameResult>>
|
|
66
|
+
}
|
|
67
|
+
interface TypertRemoteNamespaceMap {
|
|
68
|
+
'game': TypertRemoteNamespace$67616d65
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export declare const TYPERT_REMOTE: TypertRemoteInfo<{
|
|
73
|
+
readonly 'game/bind': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string | null; } }, GameResult>
|
|
74
|
+
readonly 'game/bundle': TypertRemoteMethod<{ readonly 'request': { projectId: string; which?: 'current' | 'candidate'; } }, GameResult<{ readonly ok: true; readonly bundle: PlayBundle; }>>
|
|
75
|
+
readonly 'game/changes': TypertRemoteMethod<{ readonly 'request': { projectId: string; } }, GameResult<WorkingChanges & { readonly ok: true; }>>
|
|
76
|
+
readonly 'game/checkShot': TypertRemoteMethod<{ readonly 'request': { projectId: string; version?: number; } }, GameResult<{ readonly ok: true; readonly webp: string; }>>
|
|
77
|
+
readonly 'game/commit': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; } }, GameResult<CommitResult>>
|
|
78
|
+
readonly 'game/confirm': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; } }, GameResult<{ readonly ok: true; readonly version: number; }>>
|
|
79
|
+
readonly 'game/deleteProject': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; mode: 'trash' | 'forget'; } }, DeleteProjectResult>
|
|
80
|
+
readonly 'game/diff': TypertRemoteMethod<{ readonly 'request': { projectId: string; from: number; to: number; } }, GameResult<{ readonly ok: true; readonly diff: VersionDiff; }>>
|
|
81
|
+
readonly 'game/dropPending': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; key: string; } }, GameResult>
|
|
82
|
+
readonly 'game/editElement': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; elementId: string; look?: string; fields?: string; } }, GameResult<{ readonly ok: true; readonly elementJson: string; }>>
|
|
83
|
+
readonly 'game/finalizeParams': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; } }, GameResult>
|
|
84
|
+
readonly 'game/logPlay': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; version: number; seconds: number; errors: string[]; } }, GameResult>
|
|
85
|
+
readonly 'game/pickProposal': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; elementId: string; at: string; index: number; } }, GameResult>
|
|
86
|
+
readonly 'game/projectCards': TypertRemoteMethod<{ }, ProjectCard[]>
|
|
87
|
+
readonly 'game/reject': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; reason: string; } }, GameResult>
|
|
88
|
+
readonly 'game/requestRestyle': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; styleId: string; } }, GameResult>
|
|
89
|
+
readonly 'game/resetParams': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; } }, GameResult>
|
|
90
|
+
readonly 'game/rollback': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; version: number; } }, GameResult>
|
|
91
|
+
readonly 'game/setAutoConfirm': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; on: boolean; } }, GameResult>
|
|
92
|
+
readonly 'game/setOnePager': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; pitch?: string; elementTypes?: string; pillars?: string; } }, GameResult>
|
|
93
|
+
readonly 'game/setParam': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; key: string; value: number; } }, GameResult>
|
|
94
|
+
readonly 'game/state': TypertRemoteMethod<{ readonly 'sessionId': SessionId }, SessionGameState>
|
|
95
|
+
readonly 'game/turnReport': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { turn: number; } }, TurnReport | null>
|
|
96
|
+
readonly 'game/versionBundle': TypertRemoteMethod<{ readonly 'request': { projectId: string; version: number; } }, GameResult<{ readonly ok: true; readonly bundle: PlayBundle; }>>
|
|
97
|
+
readonly 'game/workingFile': TypertRemoteMethod<{ readonly 'request': { projectId: string; path: string; } }, GameResult<{ readonly ok: true; readonly file: BundleFile; }>>
|
|
98
|
+
readonly 'game/writeChapter': TypertRemoteMethod<{ readonly 'sessionId': SessionId; readonly 'request': { projectId: string; chapterId: string; text: string; } }, GameResult>
|
|
99
|
+
}>
|
|
100
|
+
export default TYPERT_REMOTE
|
|
101
|
+
//# sourceMappingURL=typert.remote-client.d.ts.map
|