@hendoi/henmesh 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -1,70 +1,125 @@
1
1
  # @hendoi/henmesh — JavaScript / TypeScript SDK (HM-JS-SDK-001)
2
2
 
3
- Official headless HTTPS client for production [HENMESH](https://henmesh.hendoi.com). Same REST surface as the workspace.
3
+ Official headless HTTPS client for production **[HENMESH](https://henmesh.hendoi.com)** — HENDOI’s mesh / Δs₁ prep workspace.
4
4
 
5
- **Version 0.1.0** · **Docs:** [https://api.hendoi.com/?doc=henmesh-overview](https://api.hendoi.com/?doc=henmesh-overview) · **npm:** [@hendoi/henmesh](https://www.npmjs.com/package/@hendoi/henmesh)
5
+ Same REST surface as the workspace: 2-D airfoil/section mesh → quality / GCI independence → 3-D wing mesh → FSI map → CAD formats.
6
6
 
7
- Header on every call: `X-Henmesh-Client: henmesh-js/0.1.0`.
7
+ **Version 0.1.1** · **npm:** [@hendoi/henmesh](https://www.npmjs.com/package/@hendoi/henmesh) · **API docs:** [henmesh-overview](https://api.hendoi.com/?doc=henmesh-overview) · **Python twin:** [henmesh on PyPI](https://pypi.org/project/henmesh/)
8
+
9
+ Every request sends `X-Henmesh-Client: henmesh-js/0.1.1`.
10
+
11
+ ---
12
+
13
+ ## What this package is
14
+
15
+ `@hendoi/henmesh` automates HENMESH mesh generation and quality gates over HTTPS from Node.js / TypeScript. Use it to script screening grids before CFD/FEA — not as a local HyperMesh replacement.
16
+
17
+ Host: `https://henmesh.hendoi.com` · key prefix: `hmk_…`
18
+
19
+ ## Where it is used
20
+
21
+ | Context | Typical use |
22
+ |---|---|
23
+ | **Pre-CFD mesh prep** | `mesh2dAirfoil` / `mesh2dSection` then quality |
24
+ | **Independence / GCI scrub** | `mesh2dIndependence` before citing soft residuals |
25
+ | **Wing block prep** | `mesh3dWing` + `mesh3dQuality` |
26
+ | **FSI map** | `meshFsiMap` before structure handoff |
27
+ | **Stack** | After HENFOIL/HENSYNTH · before HENFLOW/HENSTRUCT |
28
+
29
+ Product page: [hendoi.com/products/henmesh](https://hendoi.com/products/henmesh)
30
+
31
+ ## Requirements
32
+
33
+ - **Node.js ≥ 18**
34
+ - HENMESH API key `hmk_…`
35
+ - License: **LicenseRef-Proprietary** (HENDOI)
8
36
 
9
37
  ## Install
10
38
 
11
39
  ```bash
12
40
  npm install @hendoi/henmesh
41
+ npm install @hendoi/henmesh@0.1.1
13
42
  ```
14
43
 
15
- Requires Node.js ≥ 18 (native `fetch`). License: **LicenseRef-Proprietary** (HENDOI).
16
-
17
- ## Auth
18
-
19
- Create a `hmk_…` key on HENMESH → **Developers**. Keys do not cross products.
44
+ ## Auth & environment
20
45
 
21
46
  ```bash
22
- export HENMESH_API_KEY=hmk_…
23
- # optional: export HENMESH_API_URL=https://henmesh.hendoi.com
24
- # local: export HENMESH_API_URL=http://localhost:8005
47
+ export HENMESH_API_KEY=hmk_YOUR_KEY
48
+ # export HENMESH_API_URL=https://henmesh.hendoi.com
49
+ # local: export HENMESH_API_URL=http://localhost:8005
25
50
  ```
26
51
 
27
- ## Example
52
+ ```ts
53
+ import { Client } from "@hendoi/henmesh";
54
+ const c = new Client({ apiKey: "hmk_…" });
55
+ ```
56
+
57
+ ## Quick start
28
58
 
29
59
  ```ts
30
60
  import { Client } from "@hendoi/henmesh";
31
61
 
32
- const c = new Client(); // HENMESH_API_KEY
62
+ const c = new Client();
33
63
  console.log(await c.usage());
34
64
  console.log(await c.methods());
35
65
 
66
+ const mesh = await c.mesh2dAirfoil({
67
+ // coordinates / airfoil payload per API docs
68
+ });
69
+ const quality = await c.mesh2dQuality({ meshId: mesh.id /* … */ });
70
+ console.log(quality);
36
71
  ```
37
72
 
38
- ## What it cannot claim
73
+ ## Core features (method map)
39
74
 
40
- Not HyperMesh / Pointwise certification meshing.
75
+ | Method | What it does | REST notes |
76
+ |---|---|---|
77
+ | `usage` / `job` / `cancelJob` | Meters & jobs | `/usage` · `/jobs/:id` |
78
+ | `methods` | Mesh method catalogue | `GET /mesh/methods` |
79
+ | `projects` / `createProject` | Projects | `/projects*` |
80
+ | `mesh2dAirfoil` / `mesh2dSection` | 2-D generate | `/mesh/2d/*/generate` |
81
+ | `mesh2dQuality` / `mesh2dIndependence` | Quality / GCI | `/mesh/2d/quality` · `independence` |
82
+ | `mesh3dWing` / `mesh3dQuality` | 3-D wing | `/mesh/3d/*` |
83
+ | `meshFsiMap` | FSI mapping | `/mesh/fsi/map` |
84
+ | `cadFormats` | CAD import formats | `GET /cad/formats` |
41
85
 
42
- ## Client methods → REST
86
+ ## Errors
43
87
 
44
- | Method | Route |
45
- |---|---|
46
- | `mesh2dAirfoil` / `mesh2dSection` | 2-D generate |
47
- | `mesh2dQuality` / `mesh2dIndependence` | quality / GCI |
48
- | `mesh3dWing` / `mesh3dQuality` | 3-D wing |
49
- | `meshFsiMap` | FSI map |
88
+ Throws `HenmeshError` (`.status`, `.body`, `.quotaExceeded`).
89
+
90
+ ## What it cannot claim
50
91
 
51
- Long solves often return a job; methods with `awaitJob=true` (default) poll `GET /api/v1/jobs/:id`.
92
+ Not HyperMesh / Pointwise certification meshing. Screening grids and honesty gates only.
52
93
 
53
- ## Sister packages
94
+ ## TypeScript
54
95
 
55
- | Python (PyPI) | JavaScript (npm) |
96
+ ```ts
97
+ import { Client, HenmeshError, CLIENT_VERSION } from "@hendoi/henmesh";
98
+ import type { ClientOptions, Json } from "@hendoi/henmesh";
99
+ ```
100
+
101
+ ## Sister SDKs
102
+
103
+ | Python | JavaScript |
56
104
  |---|---|
57
- | `pip install henfoil` | `npm install @hendoi/henfoil` |
58
- | `pip install hensynth` | `npm install @hendoi/hensynth` |
59
- | `pip install henmesh` | `npm install @hendoi/henmesh` |
60
- | `pip install henflow` | `npm install @hendoi/henflow` |
61
- | `pip install henstruct` | `npm install @hendoi/henstruct` |
105
+ | [`henmesh`](https://pypi.org/project/henmesh/) | [`@hendoi/henmesh`](https://www.npmjs.com/package/@hendoi/henmesh) |
106
+ | [`henfoil`](https://pypi.org/project/henfoil/) | [`@hendoi/henfoil`](https://www.npmjs.com/package/@hendoi/henfoil) |
107
+ | [`hensynth`](https://pypi.org/project/hensynth/) | [`@hendoi/hensynth`](https://www.npmjs.com/package/@hendoi/hensynth) |
108
+ | [`henflow`](https://pypi.org/project/henflow/) | [`@hendoi/henflow`](https://www.npmjs.com/package/@hendoi/henflow) |
109
+ | [`henstruct`](https://pypi.org/project/henstruct/) | [`@hendoi/henstruct`](https://www.npmjs.com/package/@hendoi/henstruct) |
62
110
 
63
111
  ## Links
64
112
 
65
113
  | | |
66
114
  |---|---|
67
115
  | **npm** | https://www.npmjs.com/package/@hendoi/henmesh |
68
- | Product | https://henmesh.hendoi.com |
69
- | API docs | https://api.hendoi.com/?doc=henmesh-overview |
116
+ | Product app | https://henmesh.hendoi.com |
117
+ | Marketing | https://hendoi.com/products/henmesh |
118
+ | API overview | https://api.hendoi.com/?doc=henmesh-overview |
119
+ | Auth | https://api.hendoi.com/?doc=henmesh-authentication |
120
+ | Platform JS docs | https://api.hendoi.com/?doc=javascript-sdk |
70
121
  | Support | support@hendoi.com |
122
+
123
+ ---
124
+
125
+ © HENDOI TECHNOLOGIES PRIVATE LIMITED. Proprietary — see `LICENSE`.
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.0). */
2
- export declare const CLIENT_VERSION = "0.1.0";
1
+ /** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.1). */
2
+ export declare const CLIENT_VERSION = "0.1.1";
3
3
  export type Json = Record<string, unknown>;
4
4
  export declare class HenmeshError extends Error {
5
5
  status: number;
package/dist/client.js CHANGED
@@ -1,5 +1,5 @@
1
- /** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.0). */
2
- export const CLIENT_VERSION = "0.1.0";
1
+ /** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.1). */
2
+ export const CLIENT_VERSION = "0.1.1";
3
3
  const DEVELOPERS_HELP = "Create a hmk_… key: sign in at https://hendoi.com/login → open HENMESH → " +
4
4
  "Developers (or Settings → API) → copy the key → export HENMESH_API_KEY=hmk_…";
5
5
  export class HenmeshError extends Error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hendoi/henmesh",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Official HENMESH JavaScript/TypeScript SDK — 2-D/3-D mesh, quality, GCI, FSI map.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -11,24 +11,40 @@
11
11
  "import": "./dist/index.js"
12
12
  }
13
13
  },
14
- "files": ["dist", "LICENSE", "README.md"],
14
+ "files": [
15
+ "dist",
16
+ "LICENSE",
17
+ "README.md"
18
+ ],
15
19
  "scripts": {
16
20
  "build": "tsc -p tsconfig.json",
17
21
  "test": "npm run build && node --test test/client.test.js",
18
22
  "prepublishOnly": "npm run build"
19
23
  },
20
- "engines": { "node": ">=18" },
21
- "keywords": ["henmesh", "hendoi", "aerospace", "sdk", "typescript"],
24
+ "engines": {
25
+ "node": ">=18"
26
+ },
27
+ "keywords": [
28
+ "henmesh",
29
+ "hendoi",
30
+ "aerospace",
31
+ "sdk",
32
+ "typescript"
33
+ ],
22
34
  "author": "HENDOI TECHNOLOGIES PRIVATE LIMITED <support@hendoi.com>",
23
- "license": "SEE LICENSE IN LICENSE",
24
- "publishConfig": { "access": "public" },
35
+ "license": "SEE LICENSE IN LICENSE",
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
25
39
  "homepage": "https://henmesh.hendoi.com",
26
40
  "repository": {
27
41
  "type": "git",
28
- "url": "https://github.com/hendoi/hendoi.git",
42
+ "url": "git+https://github.com/hendoi/hendoi.git",
29
43
  "directory": "henmesh-sdk/js"
30
44
  },
31
- "bugs": { "url": "https://hendoi.com/contact" },
45
+ "bugs": {
46
+ "url": "https://hendoi.com/contact"
47
+ },
32
48
  "devDependencies": {
33
49
  "typescript": "^5.6.0",
34
50
  "@types/node": "^22.0.0"