zeitlich 0.2.0 → 0.2.1
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/README.md +3 -0
- package/dist/index.cjs +29 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +29 -6
- package/dist/index.js.map +1 -1
- package/dist/{workflow-uVNF7zoe.d.cts → workflow-CCoHnc3B.d.cts} +4 -2
- package/dist/{workflow-uVNF7zoe.d.ts → workflow-CCoHnc3B.d.ts} +4 -2
- package/dist/workflow.cjs +19 -3
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.d.cts +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.js +19 -3
- package/dist/workflow.js.map +1 -1
- package/package.json +6 -7
- package/src/tools/bash/bash.test.ts +11 -11
- package/src/tools/bash/handler.ts +14 -5
- package/src/tools/bash/tool.ts +19 -3
- package/tsup.config.ts +3 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AgentResponse, a as ActivityToolHandler, b as AskUserQuestionToolSchemaType, G as GlobToolSchemaType, E as EditToolSchemaType } from './workflow-
|
|
2
|
-
export { c as AGENT_HANDLER_NAMES, d as AgentFile, e as AgentState, f as AgentStateManager, g as AgentStatus, h as AppendToolResultFn, B as BaseAgentState, i as GenericTaskToolSchemaType, j as GrepToolSchemaType, I as InferToolResults, J as JsonPrimitive, k as JsonSerializable, l as JsonValue, P as ParsedToolCall, m as ParsedToolCallUnion, n as PostToolUseFailureHook, o as PostToolUseFailureHookContext, p as PostToolUseFailureHookResult, q as PostToolUseHook, r as PostToolUseHookContext, s as PreToolUseHook, t as PreToolUseHookContext, u as PreToolUseHookResult, v as ProcessToolCallsContext, R as RawToolCall, w as ReadToolSchemaType, x as RunAgentActivity, y as RunAgentConfig, S as SessionEndHook, z as SessionEndHookContext, C as SessionExitReason, D as SessionLifecycleHooks, F as SessionStartHook, H as SessionStartHookContext, K as SubagentConfig, L as SubagentInput, T as TaskCreateToolSchemaType, M as TaskGetToolSchemaType, N as TaskHandlerResult, O as TaskStatus, Q as TaskToolSchemaType, U as TaskUpdateToolSchemaType, V as ToolArgs, W as ToolCallResult, X as ToolCallResultUnion, Y as ToolDefinition, Z as ToolHandler, _ as ToolHandlerContext, $ as ToolHandlerResponse, a0 as ToolMap, a1 as ToolMessageContent, a2 as ToolNames, a3 as ToolResult, a4 as ToolResultConfig, a5 as ToolRouter, a6 as ToolWithHandler, a7 as WorkflowTask, a8 as WriteToolSchemaType, a9 as ZeitlichAgentConfig, aa as ZeitlichSession, ab as ZeitlichSharedActivities, ac as askUserQuestionTool, ad as bashTool, ae as bashToolSchemaType, af as createAgentStateManager, ag as createSession, ah as createSharedActivities, ai as createTaskCreateHandler, aj as createTaskGetHandler, ak as createTaskListHandler, al as createTaskTool, am as createTaskUpdateHandler, an as createToolRouter, ao as editTool, ap as globTool, aq as grepTool, ar as handleBashTool, as as hasNoOtherToolCalls, at as isTerminalStatus, au as readTool, av as taskCreateTool, aw as taskGetTool, ax as taskListTool, ay as taskUpdateTool, az as writeTool } from './workflow-
|
|
1
|
+
import { A as AgentResponse, a as ActivityToolHandler, b as AskUserQuestionToolSchemaType, G as GlobToolSchemaType, E as EditToolSchemaType } from './workflow-CCoHnc3B.cjs';
|
|
2
|
+
export { c as AGENT_HANDLER_NAMES, d as AgentFile, e as AgentState, f as AgentStateManager, g as AgentStatus, h as AppendToolResultFn, B as BaseAgentState, i as GenericTaskToolSchemaType, j as GrepToolSchemaType, I as InferToolResults, J as JsonPrimitive, k as JsonSerializable, l as JsonValue, P as ParsedToolCall, m as ParsedToolCallUnion, n as PostToolUseFailureHook, o as PostToolUseFailureHookContext, p as PostToolUseFailureHookResult, q as PostToolUseHook, r as PostToolUseHookContext, s as PreToolUseHook, t as PreToolUseHookContext, u as PreToolUseHookResult, v as ProcessToolCallsContext, R as RawToolCall, w as ReadToolSchemaType, x as RunAgentActivity, y as RunAgentConfig, S as SessionEndHook, z as SessionEndHookContext, C as SessionExitReason, D as SessionLifecycleHooks, F as SessionStartHook, H as SessionStartHookContext, K as SubagentConfig, L as SubagentInput, T as TaskCreateToolSchemaType, M as TaskGetToolSchemaType, N as TaskHandlerResult, O as TaskStatus, Q as TaskToolSchemaType, U as TaskUpdateToolSchemaType, V as ToolArgs, W as ToolCallResult, X as ToolCallResultUnion, Y as ToolDefinition, Z as ToolHandler, _ as ToolHandlerContext, $ as ToolHandlerResponse, a0 as ToolMap, a1 as ToolMessageContent, a2 as ToolNames, a3 as ToolResult, a4 as ToolResultConfig, a5 as ToolRouter, a6 as ToolWithHandler, a7 as WorkflowTask, a8 as WriteToolSchemaType, a9 as ZeitlichAgentConfig, aa as ZeitlichSession, ab as ZeitlichSharedActivities, ac as askUserQuestionTool, ad as bashTool, ae as bashToolSchemaType, af as createAgentStateManager, ag as createSession, ah as createSharedActivities, ai as createTaskCreateHandler, aj as createTaskGetHandler, ak as createTaskListHandler, al as createTaskTool, am as createTaskUpdateHandler, an as createToolRouter, ao as editTool, ap as globTool, aq as grepTool, ar as handleBashTool, as as hasNoOtherToolCalls, at as isTerminalStatus, au as readTool, av as taskCreateTool, aw as taskGetTool, ax as taskListTool, ay as taskUpdateTool, az as writeTool } from './workflow-CCoHnc3B.cjs';
|
|
3
3
|
import { SimplePlugin } from '@temporalio/plugin';
|
|
4
4
|
import Redis from 'ioredis';
|
|
5
5
|
import { WorkflowClient } from '@temporalio/client';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AgentResponse, a as ActivityToolHandler, b as AskUserQuestionToolSchemaType, G as GlobToolSchemaType, E as EditToolSchemaType } from './workflow-
|
|
2
|
-
export { c as AGENT_HANDLER_NAMES, d as AgentFile, e as AgentState, f as AgentStateManager, g as AgentStatus, h as AppendToolResultFn, B as BaseAgentState, i as GenericTaskToolSchemaType, j as GrepToolSchemaType, I as InferToolResults, J as JsonPrimitive, k as JsonSerializable, l as JsonValue, P as ParsedToolCall, m as ParsedToolCallUnion, n as PostToolUseFailureHook, o as PostToolUseFailureHookContext, p as PostToolUseFailureHookResult, q as PostToolUseHook, r as PostToolUseHookContext, s as PreToolUseHook, t as PreToolUseHookContext, u as PreToolUseHookResult, v as ProcessToolCallsContext, R as RawToolCall, w as ReadToolSchemaType, x as RunAgentActivity, y as RunAgentConfig, S as SessionEndHook, z as SessionEndHookContext, C as SessionExitReason, D as SessionLifecycleHooks, F as SessionStartHook, H as SessionStartHookContext, K as SubagentConfig, L as SubagentInput, T as TaskCreateToolSchemaType, M as TaskGetToolSchemaType, N as TaskHandlerResult, O as TaskStatus, Q as TaskToolSchemaType, U as TaskUpdateToolSchemaType, V as ToolArgs, W as ToolCallResult, X as ToolCallResultUnion, Y as ToolDefinition, Z as ToolHandler, _ as ToolHandlerContext, $ as ToolHandlerResponse, a0 as ToolMap, a1 as ToolMessageContent, a2 as ToolNames, a3 as ToolResult, a4 as ToolResultConfig, a5 as ToolRouter, a6 as ToolWithHandler, a7 as WorkflowTask, a8 as WriteToolSchemaType, a9 as ZeitlichAgentConfig, aa as ZeitlichSession, ab as ZeitlichSharedActivities, ac as askUserQuestionTool, ad as bashTool, ae as bashToolSchemaType, af as createAgentStateManager, ag as createSession, ah as createSharedActivities, ai as createTaskCreateHandler, aj as createTaskGetHandler, ak as createTaskListHandler, al as createTaskTool, am as createTaskUpdateHandler, an as createToolRouter, ao as editTool, ap as globTool, aq as grepTool, ar as handleBashTool, as as hasNoOtherToolCalls, at as isTerminalStatus, au as readTool, av as taskCreateTool, aw as taskGetTool, ax as taskListTool, ay as taskUpdateTool, az as writeTool } from './workflow-
|
|
1
|
+
import { A as AgentResponse, a as ActivityToolHandler, b as AskUserQuestionToolSchemaType, G as GlobToolSchemaType, E as EditToolSchemaType } from './workflow-CCoHnc3B.js';
|
|
2
|
+
export { c as AGENT_HANDLER_NAMES, d as AgentFile, e as AgentState, f as AgentStateManager, g as AgentStatus, h as AppendToolResultFn, B as BaseAgentState, i as GenericTaskToolSchemaType, j as GrepToolSchemaType, I as InferToolResults, J as JsonPrimitive, k as JsonSerializable, l as JsonValue, P as ParsedToolCall, m as ParsedToolCallUnion, n as PostToolUseFailureHook, o as PostToolUseFailureHookContext, p as PostToolUseFailureHookResult, q as PostToolUseHook, r as PostToolUseHookContext, s as PreToolUseHook, t as PreToolUseHookContext, u as PreToolUseHookResult, v as ProcessToolCallsContext, R as RawToolCall, w as ReadToolSchemaType, x as RunAgentActivity, y as RunAgentConfig, S as SessionEndHook, z as SessionEndHookContext, C as SessionExitReason, D as SessionLifecycleHooks, F as SessionStartHook, H as SessionStartHookContext, K as SubagentConfig, L as SubagentInput, T as TaskCreateToolSchemaType, M as TaskGetToolSchemaType, N as TaskHandlerResult, O as TaskStatus, Q as TaskToolSchemaType, U as TaskUpdateToolSchemaType, V as ToolArgs, W as ToolCallResult, X as ToolCallResultUnion, Y as ToolDefinition, Z as ToolHandler, _ as ToolHandlerContext, $ as ToolHandlerResponse, a0 as ToolMap, a1 as ToolMessageContent, a2 as ToolNames, a3 as ToolResult, a4 as ToolResultConfig, a5 as ToolRouter, a6 as ToolWithHandler, a7 as WorkflowTask, a8 as WriteToolSchemaType, a9 as ZeitlichAgentConfig, aa as ZeitlichSession, ab as ZeitlichSharedActivities, ac as askUserQuestionTool, ad as bashTool, ae as bashToolSchemaType, af as createAgentStateManager, ag as createSession, ah as createSharedActivities, ai as createTaskCreateHandler, aj as createTaskGetHandler, ak as createTaskListHandler, al as createTaskTool, am as createTaskUpdateHandler, an as createToolRouter, ao as editTool, ap as globTool, aq as grepTool, ar as handleBashTool, as as hasNoOtherToolCalls, at as isTerminalStatus, au as readTool, av as taskCreateTool, aw as taskGetTool, ax as taskListTool, ay as taskUpdateTool, az as writeTool } from './workflow-CCoHnc3B.js';
|
|
3
3
|
import { SimplePlugin } from '@temporalio/plugin';
|
|
4
4
|
import Redis from 'ioredis';
|
|
5
5
|
import { WorkflowClient } from '@temporalio/client';
|
package/dist/index.js
CHANGED
|
@@ -74,12 +74,28 @@ function createTaskHandler(subagents) {
|
|
|
74
74
|
}
|
|
75
75
|
var createBashToolDescription = ({
|
|
76
76
|
fileTree
|
|
77
|
-
}) => `
|
|
77
|
+
}) => `Execute shell commands in a bash environment.
|
|
78
|
+
|
|
79
|
+
Use this tool to:
|
|
80
|
+
- Run shell commands (ls, cat, grep, find, etc.)
|
|
81
|
+
- Execute scripts and chain commands with pipes (|) or logical operators (&&, ||)
|
|
82
|
+
- Inspect files and directories
|
|
83
|
+
|
|
84
|
+
Current file tree:
|
|
85
|
+
${fileTree}`;
|
|
78
86
|
var bashTool = {
|
|
79
87
|
name: "Bash",
|
|
80
|
-
description:
|
|
88
|
+
description: `Execute shell commands in a sandboxed bash environment.
|
|
89
|
+
|
|
90
|
+
Use this tool to:
|
|
91
|
+
- Run shell commands (ls, cat, grep, find, etc.)
|
|
92
|
+
- Execute scripts and chain commands with pipes (|) or logical operators (&&, ||)
|
|
93
|
+
- Inspect files and directories
|
|
94
|
+
`,
|
|
81
95
|
schema: z4.object({
|
|
82
|
-
command: z4.string().describe(
|
|
96
|
+
command: z4.string().describe(
|
|
97
|
+
"The bash command to execute. Can include pipes (|), redirects (>, >>), logical operators (&&, ||), and shell features like command substitution $(...)."
|
|
98
|
+
)
|
|
83
99
|
}),
|
|
84
100
|
strict: true
|
|
85
101
|
};
|
|
@@ -1183,10 +1199,17 @@ async function editHandler(args, fs) {
|
|
|
1183
1199
|
};
|
|
1184
1200
|
}
|
|
1185
1201
|
}
|
|
1186
|
-
var handleBashTool = (
|
|
1202
|
+
var handleBashTool = (bashOptions) => async (args, _context) => {
|
|
1187
1203
|
const { command } = args;
|
|
1188
|
-
const
|
|
1189
|
-
|
|
1204
|
+
const mergedOptions = {
|
|
1205
|
+
...bashOptions,
|
|
1206
|
+
executionLimits: {
|
|
1207
|
+
maxStringLength: 52428800,
|
|
1208
|
+
// 50MB default
|
|
1209
|
+
...bashOptions.executionLimits
|
|
1210
|
+
}
|
|
1211
|
+
};
|
|
1212
|
+
const bash = new Bash(mergedOptions);
|
|
1190
1213
|
try {
|
|
1191
1214
|
const { exitCode, stderr, stdout } = await bash.exec(command);
|
|
1192
1215
|
const bashExecOut = { exitCode, stderr, stdout };
|