Files
vscode-extension-samples/chat-tools-sample/package.json

122 lines
4.0 KiB
JSON
Raw Normal View History

2023-11-13 16:30:27 +01:00
{
2024-10-06 20:21:04 -07:00
"name": "chat-tools-sample",
2023-11-13 16:30:27 +01:00
"publisher": "vscode-samples",
"displayName": "Copilot Chat Tools Sample",
"description": "Sample chat extension that registers and uses LanguageModelTools",
2023-11-13 16:30:27 +01:00
"repository": {
"type": "git",
"url": "https://github.com/Microsoft/vscode-extension-samples"
},
"version": "0.1.0",
"engines": {
2024-08-21 11:13:52 -07:00
"vscode": "^1.93.0"
2023-11-13 16:30:27 +01:00
},
"categories": [
"AI",
"Chat"
2023-11-13 16:30:27 +01:00
],
"activationEvents": [],
2023-11-13 16:30:27 +01:00
"enabledApiProposals": [
2024-06-06 15:59:02 -07:00
"lmTools"
2023-11-13 16:30:27 +01:00
],
2024-02-23 15:56:39 +01:00
"contributes": {
"chatParticipants": [
{
"id": "chat-tools-sample.tools",
"fullName": "Tool User",
"name": "tools",
"description": "I use tools",
2024-08-21 11:13:52 -07:00
"isSticky": true,
"supportsToolReferences": true
}
2024-08-05 15:34:56 -07:00
],
"languageModelTools": [
{
2024-10-06 20:21:04 -07:00
"id": "chat-tools-sample_tabCount",
"tags": ["editors", "chat-tools-sample"],
2024-08-13 15:24:22 -07:00
"name": "tabCount",
"displayName": "Tab Count",
2024-08-26 21:43:30 -07:00
"modelDescription": "The number of active tabs in a tab group",
2024-08-13 15:24:22 -07:00
"icon": "$(files)",
2024-08-26 21:43:30 -07:00
"canBeInvokedManually": true,
"parametersSchema": {
"type": "object",
"properties": {
"tabGroup": {
"type": "number",
"description": "The index of the tab group to check. This is optional- if not specified, the active tab group will be checked.",
"default": 0
}
}
2024-09-20 17:33:59 -07:00
},
2024-10-06 20:21:04 -07:00
"supportedContentTypes": [
"text/plain"
]
},
{
"id": "chat-tools-sample_findFiles",
"tags": [
"files",
"search",
"chat-tools-sample"
],
"displayName": "Find Files",
"modelDescription": "Search for files in the current workspace",
"parametersSchema": {
"type": "object",
"properties": {
"pattern": {
"type": "string",
"description": "Search for files that match this glob pattern"
}
},
"required": ["pattern"]
},
"supportedContentTypes": [
"text/plain"
]
},
{
"id": "chat-tools-sample_runInTerminal",
"tags": [
"terminal",
"chat-tools-sample"
],
"displayName": "Run in Terminal",
"modelDescription": "Run a command in a terminal and return the output",
"parametersSchema": {
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The command to run"
}
},
"required": [
"command"
]
},
2024-09-20 17:33:59 -07:00
"supportedContentTypes": [
"text/plain"
2024-09-23 20:28:08 -07:00
],
"requiresConfirmation": true
2024-08-05 15:34:56 -07:00
}
2024-02-23 15:56:39 +01:00
]
},
2023-11-13 16:30:27 +01:00
"main": "./out/extension.js",
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
2024-09-11 19:57:24 -07:00
"watch": "tsc -watch -p ./"
2023-11-13 16:30:27 +01:00
},
"devDependencies": {
"@types/node": "^20.5.9",
2024-10-06 20:21:04 -07:00
"@types/vscode": "^1.94.0",
2024-08-26 16:36:17 -07:00
"@vscode/prompt-tsx": "^0.2.7-alpha",
2023-11-13 16:30:27 +01:00
"eslint": "^7.22.0",
"run-script-os": "^1.1.6",
2023-11-13 16:30:27 +01:00
"tslint": "^6.1.3",
"typescript": "^4.0.3"
}
}