@stateflowx/common 1.0.1 → 1.0.2

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 ADDED
@@ -0,0 +1,34 @@
1
+ # @stateflowx/common
2
+
3
+ Shared contracts and type definitions used throughout the StateFlowX ecosystem.
4
+
5
+ This package contains common interfaces, events, envelopes, and execution models shared between:
6
+
7
+ - `@stateflowx/runtime`
8
+ - `@stateflowx/client`
9
+
10
+ ## Installation
11
+
12
+ ```bash
13
+ npm install @stateflowx/common
14
+ ```
15
+
16
+ ## Included Contracts
17
+
18
+ Examples include:
19
+
20
+ - `RuntimeEvent`
21
+ - `RuntimeEnvelope`
22
+ - `ExecutionContext`
23
+
24
+ ## Usage
25
+
26
+ ```typescript
27
+ import {
28
+ RuntimeEvent,
29
+ RuntimeEnvelope,
30
+ ExecutionContext
31
+ } from '@stateflowx/common';
32
+ ```
33
+
34
+ Most application developers will not need to install this package directly. It is primarily intended for StateFlowX package development and shared contract definitions.
package/package.json CHANGED
@@ -1,6 +1,25 @@
1
1
  {
2
2
  "name": "@stateflowx/common",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
+ "description": "Shared contracts and types for StateFlowX runtime and client packages.",
5
+ "license": "Apache-2.0",
6
+ "author": "Burt Snyder",
7
+ "homepage": "https://github.com/NewJerseySoftware/stateflowx",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/NewJerseySoftware/stateflowx.git"
11
+ },
12
+ "keywords": [
13
+ "stateflowx",
14
+ "workflow",
15
+ "orchestration",
16
+ "runtime",
17
+ "contracts",
18
+ "types"
19
+ ],
4
20
  "main": "dist/index.js",
5
- "types": "dist/index.d.ts"
21
+ "types": "dist/index.d.ts",
22
+ "files": [
23
+ "dist"
24
+ ]
6
25
  }
@@ -1,7 +0,0 @@
1
- import { RuntimeEvent } from './runtime-event.js';
2
-
3
- export interface RuntimeEnvelope {
4
- type: 'runtime.event';
5
-
6
- payload: RuntimeEvent;
7
- }
@@ -1,8 +0,0 @@
1
- export interface RuntimeEvent {
2
- id: string;
3
- type: string;
4
- timestamp: number;
5
- source: string;
6
- payload?: unknown;
7
- metadata?: Record<string, unknown>;
8
- }
@@ -1,15 +0,0 @@
1
- export interface ExecutionContext {
2
- id: string;
3
-
4
- parentId?: string;
5
-
6
- type: 'workflow' | 'service' | 'provider';
7
-
8
- name: string;
9
-
10
- startedAt: number;
11
-
12
- completedAt?: number;
13
-
14
- status: 'running' | 'completed' | 'failed';
15
- }
package/index.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from './events/runtime-event.js';
2
- export * from './events/runtime-envelope.js';
3
-
4
- export * from './execution/execution-context.interface.js';