genaicode 0.10.0 → 0.10.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/dist/ai-service/ai-studio.js +69 -70
- package/dist/ai-service/ai-studio.js.map +1 -1
- package/dist/ai-service/common-types.d.ts +1 -0
- package/dist/ai-service/common.js +3 -0
- package/dist/ai-service/common.js.map +1 -1
- package/dist/help-docs/genaicode-help-document.d.ts +1 -1
- package/dist/help-docs/genaicode-help-document.js +1 -0
- package/dist/help-docs/genaicode-help-document.js.map +1 -1
- package/dist/main/common/user-actions.d.ts +1 -1
- package/dist/main/config-types.d.ts +1 -0
- package/dist/main/config.js +8 -1
- package/dist/main/config.js.map +1 -1
- package/dist/main/ui/common/api-types.d.ts +25 -0
- package/dist/main/ui/frontend/assets/index-DWyCD84H.js +2015 -0
- package/dist/main/ui/frontend/index.html +1 -1
- package/dist/prompt/function-calling-validate.d.ts +2 -1
- package/dist/prompt/function-calling-validate.js +2 -2
- package/dist/prompt/function-calling-validate.js.map +1 -1
- package/dist/prompt/function-calling.js +5 -2
- package/dist/prompt/function-calling.js.map +1 -1
- package/dist/prompt/function-defs/ask-question.d.ts +1 -0
- package/dist/prompt/function-defs/ask-question.js +33 -1
- package/dist/prompt/function-defs/ask-question.js.map +1 -1
- package/dist/prompt/function-defs/compound-action-list.d.ts +7 -0
- package/dist/prompt/function-defs/compound-action-list.js +38 -0
- package/dist/prompt/function-defs/compound-action-list.js.map +1 -0
- package/dist/prompt/function-defs/compound-action.d.ts +2 -0
- package/dist/prompt/function-defs/compound-action.js +43 -0
- package/dist/prompt/function-defs/compound-action.js.map +1 -0
- package/dist/prompt/function-defs/conversation-graph.d.ts +6 -6
- package/dist/prompt/limits.js +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.d.ts +20 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.js +253 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.d.ts +6 -7
- package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.js +406 -178
- package/dist/prompt/steps/step-ask-question/handlers/handle-conversation-graph.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-explore-external-directories.js +4 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-explore-external-directories.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-read-external-files.js +5 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-read-external-files.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.d.ts +3 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.js +184 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-request-git-context.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js +8 -12
- package/dist/prompt/steps/step-ask-question/handlers/handle-update-file.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +25 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts +2 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question.js +2 -0
- package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
- package/dist/prompt/steps/step-validate-recover.js +3 -3
- package/dist/prompt/steps/step-validate-recover.js.map +1 -1
- package/dist/prompt/systemprompt.d.ts +1 -1
- package/dist/prompt/systemprompt.js +7 -2
- package/dist/prompt/systemprompt.js.map +1 -1
- package/package.json +4 -3
- package/dist/main/ui/frontend/assets/index-BlVGo0E6.js +0 -1902
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handle-compound-action.js","sourceRoot":"","sources":["../../../../../src/prompt/steps/step-ask-question/handlers/handle-compound-action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAA2B,MAAM,wCAAwC,CAAC;AAE1G,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC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AC;AACJ,CAAC,CAAC;AAEF,qBAAqB,CAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAC"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { ActionHandlerProps, ActionResult } from '../step-ask-question-types.js';
|
|
2
2
|
import { ConversationEdge, ConversationNode } from '../../../function-defs/conversation-graph.js';
|
|
3
|
-
export declare const CONVERSATION_GRAPH_PROMPT = "# Conversation Graph Guide\n\nA conversation graph is a flexible structure for managing complex interactions. It consists of nodes (conversation states) connected by edges (transitions).\n\n## Core Components\n\n1. **Nodes (States)**\n - Each node represents a distinct state in the conversation\n - Contains:\n - id: Unique identifier\n - actionType: The action to perform\n - instruction: Internal guidance for execution\n\n2. **Edges (Transitions)**\n - Connect nodes to define possible conversation flows\n - Contains:\n - sourceNode: Starting point\n - targetNode: Destination\n - instruction: Condition for transition\n\n## Key Concepts\n\n- **State Management**: Nodes capture the current state and required action\n- **Flow Control**: Edges determine how the conversation can progress\n- **Flexibility**: Support for various conversation patterns and flows\n- **Context Awareness**: Each node operates with awareness of the conversation state\n\n## Implementation Notes\n\n- Nodes should be self-contained and focused\n- Edges should have clear, evaluatable conditions\n- Any node can connect to any other node if logically appropriate\n- Nodes and edges must formulate a
|
|
3
|
+
export declare const CONVERSATION_GRAPH_PROMPT = "# Conversation Graph Guide\n\nA conversation graph is a flexible structure for managing complex interactions. It consists of nodes (conversation states) connected by edges (transitions).\n\n## Core Components\n\n1. **Nodes (States)**\n - Each node represents a distinct state in the conversation\n - Contains:\n - id: Unique identifier\n - actionType: The action to perform\n - instruction: Internal guidance for execution\n\n2. **Edges (Transitions)**\n - Connect nodes to define possible conversation flows\n - Contains:\n - sourceNode: Starting point\n - targetNode: Destination\n - instruction: Condition for transition\n\n## Key Concepts\n\n- **State Management**: Nodes capture the current state and required action\n- **Flow Control**: Edges determine how the conversation can progress\n- **Flexibility**: Support for various conversation patterns and flows\n- **Context Awareness**: Each node operates with awareness of the conversation state\n- **User Interaction**: User can reject or accept some of the actions, so the graph should account for that\n\n## Implementation Notes\n\n- Nodes should be self-contained and focused\n- Edges should have clear, evaluatable conditions\n- Any node can connect to any other node if logically appropriate\n- Nodes and edges must formulate a graph structure, allowing for complex interactions\n\n## Graph Structure requirements and constraints\n\n- The graph may contain cycles, but should be designed to avoid infinite loops\n- Each node should be reachable from the entry node\n- The entry node should be clearly defined and serve as the starting point for the conversation\n\n## Technical Details\n\nNodes require:\n- Unique ID for reference\n- Valid action type\n- Clear execution instructions\n\nEdges require:\n- Valid source and target node IDs\n- Clear transition conditions\n\n# Let's get started!\n\n0. Read and understand the conersation we had so far (context).\n1. Think about the big picture of the upcoming conversation flow and the desired outcome.\n2. Define the entry node to start the upcoming conversation.\n3. Create nodes with reasoning, action type, and instructions.\n4. Connect nodes with edges to define the conversation flow.\n";
|
|
4
4
|
export declare const getEdgeEvaluationPrompt: (currentNode: ConversationNode, outgoingEdges: ConversationEdge[]) => string;
|
|
5
|
+
export declare const GRAPH_ANALYSIS_PROMPT_TEXT = "Please analyze the conversation graph provided by the assistant in the preceding message. Simulate diverse conversation paths mentally and identify any structural or logical problems, dead ends, unreachable nodes, missing transitions, or potential infinite loops. Explain the problems you find in detail. If no significant problems are found, state that clearly.";
|
|
6
|
+
export declare const GRAPH_REVISION_PROMPT_TEXT = "Based on the analysis provided in the preceding message, generate a new, improved conversation graph using the 'conversationGraph' function. Ensure the new graph addresses the identified problems and better facilitates the original conversation goal.";
|
|
5
7
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* 2. Extracting nodes and edges from the response
|
|
9
|
-
* 3. Traversing the graph and executing actions
|
|
10
|
-
* 4. Returning appropriate ActionResult
|
|
8
|
+
* Main handler for the conversationGraph action.
|
|
9
|
+
* Orchestrates confirmation, generation, analysis/revision, and traversal.
|
|
11
10
|
*/
|
|
12
|
-
export declare function handleConversationGraph(
|
|
11
|
+
export declare function handleConversationGraph(props: ActionHandlerProps): Promise<ActionResult>;
|