@deepidealab/n8n-nodes-tracira 0.7.0 → 0.8.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.
Files changed (32) hide show
  1. package/README.md +11 -11
  2. package/dist/nodes/Tracira/Tracira.node.d.ts +8 -0
  3. package/dist/nodes/Tracira/Tracira.node.js +231 -99
  4. package/dist/nodes/Tracira/Tracira.node.js.map +1 -1
  5. package/dist/nodes/Tracira/listSearch/getProjects.d.ts +2 -0
  6. package/dist/nodes/Tracira/listSearch/{getFlows.js → getProjects.js} +8 -8
  7. package/dist/nodes/Tracira/listSearch/getProjects.js.map +1 -0
  8. package/dist/nodes/Tracira/listSearch/{getFlows.d.ts → getTasks.d.ts} +1 -1
  9. package/dist/nodes/Tracira/listSearch/getTasks.js +18 -0
  10. package/dist/nodes/Tracira/listSearch/getTasks.js.map +1 -0
  11. package/dist/package.json +2 -2
  12. package/dist/tsconfig.tsbuildinfo +1 -1
  13. package/package.json +2 -2
  14. package/dist/nodes/Tracira/listSearch/getChecks.d.ts +0 -2
  15. package/dist/nodes/Tracira/listSearch/getChecks.js +0 -18
  16. package/dist/nodes/Tracira/listSearch/getChecks.js.map +0 -1
  17. package/dist/nodes/Tracira/listSearch/getFlows.js.map +0 -1
  18. package/dist/nodes/Tracira/listSearch/getModels.d.ts +0 -2
  19. package/dist/nodes/Tracira/listSearch/getModels.js +0 -18
  20. package/dist/nodes/Tracira/listSearch/getModels.js.map +0 -1
  21. package/dist/nodes/Tracira/resources/execution/get.d.ts +0 -2
  22. package/dist/nodes/Tracira/resources/execution/get.js +0 -21
  23. package/dist/nodes/Tracira/resources/execution/get.js.map +0 -1
  24. package/dist/nodes/Tracira/resources/execution/getAll.d.ts +0 -2
  25. package/dist/nodes/Tracira/resources/execution/getAll.js +0 -244
  26. package/dist/nodes/Tracira/resources/execution/getAll.js.map +0 -1
  27. package/dist/nodes/Tracira/resources/execution/index.d.ts +0 -2
  28. package/dist/nodes/Tracira/resources/execution/index.js +0 -73
  29. package/dist/nodes/Tracira/resources/execution/index.js.map +0 -1
  30. package/dist/nodes/Tracira/resources/execution/log.d.ts +0 -2
  31. package/dist/nodes/Tracira/resources/execution/log.js +0 -291
  32. package/dist/nodes/Tracira/resources/execution/log.js.map +0 -1
package/README.md CHANGED
@@ -27,16 +27,16 @@ npm run verify
27
27
 
28
28
  ## Operations
29
29
 
30
- The node currently supports the `Log` resource with these operations:
30
+ The node currently supports the `Log` resource with these operations (named to match the Tracira Make app modules):
31
31
 
