@deepidealab/n8n-nodes-tracira 0.6.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.
- package/README.md +13 -13
- package/dist/credentials/TraciraApi.credentials.js +2 -2
- package/dist/credentials/TraciraApi.credentials.js.map +1 -1
- package/dist/nodes/Tracira/Tracira.node.d.ts +8 -0
- package/dist/nodes/Tracira/Tracira.node.js +340 -66
- package/dist/nodes/Tracira/Tracira.node.js.map +1 -1
- package/dist/nodes/Tracira/listSearch/getProjects.d.ts +2 -0
- package/dist/nodes/Tracira/listSearch/{getFlows.js → getProjects.js} +8 -8
- package/dist/nodes/Tracira/listSearch/getProjects.js.map +1 -0
- package/dist/nodes/Tracira/listSearch/{getFlows.d.ts → getTasks.d.ts} +1 -1
- package/dist/nodes/Tracira/listSearch/getTasks.js +18 -0
- package/dist/nodes/Tracira/listSearch/getTasks.js.map +1 -0
- package/dist/package.json +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/nodes/Tracira/listSearch/getChecks.d.ts +0 -2
- package/dist/nodes/Tracira/listSearch/getChecks.js +0 -18
- package/dist/nodes/Tracira/listSearch/getChecks.js.map +0 -1
- package/dist/nodes/Tracira/listSearch/getFlows.js.map +0 -1
- package/dist/nodes/Tracira/listSearch/getModels.d.ts +0 -2
- package/dist/nodes/Tracira/listSearch/getModels.js +0 -18
- package/dist/nodes/Tracira/listSearch/getModels.js.map +0 -1
- package/dist/nodes/Tracira/resources/execution/get.d.ts +0 -2
- package/dist/nodes/Tracira/resources/execution/get.js +0 -21
- package/dist/nodes/Tracira/resources/execution/get.js.map +0 -1
- package/dist/nodes/Tracira/resources/execution/getAll.d.ts +0 -2
- package/dist/nodes/Tracira/resources/execution/getAll.js +0 -244
- package/dist/nodes/Tracira/resources/execution/getAll.js.map +0 -1
- package/dist/nodes/Tracira/resources/execution/index.d.ts +0 -2
- package/dist/nodes/Tracira/resources/execution/index.js +0 -73
- package/dist/nodes/Tracira/resources/execution/index.js.map +0 -1
- package/dist/nodes/Tracira/resources/execution/log.d.ts +0 -2
- package/dist/nodes/Tracira/resources/execution/log.js +0 -291
- package/dist/nodes/Tracira/resources/execution/log.js.map +0 -1
package/README.md
CHANGED
|
@@ -27,13 +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
|
-
- `
|
|
35
|
-
- `Set Decision`: Approve or
|
|
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.
|
|
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
|
+
|
|
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).
|
|
37
40
|
|
|
38
41
|
The node also supports the `API` resource with:
|
|
39
42
|
|
|
@@ -41,7 +44,7 @@ The node also supports the `API` resource with:
|
|
|
41
44
|
|
|
42
45
|
### Sync vs async
|
|
43
46
|
|
|
44
|
-
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.
|
|
45
48
|
|
|
46
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.
|
|
47
50
|
|
|
@@ -49,9 +52,6 @@ Turn **Wait for Verdict** off for fire-and-forget logging: Tracira responds imme
|
|
|
49
52
|
|
|
50
53
|
The Tracira Make custom app (`make-app/` in the main repo) is the reference integration. When the Tracira API changes — new webhook fields, renamed endpoints, new status values — both the Make app and this n8n node must be updated together.
|
|
51
54
|
|
|
52
|
-
**Not yet implemented** (deferred — too complex for n8n's current node UI):
|
|
53
|
-
- Multimodal input / file attachments (`attachments`, `inputText`). The Make app supports uploading files or passing URLs; the n8n equivalent requires a complex array param and is deferred until a cleaner pattern is established.
|
|
54
|
-
|
|
55
55
|
## Credentials
|
|
56
56
|
|
|
57
57
|
Use the `Tracira API` credential.
|
|
@@ -63,7 +63,7 @@ You need a workspace webhook token from your Tracira dashboard:
|
|
|
63
63
|
3. Copy the webhook token.
|
|
64
64
|
4. Paste it into the `Workspace Token` field in n8n.
|
|
65
65
|
|
|
66
|
-
The credential test calls `GET /api/verify` on Tracira and
|
|
66
|
+
The credential test calls `GET /api/verify` on Tracira and sends the token as an `Authorization: Bearer <token>` header.
|
|
67
67
|
|
|
68
68
|
## Compatibility
|
|
69
69
|
|
|
@@ -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 `
|
|
79
|
+
4. Optionally query historic logs with `Get a Log` or `Search Logs`.
|
|
80
80
|
|
|
81
81
|
## Example workflow
|
|
82
82
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TraciraApi.credentials.js","sourceRoot":"","sources":["../../credentials/TraciraApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,aAAa,CAAC;QAE5B,SAAI,GAAS,EAAE,KAAK,EAAE,mCAAmC,EAAE,IAAI,EAAE,wCAAwC,EAAE,CAAC;QAE5G,qBAAgB,GAAG,iFAAiF,CAAC;QAErG,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+CAA+C;aAC5D;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,
|
|
1
|
+
{"version":3,"file":"TraciraApi.credentials.js","sourceRoot":"","sources":["../../credentials/TraciraApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,UAAU;IAAvB;QACC,SAAI,GAAG,YAAY,CAAC;QAEpB,gBAAW,GAAG,aAAa,CAAC;QAE5B,SAAI,GAAS,EAAE,KAAK,EAAE,mCAAmC,EAAE,IAAI,EAAE,wCAAwC,EAAE,CAAC;QAE5G,qBAAgB,GAAG,iFAAiF,CAAC;QAErG,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,+CAA+C;aAC5D;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,uCAAuC;iBACtD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,6BAA6B;gBACtC,GAAG,EAAE,SAAS;gBACd,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AArCD,gCAqCC"}
|
|
@@ -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
|
}
|