kshana 0.21.0 → 0.24.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.
- package/README.md +65 -1156
- package/kshana-sbom.cdx.json +1135 -0
- package/kshana.d.ts +23 -0
- package/kshana.js +83 -0
- package/kshana_bg.wasm +0 -0
- package/package.json +6 -4
package/kshana.d.ts
CHANGED
|
@@ -24,6 +24,26 @@ export function encode_permalink(toml: string): string;
|
|
|
24
24
|
*/
|
|
25
25
|
export function error_kind(toml: string): string;
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* Export the velocity-carrying state as a **CCSDS OEM 2.0** ephemeris string for
|
|
29
|
+
* flight-dynamics tools (GMAT / Orekit / STK; the CLI `--export-oem` artifact). Pure
|
|
30
|
+
* client-side.
|
|
31
|
+
*/
|
|
32
|
+
export function export_oem(toml: string): string;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Export a constellation's mean elements as a **CCSDS OMM** catalogue string (one OMM
|
|
36
|
+
* message per TLE-defined satellite; the CLI `--export-omm` artifact). Pure client-side.
|
|
37
|
+
*/
|
|
38
|
+
export function export_omm(toml: string): string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Export a propagated constellation scenario as an **SP3-c** precise-ephemeris string
|
|
42
|
+
* (the same artifact the CLI `--export-sp3` flag writes). Pure client-side; nothing is
|
|
43
|
+
* uploaded. Throws a JS error if the scenario cannot produce an SP3 (e.g. a non-orbit kind).
|
|
44
|
+
*/
|
|
45
|
+
export function export_sp3(toml: string): string;
|
|
46
|
+
|
|
27
47
|
/**
|
|
28
48
|
* List the available scenario kinds and their metadata as a JSON array (name,
|
|
29
49
|
* description, required and optional fields), for programmatic introspection.
|
|
@@ -54,6 +74,9 @@ export interface InitOutput {
|
|
|
54
74
|
readonly decode_permalink: (a: number, b: number) => [number, number];
|
|
55
75
|
readonly encode_permalink: (a: number, b: number) => [number, number];
|
|
56
76
|
readonly error_kind: (a: number, b: number) => [number, number];
|
|
77
|
+
readonly export_oem: (a: number, b: number) => [number, number, number, number];
|
|
78
|
+
readonly export_omm: (a: number, b: number) => [number, number, number, number];
|
|
79
|
+
readonly export_sp3: (a: number, b: number) => [number, number, number, number];
|
|
57
80
|
readonly list_kinds: () => [number, number];
|
|
58
81
|
readonly run: (a: number, b: number) => [number, number, number, number];
|
|
59
82
|
readonly summary: (a: number, b: number) => [number, number, number, number];
|
package/kshana.js
CHANGED
|
@@ -89,6 +89,89 @@ export function error_kind(toml) {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
+
/**
|
|
93
|
+
* Export the velocity-carrying state as a **CCSDS OEM 2.0** ephemeris string for
|
|
94
|
+
* flight-dynamics tools (GMAT / Orekit / STK; the CLI `--export-oem` artifact). Pure
|
|
95
|
+
* client-side.
|
|
96
|
+
* @param {string} toml
|
|
97
|
+
* @returns {string}
|
|
98
|
+
*/
|
|
99
|
+
export function export_oem(toml) {
|
|
100
|
+
let deferred3_0;
|
|
101
|
+
let deferred3_1;
|
|
102
|
+
try {
|
|
103
|
+
const ptr0 = passStringToWasm0(toml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
104
|
+
const len0 = WASM_VECTOR_LEN;
|
|
105
|
+
const ret = wasm.export_oem(ptr0, len0);
|
|
106
|
+
var ptr2 = ret[0];
|
|
107
|
+
var len2 = ret[1];
|
|
108
|
+
if (ret[3]) {
|
|
109
|
+
ptr2 = 0; len2 = 0;
|
|
110
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
111
|
+
}
|
|
112
|
+
deferred3_0 = ptr2;
|
|
113
|
+
deferred3_1 = len2;
|
|
114
|
+
return getStringFromWasm0(ptr2, len2);
|
|
115
|
+
} finally {
|
|
116
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Export a constellation's mean elements as a **CCSDS OMM** catalogue string (one OMM
|
|
122
|
+
* message per TLE-defined satellite; the CLI `--export-omm` artifact). Pure client-side.
|
|
123
|
+
* @param {string} toml
|
|
124
|
+
* @returns {string}
|
|
125
|
+
*/
|
|
126
|
+
export function export_omm(toml) {
|
|
127
|
+
let deferred3_0;
|
|
128
|
+
let deferred3_1;
|
|
129
|
+
try {
|
|
130
|
+
const ptr0 = passStringToWasm0(toml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
131
|
+
const len0 = WASM_VECTOR_LEN;
|
|
132
|
+
const ret = wasm.export_omm(ptr0, len0);
|
|
133
|
+
var ptr2 = ret[0];
|
|
134
|
+
var len2 = ret[1];
|
|
135
|
+
if (ret[3]) {
|
|
136
|
+
ptr2 = 0; len2 = 0;
|
|
137
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
138
|
+
}
|
|
139
|
+
deferred3_0 = ptr2;
|
|
140
|
+
deferred3_1 = len2;
|
|
141
|
+
return getStringFromWasm0(ptr2, len2);
|
|
142
|
+
} finally {
|
|
143
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Export a propagated constellation scenario as an **SP3-c** precise-ephemeris string
|
|
149
|
+
* (the same artifact the CLI `--export-sp3` flag writes). Pure client-side; nothing is
|
|
150
|
+
* uploaded. Throws a JS error if the scenario cannot produce an SP3 (e.g. a non-orbit kind).
|
|
151
|
+
* @param {string} toml
|
|
152
|
+
* @returns {string}
|
|
153
|
+
*/
|
|
154
|
+
export function export_sp3(toml) {
|
|
155
|
+
let deferred3_0;
|
|
156
|
+
let deferred3_1;
|
|
157
|
+
try {
|
|
158
|
+
const ptr0 = passStringToWasm0(toml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
159
|
+
const len0 = WASM_VECTOR_LEN;
|
|
160
|
+
const ret = wasm.export_sp3(ptr0, len0);
|
|
161
|
+
var ptr2 = ret[0];
|
|
162
|
+
var len2 = ret[1];
|
|
163
|
+
if (ret[3]) {
|
|
164
|
+
ptr2 = 0; len2 = 0;
|
|
165
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
166
|
+
}
|
|
167
|
+
deferred3_0 = ptr2;
|
|
168
|
+
deferred3_1 = len2;
|
|
169
|
+
return getStringFromWasm0(ptr2, len2);
|
|
170
|
+
} finally {
|
|
171
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
92
175
|
/**
|
|
93
176
|
* List the available scenario kinds and their metadata as a JSON array (name,
|
|
94
177
|
* description, required and optional fields), for programmatic introspection.
|
package/kshana_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -5,16 +5,18 @@
|
|
|
5
5
|
"Chakshu Baweja <contact@ashforde.org>"
|
|
6
6
|
],
|
|
7
7
|
"description": "Open, reproducible PNT-resilience simulator with quantum-sensor performance models",
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.24.0",
|
|
9
9
|
"license": "AGPL-3.0-only",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/ashfordeOU/kshana"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"kshana_bg.wasm",
|
|
16
16
|
"kshana.js",
|
|
17
|
-
"kshana.d.ts"
|
|
17
|
+
"kshana.d.ts",
|
|
18
|
+
"kshana-sbom.cdx.json",
|
|
19
|
+
"README.md"
|
|
18
20
|
],
|
|
19
21
|
"main": "kshana.js",
|
|
20
22
|
"homepage": "https://kshana.dev",
|
|
@@ -29,4 +31,4 @@
|
|
|
29
31
|
"gnss",
|
|
30
32
|
"simulation"
|
|
31
33
|
]
|
|
32
|
-
}
|
|
34
|
+
}
|