@selvajs/solve 0.2.0-beta.2 → 1.0.0-beta.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selvajs/solve",
3
- "version": "0.2.0-beta.2",
3
+ "version": "1.0.0-beta.10",
4
4
  "description": "One owner for the Selva solve flow — input change to solve result, on both sides of the wire, with no transport and no UI",
5
5
  "author": "VektorNode",
6
6
  "license": "MIT",
@@ -55,13 +55,16 @@
55
55
  },
56
56
  "files": [
57
57
  "dist",
58
- "README.md"
58
+ "README.md",
59
+ "!**/__tests__/**",
60
+ "!**/*.test.*",
61
+ "!**/*.spec.*"
59
62
  ],
60
63
  "sideEffects": false,
61
64
  "dependencies": {
62
- "@selvajs/compute": "^4.0.0-beta.1",
63
- "@selvajs/platform": "^0.16.0",
64
- "@selvajs/schemas": "4.7.0"
65
+ "@selvajs/compute": "^4.0.0-beta.6",
66
+ "@selvajs/platform": "^0.17.0-beta.3",
67
+ "@selvajs/schemas": "5.0.0-beta.3"
65
68
  },
66
69
  "devDependencies": {
67
70
  "@eslint/js": "^10.0.1",
@@ -71,18 +74,21 @@
71
74
  "eslint-config-prettier": "^10.1.8",
72
75
  "globals": "^17.5.0",
73
76
  "prettier": "^3.9.6",
74
- "tsup": "^8.5.1",
77
+ "tsdown": "^0.22.14",
75
78
  "typescript": "~6.0.3",
76
79
  "vite": "^8.1.5",
77
- "vitest": "^4.1.10"
80
+ "vitest": "^4.1.10",
81
+ "@selvajs/config": "0.0.3"
78
82
  },
79
83
  "engines": {
80
- "node": ">=22.0.0"
84
+ "node": ">=24.0.0"
85
+ },
86
+ "publishConfig": {
87
+ "access": "public"
81
88
  },
82
89
  "scripts": {
83
- "build": "pnpm type-check && pnpm clean && tsup",
84
- "dev": "tsup --watch",
85
- "clean": "node --input-type=module -e \"import fs from 'fs'; fs.rmSync('dist', { recursive: true, force: true })\"",
90
+ "build": "pnpm type-check && tsdown",
91
+ "dev": "tsdown --watch",
86
92
  "lint": "eslint .",
87
93
  "lint:fix": "eslint . --fix",
88
94
  "format": "prettier --write .",
@@ -1 +0,0 @@
1
- {"version":3,"sources":["/home/runner/work/selva/selva/packages/solve/dist/shared.cjs"],"names":[],"mappings":"AAAA","file":"/home/runner/work/selva/selva/packages/solve/dist/shared.cjs"}
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,22 +0,0 @@
1
- /**
2
- * The solve contract — what a solve returns and what a caller supplies to run one.
3
- *
4
- * Lives in `shared/` because both halves of the package speak it: `client/` calls a `SolveFn` and
5
- * stores its `SolveResult`; `server/` produces the payload one is built from.
6
- */
7
- /**
8
- * `TMesh` is deliberately opaque and defaults to `unknown`: this package never inspects meshes, and
9
- * typing them would drag a renderer dependency into a package whose whole point is not having one.
10
- * The app that owns assembly (parse → `THREE.Object3D[]`) is the only place that knows the concrete
11
- * type, and it narrows by writing `SolveResult<THREE.Object3D>` at its own seam.
12
- */
13
- interface SolveResult<TMesh = unknown> {
14
- outputs: Record<string, unknown>;
15
- meshes?: TMesh[];
16
- errors?: string[];
17
- warnings?: string[];
18
- }
19
- /** Implementations should listen to `signal` and abort/clean up when it fires. */
20
- type SolveFn<TMesh = unknown> = (values: Record<string, unknown>, signal: AbortSignal) => Promise<SolveResult<TMesh>>;
21
-
22
- export type { SolveFn as S, SolveResult as a };
@@ -1,22 +0,0 @@
1
- /**
2
- * The solve contract — what a solve returns and what a caller supplies to run one.
3
- *
4
- * Lives in `shared/` because both halves of the package speak it: `client/` calls a `SolveFn` and
5
- * stores its `SolveResult`; `server/` produces the payload one is built from.
6
- */
7
- /**
8
- * `TMesh` is deliberately opaque and defaults to `unknown`: this package never inspects meshes, and
9
- * typing them would drag a renderer dependency into a package whose whole point is not having one.
10
- * The app that owns assembly (parse → `THREE.Object3D[]`) is the only place that knows the concrete
11
- * type, and it narrows by writing `SolveResult<THREE.Object3D>` at its own seam.
12
- */
13
- interface SolveResult<TMesh = unknown> {
14
- outputs: Record<string, unknown>;
15
- meshes?: TMesh[];
16
- errors?: string[];
17
- warnings?: string[];
18
- }
19
- /** Implementations should listen to `signal` and abort/clean up when it fires. */
20
- type SolveFn<TMesh = unknown> = (values: Record<string, unknown>, signal: AbortSignal) => Promise<SolveResult<TMesh>>;
21
-
22
- export type { SolveFn as S, SolveResult as a };