mitra-interactions-sdk 1.0.67 → 1.0.68-beta.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 +777 -777
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +52 -52
package/dist/index.d.mts
CHANGED
|
@@ -756,8 +756,13 @@ interface AgentTaskSession {
|
|
|
756
756
|
readonly history: ReadonlyArray<AgentMessage>;
|
|
757
757
|
readonly content: string;
|
|
758
758
|
readonly queue: ReadonlyArray<QueuedItem>;
|
|
759
|
+
/**
|
|
760
|
+
* `userId`: dono da task, para um token ou chave dev/admin ler o historico de um chat de outro
|
|
761
|
+
* usuario do mesmo projeto. Ignorado para qualquer outro token.
|
|
762
|
+
*/
|
|
759
763
|
loadHistory(options?: {
|
|
760
764
|
limit?: number;
|
|
765
|
+
userId?: string | number;
|
|
761
766
|
}): Promise<AgentMessage[]>;
|
|
762
767
|
close(): void;
|
|
763
768
|
send(prompt: string, options?: SendOptions): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -756,8 +756,13 @@ interface AgentTaskSession {
|
|
|
756
756
|
readonly history: ReadonlyArray<AgentMessage>;
|
|
757
757
|
readonly content: string;
|
|
758
758
|
readonly queue: ReadonlyArray<QueuedItem>;
|
|
759
|
+
/**
|
|
760
|
+
* `userId`: dono da task, para um token ou chave dev/admin ler o historico de um chat de outro
|
|
761
|
+
* usuario do mesmo projeto. Ignorado para qualquer outro token.
|
|
762
|
+
*/
|
|
759
763
|
loadHistory(options?: {
|
|
760
764
|
limit?: number;
|
|
765
|
+
userId?: string | number;
|
|
761
766
|
}): Promise<AgentMessage[]>;
|
|
762
767
|
close(): void;
|
|
763
768
|
send(prompt: string, options?: SendOptions): void;
|
package/dist/index.js
CHANGED
|
@@ -1088,6 +1088,7 @@ var AgentTaskSession = class {
|
|
|
1088
1088
|
const payload = { taskId: this._taskId };
|
|
1089
1089
|
if (this._projectId != null) payload.projectId = this._projectId;
|
|
1090
1090
|
if ((options == null ? void 0 : options.limit) != null) payload.limit = options.limit;
|
|
1091
|
+
if ((options == null ? void 0 : options.userId) != null && options.userId !== "") payload.userId = options.userId;
|
|
1091
1092
|
const msgs = await this._transport.request("get_history", payload);
|
|
1092
1093
|
this._history = msgs;
|
|
1093
1094
|
this._emit("historyLoaded", msgs);
|