@dxo/studio 0.0.10 → 0.0.11

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,8 +1,5 @@
1
- export type InspectApiServerOptions = {
2
- host?: string;
3
- port?: number;
4
- runsRoot?: string;
5
- };
1
+ import { type NativeInspectApiServerOptions } from '@dxo/core';
2
+ export type InspectApiServerOptions = NativeInspectApiServerOptions;
6
3
  export type InspectApiServer = {
7
4
  host: string;
8
5
  port: number;
@@ -10,6 +7,9 @@ export type InspectApiServer = {
10
7
  runsRoot: string;
11
8
  close: () => Promise<void>;
12
9
  };
13
- /** Loopback HTTP API over the append-only inspect run store (Rust `dxo-studio`). */
10
+ /**
11
+ * Loopback inspect HTTP serve — thin TS wrapper over napi `create_inspect_api_server`.
12
+ * Do not reimplement the HTTP server or run-store reader in TypeScript.
13
+ */
14
14
  export declare function createInspectApiServer(options?: InspectApiServerOptions): Promise<InspectApiServer>;
15
15
  //# sourceMappingURL=api-server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-server.d.ts","sourceRoot":"","sources":["../launcher/api-server.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,uBAAuB,GAAG;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,CAAC;AAcF,oFAAoF;AACpF,wBAAsB,sBAAsB,CAAC,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAmB7G"}
1
+ {"version":3,"file":"api-server.d.ts","sourceRoot":"","sources":["../launcher/api-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0D,KAAK,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAEvH,MAAM,MAAM,uBAAuB,GAAG,6BAA6B,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B,CAAC;AAEF;;;GAGG;AACH,wBAAsB,sBAAsB,CAAC,OAAO,GAAE,uBAA4B,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAe7G"}
@@ -1,11 +1,10 @@
1
- import { loadNative } from '@dxo/core/native';
2
- /** Loopback HTTP API over the append-only inspect run store (Rust `dxo-studio`). */
1
+ import { createInspectApiServer as createNativeInspectApiServer } from '@dxo/core';
2
+ /**
3
+ * Loopback inspect HTTP serve — thin TS wrapper over napi `create_inspect_api_server`.
4
+ * Do not reimplement the HTTP server or run-store reader in TypeScript.
5
+ */
3
6
  export async function createInspectApiServer(options = {}) {
4
- const native = loadNative();
5
- if (typeof native.createInspectApiServer !== 'function') {
6
- throw new Error('createInspectApiServer requires `pnpm build:native`');
7
- }
8
- const handle = native.createInspectApiServer({
7
+ const handle = createNativeInspectApiServer({
9
8
  host: options.host,
10
9
  port: options.port,
11
10
  runsRoot: options.runsRoot,
@@ -1 +1 @@
1
- {"version":3,"file":"api-server.js","sourceRoot":"","sources":["../launcher/api-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA4B9C,oFAAoF;AACpF,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,UAAmC,EAAE;IAC9E,MAAM,MAAM,GAAG,UAAU,EAAuB,CAAC;IACjD,IAAI,OAAO,MAAM,CAAC,sBAAsB,KAAK,UAAU,EAAE,CAAC;QACtD,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;IAC3E,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,sBAAsB,CAAC;QACzC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,QAAQ,EAAE,OAAO,CAAC,QAAQ;KAC7B,CAAC,CAAC;IACH,OAAO;QACH,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,GAAG,EAAE,MAAM,CAAC,GAAG;QACf,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,KAAK,EAAE,KAAK,IAAI,EAAE;YACd,MAAM,CAAC,KAAK,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"api-server.js","sourceRoot":"","sources":["../launcher/api-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,IAAI,4BAA4B,EAAsC,MAAM,WAAW,CAAC;AAYvH;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,UAAmC,EAAE;IAC9E,MAAM,MAAM,GAAG,4BAA4B,CAAC;QACxC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,QAAQ,EAAE,OAAO,CAAC,QAAQ;KAC7B,CAAC,CAAC;IACH,OAAO;QACH,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,IAAI,EAAE,MAAM,CAAC,IAAI;QACjB,GAAG,EAAE,MAAM,CAAC,GAAG;QACf,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,KAAK,EAAE,KAAK,IAAI,EAAE;YACd,MAAM,CAAC,KAAK,EAAE,CAAC;QACnB,CAAC;KACJ,CAAC;AACN,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxo/studio",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "type": "module",
5
5
  "description": "DXO training workbench — VMZ WebUI + launcher; desktop GUI is dxo-studio.exe",
6
6
  "license": "Apache-2.0",
@@ -27,9 +27,9 @@
27
27
  "check": "vmz check ."
28
28
  },
29
29
  "dependencies": {
30
- "@dxo/core": "0.0.10",
31
- "@dxo/graph": "0.0.10",
32
- "@dxo/inspect": "0.0.10",
30
+ "@dxo/core": "0.0.11",
31
+ "@dxo/graph": "0.0.11",
32
+ "@dxo/inspect": "0.0.11",
33
33
  "@vmz/core": "^0.1.12"
34
34
  },
35
35
  "keywords": [