n8n-nodes-pronote 0.2.0 → 0.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.
|
@@ -15,11 +15,10 @@ class PronoteTool {
|
|
|
15
15
|
group: ["transform"],
|
|
16
16
|
version: 1,
|
|
17
17
|
description: "Expose PRONOTE timetable, tasks, and grades to AI Agents",
|
|
18
|
-
subtitle: "={{ \"
|
|
18
|
+
subtitle: "={{ $parameter[\"toolDescription\"] || \"PRONOTE tool\" }}",
|
|
19
19
|
defaults: {
|
|
20
20
|
name: "PRONOTE Tool",
|
|
21
21
|
},
|
|
22
|
-
usableAsTool: true,
|
|
23
22
|
inputs: [],
|
|
24
23
|
outputs: [n8n_workflow_1.NodeConnectionTypes.AiTool],
|
|
25
24
|
outputNames: ["Tool"],
|
|
@@ -33,8 +32,14 @@ class PronoteTool {
|
|
|
33
32
|
{
|
|
34
33
|
displayName: "Tool Description",
|
|
35
34
|
name: "toolDescription",
|
|
36
|
-
type: "
|
|
37
|
-
default: "Use this tool to read timetable, homework/tasks, or grade information from PRONOTE.
|
|
35
|
+
type: "string",
|
|
36
|
+
default: "Use this tool to read timetable, homework/tasks, or grade information from PRONOTE. " +
|
|
37
|
+
"Provide action: timetable, tasks, grades, or gradePeriods. " +
|
|
38
|
+
"Use referenceDate (ISO) for timetable/tasks; periodName for grades.",
|
|
39
|
+
description: "Optional guidance shown to the model about how to use this tool.",
|
|
40
|
+
typeOptions: {
|
|
41
|
+
rows: 3,
|
|
42
|
+
},
|
|
38
43
|
},
|
|
39
44
|
],
|
|
40
45
|
};
|
|
@@ -44,10 +49,11 @@ class PronoteTool {
|
|
|
44
49
|
const { session } = await (0, GenericFunctions_1.getPronoteAuth)(this);
|
|
45
50
|
const tool = new tools_1.DynamicStructuredTool({
|
|
46
51
|
name: "pronote",
|
|
47
|
-
description: "
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
52
|
+
description: this.getNodeParameter("toolDescription", 0) ||
|
|
53
|
+
"Fetch timetable, homework/tasks, or grade information from PRONOTE. " +
|
|
54
|
+
"Actions: timetable, tasks, grades, gradePeriods. " +
|
|
55
|
+
"Use referenceDate (ISO date) to target a week for timetable/tasks. " +
|
|
56
|
+
"When action=grades, provide periodName (ID or label).",
|
|
51
57
|
schema: zod_1.z.object({
|
|
52
58
|
action: zod_1.z
|
|
53
59
|
.enum(["timetable", "tasks", "grades", "gradePeriods"])
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-pronote",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "n8n custom nodes and agent utilities to talk to PRONOTE via the Pawnote library.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/nodes/Pronote/Pronote.node.js",
|
|
7
7
|
"types": "dist/nodes/Pronote/Pronote.node.d.ts",
|
|
8
|
+
"keywords": ["n8n-community-node-package", "n8n", "n8n-nodes", "pronote", "pawnote", "langchain"],
|
|
8
9
|
"scripts": {
|
|
9
10
|
"build": "tsc -p .",
|
|
10
11
|
"clean": "rimraf dist"
|