robotrock 1.3.1 → 1.3.3
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/dist/agent-admin.d.ts +2 -1
- package/dist/agent-admin.js +44 -0
- package/dist/agent-admin.js.map +1 -1
- package/dist/ai/index.d.ts +6 -6
- package/dist/ai/index.js +34 -2
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/trigger.d.ts +4 -4
- package/dist/ai/trigger.js +34 -2
- package/dist/ai/trigger.js.map +1 -1
- package/dist/ai/workflow.d.ts +4 -4
- package/dist/ai/workflow.js +34 -2
- package/dist/ai/workflow.js.map +1 -1
- package/dist/{auth-headers-qL-ZeEtd.d.ts → chat-correlation-BsHD-tOQ.d.ts} +6 -1
- package/dist/{client-YO9Y1rkH.d.ts → client-CZ5eWH5v.d.ts} +6 -1
- package/dist/eve/agent/index.d.ts +69 -6
- package/dist/eve/agent/index.js +165 -238
- package/dist/eve/agent/index.js.map +1 -1
- package/dist/eve/index.d.ts +3 -3
- package/dist/eve/index.js +1 -26
- package/dist/eve/index.js.map +1 -1
- package/dist/eve/tools/admin/assign-tasks.js +44 -0
- package/dist/eve/tools/admin/assign-tasks.js.map +1 -1
- package/dist/eve/tools/admin/manage-groups.js +44 -0
- package/dist/eve/tools/admin/manage-groups.js.map +1 -1
- package/dist/eve/tools/admin/manage-team-members.js +44 -0
- package/dist/eve/tools/admin/manage-team-members.js.map +1 -1
- package/dist/eve/tools/admin/query-tasks.js +44 -0
- package/dist/eve/tools/admin/query-tasks.js.map +1 -1
- package/dist/eve/tools/identity/index.d.ts +1 -1
- package/dist/eve/tools/identity/index.js +2 -0
- package/dist/eve/tools/identity/index.js.map +1 -1
- package/dist/eve/tools/identity/my-access.js +2 -0
- package/dist/eve/tools/identity/my-access.js.map +1 -1
- package/dist/eve/tools/identity/whoami.d.ts +1 -1
- package/dist/eve/tools/identity/whoami.js +2 -0
- package/dist/eve/tools/identity/whoami.js.map +1 -1
- package/dist/eve/tools/inbox/create-task.d.ts +1 -1
- package/dist/eve/tools/inbox/create-task.js +56 -31
- package/dist/eve/tools/inbox/create-task.js.map +1 -1
- package/dist/eve/tools/inbox/index.d.ts +1 -1
- package/dist/eve/tools/inbox/index.js +56 -31
- package/dist/eve/tools/inbox/index.js.map +1 -1
- package/dist/eve/tools/index.d.ts +1 -1
- package/dist/eve/tools/index.js +68 -31
- package/dist/eve/tools/index.js.map +1 -1
- package/dist/{index-DoQN48Bm.d.ts → index-DePyAbTI.d.ts} +6 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +26 -2
- package/dist/index.js.map +1 -1
- package/dist/{tenant-5YKDrdC-.d.ts → tenant-DmN0MMyC.d.ts} +1 -0
- package/dist/{tool-approval-bridge-aMA79Z1B.d.ts → tool-approval-bridge-DnGaRES4.d.ts} +1 -1
- package/dist/trigger/index.d.ts +2 -2
- package/dist/trigger/index.js +26 -2
- package/dist/trigger/index.js.map +1 -1
- package/dist/{trigger-CXrbKVCL.d.ts → trigger--qTIK0s6.d.ts} +2 -2
- package/dist/workflow/index.d.ts +2 -2
- package/dist/workflow/index.js +26 -2
- package/dist/workflow/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Tool } from 'ai';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { R as RobotRock, S as SendToHumanActionInput } from './client-
|
|
4
|
-
import { A as ApproveByHumanToolDurableOptions, a as ApproveByHumanToolOptions, N as approveByHumanInputSchema, H as HumanToolResult, i as CreateSendToHumanToolDurableOptions, C as CreateSendToHumanToolOptions, a7 as sendToHumanToolInputSchema, j as CreateSendUpdateToolDurableOptions, c as CreateSendUpdateToolOptions, a9 as sendUpdateToolInputSchema, L as SendUpdateToolResult, e as RequestActionInputToolOptions, a4 as requestActionInputToolInputSchema, E as RequestActionInputToolOutput, g as ReportStatusToolOptions, a2 as reportStatusToolInputSchema, B as ReportStatusToolOutput, k as RobotRockAiContext } from './tool-approval-bridge-
|
|
3
|
+
import { R as RobotRock, S as SendToHumanActionInput } from './client-CZ5eWH5v.js';
|
|
4
|
+
import { A as ApproveByHumanToolDurableOptions, a as ApproveByHumanToolOptions, N as approveByHumanInputSchema, H as HumanToolResult, i as CreateSendToHumanToolDurableOptions, C as CreateSendToHumanToolOptions, a7 as sendToHumanToolInputSchema, j as CreateSendUpdateToolDurableOptions, c as CreateSendUpdateToolOptions, a9 as sendUpdateToolInputSchema, L as SendUpdateToolResult, e as RequestActionInputToolOptions, a4 as requestActionInputToolInputSchema, E as RequestActionInputToolOutput, g as ReportStatusToolOptions, a2 as reportStatusToolInputSchema, B as ReportStatusToolOutput, k as RobotRockAiContext } from './tool-approval-bridge-DnGaRES4.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* AI SDK tool with fixed approve/decline actions; blocks until a human decides.
|
package/dist/workflow/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ThreadUpdateStatus, DiscriminatedApprovalResult, ThreadUpdate } from '../schemas/index.js';
|
|
2
2
|
export { ApprovalResult, TaskContextInput, TaskResult } from '../schemas/index.js';
|
|
3
|
-
import { S as SendToHumanActionInput, a as SendToHumanInput } from '../client-
|
|
3
|
+
import { S as SendToHumanActionInput, a as SendToHumanInput } from '../client-CZ5eWH5v.js';
|
|
4
4
|
import { R as RobotRockPlatformOtelFields } from '../otel-platform-DzHyHkGk.js';
|
|
5
5
|
export { a as RobotRockHandlerWebhookPayload } from '../otel-platform-DzHyHkGk.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@robotrock/core';
|
|
8
|
-
import '../
|
|
8
|
+
import '../chat-correlation-BsHD-tOQ.js';
|
|
9
9
|
import '@opentelemetry/api';
|
|
10
10
|
|
|
11
11
|
type SendToHumanWorkflowPayload<A extends readonly SendToHumanActionInput[] = readonly SendToHumanActionInput[]> = SendToHumanInput<A> & RobotRockPlatformOtelFields & {
|
package/dist/workflow/index.js
CHANGED
|
@@ -913,11 +913,31 @@ function resolveRobotRockAuthConfig(overrides) {
|
|
|
913
913
|
return { kind: "apiKey", apiKey };
|
|
914
914
|
}
|
|
915
915
|
|
|
916
|
+
// src/chat-correlation.ts
|
|
917
|
+
var ROBOTROCK_CHAT_ID_HEADER = "x-robotrock-chat-id";
|
|
918
|
+
var ROBOTROCK_EVE_SESSION_ID_HEADER = "x-robotrock-eve-session-id";
|
|
919
|
+
function buildChatCorrelationHeaders(correlation) {
|
|
920
|
+
if (!correlation) {
|
|
921
|
+
return {};
|
|
922
|
+
}
|
|
923
|
+
const headers = {};
|
|
924
|
+
const chatId = correlation.chatId?.trim();
|
|
925
|
+
const eveSessionId = correlation.eveSessionId?.trim();
|
|
926
|
+
if (chatId) {
|
|
927
|
+
headers[ROBOTROCK_CHAT_ID_HEADER] = chatId;
|
|
928
|
+
}
|
|
929
|
+
if (eveSessionId) {
|
|
930
|
+
headers[ROBOTROCK_EVE_SESSION_ID_HEADER] = eveSessionId;
|
|
931
|
+
}
|
|
932
|
+
return headers;
|
|
933
|
+
}
|
|
934
|
+
|
|
916
935
|
// src/chats.ts
|
|
917
936
|
function createChatsApi(config) {
|
|
918
937
|
const headers = () => ({
|
|
919
938
|
"Content-Type": "application/json",
|
|
920
|
-
...buildRobotRockAuthHeaders(config.auth)
|
|
939
|
+
...buildRobotRockAuthHeaders(config.auth),
|
|
940
|
+
...buildChatCorrelationHeaders(config.chatCorrelation)
|
|
921
941
|
});
|
|
922
942
|
return {
|
|
923
943
|
async create(input) {
|
|
@@ -1127,6 +1147,7 @@ function serializeValidUntil(value) {
|
|
|
1127
1147
|
}
|
|
1128
1148
|
var RobotRock = class {
|
|
1129
1149
|
auth;
|
|
1150
|
+
chatCorrelation;
|
|
1130
1151
|
baseUrl;
|
|
1131
1152
|
app;
|
|
1132
1153
|
agentVersion;
|
|
@@ -1154,6 +1175,7 @@ var RobotRock = class {
|
|
|
1154
1175
|
...apiKey ? { apiKey } : {},
|
|
1155
1176
|
...agentService ? { agentService } : {}
|
|
1156
1177
|
});
|
|
1178
|
+
this.chatCorrelation = config.chatCorrelation;
|
|
1157
1179
|
this.baseUrl = config.baseUrl ?? getRobotRockApiBaseUrl();
|
|
1158
1180
|
this.app = config.app;
|
|
1159
1181
|
this.agentVersion = config.version ?? resolveAgentVersionFromEnv();
|
|
@@ -1171,13 +1193,15 @@ var RobotRock = class {
|
|
|
1171
1193
|
this.chats = createChatsApi({
|
|
1172
1194
|
baseUrl: this.baseUrl,
|
|
1173
1195
|
auth: this.auth,
|
|
1174
|
-
app: this.app
|
|
1196
|
+
app: this.app,
|
|
1197
|
+
chatCorrelation: this.chatCorrelation
|
|
1175
1198
|
});
|
|
1176
1199
|
}
|
|
1177
1200
|
authHeaders(extra) {
|
|
1178
1201
|
return {
|
|
1179
1202
|
"Content-Type": "application/json",
|
|
1180
1203
|
...buildRobotRockAuthHeaders(this.auth),
|
|
1204
|
+
...buildChatCorrelationHeaders(this.chatCorrelation),
|
|
1181
1205
|
...extra
|
|
1182
1206
|
};
|
|
1183
1207
|
}
|