@forgeax/view 0.3.11 → 0.4.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.
@@ -1 +1 @@
1
- {"codeRevision":"2041128cfdb1a9ae06aca686525e790fd8d5411c62f7b7be8fa288d32229cf65","viewerDigest":"845174183b4df9958cc25aae321c4bf2824b416c2e442d2a3b956ae5e74d2e7a"}
1
+ {"codeRevision":"2041128cfdb1a9ae06aca686525e790fd8d5411c62f7b7be8fa288d32229cf65","viewerDigest":"f612b2bbbc96e83bd003fb438be4d2309cc87d832fe34d6649d84fcb56ec4b6e"}
@@ -1,7 +1,7 @@
1
1
  import "./chunk-FLGC65SR.mjs";
2
2
 
3
3
  // ../../apps/rhi-debug-viewer/src/App.tsx
4
- import { err as err4 } from "@forgeax/engine-types";
4
+ import { err as err4 } from "@forgeax/engine/types";
5
5
 
6
6
  // ../../node_modules/.pnpm/dockview-core@7.0.4/node_modules/dockview-core/dist/package/main.esm.mjs
7
7
  var TransferObject = class {
@@ -18801,9 +18801,9 @@ import {
18801
18801
  createRhiDebugError,
18802
18802
  openReplay,
18803
18803
  replayDeviceRequest
18804
- } from "@forgeax/engine-rhi-debug";
18805
- import { createShaderModule, rhi } from "@forgeax/engine-rhi-webgpu";
18806
- import { err, ok } from "@forgeax/engine-types";
18804
+ } from "@forgeax/engine/rhi-debug";
18805
+ import { createShaderModule, rhi } from "@forgeax/engine/rhi-webgpu";
18806
+ import { err, ok } from "@forgeax/engine/types";
18807
18807
  import { createContext as createContext2, useContext as useContext2 } from "react";
18808
18808
  var ViewerContext = createContext2(null);
18809
18809
  var ViewModelContext = createContext2(null);
@@ -32977,10 +32977,10 @@ import { RotateCcw, WandSparkles } from "lucide-react";
32977
32977
  import { useEffect, useRef, useState as useState3 } from "react";
32978
32978
 
32979
32979
  // ../../apps/rhi-debug-viewer/src/shader-preview/session.ts
32980
- import { parse, validate } from "@forgeax/engine-naga";
32981
- import { readbackTexturePixels } from "@forgeax/engine-rhi-debug";
32982
- import { createShaderModule as createShaderModule2, rhi as rhi2 } from "@forgeax/engine-rhi-webgpu";
32983
- import { err as err2, ok as ok2 } from "@forgeax/engine-types";
32980
+ import { parse, validate } from "@forgeax/engine/naga";
32981
+ import { readbackTexturePixels } from "@forgeax/engine/rhi-debug";
32982
+ import { createShaderModule as createShaderModule2, rhi as rhi2 } from "@forgeax/engine/rhi-webgpu";
32983
+ import { err as err2, ok as ok2 } from "@forgeax/engine/types";
32984
32984
 
32985
32985
  // ../../apps/rhi-debug-viewer/src/shader-preview/errors.ts
