@hendoi/henmesh 0.1.1 → 0.1.3

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,125 +1,150 @@
1
- # @hendoi/henmesh — JavaScript / TypeScript SDK (HM-JS-SDK-001)
1
+ # @hendoi/henmesh
2
2
 
3
- Official headless HTTPS client for production **[HENMESH](https://henmesh.hendoi.com)** — HENDOI’s mesh / Δs₁ prep workspace.
3
+ **Official JavaScript / TypeScript SDK for HENMESH** — the mesh / prep product in the **HENDOI Aerospace Software Suite**.
4
4
 
5
- Same REST surface as the workspace: 2-D airfoil/section mesh → quality / GCI independence → 3-D wing mesh → FSI map → CAD formats.
5
+ **Version 0.1.3** · [npm](https://www.npmjs.com/package/@hendoi/henmesh) · [Product](https://hendoi.com/products/henmesh) · [App](https://henmesh.hendoi.com)
6
6
 
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/)
7
+ ---
8
+
9
+ ## About HENDOI (company suite)
10
+
11
+ **HENDOI** suite: **HENFOIL** → **HENSYNTH** → **HENMESH** → **HENFLOW** → **HENSTRUCT** (one account, clear handoffs).
8
12
 
9
- Every request sends `X-Henmesh-Client: henmesh-js/0.1.1`.
13
+ This package automates **HENMESH** at production host `https://henmesh.hendoi.com`.
10
14
 
11
15
  ---
12
16
 
13
- ## What this package is
17
+ ## Industry challenges this product addresses
14
18
 
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.
19
+ Solver campaigns fail for mesh reasons that should have been caught at prep:
16
20
 
17
- Host: `https://henmesh.hendoi.com` · key prefix: `hmk_…`
21
+ - Skew / aspect / wall-ortho / wake-band failures discovered **after** overnight CFD
22
+ - y+ / first-cell height (`Δs₁`) wrong for the intended regime
23
+ - “Generic airframe domain” used when the geometry is still a section/wing screen
24
+ - Quality reports that list numbers without **why / where / impact / fix**
25
+ - No independence / GCI-style scrub before citing a soft residual
26
+ - CAD import without a clear handoff into HENFLOW / HENSTRUCT
18
27
 
19
- ## Where it is used
28
+ Teams burn decks in general tools because **prep honesty** was missing.
20
29
 
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 |
30
+ ---
28
31
 
29
- Product page: [hendoi.com/products/henmesh](https://hendoi.com/products/henmesh)
32
+ ## How HENMESH solves that
30
33
 
31
- ## Requirements
34
+ HENMESH is an **aerospace meshing preprocessor**: 2-D C/O and section grids, 3-D wing extrude screens, quality explain, Δs₁ guidance, independence / GCI cues, CAD formats — **before** HENFLOW burns a deck.
32
35
 
33
- - **Node.js ≥ 18**
34
- - HENMESH API key `hmk_…`
35
- - License: **LicenseRef-Proprietary** (HENDOI)
36
+ This SDK scripts:
36
37
 
37
- ## Install
38
+ - `mesh2dAirfoil` / `mesh2dSection`
39
+ - `mesh2dQuality` / `mesh2dIndependence`
40
+ - `mesh3dWing` / `mesh3dQuality`
41
+ - `meshFsiMap`
42
+ - `cadFormats`
43
+ - `usage` / jobs
38
44
 
39
- ```bash
40
- npm install @hendoi/henmesh
41
- npm install @hendoi/henmesh@0.1.1
42
- ```
45
+ **In one sentence:** use `@hendoi/henmesh` to defend the mesh from Node/TypeScript before CFD/FEA spend.
43
46
 
44
- ## Auth & environment
47
+ ---
45
48
 
46
- ```bash
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
50
- ```
49
+ ## Product highlights
51
50
 
52
- ```ts
53
- import { Client } from "@hendoi/henmesh";
54
- const c = new Client({ apiKey: "hmk_…" });
55
- ```
51
+ - Plain-language mesh Trust (why / where / impact / next)
52
+ - Wall Δs₁ guidance tied to regime honesty
53
+ - 2-D and 3-D wing prep with quality gates
54
+ - Independence / GCI-style screens on mesh-length surrogates
55
+ - Handoff path → HENFLOW / HENSTRUCT
56
56
 
57
- ## Quick start
57
+ ---
58
58
 
59
- ```ts
60
- import { Client } from "@hendoi/henmesh";
59
+ ## Use & applications
61
60
 
62
- const c = new Client();
63
- console.log(await c.usage());
64
- console.log(await c.methods());
61
+ | Application | Why this package |
62
+ |---|---|
63
+ | Pre-CFD automation | Generate + quality in CI |
64
+ | GCI / independence scrub | Before citing soft residuals |
65
+ | Wing block prep | 3-D wing mesh + quality |
66
+ | FSI workflows | `meshFsiMap` before structure |
65
67
 
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);
71
- ```
68
+ **Where:** Node ≥ 18 → `https://henmesh.hendoi.com` with `hmk_…`.
72
69
 
73
- ## Core features (method map)
70
+ ---
74
71
 
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` |
72
+ ## What it **can** do
85
73
 
86
- ## Errors
74
+ | Feature | Methods |
75
+ |---|---|
76
+ | Meters / jobs | `usage`, `job`, `cancelJob` |
77
+ | Catalogue / projects | `methods`, `projects`, `createProject` |
78
+ | 2-D generate | `mesh2dAirfoil`, `mesh2dSection` |
79
+ | Quality / GCI | `mesh2dQuality`, `mesh2dIndependence` |
80
+ | 3-D wing | `mesh3dWing`, `mesh3dQuality` |
81
+ | FSI / CAD | `meshFsiMap`, `cadFormats` |
82
+
83
+ ## What it **cannot** do
84
+
85
+ - Not HyperMesh / Pointwise **certification** meshing
86
+ - Not a CFD or FEA solver
87
+ - Not volume tet/hex certification authority for full airframes
88
+ - Not Fluent binary export authority
89
+ - Cloud API only — **not** a local mesher install
90
+ - Beta product — screening prep; see product page release note
87
91
 
88
- Throws `HenmeshError` (`.status`, `.body`, `.quotaExceeded`).
92
+ ---
89
93
 
90
- ## What it cannot claim
94
+ ## Install & auth (production)
91
95
 
92
- Not HyperMesh / Pointwise certification meshing. Screening grids and honesty gates only.
96
+ ```bash
97
+ npm install @hendoi/henmesh
98
+ npm install @hendoi/henmesh@0.1.3
93
99
 
94
- ## TypeScript
100
+ export HENMESH_API_KEY=hmk_YOUR_KEY_HERE
101
+ export HENMESH_API_URL=https://henmesh.hendoi.com
102
+ ```
95
103
 
96
- ```ts
97
- import { Client, HenmeshError, CLIENT_VERSION } from "@hendoi/henmesh";
98
- import type { ClientOptions, Json } from "@hendoi/henmesh";
104
+ ```powershell
105
+ $env:HENMESH_API_KEY="hmk_YOUR_KEY_HERE"
106
+ $env:HENMESH_API_URL="https://henmesh.hendoi.com"
99
107
  ```
100
108
 
101
- ## Sister SDKs
109
+ ---
110
+
111
+ ## How to use — get output
102
112
 
103
- | Python | JavaScript |
104
- |---|---|
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) |
113
+ ```js
114
+ import { Client } from "@hendoi/henmesh";
115
+
116
+ const c = new Client();
117
+ console.log(JSON.stringify(await c.usage(), null, 2));
118
+ console.log(await c.methods());
119
+
120
+ // PURPOSE: generate screening mesh (body fields = API / UI)
121
+ const mesh = await c.mesh2dAirfoil({ /* coordinates / spacing per docs */ });
122
+ console.log("mesh keys:", Object.keys(mesh));
123
+
124
+ const quality = await c.mesh2dQuality({ /* mesh ref from previous step */ });
125
+ console.log("quality keys:", Object.keys(quality));
126
+ ```
127
+
128
+ ```bash
129
+ node run-henmesh.mjs
130
+ ```
110
131
 
111
- ## Links
132
+ ---
133
+
134
+ ## Official links
112
135
 
113
136
  | | |
114
137
  |---|---|
115
- | **npm** | https://www.npmjs.com/package/@hendoi/henmesh |
116
- | Product app | https://henmesh.hendoi.com |
117
- | Marketing | https://hendoi.com/products/henmesh |
138
+ | Product | https://hendoi.com/products/henmesh |
139
+ | App | https://henmesh.hendoi.com |
140
+ | Guide | https://hendoi.com/blog/henmesh-complete-product-guide |
141
+ | Help | https://hendoi.com/help/henmesh |
142
+ | FAQ | https://hendoi.com/faq |
143
+ | Pricing | https://hendoi.com/pricing |
118
144
  | API overview | https://api.hendoi.com/?doc=henmesh-overview |
119
145
  | Auth | https://api.hendoi.com/?doc=henmesh-authentication |
120
- | Platform JS docs | https://api.hendoi.com/?doc=javascript-sdk |
121
- | Support | support@hendoi.com |
146
+ | All JS SDKs | https://api.hendoi.com/?doc=javascript-sdk |
122
147
 
123
- ---
148
+ Sisters: [@hendoi/henfoil](https://www.npmjs.com/package/@hendoi/henfoil) · [@hendoi/hensynth](https://www.npmjs.com/package/@hendoi/hensynth) · [@hendoi/henflow](https://www.npmjs.com/package/@hendoi/henflow) · [@hendoi/henstruct](https://www.npmjs.com/package/@hendoi/henstruct) · [PyPI henmesh](https://pypi.org/project/henmesh/)
124
149
 
125
- © HENDOI TECHNOLOGIES PRIVATE LIMITED. Proprietary — see `LICENSE`.
150
+ © HENDOI TECHNOLOGIES PRIVATE LIMITED · LicenseRef-Proprietary · support@hendoi.com
package/dist/client.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.1). */
2
- export declare const CLIENT_VERSION = "0.1.1";
1
+ /** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.3). */
2
+ export declare const CLIENT_VERSION = "0.1.3";
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.1). */
2
- export const CLIENT_VERSION = "0.1.1";
1
+ /** HTTP client for HENMESH /api/v1 — HM-JS-SDK-001 (0.1.3). */
2
+ export const CLIENT_VERSION = "0.1.3";
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.1",
3
+ "version": "0.1.3",
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",