@blogic-cz/agent-tools 0.5.2 → 0.5.4
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/package.json
CHANGED
|
@@ -349,7 +349,8 @@ export function createCredentialGuard(config?: CredentialGuardConfig): Credentia
|
|
|
349
349
|
`\u{1F6AB} Access blocked: "${filePath}" is a sensitive file.\n\n` +
|
|
350
350
|
`This file may contain credentials or secrets.\n` +
|
|
351
351
|
`If you need this file's content, ask the user to provide relevant parts.\n\n` +
|
|
352
|
-
`Think this should be allowed? See https://github.com/blogic-cz/agent-tools — fork, extend the guard, and submit a PR
|
|
352
|
+
`Think this should be allowed? See https://github.com/blogic-cz/agent-tools — fork, extend the guard, and submit a PR.\n` +
|
|
353
|
+
`→ Skill "agent-tools"`,
|
|
353
354
|
);
|
|
354
355
|
}
|
|
355
356
|
}
|
|
@@ -365,7 +366,8 @@ export function createCredentialGuard(config?: CredentialGuardConfig): Credentia
|
|
|
365
366
|
`\u{1F6AB} Secret detected: Potential ${detected.name} found in content.\n\n` +
|
|
366
367
|
`Matched: ${detected.match}\n\n` +
|
|
367
368
|
`Never commit secrets to code. Use environment variables or secret managers.\n\n` +
|
|
368
|
-
`Think this is a false positive? See https://github.com/blogic-cz/agent-tools — fork, fix the pattern, and submit a PR
|
|
369
|
+
`Think this is a false positive? See https://github.com/blogic-cz/agent-tools — fork, fix the pattern, and submit a PR.\n` +
|
|
370
|
+
`→ Skill "agent-tools"`,
|
|
369
371
|
);
|
|
370
372
|
}
|
|
371
373
|
}
|
|
@@ -380,7 +382,8 @@ export function createCredentialGuard(config?: CredentialGuardConfig): Credentia
|
|
|
380
382
|
`\u{1F6AB} Command blocked: This command might expose secrets.\n\n` +
|
|
381
383
|
`Command: ${command}\n\n` +
|
|
382
384
|
`If you need environment info, ask the user directly.\n\n` +
|
|
383
|
-
`Think this is wrong? See https://github.com/blogic-cz/agent-tools — fork, adjust the patterns, and submit a PR
|
|
385
|
+
`Think this is wrong? See https://github.com/blogic-cz/agent-tools — fork, adjust the patterns, and submit a PR.\n` +
|
|
386
|
+
`→ Skill "agent-tools"`,
|
|
384
387
|
);
|
|
385
388
|
}
|
|
386
389
|
|
|
@@ -391,7 +394,8 @@ export function createCredentialGuard(config?: CredentialGuardConfig): Credentia
|
|
|
391
394
|
`AI agents must use wrapper tools for security and audit.\n\n` +
|
|
392
395
|
`Use instead: bun ${blockedTool.wrapper}\n\n` +
|
|
393
396
|
`Example: bun ${blockedTool.wrapper} --help\n\n` +
|
|
394
|
-
`Think this tool should be allowed? See https://github.com/blogic-cz/agent-tools — fork, extend the whitelist, and submit a PR
|
|
397
|
+
`Think this tool should be allowed? See https://github.com/blogic-cz/agent-tools — fork, extend the whitelist, and submit a PR.\n` +
|
|
398
|
+
`→ Skill "agent-tools"`,
|
|
395
399
|
);
|
|
396
400
|
}
|
|
397
401
|
}
|
package/src/gh-tool/pr/core.ts
CHANGED
|
@@ -15,7 +15,7 @@ export const viewPR = Effect.fn("pr.viewPR")(function* (prNumber: number | null)
|
|
|
15
15
|
if (prNumber !== null) {
|
|
16
16
|
args.push(String(prNumber));
|
|
17
17
|
}
|
|
18
|
-
args.push("--json", "number,url,title,headRefName,baseRefName,state,isDraft");
|
|
18
|
+
args.push("--json", "number,url,title,headRefName,baseRefName,state,isDraft,mergeable");
|
|
19
19
|
|
|
20
20
|
const info = yield* gh.runGhJson<PRInfo>(args);
|
|
21
21
|
return info;
|
|
@@ -98,7 +98,7 @@ export const detectPRStatus = Effect.fn("pr.detectPRStatus")(function* () {
|
|
|
98
98
|
"--head",
|
|
99
99
|
branchName,
|
|
100
100
|
"--json",
|
|
101
|
-
"number,url,title,headRefName,baseRefName,state,isDraft",
|
|
101
|
+
"number,url,title,headRefName,baseRefName,state,isDraft,mergeable",
|
|
102
102
|
"--limit",
|
|
103
103
|
"1",
|
|
104
104
|
])
|
|
@@ -201,7 +201,7 @@ export const createPR = Effect.fn("pr.createPR")(function* (opts: {
|
|
|
201
201
|
"--head",
|
|
202
202
|
opts.head,
|
|
203
203
|
"--json",
|
|
204
|
-
"number,url,title,headRefName,baseRefName,state,isDraft",
|
|
204
|
+
"number,url,title,headRefName,baseRefName,state,isDraft,mergeable",
|
|
205
205
|
"--limit",
|
|
206
206
|
"1",
|
|
207
207
|
])
|
|
@@ -257,7 +257,7 @@ export const createPR = Effect.fn("pr.createPR")(function* (opts: {
|
|
|
257
257
|
"--head",
|
|
258
258
|
opts.head,
|
|
259
259
|
"--json",
|
|
260
|
-
"number,url,title,headRefName,baseRefName,state,isDraft",
|
|
260
|
+
"number,url,title,headRefName,baseRefName,state,isDraft,mergeable",
|
|
261
261
|
"--limit",
|
|
262
262
|
"1",
|
|
263
263
|
]);
|