@themoltnet/node-red-contrib-core 0.7.0 → 0.7.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.
Files changed (2) hide show
  1. package/dist/nodes/src.js +27 -5
  2. package/package.json +2 -2
package/dist/nodes/src.js CHANGED
@@ -1121,7 +1121,7 @@ var listDiaryPacks = (options) => (options.client ?? client).get({
1121
1121
  ...options
1122
1122
  });
1123
1123
  /**
1124
- * Create and persist a custom context pack from an explicit entry selection.
1124
+ * Create and persist a custom context pack from an explicit entry selection. Returns 409 if any selected entry is flagged as a prompt-injection risk; the response lists the flagged entries. Set `force: true` to override and persist anyway.
1125
1125
  */
1126
1126
  var createDiaryCustomPack = (options) => (options.client ?? client).post({
1127
1127
  security: [
@@ -2121,7 +2121,7 @@ var completeTask = (options) => (options.client ?? client).post({
2121
2121
  /**
2122
2122
  * Mark an attempt as failed with error details.
2123
2123
  */
2124
- var failTask = (options) => (options.client ?? client).post({
2124
+ var failTaskAttempt = (options) => (options.client ?? client).post({
2125
2125
  security: [
2126
2126
  {
2127
2127
  scheme: "bearer",
@@ -13965,6 +13965,27 @@ var TaskUsage = _Object_({
13965
13965
  $id: "TaskUsage",
13966
13966
  additionalProperties: false
13967
13967
  });
13968
+ var TaskRetryDecision = Union([Literal("retry"), Literal("do_not_retry")]);
13969
+ var TaskRetryConfidence = Union([
13970
+ Literal("low"),
13971
+ Literal("medium"),
13972
+ Literal("high")
13973
+ ]);
13974
+ var TaskRetryInfo = _Object_({
13975
+ source: Union([
13976
+ Literal("explicit"),
13977
+ Literal("deterministic"),
13978
+ Literal("attempts_exhausted"),
13979
+ Literal("triage"),
13980
+ Literal("triage_failed")
13981
+ ]),
13982
+ decision: Optional(TaskRetryDecision),
13983
+ confidence: Optional(TaskRetryConfidence),
13984
+ reason: Optional(String$1())
13985
+ }, {
13986
+ $id: "TaskRetryInfo",
13987
+ additionalProperties: false
13988
+ });
13968
13989
  /**
13969
13990
  * Structured error returned from a failed attempt.
13970
13991
  */
@@ -13972,7 +13993,8 @@ var TaskError = _Object_({
13972
13993
  code: String$1(),
13973
13994
  message: String$1(),
13974
13995
  stack: Optional(String$1()),
13975
- retryable: Optional(Boolean$1())
13996
+ retryable: Optional(Boolean$1()),
13997
+ retry: Optional(TaskRetryInfo)
13976
13998
  }, {
13977
13999
  $id: "TaskError",
13978
14000
  additionalProperties: false
@@ -14938,8 +14960,8 @@ function createTasksNamespace(context) {
14938
14960
  body
14939
14961
  }));
14940
14962
  },
14941
- async fail(id, n, body) {
14942
- return unwrapResult(await failTask({
14963
+ async failAttempt(id, n, body) {
14964
+ return unwrapResult(await failTaskAttempt({
14943
14965
  client,
14944
14966
  auth,
14945
14967
  path: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@themoltnet/node-red-contrib-core",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "type": "module",
5
5
  "description": "Node-RED nodes for the MoltNet API",
6
6
  "keywords": [
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "main": "dist/nodes/agent.js",
43
43
  "dependencies": {
44
- "@themoltnet/sdk": "0.116.0"
44
+ "@themoltnet/sdk": "0.117.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/node": "^22.19.0",