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,4 +1,4 @@
|
|
|
1
|
-
import { S as SendToHumanActionInput } from './client-
|
|
1
|
+
import { S as SendToHumanActionInput } from './client-CZ5eWH5v.js';
|
|
2
2
|
import { UiSchema, ToolDisplayEnvelope } from '@robotrock/core/schemas';
|
|
3
3
|
import { T as ToolResultWithReplyGuidance } from './tool-reply-guidance-C3qrT1In.js';
|
|
4
4
|
import * as _robotrock_core from '@robotrock/core';
|
|
@@ -95,8 +95,11 @@ type ChatToolAuditPayload = {
|
|
|
95
95
|
status: "completed" | "failed" | "rejected";
|
|
96
96
|
error?: string;
|
|
97
97
|
};
|
|
98
|
-
/**
|
|
99
|
-
|
|
98
|
+
/**
|
|
99
|
+
* Whether a completed tool call should appear on the RobotRock audit trail.
|
|
100
|
+
* Admin mutations are logged via chat-correlated API audit instead.
|
|
101
|
+
*/
|
|
102
|
+
declare function shouldAuditToolExecution(toolName: string, _input: ChatToolAuditInput): boolean;
|
|
100
103
|
/** Keep only fields useful for audit display (no secrets or large blobs). */
|
|
101
104
|
declare function sanitizeToolAuditInput(input: ChatToolAuditInput): ChatToolAuditInput;
|
|
102
105
|
declare function buildChatToolAuditPayload(input: {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { R as RobotRock, b as RobotRockConfig } from './client-
|
|
2
|
-
export { C as ChatsApi, c as CloseChatOptions, d as CreateChatInput, e as CreateChatResult, f as CreatedChat, L as ListTasksInput, g as RobotRockAdvancedConfig, h as RobotRockPollingClientConfig, i as RobotRockPollingOptions, j as RobotRockWebhookClientConfig, k as RobotRockWebhookConfig, l as SearchTasksInput, S as SendToHumanActionInput, a as SendToHumanInput, m as SendToHumanResult, n as SendToHumanValidUntil, o as SendUpdateInput, p as StageChatHitlRequestsInput, q as StagedChatHitlRequest, T as TasksApi, r as attachWebhookToActions, s as createChatsApi, t as createClient } from './client-
|
|
1
|
+
import { R as RobotRock, b as RobotRockConfig } from './client-CZ5eWH5v.js';
|
|
2
|
+
export { C as ChatsApi, c as CloseChatOptions, d as CreateChatInput, e as CreateChatResult, f as CreatedChat, L as ListTasksInput, g as RobotRockAdvancedConfig, h as RobotRockPollingClientConfig, i as RobotRockPollingOptions, j as RobotRockWebhookClientConfig, k as RobotRockWebhookConfig, l as SearchTasksInput, S as SendToHumanActionInput, a as SendToHumanInput, m as SendToHumanResult, n as SendToHumanValidUntil, o as SendUpdateInput, p as StageChatHitlRequestsInput, q as StagedChatHitlRequest, T as TasksApi, r as attachWebhookToActions, s as createChatsApi, t as createClient } from './client-CZ5eWH5v.js';
|
|
3
3
|
export { AgentChatSeedMessage, CreateAgentChatBody, CreateAgentChatBodyInput, agentChatSeedMessageSchema, createAgentChatBodySchema } from '@robotrock/core';
|
|
4
4
|
import { Task, DiscriminatedApprovalResult } from './schemas/index.js';
|
|
5
5
|
export { AgentTelemetry, AgentTelemetryInput, ApprovalResult, AssignToInput, CreateTaskBody, CreateTaskBodyInput, DEFAULT_TASK_PRIORITY, DEFAULT_THREAD_UPDATE_STATUS, Handler, InferActionData, LOWEST_TASK_PRIORITY, TASK_CONTEXT_FORMAT_VERSION, TASK_PRIORITY_RANK, TaskAction, TaskContext, TaskContextFormatVersion, TaskContextInput, TaskPriority, TaskResponse, TaskResult, TaskStatus, ThreadUpdate, ThreadUpdateBody, ThreadUpdateBodyInput, ThreadUpdateInput, ThreadUpdateResponse, ThreadUpdateSource, ThreadUpdateStatus, TriggerHandler, TupleElementIndices, WebhookHandler, agentTelemetrySchema, assignToSchema, createTaskBodySchema, taskContextSchema, taskPriorities, taskPrioritySchema, threadUpdateBodySchema, threadUpdateInputSchema, threadUpdateStatusSchema, threadUpdateStatuses } from './schemas/index.js';
|
|
6
|
-
export { D as DEFAULT_TOOL_DISPLAY_LABELS, E as EVE_INPUT_OTHER_CHOICE_ID, a as EVE_INPUT_OTHER_CHOICE_LABEL, b as EVE_INPUT_SUBMIT_ACTION_ID, c as EveInputOption, d as EveInputRequest, e as EveInputRequestDisplay, f as EveInputResponse, R as ROBOTROCK_READY_HOOK_SLUG, g as RobotRockWebhookError, h as RobotRockWebhookErrorCode, i as RobotRockWebhookPayload, V as VerifyRobotRockWebhookOptions, j as buildTaskHandledResumeMessage, k as eveInputRequestTaskType, l as eveInputRequestToActions, m as formatEveApprovalTitle, n as getToolDisplayLabel, o as normalizeEveSelectFormData, r as resolveEveInputDisplay, s as setToolDisplayLabelOverrides, t as taskHandledToEveInputResponse, v as verifyRobotRockWebhook } from './index-
|
|
6
|
+
export { D as DEFAULT_TOOL_DISPLAY_LABELS, E as EVE_INPUT_OTHER_CHOICE_ID, a as EVE_INPUT_OTHER_CHOICE_LABEL, b as EVE_INPUT_SUBMIT_ACTION_ID, c as EveInputOption, d as EveInputRequest, e as EveInputRequestDisplay, f as EveInputResponse, R as ROBOTROCK_READY_HOOK_SLUG, g as RobotRockWebhookError, h as RobotRockWebhookErrorCode, i as RobotRockWebhookPayload, V as VerifyRobotRockWebhookOptions, j as buildTaskHandledResumeMessage, k as eveInputRequestTaskType, l as eveInputRequestToActions, m as formatEveApprovalTitle, n as getToolDisplayLabel, o as normalizeEveSelectFormData, r as resolveEveInputDisplay, s as setToolDisplayLabelOverrides, t as taskHandledToEveInputResponse, v as verifyRobotRockWebhook } from './index-DePyAbTI.js';
|
|
7
7
|
export { E as EndRobotRockHumanWaitSpanOptions, b as RobotRockCreatedTask, c as RobotRockHandledOtelInput, a as RobotRockHandlerWebhookPayload, d as RobotRockHumanWaitOtelSession, e as RobotRockOtelHandle, f as RobotRockOtelRecordOptions, R as RobotRockPlatformOtelFields, g as beginRobotRockHumanWaitOtel, h as captureRobotRockOtelHandle, i as endRobotRockHumanWaitSpan, j as finishRobotRockHumanWaitOtel, r as recordRobotRockHandledToOtel, s as shouldRecordRobotRockOtel, k as startRobotRockHumanWaitSpan, l as stripPlatformOtelFields, t as toRobotRockHandledOtelInput } from './otel-platform-DzHyHkGk.js';
|
|
8
8
|
import 'zod';
|
|
9
|
-
import './
|
|
9
|
+
import './chat-correlation-BsHD-tOQ.js';
|
|
10
10
|
import '@robotrock/core/schemas';
|
|
11
11
|
import './tool-reply-guidance-C3qrT1In.js';
|
|
12
12
|
import '@opentelemetry/api';
|
package/dist/index.js
CHANGED
|
@@ -873,11 +873,31 @@ function resolveRobotRockAuthConfig(overrides) {
|
|
|
873
873
|
return { kind: "apiKey", apiKey };
|
|
874
874
|
}
|
|
875
875
|
|
|
876
|
+
// src/chat-correlation.ts
|
|
877
|
+
var ROBOTROCK_CHAT_ID_HEADER = "x-robotrock-chat-id";
|
|
878
|
+
var ROBOTROCK_EVE_SESSION_ID_HEADER = "x-robotrock-eve-session-id";
|
|
879
|
+
function buildChatCorrelationHeaders(correlation) {
|
|
880
|
+
if (!correlation) {
|
|
881
|
+
return {};
|
|
882
|
+
}
|
|
883
|
+
const headers = {};
|
|
884
|
+
const chatId = correlation.chatId?.trim();
|
|
885
|
+
const eveSessionId = correlation.eveSessionId?.trim();
|
|
886
|
+
if (chatId) {
|
|
887
|
+
headers[ROBOTROCK_CHAT_ID_HEADER] = chatId;
|
|
888
|
+
}
|
|
889
|
+
if (eveSessionId) {
|
|
890
|
+
headers[ROBOTROCK_EVE_SESSION_ID_HEADER] = eveSessionId;
|
|
891
|
+
}
|
|
892
|
+
return headers;
|
|
893
|
+
}
|
|
894
|
+
|
|
876
895
|
// src/chats.ts
|
|
877
896
|
function createChatsApi(config) {
|
|
878
897
|
const headers = () => ({
|
|
879
898
|
"Content-Type": "application/json",
|
|
880
|
-
...buildRobotRockAuthHeaders(config.auth)
|
|
899
|
+
...buildRobotRockAuthHeaders(config.auth),
|
|
900
|
+
...buildChatCorrelationHeaders(config.chatCorrelation)
|
|
881
901
|
});
|
|
882
902
|
return {
|
|
883
903
|
async create(input) {
|
|
@@ -1087,6 +1107,7 @@ function serializeValidUntil(value) {
|
|
|
1087
1107
|
}
|
|
1088
1108
|
var RobotRock = class {
|
|
1089
1109
|
auth;
|
|
1110
|
+
chatCorrelation;
|
|
1090
1111
|
baseUrl;
|
|
1091
1112
|
app;
|
|
1092
1113
|
agentVersion;
|
|
@@ -1114,6 +1135,7 @@ var RobotRock = class {
|
|
|
1114
1135
|
...apiKey ? { apiKey } : {},
|
|
1115
1136
|
...agentService ? { agentService } : {}
|
|
1116
1137
|
});
|
|
1138
|
+
this.chatCorrelation = config.chatCorrelation;
|
|
1117
1139
|
this.baseUrl = config.baseUrl ?? getRobotRockApiBaseUrl();
|
|
1118
1140
|
this.app = config.app;
|
|
1119
1141
|
this.agentVersion = config.version ?? resolveAgentVersionFromEnv();
|
|
@@ -1131,13 +1153,15 @@ var RobotRock = class {
|
|
|
1131
1153
|
this.chats = createChatsApi({
|
|
1132
1154
|
baseUrl: this.baseUrl,
|
|
1133
1155
|
auth: this.auth,
|
|
1134
|
-
app: this.app
|
|
1156
|
+
app: this.app,
|
|
1157
|
+
chatCorrelation: this.chatCorrelation
|
|
1135
1158
|
});
|
|
1136
1159
|
}
|
|
1137
1160
|
authHeaders(extra) {
|
|
1138
1161
|
return {
|
|
1139
1162
|
"Content-Type": "application/json",
|
|
1140
1163
|
...buildRobotRockAuthHeaders(this.auth),
|
|
1164
|
+
...buildChatCorrelationHeaders(this.chatCorrelation),
|
|
1141
1165
|
...extra
|
|
1142
1166
|
};
|
|
1143
1167
|
}
|