robotrock 1.1.0 → 1.3.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/dist/agent-admin.d.ts +82 -0
- package/dist/agent-admin.js +938 -0
- package/dist/agent-admin.js.map +1 -0
- package/dist/ai/index.d.ts +6 -5
- package/dist/ai/index.js +407 -188
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/trigger.d.ts +4 -3
- package/dist/ai/trigger.js +407 -188
- package/dist/ai/trigger.js.map +1 -1
- package/dist/ai/workflow.d.ts +4 -3
- package/dist/ai/workflow.js +404 -185
- package/dist/ai/workflow.js.map +1 -1
- package/dist/auth-headers-qL-ZeEtd.d.ts +13 -0
- package/dist/{client-XTnFHGFE.d.ts → client-YO9Y1rkH.d.ts} +29 -17
- package/dist/eve/agent/index.d.ts +11 -35
- package/dist/eve/agent/index.js +678 -146
- package/dist/eve/agent/index.js.map +1 -1
- package/dist/eve/index.d.ts +5 -2
- package/dist/eve/index.js +195 -2
- package/dist/eve/index.js.map +1 -1
- package/dist/eve/tools/admin/assign-tasks.d.ts +39 -0
- package/dist/eve/tools/admin/assign-tasks.js +1060 -0
- package/dist/eve/tools/admin/assign-tasks.js.map +1 -0
- package/dist/eve/tools/admin/manage-groups.d.ts +53 -0
- package/dist/eve/tools/admin/manage-groups.js +1218 -0
- package/dist/eve/tools/admin/manage-groups.js.map +1 -0
- package/dist/eve/tools/admin/manage-team-members.d.ts +45 -0
- package/dist/eve/tools/admin/manage-team-members.js +1160 -0
- package/dist/eve/tools/admin/manage-team-members.js.map +1 -0
- package/dist/eve/tools/admin/query-tasks.d.ts +71 -0
- package/dist/eve/tools/admin/query-tasks.js +1161 -0
- package/dist/eve/tools/admin/query-tasks.js.map +1 -0
- package/dist/eve/tools/catalog/search-products.d.ts +57 -0
- package/dist/eve/tools/catalog/search-products.js +94 -0
- package/dist/eve/tools/catalog/search-products.js.map +1 -0
- package/dist/eve/tools/identity/index.d.ts +2 -0
- package/dist/eve/tools/identity/index.js +117 -27
- package/dist/eve/tools/identity/index.js.map +1 -1
- package/dist/eve/tools/identity/my-access.d.ts +6 -46
- package/dist/eve/tools/identity/my-access.js +91 -10
- package/dist/eve/tools/identity/my-access.js.map +1 -1
- package/dist/eve/tools/identity/whoami.d.ts +7 -8
- package/dist/eve/tools/identity/whoami.js +33 -17
- package/dist/eve/tools/identity/whoami.js.map +1 -1
- package/dist/eve/tools/inbox/create-task.d.ts +5 -4
- package/dist/eve/tools/inbox/create-task.js +365 -137
- package/dist/eve/tools/inbox/create-task.js.map +1 -1
- package/dist/eve/tools/inbox/index.d.ts +1 -0
- package/dist/eve/tools/inbox/index.js +365 -137
- package/dist/eve/tools/inbox/index.js.map +1 -1
- package/dist/eve/tools/index.d.ts +7 -0
- package/dist/eve/tools/index.js +1362 -168
- package/dist/eve/tools/index.js.map +1 -1
- package/dist/{index-BL9qKHA8.d.ts → index-DoQN48Bm.d.ts} +61 -2
- package/dist/index.d.ts +6 -3
- package/dist/index.js +325 -119
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +6 -1
- package/dist/schemas/index.js +177 -48
- package/dist/schemas/index.js.map +1 -1
- package/dist/{tool-approval-bridge-C4bTm8vu.d.ts → tool-approval-bridge-aMA79Z1B.d.ts} +1 -1
- package/dist/tool-reply-guidance-C3qrT1In.d.ts +25 -0
- package/dist/trigger/index.d.ts +2 -1
- package/dist/trigger/index.js +310 -108
- package/dist/trigger/index.js.map +1 -1
- package/dist/{trigger-Dn0DFiyU.d.ts → trigger-CXrbKVCL.d.ts} +2 -2
- package/dist/workflow/index.d.ts +2 -1
- package/dist/workflow/index.js +310 -108
- package/dist/workflow/index.js.map +1 -1
- package/package.json +28 -4
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import { S as SendToHumanActionInput } from './client-
|
|
1
|
+
import { S as SendToHumanActionInput } from './client-YO9Y1rkH.js';
|
|
2
|
+
import { UiSchema, ToolDisplayEnvelope } from '@robotrock/core/schemas';
|
|
3
|
+
import { T as ToolResultWithReplyGuidance } from './tool-reply-guidance-C3qrT1In.js';
|
|
4
|
+
import * as _robotrock_core from '@robotrock/core';
|
|
2
5
|
import { z } from 'zod';
|
|
3
6
|
|
|
4
7
|
/** One selectable option in an Eve HITL input request. */
|
|
@@ -83,6 +86,28 @@ declare function buildEveInputAuditSubmissionData(context: EveInputAuditContext,
|
|
|
83
86
|
*/
|
|
84
87
|
declare function parseEveAskQuestionToolOutput(output: unknown): Pick<EveInputResponse, "optionId" | "text"> | null;
|
|
85
88
|
|
|
89
|
+
type ChatToolAuditInput = Record<string, unknown>;
|
|
90
|
+
type ChatToolAuditPayload = {
|
|
91
|
+
toolCallId: string;
|
|
92
|
+
toolName: string;
|
|
93
|
+
input: ChatToolAuditInput;
|
|
94
|
+
success: boolean;
|
|
95
|
+
status: "completed" | "failed" | "rejected";
|
|
96
|
+
error?: string;
|
|
97
|
+
};
|
|
98
|
+
/** Whether a completed tool call should appear on the RobotRock audit trail. */
|
|
99
|
+
declare function shouldAuditToolExecution(toolName: string, input: ChatToolAuditInput): boolean;
|
|
100
|
+
/** Keep only fields useful for audit display (no secrets or large blobs). */
|
|
101
|
+
declare function sanitizeToolAuditInput(input: ChatToolAuditInput): ChatToolAuditInput;
|
|
102
|
+
declare function buildChatToolAuditPayload(input: {
|
|
103
|
+
toolCallId: string;
|
|
104
|
+
toolName: string;
|
|
105
|
+
toolInput: ChatToolAuditInput;
|
|
106
|
+
status: "completed" | "failed" | "rejected";
|
|
107
|
+
error?: string;
|
|
108
|
+
isError?: boolean;
|
|
109
|
+
}): ChatToolAuditPayload | null;
|
|
110
|
+
|
|
86
111
|
/** Default per-tool labels for common Eve demo/integration tools. */
|
|
87
112
|
declare const DEFAULT_TOOL_DISPLAY_LABELS: Readonly<Record<string, string>>;
|
|
88
113
|
/** Register additional or overriding tool display labels at runtime. */
|
|
@@ -92,6 +117,40 @@ declare function getToolDisplayLabel(toolName: string): string;
|
|
|
92
117
|
/** Format an Eve input request prompt for human-facing approval UIs. */
|
|
93
118
|
declare function formatEveApprovalTitle(request: EveInputRequest, toolName?: string): string;
|
|
94
119
|
|
|
120
|
+
type ToolDisplayResultOptions = {
|
|
121
|
+
widget?: string;
|
|
122
|
+
title?: string;
|
|
123
|
+
description?: string;
|
|
124
|
+
ui?: Record<string, UiSchema>;
|
|
125
|
+
};
|
|
126
|
+
/**
|
|
127
|
+
* Wrap tool execute output with optional dashboard display hints.
|
|
128
|
+
* Agents return plain JSON by default; use this when schema-driven widgets help.
|
|
129
|
+
*/
|
|
130
|
+
declare function toolDisplayResult<T extends Record<string, unknown>>(data: T, options?: ToolDisplayResultOptions): ToolDisplayEnvelope<T>;
|
|
131
|
+
|
|
132
|
+
type FormatToolObjectResultOptions = {
|
|
133
|
+
title?: string;
|
|
134
|
+
description?: string;
|
|
135
|
+
ui?: Record<string, UiSchema>;
|
|
136
|
+
replyGuidance: string;
|
|
137
|
+
};
|
|
138
|
+
type FormatToolListResultOptions = {
|
|
139
|
+
title: string;
|
|
140
|
+
itemUi?: UiSchema;
|
|
141
|
+
/** Composite widget for each row (uses list layout instead of table). */
|
|
142
|
+
itemWidget?: string;
|
|
143
|
+
replyGuidance: string;
|
|
144
|
+
};
|
|
145
|
+
/** Wrap a flat object for schema-driven chat rendering. */
|
|
146
|
+
declare function formatToolObjectResult(data: Record<string, unknown>, options: FormatToolObjectResultOptions): ToolResultWithReplyGuidance<_robotrock_core.ToolDisplayEnvelope<Record<string, unknown>>>;
|
|
147
|
+
/** Wrap an array field as a list widget inside a display envelope. */
|
|
148
|
+
declare function formatToolListResult(listKey: string, items: Record<string, unknown>[], options: FormatToolListResultOptions): ToolResultWithReplyGuidance<_robotrock_core.ToolDisplayEnvelope<Record<string, unknown>>>;
|
|
149
|
+
declare function isAgentAdminErrorResult(result: unknown): result is {
|
|
150
|
+
ok: false;
|
|
151
|
+
message: string;
|
|
152
|
+
};
|
|
153
|
+
|
|
95
154
|
declare const robotRockWebhookPayloadBodySchema: z.ZodObject<{
|
|
96
155
|
taskId: z.ZodString;
|
|
97
156
|
action: z.ZodObject<{
|
|
@@ -138,4 +197,4 @@ declare function buildTaskHandledResumeMessage(payload: RobotRockWebhookPayload)
|
|
|
138
197
|
/** Hook slug advertised in GET /eve/v1/info for RobotRock-ready auto-detection. */
|
|
139
198
|
declare const ROBOTROCK_READY_HOOK_SLUG = "robotrock-ready";
|
|
140
199
|
|
|
141
|
-
export { DEFAULT_TOOL_DISPLAY_LABELS as D, EVE_INPUT_OTHER_CHOICE_ID as E, ROBOTROCK_READY_HOOK_SLUG as R, type VerifyRobotRockWebhookOptions as V, EVE_INPUT_OTHER_CHOICE_LABEL as a, EVE_INPUT_SUBMIT_ACTION_ID as b, type EveInputOption as c, type EveInputRequest as d, type EveInputRequestDisplay as e, type EveInputResponse as f, RobotRockWebhookError as g, type RobotRockWebhookErrorCode as h, type RobotRockWebhookPayload as i, buildTaskHandledResumeMessage as j, eveInputRequestTaskType as k, eveInputRequestToActions as l, formatEveApprovalTitle as m, getToolDisplayLabel as n, normalizeEveSelectFormData as o, type
|
|
200
|
+
export { formatToolListResult as A, formatToolObjectResult as B, type ChatToolAuditInput as C, DEFAULT_TOOL_DISPLAY_LABELS as D, EVE_INPUT_OTHER_CHOICE_ID as E, type FormatToolListResultOptions as F, isAgentAdminErrorResult as G, isEveApprovalInputRequest as H, parseEveAskQuestionToolOutput as I, resolveEveFreeformTextToInputResponse as J, sanitizeToolAuditInput as K, shouldAuditToolExecution as L, toolDisplayResult as M, ROBOTROCK_READY_HOOK_SLUG as R, type ToolDisplayResultOptions as T, type VerifyRobotRockWebhookOptions as V, EVE_INPUT_OTHER_CHOICE_LABEL as a, EVE_INPUT_SUBMIT_ACTION_ID as b, type EveInputOption as c, type EveInputRequest as d, type EveInputRequestDisplay as e, type EveInputResponse as f, RobotRockWebhookError as g, type RobotRockWebhookErrorCode as h, type RobotRockWebhookPayload as i, buildTaskHandledResumeMessage as j, eveInputRequestTaskType as k, eveInputRequestToActions as l, formatEveApprovalTitle as m, getToolDisplayLabel as n, normalizeEveSelectFormData as o, type ChatToolAuditPayload as p, type EveInputActionSubmission as q, resolveEveInputDisplay as r, setToolDisplayLabelOverrides as s, taskHandledToEveInputResponse as t, type EveInputAuditContext as u, verifyRobotRockWebhook as v, type FormatToolObjectResultOptions as w, buildChatToolAuditPayload as x, buildEveInputAuditSubmissionData as y, eveInputResponseToActionSubmission as z };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
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, g as RobotRockAdvancedConfig, h as RobotRockPollingClientConfig, i as RobotRockPollingOptions, j as RobotRockWebhookClientConfig, k as RobotRockWebhookConfig, S as SendToHumanActionInput, a as SendToHumanInput,
|
|
1
|
+
import { R as RobotRock, b as RobotRockConfig } from './client-YO9Y1rkH.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-YO9Y1rkH.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-DoQN48Bm.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 './auth-headers-qL-ZeEtd.js';
|
|
10
|
+
import '@robotrock/core/schemas';
|
|
11
|
+
import './tool-reply-guidance-C3qrT1In.js';
|
|
9
12
|
import '@opentelemetry/api';
|
|
10
13
|
|
|
11
14
|
declare class RobotRockError extends Error {
|