@tyvm/knowhow 0.0.88 → 0.0.90
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/CONFIG.md +52 -0
- package/README.md +344 -29
- package/WORKER.md +169 -334
- package/autodoc/chat-guide.md +540 -0
- package/autodoc/cli-reference.md +765 -0
- package/autodoc/config-reference.md +541 -0
- package/autodoc/embeddings-guide.md +566 -0
- package/autodoc/generate-guide.md +477 -0
- package/autodoc/language-plugin-guide.md +443 -0
- package/autodoc/modules-guide.md +352 -0
- package/autodoc/plugins-guide.md +720 -0
- package/autodoc/quickstart-guide.md +129 -0
- package/autodoc/skills-guide.md +468 -0
- package/autodoc/worker-guide.md +526 -0
- package/package.json +2 -2
- package/src/ai.ts +33 -2
- package/src/config.ts +28 -4
- package/src/index.ts +22 -2
- package/src/processors/TokenCompressor.ts +2 -2
- package/src/processors/ToolResponseCache.ts +3 -3
- package/src/processors/tools/grepToolResponse.ts +9 -4
- package/src/processors/tools/jqToolResponse.ts +11 -6
- package/src/processors/tools/listStoredToolResponses.ts +1 -1
- package/src/processors/tools/tailToolResponse.ts +9 -4
- package/src/worker.ts +9 -7
- package/ts_build/package.json +2 -2
- package/ts_build/src/ai.js +18 -1
- package/ts_build/src/ai.js.map +1 -1
- package/ts_build/src/config.js +17 -2
- package/ts_build/src/config.js.map +1 -1
- package/ts_build/src/index.js +12 -2
- package/ts_build/src/index.js.map +1 -1
- package/ts_build/src/processors/TokenCompressor.js +2 -2
- package/ts_build/src/processors/TokenCompressor.js.map +1 -1
- package/ts_build/src/processors/ToolResponseCache.js +3 -3
- package/ts_build/src/processors/ToolResponseCache.js.map +1 -1
- package/ts_build/src/processors/tools/grepToolResponse.d.ts +3 -1
- package/ts_build/src/processors/tools/grepToolResponse.js +8 -2
- package/ts_build/src/processors/tools/grepToolResponse.js.map +1 -1
- package/ts_build/src/processors/tools/jqToolResponse.d.ts +3 -1
- package/ts_build/src/processors/tools/jqToolResponse.js +10 -4
- package/ts_build/src/processors/tools/jqToolResponse.js.map +1 -1
- package/ts_build/src/processors/tools/listStoredToolResponses.js +1 -1
- package/ts_build/src/processors/tools/listStoredToolResponses.js.map +1 -1
- package/ts_build/src/processors/tools/tailToolResponse.d.ts +3 -1
- package/ts_build/src/processors/tools/tailToolResponse.js +8 -2
- package/ts_build/src/processors/tools/tailToolResponse.js.map +1 -1
- package/ts_build/src/worker.js +5 -3
- package/ts_build/src/worker.js.map +1 -1
- package/autodoc/chat.mdx +0 -20
- package/autodoc/cli.mdx +0 -11
- package/autodoc/plugins/asana.mdx +0 -47
- package/autodoc/plugins/downloader/downloader.mdx +0 -38
- package/autodoc/plugins/downloader/plugin.mdx +0 -37
- package/autodoc/plugins/downloader/types.mdx +0 -42
- package/autodoc/plugins/embedding.mdx +0 -41
- package/autodoc/plugins/figma.mdx +0 -45
- package/autodoc/plugins/github.mdx +0 -40
- package/autodoc/plugins/jira.mdx +0 -46
- package/autodoc/plugins/language.mdx +0 -37
- package/autodoc/plugins/linear.mdx +0 -35
- package/autodoc/plugins/notion.mdx +0 -38
- package/autodoc/plugins/plugins.mdx +0 -59
- package/autodoc/plugins/types.mdx +0 -51
- package/autodoc/plugins/vim.mdx +0 -39
- package/autodoc/tools/addInternalTools.mdx +0 -1
- package/autodoc/tools/agentCall.mdx +0 -1
- package/autodoc/tools/asana/definitions.mdx +0 -10
- package/autodoc/tools/asana/index.mdx +0 -12
- package/autodoc/tools/askHuman.mdx +0 -1
- package/autodoc/tools/callPlugin.mdx +0 -1
- package/autodoc/tools/embeddingSearch.mdx +0 -1
- package/autodoc/tools/execCommand.mdx +0 -1
- package/autodoc/tools/fileSearch.mdx +0 -1
- package/autodoc/tools/finalAnswer.mdx +0 -1
- package/autodoc/tools/github/definitions.mdx +0 -6
- package/autodoc/tools/github/index.mdx +0 -8
- package/autodoc/tools/index.mdx +0 -14
- package/autodoc/tools/lintFile.mdx +0 -7
- package/autodoc/tools/list.mdx +0 -16
- package/autodoc/tools/modifyFile.mdx +0 -7
- package/autodoc/tools/patch.mdx +0 -9
- package/autodoc/tools/readBlocks.mdx +0 -1
- package/autodoc/tools/readFile.mdx +0 -1
- package/autodoc/tools/scanFile.mdx +0 -1
- package/autodoc/tools/textSearch.mdx +0 -6
- package/autodoc/tools/types/fileblock.mdx +0 -1
- package/autodoc/tools/visionTool.mdx +0 -1
- package/autodoc/tools/writeFile.mdx +0 -1
- package/test-comprehensive.ts +0 -31
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
# Notion Plugin Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Notion Plugin is designed to enhance chat interactions by integrating Notion content directly into conversations. It detects Notion URLs within user inputs, retrieves the corresponding Notion pages and their child blocks, and generates embeddings that can be used to provide additional context in chats. This plugin is particularly useful for users who frequently reference Notion documents and wish to seamlessly incorporate their content into discussions.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **URL Extraction**: The plugin scans user inputs for Notion URLs using a regular expression pattern. It identifies and extracts URLs that point to Notion pages.
|
|
12
|
-
- **Page Retrieval**: For each detected URL, the plugin retrieves the corresponding Notion page and its child blocks. This includes handling nested blocks up to a specified depth.
|
|
13
|
-
|
|
14
|
-
### Contextual Enhancements
|
|
15
|
-
|
|
16
|
-
- **Content Embedding**: The plugin generates embeddings from the retrieved Notion pages and their child blocks. These embeddings include the text content and metadata, which can be used to enrich chat interactions with relevant information from Notion.
|
|
17
|
-
- **Hierarchical Data Handling**: The plugin processes hierarchical data structures within Notion pages, ensuring that nested blocks and child pages are included in the embeddings.
|
|
18
|
-
|
|
19
|
-
### Embedding Generation
|
|
20
|
-
|
|
21
|
-
- **Minimal Embeddings**: The plugin creates minimal embeddings that encapsulate the essential content and metadata of Notion pages and blocks. These embeddings are structured to facilitate easy integration into chat systems.
|
|
22
|
-
- **Comprehensive Data**: The embeddings include text content extracted from various block types within Notion, ensuring a comprehensive representation of the page's information.
|
|
23
|
-
|
|
24
|
-
## Environment Variables
|
|
25
|
-
|
|
26
|
-
To function correctly, the Notion Plugin requires the following environment variable to be set:
|
|
27
|
-
|
|
28
|
-
- **NOTION_TOKEN**: This token is used to authenticate requests to the Notion API. It must be set in the environment where the plugin is running.
|
|
29
|
-
|
|
30
|
-
## Usage
|
|
31
|
-
|
|
32
|
-
The Notion Plugin can be used in various scenarios where integrating Notion content into chat interactions is beneficial. For example:
|
|
33
|
-
|
|
34
|
-
- **Customer Support**: Support agents can quickly reference and share relevant Notion documentation with customers during chat sessions.
|
|
35
|
-
- **Team Collaboration**: Team members can embed and discuss specific Notion pages within chat platforms, facilitating more informed and context-rich conversations.
|
|
36
|
-
- **Knowledge Management**: Users can pull in detailed information from Notion pages to answer questions or provide explanations in chat environments.
|
|
37
|
-
|
|
38
|
-
By leveraging the Notion Plugin, users can enhance their chat interactions with rich, contextual information from their Notion workspace, improving communication efficiency and effectiveness.
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# Plugin Service Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Plugin Service is a comprehensive system designed to enhance chat interactions by detecting and resolving various types of inputs, adding contextual information, and generating embeddings. This service integrates multiple specialized plugins, each contributing unique functionalities to improve user experience and productivity.
|
|
6
|
-
|
|
7
|
-
## Input Detection and Resolution
|
|
8
|
-
|
|
9
|
-
The Plugin Service is capable of detecting and resolving a wide range of inputs through its diverse set of plugins. Each plugin is tailored to handle specific types of data and interactions:
|
|
10
|
-
|
|
11
|
-
- **VimPlugin**: Enhances text editing capabilities with Vim-like commands.
|
|
12
|
-
- **GitHubPlugin**: Manages GitHub repositories, issues, and pull requests.
|
|
13
|
-
- **AsanaPlugin**: Integrates with Asana for task and project management.
|
|
14
|
-
- **LinearPlugin**: Connects with Linear for issue tracking and project management.
|
|
15
|
-
- **JiraPlugin**: Interfaces with Jira for comprehensive project tracking.
|
|
16
|
-
- **NotionPlugin**: Syncs with Notion for note-taking and project organization.
|
|
17
|
-
- **DownloaderPlugin**: Facilitates downloading of files and resources.
|
|
18
|
-
- **FigmaPlugin**: Integrates with Figma for design collaboration.
|
|
19
|
-
- **LanguagePlugin**: Provides language processing capabilities.
|
|
20
|
-
- **EmbeddingPlugin**: Generates embeddings for various types of data.
|
|
21
|
-
|
|
22
|
-
## Contextual Enhancements
|
|
23
|
-
|
|
24
|
-
The Plugin Service adds valuable context to chat interactions by leveraging the capabilities of its integrated plugins. For example:
|
|
25
|
-
|
|
26
|
-
- **GitHubPlugin** can provide context about recent commits, open issues, and pull requests.
|
|
27
|
-
- **AsanaPlugin** and **LinearPlugin** can offer insights into task statuses and project timelines.
|
|
28
|
-
- **JiraPlugin** can deliver updates on project progress and issue resolutions.
|
|
29
|
-
- **NotionPlugin** can share notes and project documentation.
|
|
30
|
-
- **FigmaPlugin** can present design updates and feedback.
|
|
31
|
-
|
|
32
|
-
These contextual enhancements ensure that users have access to relevant information directly within their chat environment, streamlining workflows and improving decision-making.
|
|
33
|
-
|
|
34
|
-
## Embedding Generation
|
|
35
|
-
|
|
36
|
-
The Plugin Service supports the generation of embeddings through the **EmbeddingPlugin**. Embeddings are vector representations of data that can be used for various purposes, such as:
|
|
37
|
-
|
|
38
|
-
- **Text Embeddings**: Representing textual data in a numerical format for natural language processing tasks.
|
|
39
|
-
- **Image Embeddings**: Converting visual data into vectors for image recognition and analysis.
|
|
40
|
-
- **Custom Embeddings**: Generating embeddings for domain-specific data to enhance search and recommendation systems.
|
|
41
|
-
|
|
42
|
-
These embeddings enable advanced data processing and machine learning applications, making the Plugin Service a powerful tool for data-driven tasks.
|
|
43
|
-
|
|
44
|
-
## Environment Variables
|
|
45
|
-
|
|
46
|
-
To ensure the proper functioning of the Plugin Service, certain environment variables need to be set. These variables are used to configure the plugins and provide necessary credentials and settings. The required environment variables include:
|
|
47
|
-
|
|
48
|
-
- **GITHUB_TOKEN**: Required for the **GitHubPlugin** to authenticate and interact with GitHub APIs.
|
|
49
|
-
- **ASANA_TOKEN**: Required for the **AsanaPlugin** to access Asana's API.
|
|
50
|
-
- **LINEAR_API_KEY**: Required for the **LinearPlugin** to connect with Linear's services.
|
|
51
|
-
- **JIRA_API_TOKEN**: Required for the **JiraPlugin** to authenticate with Jira.
|
|
52
|
-
- **NOTION_API_KEY**: Required for the **NotionPlugin** to interact with Notion's API.
|
|
53
|
-
- **FIGMA_API_KEY**: Required for the **FigmaPlugin** to access Figma's API.
|
|
54
|
-
|
|
55
|
-
These environment variables should be set in the system where the Plugin Service is deployed to ensure seamless integration and functionality.
|
|
56
|
-
|
|
57
|
-
## Conclusion
|
|
58
|
-
|
|
59
|
-
The Plugin Service is a versatile and powerful system that enhances chat interactions by detecting and resolving various inputs, adding contextual information, and generating embeddings. By integrating with multiple specialized plugins, it provides a comprehensive solution for improving productivity and user experience in chat environments. Proper configuration of environment variables is essential for the optimal performance of the service.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
# Executive Summary: Chat Enhancement Plugin
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Chat Enhancement Plugin is designed to augment chat interactions by detecting and resolving specific types of user inputs, adding valuable context to conversations, and generating various types of embeddings. This plugin is particularly useful for applications that require advanced text processing, contextual understanding, and semantic embedding capabilities.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
The plugin is capable of detecting and resolving a wide range of user inputs. This includes, but is not limited to:
|
|
12
|
-
|
|
13
|
-
- **Natural Language Queries:** The plugin can interpret and respond to user questions and commands.
|
|
14
|
-
- **Contextual Prompts:** It can understand and provide relevant information based on the context of the conversation.
|
|
15
|
-
- **Data Extraction:** The plugin can identify and extract key pieces of information from user inputs.
|
|
16
|
-
|
|
17
|
-
### Contextual Enhancements
|
|
18
|
-
|
|
19
|
-
One of the standout features of this plugin is its ability to add extra context to chats. This includes:
|
|
20
|
-
|
|
21
|
-
- **Contextual Responses:** The plugin can generate responses that are contextually relevant to the ongoing conversation.
|
|
22
|
-
- **Information Augmentation:** It can provide additional information that enhances the user's understanding of the topic being discussed.
|
|
23
|
-
- **Dynamic Context Updates:** The plugin can dynamically update the context as the conversation progresses, ensuring that responses remain relevant.
|
|
24
|
-
|
|
25
|
-
### Embedding Generation
|
|
26
|
-
|
|
27
|
-
The plugin supports the generation of various types of embeddings, which are essential for tasks such as semantic search, recommendation systems, and more. The types of embeddings it can generate include:
|
|
28
|
-
|
|
29
|
-
- **Minimal Embeddings:** These are lightweight embeddings that capture the essential semantics of the user input.
|
|
30
|
-
- **Contextual Embeddings:** These embeddings take into account the context of the conversation, providing a richer representation of the input.
|
|
31
|
-
|
|
32
|
-
## Environment Variables
|
|
33
|
-
|
|
34
|
-
To ensure the plugin functions correctly, certain environment variables need to be set. These variables are used to configure the plugin and provide necessary credentials or settings. The required environment variables include:
|
|
35
|
-
|
|
36
|
-
- **API_KEY:** This variable should be set to the API key provided by the service the plugin interacts with. It is essential for authenticating requests.
|
|
37
|
-
- **ENVIRONMENT:** This variable specifies the environment in which the plugin is running (e.g., 'development', 'production') and can affect how the plugin behaves.
|
|
38
|
-
|
|
39
|
-
## Usage
|
|
40
|
-
|
|
41
|
-
The Chat Enhancement Plugin can be integrated into various applications to improve user interactions. It is particularly useful for:
|
|
42
|
-
|
|
43
|
-
- **Customer Support Systems:** Enhancing automated responses and providing relevant information to customer queries.
|
|
44
|
-
- **Virtual Assistants:** Improving the contextual understanding and response generation of virtual assistants.
|
|
45
|
-
- **Content Recommendation:** Generating embeddings that can be used to recommend relevant content based on user inputs.
|
|
46
|
-
|
|
47
|
-
By leveraging this plugin, developers can create more intelligent and responsive chat systems that provide a better user experience.
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
This executive summary provides a high-level overview of the Chat Enhancement Plugin, focusing on its key features, required environment variables, and potential use cases. For detailed implementation and integration instructions, please refer to the full documentation.
|
package/autodoc/plugins/vim.mdx
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# Vim Plugin Executive Summary
|
|
2
|
-
|
|
3
|
-
## Overview
|
|
4
|
-
|
|
5
|
-
The Vim Plugin is designed to enhance the functionality of chat applications by detecting and resolving Vim swap files. It provides additional context to chats by identifying which files are currently open in Vim and retrieving their contents. This plugin is particularly useful for developers who frequently use Vim as their text editor and need to keep track of their open files within a collaborative environment.
|
|
6
|
-
|
|
7
|
-
## Key Features
|
|
8
|
-
|
|
9
|
-
### Input Detection and Resolution
|
|
10
|
-
|
|
11
|
-
- **Vim Swap Files**: The plugin scans the file system for Vim swap files (`*.swp`). These files are temporary files created by Vim to store changes made to a file that is currently being edited.
|
|
12
|
-
- **Source Path Resolution**: For each detected swap file, the plugin attempts to resolve the original source file path. It checks both the standard file path and the hidden dot file path to ensure accurate resolution.
|
|
13
|
-
|
|
14
|
-
### Context Addition to Chats
|
|
15
|
-
|
|
16
|
-
- **File Status**: The plugin provides detailed information about the status of each file, including whether the file exists, if it is a directory, or if it is too large to be processed.
|
|
17
|
-
- **File Contents**: For existing files, the plugin reads and returns the file contents, adding valuable context to chats about what files are currently being edited in Vim.
|
|
18
|
-
|
|
19
|
-
### Embeddings
|
|
20
|
-
|
|
21
|
-
- **Empty Embeddings**: Currently, the plugin's `embed` function returns an empty array. This indicates that the plugin does not generate any specific embeddings for the detected files at this time.
|
|
22
|
-
|
|
23
|
-
## Environment Variables
|
|
24
|
-
|
|
25
|
-
The following environment variables are required for the plugin to function correctly:
|
|
26
|
-
|
|
27
|
-
- **None**: The current implementation of the Vim Plugin does not require any environment variables to be set. All necessary configurations and paths are handled internally within the plugin.
|
|
28
|
-
|
|
29
|
-
## Usage
|
|
30
|
-
|
|
31
|
-
The Vim Plugin can be integrated into chat applications to provide real-time updates on files being edited in Vim. This can be particularly useful in collaborative development environments where team members need to stay informed about each other's work. By detecting Vim swap files and resolving their source paths, the plugin ensures that users have access to the most up-to-date information about their open files.
|
|
32
|
-
|
|
33
|
-
### Example Use Cases
|
|
34
|
-
|
|
35
|
-
- **Collaborative Coding**: Team members can see which files are currently being edited in Vim, helping to avoid conflicts and improve coordination.
|
|
36
|
-
- **Code Reviews**: Reviewers can access the latest changes made to files directly from the chat, streamlining the review process.
|
|
37
|
-
- **Debugging Sessions**: Developers can quickly identify which files are being modified during debugging, making it easier to track changes and resolve issues.
|
|
38
|
-
|
|
39
|
-
In summary, the Vim Plugin enhances chat applications by providing real-time insights into files being edited in Vim, adding valuable context to collaborative development efforts.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to add new internal tools (functions) to its existing set of tools. It also enables the AI to call multiple tools in parallel by adding a special function (`multi_tool_use.parallel`) that can execute several tools at the same time and return their results together.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to receive a name and user input, then use a service to process or respond to that input.
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
This function set allows an AI agent to manage tasks in Asana. It can:
|
|
2
|
-
|
|
3
|
-
1. **Create tasks** in a project.
|
|
4
|
-
2. **Update existing tasks** with new information.
|
|
5
|
-
3. **Search for tasks** using keywords.
|
|
6
|
-
4. **List all projects** in Asana.
|
|
7
|
-
5. **Find specific tasks** by their ID.
|
|
8
|
-
6. **Retrieve tasks assigned to the user** that are not completed.
|
|
9
|
-
7. **Get subtasks** for a specific task.
|
|
10
|
-
8. **Create subtasks** under a parent task.
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
This function enables an AI agent to interact with Asana, a project management tool. Specifically, it allows the AI to:
|
|
2
|
-
|
|
3
|
-
1. **Create Tasks**: Add new tasks to a project.
|
|
4
|
-
2. **Update Tasks**: Modify existing tasks.
|
|
5
|
-
3. **Search Tasks**: Find tasks based on a search term.
|
|
6
|
-
4. **Find Specific Tasks**: Retrieve details of a specific task by its ID.
|
|
7
|
-
5. **Get Subtasks**: List subtasks of a given task.
|
|
8
|
-
6. **Create Subtasks**: Add subtasks to an existing task.
|
|
9
|
-
7. **List My Tasks**: Retrieve tasks assigned to the AI's user.
|
|
10
|
-
8. **List Projects**: Get a list of all projects in the workspace.
|
|
11
|
-
|
|
12
|
-
This makes the AI capable of managing tasks and projects within Asana.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to ask a human a question. It displays the question in a formatted way and then waits for the human to respond.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to use a specific plugin to process user input. It takes the name of the plugin and the user's input, then calls the plugin to get a result.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function helps an AI agent find files related to a user's goal by searching for keywords. It uses a plugin to perform the search and returns the results.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to run commands in the system's command line and get the results.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function helps an AI agent find files on a computer that contain a specific search term in their names. It converts the search term to lowercase, creates a search command, and runs it to locate matching files.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to complete its task and give the final answer back to the user.
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to:
|
|
2
|
-
|
|
3
|
-
1. **Fetch a pull request** from GitHub using a URL.
|
|
4
|
-
2. **Get build statuses** for a pull request using a URL.
|
|
5
|
-
3. **Retrieve run logs** for a specific GitHub Actions run by providing the run ID, repository owner, and repository name.
|
|
6
|
-
4. **Fetch build failure logs** for a pull request using a URL.
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
This function enables an AI agent to:
|
|
2
|
-
|
|
3
|
-
1. **Fetch Pull Request Details**: Retrieve information about a specific pull request from a GitHub repository.
|
|
4
|
-
2. **Get Build Statuses**: Obtain the build statuses (e.g., success, failure) for the pull request.
|
|
5
|
-
3. **Retrieve Run Logs**: Fetch the logs of a specific GitHub Actions run.
|
|
6
|
-
4. **Get Failure Logs**: Identify and retrieve logs related to failed build checks for a pull request, highlighting errors and failures.
|
|
7
|
-
|
|
8
|
-
In short, it helps the AI agent monitor and diagnose issues in pull request builds on GitHub.
|
package/autodoc/tools/index.mdx
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to perform a variety of tasks such as:
|
|
2
|
-
|
|
3
|
-
- Adding internal tools
|
|
4
|
-
- Calling plugins
|
|
5
|
-
- Searching text and embeddings
|
|
6
|
-
- Executing commands
|
|
7
|
-
- Providing final answers
|
|
8
|
-
- Indexing data
|
|
9
|
-
- Linting, modifying, patching, reading, scanning, and writing files
|
|
10
|
-
- Using vision tools
|
|
11
|
-
- Integrating with Asana and GitHub
|
|
12
|
-
- Searching files
|
|
13
|
-
|
|
14
|
-
In short, it equips the AI with a wide range of capabilities for handling files, executing tasks, and integrating with other tools and platforms.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to check a file for coding errors or style issues (linting) based on the file's extension. It does this by:
|
|
2
|
-
|
|
3
|
-
1. Getting configuration settings.
|
|
4
|
-
2. Determining the file's extension.
|
|
5
|
-
3. Finding the appropriate linting command for that extension.
|
|
6
|
-
4. Running the linting command on the file.
|
|
7
|
-
5. Returning and logging the results of the linting process.
|
package/autodoc/tools/list.mdx
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
This function provides an AI agent with a variety of tools to perform different tasks. Here's a simple breakdown of what each tool enables the AI to do:
|
|
2
|
-
|
|
3
|
-
1. **embeddingSearch**: Find files related to a user's goal using fuzzy search.
|
|
4
|
-
2. **execCommand**: Run commands in the system's terminal.
|
|
5
|
-
3. **finalAnswer**: Send the final response to the user.
|
|
6
|
-
4. **callPlugin**: Use additional plugins for extra context or information.
|
|
7
|
-
5. **visionTool**: Analyze images and answer questions about them.
|
|
8
|
-
6. **readFile**: Read the contents of a file.
|
|
9
|
-
7. **readBlocks**: Read specific parts of a file.
|
|
10
|
-
8. **patchFile**: Modify or create files using patches.
|
|
11
|
-
9. **lintFile**: Check a file for errors based on its type.
|
|
12
|
-
10. **textSearch**: Search for exact text matches in files.
|
|
13
|
-
11. **fileSearch**: Search for files by their paths.
|
|
14
|
-
12. **askHuman**: Ask a human a question and get a response.
|
|
15
|
-
|
|
16
|
-
Additionally, it includes tools for working with GitHub and Asana.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to:
|
|
2
|
-
|
|
3
|
-
1. **Read and Modify Files**: It can read the content of a file and update specific parts of it based on provided instructions (`fileBlocks`).
|
|
4
|
-
2. **Track Changes**: It keeps track of the original content and the new content after modifications.
|
|
5
|
-
3. **Generate Diffs**: It creates a diff (a summary of changes) between the original and modified content.
|
|
6
|
-
4. **Linting**: It checks the modified file for any coding style or syntax issues.
|
|
7
|
-
5. **Provide Feedback**: It returns a summary of changes and linting results, asking for confirmation if the changes are correct.
|
package/autodoc/tools/patch.mdx
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
This function enables an AI agent to apply a patch to a file, ensuring the patch is correctly formatted and valid. It does the following:
|
|
2
|
-
|
|
3
|
-
1. **Parse the Patch**: Breaks down the patch into manageable parts (hunks).
|
|
4
|
-
2. **Validate and Fix Hunks**: Ensures each part of the patch is valid and fixes any issues.
|
|
5
|
-
3. **Apply the Patch**: Applies the validated and fixed patch to the original file content.
|
|
6
|
-
4. **Handle Errors**: Saves any errors encountered during the process for debugging.
|
|
7
|
-
5. **Lint the File**: Checks the updated file for any coding standard issues.
|
|
8
|
-
|
|
9
|
-
In short, it helps the AI agent to safely and correctly update files using patches.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to read specific parts (blocks) of a file. It takes a file path and a list of block numbers, reads the file, and returns only the blocks that match the given numbers.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to read a file from the filesystem, break its content into smaller chunks (blocks) of a specified size, and return these chunks as an array. If the file does not exist, it suggests possible related files. This helps the AI handle large files efficiently and manage cases where the file might be missing.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to read and return a specific range of lines from a text file, including a few lines before and after the specified range for context.
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to search for a text term in two ways:
|
|
2
|
-
|
|
3
|
-
1. **Primary Method**: It uses a command-line tool (`ag`) to search for the term.
|
|
4
|
-
2. **Fallback Method**: If the tool isn't available, it searches through pre-configured text embeddings to find matches.
|
|
5
|
-
|
|
6
|
-
In simple terms, it helps the AI find information either using a fast tool or a backup method if the tool fails.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to handle parts of a file by breaking it into blocks. Each block has a number, optional starting line, and some content. This helps the AI manage and process large files in smaller, more manageable pieces.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to analyze an image and answer a question about it.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
This function allows an AI agent to save text to a file on the computer. If successful, it confirms the file was written; if there's an error, it returns the error message.
|
package/test-comprehensive.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
interface User {
|
|
2
|
-
id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
email: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
class UserService {
|
|
8
|
-
private users: User[] = [];
|
|
9
|
-
|
|
10
|
-
addUser(user: User): void {
|
|
11
|
-
this.users.push(user);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
findUser(id: number): User | undefined {
|
|
15
|
-
return this.users.find(u => u.id === id);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const service = new UserService();
|
|
20
|
-
service.addUser({
|
|
21
|
-
id: 1,
|
|
22
|
-
name: "John",
|
|
23
|
-
email: "john@example.com"
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
// Test completion on service methods
|
|
27
|
-
const result = service.fi; // Should complete to findUser
|
|
28
|
-
|
|
29
|
-
// Test completion on User interface properties
|
|
30
|
-
const user: User = { id: 1, name: "Test", email: "test@test.com" };
|
|
31
|
-
console.log(user.na); // Should complete to name
|