feat(web): continue source-backed implementation waves
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-08-29 05:46:53 +08:00
parent e9b9d343a1
commit 81113159dc
180 changed files with 12316 additions and 82 deletions

View File

@@ -23,6 +23,7 @@ import type { CapabilityGateResult } from "../../../protocol/capability-gates";
import { applyMeshGeometryDelta } from "../../../protocol/mesh-geometry-delta";
import { createWorkerFault, type WorkerFault } from "../../../protocol/worker-fault";
import { getWebEngineCommandCapability } from "../../../protocol/web-engine-capabilities";
import { resourceCommands } from "../../../protocol/resource-commands";
import type {
PaintStrokeSessionBeginIR,
PaintStrokeSessionCancelIR,
@@ -206,7 +207,7 @@ export class WebEngineClient {
async requestAsset(assetId: string): Promise<AssetRequestResult> {
if (!assetId) throw this.report("INVALID_ARGUMENT", "Asset ID 不能为空", true);
const result = await this.request({ type: "requestAsset", assetId });
const result = await this.request(resourceCommands.requestAsset(assetId));
if (!result.asset) throw this.report("INVALID_ARGUMENT", "WebEngine 未返回资产结果", true);
return result.asset;
}