@dudousxd/nestjs-agent-core 0.32.0 → 0.33.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.
@@ -1,4 +1,4 @@
1
- import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-BhhzEI40.js';
1
+ import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-CMTuoJ2v.js';
2
2
 
3
3
  /**
4
4
  * The two seams that see a turn's traffic to and from the model: an {@link InputProcessor} rewrites
@@ -1,4 +1,4 @@
1
- import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-BhhzEI40.cjs';
1
+ import { M as ModelMessage, A as Actor, d as ToolCallRequest } from './tool-CMTuoJ2v.cjs';
2
2
 
3
3
  /**
4
4
  * The two seams that see a turn's traffic to and from the model: an {@link InputProcessor} rewrites
@@ -912,11 +912,19 @@ interface EnqueueMessageInput {
912
912
  /** `'tail'` (default) runs it after everything already waiting; `'head'` runs it next. */
913
913
  at?: 'tail' | 'head';
914
914
  }
915
- /** What `PATCH <base>/queue/:messageId` may change. An omitted key leaves the field as it is. */
915
+ /**
916
+ * What a store may change on a waiting message (`PATCH <base>/queue/:messageId` sets the text and
917
+ * attachments). An omitted key leaves the field as it is.
918
+ */
916
919
  interface QueuedMessagePatch {
917
920
  content?: string;
918
921
  /** `null` drops every attachment. */
919
922
  attachments?: MessageAttachment[] | null;
923
+ /**
924
+ * Mark (or unmark) the message as an interrupt — what `POST <base>/queue/:messageId/interrupt`
925
+ * does to a message that is already waiting, before it cancels the running turn for it.
926
+ */
927
+ interrupt?: boolean;
920
928
  }
921
929
  /**
922
930
  * A store that can hold a thread's queue of waiting messages, and admit ONE run per thread at a time.
@@ -912,11 +912,19 @@ interface EnqueueMessageInput {
912
912
  /** `'tail'` (default) runs it after everything already waiting; `'head'` runs it next. */
913
913
  at?: 'tail' | 'head';
914
914
  }
915
- /** What `PATCH <base>/queue/:messageId` may change. An omitted key leaves the field as it is. */
915
+ /**
916
+ * What a store may change on a waiting message (`PATCH <base>/queue/:messageId` sets the text and
917
+ * attachments). An omitted key leaves the field as it is.
918
+ */
916
919
  interface QueuedMessagePatch {
917
920
  content?: string;
918
921
  /** `null` drops every attachment. */
919
922
  attachments?: MessageAttachment[] | null;
923
+ /**
924
+ * Mark (or unmark) the message as an interrupt — what `POST <base>/queue/:messageId/interrupt`
925
+ * does to a message that is already waiting, before it cancels the running turn for it.
926
+ */
927
+ interrupt?: boolean;
920
928
  }
921
929
  /**
922
930
  * A store that can hold a thread's queue of waiting messages, and admit ONE run per thread at a time.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dudousxd/nestjs-agent-core",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/DavideCarvalho/nestjs-agent.git",