@selvajs/solve 0.2.0-beta.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.
@@ -0,0 +1,14 @@
1
+ import { SchemaInput } from '@selvajs/schemas';
2
+
3
+ /**
4
+ * A schema input carrying the optional numeric bounds the input transform reads. Bounds are optional
5
+ * because they're only meaningful for numeric params (slider min/max/step) — text or geometry inputs
6
+ * carry none.
7
+ */
8
+ type SolveInput = SchemaInput & {
9
+ minimum?: number;
10
+ maximum?: number;
11
+ stepSize?: number;
12
+ };
13
+
14
+ export type { SolveInput as S };
@@ -0,0 +1,14 @@
1
+ import { SchemaInput } from '@selvajs/schemas';
2
+
3
+ /**
4
+ * A schema input carrying the optional numeric bounds the input transform reads. Bounds are optional
5
+ * because they're only meaningful for numeric params (slider min/max/step) — text or geometry inputs
6
+ * carry none.
7
+ */
8
+ type SolveInput = SchemaInput & {
9
+ minimum?: number;
10
+ maximum?: number;
11
+ stepSize?: number;
12
+ };
13
+
14
+ export type { SolveInput as S };
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@selvajs/solve",
3
+ "version": "0.2.0-beta.0",
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
+ "author": "VektorNode",
6
+ "license": "MIT",
7
+ "homepage": "https://github.com/VektorNode/selva#readme",
8
+ "bugs": "https://github.com/VektorNode/selva/issues",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/VektorNode/selva.git",
12
+ "directory": "packages/solve"
13
+ },
14
+ "type": "module",
15
+ "keywords": [
16
+ "grasshopper",
17
+ "rhino",
18
+ "compute",
19
+ "solve",
20
+ "parametric",
21
+ "cache",
22
+ "pipeline"
23
+ ],
24
+ "exports": {
25
+ "./client": {
26
+ "import": {
27
+ "types": "./dist/client.d.ts",
28
+ "default": "./dist/client.js"
29
+ },
30
+ "require": {
31
+ "types": "./dist/client.d.cts",
32
+ "default": "./dist/client.cjs"
33
+ }
34
+ },
35
+ "./server": {
36
+ "import": {
37
+ "types": "./dist/server.d.ts",
38
+ "default": "./dist/server.js"
39
+ },
40
+ "require": {
41
+ "types": "./dist/server.d.cts",
42
+ "default": "./dist/server.cjs"
43
+ }
44
+ },
45
+ "./shared": {
46
+ "import": {
47
+ "types": "./dist/shared.d.ts",
48
+ "default": "./dist/shared.js"
49
+ },
50
+ "require": {
51
+ "types": "./dist/shared.d.cts",
52
+ "default": "./dist/shared.cjs"
53
+ }
54
+ }
55
+ },
56
+ "files": [
57
+ "dist",
58
+ "README.md"
59
+ ],
60
+ "sideEffects": false,
61
+ "dependencies": {
62
+ "@selvajs/schemas": "4.7.0",
63
+ "@selvajs/platform": "^0.16.0",
64
+ "@selvajs/compute": "^4.0.0-beta.0"
65
+ },
66
+ "devDependencies": {
67
+ "@eslint/js": "^10.0.1",
68
+ "@types/node": "^26.1.2",
69
+ "esbuild": "^0.28.1",
70
+ "eslint": "^10.8.0",
71
+ "eslint-config-prettier": "^10.1.8",
72
+ "globals": "^17.5.0",
73
+ "prettier": "^3.9.6",
74
+ "tsup": "^8.5.1",
75
+ "typescript": "~6.0.3",
76
+ "vite": "^8.1.5",
77
+ "vitest": "^4.1.10"
78
+ },
79
+ "engines": {
80
+ "node": ">=22.0.0"
81
+ },
82
+ "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 })\"",
86
+ "lint": "eslint .",
87
+ "lint:fix": "eslint . --fix",
88
+ "format": "prettier --write .",
89
+ "format:check": "prettier --check .",
90
+ "test": "vitest run",
91
+ "test:watch": "vitest watch",
92
+ "type-check": "tsc --noEmit"
93
+ }
94
+ }