fossekall-interface 0.1.13 → 0.1.15

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
@@ -11,16 +11,14 @@ npm install fossekall-interface
11
11
 
12
12
  ## Usage
13
13
 
14
- Import generated modules from published `dist` paths:
14
+ Import generated objects from the package root:
15
15
 
16
16
  ```ts
17
- import * as telemetry from "fossekall-interface/dist/ecu/telemetry";
18
- import * as commands from "fossekall-interface/dist/ecu/commands";
19
- import type { TelemetrySpec, CommandSpec } from "fossekall-interface/dist/types";
17
+ import { SomeSchema, type SomeType } from "fossekall-interface";
20
18
  ```
21
19
 
22
- These modules expose generated schemas, enums, and spec types for integration
23
- and type-safe data handling.
20
+ The root export surfaces generated modules intended for application
21
+ integration and type-safe data handling.
24
22
 
25
23
  ## Package Output
26
24
 
@@ -1 +1,2 @@
1
1
  export declare const ip = "10.19.0.111";
2
+ export declare const commandPort = 25565;
@@ -1 +1,2 @@
1
1
  export const ip = "10.19.0.111";
2
+ export const commandPort = 25565;
@@ -0,0 +1,3 @@
1
+ export declare const spec: {};
2
+ export default spec;
3
+ export type Spec = typeof spec;
@@ -0,0 +1,64 @@
1
+ import { Measurer, Schema } from 'typed-binary';
2
+ // This file was generated by FRICC on 2026-03-19 11:27:20. Do not edit manually!
3
+ // The current version of typed-binary does not support 64-bit primitives.
4
+ // So for we'll implement our own schemas. :)
5
+ const __littleEndian = true;
6
+ class UInt64Schema extends Schema {
7
+ maxSize = 8;
8
+ read(input) {
9
+ const bytes = new Uint8Array(8);
10
+ input.readSlice(bytes, 0, 8);
11
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
12
+ return view.getBigUint64(0, __littleEndian);
13
+ }
14
+ write(output, value) {
15
+ const bytes = new Uint8Array(8);
16
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
17
+ view.setBigUint64(0, value, __littleEndian);
18
+ output.writeSlice(bytes);
19
+ }
20
+ measure(_, measurer = new Measurer()) {
21
+ return measurer.add(8);
22
+ }
23
+ }
24
+ class Int64Schema extends Schema {
25
+ maxSize = 8;
26
+ read(input) {
27
+ const bytes = new Uint8Array(8);
28
+ input.readSlice(bytes, 0, 8);
29
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
30
+ return view.getBigInt64(0, __littleEndian);
31
+ }
32
+ write(output, value) {
33
+ const bytes = new Uint8Array(8);
34
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
35
+ view.setBigInt64(0, value, __littleEndian);
36
+ output.writeSlice(bytes);
37
+ }
38
+ measure(_, measurer = new Measurer()) {
39
+ return measurer.add(8);
40
+ }
41
+ }
42
+ class Float64Schema extends Schema {
43
+ maxSize = 8;
44
+ read(input) {
45
+ const bytes = new Uint8Array(8);
46
+ input.readSlice(bytes, 0, 8);
47
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
48
+ return view.getFloat64(0, __littleEndian);
49
+ }
50
+ write(output, value) {
51
+ const bytes = new Uint8Array(8);
52
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
53
+ view.setFloat64(0, value, __littleEndian);
54
+ output.writeSlice(bytes);
55
+ }
56
+ measure(_, measurer = new Measurer()) {
57
+ return measurer.add(8);
58
+ }
59
+ }
60
+ const u64 = new UInt64Schema();
61
+ const i64 = new Int64Schema();
62
+ const f64 = new Float64Schema();
63
+ export const spec = {};
64
+ export default spec;
@@ -0,0 +1 @@
1
+ export declare const ip = "10.19.0.110";
@@ -0,0 +1 @@
1
+ export const ip = "10.19.0.110";
@@ -0,0 +1,3 @@
1
+ export * as commands from "./commands";
2
+ export * as constants from "./constants";
3
+ export * as telemetry from "./telemetry";
@@ -0,0 +1,3 @@
1
+ export * as commands from "./commands";
2
+ export * as constants from "./constants";
3
+ export * as telemetry from "./telemetry";
@@ -0,0 +1,3 @@
1
+ export declare const spec: {};
2
+ export default spec;
3
+ export type Spec = typeof spec;
@@ -0,0 +1,64 @@
1
+ import { Measurer, Schema } from 'typed-binary';
2
+ // This file was generated by FRICC on 2026-03-19 11:27:31. Do not edit manually!
3
+ // The current version of typed-binary does not support 64-bit primitives.
4
+ // So for we'll implement our own schemas. :)
5
+ const __littleEndian = true;
6
+ class UInt64Schema extends Schema {
7
+ maxSize = 8;
8
+ read(input) {
9
+ const bytes = new Uint8Array(8);
10
+ input.readSlice(bytes, 0, 8);
11
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
12
+ return view.getBigUint64(0, __littleEndian);
13
+ }
14
+ write(output, value) {
15
+ const bytes = new Uint8Array(8);
16
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
17
+ view.setBigUint64(0, value, __littleEndian);
18
+ output.writeSlice(bytes);
19
+ }
20
+ measure(_, measurer = new Measurer()) {
21
+ return measurer.add(8);
22
+ }
23
+ }
24
+ class Int64Schema extends Schema {
25
+ maxSize = 8;
26
+ read(input) {
27
+ const bytes = new Uint8Array(8);
28
+ input.readSlice(bytes, 0, 8);
29
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
30
+ return view.getBigInt64(0, __littleEndian);
31
+ }
32
+ write(output, value) {
33
+ const bytes = new Uint8Array(8);
34
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
35
+ view.setBigInt64(0, value, __littleEndian);
36
+ output.writeSlice(bytes);
37
+ }
38
+ measure(_, measurer = new Measurer()) {
39
+ return measurer.add(8);
40
+ }
41
+ }
42
+ class Float64Schema extends Schema {
43
+ maxSize = 8;
44
+ read(input) {
45
+ const bytes = new Uint8Array(8);
46
+ input.readSlice(bytes, 0, 8);
47
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
48
+ return view.getFloat64(0, __littleEndian);
49
+ }
50
+ write(output, value) {
51
+ const bytes = new Uint8Array(8);
52
+ const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
53
+ view.setFloat64(0, value, __littleEndian);
54
+ output.writeSlice(bytes);
55
+ }
56
+ measure(_, measurer = new Measurer()) {
57
+ return measurer.add(8);
58
+ }
59
+ }
60
+ const u64 = new UInt64Schema();
61
+ const i64 = new Int64Schema();
62
+ const f64 = new Float64Schema();
63
+ export const spec = {};
64
+ export default spec;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,7 @@
1
- export * as ecu from './ecu';
1
+ import * as ecu from './ecu';
2
+ import * as fc from './fc';
3
+ export declare const mcu: {
4
+ ecu: typeof ecu;
5
+ fc: typeof fc;
6
+ };
2
7
  export * as types from './types';
package/dist/index.js CHANGED
@@ -1,2 +1,7 @@
1
- export * as ecu from './ecu';
1
+ import * as ecu from './ecu';
2
+ import * as fc from './fc';
3
+ export const mcu = {
4
+ ecu,
5
+ fc,
6
+ };
2
7
  export * as types from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",