32986
32986
  function previewError(code2, detail, hint, location) {
@@ -37732,7 +37732,7 @@ function BufferResult({ result }) {
37732
37732
  }
37733
37733
 
37734
37734
  // ../../apps/rhi-debug-viewer/src/components/TextureViewer.tsx
37735
- import { decodeToRgba8 } from "@forgeax/engine-rhi-debug";
37735
+ import { decodeToRgba8 } from "@forgeax/engine/rhi-debug";
37736
37736
  import {
37737
37737
  useCallback,
37738
37738
  useEffect as useEffect3,
@@ -38212,8 +38212,8 @@ function DrawCallViewer(_props) {
38212
38212
  }
38213
38213
 
38214
38214
  // ../../apps/rhi-debug-viewer/src/tape-source.ts
38215
- import { decodeTape } from "@forgeax/engine-rhi-debug";
38216
- import { err as err3, ok as ok3 } from "@forgeax/engine-types";
38215
+ import { decodeTape } from "@forgeax/engine/rhi-debug";
38216
+ import { err as err3, ok as ok3 } from "@forgeax/engine/types";
38217
38217
  function loadTapeFromBytes(bytes) {
38218
38218
  return decodeTape(bytes);
38219
38219
  }
@@ -38304,7 +38304,7 @@ async function digestBytes(bytes) {
38304
38304
  // ../../apps/rhi-debug-viewer/src/viewer-model.ts
38305
38305
  import {
38306
38306
  buildFrameModel
38307
- } from "@forgeax/engine-rhi-debug";
38307
+ } from "@forgeax/engine/rhi-debug";
38308
38308
  function buildViewerModel(tape) {
38309
38309
  return { ...buildFrameModel(tape), events: tape.events };
38310
38310
  }
@@ -1,5 +1,5 @@
1
1
  // packages/view-plugin-display/src/tool-runtime.ts
2
- import { defineTool } from "@forgeax/engine-tool-runtime";
2
+ import { defineTool } from "@forgeax/engine/tool-runtime";
3
3
  function toolFailureError(failure) {
4
4
  const diagnostic = (typeof failure?.hint === "string" && failure.hint.trim() !== "" ? failure.hint : void 0) ?? (typeof failure?.expected === "string" && failure.expected.trim() !== "" ? failure.expected : void 0);
5
5
  const detail = failure.detail && typeof failure.detail === "object" && !Array.isArray(failure.detail) ? failure.detail : {};
@@ -50,7 +50,7 @@ function createViewStatusToolContributions(broker, description) {
50
50
  }
51
51
 
52
52
  // packages/view-plugin-display/src/api.ts
53
- import { defineTool as defineTool2, toolJsonSchema } from "@forgeax/engine-tool-runtime";
53
+ import { defineTool as defineTool2, toolJsonSchema } from "@forgeax/engine/tool-runtime";
54
54
  var DISPLAY_STATUS_OPERATION_DESCRIPTION = Object.freeze({
55
55
  id: "view.display.status",
56
56
  path: ["view", "display", "status"],
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-JU5PV2T2.mjs";
17
17
 
18
18
  // packages/view-plugin-display/src/backend.ts
19
- import { registerTools } from "@forgeax/engine-plugin";
19
+ import { registerTools } from "@forgeax/engine/plugin";
20
20
  function bindPlatform(platform) {
21
21
  return {
22
22
  createPage: platform.createPage.bind(platform),
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-ZG2PD4QX.mjs";
11
11
 
12
12
  // packages/viewer/src/frontend-root.ts
13
- import { Inject } from "@forgeax/engine-plugin";
13
+ import { Inject } from "@forgeax/engine/plugin";
14
14
 
15
15
  // ../view-plugins/rhi-debug/frontend.ts
16
16
  var frontend_default = {
@@ -50,7 +50,7 @@ var frontend_default = {
50
50
  };
51
51
 
52
52
  // ../view-plugins/profiler/frontend.ts
53
- import { buildProfileModel, validateProfileCapture } from "@forgeax/engine-profiler";
53
+ import { buildProfileModel, validateProfileCapture } from "@forgeax/engine/profiler";
54
54
  var frontend_default2 = {
55
55
  name: "forgeax.engine.view.profiler",
56
56
  inject: ["pageHost", "panelHost"],
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-JWVTEYMY.mjs";
16
16
 
17
17
  // packages/view-workspace-core/src/frontend-plugin.ts
18
- import { createHostWebSocketClient } from "@forgeax/engine-host/transport";
18
+ import { createHostWebSocketClient } from "@forgeax/engine/host/transport";
19
19
  var viewWorkspaceCoreFrontendPlugin = {
20
20
  name: "forgeax.view.service.workspace-client.frontend",
21
21
  provide: ["viewOperationClient"],
@@ -26,9 +26,9 @@ import { randomUUID } from "node:crypto";
26
26
  import { createRequire } from "node:module";
27
27
  import { dirname, join, resolve } from "node:path";
28
28
  import { existsSync } from "node:fs";
29
- import { createHostAssembly } from "@forgeax/engine-host/protocol";
30
- import { defineTool, toolJsonSchema } from "@forgeax/engine-tool-runtime";
31
- import { registerTools, startNativePlugin } from "@forgeax/engine-plugin";
29
+ import { createHostAssembly } from "@forgeax/engine/host/protocol";
30
+ import { defineTool, toolJsonSchema } from "@forgeax/engine/tool-runtime";
31
+ import { registerTools, startNativePlugin } from "@forgeax/engine/plugin";
32
32
  var ownerArgs = toolJsonSchema({ type: "object", properties: { root: { type: "string" } }, additionalProperties: false });
33
33
  var startArgs = toolJsonSchema({ type: "object", properties: {
34
34
  root: { type: "string" },
@@ -15,9 +15,9 @@ import {
15
15
 
16
16
  // src/plugins/backend.ts
17
17
  import { randomUUID } from "node:crypto";
18
- import { startNativePlugin } from "@forgeax/engine-plugin";
19
- import { createBackendHost } from "@forgeax/engine-host/backend";
20
- import { createHostAssembly } from "@forgeax/engine-host/protocol";
18
+ import { startNativePlugin } from "@forgeax/engine/plugin";
19
+ import { createBackendHost } from "@forgeax/engine/host/backend";
20
+ import { createHostAssembly } from "@forgeax/engine/host/protocol";
21
21
  function createViewPlatformBinding(platform) {
22
22
  if (!platform || typeof platform.createPage !== "function") {
23
23
  throw new TypeError("View platform binding requires platform.createPage");
@@ -19,9 +19,9 @@ import {
19
19
  } from "./chunk-2RHUCZ52.mjs";
20
20
 
21
21
  // packages/viewer/src/host/frontend.ts
22
- import { createFrontendHost } from "@forgeax/engine-host/frontend";
23
- import { createHostWebSocketClient } from "@forgeax/engine-host/transport";
24
- import { HOST_ASSEMBLY_CHANGED_TOPIC } from "@forgeax/engine-host/transport";
22
+ import { createFrontendHost } from "@forgeax/engine/host/frontend";
23
+ import { createHostWebSocketClient } from "@forgeax/engine/host/transport";
24
+ import { HOST_ASSEMBLY_CHANGED_TOPIC } from "@forgeax/engine/host/transport";
25
25
  async function resolveViewFrontendRoot(root, localConfig) {
26
26
  if (root.program !== VIEW_FRONTEND_ROOT_PROGRAM) {
27
27
  throw new Error(`Unexpected View frontend root: ${root.program}`);
@@ -11,8 +11,8 @@ import {
11
11
  } from "./chunk-2RHUCZ52.mjs";
12
12
 
13
13
  // packages/view-workspace-core/src/backend.ts
14
- import { registerTools } from "@forgeax/engine-plugin";
15
- import { defineTool, toolJsonSchema } from "@forgeax/engine-tool-runtime";
14
+ import { registerTools } from "@forgeax/engine/plugin";
15
+ import { defineTool, toolJsonSchema } from "@forgeax/engine/tool-runtime";
16
16
  var VIEW_WORKSPACE_CORE_PLUGIN_ID = "forgeax.view.service.workspace.backend";
17
17
  var VIEW_WORKSPACE_CORE_MODULE = "@forgeax/view-workspace-core/backend";
18
18
  var viewWorkspaceCoreBackendPlugin = {
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-2RHUCZ52.mjs";
10
10
 
11
11
  // packages/view-workspace-core/src/tool-runtime.ts
12
- import { defineTool, toolJsonSchema } from "@forgeax/engine-tool-runtime";
12
+ import { defineTool, toolJsonSchema } from "@forgeax/engine/tool-runtime";
13
13
  function safeClone(value) {
14
14
  try {
15
15
  return cloneWorkspaceValue(value);
@@ -12,7 +12,7 @@ import { join, normalize } from "node:path";
12
12
  import { fileURLToPath } from "node:url";
13
13
  import { createServer } from "node:http";
14
14
  import { randomUUID } from "node:crypto";
15
- import { attachHostWebSocketServer, createHostWebSocketClient } from "@forgeax/engine-host/transport";
15
+ import { attachHostWebSocketServer, createHostWebSocketClient } from "@forgeax/engine/host/transport";
16
16
  import { WebSocket, WebSocketServer } from "ws";
17
17
  var DEFAULT_PATH = "/__forgeax/view-workspace";
18
18
  var BOOTSTRAP_PATH = "/__forgeax/view/bootstrap";
@@ -24,8 +24,8 @@ import {
24
24
  } from "./chunk-4XEXLHX4.mjs";
25
25
 
26
26
  // packages/view-plugin-plugins/src/runtime.ts
27
- import { defineTool } from "@forgeax/engine-tool-runtime";
28
- import { inspectPluginFiber, registerTools } from "@forgeax/engine-plugin";
27
+ import { defineTool } from "@forgeax/engine/tool-runtime";
28
+ import { inspectPluginFiber, registerTools } from "@forgeax/engine/plugin";
29
29
  var recordOf = workspaceDiagnosticRecord;
30
30
  var recordList = (value) => Array.isArray(value) ? value.filter((item) => item !== null && typeof item === "object") : [];
31
31
  var VIEW_INSPECTOR_API_VERSION = "forgeax.view.inspector/1";
@@ -480,7 +480,7 @@ function createResourceBrowserPlatform(options) {
480
480
  }
481
481
 
482
482
  // src/bootstrap.ts
483
- import { createFrontendHost } from "@forgeax/engine-host";
483
+ import { createFrontendHost } from "@forgeax/engine/host";
484
484
  async function startView(options = {}) {
485
485
  const backend = await createViewBackend({
486
486
  platform: options.platform,