robotrock 0.9.0 → 1.0.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/ai/index.d.ts +18 -7
- package/dist/ai/index.js +581 -82
- package/dist/ai/index.js.map +1 -1
- package/dist/ai/trigger.d.ts +4 -3
- package/dist/ai/trigger.js +539 -82
- package/dist/ai/trigger.js.map +1 -1
- package/dist/ai/workflow.d.ts +15 -4
- package/dist/ai/workflow.js +458 -82
- package/dist/ai/workflow.js.map +1 -1
- package/dist/{client-Cy7YLxms.d.ts → client-CzVmjXpz.d.ts} +86 -12
- package/dist/index.d.ts +10 -3
- package/dist/index.js +263 -66
- package/dist/index.js.map +1 -1
- package/dist/schemas/index.d.ts +11 -1
- package/dist/schemas/index.js +59 -4
- package/dist/schemas/index.js.map +1 -1
- package/dist/{tool-approval-bridge-G765kMJR.d.ts → tool-approval-bridge-DbwUEBHv.d.ts} +93 -2
- package/dist/trigger/index.d.ts +2 -1
- package/dist/trigger/index.js +250 -56
- package/dist/trigger/index.js.map +1 -1
- package/dist/{trigger-D0shjqk0.d.ts → trigger-BCKBbAV7.d.ts} +64 -3
- package/dist/workflow/index.d.ts +2 -1
- package/dist/workflow/index.js +251 -57
- package/dist/workflow/index.js.map +1 -1
- package/package.json +1 -1
package/dist/ai/workflow.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { A as ApproveByHumanToolDurableOptions, a as ApproveByHumanToolOptions, b as ApproveByHumanToolDefinition, R as RobotRockAiWorkflowContext, C as CreateSendToHumanToolOptions, S as SendToHumanToolDefinition, c as CreateSendUpdateToolOptions, d as SendUpdateToolDefinition, e as
|
|
2
|
-
export {
|
|
3
|
-
import { R as RobotRock, S as SendToHumanActionInput } from '../client-
|
|
1
|
+
import { A as ApproveByHumanToolDurableOptions, a as ApproveByHumanToolOptions, b as ApproveByHumanToolDefinition, R as RobotRockAiWorkflowContext, C as CreateSendToHumanToolOptions, S as SendToHumanToolDefinition, c as CreateSendUpdateToolOptions, d as SendUpdateToolDefinition, e as RequestActionInputToolOptions, f as RequestActionInputToolDefinition, g as ReportStatusToolOptions, h as ReportStatusToolDefinition, i as CreateSendToHumanToolDurableOptions, j as CreateSendUpdateToolDurableOptions } from '../tool-approval-bridge-DbwUEBHv.js';
|
|
2
|
+
export { k as RobotRockAiContext, l as RobotRockAiMode, m as RobotRockAiPollingContext, n as RobotRockAiTriggerContext, o as applyRobotRockToolApprovalToTools, p as createRobotRockAiWorkflowContext, q as createRobotRockNeedsApproval, r as createRobotRockToolApproval, s as resolveToolApprovalsViaRobotRock, t as runWithRobotRockApprovals } from '../tool-approval-bridge-DbwUEBHv.js';
|
|
3
|
+
import { R as RobotRock, S as SendToHumanActionInput } from '../client-CzVmjXpz.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '../schemas/index.js';
|
|
6
6
|
import 'ai';
|
|
7
|
+
import '@robotrock/core';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Workflow-safe approve/decline tool for `generateText`, `DurableAgent`, and similar.
|
|
@@ -18,6 +19,14 @@ declare function createSendToHumanTool<A extends readonly SendToHumanActionInput
|
|
|
18
19
|
* Workflow-safe send-update tool. See {@link approveByHumanTool} for usage notes.
|
|
19
20
|
*/
|
|
20
21
|
declare function createSendUpdateTool(clientOrOptions: RobotRock | CreateSendUpdateToolDurableOptions, maybeOptions?: CreateSendUpdateToolOptions): SendUpdateToolDefinition;
|
|
22
|
+
/**
|
|
23
|
+
* Client-side action widget tool for chat UIs. No `execute` — the UI submits via `addToolOutput`.
|
|
24
|
+
*/
|
|
25
|
+
declare function requestActionInputTool(options?: RequestActionInputToolOptions): RequestActionInputToolDefinition;
|
|
26
|
+
/**
|
|
27
|
+
* Chat progress tool for workflow agents. Executes immediately and renders in chat UI.
|
|
28
|
+
*/
|
|
29
|
+
declare function reportStatusTool(options?: ReportStatusToolOptions): ReportStatusToolDefinition;
|
|
21
30
|
type CreateRobotRockAiWorkflowToolsOptions = {
|
|
22
31
|
app?: string;
|
|
23
32
|
threadId?: string;
|
|
@@ -27,6 +36,8 @@ declare function createRobotRockAiTools(options?: CreateRobotRockAiWorkflowTools
|
|
|
27
36
|
approveByHuman: (toolOptions?: ApproveByHumanToolOptions) => ApproveByHumanToolDefinition;
|
|
28
37
|
sendToHuman: <A extends readonly SendToHumanActionInput[]>(toolOptions: CreateSendToHumanToolOptions<A>) => SendToHumanToolDefinition;
|
|
29
38
|
sendUpdate: (toolOptions?: CreateSendUpdateToolOptions) => SendUpdateToolDefinition;
|
|
39
|
+
requestActionInput: (toolOptions?: RequestActionInputToolOptions) => RequestActionInputToolDefinition;
|
|
40
|
+
reportStatus: (toolOptions?: ReportStatusToolOptions) => ReportStatusToolDefinition;
|
|
30
41
|
};
|
|
31
42
|
|
|
32
|
-
export { RobotRockAiWorkflowContext, approveByHumanTool, createRobotRockAiTools, createSendToHumanTool, createSendUpdateTool };
|
|
43
|
+
export { RobotRockAiWorkflowContext, approveByHumanTool, createRobotRockAiTools, createSendToHumanTool, createSendUpdateTool, reportStatusTool, requestActionInputTool };
|