@cnstra/core 3.0.0 → 3.2.1

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.
@@ -0,0 +1,13 @@
1
+ import type { TCNSAfferentPath, TCNSModality } from '@cnstra/types';
2
+ type TModalityHandler = (payload: any, axon: any, ctx: any) => any;
3
+ export type TCNSModalitySelection = {
4
+ modalityConfigs: Array<{
5
+ modality: TCNSModality;
6
+ afferentPaths?: Map<TCNSAfferentPath, TModalityHandler>;
7
+ default?: TModalityHandler;
8
+ }>;
9
+ defaultHandler: TModalityHandler | undefined;
10
+ output: (result: any, axon: any, ctx: any) => any;
11
+ };
12
+ export {};
13
+ //# sourceMappingURL=TCNSModalitySelection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TCNSModalitySelection.d.ts","sourceRoot":"","sources":["../../src/types/TCNSModalitySelection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAEpE,KAAK,gBAAgB,GAAG,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC;AAEnE,MAAM,MAAM,qBAAqB,GAAG;IAChC,eAAe,EAAE,KAAK,CAAC;QACnB,QAAQ,EAAE,YAAY,CAAC;QACvB,aAAa,CAAC,EAAE,GAAG,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;QACxD,OAAO,CAAC,EAAE,gBAAgB,CAAC;KAC9B,CAAC,CAAC;IACH,cAAc,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC7C,MAAM,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC;CACrD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function cnsComposeModalityResponse(handler: (payload: any, axon: any, ctx: any) => any, output: (result: any, axon: any, ctx: any) => any): (payload: any, axon: any, ctx: any) => any;
2
+ //# sourceMappingURL=cnsComposeModalityResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cnsComposeModalityResponse.d.ts","sourceRoot":"","sources":["../../src/utils/cnsComposeModalityResponse.ts"],"names":[],"mappings":"AAAA,wBAAgB,0BAA0B,CACtC,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,EACnD,MAAM,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,GAClD,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,CAsB5C"}
@@ -0,0 +1,4 @@
1
+ import type { TCNSAfferentPath, TCNSModality } from '@cnstra/types';
2
+ import type { TCNSModalitySelection } from '../types/TCNSModalitySelection';
3
+ export declare function cnsResolveModalityHandler(modalitySelection: TCNSModalitySelection, modality: TCNSModality | undefined, afferentPath: TCNSAfferentPath | undefined): ((payload: any, axon: any, ctx: any) => any) | undefined;
4
+ //# sourceMappingURL=cnsResolveModalityHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cnsResolveModalityHandler.d.ts","sourceRoot":"","sources":["../../src/utils/cnsResolveModalityHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,wBAAgB,yBAAyB,CACrC,iBAAiB,EAAE,qBAAqB,EACxC,QAAQ,EAAE,YAAY,GAAG,SAAS,EAClC,YAAY,EAAE,gBAAgB,GAAG,SAAS,GAC3C,CAAC,CAAC,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,SAAS,CAe1D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnstra/core",
3
- "version": "3.0.0",
3
+ "version": "3.2.1",
4
4
  "description": "Embeddable workflow/orchestration engine for TypeScript: deterministic runs over a typed neuron graph (in-memory, zero dependencies).",
5
5
  "keywords": [
6
6
  "neural-network",
@@ -34,7 +34,8 @@
34
34
  "sideEffects": false,
35
35
  "repository": {
36
36
  "type": "git",
37
- "url": "git+https://github.com/abaikov/cnstra.git"
37
+ "url": "git+https://github.com/abaikov/cnstra.git",
38
+ "directory": "packages/core"
38
39
  },
39
40
  "bugs": {
40
41
  "url": "https://github.com/abaikov/cnstra/issues"