functional-models 3.6.0 → 3.6.3

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
@@ -650,3 +650,25 @@ In this situation, the latinName for species is not passed in, but calculated fr
650
650
  A date property that automatically updates whenever the model instance is saved.
651
651
 
652
652
  [Documentation](https://monolithst.github.io/functional-models/functions/index.orm.properties.LastModifiedDateProperty.html)
653
+
654
+
655
+ # MCP Development Server
656
+
657
+ Functional Models has an MCP server for AI based development. It provides knowledge entries for the AI to have specific examples of how to work with and manipulate models in a system. This GREATLY increases the accuracy and understanding of AI working with these systems, making it really easy to add new features, refactor, and make the best use of features.
658
+
659
+ ## Quick Start
660
+
661
+ You can setup the server by setting up Cursor (or similar) with this configuration.
662
+
663
+ ```json
664
+ {
665
+ "mcpServers": {
666
+ "node-in-layers-core": {
667
+ "command": "npx",
668
+ "args": ["-y", "@functional-models/knowledge-mcp"]
669
+ }
670
+ }
671
+ }
672
+ ```
673
+
674
+ You can learn more about this here [Knowledge MCP](./knowledge-mcp/README.md)
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "functional-models",
3
- "version": "3.6.0",
3
+ "version": "3.6.3",
4
4
  "description": "Functional models is ooey gooey framework for building and using awesome models EVERYWHERE.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "scripts": {
8
- "mocha": "mocha -r tsx",
9
- "test": "mocha -r tsx --extensions ts,tsx 'test/**/*.{ts,tsx}'",
10
- "test:coverage": "c8 --all --reporter cobertura --reporter text --reporter lcov --reporter html npm run test",
11
- "test:watch": "nodemon -e '*' --watch test --watch src --exec npm run test:coverage",
12
- "commit": "cz",
13
- "feature-tests": "./node_modules/.bin/cucumber-js -p default",
14
- "coverage": "nyc --all --reporter=lcov npm test",
15
8
  "build": "rm -Rf ./dist && tsc && cp package.json ./dist && cp README.md ./dist",
16
- "build:watch": "nodemon -e '*' --watch ./src --exec npm run build",
17
9
  "build:docs": "npx typedoc --out ./buildDocs ./src/index.ts",
10
+ "build:watch": "nodemon -e '*' --watch ./src --exec npm run build",
11
+ "commit": "cz",
12
+ "coverage": "nyc --all --reporter=lcov npm test",
13
+ "dist": "npm run build && npm run build:docs && cd dist && npm publish && cd ../knowledge-mcp && npm run dist",
14
+ "eslint": "eslint . --fix",
15
+ "feature-tests": "./node_modules/.bin/cucumber-js -p default",
16
+ "mocha": "mocha -r tsx",
18
17
  "prettier": "prettier --write .",
19
18
  "prettier:check": "prettier -c .",
20
- "eslint": "eslint . --fix",
21
- "dist": "npm run build && cd dist && npm publish"
19
+ "test": "mocha -r tsx --extensions ts,tsx 'test/**/*.{ts,tsx}'",
20
+ "test:coverage": "c8 --all --reporter cobertura --reporter text --reporter lcov --reporter html npm run test",
21
+ "test:watch": "nodemon -e '*' --watch test --watch src --exec npm run test:coverage"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",
package/types.d.ts CHANGED
@@ -29,7 +29,7 @@ type JsonObj = Readonly<{
29
29
  /**
30
30
  * A description of valid json values.
31
31
  */
32
- type JsonAble = Arrayable<JsonObj> | readonly (number | string | boolean)[] | number | string | boolean | null | undefined;
32
+ type JsonAble = Arrayable<JsonObj> | readonly (number | string | boolean)[] | readonly JsonAble[] | number | string | boolean | null | undefined;
33
33
  /**
34
34
  * This is a fully Json compliant version of a DataDescription
35
35
  */
package/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAmmBA;;GAEG;AACH,IAAK,SAMJ;AAND,WAAK,SAAS;IACZ,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;AACnB,CAAC,EANI,SAAS,yBAAT,SAAS,QAMb;AAoTD;;;GAGG;AACH,IAAK,YAaJ;AAbD,WAAK,YAAY;IACf,qCAAqB,CAAA;IACrB,6BAAa,CAAA;IACb,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,iDAAiC,CAAA;IACjC,mCAAmB,CAAA;IACnB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,mCAAmB,CAAA;AACrB,CAAC,EAbI,YAAY,4BAAZ,YAAY,QAahB;AAED;;GAEG;AACH,IAAK,kBAMJ;AAND,WAAK,kBAAkB;IACrB,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACrB,CAAC,EANI,kBAAkB,kCAAlB,kBAAkB,QAMtB"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAqmBA;;GAEG;AACH,IAAK,SAMJ;AAND,WAAK,SAAS;IACZ,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;AACnB,CAAC,EANI,SAAS,yBAAT,SAAS,QAMb;AAoTD;;;GAGG;AACH,IAAK,YAaJ;AAbD,WAAK,YAAY;IACf,qCAAqB,CAAA;IACrB,6BAAa,CAAA;IACb,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,iDAAiC,CAAA;IACjC,mCAAmB,CAAA;IACnB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,iCAAiB,CAAA;IACjB,+BAAe,CAAA;IACf,mCAAmB,CAAA;AACrB,CAAC,EAbI,YAAY,4BAAZ,YAAY,QAahB;AAED;;GAEG;AACH,IAAK,kBAMJ;AAND,WAAK,kBAAkB;IACrB,yCAAmB,CAAA;IACnB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,yCAAmB,CAAA;AACrB,CAAC,EANI,kBAAkB,kCAAlB,kBAAkB,QAMtB"}