micro-models-agent 0.49.0 → 0.49.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/main.js +25 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -22205,6 +22205,31 @@ function buildSystemInfo(config, baseDir, profileCompressed) {
|
|
|
22205
22205
|
lines.push(`Plan rule (MANDATORY): any task creating files, installing packages, or requiring multiple actions MUST create a plan with the "plan" tool BEFORE starting. Each step = a concrete deliverable.`);
|
|
22206
22206
|
}
|
|
22207
22207
|
lines.push(`Runtime verification: when a bug is described in terms of runtime behavior (what happens when the app runs), reproduce it — run the app / build / browser tool — and confirm the fix against actual runtime output before calling "plan update step=N status=done". Check existing servers first with process_list/process_log: a stale dev server started BEFORE your change still runs the old pipeline and keeps failing even after the files on disk are fixed. Restart or kill it (process_kill) and verify the exact endpoint/port the user reported — a fresh server on a new port does NOT prove the user's error is gone.`);
|
|
22208
|
+
const sec = config.security;
|
|
22209
|
+
if (sec?.enabled) {
|
|
22210
|
+
const secLines = [`SECURITY RESTRICTIONS (enforced — blocked calls return "[SECURITY BLOCKED]", do not retry them):`];
|
|
22211
|
+
if (sec.bash?.enabled && sec.bash.blacklist.length > 0) {
|
|
22212
|
+
const cmds = sec.bash.blacklist.slice(0, 15).join(", ");
|
|
22213
|
+
secLines.push(`Forbidden bash commands: ${cmds}${sec.bash.blacklist.length > 15 ? ", …" : ""}.`);
|
|
22214
|
+
if (sec.bash.whitelist.length > 0) {
|
|
22215
|
+
secLines.push(`Only whitelisted bash commands are allowed: ${sec.bash.whitelist.slice(0, 15).join(", ")}.`);
|
|
22216
|
+
}
|
|
22217
|
+
if (sec.bash.blockDangerousFlags) {
|
|
22218
|
+
secLines.push(`Pipes/redirects/chaining (| > >> ; &&) in bash are blocked — one plain command per call.`);
|
|
22219
|
+
}
|
|
22220
|
+
}
|
|
22221
|
+
if (sec.paths?.enabled && sec.paths.denied.length > 0) {
|
|
22222
|
+
const paths = sec.paths.denied.slice(0, 10).join(", ");
|
|
22223
|
+
secLines.push(`Denied paths (read/write): ${paths}${sec.paths.denied.length > 10 ? ", …" : ""}.`);
|
|
22224
|
+
}
|
|
22225
|
+
if (sec.network?.enabled && sec.network.deniedDomains.length > 0) {
|
|
22226
|
+
const domains = sec.network.deniedDomains.slice(0, 10).join(", ");
|
|
22227
|
+
secLines.push(`Denied network domains: ${domains}${sec.network.deniedDomains.length > 10 ? ", …" : ""}.`);
|
|
22228
|
+
}
|
|
22229
|
+
if (secLines.length > 1) {
|
|
22230
|
+
lines.push(...secLines);
|
|
22231
|
+
}
|
|
22232
|
+
}
|
|
22208
22233
|
const hasMCP = config.mcpServers && Object.values(config.mcpServers).some((s) => s.enabled !== false);
|
|
22209
22234
|
if (hasMCP) {
|
|
22210
22235
|
lines.push(`MCP servers are available — use the named MCP tools (prefixed mcp__) to query external services.`);
|