oriverse-engine 0.1.1
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/LICENSE.md +30 -0
- package/README.md +76 -0
- package/dist/AGENT_ONBOARDING.md +74 -0
- package/dist/CODEX_PROMPT.md +108 -0
- package/dist/GAME_AUTHORING.md +512 -0
- package/dist/examples/coin_collector.weave +70 -0
- package/dist/examples/dodge_blocks.weave +70 -0
- package/dist/examples/target_range.weave +82 -0
- package/dist/ktx_bridge.js +121 -0
- package/dist/ktx_lib.js +5236 -0
- package/dist/ktx_lib.wasm +0 -0
- package/dist/oriverse_wgpu.d.ts +174 -0
- package/dist/oriverse_wgpu.js +3361 -0
- package/dist/oriverse_wgpu_bg.wasm +0 -0
- package/dist/oriverse_wgpu_bg.wasm.d.ts +73 -0
- package/dist/snippets/oriverse_market_client-0cd3013288f3c49c/inline0.js +30 -0
- package/dist/snippets/oriverse_networking_shared-e43478064e11e46c/inline0.js +18 -0
- package/dist/snippets/oriverse_wgpu-255445ce6d9a0851/inline0.js +60 -0
- package/dist/snippets/oriverse_wgpu-255445ce6d9a0851/inline1.js +21 -0
- package/dist/starter/AGENTS.md +32 -0
- package/dist/starter/CLAUDE.md +32 -0
- package/dist/starter/game.html +64 -0
- package/dist/templates/game.html +63 -0
- package/dist/templates/game_cdn.html +64 -0
- package/dist/weave_documentation.txt +6258 -0
- package/package.json +18 -0
|
Binary file
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* The `ReadableStreamType` enum.
|
|
5
|
+
*
|
|
6
|
+
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
type ReadableStreamType = "bytes";
|
|
10
|
+
|
|
11
|
+
export class IntoUnderlyingByteSource {
|
|
12
|
+
private constructor();
|
|
13
|
+
free(): void;
|
|
14
|
+
[Symbol.dispose](): void;
|
|
15
|
+
cancel(): void;
|
|
16
|
+
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
17
|
+
start(controller: ReadableByteStreamController): void;
|
|
18
|
+
readonly autoAllocateChunkSize: number;
|
|
19
|
+
readonly type: ReadableStreamType;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class IntoUnderlyingSink {
|
|
23
|
+
private constructor();
|
|
24
|
+
free(): void;
|
|
25
|
+
[Symbol.dispose](): void;
|
|
26
|
+
abort(reason: any): Promise<any>;
|
|
27
|
+
close(): Promise<any>;
|
|
28
|
+
write(chunk: any): Promise<any>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export class IntoUnderlyingSource {
|
|
32
|
+
private constructor();
|
|
33
|
+
free(): void;
|
|
34
|
+
[Symbol.dispose](): void;
|
|
35
|
+
cancel(): void;
|
|
36
|
+
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Boot the Oriverse artifact engine with inline Weave source. Call once, after `await init()`
|
|
41
|
+
* (the module's default export) resolves. Only needed when the page has no
|
|
42
|
+
* `<script type="text/weave" id="oriverse-weave">` tag: with that tag present the engine
|
|
43
|
+
* auto-boots and this call is ignored with a console warning.
|
|
44
|
+
*/
|
|
45
|
+
export function bootOriverseArtifact(weave_source: string): Promise<void>;
|
|
46
|
+
|
|
47
|
+
export function init_market_client_message_bridge(worker: any): void;
|
|
48
|
+
|
|
49
|
+
export function sim_worker_init(world_ptr: number, netctx_ptr: number, client_arc: number, undo_arc: number, updates_arc: number, display_packets_arc: number, display_packets_count_arc: number, force_next_full_visual_sync_arc: number, last_display_visual_fingerprint_arc: number, latest_no_visual_frame_id_arc: number, latest_no_visual_world_generation_arc: number, latest_no_visual_seq_arc: number, start_flag_arc: number): void;
|
|
50
|
+
|
|
51
|
+
export function sim_worker_start_ticker(frame_ms: number): void;
|
|
52
|
+
|
|
53
|
+
export function start_wasm_oriverse(): Promise<void>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Synchronous `#[wasm_bindgen]` export the worker calls inside `onmessage`. The whole
|
|
57
|
+
* sim path (`simulate_world_description` -> `simulate_build_world` -> `run_n_frames`)
|
|
58
|
+
* is sync, so a sync export is simplest; the main-side bridge stays async via a oneshot.
|
|
59
|
+
* Returns the `SimulateCliJsonResult` JSON. A panic aborts the worker (panic=abort) and
|
|
60
|
+
* surfaces to main via the JS catch / `onerror`, not as a return value.
|
|
61
|
+
*/
|
|
62
|
+
export function validate_world_entry(world_text: string, frames: number): string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Worker-side entry for one-shot shared-heap validation. The main thread owns
|
|
66
|
+
* `SharedValidationGateGuard`; the worker only checks that the gate is active.
|
|
67
|
+
*/
|
|
68
|
+
export function validate_world_shared_entry(world_text: string, frames: number): string;
|
|
69
|
+
|
|
70
|
+
export function worker_attach_read_dc(dc: RTCDataChannel): void;
|
|
71
|
+
|
|
72
|
+
export function worker_attach_write_dc(dc_fast: RTCDataChannel, dc_strict: RTCDataChannel): void;
|
|
73
|
+
|
|
74
|
+
export function worker_init(state_ptr: number, keypair_ptr: number): void;
|
|
75
|
+
|
|
76
|
+
export function worker_init_write(xq_fast_ptr: number, xq_strict_ptr: number, state_ptr: number, kp_ptr: number): void;
|
|
77
|
+
|
|
78
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
79
|
+
|
|
80
|
+
export interface InitOutput {
|
|
81
|
+
readonly memory: WebAssembly.Memory;
|
|
82
|
+
readonly bootOriverseArtifact: (a: number, b: number) => any;
|
|
83
|
+
readonly sim_worker_init: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number, l: number, m: number) => void;
|
|
84
|
+
readonly sim_worker_start_ticker: (a: number) => [number, number];
|
|
85
|
+
readonly start_wasm_oriverse: () => void;
|
|
86
|
+
readonly worker_attach_read_dc: (a: any) => void;
|
|
87
|
+
readonly worker_attach_write_dc: (a: any, b: any) => void;
|
|
88
|
+
readonly worker_init: (a: number, b: number) => void;
|
|
89
|
+
readonly worker_init_write: (a: number, b: number, c: number, d: number) => void;
|
|
90
|
+
readonly validate_world_entry: (a: number, b: number, c: number) => [number, number];
|
|
91
|
+
readonly validate_world_shared_entry: (a: number, b: number, c: number) => [number, number];
|
|
92
|
+
readonly init_market_client_message_bridge: (a: any) => [number, number];
|
|
93
|
+
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
94
|
+
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
95
|
+
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
96
|
+
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
97
|
+
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
98
|
+
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
99
|
+
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
100
|
+
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
101
|
+
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
102
|
+
readonly intounderlyingsink_close: (a: number) => any;
|
|
103
|
+
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
104
|
+
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
105
|
+
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
106
|
+
readonly wasm_bindgen__closure__destroy__h042ad3005b9d55a6: (a: number, b: number) => void;
|
|
107
|
+
readonly wasm_bindgen__closure__destroy__h17a277c51bb51813: (a: number, b: number) => void;
|
|
108
|
+
readonly wasm_bindgen__closure__destroy__h925400c2c567eb80: (a: number, b: number) => void;
|
|
109
|
+
readonly wasm_bindgen__closure__destroy__h9b3b47830657a8ed: (a: number, b: number) => void;
|
|
110
|
+
readonly wasm_bindgen__closure__destroy__h4c6ab0d0852bf9f7: (a: number, b: number) => void;
|
|
111
|
+
readonly wasm_bindgen__closure__destroy__h0fed2d1f7635c2f5: (a: number, b: number) => void;
|
|
112
|
+
readonly wasm_bindgen__closure__destroy__hf809af396483004d: (a: number, b: number) => void;
|
|
113
|
+
readonly wasm_bindgen__closure__destroy__hb5431e947b7a6aec: (a: number, b: number) => void;
|
|
114
|
+
readonly wasm_bindgen__closure__destroy__h205759260389ccd0: (a: number, b: number) => void;
|
|
115
|
+
readonly wasm_bindgen__closure__destroy__h0cd374b964da0682: (a: number, b: number) => void;
|
|
116
|
+
readonly wasm_bindgen__convert__closures_____invoke__h2774a57ff1bf6744: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
117
|
+
readonly wasm_bindgen__convert__closures_____invoke__h94cbd1b5f6302697: (a: number, b: number, c: any, d: any) => void;
|
|
118
|
+
readonly wasm_bindgen__convert__closures_____invoke__h565d6b66bcb3c25c: (a: number, b: number, c: number, d: number) => void;
|
|
119
|
+
readonly wasm_bindgen__convert__closures_____invoke__ha73e5db2c2b6e381: (a: number, b: number, c: any, d: any) => void;
|
|
120
|
+
readonly wasm_bindgen__convert__closures_____invoke__hded3ad7bdef546a1: (a: number, b: number, c: any) => [number, number];
|
|
121
|
+
readonly wasm_bindgen__convert__closures_____invoke__hc5e85a6ffb556dd3: (a: number, b: number, c: number, d: number) => void;
|
|
122
|
+
readonly wasm_bindgen__convert__closures_____invoke__h1723b3b073a90d0a: (a: number, b: number, c: any, d: any) => void;
|
|
123
|
+
readonly wasm_bindgen__convert__closures_____invoke__h230801f31144964a: (a: number, b: number, c: any) => void;
|
|
124
|
+
readonly wasm_bindgen__convert__closures_____invoke__h230801f31144964a_2: (a: number, b: number, c: any) => void;
|
|
125
|
+
readonly wasm_bindgen__convert__closures_____invoke__h230801f31144964a_3: (a: number, b: number, c: any) => void;
|
|
126
|
+
readonly wasm_bindgen__convert__closures_____invoke__h230801f31144964a_4: (a: number, b: number, c: any) => void;
|
|
127
|
+
readonly wasm_bindgen__convert__closures_____invoke__hfb64fcc207989551: (a: number, b: number, c: any) => void;
|
|
128
|
+
readonly wasm_bindgen__convert__closures_____invoke__h719a023b3100fd4c: (a: number, b: number, c: any) => void;
|
|
129
|
+
readonly wasm_bindgen__convert__closures_____invoke__h719a023b3100fd4c_9: (a: number, b: number, c: any) => void;
|
|
130
|
+
readonly wasm_bindgen__convert__closures_____invoke__h023b53cca5e9d36e: (a: number, b: number, c: any) => void;
|
|
131
|
+
readonly wasm_bindgen__convert__closures_____invoke__h023b53cca5e9d36e_12: (a: number, b: number, c: any) => void;
|
|
132
|
+
readonly wasm_bindgen__convert__closures_____invoke__h023b53cca5e9d36e_13: (a: number, b: number, c: any) => void;
|
|
133
|
+
readonly wasm_bindgen__convert__closures_____invoke__h023b53cca5e9d36e_14: (a: number, b: number, c: any) => void;
|
|
134
|
+
readonly wasm_bindgen__convert__closures_____invoke__h023b53cca5e9d36e_15: (a: number, b: number, c: any) => void;
|
|
135
|
+
readonly wasm_bindgen__convert__closures_____invoke__h023b53cca5e9d36e_16: (a: number, b: number, c: any) => void;
|
|
136
|
+
readonly wasm_bindgen__convert__closures_____invoke__h023b53cca5e9d36e_17: (a: number, b: number, c: any) => void;
|
|
137
|
+
readonly wasm_bindgen__convert__closures_____invoke__h023b53cca5e9d36e_18: (a: number, b: number, c: any) => void;
|
|
138
|
+
readonly wasm_bindgen__convert__closures_____invoke__hd9c373bc00363316: (a: number, b: number, c: number) => void;
|
|
139
|
+
readonly wasm_bindgen__convert__closures_____invoke__h2819dfb01981ad79: (a: number, b: number, c: any) => void;
|
|
140
|
+
readonly wasm_bindgen__convert__closures_____invoke__h7f85845aafa30203: (a: number, b: number, c: any) => void;
|
|
141
|
+
readonly wasm_bindgen__convert__closures_____invoke__h659f4c721b86f42c: (a: number, b: number) => void;
|
|
142
|
+
readonly wasm_bindgen__convert__closures_____invoke__h32f18397ef483a59: (a: number, b: number) => void;
|
|
143
|
+
readonly wasm_bindgen__convert__closures_____invoke__h2f9cd05605e4a2db: (a: number, b: number) => void;
|
|
144
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
145
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
146
|
+
readonly __externref_table_alloc: () => number;
|
|
147
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
148
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
149
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
150
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
151
|
+
readonly __wbindgen_start: () => void;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
158
|
+
* a precompiled `WebAssembly.Module`.
|
|
159
|
+
*
|
|
160
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
161
|
+
*
|
|
162
|
+
* @returns {InitOutput}
|
|
163
|
+
*/
|
|
164
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
168
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
169
|
+
*
|
|
170
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
171
|
+
*
|
|
172
|
+
* @returns {Promise<InitOutput>}
|
|
173
|
+
*/
|
|
174
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|