@minded-ai/mindedjs 1.0.41 → 1.0.42

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/dist/index.d.ts CHANGED
@@ -5,4 +5,5 @@ export type { Flow, Node, Edge, TriggerNode, AppTriggerNode, PromptNode, PromptC
5
5
  export { NodeType, TriggerType, EdgeType, AppNodeMetadata, AppNodeMetadataType, NodeMetadata, KnownTriggerNames } from './types/Flows.types';
6
6
  export type { Tool } from './types/Tools.types';
7
7
  export { FlowHistoryType, FlowHistory, TriggerInvocationHistory, AppActionInvocationHistory } from './types/Agent.types';
8
+ export type { Environment } from './types/Platform.types';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAEzB,YAAY,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7I,YAAY,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC;AAEzB,YAAY,EACV,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,WAAW,EACX,cAAc,EACd,UAAU,EACV,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,QAAQ,EACR,WAAW,GACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,EAAE,mBAAmB,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAC7I,YAAY,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AACzH,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,10 +1,10 @@
1
+ import { Environment } from '../types/Platform.types';
1
2
  type MindedConfig = {
2
3
  baseUrl: string;
3
4
  env: Environment;
4
5
  token: string | null;
5
6
  runLocally: boolean;
6
7
  };
7
- type Environment = 'development' | 'sandbox' | 'production' | 'test';
8
8
  export declare const getConfig: () => MindedConfig;
9
9
  export {};
10
10
  //# sourceMappingURL=config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/platform/config.ts"],"names":[],"mappings":"AAIA,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,WAAW,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,KAAK,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,YAAY,GAAG,MAAM,CAAC;AAErE,eAAO,MAAM,SAAS,QAAO,YAgC5B,CAAC"}
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/platform/config.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,WAAW,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,SAAS,QAAO,YAgC5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/platform/config.ts"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,mCAAgC;AAChC,IAAA,eAAM,EAAC,EAAE,IAAI,EAAE,IAAA,cAAO,EAAC,SAAS,EAAE,YAAY,CAAC,EAAE,CAAC,CAAC;AAW5C,MAAM,SAAS,GAAG,GAAiB,EAAE;IAC1C,MAAM,WAAW,GAAI,OAAO,CAAC,GAAG,CAAC,QAAwB,IAAI,SAAS,CAAC;IACvE,QAAQ,WAAW,EAAE,CAAC;QACpB,KAAK,MAAM;YACT,OAAO;gBACL,OAAO,EAAE,uBAAuB;gBAChC,GAAG,EAAE,MAAM;gBACX,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,EAAE;gBAChD,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,OAAO;aAChD,CAAC;QACJ,KAAK,aAAa;YAChB,OAAO;gBACL,OAAO,EAAE,uBAAuB;gBAChC,GAAG,EAAE,aAAa;gBAClB,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,EAAE;gBAChD,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,KAAK,MAAM;aAC/C,CAAC;QACJ,KAAK,SAAS;YACZ,OAAO;gBACL,OAAO,EAAE,kCAAkC;gBAC3C,GAAG,EAAE,SAAS;gBACd,KAAK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AAC,uBAAuB,IAAI,EAAE;gBAChD,UAAU,EAAE,KAAK;aAClB,CAAC;QACJ,KAAK,YAAY;YACf,OAAO;gBACL,OAAO,EAAE,wBAAwB;gBACjC,GAAG,EAAE,YAAY;gBACjB,KAAK,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,EAAE;gBAChD,UAAU,EAAE,KAAK;aAClB,CAAC;IACN,CAAC;AACH,CAAC,CAAC;AAhCW,QAAA,SAAS,aAgCpB"}
@@ -0,0 +1,2 @@
1
+ export type Environment = 'development' | 'sandbox' | 'production' | 'test';
2
+ //# sourceMappingURL=Platform.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Platform.types.d.ts","sourceRoot":"","sources":["../../src/types/Platform.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,aAAa,GAAG,SAAS,GAAG,YAAY,GAAG,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Platform.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Platform.types.js","sourceRoot":"","sources":["../../src/types/Platform.types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minded-ai/mindedjs",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
4
4
  "description": "MindedJS is a TypeScript library for building agents.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -21,3 +21,4 @@ export type {
21
21
  export { NodeType, TriggerType, EdgeType, AppNodeMetadata, AppNodeMetadataType, NodeMetadata, KnownTriggerNames } from './types/Flows.types';
22
22
  export type { Tool } from './types/Tools.types';
23
23
  export { FlowHistoryType, FlowHistory, TriggerInvocationHistory, AppActionInvocationHistory } from './types/Agent.types';
24
+ export type { Environment } from './types/Platform.types';
@@ -1,5 +1,6 @@
1
1
  import { resolve } from 'path';
2
2
  import { config } from 'dotenv';
3
+ import { Environment } from '../types/Platform.types';
3
4
  config({ path: resolve(__dirname, '../../.env') });
4
5
 
5
6
  type MindedConfig = {
@@ -9,8 +10,6 @@ type MindedConfig = {
9
10
  runLocally: boolean;
10
11
  };
11
12
 
12
- type Environment = 'development' | 'sandbox' | 'production' | 'test';
13
-
14
13
  export const getConfig = (): MindedConfig => {
15
14
  const environment = (process.env.NODE_ENV as Environment) || 'sandbox';
16
15
  switch (environment) {
@@ -0,0 +1 @@
1
+ export type Environment = 'development' | 'sandbox' | 'production' | 'test';