@ryuenn3123/agentic-senior-core 2.5.5 → 2.5.6
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/.cursorrules
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AGENTIC-SENIOR-CORE DYNAMIC GOVERNANCE RULESET
|
|
2
2
|
|
|
3
|
-
Generated by Agentic-Senior-Core CLI v2.5.
|
|
3
|
+
Generated by Agentic-Senior-Core CLI v2.5.6
|
|
4
4
|
Timestamp: 2026-04-15T00:14:51.184Z
|
|
5
5
|
Selected profile: beginner
|
|
6
6
|
Selected policy file: .agent-context/policies/llm-judge-threshold.json
|
package/.windsurfrules
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AGENTIC-SENIOR-CORE DYNAMIC GOVERNANCE RULESET
|
|
2
2
|
|
|
3
|
-
Generated by Agentic-Senior-Core CLI v2.5.
|
|
3
|
+
Generated by Agentic-Senior-Core CLI v2.5.6
|
|
4
4
|
Timestamp: 2026-04-15T00:14:51.184Z
|
|
5
5
|
Selected profile: beginner
|
|
6
6
|
Selected policy file: .agent-context/policies/llm-judge-threshold.json
|
package/lib/cli/utils.mjs
CHANGED
|
@@ -198,34 +198,37 @@ export async function copyGovernanceAssetsToTarget(
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
// 4. Antigravity / Gemini (Global Settings)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
if (await pathExists(
|
|
208
|
-
|
|
209
|
-
if (
|
|
210
|
-
|
|
201
|
+
const isTmpDir = resolvedTargetDirectoryPath.startsWith(os.tmpdir());
|
|
202
|
+
if (!isTmpDir) {
|
|
203
|
+
try {
|
|
204
|
+
const globalGeminiDir = path.join(os.homedir(), '.gemini', 'antigravity');
|
|
205
|
+
const globalGeminiMcpPath = path.join(globalGeminiDir, 'mcp_config.json');
|
|
206
|
+
|
|
207
|
+
if (await pathExists(globalGeminiDir)) {
|
|
208
|
+
let geminiConfig = { mcpServers: {} };
|
|
209
|
+
if (await pathExists(globalGeminiMcpPath)) {
|
|
210
|
+
const content = await fs.readFile(globalGeminiMcpPath, 'utf8');
|
|
211
|
+
if (content.trim()) {
|
|
212
|
+
try { geminiConfig = JSON.parse(content); } catch (e) {}
|
|
213
|
+
}
|
|
211
214
|
}
|
|
215
|
+
if (!geminiConfig.mcpServers) geminiConfig.mcpServers = {};
|
|
216
|
+
|
|
217
|
+
const safeProjectName = projectName.replace(/[^a-zA-Z0-9_-]/g, '-');
|
|
218
|
+
const uniqueServerName = `agentic-senior-core-${safeProjectName}`;
|
|
219
|
+
|
|
220
|
+
// For global configs, we use absolute path for cwd
|
|
221
|
+
geminiConfig.mcpServers[uniqueServerName] = {
|
|
222
|
+
command: 'node',
|
|
223
|
+
args: mcpArgs,
|
|
224
|
+
cwd: resolvedTargetDirectoryPath,
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
await fs.writeFile(globalGeminiMcpPath, JSON.stringify(geminiConfig, null, 2) + '\n', 'utf8');
|
|
212
228
|
}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
const safeProjectName = projectName.replace(/[^a-zA-Z0-9_-]/g, '-');
|
|
216
|
-
const uniqueServerName = `agentic-senior-core-${safeProjectName}`;
|
|
217
|
-
|
|
218
|
-
// For global configs, we use absolute path for cwd
|
|
219
|
-
geminiConfig.mcpServers[uniqueServerName] = {
|
|
220
|
-
command: 'node',
|
|
221
|
-
args: mcpArgs,
|
|
222
|
-
cwd: resolvedTargetDirectoryPath,
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
await fs.writeFile(globalGeminiMcpPath, JSON.stringify(geminiConfig, null, 2) + '\n', 'utf8');
|
|
229
|
+
} catch (err) {
|
|
230
|
+
// Ignore global injection errors
|
|
226
231
|
}
|
|
227
|
-
} catch (err) {
|
|
228
|
-
// Ignore global injection errors (e.g. permission issues or user doesn't use it)
|
|
229
232
|
}
|
|
230
233
|
}
|
|
231
234
|
|