@sylix/coworker 1.2.6 → 1.3.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/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +181 -106
- package/dist/cli/index.js.map +1 -1
- package/dist/commands/slash/advanced.d.ts +3 -0
- package/dist/commands/slash/advanced.d.ts.map +1 -0
- package/dist/commands/slash/advanced.js +225 -0
- package/dist/commands/slash/advanced.js.map +1 -0
- package/dist/commands/slash/config.d.ts +3 -0
- package/dist/commands/slash/config.d.ts.map +1 -0
- package/dist/commands/slash/config.js +161 -0
- package/dist/commands/slash/config.js.map +1 -0
- package/dist/commands/slash/context.d.ts +3 -0
- package/dist/commands/slash/context.d.ts.map +1 -0
- package/dist/commands/slash/context.js +127 -0
- package/dist/commands/slash/context.js.map +1 -0
- package/dist/commands/slash/core.d.ts +3 -0
- package/dist/commands/slash/core.d.ts.map +1 -0
- package/dist/commands/slash/core.js +112 -0
- package/dist/commands/slash/core.js.map +1 -0
- package/dist/commands/slash/developer.d.ts +3 -0
- package/dist/commands/slash/developer.d.ts.map +1 -0
- package/dist/commands/slash/developer.js +174 -0
- package/dist/commands/slash/developer.js.map +1 -0
- package/dist/commands/slash/files.d.ts +3 -0
- package/dist/commands/slash/files.d.ts.map +1 -0
- package/dist/commands/slash/files.js +216 -0
- package/dist/commands/slash/files.js.map +1 -0
- package/dist/commands/slash/registry.d.ts +36 -0
- package/dist/commands/slash/registry.d.ts.map +1 -0
- package/dist/commands/slash/registry.js +69 -0
- package/dist/commands/slash/registry.js.map +1 -0
- package/dist/commands/slash/session.d.ts +3 -0
- package/dist/commands/slash/session.d.ts.map +1 -0
- package/dist/commands/slash/session.js +144 -0
- package/dist/commands/slash/session.js.map +1 -0
- package/dist/core/CoWorkerAgent.d.ts +8 -2
- package/dist/core/CoWorkerAgent.d.ts.map +1 -1
- package/dist/core/CoWorkerAgent.js +179 -36
- package/dist/core/CoWorkerAgent.js.map +1 -1
- package/dist/review/CodeReviewEngine.d.ts +78 -0
- package/dist/review/CodeReviewEngine.d.ts.map +1 -0
- package/dist/review/CodeReviewEngine.js +449 -0
- package/dist/review/CodeReviewEngine.js.map +1 -0
- package/dist/session/SessionManager.js +10 -5
- package/dist/session/SessionManager.js.map +1 -1
- package/dist/skills/HookAndSkillManager.d.ts +29 -5
- package/dist/skills/HookAndSkillManager.d.ts.map +1 -1
- package/dist/skills/HookAndSkillManager.js +167 -12
- package/dist/skills/HookAndSkillManager.js.map +1 -1
- package/dist/todos/TodoManager.d.ts +19 -0
- package/dist/todos/TodoManager.d.ts.map +1 -0
- package/dist/todos/TodoManager.js +102 -0
- package/dist/todos/TodoManager.js.map +1 -0
- package/dist/tools/NativeTools.d.ts +98 -0
- package/dist/tools/NativeTools.d.ts.map +1 -1
- package/dist/tools/NativeTools.js +571 -0
- package/dist/tools/NativeTools.js.map +1 -1
- package/dist/tools/Schemas.d.ts +1199 -102
- package/dist/tools/Schemas.d.ts.map +1 -1
- package/dist/tools/Schemas.js +358 -40
- package/dist/tools/Schemas.js.map +1 -1
- package/dist/utils/conversations.d.ts +14 -0
- package/dist/utils/conversations.d.ts.map +1 -0
- package/dist/utils/conversations.js +100 -0
- package/dist/utils/conversations.js.map +1 -0
- package/dist/utils/inputbar.d.ts +87 -0
- package/dist/utils/inputbar.d.ts.map +1 -0
- package/dist/utils/inputbar.js +263 -0
- package/dist/utils/inputbar.js.map +1 -0
- package/dist/utils/output.d.ts +73 -48
- package/dist/utils/output.d.ts.map +1 -1
- package/dist/utils/output.js +349 -158
- package/dist/utils/output.js.map +1 -1
- package/dist/utils/palette.d.ts +25 -0
- package/dist/utils/palette.d.ts.map +1 -0
- package/dist/utils/palette.js +92 -0
- package/dist/utils/palette.js.map +1 -0
- package/dist/utils/welcome.d.ts +2 -0
- package/dist/utils/welcome.d.ts.map +1 -0
- package/dist/utils/welcome.js +130 -0
- package/dist/utils/welcome.js.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schemas.d.ts","sourceRoot":"","sources":["../../src/tools/Schemas.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"Schemas.d.ts","sourceRoot":"","sources":["../../src/tools/Schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0iB/B,CAAC"}
|
package/dist/tools/Schemas.js
CHANGED
|
@@ -1,32 +1,99 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CoWorkerToolSchemas = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* CoWorker Tool Schemas — OpenAI Function Calling format.
|
|
6
|
+
* Complete parity with Claude Code's tool suite + diagnostics.
|
|
7
|
+
* These are sent to the LLM so it knows what tools it can call.
|
|
8
|
+
*/
|
|
4
9
|
exports.CoWorkerToolSchemas = [
|
|
10
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
11
|
+
// FILESYSTEM — Read, Write, Edit, Multi-Edit, LS, ListDir, Glob, Grep
|
|
12
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
5
13
|
{
|
|
6
14
|
type: 'function',
|
|
7
15
|
function: {
|
|
8
|
-
name: '
|
|
9
|
-
description: '
|
|
16
|
+
name: 'executeRead',
|
|
17
|
+
description: 'Reads the complete text content of a file from the filesystem. Returns content with line numbers for precise referencing.',
|
|
10
18
|
parameters: {
|
|
11
19
|
type: 'object',
|
|
12
20
|
properties: {
|
|
13
|
-
|
|
21
|
+
filePath: { type: 'string', description: 'Absolute or relative path to the file to read.' }
|
|
14
22
|
},
|
|
15
|
-
required: ['
|
|
23
|
+
required: ['filePath']
|
|
16
24
|
}
|
|
17
25
|
}
|
|
18
26
|
},
|
|
19
27
|
{
|
|
20
28
|
type: 'function',
|
|
21
29
|
function: {
|
|
22
|
-
name: '
|
|
23
|
-
description: '
|
|
30
|
+
name: 'executeWrite',
|
|
31
|
+
description: 'Creates or securely overwrites a file at the specified path. Parent directories are created automatically.',
|
|
24
32
|
parameters: {
|
|
25
33
|
type: 'object',
|
|
26
34
|
properties: {
|
|
27
|
-
filePath: { type: 'string', description: 'Absolute or relative path to the file
|
|
35
|
+
filePath: { type: 'string', description: 'Absolute or relative path to the file.' },
|
|
36
|
+
content: { type: 'string', description: 'The complete content to write into the file.' }
|
|
28
37
|
},
|
|
29
|
-
required: ['filePath']
|
|
38
|
+
required: ['filePath', 'content']
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
type: 'function',
|
|
44
|
+
function: {
|
|
45
|
+
name: 'executeEdit',
|
|
46
|
+
description: 'Performs a targeted string replacement within an existing file without rewriting the entire file. The oldString must match exactly (including whitespace and indentation).',
|
|
47
|
+
parameters: {
|
|
48
|
+
type: 'object',
|
|
49
|
+
properties: {
|
|
50
|
+
filePath: { type: 'string', description: 'Absolute or relative path to the file.' },
|
|
51
|
+
oldString: { type: 'string', description: 'The exact text to find and replace. Must match character-for-character.' },
|
|
52
|
+
newString: { type: 'string', description: 'The replacement text.' },
|
|
53
|
+
replaceAll: { type: 'boolean', description: 'If true, replace ALL occurrences. Default: false (first only).' }
|
|
54
|
+
},
|
|
55
|
+
required: ['filePath', 'oldString', 'newString']
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: 'function',
|
|
61
|
+
function: {
|
|
62
|
+
name: 'executeMultiEdit',
|
|
63
|
+
description: 'Performs multiple targeted string replacements on a single file in one atomic operation.',
|
|
64
|
+
parameters: {
|
|
65
|
+
type: 'object',
|
|
66
|
+
properties: {
|
|
67
|
+
filePath: { type: 'string', description: 'Absolute or relative path to the file to edit.' },
|
|
68
|
+
edits: {
|
|
69
|
+
type: 'array',
|
|
70
|
+
items: {
|
|
71
|
+
type: 'object',
|
|
72
|
+
properties: {
|
|
73
|
+
oldString: { type: 'string', description: 'The exact text to replace.' },
|
|
74
|
+
newString: { type: 'string', description: 'The replacement text.' },
|
|
75
|
+
replaceAll: { type: 'boolean', description: 'Replace all occurrences (default: false).' }
|
|
76
|
+
},
|
|
77
|
+
required: ['oldString', 'newString']
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
required: ['filePath', 'edits']
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
type: 'function',
|
|
87
|
+
function: {
|
|
88
|
+
name: 'executeLS',
|
|
89
|
+
description: 'Lists files and directories in the specified path, optionally recursively.',
|
|
90
|
+
parameters: {
|
|
91
|
+
type: 'object',
|
|
92
|
+
properties: {
|
|
93
|
+
path: { type: 'string', description: 'Path to list. Defaults to current working directory.' },
|
|
94
|
+
recursive: { type: 'boolean', description: 'If true, list directories recursively. Default: false.' }
|
|
95
|
+
},
|
|
96
|
+
required: []
|
|
30
97
|
}
|
|
31
98
|
}
|
|
32
99
|
},
|
|
@@ -34,7 +101,7 @@ exports.CoWorkerToolSchemas = [
|
|
|
34
101
|
type: 'function',
|
|
35
102
|
function: {
|
|
36
103
|
name: 'executeListDir',
|
|
37
|
-
description: 'Lists all files and subdirectories in a directory with their sizes.
|
|
104
|
+
description: 'Lists all files and subdirectories in a directory with their sizes.',
|
|
38
105
|
parameters: {
|
|
39
106
|
type: 'object',
|
|
40
107
|
properties: {
|
|
@@ -44,11 +111,75 @@ exports.CoWorkerToolSchemas = [
|
|
|
44
111
|
}
|
|
45
112
|
}
|
|
46
113
|
},
|
|
114
|
+
{
|
|
115
|
+
type: 'function',
|
|
116
|
+
function: {
|
|
117
|
+
name: 'executeGlob',
|
|
118
|
+
description: 'Fast recursive file search matching a wildcard pattern. Automatically ignores node_modules, .git, dist, build, and out directories.',
|
|
119
|
+
parameters: {
|
|
120
|
+
type: 'object',
|
|
121
|
+
properties: {
|
|
122
|
+
pattern: { type: 'string', description: 'Wildcard pattern like *.ts, *.py, or src/**/*.js' },
|
|
123
|
+
dir: { type: 'string', description: 'Root directory to search within. Defaults to cwd.' }
|
|
124
|
+
},
|
|
125
|
+
required: ['pattern']
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
type: 'function',
|
|
131
|
+
function: {
|
|
132
|
+
name: 'executeGrep',
|
|
133
|
+
description: 'Searches for a regex pattern inside a list of file paths. Returns matching lines with file:line format.',
|
|
134
|
+
parameters: {
|
|
135
|
+
type: 'object',
|
|
136
|
+
properties: {
|
|
137
|
+
regexQuery: { type: 'string', description: 'The regular expression string to match.' },
|
|
138
|
+
filesToSearch: { type: 'array', items: { type: 'string' }, description: 'Array of file paths to scan.' }
|
|
139
|
+
},
|
|
140
|
+
required: ['regexQuery', 'filesToSearch']
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
145
|
+
// DIAGNOSTICS — Inline error detection (Claude Code PostToolUse parity)
|
|
146
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
147
|
+
{
|
|
148
|
+
type: 'function',
|
|
149
|
+
function: {
|
|
150
|
+
name: 'diagnostics',
|
|
151
|
+
description: 'Runs the appropriate linter or type-checker on a specific file and returns any errors. Supports: TypeScript (tsc), JavaScript (node --check), Python (py_compile), JSON (parse), CSS (stylelint). NOTE: Diagnostics also run AUTOMATICALLY after every Write/Edit/MultiEdit — but you can use this tool to manually re-check a file at any time.',
|
|
152
|
+
parameters: {
|
|
153
|
+
type: 'object',
|
|
154
|
+
properties: {
|
|
155
|
+
filePath: { type: 'string', description: 'Path to the file to validate.' }
|
|
156
|
+
},
|
|
157
|
+
required: ['filePath']
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
162
|
+
// SHELL & PROCESS — Bash, BashOutput, KillShell
|
|
163
|
+
{
|
|
164
|
+
type: 'function',
|
|
165
|
+
function: {
|
|
166
|
+
name: 'codeReview',
|
|
167
|
+
description: 'Runs a full code review on the current git branch, analyzing all changed files for bugs, security vulnerabilities, logic errors, and style violations. Reads REVIEW.md and COWORKER.md for project-specific review rules. Returns structured findings with severity levels: 🔴 Normal (bugs), 🟡 Nit (minor), 🟣 Pre-existing.',
|
|
168
|
+
parameters: {
|
|
169
|
+
type: 'object',
|
|
170
|
+
properties: {
|
|
171
|
+
baseBranch: { type: 'string', description: 'The base branch to diff against (default: main or master).' }
|
|
172
|
+
},
|
|
173
|
+
required: []
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
47
178
|
{
|
|
48
179
|
type: 'function',
|
|
49
180
|
function: {
|
|
50
181
|
name: 'executeBash',
|
|
51
|
-
description: 'Executes a terminal/shell command and returns stdout
|
|
182
|
+
description: 'Executes a terminal/shell command synchronously and returns stdout + stderr. Use for git, npm, running scripts, compiling, etc. 60 second timeout.',
|
|
52
183
|
parameters: {
|
|
53
184
|
type: 'object',
|
|
54
185
|
properties: {
|
|
@@ -62,53 +193,114 @@ exports.CoWorkerToolSchemas = [
|
|
|
62
193
|
{
|
|
63
194
|
type: 'function',
|
|
64
195
|
function: {
|
|
65
|
-
name: '
|
|
66
|
-
description: '
|
|
196
|
+
name: 'bashOutput',
|
|
197
|
+
description: 'Reads output from a still-running background bash process by its process ID.',
|
|
67
198
|
parameters: {
|
|
68
199
|
type: 'object',
|
|
69
200
|
properties: {
|
|
70
|
-
|
|
71
|
-
content: { type: 'string', description: 'The complete content to write into the file.' }
|
|
201
|
+
pid: { type: 'number', description: 'The process ID of the background process.' }
|
|
72
202
|
},
|
|
73
|
-
required: ['
|
|
203
|
+
required: ['pid']
|
|
74
204
|
}
|
|
75
205
|
}
|
|
76
206
|
},
|
|
77
207
|
{
|
|
78
208
|
type: 'function',
|
|
79
209
|
function: {
|
|
80
|
-
name: '
|
|
81
|
-
description: '
|
|
210
|
+
name: 'killShell',
|
|
211
|
+
description: 'Forcefully kills a running background process by its PID.',
|
|
82
212
|
parameters: {
|
|
83
213
|
type: 'object',
|
|
84
214
|
properties: {
|
|
85
|
-
|
|
86
|
-
dir: { type: 'string', description: 'The directory to search within. Defaults to current working directory.' }
|
|
215
|
+
pid: { type: 'number', description: 'The process ID to kill.' }
|
|
87
216
|
},
|
|
88
|
-
required: ['
|
|
217
|
+
required: ['pid']
|
|
89
218
|
}
|
|
90
219
|
}
|
|
91
220
|
},
|
|
221
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
222
|
+
// GIT — GitStatus, GitDiff, GitCommit
|
|
223
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
92
224
|
{
|
|
93
225
|
type: 'function',
|
|
94
226
|
function: {
|
|
95
|
-
name: '
|
|
96
|
-
description: '
|
|
227
|
+
name: 'gitStatus',
|
|
228
|
+
description: 'Returns the current git status showing branch, staged, unstaged, and untracked files.',
|
|
97
229
|
parameters: {
|
|
98
230
|
type: 'object',
|
|
99
231
|
properties: {
|
|
100
|
-
|
|
101
|
-
filesToSearch: { type: 'array', items: { type: 'string' }, description: 'Array of file paths to scan.' }
|
|
232
|
+
cwd: { type: 'string', description: 'Working directory of the git repo. Defaults to cwd.' }
|
|
102
233
|
},
|
|
103
|
-
required: [
|
|
234
|
+
required: []
|
|
104
235
|
}
|
|
105
236
|
}
|
|
106
237
|
},
|
|
238
|
+
{
|
|
239
|
+
type: 'function',
|
|
240
|
+
function: {
|
|
241
|
+
name: 'gitDiff',
|
|
242
|
+
description: 'Returns the git diff for the working directory or a specific file.',
|
|
243
|
+
parameters: {
|
|
244
|
+
type: 'object',
|
|
245
|
+
properties: {
|
|
246
|
+
filePath: { type: 'string', description: 'Optional specific file to diff. If omitted, diffs entire working tree.' },
|
|
247
|
+
staged: { type: 'boolean', description: 'If true, shows staged changes (--cached). Default: false.' },
|
|
248
|
+
cwd: { type: 'string', description: 'Working directory. Defaults to cwd.' }
|
|
249
|
+
},
|
|
250
|
+
required: []
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
type: 'function',
|
|
256
|
+
function: {
|
|
257
|
+
name: 'gitCommit',
|
|
258
|
+
description: 'Stages specified files (or all changes) and creates a git commit with the given message.',
|
|
259
|
+
parameters: {
|
|
260
|
+
type: 'object',
|
|
261
|
+
properties: {
|
|
262
|
+
message: { type: 'string', description: 'The commit message.' },
|
|
263
|
+
files: { type: 'array', items: { type: 'string' }, description: 'Files to stage. If empty, stages all changes (git add -A).' },
|
|
264
|
+
cwd: { type: 'string', description: 'Working directory. Defaults to cwd.' }
|
|
265
|
+
},
|
|
266
|
+
required: ['message']
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
271
|
+
// MEMORY — MemoryRead, MemoryWrite (COWORKER.md persistence)
|
|
272
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
273
|
+
{
|
|
274
|
+
type: 'function',
|
|
275
|
+
function: {
|
|
276
|
+
name: 'memoryRead',
|
|
277
|
+
description: 'Reads the COWORKER.md memory file from the project root. Contains persistent notes, conventions, and learnings that survive across sessions.',
|
|
278
|
+
parameters: { type: 'object', properties: {} }
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
type: 'function',
|
|
283
|
+
function: {
|
|
284
|
+
name: 'memoryWrite',
|
|
285
|
+
description: 'Appends or overwrites content in the COWORKER.md memory file. Use to save project conventions, decisions, and learnings.',
|
|
286
|
+
parameters: {
|
|
287
|
+
type: 'object',
|
|
288
|
+
properties: {
|
|
289
|
+
content: { type: 'string', description: 'The content to write to COWORKER.md.' },
|
|
290
|
+
mode: { type: 'string', enum: ['append', 'overwrite'], description: 'Whether to append to or overwrite the file. Default: append.' }
|
|
291
|
+
},
|
|
292
|
+
required: ['content']
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
297
|
+
// WEB — Search, Fetch, OpenBrowser
|
|
298
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
107
299
|
{
|
|
108
300
|
type: 'function',
|
|
109
301
|
function: {
|
|
110
302
|
name: 'executeWebSearch',
|
|
111
|
-
description: 'Searches the internet for information
|
|
303
|
+
description: 'Searches the internet for information using DuckDuckGo. Returns top 5 results.',
|
|
112
304
|
parameters: {
|
|
113
305
|
type: 'object',
|
|
114
306
|
properties: {
|
|
@@ -122,7 +314,7 @@ exports.CoWorkerToolSchemas = [
|
|
|
122
314
|
type: 'function',
|
|
123
315
|
function: {
|
|
124
316
|
name: 'executeWebFetch',
|
|
125
|
-
description: 'Downloads and parses the text content of a specific web URL.',
|
|
317
|
+
description: 'Downloads and parses the text content of a specific web URL. HTML is stripped automatically.',
|
|
126
318
|
parameters: {
|
|
127
319
|
type: 'object',
|
|
128
320
|
properties: {
|
|
@@ -135,14 +327,51 @@ exports.CoWorkerToolSchemas = [
|
|
|
135
327
|
{
|
|
136
328
|
type: 'function',
|
|
137
329
|
function: {
|
|
138
|
-
name: '
|
|
139
|
-
description: '
|
|
330
|
+
name: 'executeOpenBrowser',
|
|
331
|
+
description: 'Opens a URL in the user\'s default system browser.',
|
|
140
332
|
parameters: {
|
|
141
333
|
type: 'object',
|
|
142
334
|
properties: {
|
|
143
|
-
|
|
335
|
+
url: { type: 'string', description: 'The fully qualified URL to open.' }
|
|
144
336
|
},
|
|
145
|
-
required: ['
|
|
337
|
+
required: ['url']
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
342
|
+
// TASK MANAGEMENT — TodoRead, TodoWrite, TaskCreate, TaskUpdate
|
|
343
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
344
|
+
{
|
|
345
|
+
type: 'function',
|
|
346
|
+
function: {
|
|
347
|
+
name: 'todoRead',
|
|
348
|
+
description: 'Reads the current todo list for the session.',
|
|
349
|
+
parameters: { type: 'object', properties: {} }
|
|
350
|
+
}
|
|
351
|
+
},
|
|
352
|
+
{
|
|
353
|
+
type: 'function',
|
|
354
|
+
function: {
|
|
355
|
+
name: 'todoWrite',
|
|
356
|
+
description: 'Writes a structured todo list for tracking progress. Mark items completed immediately when done.',
|
|
357
|
+
parameters: {
|
|
358
|
+
type: 'object',
|
|
359
|
+
properties: {
|
|
360
|
+
todos: {
|
|
361
|
+
type: 'array',
|
|
362
|
+
items: {
|
|
363
|
+
type: 'object',
|
|
364
|
+
properties: {
|
|
365
|
+
id: { type: 'string' },
|
|
366
|
+
content: { type: 'string', description: 'Goal or checklist item.' },
|
|
367
|
+
status: { type: 'string', enum: ['pending', 'in_progress', 'completed'] },
|
|
368
|
+
priority: { type: 'string', enum: ['high', 'medium', 'low'] }
|
|
369
|
+
},
|
|
370
|
+
required: ['content', 'status', 'priority']
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
required: ['todos']
|
|
146
375
|
}
|
|
147
376
|
}
|
|
148
377
|
},
|
|
@@ -150,12 +379,12 @@ exports.CoWorkerToolSchemas = [
|
|
|
150
379
|
type: 'function',
|
|
151
380
|
function: {
|
|
152
381
|
name: 'taskCreate',
|
|
153
|
-
description: 'Creates a tracked objective with
|
|
382
|
+
description: 'Creates a tracked objective with dependency tracking in the persistent task graph.',
|
|
154
383
|
parameters: {
|
|
155
384
|
type: 'object',
|
|
156
385
|
properties: {
|
|
157
386
|
description: { type: 'string', description: 'Goal or checklist item details.' },
|
|
158
|
-
dependencies: { type: 'array', items: { type: 'string' }, description: 'Array of existing task IDs
|
|
387
|
+
dependencies: { type: 'array', items: { type: 'string' }, description: 'Array of existing task IDs that must complete first.' }
|
|
159
388
|
},
|
|
160
389
|
required: ['description']
|
|
161
390
|
}
|
|
@@ -165,23 +394,109 @@ exports.CoWorkerToolSchemas = [
|
|
|
165
394
|
type: 'function',
|
|
166
395
|
function: {
|
|
167
396
|
name: 'taskUpdate',
|
|
168
|
-
description: 'Updates a tracked task status.',
|
|
397
|
+
description: 'Updates a tracked task status in the persistent task graph.',
|
|
169
398
|
parameters: {
|
|
170
399
|
type: 'object',
|
|
171
400
|
properties: {
|
|
172
401
|
taskId: { type: 'string' },
|
|
173
402
|
state: { type: 'string', enum: ['pending', 'in_progress', 'blocked', 'completed'] },
|
|
174
|
-
notes: { type: 'string', description: 'Any context or blockers
|
|
403
|
+
notes: { type: 'string', description: 'Any context or blockers.' }
|
|
175
404
|
},
|
|
176
405
|
required: ['taskId', 'state']
|
|
177
406
|
}
|
|
178
407
|
}
|
|
179
408
|
},
|
|
409
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
410
|
+
// INTERACTION — AskUser
|
|
411
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
412
|
+
{
|
|
413
|
+
type: 'function',
|
|
414
|
+
function: {
|
|
415
|
+
name: 'executeAskUserQuestion',
|
|
416
|
+
description: 'Pauses the agentic loop and prompts the user for input or clarification.',
|
|
417
|
+
parameters: {
|
|
418
|
+
type: 'object',
|
|
419
|
+
properties: {
|
|
420
|
+
question: { type: 'string', description: 'The exact question to ask the user.' }
|
|
421
|
+
},
|
|
422
|
+
required: ['question']
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
427
|
+
// JUPYTER NOTEBOOKS — NotebookRead, NotebookEdit
|
|
428
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
429
|
+
{
|
|
430
|
+
type: 'function',
|
|
431
|
+
function: {
|
|
432
|
+
name: 'executeNotebookRead',
|
|
433
|
+
description: 'Reads a Jupyter notebook (.ipynb) and returns all cells with source code and outputs.',
|
|
434
|
+
parameters: {
|
|
435
|
+
type: 'object',
|
|
436
|
+
properties: {
|
|
437
|
+
notebookPath: { type: 'string', description: 'Absolute path to the Jupyter notebook file.' }
|
|
438
|
+
},
|
|
439
|
+
required: ['notebookPath']
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
type: 'function',
|
|
445
|
+
function: {
|
|
446
|
+
name: 'executeNotebookEdit',
|
|
447
|
+
description: 'Replaces, inserts, or deletes cells in a Jupyter notebook (.ipynb).',
|
|
448
|
+
parameters: {
|
|
449
|
+
type: 'object',
|
|
450
|
+
properties: {
|
|
451
|
+
notebookPath: { type: 'string', description: 'Absolute path to the Jupyter notebook file.' },
|
|
452
|
+
cellId: { type: 'string', description: 'ID of the cell to edit. If omitted, appends a new cell.' },
|
|
453
|
+
newSource: { type: 'string', description: 'New cell content.' },
|
|
454
|
+
cellType: { type: 'string', enum: ['code', 'markdown'], description: 'Cell type (default: code).' }
|
|
455
|
+
},
|
|
456
|
+
required: ['notebookPath', 'newSource']
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
461
|
+
// AGENTS — Spawn Subagent, Return Result
|
|
462
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
463
|
+
{
|
|
464
|
+
type: 'function',
|
|
465
|
+
function: {
|
|
466
|
+
name: 'agent',
|
|
467
|
+
description: 'Launches a sub-agent to handle a complex subtask autonomously.',
|
|
468
|
+
parameters: {
|
|
469
|
+
type: 'object',
|
|
470
|
+
properties: {
|
|
471
|
+
description: { type: 'string', description: 'Goal or task description for the sub-agent.' },
|
|
472
|
+
subagentType: { type: 'string', description: 'Specialization: general-purpose, code-reviewer, plan-agent, bash-worker.' }
|
|
473
|
+
},
|
|
474
|
+
required: ['description']
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
type: 'function',
|
|
480
|
+
function: {
|
|
481
|
+
name: 'returnSubagentResult',
|
|
482
|
+
description: 'Returns the result from a sub-agent back to the parent agent.',
|
|
483
|
+
parameters: {
|
|
484
|
+
type: 'object',
|
|
485
|
+
properties: {
|
|
486
|
+
result: { type: 'string', description: 'The sub-agent\'s final output to return to the parent.' }
|
|
487
|
+
},
|
|
488
|
+
required: ['result']
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
493
|
+
// SCHEDULING — Cron Create, List, Delete
|
|
494
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
180
495
|
{
|
|
181
496
|
type: 'function',
|
|
182
497
|
function: {
|
|
183
498
|
name: 'cronCreate',
|
|
184
|
-
description: 'Schedules a recurring background check or task.
|
|
499
|
+
description: 'Schedules a recurring background check or task.',
|
|
185
500
|
parameters: {
|
|
186
501
|
type: 'object',
|
|
187
502
|
properties: {
|
|
@@ -196,7 +511,7 @@ exports.CoWorkerToolSchemas = [
|
|
|
196
511
|
type: 'function',
|
|
197
512
|
function: {
|
|
198
513
|
name: 'cronList',
|
|
199
|
-
description: 'Lists all currently active scheduled
|
|
514
|
+
description: 'Lists all currently active scheduled background tasks.',
|
|
200
515
|
parameters: { type: 'object', properties: {} }
|
|
201
516
|
}
|
|
202
517
|
},
|
|
@@ -204,7 +519,7 @@ exports.CoWorkerToolSchemas = [
|
|
|
204
519
|
type: 'function',
|
|
205
520
|
function: {
|
|
206
521
|
name: 'cronDelete',
|
|
207
|
-
description: 'Cancels a specific recurring background task.',
|
|
522
|
+
description: 'Cancels a specific recurring background task by its ID.',
|
|
208
523
|
parameters: {
|
|
209
524
|
type: 'object',
|
|
210
525
|
properties: {
|
|
@@ -214,11 +529,14 @@ exports.CoWorkerToolSchemas = [
|
|
|
214
529
|
}
|
|
215
530
|
}
|
|
216
531
|
},
|
|
532
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
533
|
+
// PLAN MODE — Enter/Exit safe brainstorming
|
|
534
|
+
// ═══════════════════════════════════════════════════════════════════
|
|
217
535
|
{
|
|
218
536
|
type: 'function',
|
|
219
537
|
function: {
|
|
220
538
|
name: 'enterPlanMode',
|
|
221
|
-
description: 'Temporarily revokes
|
|
539
|
+
description: 'Temporarily revokes mutation tool access (bash, write, edit) so you can safely brainstorm.',
|
|
222
540
|
parameters: { type: 'object', properties: {} }
|
|
223
541
|
}
|
|
224
542
|
},
|
|
@@ -226,7 +544,7 @@ exports.CoWorkerToolSchemas = [
|
|
|
226
544
|
type: 'function',
|
|
227
545
|
function: {
|
|
228
546
|
name: 'exitPlanMode',
|
|
229
|
-
description: 'Restores
|
|
547
|
+
description: 'Restores mutation tool access after brainstorming is complete.',
|
|
230
548
|
parameters: { type: 'object', properties: {} }
|
|
231
549
|
}
|
|
232
550
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Schemas.js","sourceRoot":"","sources":["../../src/tools/Schemas.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC;QACE,IAAI,EAAE,UAAU;QAChB,QAAQ,EAAE;YACR,IA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,EAAE,cAAc;YACpB,WAAW,EAAE,gEAAgE;YAC7E,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE;SAC/C;KACF;CACF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ConversationEntry {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
startedAt: string;
|
|
5
|
+
lastActive: string;
|
|
6
|
+
cwd: string;
|
|
7
|
+
messageCount: number;
|
|
8
|
+
}
|
|
9
|
+
export declare function loadConversations(): ConversationEntry[];
|
|
10
|
+
export declare function saveConversations(entries: ConversationEntry[]): void;
|
|
11
|
+
export declare function addConversation(entry: ConversationEntry): void;
|
|
12
|
+
export declare function updateConversation(id: string, updates: Partial<ConversationEntry>): void;
|
|
13
|
+
export declare function autoNameConversation(firstMessage: string): string;
|
|
14
|
+
//# sourceMappingURL=conversations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../src/utils/conversations.ts"],"names":[],"mappings":"AAYA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;CACtB;AAWD,wBAAgB,iBAAiB,IAAI,iBAAiB,EAAE,CAQvD;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAMpE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAS9D;AAED,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAOxF;AAED,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAOjE"}
|