zeitlich 0.2.1 → 0.2.2
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 +2 -2
- package/dist/index.cjs +240 -124
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -6
- package/dist/index.d.ts +8 -6
- package/dist/index.js +216 -104
- package/dist/index.js.map +1 -1
- package/dist/{workflow-CCoHnc3B.d.cts → workflow-BQf5EfNN.d.cts} +232 -53
- package/dist/{workflow-CCoHnc3B.d.ts → workflow-BQf5EfNN.d.ts} +232 -53
- package/dist/workflow.cjs +219 -105
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.d.cts +4 -2
- package/dist/workflow.d.ts +4 -2
- package/dist/workflow.js +196 -84
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -0
- package/src/lib/session.ts +50 -24
- package/src/lib/state-manager.ts +9 -2
- package/src/lib/tool-router.ts +205 -23
- package/src/lib/types.ts +79 -4
- package/src/tools/ask-user-question/handler.ts +1 -1
- package/src/tools/bash/bash.test.ts +31 -31
- package/src/tools/bash/handler.ts +4 -4
- package/src/tools/edit/handler.ts +14 -14
- package/src/tools/glob/handler.ts +4 -4
- package/src/tools/task/handler.ts +17 -7
- package/src/tools/task/tool.ts +1 -1
- package/src/tools/task-create/handler.ts +7 -10
- package/src/tools/task-get/handler.ts +4 -4
- package/src/tools/task-list/handler.ts +2 -2
- package/src/tools/task-update/handler.ts +4 -4
- package/src/workflow.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,
|
|
1
|
+
import { A as AgentResponse, a as ActivityToolHandler, b as AskUserQuestionToolSchemaType, G as GlobToolSchemaType, E as EditToolSchemaType } from './workflow-BQf5EfNN.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 SubagentHooks, M as SubagentInput, T as TaskCreateToolSchemaType, N as TaskGetToolSchemaType, O as TaskHandlerResult, Q as TaskStatus, U as TaskToolSchemaType, V as TaskUpdateToolSchemaType, W as ToolArgs, X as ToolCallResult, Y as ToolCallResultUnion, Z as ToolDefinition, _ as ToolHandler, $ as ToolHandlerContext, a0 as ToolHandlerResponse, a1 as ToolHooks, a2 as ToolMap, a3 as ToolMessageContent, a4 as ToolNames, a5 as ToolResult, a6 as ToolResultConfig, a7 as ToolRouter, a8 as ToolWithHandler, a9 as WorkflowTask, aa as WriteToolSchemaType, ab as ZeitlichAgentConfig, ac as ZeitlichSession, ad as ZeitlichSharedActivities, ae as askUserQuestionTool, af as bashTool, ag as bashToolSchemaType, ah as createAgentStateManager, ai as createSession, aj as createSharedActivities, ak as createTaskCreateHandler, al as createTaskGetHandler, am as createTaskListHandler, an as createTaskTool, ao as createTaskUpdateHandler, ap as createThreadManager, aq as createToolRouter, ar as defineSubagent, as as defineTool, at as editTool, au as getStateQuery, av as globTool, aw as grepTool, ax as handleBashTool, ay as hasNoOtherToolCalls, az as isTerminalStatus, aA as readTool, aB as taskCreateTool, aC as taskGetTool, aD as taskListTool, aE as taskUpdateTool, aF as writeTool } from './workflow-BQf5EfNN.cjs';
|
|
3
3
|
import { SimplePlugin } from '@temporalio/plugin';
|
|
4
4
|
import Redis from 'ioredis';
|
|
5
5
|
import { WorkflowClient } from '@temporalio/client';
|
|
@@ -7,6 +7,8 @@ import { BaseChatModel, BaseChatModelCallOptions, BindToolsInput } from '@langch
|
|
|
7
7
|
import { StoredMessage } from '@langchain/core/messages';
|
|
8
8
|
import { IFileSystem } from 'just-bash';
|
|
9
9
|
import 'zod';
|
|
10
|
+
import '@temporalio/common';
|
|
11
|
+
import '@temporalio/workflow';
|
|
10
12
|
|
|
11
13
|
/**
|
|
12
14
|
* Options for the Zeitlich plugin
|
|
@@ -69,8 +71,8 @@ interface GlobResult {
|
|
|
69
71
|
* Glob handler response
|
|
70
72
|
*/
|
|
71
73
|
interface GlobHandlerResponse {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
toolResponse: string;
|
|
75
|
+
data: GlobResult;
|
|
74
76
|
}
|
|
75
77
|
/**
|
|
76
78
|
* Glob handler that searches within the scoped file tree.
|
|
@@ -92,8 +94,8 @@ interface EditResult {
|
|
|
92
94
|
* Edit handler response
|
|
93
95
|
*/
|
|
94
96
|
interface EditHandlerResponse {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
toolResponse: string;
|
|
98
|
+
data: EditResult;
|
|
97
99
|
}
|
|
98
100
|
/**
|
|
99
101
|
* Options for edit handler
|
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,
|
|
1
|
+
import { A as AgentResponse, a as ActivityToolHandler, b as AskUserQuestionToolSchemaType, G as GlobToolSchemaType, E as EditToolSchemaType } from './workflow-BQf5EfNN.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 SubagentHooks, M as SubagentInput, T as TaskCreateToolSchemaType, N as TaskGetToolSchemaType, O as TaskHandlerResult, Q as TaskStatus, U as TaskToolSchemaType, V as TaskUpdateToolSchemaType, W as ToolArgs, X as ToolCallResult, Y as ToolCallResultUnion, Z as ToolDefinition, _ as ToolHandler, $ as ToolHandlerContext, a0 as ToolHandlerResponse, a1 as ToolHooks, a2 as ToolMap, a3 as ToolMessageContent, a4 as ToolNames, a5 as ToolResult, a6 as ToolResultConfig, a7 as ToolRouter, a8 as ToolWithHandler, a9 as WorkflowTask, aa as WriteToolSchemaType, ab as ZeitlichAgentConfig, ac as ZeitlichSession, ad as ZeitlichSharedActivities, ae as askUserQuestionTool, af as bashTool, ag as bashToolSchemaType, ah as createAgentStateManager, ai as createSession, aj as createSharedActivities, ak as createTaskCreateHandler, al as createTaskGetHandler, am as createTaskListHandler, an as createTaskTool, ao as createTaskUpdateHandler, ap as createThreadManager, aq as createToolRouter, ar as defineSubagent, as as defineTool, at as editTool, au as getStateQuery, av as globTool, aw as grepTool, ax as handleBashTool, ay as hasNoOtherToolCalls, az as isTerminalStatus, aA as readTool, aB as taskCreateTool, aC as taskGetTool, aD as taskListTool, aE as taskUpdateTool, aF as writeTool } from './workflow-BQf5EfNN.js';
|
|
3
3
|
import { SimplePlugin } from '@temporalio/plugin';
|
|
4
4
|
import Redis from 'ioredis';
|
|
5
5
|
import { WorkflowClient } from '@temporalio/client';
|
|
@@ -7,6 +7,8 @@ import { BaseChatModel, BaseChatModelCallOptions, BindToolsInput } from '@langch
|
|
|
7
7
|
import { StoredMessage } from '@langchain/core/messages';
|
|
8
8
|
import { IFileSystem } from 'just-bash';
|
|
9
9
|
import 'zod';
|
|
10
|
+
import '@temporalio/common';
|
|
11
|
+
import '@temporalio/workflow';
|
|
10
12
|
|
|
11
13
|
/**
|
|
12
14
|
* Options for the Zeitlich plugin
|
|
@@ -69,8 +71,8 @@ interface GlobResult {
|
|
|
69
71
|
* Glob handler response
|
|
70
72
|
*/
|
|
71
73
|
interface GlobHandlerResponse {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
+
toolResponse: string;
|
|
75
|
+
data: GlobResult;
|
|
74
76
|
}
|
|
75
77
|
/**
|
|
76
78
|
* Glob handler that searches within the scoped file tree.
|
|
@@ -92,8 +94,8 @@ interface EditResult {
|
|
|
92
94
|
* Edit handler response
|
|
93
95
|
*/
|
|
94
96
|
interface EditHandlerResponse {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
toolResponse: string;
|
|
98
|
+
data: EditResult;
|
|
97
99
|
}
|
|
98
100
|
/**
|
|
99
101
|
* Options for edit handler
|