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,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { R as RobotRock, a as SendToHumanInput, S as SendToHumanActionInput, o as SendUpdateInput } from './client-
|
|
2
|
+
import { R as RobotRock, a as SendToHumanInput, S as SendToHumanActionInput, o as SendUpdateInput } from './client-CZ5eWH5v.js';
|
|
3
3
|
import { DiscriminatedApprovalResult, ThreadUpdate } from './schemas/index.js';
|
|
4
4
|
import { ToolApprovalResponse } from 'ai';
|
|
5
5
|
|
package/dist/trigger/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as _trigger_dev_sdk from '@trigger.dev/sdk';
|
|
2
2
|
import { R as RobotRockPlatformOtelFields } from '../otel-platform-DzHyHkGk.js';
|
|
3
3
|
export { a as RobotRockHandlerWebhookPayload } from '../otel-platform-DzHyHkGk.js';
|
|
4
|
-
import { S as SendToHumanActionInput, a as SendToHumanInput } from '../client-
|
|
4
|
+
import { S as SendToHumanActionInput, a as SendToHumanInput } from '../client-CZ5eWH5v.js';
|
|
5
5
|
export { ApprovalResult, DiscriminatedApprovalResult, TaskContextInput, TaskResult } from '../schemas/index.js';
|
|
6
6
|
import '@opentelemetry/api';
|
|
7
7
|
import '@robotrock/core';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import '../
|
|
9
|
+
import '../chat-correlation-BsHD-tOQ.js';
|
|
10
10
|
|
|
11
11
|
type SendToHumanPayload<A extends readonly SendToHumanActionInput[] = readonly SendToHumanActionInput[]> = SendToHumanInput<A> & RobotRockPlatformOtelFields & {
|
|
12
12
|
/** Inbox app bucket. Overrides `ROBOTROCK_APP` when set. */
|
package/dist/trigger/index.js
CHANGED
|
@@ -1061,11 +1061,31 @@ function resolveRobotRockAuthConfig(overrides) {
|
|
|
1061
1061
|
return { kind: "apiKey", apiKey };
|
|
1062
1062
|
}
|
|
1063
1063
|
|
|
1064
|
+
// src/chat-correlation.ts
|
|
1065
|
+
var ROBOTROCK_CHAT_ID_HEADER = "x-robotrock-chat-id";
|
|
1066
|
+
var ROBOTROCK_EVE_SESSION_ID_HEADER = "x-robotrock-eve-session-id";
|
|
1067
|
+
function buildChatCorrelationHeaders(correlation) {
|
|
1068
|
+
if (!correlation) {
|
|
1069
|
+
return {};
|
|
1070
|
+
}
|
|
1071
|
+
const headers = {};
|
|
1072
|
+
const chatId = correlation.chatId?.trim();
|
|
1073
|
+
const eveSessionId = correlation.eveSessionId?.trim();
|
|
1074
|
+
if (chatId) {
|
|
1075
|
+
headers[ROBOTROCK_CHAT_ID_HEADER] = chatId;
|
|
1076
|
+
}
|
|
1077
|
+
if (eveSessionId) {
|
|
1078
|
+
headers[ROBOTROCK_EVE_SESSION_ID_HEADER] = eveSessionId;
|
|
1079
|
+
}
|
|
1080
|
+
return headers;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1064
1083
|
// src/chats.ts
|
|
1065
1084
|
function createChatsApi(config) {
|
|
1066
1085
|
const headers = () => ({
|
|
1067
1086
|
"Content-Type": "application/json",
|
|
1068
|
-
...buildRobotRockAuthHeaders(config.auth)
|
|
1087
|
+
...buildRobotRockAuthHeaders(config.auth),
|
|
1088
|
+
...buildChatCorrelationHeaders(config.chatCorrelation)
|
|
1069
1089
|
});
|
|
1070
1090
|
return {
|
|
1071
1091
|
async create(input) {
|
|
@@ -1275,6 +1295,7 @@ function serializeValidUntil(value) {
|
|
|
1275
1295
|
}
|
|
1276
1296
|
var RobotRock = class {
|
|
1277
1297
|
auth;
|
|
1298
|
+
chatCorrelation;
|
|
1278
1299
|
baseUrl;
|
|
1279
1300
|
app;
|
|
1280
1301
|
agentVersion;
|
|
@@ -1302,6 +1323,7 @@ var RobotRock = class {
|
|
|
1302
1323
|
...apiKey ? { apiKey } : {},
|
|
1303
1324
|
...agentService ? { agentService } : {}
|
|
1304
1325
|
});
|
|
1326
|
+
this.chatCorrelation = config.chatCorrelation;
|
|
1305
1327
|
this.baseUrl = config.baseUrl ?? getRobotRockApiBaseUrl();
|
|
1306
1328
|
this.app = config.app;
|
|
1307
1329
|
this.agentVersion = config.version ?? resolveAgentVersionFromEnv();
|
|
@@ -1319,13 +1341,15 @@ var RobotRock = class {
|
|
|
1319
1341
|
this.chats = createChatsApi({
|
|
1320
1342
|
baseUrl: this.baseUrl,
|
|
1321
1343
|
auth: this.auth,
|
|
1322
|
-
app: this.app
|
|
1344
|
+
app: this.app,
|
|
1345
|
+
chatCorrelation: this.chatCorrelation
|
|
1323
1346
|
});
|
|
1324
1347
|
}
|
|
1325
1348
|
authHeaders(extra) {
|
|
1326
1349
|
return {
|
|
1327
1350
|
"Content-Type": "application/json",
|
|
1328
1351
|
...buildRobotRockAuthHeaders(this.auth),
|
|
1352
|
+
...buildChatCorrelationHeaders(this.chatCorrelation),
|
|
1329
1353
|
...extra
|
|
1330
1354
|
};
|
|
1331
1355
|
}
|