fossekall-interface 0.1.10 → 0.1.12

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,9 +1,7 @@
1
1
  # fossekall-interface
2
2
 
3
- `fossekall-interface` provides generated TypeScript interfaces/schemas for
4
- Fossekall data objects.
5
-
6
- Current package exports are telemetry schemas and types from `ecu/telemetry`.
3
+ `fossekall-interface` provides generated TypeScript types and runtime schemas
4
+ for Fossekall data objects.
7
5
 
8
6
  ## Install
9
7
 
@@ -13,79 +11,39 @@ npm install fossekall-interface
13
11
 
14
12
  ## Usage
15
13
 
16
- Import from the package root:
14
+ Import generated modules from published `dist` paths:
17
15
 
18
16
  ```ts
19
- import {
20
- STATE_NAME,
21
- BLDCTelemetry,
22
- type BLDCTelemetry as BLDCTelemetryType,
23
- FsmTelemetry,
24
- type FsmTelemetry as FsmTelemetryType,
25
- SawWaveTelemetry,
26
- type SawWaveTelemetry as SawWaveTelemetryType,
27
- } from "fossekall-interface";
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";
28
20
  ```
29
21
 
30
- `index.ts` currently re-exports:
31
-
32
- - `./ecu/telemetry`
33
-
34
- ### Current Generated API
35
-
36
- - `STATE_NAME`
37
- - `type STATE_NAME`
38
- - `BLDCTelemetry`
39
- - `type BLDCTelemetry`
40
- - `FsmTelemetry`
41
- - `type FsmTelemetry`
42
- - `SawWaveTelemetry`
43
- - `type SawWaveTelemetry`
22
+ These modules expose generated schemas, enums, and spec types for integration
23
+ and type-safe data handling.
44
24
 
45
- ## What Gets Published
25
+ ## Package Output
46
26
 
47
- Only the compiled output in `dist/` is published to npm.
27
+ Published artifacts are compiled files from `dist/`, including:
48
28
 
49
- This package ships:
50
-
51
- - JavaScript (`dist/**/*.js`)
52
- - Type declarations (`dist/**/*.d.ts`)
53
-
54
- ## Source Layout
55
-
56
- - `index.ts`: package root exports
57
- - `ecu/telemetry.ts`: generated telemetry schemas/types
58
- - `dist/`: compiled output used by npm consumers
29
+ - JavaScript modules
30
+ - Type declarations
59
31
 
60
32
  ## Development
61
33
 
62
- Run from this directory (`generated/`):
34
+ From this directory:
63
35
 
64
36
  ```bash
65
37
  npm install
66
38
  npm run build
67
39
  ```
68
40
 
69
- The build uses `tsc` and outputs to `dist/`.
70
-
71
41
  ## Publishing
72
42
 
73
- 1. Update version:
74
-
75
43
  ```bash
76
44
  npm version patch
77
- ```
78
-
79
- 2. Publish:
80
-
81
- ```bash
82
45
  npm publish --access private
83
46
  ```
84
47
 
85
- If you publish using a token, configure `.npmrc` with:
86
-
87
- ```ini
88
- //registry.npmjs.org/:_authToken=${NPM_TOKEN}
89
- ```
90
-
91
- and export `NPM_TOKEN` in your shell before publishing.
48
+ If publishing with a token, configure `.npmrc` and set `NPM_TOKEN` in your
49
+ environment.
@@ -0,0 +1 @@
1
+ export declare const ip = "10.19.0.111";
@@ -0,0 +1 @@
1
+ export const ip = "10.19.0.111";
@@ -1,2 +1,3 @@
1
1
  export * as commands from "./commands";
2
+ export * as constants from "./constants";
2
3
  export * as telemetry from "./telemetry";
package/dist/ecu/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  export * as commands from "./commands";
2
+ export * as constants from "./constants";
2
3
  export * as telemetry from "./telemetry";
package/dist/index.d.ts CHANGED
@@ -1 +0,0 @@
1
- export * as types from "./types";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export * as types from "./types";
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fossekall-interface",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "API contracts between client and server (rocket and GUI)",
5
5
  "license": "ISC",
6
6
  "author": "Propulse",