@flowfuse/nr-assistant 0.1.4-c26705a-202407171310.0 → 0.1.4-cba1235-202504140623.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.
@@ -11,7 +11,7 @@ on:
11
11
 
12
12
  jobs:
13
13
  build:
14
- uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.19.0'
14
+ uses: 'flowfuse/github-actions-workflows/.github/workflows/build_node_package.yml@v0.39.0'
15
15
  with:
16
16
  node: '[
17
17
  {"version": "16", "tests": true, "lint": false},
@@ -24,7 +24,7 @@ jobs:
24
24
  if: |
25
25
  ( github.event_name == 'push' && github.ref == 'refs/heads/main' ) ||
26
26
  ( github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main' )
27
- uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.19.0'
27
+ uses: 'flowfuse/github-actions-workflows/.github/workflows/publish_node_package.yml@v0.39.0'
28
28
  with:
29
29
  package_name: nr-assistant
30
30
  publish_package: true
@@ -38,12 +38,12 @@ jobs:
38
38
  steps:
39
39
  - name: Generate a token
40
40
  id: generate_token
41
- uses: tibdex/github-app-token@v2
41
+ uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2.1.0
42
42
  with:
43
43
  app_id: ${{ secrets.GH_BOT_APP_ID }}
44
44
  private_key: ${{ secrets.GH_BOT_APP_KEY }}
45
45
  - name: Trigger nr-launcher package build
46
- uses: benc-uk/workflow-dispatch@v1
46
+ uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4
47
47
  with:
48
48
  workflow: publish.yml
49
49
  repo: flowfuse/nr-launcher
@@ -8,12 +8,12 @@ jobs:
8
8
  publish:
9
9
  runs-on: ubuntu-latest
10
10
  steps:
11
- - uses: actions/checkout@v4
12
- - uses: actions/setup-node@v4
11
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
13
13
  with:
14
14
  node-version: 16
15
15
  - run: npm ci --omit=dev
16
- - uses: JS-DevTools/npm-publish@v3
16
+ - uses: JS-DevTools/npm-publish@19c28f1ef146469e409470805ea4279d47c3d35c # v3.1.1
17
17
  with:
18
18
  token: ${{ secrets.NPM_PUBLISH_TOKEN }}
19
19
  access: public
package/README.md CHANGED
@@ -1,7 +1,8 @@
1
1
  # FlowFuse Node-RED Assistant
2
2
 
3
- A Node-RED plugin to assist FlowFuse users
3
+ A Node-RED plugin to assist FlowFuse users.
4
4
 
5
+ This plugin can only be used within FlowFuse-managed Node-RED instances.
5
6
 
6
7
  ## Installation
7
8
 
@@ -11,7 +12,7 @@ npm install @flowfuse/nr-assistant
11
12
 
12
13
  ## Development
13
14
 
14
- Client-side portion of the plugin is in `index.js`. The server side code is in `index.js`
15
+ Client-side portion of the plugin is in `index.html`. The server side code is in `index.js`
15
16
 
16
17
  ## About
17
18
 
@@ -20,7 +21,9 @@ This plugin is designed to assist users of the FlowFuse platform by providing to
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.
21
22
 
22
23
  ## NOTES:
24
+
23
25
  * Requires the settings.js file to contain the following:
26
+
24
27
  ```json
25
28
  {
26
29
  "flowforge": {
@@ -34,6 +37,10 @@ The capabilities it adds to Node-RED can be found in Node-RED editor on the main
34
37
  }
35
38
  ```
36
39
 
40
+ These values are automatically set when running within the FlowFuse platform via the `nr-launcher` component.
41
+
42
+ The `url` and `token` are for an AI service hosted by FlowFuse; it is not publicly available for use outside of the FlowFuse platform.
43
+
37
44
 
38
45
  ## Limitations
39
46
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@flowfuse/nr-assistant",
3
- "version": "0.1.4-c26705a-202407171310.0",
3
+ "version": "0.1.4-cba1235-202504140623.0",
4
4
  "description": "FlowFuse Node-RED assistant plugin",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 0",
8
- "lint": "eslint -c .eslintrc --ext js,html *.js *.html",
9
- "lint:fix": "eslint -c .eslintrc --ext js,html *.js *.html --fix"
8
+ "lint": "eslint -c .eslintrc --ext js,html \"*.js\" \"*.html\"",
9
+ "lint:fix": "eslint -c .eslintrc --ext js,html \"*.js\" \"*.html\" --fix"
10
10
  },
11
11
  "keywords": [
12
12
  "node-red",