takt 0.1.0 → 0.1.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/dist/agents/runner.d.ts.map +1 -1
- package/dist/agents/runner.js +2 -1
- package/dist/agents/runner.js.map +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +7 -3
- package/dist/cli.js.map +1 -1
- package/dist/commands/config.d.ts +33 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +110 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +1 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/workflow.js +1 -1
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config/initialization.js +1 -1
- package/dist/config/initialization.js.map +1 -1
- package/dist/config/projectConfig.d.ts +12 -1
- package/dist/config/projectConfig.d.ts.map +1 -1
- package/dist/config/projectConfig.js +1 -0
- package/dist/config/projectConfig.js.map +1 -1
- package/dist/{interactive/prompt.d.ts → prompt/index.d.ts} +3 -1
- package/dist/prompt/index.d.ts.map +1 -0
- package/dist/{interactive/prompt.js → prompt/index.js} +11 -1
- package/dist/prompt/index.js.map +1 -0
- package/package.json +1 -1
- package/dist/cli/agentExecution.d.ts +0 -16
- package/dist/cli/agentExecution.d.ts.map +0 -1
- package/dist/cli/agentExecution.js +0 -40
- package/dist/cli/agentExecution.js.map +0 -1
- package/dist/cli/help.d.ts +0 -8
- package/dist/cli/help.d.ts.map +0 -1
- package/dist/cli/help.js +0 -46
- package/dist/cli/help.js.map +0 -1
- package/dist/cli/index.d.ts +0 -8
- package/dist/cli/index.d.ts.map +0 -1
- package/dist/cli/index.js +0 -8
- package/dist/cli/index.js.map +0 -1
- package/dist/cli/taskBatch.d.ts +0 -8
- package/dist/cli/taskBatch.d.ts.map +0 -1
- package/dist/cli/taskBatch.js +0 -69
- package/dist/cli/taskBatch.js.map +0 -1
- package/dist/cli/workflowExecution.d.ts +0 -18
- package/dist/cli/workflowExecution.d.ts.map +0 -1
- package/dist/cli/workflowExecution.js +0 -112
- package/dist/cli/workflowExecution.js.map +0 -1
- package/dist/commands/agentExecution.d.ts +0 -8
- package/dist/commands/agentExecution.d.ts.map +0 -1
- package/dist/commands/agentExecution.js +0 -44
- package/dist/commands/agentExecution.js.map +0 -1
- package/dist/interactive/commands/agent.d.ts +0 -7
- package/dist/interactive/commands/agent.d.ts.map +0 -1
- package/dist/interactive/commands/agent.js +0 -65
- package/dist/interactive/commands/agent.js.map +0 -1
- package/dist/interactive/commands/basic.d.ts +0 -7
- package/dist/interactive/commands/basic.d.ts.map +0 -1
- package/dist/interactive/commands/basic.js +0 -81
- package/dist/interactive/commands/basic.js.map +0 -1
- package/dist/interactive/commands/index.d.ts +0 -12
- package/dist/interactive/commands/index.d.ts.map +0 -1
- package/dist/interactive/commands/index.js +0 -14
- package/dist/interactive/commands/index.js.map +0 -1
- package/dist/interactive/commands/registry.d.ts +0 -41
- package/dist/interactive/commands/registry.d.ts.map +0 -1
- package/dist/interactive/commands/registry.js +0 -37
- package/dist/interactive/commands/registry.js.map +0 -1
- package/dist/interactive/commands/session.d.ts +0 -7
- package/dist/interactive/commands/session.d.ts.map +0 -1
- package/dist/interactive/commands/session.js +0 -75
- package/dist/interactive/commands/session.js.map +0 -1
- package/dist/interactive/commands/task.d.ts +0 -7
- package/dist/interactive/commands/task.d.ts.map +0 -1
- package/dist/interactive/commands/task.js +0 -156
- package/dist/interactive/commands/task.js.map +0 -1
- package/dist/interactive/commands/workflow.d.ts +0 -7
- package/dist/interactive/commands/workflow.d.ts.map +0 -1
- package/dist/interactive/commands/workflow.js +0 -56
- package/dist/interactive/commands/workflow.js.map +0 -1
- package/dist/interactive/escape-tracker.d.ts +0 -37
- package/dist/interactive/escape-tracker.d.ts.map +0 -1
- package/dist/interactive/escape-tracker.js +0 -52
- package/dist/interactive/escape-tracker.js.map +0 -1
- package/dist/interactive/handlers.d.ts +0 -24
- package/dist/interactive/handlers.d.ts.map +0 -1
- package/dist/interactive/handlers.js +0 -191
- package/dist/interactive/handlers.js.map +0 -1
- package/dist/interactive/history-manager.d.ts +0 -45
- package/dist/interactive/history-manager.d.ts.map +0 -1
- package/dist/interactive/history-manager.js +0 -91
- package/dist/interactive/history-manager.js.map +0 -1
- package/dist/interactive/index.d.ts +0 -8
- package/dist/interactive/index.d.ts.map +0 -1
- package/dist/interactive/index.js +0 -8
- package/dist/interactive/index.js.map +0 -1
- package/dist/interactive/ink/components/App.d.ts +0 -16
- package/dist/interactive/ink/components/App.d.ts.map +0 -1
- package/dist/interactive/ink/components/App.js +0 -123
- package/dist/interactive/ink/components/App.js.map +0 -1
- package/dist/interactive/ink/components/AskUserQuestion.d.ts +0 -16
- package/dist/interactive/ink/components/AskUserQuestion.d.ts.map +0 -1
- package/dist/interactive/ink/components/AskUserQuestion.js +0 -139
- package/dist/interactive/ink/components/AskUserQuestion.js.map +0 -1
- package/dist/interactive/ink/components/Header.d.ts +0 -20
- package/dist/interactive/ink/components/Header.d.ts.map +0 -1
- package/dist/interactive/ink/components/Header.js +0 -7
- package/dist/interactive/ink/components/Header.js.map +0 -1
- package/dist/interactive/ink/components/HelpView.d.ts +0 -13
- package/dist/interactive/ink/components/HelpView.d.ts.map +0 -1
- package/dist/interactive/ink/components/HelpView.js +0 -45
- package/dist/interactive/ink/components/HelpView.js.map +0 -1
- package/dist/interactive/ink/components/IterationLimit.d.ts +0 -19
- package/dist/interactive/ink/components/IterationLimit.d.ts.map +0 -1
- package/dist/interactive/ink/components/IterationLimit.js +0 -59
- package/dist/interactive/ink/components/IterationLimit.js.map +0 -1
- package/dist/interactive/ink/components/ModalRouter.d.ts +0 -11
- package/dist/interactive/ink/components/ModalRouter.d.ts.map +0 -1
- package/dist/interactive/ink/components/ModalRouter.js +0 -71
- package/dist/interactive/ink/components/ModalRouter.js.map +0 -1
- package/dist/interactive/ink/components/PermissionPrompt.d.ts +0 -17
- package/dist/interactive/ink/components/PermissionPrompt.d.ts.map +0 -1
- package/dist/interactive/ink/components/PermissionPrompt.js +0 -102
- package/dist/interactive/ink/components/PermissionPrompt.js.map +0 -1
- package/dist/interactive/ink/components/PromptInput.d.ts +0 -26
- package/dist/interactive/ink/components/PromptInput.d.ts.map +0 -1
- package/dist/interactive/ink/components/PromptInput.js +0 -70
- package/dist/interactive/ink/components/PromptInput.js.map +0 -1
- package/dist/interactive/ink/components/Spinner.d.ts +0 -14
- package/dist/interactive/ink/components/Spinner.d.ts.map +0 -1
- package/dist/interactive/ink/components/Spinner.js +0 -8
- package/dist/interactive/ink/components/Spinner.js.map +0 -1
- package/dist/interactive/ink/components/StreamingOutput.d.ts +0 -25
- package/dist/interactive/ink/components/StreamingOutput.d.ts.map +0 -1
- package/dist/interactive/ink/components/StreamingOutput.js +0 -8
- package/dist/interactive/ink/components/StreamingOutput.js.map +0 -1
- package/dist/interactive/ink/components/UserInputPrompt.d.ts +0 -18
- package/dist/interactive/ink/components/UserInputPrompt.d.ts.map +0 -1
- package/dist/interactive/ink/components/UserInputPrompt.js +0 -30
- package/dist/interactive/ink/components/UserInputPrompt.js.map +0 -1
- package/dist/interactive/ink/components/WorkflowSelector.d.ts +0 -18
- package/dist/interactive/ink/components/WorkflowSelector.d.ts.map +0 -1
- package/dist/interactive/ink/components/WorkflowSelector.js +0 -65
- package/dist/interactive/ink/components/WorkflowSelector.js.map +0 -1
- package/dist/interactive/ink/constants.d.ts +0 -8
- package/dist/interactive/ink/constants.d.ts.map +0 -1
- package/dist/interactive/ink/constants.js +0 -8
- package/dist/interactive/ink/constants.js.map +0 -1
- package/dist/interactive/ink/context/AppContext.d.ts +0 -26
- package/dist/interactive/ink/context/AppContext.d.ts.map +0 -1
- package/dist/interactive/ink/context/AppContext.js +0 -30
- package/dist/interactive/ink/context/AppContext.js.map +0 -1
- package/dist/interactive/ink/context/appReducer.d.ts +0 -13
- package/dist/interactive/ink/context/appReducer.d.ts.map +0 -1
- package/dist/interactive/ink/context/appReducer.js +0 -183
- package/dist/interactive/ink/context/appReducer.js.map +0 -1
- package/dist/interactive/ink/context/types.d.ts +0 -144
- package/dist/interactive/ink/context/types.d.ts.map +0 -1
- package/dist/interactive/ink/context/types.js +0 -5
- package/dist/interactive/ink/context/types.js.map +0 -1
- package/dist/interactive/ink/hooks/keyDetection.d.ts +0 -116
- package/dist/interactive/ink/hooks/keyDetection.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/keyDetection.js +0 -183
- package/dist/interactive/ink/hooks/keyDetection.js.map +0 -1
- package/dist/interactive/ink/hooks/multilineInputLogic.d.ts +0 -50
- package/dist/interactive/ink/hooks/multilineInputLogic.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/multilineInputLogic.js +0 -150
- package/dist/interactive/ink/hooks/multilineInputLogic.js.map +0 -1
- package/dist/interactive/ink/hooks/useCommands.d.ts +0 -20
- package/dist/interactive/ink/hooks/useCommands.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useCommands.js +0 -129
- package/dist/interactive/ink/hooks/useCommands.js.map +0 -1
- package/dist/interactive/ink/hooks/useHistory.d.ts +0 -28
- package/dist/interactive/ink/hooks/useHistory.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useHistory.js +0 -59
- package/dist/interactive/ink/hooks/useHistory.js.map +0 -1
- package/dist/interactive/ink/hooks/useMultilineInput.d.ts +0 -49
- package/dist/interactive/ink/hooks/useMultilineInput.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useMultilineInput.js +0 -106
- package/dist/interactive/ink/hooks/useMultilineInput.js.map +0 -1
- package/dist/interactive/ink/hooks/usePermissionHandlers.d.ts +0 -16
- package/dist/interactive/ink/hooks/usePermissionHandlers.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/usePermissionHandlers.js +0 -172
- package/dist/interactive/ink/hooks/usePermissionHandlers.js.map +0 -1
- package/dist/interactive/ink/hooks/useRawKeypress.d.ts +0 -41
- package/dist/interactive/ink/hooks/useRawKeypress.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useRawKeypress.js +0 -79
- package/dist/interactive/ink/hooks/useRawKeypress.js.map +0 -1
- package/dist/interactive/ink/hooks/useTaskQueue.d.ts +0 -32
- package/dist/interactive/ink/hooks/useTaskQueue.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useTaskQueue.js +0 -68
- package/dist/interactive/ink/hooks/useTaskQueue.js.map +0 -1
- package/dist/interactive/ink/hooks/useWorkflow.d.ts +0 -45
- package/dist/interactive/ink/hooks/useWorkflow.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useWorkflow.js +0 -93
- package/dist/interactive/ink/hooks/useWorkflow.js.map +0 -1
- package/dist/interactive/ink/hooks/useWorkflowExecution.d.ts +0 -14
- package/dist/interactive/ink/hooks/useWorkflowExecution.d.ts.map +0 -1
- package/dist/interactive/ink/hooks/useWorkflowExecution.js +0 -144
- package/dist/interactive/ink/hooks/useWorkflowExecution.js.map +0 -1
- package/dist/interactive/ink/index.d.ts +0 -30
- package/dist/interactive/ink/index.d.ts.map +0 -1
- package/dist/interactive/ink/index.js +0 -33
- package/dist/interactive/ink/index.js.map +0 -1
- package/dist/interactive/ink/utils/workflow.d.ts +0 -11
- package/dist/interactive/ink/utils/workflow.d.ts.map +0 -1
- package/dist/interactive/ink/utils/workflow.js +0 -19
- package/dist/interactive/ink/utils/workflow.js.map +0 -1
- package/dist/interactive/input-buffer.d.ts +0 -67
- package/dist/interactive/input-buffer.d.ts.map +0 -1
- package/dist/interactive/input-buffer.js +0 -162
- package/dist/interactive/input-buffer.js.map +0 -1
- package/dist/interactive/input-handlers.d.ts +0 -50
- package/dist/interactive/input-handlers.d.ts.map +0 -1
- package/dist/interactive/input-handlers.js +0 -170
- package/dist/interactive/input-handlers.js.map +0 -1
- package/dist/interactive/input.d.ts +0 -43
- package/dist/interactive/input.d.ts.map +0 -1
- package/dist/interactive/input.js +0 -74
- package/dist/interactive/input.js.map +0 -1
- package/dist/interactive/keyDetection.d.ts +0 -85
- package/dist/interactive/keyDetection.d.ts.map +0 -1
- package/dist/interactive/keyDetection.js +0 -167
- package/dist/interactive/keyDetection.js.map +0 -1
- package/dist/interactive/multilineInputLogic.d.ts +0 -30
- package/dist/interactive/multilineInputLogic.d.ts.map +0 -1
- package/dist/interactive/multilineInputLogic.js +0 -143
- package/dist/interactive/multilineInputLogic.js.map +0 -1
- package/dist/interactive/passthrough.d.ts +0 -30
- package/dist/interactive/passthrough.d.ts.map +0 -1
- package/dist/interactive/passthrough.js +0 -94
- package/dist/interactive/passthrough.js.map +0 -1
- package/dist/interactive/permission.d.ts +0 -33
- package/dist/interactive/permission.d.ts.map +0 -1
- package/dist/interactive/permission.js +0 -231
- package/dist/interactive/permission.js.map +0 -1
- package/dist/interactive/prompt.d.ts.map +0 -1
- package/dist/interactive/prompt.js.map +0 -1
- package/dist/interactive/repl.d.ts +0 -13
- package/dist/interactive/repl.d.ts.map +0 -1
- package/dist/interactive/repl.js +0 -202
- package/dist/interactive/repl.js.map +0 -1
- package/dist/interactive/types.d.ts +0 -35
- package/dist/interactive/types.d.ts.map +0 -1
- package/dist/interactive/types.js +0 -5
- package/dist/interactive/types.js.map +0 -1
- package/dist/interactive/ui.d.ts +0 -16
- package/dist/interactive/ui.d.ts.map +0 -1
- package/dist/interactive/ui.js +0 -122
- package/dist/interactive/ui.js.map +0 -1
- package/dist/interactive/user-input.d.ts +0 -26
- package/dist/interactive/user-input.d.ts.map +0 -1
- package/dist/interactive/user-input.js +0 -115
- package/dist/interactive/user-input.js.map +0 -1
- package/dist/interactive/workflow-executor.d.ts +0 -20
- package/dist/interactive/workflow-executor.d.ts.map +0 -1
- package/dist/interactive/workflow-executor.js +0 -200
- package/dist/interactive/workflow-executor.js.map +0 -1
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow execution hook
|
|
3
|
-
*/
|
|
4
|
-
import type { WorkflowConfig, WorkflowState, AgentResponse } from '../../../models/types.js';
|
|
5
|
-
import type { StreamCallback, PermissionHandler, AskUserQuestionHandler } from '../../../claude/process.js';
|
|
6
|
-
interface UseWorkflowOptions {
|
|
7
|
-
/** Current working directory */
|
|
8
|
-
cwd: string;
|
|
9
|
-
/** Workflow configuration */
|
|
10
|
-
config: WorkflowConfig;
|
|
11
|
-
/** Stream callback for real-time output */
|
|
12
|
-
onStream?: StreamCallback;
|
|
13
|
-
/** Permission handler */
|
|
14
|
-
onPermissionRequest?: PermissionHandler;
|
|
15
|
-
/** AskUserQuestion handler */
|
|
16
|
-
onAskUserQuestion?: AskUserQuestionHandler;
|
|
17
|
-
/** Callback when step starts */
|
|
18
|
-
onStepStart?: (step: string, agent: string, iteration: number) => void;
|
|
19
|
-
/** Callback when step completes */
|
|
20
|
-
onStepComplete?: (response: AgentResponse) => void;
|
|
21
|
-
/** Callback when workflow completes */
|
|
22
|
-
onComplete?: (state: WorkflowState) => void;
|
|
23
|
-
/** Callback when workflow aborts */
|
|
24
|
-
onAbort?: (state: WorkflowState, reason: string) => void;
|
|
25
|
-
}
|
|
26
|
-
interface UseWorkflowResult {
|
|
27
|
-
/** Whether workflow is running */
|
|
28
|
-
isRunning: boolean;
|
|
29
|
-
/** Current workflow state */
|
|
30
|
-
state: WorkflowState | null;
|
|
31
|
-
/** Start workflow execution */
|
|
32
|
-
start: (task: string) => Promise<void>;
|
|
33
|
-
/** Interrupt current execution */
|
|
34
|
-
interrupt: () => void;
|
|
35
|
-
/** Add user input/hint */
|
|
36
|
-
addHint: (hint: string) => void;
|
|
37
|
-
/** Current error if any */
|
|
38
|
-
error: string | null;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Hook for managing workflow execution
|
|
42
|
-
*/
|
|
43
|
-
export declare function useWorkflow({ cwd, config, onStream, onPermissionRequest, onAskUserQuestion, onStepStart, onStepComplete, onComplete, onAbort, }: UseWorkflowOptions): UseWorkflowResult;
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL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CAAkC;IAClC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,0BAA0B;IAC1B,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,2BAA2B;IAC3B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,UAAU,EACV,OAAO,GACR,EAAE,kBAAkB,GAAG,iBAAiB,CA6FxC"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow execution hook
|
|
3
|
-
*/
|
|
4
|
-
import { useState, useCallback, useRef, useEffect } from 'react';
|
|
5
|
-
import { WorkflowEngine } from '../../../workflow/engine.js';
|
|
6
|
-
import { loadAgentSessions, updateAgentSession } from '../../../config/paths.js';
|
|
7
|
-
/**
|
|
8
|
-
* Hook for managing workflow execution
|
|
9
|
-
*/
|
|
10
|
-
export function useWorkflow({ cwd, config, onStream, onPermissionRequest, onAskUserQuestion, onStepStart, onStepComplete, onComplete, onAbort, }) {
|
|
11
|
-
const [isRunning, setIsRunning] = useState(false);
|
|
12
|
-
const [state, setState] = useState(null);
|
|
13
|
-
const [error, setError] = useState(null);
|
|
14
|
-
const engineRef = useRef(null);
|
|
15
|
-
const start = useCallback(async (task) => {
|
|
16
|
-
if (isRunning)
|
|
17
|
-
return;
|
|
18
|
-
setIsRunning(true);
|
|
19
|
-
setError(null);
|
|
20
|
-
try {
|
|
21
|
-
// Load existing agent sessions
|
|
22
|
-
const initialSessions = loadAgentSessions(cwd);
|
|
23
|
-
const options = {
|
|
24
|
-
onStream,
|
|
25
|
-
onPermissionRequest,
|
|
26
|
-
onAskUserQuestion,
|
|
27
|
-
initialSessions,
|
|
28
|
-
onSessionUpdate: (agentName, sessionId) => {
|
|
29
|
-
updateAgentSession(cwd, agentName, sessionId);
|
|
30
|
-
},
|
|
31
|
-
};
|
|
32
|
-
const engine = new WorkflowEngine(config, cwd, task, options);
|
|
33
|
-
engineRef.current = engine;
|
|
34
|
-
// Set up event listeners
|
|
35
|
-
engine.on('step:start', (step, iteration) => {
|
|
36
|
-
onStepStart?.(step.name, step.agent, iteration);
|
|
37
|
-
});
|
|
38
|
-
engine.on('step:complete', (_step, response) => {
|
|
39
|
-
onStepComplete?.(response);
|
|
40
|
-
});
|
|
41
|
-
engine.on('workflow:complete', (finalState) => {
|
|
42
|
-
setState(finalState);
|
|
43
|
-
setIsRunning(false);
|
|
44
|
-
onComplete?.(finalState);
|
|
45
|
-
});
|
|
46
|
-
engine.on('workflow:abort', (finalState, reason) => {
|
|
47
|
-
setState(finalState);
|
|
48
|
-
setIsRunning(false);
|
|
49
|
-
setError(reason);
|
|
50
|
-
onAbort?.(finalState, reason);
|
|
51
|
-
});
|
|
52
|
-
// Run the workflow
|
|
53
|
-
const finalState = await engine.run();
|
|
54
|
-
setState(finalState);
|
|
55
|
-
}
|
|
56
|
-
catch (err) {
|
|
57
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
58
|
-
setError(message);
|
|
59
|
-
setIsRunning(false);
|
|
60
|
-
}
|
|
61
|
-
finally {
|
|
62
|
-
engineRef.current = null;
|
|
63
|
-
}
|
|
64
|
-
}, [isRunning, cwd, config, onStream, onPermissionRequest, onAskUserQuestion, onStepStart, onStepComplete, onComplete, onAbort]);
|
|
65
|
-
const interrupt = useCallback(() => {
|
|
66
|
-
// Note: Actual interruption would need to be implemented in WorkflowEngine
|
|
67
|
-
// For now, this is a placeholder
|
|
68
|
-
if (engineRef.current) {
|
|
69
|
-
setIsRunning(false);
|
|
70
|
-
setError('Workflow interrupted by user');
|
|
71
|
-
}
|
|
72
|
-
}, []);
|
|
73
|
-
const addHint = useCallback((hint) => {
|
|
74
|
-
if (engineRef.current) {
|
|
75
|
-
engineRef.current.addHintInput(hint);
|
|
76
|
-
}
|
|
77
|
-
}, []);
|
|
78
|
-
// Cleanup on unmount
|
|
79
|
-
useEffect(() => {
|
|
80
|
-
return () => {
|
|
81
|
-
engineRef.current = null;
|
|
82
|
-
};
|
|
83
|
-
}, []);
|
|
84
|
-
return {
|
|
85
|
-
isRunning,
|
|
86
|
-
state,
|
|
87
|
-
start,
|
|
88
|
-
interrupt,
|
|
89
|
-
addHint,
|
|
90
|
-
error,
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
//# sourceMappingURL=useWorkflow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkflow.js","sourceRoot":"","sources":["../../../../src/interactive/ink/hooks/useWorkflow.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,OAAO,EAAE,cAAc,EAA8B,MAAM,6BAA6B,CAAC;AAEzF,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAsCjF;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,EAC1B,GAAG,EACH,MAAM,EACN,QAAQ,EACR,mBAAmB,EACnB,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,UAAU,EACV,OAAO,GACY;IACnB,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAuB,IAAI,CAAC,CAAC;IAC/D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IACxD,MAAM,SAAS,GAAG,MAAM,CAAwB,IAAI,CAAC,CAAC;IAEtD,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,EAAE,IAAY,EAAE,EAAE;QAC/C,IAAI,SAAS;YAAE,OAAO;QAEtB,YAAY,CAAC,IA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AG,EAAE;YACV,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC;QAC3B,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,SAAS;QACT,KAAK;QACL,KAAK;QACL,SAAS;QACT,OAAO;QACP,KAAK;KACN,CAAC;AACJ,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow execution hook
|
|
3
|
-
*/
|
|
4
|
-
export interface WorkflowExecutionResult {
|
|
5
|
-
executeWorkflow: (task: string) => Promise<void>;
|
|
6
|
-
executePassthroughMode: (task: string) => Promise<void>;
|
|
7
|
-
interruptWorkflow: () => boolean;
|
|
8
|
-
isRunning: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Hook for executing workflows and passthrough mode
|
|
12
|
-
*/
|
|
13
|
-
export declare function useWorkflowExecution(): WorkflowExecutionResult;
|
|
14
|
-
//# sourceMappingURL=useWorkflowExecution.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkflowExecution.d.ts","sourceRoot":"","sources":["../../../../src/interactive/ink/hooks/useWorkflowExecution.ts"],"names":[],"mappings":"AAAA;;GAEG;AAYH,MAAM,WAAW,uBAAuB;IACtC,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACjD,sBAAsB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACxD,iBAAiB,EAAE,MAAM,OAAO,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,uBAAuB,CAuJ9D"}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow execution hook
|
|
3
|
-
*/
|
|
4
|
-
import { useCallback, useRef } from 'react';
|
|
5
|
-
import { useApp, createStreamHandler } from '../context/AppContext.js';
|
|
6
|
-
import { usePermissionHandlers } from './usePermissionHandlers.js';
|
|
7
|
-
import { loadWorkflow, getBuiltinWorkflow } from '../../../config/loader.js';
|
|
8
|
-
import { loadAgentSessions, updateAgentSession } from '../../../config/paths.js';
|
|
9
|
-
import { WorkflowEngine } from '../../../workflow/engine.js';
|
|
10
|
-
import { executePassthrough } from '../../passthrough.js';
|
|
11
|
-
import { interruptCurrentProcess } from '../../../claude/process.js';
|
|
12
|
-
/**
|
|
13
|
-
* Hook for executing workflows and passthrough mode
|
|
14
|
-
*/
|
|
15
|
-
export function useWorkflowExecution() {
|
|
16
|
-
const { state, dispatch } = useApp();
|
|
17
|
-
const { handlePermissionRequest, handleAskUserQuestion, handleUserInput, handleIterationLimit, } = usePermissionHandlers();
|
|
18
|
-
const engineRef = useRef(null);
|
|
19
|
-
// Get workflow config
|
|
20
|
-
const workflowConfig = state.workflowConfig ??
|
|
21
|
-
getBuiltinWorkflow(state.workflowName) ??
|
|
22
|
-
loadWorkflow(state.workflowName);
|
|
23
|
-
// Create stream handler
|
|
24
|
-
const streamHandler = useCallback(createStreamHandler(dispatch), [dispatch]);
|
|
25
|
-
// Execute workflow
|
|
26
|
-
const executeWorkflow = useCallback(async (task) => {
|
|
27
|
-
if (!workflowConfig) {
|
|
28
|
-
dispatch({ type: 'SET_ERROR', payload: `Workflow "${state.workflowName}" not found` });
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
dispatch({ type: 'SET_CURRENT_TASK', payload: task });
|
|
32
|
-
dispatch({ type: 'ADD_USER_INPUT', payload: task });
|
|
33
|
-
// Add user message
|
|
34
|
-
dispatch({
|
|
35
|
-
type: 'ADD_MESSAGE',
|
|
36
|
-
payload: {
|
|
37
|
-
role: 'user',
|
|
38
|
-
content: task,
|
|
39
|
-
timestamp: new Date().toISOString(),
|
|
40
|
-
},
|
|
41
|
-
});
|
|
42
|
-
// Load saved agent sessions
|
|
43
|
-
const savedSessions = loadAgentSessions(state.cwd);
|
|
44
|
-
const engine = new WorkflowEngine(workflowConfig, state.cwd, task, {
|
|
45
|
-
onStream: streamHandler,
|
|
46
|
-
onUserInput: handleUserInput,
|
|
47
|
-
onPermissionRequest: state.sacrificeMode ? undefined : handlePermissionRequest,
|
|
48
|
-
onAskUserQuestion: handleAskUserQuestion,
|
|
49
|
-
onIterationLimit: handleIterationLimit,
|
|
50
|
-
initialSessions: savedSessions,
|
|
51
|
-
onSessionUpdate: (agentName, sessionId) => {
|
|
52
|
-
updateAgentSession(state.cwd, agentName, sessionId);
|
|
53
|
-
},
|
|
54
|
-
initialUserInputs: state.sharedUserInputs,
|
|
55
|
-
});
|
|
56
|
-
engineRef.current = engine;
|
|
57
|
-
engine.on('step:start', (step, iteration) => {
|
|
58
|
-
dispatch({
|
|
59
|
-
type: 'START_PROCESSING',
|
|
60
|
-
payload: { step: step.name, agent: step.agent, iteration },
|
|
61
|
-
});
|
|
62
|
-
});
|
|
63
|
-
engine.on('step:complete', (_step, response) => {
|
|
64
|
-
dispatch({
|
|
65
|
-
type: 'ADD_MESSAGE',
|
|
66
|
-
payload: {
|
|
67
|
-
role: 'assistant',
|
|
68
|
-
content: response.content,
|
|
69
|
-
timestamp: response.timestamp.toISOString(),
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
engine.on('workflow:complete', () => {
|
|
74
|
-
dispatch({ type: 'STOP_PROCESSING' });
|
|
75
|
-
});
|
|
76
|
-
engine.on('workflow:abort', (_state, reason) => {
|
|
77
|
-
dispatch({ type: 'SET_ERROR', payload: reason || 'Workflow aborted' });
|
|
78
|
-
});
|
|
79
|
-
try {
|
|
80
|
-
await engine.run();
|
|
81
|
-
}
|
|
82
|
-
catch (err) {
|
|
83
|
-
dispatch({ type: 'SET_ERROR', payload: err instanceof Error ? err.message : String(err) });
|
|
84
|
-
}
|
|
85
|
-
finally {
|
|
86
|
-
engineRef.current = null;
|
|
87
|
-
dispatch({ type: 'STOP_PROCESSING' });
|
|
88
|
-
}
|
|
89
|
-
}, [workflowConfig, state.workflowName, state.cwd, state.sacrificeMode, state.sharedUserInputs, dispatch, streamHandler, handleUserInput, handlePermissionRequest, handleAskUserQuestion, handleIterationLimit]);
|
|
90
|
-
// Execute passthrough
|
|
91
|
-
const executePassthroughMode = useCallback(async (task) => {
|
|
92
|
-
dispatch({ type: 'SET_CURRENT_TASK', payload: task });
|
|
93
|
-
dispatch({ type: 'ADD_USER_INPUT', payload: task });
|
|
94
|
-
dispatch({
|
|
95
|
-
type: 'ADD_MESSAGE',
|
|
96
|
-
payload: {
|
|
97
|
-
role: 'user',
|
|
98
|
-
content: task,
|
|
99
|
-
timestamp: new Date().toISOString(),
|
|
100
|
-
},
|
|
101
|
-
});
|
|
102
|
-
dispatch({
|
|
103
|
-
type: 'START_PROCESSING',
|
|
104
|
-
payload: { step: 'passthrough', agent: 'claude', iteration: 1 },
|
|
105
|
-
});
|
|
106
|
-
try {
|
|
107
|
-
const result = await executePassthrough(task, {
|
|
108
|
-
cwd: state.cwd,
|
|
109
|
-
claudeSessionId: state.claudeSessionId,
|
|
110
|
-
}, {
|
|
111
|
-
onStream: streamHandler,
|
|
112
|
-
onPermissionRequest: state.sacrificeMode ? undefined : handlePermissionRequest,
|
|
113
|
-
});
|
|
114
|
-
if (result.sessionId) {
|
|
115
|
-
dispatch({ type: 'SET_SESSION_ID', payload: result.sessionId });
|
|
116
|
-
}
|
|
117
|
-
dispatch({
|
|
118
|
-
type: 'ADD_MESSAGE',
|
|
119
|
-
payload: {
|
|
120
|
-
role: 'assistant',
|
|
121
|
-
content: result.success ? result.content : `[ERROR] ${result.error}`,
|
|
122
|
-
timestamp: new Date().toISOString(),
|
|
123
|
-
},
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
catch (err) {
|
|
127
|
-
dispatch({ type: 'SET_ERROR', payload: err instanceof Error ? err.message : String(err) });
|
|
128
|
-
}
|
|
129
|
-
finally {
|
|
130
|
-
dispatch({ type: 'STOP_PROCESSING' });
|
|
131
|
-
}
|
|
132
|
-
}, [state.cwd, state.claudeSessionId, state.sacrificeMode, dispatch, streamHandler, handlePermissionRequest]);
|
|
133
|
-
// Interrupt current workflow
|
|
134
|
-
const interruptWorkflow = useCallback(() => {
|
|
135
|
-
return interruptCurrentProcess();
|
|
136
|
-
}, []);
|
|
137
|
-
return {
|
|
138
|
-
executeWorkflow,
|
|
139
|
-
executePassthroughMode,
|
|
140
|
-
interruptWorkflow,
|
|
141
|
-
isRunning: state.isProcessing,
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
//# sourceMappingURL=useWorkflowExecution.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useWorkflowExecution.js","sourceRoot":"","sources":["../../../../src/interactive/ink/hooks/useWorkflowExecution.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAUrE;;GAEG;AACH,MAAM,UAAU,oBAAoB;IAClC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,EAAE,CAAC;IACrC,MAAM,EACJ,uBAAuB,EACvB,qBAAqB,EACrB,eAAe,EACf,oBAAoB,GACrB,GAAG,qBAAqB,EAAE,CAAC;IAE5B,MAAM,SAAS,GAAG,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AAE,uBAAuB,CAAC,CAAC,CAAC;IAE9G,6BAA6B;IAC7B,MAAM,iBAAiB,GAAG,WAAW,CAAC,GAAY,EAAE;QAClD,OAAO,uBAAuB,EAAE,CAAC;IACnC,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO;QACL,eAAe;QACf,sBAAsB;QACtB,iBAAiB;QACjB,SAAS,EAAE,KAAK,CAAC,YAAY;KAC9B,CAAC;AACJ,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Ink-based interactive mode entry point
|
|
3
|
-
*/
|
|
4
|
-
export interface InkInteractiveOptions {
|
|
5
|
-
/** Current working directory */
|
|
6
|
-
cwd: string;
|
|
7
|
-
/** Initial workflow name */
|
|
8
|
-
workflowName?: string;
|
|
9
|
-
/** Initial task to execute */
|
|
10
|
-
initialTask?: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Start the ink-based interactive mode
|
|
14
|
-
*/
|
|
15
|
-
export declare function startInkInteractiveMode(options: InkInteractiveOptions): Promise<void>;
|
|
16
|
-
export { App } from './components/App.js';
|
|
17
|
-
export { PromptInput } from './components/PromptInput.js';
|
|
18
|
-
export { StreamingOutput } from './components/StreamingOutput.js';
|
|
19
|
-
export { Spinner } from './components/Spinner.js';
|
|
20
|
-
export { Header } from './components/Header.js';
|
|
21
|
-
export { PermissionPrompt } from './components/PermissionPrompt.js';
|
|
22
|
-
export { AskUserQuestion } from './components/AskUserQuestion.js';
|
|
23
|
-
export { IterationLimit } from './components/IterationLimit.js';
|
|
24
|
-
export { UserInputPrompt } from './components/UserInputPrompt.js';
|
|
25
|
-
export { WorkflowSelector } from './components/WorkflowSelector.js';
|
|
26
|
-
export { HelpView } from './components/HelpView.js';
|
|
27
|
-
export { AppProvider, useApp } from './context/AppContext.js';
|
|
28
|
-
export { useHistory } from './hooks/useHistory.js';
|
|
29
|
-
export { useWorkflow } from './hooks/useWorkflow.js';
|
|
30
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interactive/ink/index.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAOH,MAAM,WAAW,qBAAqB;IACpC,gCAAgC;IAChC,GAAG,EAAE,MAAM,CAAC;IACZ,4BAA4B;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAAC,OAAO,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC,CAe3F;AAGD,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { render } from 'ink';
|
|
3
|
-
import { App } from './components/App.js';
|
|
4
|
-
import { loadLastWorkflow } from '../../config/paths.js';
|
|
5
|
-
/**
|
|
6
|
-
* Start the ink-based interactive mode
|
|
7
|
-
*/
|
|
8
|
-
export async function startInkInteractiveMode(options) {
|
|
9
|
-
const { cwd, initialTask } = options;
|
|
10
|
-
// Load last used workflow if not specified
|
|
11
|
-
const workflowName = options.workflowName ?? loadLastWorkflow(cwd);
|
|
12
|
-
const { waitUntilExit } = render(_jsx(App, { cwd: cwd, workflowName: workflowName, initialTask: initialTask }), {
|
|
13
|
-
// Prevent console.log from interfering with Ink's output
|
|
14
|
-
patchConsole: false,
|
|
15
|
-
});
|
|
16
|
-
await waitUntilExit();
|
|
17
|
-
}
|
|
18
|
-
// Re-export components for external use
|
|
19
|
-
export { App } from './components/App.js';
|
|
20
|
-
export { PromptInput } from './components/PromptInput.js';
|
|
21
|
-
export { StreamingOutput } from './components/StreamingOutput.js';
|
|
22
|
-
export { Spinner } from './components/Spinner.js';
|
|
23
|
-
export { Header } from './components/Header.js';
|
|
24
|
-
export { PermissionPrompt } from './components/PermissionPrompt.js';
|
|
25
|
-
export { AskUserQuestion } from './components/AskUserQuestion.js';
|
|
26
|
-
export { IterationLimit } from './components/IterationLimit.js';
|
|
27
|
-
export { UserInputPrompt } from './components/UserInputPrompt.js';
|
|
28
|
-
export { WorkflowSelector } from './components/WorkflowSelector.js';
|
|
29
|
-
export { HelpView } from './components/HelpView.js';
|
|
30
|
-
export { AppProvider, useApp } from './context/AppContext.js';
|
|
31
|
-
export { useHistory } from './hooks/useHistory.js';
|
|
32
|
-
export { useWorkflow } from './hooks/useWorkflow.js';
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/interactive/ink/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,E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M,uBAAuB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow utility functions for ink interactive mode
|
|
3
|
-
*/
|
|
4
|
-
import type { Dispatch } from 'react';
|
|
5
|
-
import type { AppAction } from '../context/AppContext.js';
|
|
6
|
-
/**
|
|
7
|
-
* Set workflow by name, loading from builtin or custom sources
|
|
8
|
-
* @returns true if workflow was found and set, false otherwise
|
|
9
|
-
*/
|
|
10
|
-
export declare function setWorkflowByName(name: string, cwd: string, dispatch: Dispatch<AppAction>): boolean;
|
|
11
|
-
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../../../src/interactive/ink/utils/workflow.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1D;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,GAC5B,OAAO,CAQT"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workflow utility functions for ink interactive mode
|
|
3
|
-
*/
|
|
4
|
-
import { loadWorkflow, getBuiltinWorkflow } from '../../../config/loader.js';
|
|
5
|
-
import { saveLastWorkflow } from '../../../config/paths.js';
|
|
6
|
-
/**
|
|
7
|
-
* Set workflow by name, loading from builtin or custom sources
|
|
8
|
-
* @returns true if workflow was found and set, false otherwise
|
|
9
|
-
*/
|
|
10
|
-
export function setWorkflowByName(name, cwd, dispatch) {
|
|
11
|
-
const config = getBuiltinWorkflow(name) || loadWorkflow(name);
|
|
12
|
-
if (config) {
|
|
13
|
-
dispatch({ type: 'SET_WORKFLOW', payload: { name, config } });
|
|
14
|
-
saveLastWorkflow(cwd, name);
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=workflow.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.js","sourceRoot":"","sources":["../../../../src/interactive/ink/utils/workflow.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAG5D;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC/B,IAAY,EACZ,GAAW,EACX,QAA6B;IAE7B,MAAM,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;IAC9D,IAAI,MAAM,EAAE,CAAC;QACX,QAAQ,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QAC9D,gBAAgB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAC5B,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Asynchronous input buffer for takt
|
|
3
|
-
*
|
|
4
|
-
* Allows collecting user hints during workflow execution.
|
|
5
|
-
* The workflow can retrieve these hints at any time without blocking.
|
|
6
|
-
*/
|
|
7
|
-
import { EventEmitter } from 'node:events';
|
|
8
|
-
/** Events emitted by InputBuffer */
|
|
9
|
-
export interface InputBufferEvents {
|
|
10
|
-
'hint': (hint: string) => void;
|
|
11
|
-
'close': () => void;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Asynchronous input buffer that collects user hints during workflow execution.
|
|
15
|
-
*
|
|
16
|
-
* This enables Claude Code-like behavior where users can provide hints
|
|
17
|
-
* while the agent is processing, without interrupting the workflow.
|
|
18
|
-
*/
|
|
19
|
-
export declare class InputBuffer extends EventEmitter {
|
|
20
|
-
private buffer;
|
|
21
|
-
private isActive;
|
|
22
|
-
private keyHandler;
|
|
23
|
-
private currentLine;
|
|
24
|
-
constructor();
|
|
25
|
-
/**
|
|
26
|
-
* Start collecting input in the background.
|
|
27
|
-
* User can type hints that will be buffered for later retrieval.
|
|
28
|
-
*/
|
|
29
|
-
start(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Stop collecting input.
|
|
32
|
-
*/
|
|
33
|
-
stop(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Get all buffered hints and clear the buffer.
|
|
36
|
-
*/
|
|
37
|
-
flush(): string[];
|
|
38
|
-
/**
|
|
39
|
-
* Get all buffered hints without clearing.
|
|
40
|
-
*/
|
|
41
|
-
peek(): readonly string[];
|
|
42
|
-
/**
|
|
43
|
-
* Check if there are any buffered hints.
|
|
44
|
-
*/
|
|
45
|
-
hasHints(): boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Get the count of buffered hints.
|
|
48
|
-
*/
|
|
49
|
-
get hintCount(): number;
|
|
50
|
-
/**
|
|
51
|
-
* Check if the buffer is active.
|
|
52
|
-
*/
|
|
53
|
-
get active(): boolean;
|
|
54
|
-
/**
|
|
55
|
-
* Add a hint programmatically (useful for testing).
|
|
56
|
-
*/
|
|
57
|
-
addHint(hint: string): void;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Get or create the global input buffer instance.
|
|
61
|
-
*/
|
|
62
|
-
export declare function getInputBuffer(): InputBuffer;
|
|
63
|
-
/**
|
|
64
|
-
* Reset the global input buffer (for testing).
|
|
65
|
-
*/
|
|
66
|
-
export declare function resetInputBuffer(): void;
|
|
67
|
-
//# sourceMappingURL=input-buffer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-buffer.d.ts","sourceRoot":"","sources":["../../src/interactive/input-buffer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAM3C,oCAAoC;AACpC,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;;;GAKG;AACH,qBAAa,WAAY,SAAQ,YAAY;IAC3C,OAAO,CAAC,MAAM,CAAgB;IAC9B,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,UAAU,CAA0C;IAC5D,OAAO,CAAC,WAAW,CAAc;;IAMjC;;;OAGG;IACH,KAAK,IAAI,IAAI;IAsDb;;OAEG;IACH,IAAI,IAAI,IAAI;IAmBZ;;OAEG;IACH,KAAK,IAAI,MAAM,EAAE;IAOjB;;OAEG;IACH,IAAI,IAAI,SAAS,MAAM,EAAE;IAIzB;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;OAEG;IACH,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED;;OAEG;IACH,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;CAI5B;AAKD;;GAEG;AACH,wBAAgB,cAAc,IAAI,WAAW,CAK5C;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAKvC"}
|