File size: 4,689 Bytes
6202252
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
{
	"name": "chat-sample",
	"publisher": "vscode-samples",
	"displayName": "Copilot Chat Sample",
	"description": "Sample chat extension, a trusty cat tutor that will can teach you computer science topics.",
	"repository": {
		"type": "git",
		"url": "https://github.com/Microsoft/vscode-extension-samples"
	},
	"version": "0.1.0",
	"engines": {
		"vscode": "^1.100.0"
	},
	"categories": [
		"AI",
		"Chat"
	],
	"activationEvents": [],
	"contributes": {
		"chatParticipants": [
			{
				"id": "chat-sample.cat",
				"fullName": "Cat",
				"name": "cat",
				"description": "Meow! What can I teach you?",
				"isSticky": true,
				"commands": [
					{
						"name": "randomTeach",
						"description": "Pick at random a computer science concept then explain it in purfect way of a cat"
					},
					{
						"name": "play",
						"description": "Do whatever you want, you are a cat after all",
						"disambiguation": [
							{
								"category": "cat_play",
								"description": "The user just wants to relax and see the cat play.",
								"examples": [
									"Enough learning, let the cat play with a ball of yarn",
									"Can you show me a cat playing with a laser pointer?"
								]
							}
						]
					}
				],
				"disambiguation": [
					{
						"category": "cat",
						"description": "The user wants to learn a specific computer science topic in an informal way.",
						"examples": [
							"Teach me C++ pointers using metaphors",
							"Explain to me what is a linked list in a simple way",
							"Can you explain to me what is a function in programming?"
						]
					}
				]
			},
			{
				"id": "chat-tools-sample.tools",
				"fullName": "Tool User",
				"name": "tools",
				"description": "I use tools",
				"isSticky": true,
				"commands": [
					{
						"name": "list",
						"description": "List all available tools"
					},
					{
						"name": "all",
						"description": "Use all registered tools. By default, only this extension's tools are used."
					}
				]
			},
			{
				"id": "chat-tools-sample.catTools",
				"fullName": "Cat (Tools)",
				"name": "catTools",
				"description": "I use tools, implemented using @vscode/chat-extension-utils, and am also a cat",
				"isSticky": true,
				"commands": [
					{
						"name": "all",
						"description": "Use all registered tools. By default, only this extension's tools are used."
					}
				]
			}
		],
		"languageModelTools": [
			{
				"name": "chat-tools-sample_tabCount",
				"tags": [
					"editors",
					"chat-tools-sample"
				],
				"toolReferenceName": "countTabs",
				"displayName": "Tab Count",
				"modelDescription": "The number of active tabs in a tab group",
				"canBeReferencedInPrompt": true,
				"icon": "$(files)",
				"inputSchema": {
					"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
						}
					}
				}
			},
			{
				"name": "chat-tools-sample_findFiles",
				"tags": [
					"files",
					"search",
					"chat-tools-sample"
				],
				"toolReferenceName": "findFiles",
				"displayName": "Find Files",
				"modelDescription": "Search for files in the current workspace",
				"canBeReferencedInPrompt": true,
				"inputSchema": {
					"type": "object",
					"properties": {
						"pattern": {
							"type": "string",
							"description": "Search for files that match this glob pattern"
						}
					},
					"required": [
						"pattern"
					]
				}
			},
			{
				"name": "chat-tools-sample_runInTerminal",
				"tags": [
					"terminal",
					"chat-tools-sample"
				],
				"displayName": "Run in Terminal",
				"modelDescription": "Run a command in a terminal and return the output",
				"canBeReferencedInPrompt": false,
				"inputSchema": {
					"type": "object",
					"properties": {
						"command": {
							"type": "string",
							"description": "The command to run"
						}
					},
					"required": [
						"command"
					]
				}
			}
		],
		"commands": [
			{
				"command": "cat.namesInEditor",
				"title": "Use Cat Names in Editor"
			}
		]
	},
	"main": "./out/extension.js",
	"scripts": {
		"vscode:prepublish": "npm run compile",
		"compile": "tsc -p ./",
		"lint": "eslint",
		"watch": "tsc -watch -p ./"
	},
	"dependencies": {
		"@vscode/chat-extension-utils": "^0.0.0-alpha.1",
		"@vscode/prompt-tsx": "^0.3.0-alpha.12"
	},
	"devDependencies": {
		"@eslint/js": "^9.13.0",
		"@stylistic/eslint-plugin": "^2.9.0",
		"@types/node": "^22",
		"@types/vscode": "^1.100.0",
		"eslint": "^9.13.0",
		"typescript": "^5.9.2",
		"typescript-eslint": "^8.39.0"
	}
}