32
- - `Log`: Send an AI output to Tracira for evaluation. Waits for the verdict by default; supports async (fire-and-forget) mode, callback URL with event filtering, and all standard context fields.
33
- - `Get`: Fetch a single log by ID.
34
- - `Get Many`: List logs with filters such as status, project, task, and date range.
35
- - `Set Decision`: Approve or reject a flagged log, or send it back to the AI with a comment (`Changed`). When you choose `Changed`, the comment is delivered to the downstream automation, which regenerates the output and resubmits it with the `Log` operation's `Revision Of` field set to the original log ID — forming a revision chain.
36
- - `Flag`: Flag an evaluated log for human review — for example when an end-user reports an issue with an AI response. The log re-enters the pending-review queue and notification channels fire.
37
- - `Upload File`: Upload a large file (PDF, image, audio) directly to Tracira storage and get back a `key`. Use it for files over ~3 MB that exceed the request size limit; map a binary field (e.g. `data`). Supports up to 32 MB. Pass the returned `key` to the `Log` operation's `Attachments` field.
32
+ - `Create a Log`: Send an AI output to Tracira and create a log for evaluation. Waits for the verdict by default; supports async (fire-and-forget) mode, callback URL with event filtering, and all standard context fields. `Project Name` and `Task Name` offer a searchable dropdown of your existing Tracira projects/tasks, or accept a new name typed manually.
33
+ - `Get a Log`: Fetch a single log by ID.
34
+ - `Search Logs`: List logs with filters such as status, project, task, and date range.
35
+ - `Set a Decision`: `Approve` or `Reject` a flagged log, or `Send Back for Changes` with a comment. The comment is delivered to the downstream automation, which regenerates the output and resubmits it with the `Create a Log` operation's `Revision Of` field set to the original log ID — forming a revision chain.
36
+ - `Flag a Log`: Flag an evaluated log for human review — for example when an end-user reports an issue with an AI response. The log re-enters the pending-review queue and notification channels fire.
37
+ - `Upload a File`: Upload a large file (PDF, image, audio) directly to Tracira storage and get back a `key`. Use it for files over ~3 MB that exceed the request size limit; map a binary field (e.g. `data`). Supports up to 32 MB. Pass the returned `key` to the `Create a Log` operation's `Attachments` field.
38
38
 
39
- The `Log` operation also has an `Attachments` field: attach files by `Uploaded File (Key)` (from the `Upload File` operation) or by `URL`. Small files can be sent as a URL; large files should go through `Upload File` first.
39
+ The `Create a Log` operation also has an `Attachments` field with three sources: `Upload File` (send a binary field inline with the request keep under ~3 MB), `From URL` (a publicly accessible HTTPS URL), or `Tracira Upload` (a `key` from the `Upload a File` operation, for large files).
40
40
 
41
41
  The node also supports the `API` resource with:
42
42
 
@@ -44,7 +44,7 @@ The node also supports the `API` resource with:
44
44
 
45
45
  ### Sync vs async
46
46
 
47
- By default the `Log` operation **waits for the verdict** (`Wait for Verdict` is on): Tracira evaluates inline and responds with the full `{ ok, id, status, verdict, confidenceScore, explanation }` so you can branch on `status` or `verdict` in the same workflow execution. Evaluation is capped at 30 seconds.
47
+ By default the `Create a Log` operation **waits for the verdict** (`Wait for Verdict` is on): Tracira evaluates inline and responds with the full `{ ok, id, status, verdict, confidenceScore, explanation }` so you can branch on `status` or `verdict` in the same workflow execution. Evaluation is capped at 30 seconds.
48
48
 
49
49
  Turn **Wait for Verdict** off for fire-and-forget logging: Tracira responds immediately with HTTP `202` and `{ ok, id, status: "pending" }`, then evaluates in the background. Use this for high-volume logging where you don't need the verdict inline.
50
50
 
@@ -74,9 +74,9 @@ This package is being set up against the current n8n community-node tooling and
74
74
  Typical pattern:
75
75
 
76
76
  1. Run your AI step in n8n.
77
- 2. Send the model output to `Tracira -> Log -> Log`.
77
+ 2. Send the model output to `Tracira -> Log -> Create a Log`.
78
78
  3. Branch on the returned `status`, `verdict`, or `confidenceScore`.
79
- 4. Optionally query historic logs with `Get` or `Get Many`.
79
+ 4. Optionally query historic logs with `Get a Log` or `Search Logs`.
80
80
 
81
81
  ## Example workflow
82
82
 
@@ -1,5 +1,13 @@
1
1
  import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ import { getProjects } from './listSearch/getProjects';
3
+ import { getTasks } from './listSearch/getTasks';
2
4
  export declare class Tracira implements INodeType {
3
5
  description: INodeTypeDescription;
6
+ methods: {
7
+ listSearch: {
8
+ getProjects: typeof getProjects;
9
+ getTasks: typeof getTasks;
10
+ };
11
+ };
4
12
  execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
13
  }