@flowfuse/nr-assistant 0.2.1-78d933c-202506111915.0 → 0.2.2-28e5c9f-202506121535.0
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
|
@@ -2,7 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
A Node-RED plugin to assist FlowFuse users.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
**This plugin can only be used within FlowFuse-managed Node-RED instances.**
|
|
7
|
+
|
|
8
|
+
FlowFuse is the Industrial application platform for building and operating custom industrial solutions that digitalize processes and operations. It integrates seamlessly into both IT and OT environments, leveraging Node-RED to enable teams to connect, collect, transform, and visualize data from industrial systems. Companies use FlowFuse to manage, scale, and secure their Node-RED-based applications across industrial environments.
|
|
9
|
+
|
|
10
|
+
Sign-up to FlowFuse Cloud now to get started: https://app.flowfuse.com
|
|
11
|
+
|
|
12
|
+
## About
|
|
13
|
+
|
|
14
|
+
This plugin is designed to assist users of the FlowFuse platform by providing tools to aid development of their Node-RED instances including:
|
|
15
|
+
* A function builder
|
|
16
|
+
* Function node Code Lens
|
|
17
|
+
* JSON generation in all typed inputs and JSON editors (like the inject node, change node, template node, etc)
|
|
18
|
+
* Flows Explainer
|
|
19
|
+
|
|
20
|
+
### Function Builder
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### JSON generator
|
|
25
|
+

|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
### Flows Explainer
|
|
29
|
+

|
|
30
|
+
|
|
6
31
|
|
|
7
32
|
## Installation
|
|
8
33
|
|
|
@@ -14,11 +39,6 @@ npm install @flowfuse/nr-assistant
|
|
|
14
39
|
|
|
15
40
|
Client-side portion of the plugin is in `index.html`. The server side code is in `index.js`
|
|
16
41
|
|
|
17
|
-
## About
|
|
18
|
-
|
|
19
|
-
This plugin is designed to assist users of the FlowFuse platform by providing tools to aid development of their Node-RED project.
|
|
20
|
-
|
|
21
|
-
The capabilities it adds to Node-RED can be found in Node-RED editor on the main toolbar and within the function node editor.
|
|
22
42
|
|
|
23
43
|
## NOTES:
|
|
24
44
|
|
|
@@ -44,9 +64,11 @@ The `url` and `token` are for an AI service hosted by FlowFuse; it is not public
|
|
|
44
64
|
|
|
45
65
|
## Limitations
|
|
46
66
|
|
|
47
|
-
|
|
67
|
+
### Function Builder
|
|
48
68
|
* Only a single function node can be generated at a time.
|
|
49
|
-
|
|
69
|
+
|
|
70
|
+
### Function Node Editor Codelens
|
|
71
|
+
* The codelens feature is only supported for the on-message editor in the function node.
|
|
50
72
|
|
|
51
73
|
## Versioning
|
|
52
74
|
|
package/package.json
CHANGED
package/.eslintrc
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"globals": {
|
|
4
|
-
"monaco": true,
|
|
5
|
-
"RED": true
|
|
6
|
-
},
|
|
7
|
-
"env": {
|
|
8
|
-
"browser": true,
|
|
9
|
-
"commonjs": true,
|
|
10
|
-
"es2021": true,
|
|
11
|
-
"mocha": true,
|
|
12
|
-
"jquery": true
|
|
13
|
-
},
|
|
14
|
-
"extends": [
|
|
15
|
-
"eslint:recommended",
|
|
16
|
-
"standard"
|
|
17
|
-
],
|
|
18
|
-
"plugins": [ "eslint-plugin-html", "no-only-tests" ],
|
|
19
|
-
"parserOptions": {
|
|
20
|
-
"ecmaVersion": 12
|
|
21
|
-
},
|
|
22
|
-
"rules": {
|
|
23
|
-
// Built-in rules
|
|
24
|
-
"indent": ["error", 4],
|
|
25
|
-
"object-shorthand": ["error"],
|
|
26
|
-
"no-console": ["error", { "allow": ["debug", "info", "warn", "error"] }],
|
|
27
|
-
|
|
28
|
-
// plugin:no-only-tests
|
|
29
|
-
"no-only-tests/no-only-tests": "error"
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
}
|
package/.github/dependabot.yml
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
name: Build and push packages
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
push:
|
|
6
|
-
branches:
|
|
7
|
-
- main
|
|
8
|
-
pull_request:
|
|
9
|
-
branches:
|
|
10
|
-
- main
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
build:
|
|
14
|
-
uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.39.0'
|
|
15
|
-
with:
|
|
16
|
-
node: '[
|
|
17
|
-
{"version": "16", "tests": true, "lint": false},
|
|
18
|
-
{"version": "18", "tests": true, "lint": true},
|
|
19
|
-
{"version": "20", "tests": true, "lint": true},
|
|
20
|
-
]'
|
|
21
|
-
|
|
22
|
-
publish:
|
|
23
|
-
needs: build
|
|
24
|
-
if: |
|
|
25
|
-
( github.event_name == 'push' && github.ref == 'refs/heads/main' ) ||
|
|
26
|
-
( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' )
|
|
27
|
-
uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.39.0'
|
|
28
|
-
with:
|
|
29
|
-
package_name: nr-assistant
|
|
30
|
-
publish_package: true
|
|
31
|
-
secrets:
|
|
32
|
-
npm_registry_token: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
33
|
-
|
|
34
|
-
dispatch_nr_launcher:
|
|
35
|
-
name: Dispatch nr-launcher package build
|
|
36
|
-
needs: publish
|
|
37
|
-
runs-on: ubuntu-latest
|
|
38
|
-
steps:
|
|
39
|
-
- name: Generate a token
|
|
40
|
-
id: generate_token
|
|
41
|
-
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
|
|
42
|
-
with:
|
|
43
|
-
app_id: ${{ secrets.GH_BOT_APP_ID }}
|
|
44
|
-
private_key: ${{ secrets.GH_BOT_APP_KEY }}
|
|
45
|
-
- name: Trigger nr-launcher package build
|
|
46
|
-
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
|
|
47
|
-
with:
|
|
48
|
-
workflow: publish.yml
|
|
49
|
-
repo: flowfuse/nr-launcher
|
|
50
|
-
ref: main
|
|
51
|
-
token: ${{ steps.generate_token.outputs.token }}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
name: Release Published
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
tags:
|
|
5
|
-
- "v*.*.*"
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
publish:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
steps:
|
|
11
|
-
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
12
|
-
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
13
|
-
with:
|
|
14
|
-
node-version: 16
|
|
15
|
-
- run: npm ci --omit=dev
|
|
16
|
-
- uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1
|
|
17
|
-
with:
|
|
18
|
-
token: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
19
|
-
access: public
|