@inneranimalmedia/agentsam-occt 2.6.15 → 2.6.17
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/agentsam.package.json +5 -5
- package/dist/native-provider.d.mts +13 -12
- package/package.json +7 -3
package/agentsam.package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schema": "agentsam.package.v1",
|
|
3
3
|
"id": "agentsam-occt",
|
|
4
4
|
"name": "@inneranimalmedia/agentsam-occt",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "2.6.15",
|
|
6
6
|
"class": "package",
|
|
7
7
|
"status": "in-development",
|
|
8
8
|
"catalog_status": "needs-review",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"purpose": "One OpenCascade engine contract with shared browser-WASM and native C++ adapters for AgentSam CAD surfaces.",
|
|
20
20
|
"install": [
|
|
21
21
|
{
|
|
22
|
-
"type": "npm
|
|
22
|
+
"type": "npm",
|
|
23
23
|
"package": "@inneranimalmedia/agentsam-occt",
|
|
24
|
-
"command": "npm install
|
|
24
|
+
"command": "npm install @inneranimalmedia/agentsam-occt"
|
|
25
25
|
}
|
|
26
26
|
],
|
|
27
27
|
"registry": {
|
|
28
|
-
"kind": "npm
|
|
28
|
+
"kind": "npm",
|
|
29
29
|
"name": "@inneranimalmedia/agentsam-occt",
|
|
30
|
-
"public_claim":
|
|
30
|
+
"public_claim": true
|
|
31
31
|
},
|
|
32
32
|
"use_when": [
|
|
33
33
|
"Adding OCCT-backed geometry to a browser, desktop, or local CAD application",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Engine availability is established from a real process receipt, never a UI claim.
|
|
3
3
|
*/
|
|
4
4
|
export function createOcctNativeProvider({ binary, runProcess, timeoutMs, }?: {
|
|
5
|
-
binary?:
|
|
6
|
-
runProcess?:
|
|
5
|
+
binary?: string | undefined;
|
|
6
|
+
runProcess?: typeof execFile.__promisify__ | undefined;
|
|
7
7
|
timeoutMs?: number | undefined;
|
|
8
8
|
}): {
|
|
9
9
|
id: string;
|
|
@@ -17,7 +17,7 @@ export function createOcctNativeProvider({ binary, runProcess, timeoutMs, }?: {
|
|
|
17
17
|
capabilities: any;
|
|
18
18
|
operations: string[];
|
|
19
19
|
execution_lane: string;
|
|
20
|
-
binary:
|
|
20
|
+
binary: string;
|
|
21
21
|
reason?: undefined;
|
|
22
22
|
} | {
|
|
23
23
|
engine: string;
|
|
@@ -38,7 +38,7 @@ export function createOcctNativeProvider({ binary, runProcess, timeoutMs, }?: {
|
|
|
38
38
|
capabilities: any;
|
|
39
39
|
operations: string[];
|
|
40
40
|
execution_lane: string;
|
|
41
|
-
binary:
|
|
41
|
+
binary: string;
|
|
42
42
|
reason?: undefined;
|
|
43
43
|
} | {
|
|
44
44
|
engine: string;
|
|
@@ -57,7 +57,7 @@ export function createOcctNativeProvider({ binary, runProcess, timeoutMs, }?: {
|
|
|
57
57
|
operation: string;
|
|
58
58
|
volume_mm3: any;
|
|
59
59
|
units: string;
|
|
60
|
-
artifact_path:
|
|
60
|
+
artifact_path: string;
|
|
61
61
|
} | {
|
|
62
62
|
engine: string;
|
|
63
63
|
operation: any;
|
|
@@ -69,10 +69,10 @@ export function createOcctNativeProvider({ binary, runProcess, timeoutMs, }?: {
|
|
|
69
69
|
feature_cursor: any;
|
|
70
70
|
operation_count: any;
|
|
71
71
|
artifact: {
|
|
72
|
-
path:
|
|
72
|
+
path: string;
|
|
73
73
|
format: any;
|
|
74
|
-
size_bytes:
|
|
75
|
-
sha256:
|
|
74
|
+
size_bytes: number;
|
|
75
|
+
sha256: string;
|
|
76
76
|
};
|
|
77
77
|
dimensions_mm?: undefined;
|
|
78
78
|
} | {
|
|
@@ -84,10 +84,10 @@ export function createOcctNativeProvider({ binary, runProcess, timeoutMs, }?: {
|
|
|
84
84
|
dimensions_mm: number[];
|
|
85
85
|
volume_mm3: any;
|
|
86
86
|
artifact: {
|
|
87
|
-
path:
|
|
87
|
+
path: string;
|
|
88
88
|
format: string;
|
|
89
|
-
size_bytes:
|
|
90
|
-
sha256:
|
|
89
|
+
size_bytes: number;
|
|
90
|
+
sha256: string;
|
|
91
91
|
};
|
|
92
92
|
element_id?: undefined;
|
|
93
93
|
feature_cursor?: undefined;
|
|
@@ -99,8 +99,9 @@ export function createOcctNativeProvider({ binary, runProcess, timeoutMs, }?: {
|
|
|
99
99
|
operation: string;
|
|
100
100
|
volume_mm3: any;
|
|
101
101
|
units: string;
|
|
102
|
-
artifact_path:
|
|
102
|
+
artifact_path: string;
|
|
103
103
|
}>;
|
|
104
104
|
};
|
|
105
105
|
export { OCCT_NATIVE_OPERATIONS };
|
|
106
|
+
import { execFile } from 'node:child_process';
|
|
106
107
|
import { OCCT_NATIVE_OPERATIONS } from './index.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inneranimalmedia/agentsam-occt",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.17",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Canonical AgentSam OpenCascade engine contract with browser-WASM and native OCCT adapters.",
|
|
6
6
|
"exports": {
|
|
@@ -24,13 +24,17 @@
|
|
|
24
24
|
"prepare": "npm run build",
|
|
25
25
|
"test": "node --experimental-strip-types --test test/*.test.mjs"
|
|
26
26
|
},
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/SamPrimeaux/agentsam-sdk.git",
|
|
30
|
+
"directory": "packages/agentsam-occt"
|
|
31
|
+
},
|
|
27
32
|
"files": [
|
|
28
33
|
"dist/",
|
|
29
34
|
"src/",
|
|
30
35
|
"native/",
|
|
31
36
|
"README.md",
|
|
32
|
-
"agentsam.package.json"
|
|
33
|
-
"LICENSE"
|
|
37
|
+
"agentsam.package.json"
|
|
34
38
|
],
|
|
35
39
|
"engines": {
|
|
36
40
|
"node": ">=22 <27"
|