@ryuenn3123/agentic-senior-core 6.11.0 → 6.11.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/.agents/plugins/agentic-senior-core/.codex-plugin/plugin.json +1 -1
- package/.agents/plugins/agentic-senior-core/hooks/post-edit-enforce.js +82 -10
- package/.agents/plugins/agentic-senior-core/hooks.json +22 -138
- package/.agents/plugins/agentic-senior-core/plugin.json +1 -1
- package/bin/agentic-senior-core.js +0 -8
- package/gemini-extension.json +1 -1
- package/lib/cli/commands/git-hook-generator.mjs +12 -2
- package/package.json +1 -3
- package/plugin.yaml +1 -1
- package/lib/cli/commands/mcp.mjs +0 -3
- package/scripts/mcp-server/constants.mjs +0 -57
- package/scripts/mcp-server/tool-registry.mjs +0 -204
- package/scripts/mcp-server/tools.mjs +0 -592
- package/scripts/mcp-server.mjs +0 -202
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
|
|
3
|
-
import { existsSync } from 'node:fs';
|
|
4
|
-
import { AVAILABLE_TEST_SUITES, INTERNAL_SCRIPT_PATHS } from './constants.mjs';
|
|
5
|
-
|
|
6
|
-
export function buildToolDefinitions() {
|
|
7
|
-
const toolDefinitions = [];
|
|
8
|
-
|
|
9
|
-
if (existsSync(INTERNAL_SCRIPT_PATHS.validate)) {
|
|
10
|
-
toolDefinitions.push({
|
|
11
|
-
name: 'validate',
|
|
12
|
-
description: 'Run repository validation checks.',
|
|
13
|
-
inputSchema: {
|
|
14
|
-
type: 'object',
|
|
15
|
-
properties: {},
|
|
16
|
-
additionalProperties: false,
|
|
17
|
-
},
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
if (AVAILABLE_TEST_SUITES.length > 0) {
|
|
22
|
-
toolDefinitions.push({
|
|
23
|
-
name: 'test',
|
|
24
|
-
description: 'Run test suites (full or targeted).',
|
|
25
|
-
inputSchema: {
|
|
26
|
-
type: 'object',
|
|
27
|
-
properties: {
|
|
28
|
-
suite: {
|
|
29
|
-
type: 'string',
|
|
30
|
-
enum: AVAILABLE_TEST_SUITES,
|
|
31
|
-
description: 'Target test suite. Defaults to the first available suite.',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
additionalProperties: false,
|
|
35
|
-
},
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
if (existsSync(INTERNAL_SCRIPT_PATHS.release_gate)) {
|
|
40
|
-
toolDefinitions.push({
|
|
41
|
-
name: 'release_gate',
|
|
42
|
-
description: 'Run release gate checks.',
|
|
43
|
-
inputSchema: {
|
|
44
|
-
type: 'object',
|
|
45
|
-
properties: {},
|
|
46
|
-
additionalProperties: false,
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
if (existsSync(INTERNAL_SCRIPT_PATHS.forbidden_content_check)) {
|
|
52
|
-
toolDefinitions.push({
|
|
53
|
-
name: 'forbidden_content_check',
|
|
54
|
-
description: 'Run forbidden content scan used by publish gate.',
|
|
55
|
-
inputSchema: {
|
|
56
|
-
type: 'object',
|
|
57
|
-
properties: {},
|
|
58
|
-
additionalProperties: false,
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
toolDefinitions.push(
|
|
64
|
-
{
|
|
65
|
-
name: 'lookup_rule',
|
|
66
|
-
description: 'Look up a canonical .agent-context rule section by stable rule ID.',
|
|
67
|
-
inputSchema: {
|
|
68
|
-
type: 'object',
|
|
69
|
-
properties: {
|
|
70
|
-
ruleId: {
|
|
71
|
-
type: 'string',
|
|
72
|
-
description: 'Stable rule section ID, such as ARCH-003 or API-001.',
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
required: ['ruleId'],
|
|
76
|
-
additionalProperties: false,
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
name: 'validate_against_rules',
|
|
81
|
-
description: 'Validate that cited rule IDs resolve to canonical rule sections.',
|
|
82
|
-
inputSchema: {
|
|
83
|
-
type: 'object',
|
|
84
|
-
properties: {
|
|
85
|
-
ruleIds: {
|
|
86
|
-
type: 'array',
|
|
87
|
-
items: { type: 'string' },
|
|
88
|
-
description: 'Rule IDs cited by a response, plan, or review.',
|
|
89
|
-
},
|
|
90
|
-
summary: {
|
|
91
|
-
type: 'string',
|
|
92
|
-
description: 'Optional one-line context for the validation request.',
|
|
93
|
-
},
|
|
94
|
-
},
|
|
95
|
-
required: ['ruleIds'],
|
|
96
|
-
additionalProperties: false,
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
name: 'audit_compliance',
|
|
101
|
-
description: 'Run a lightweight compliance audit over cited rule IDs and scope labels.',
|
|
102
|
-
inputSchema: {
|
|
103
|
-
type: 'object',
|
|
104
|
-
properties: {
|
|
105
|
-
ruleIds: {
|
|
106
|
-
type: 'array',
|
|
107
|
-
items: { type: 'string' },
|
|
108
|
-
description: 'Rule IDs used as the compliance basis.',
|
|
109
|
-
},
|
|
110
|
-
scope: {
|
|
111
|
-
type: 'string',
|
|
112
|
-
description: 'Optional changed scope label, such as api, security, testing, architecture, ui, or release.',
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
required: ['ruleIds'],
|
|
116
|
-
additionalProperties: false,
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
name: 'research_fetch',
|
|
121
|
-
description: 'Fetch external documentation/news content and return query-focused excerpts with citation metadata.',
|
|
122
|
-
inputSchema: {
|
|
123
|
-
type: 'object',
|
|
124
|
-
properties: {
|
|
125
|
-
url: {
|
|
126
|
-
type: 'string',
|
|
127
|
-
description: 'Absolute HTTP/HTTPS URL to fetch.',
|
|
128
|
-
},
|
|
129
|
-
query: {
|
|
130
|
-
type: 'string',
|
|
131
|
-
description: 'Optional search query used to extract focused excerpts.',
|
|
132
|
-
},
|
|
133
|
-
maxChars: {
|
|
134
|
-
type: 'integer',
|
|
135
|
-
description: 'Maximum characters to return when query is not provided (default 6000, max 20000).',
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
required: ['url'],
|
|
139
|
-
additionalProperties: false,
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
name: 'trend_snapshot',
|
|
144
|
-
description: 'Generate ecosystem trend snapshot from npm registry metadata with source timestamps.',
|
|
145
|
-
inputSchema: {
|
|
146
|
-
type: 'object',
|
|
147
|
-
properties: {
|
|
148
|
-
packages: {
|
|
149
|
-
type: 'array',
|
|
150
|
-
items: { type: 'string' },
|
|
151
|
-
description: 'Package names to inspect (max 10).',
|
|
152
|
-
},
|
|
153
|
-
windowDays: {
|
|
154
|
-
type: 'integer',
|
|
155
|
-
description: 'Release activity window in days (default 90).',
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
required: ['packages'],
|
|
159
|
-
additionalProperties: false,
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
name: 'state_read',
|
|
164
|
-
description: 'Read a file from .agent-context/state for cross-session continuity.',
|
|
165
|
-
inputSchema: {
|
|
166
|
-
type: 'object',
|
|
167
|
-
properties: {
|
|
168
|
-
path: {
|
|
169
|
-
type: 'string',
|
|
170
|
-
description: 'Path relative to .agent-context/state, such as memory-continuity-benchmark.json.',
|
|
171
|
-
},
|
|
172
|
-
},
|
|
173
|
-
required: ['path'],
|
|
174
|
-
additionalProperties: false,
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: 'state_write',
|
|
179
|
-
description: 'Write a file under .agent-context/state for cross-session continuity updates.',
|
|
180
|
-
inputSchema: {
|
|
181
|
-
type: 'object',
|
|
182
|
-
properties: {
|
|
183
|
-
path: {
|
|
184
|
-
type: 'string',
|
|
185
|
-
description: 'Path relative to .agent-context/state.',
|
|
186
|
-
},
|
|
187
|
-
content: {
|
|
188
|
-
type: 'string',
|
|
189
|
-
description: 'UTF-8 content to write.',
|
|
190
|
-
},
|
|
191
|
-
mode: {
|
|
192
|
-
type: 'string',
|
|
193
|
-
enum: ['overwrite', 'append'],
|
|
194
|
-
description: 'Write mode. Defaults to overwrite.',
|
|
195
|
-
},
|
|
196
|
-
},
|
|
197
|
-
required: ['path', 'content'],
|
|
198
|
-
additionalProperties: false,
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
);
|
|
202
|
-
|
|
203
|
-
return toolDefinitions;
|
|
204
|
-
}
|