Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dist/pi/leash.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ function readLeashrc(cwd) {
function leash_default(pi) {
pi.on("session_start", async (_event, ctx) => {
ctx.ui.notify("\u{1F512} Leash active", "info");
ctx.ui.setStatus("leash", "\u{1F512} Leash active");
const update = await checkForUpdates();
if (update.hasUpdate) {
ctx.ui.notify(
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sailthru/leash",
"version": "1.0.17",
"version": "1.0.18",
"type": "module",
"description": "Security guardrails for AI coding agents",
"bin": {
Expand Down Expand Up @@ -68,5 +68,10 @@
"esbuild": "^0.27.2",
"jsonc-parser": "^3.3.1",
"typescript": "^5.9.3"
},
"allowScripts": {
"esbuild@0.27.7": true,
"msgpackr-extract@3.0.4": true,
"sharp@0.34.5": true
}
Comment on lines +72 to 76

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's needed because those are build scripts and otherwise the build fails to 100% run. Since the version is locked and I checked those packages for known vulnerabilities (note I looked for any mention online, did not inspect the code), I beleive this is 100% safe.

}
1 change: 1 addition & 0 deletions packages/pi/leash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { CommandAnalyzer, checkForUpdates, readLeashrc } from "../core/index.js"
export default function (pi: ExtensionAPI) {
pi.on("session_start", async (_event, ctx) => {
ctx.ui.notify("🔒 Leash active", "info");
ctx.ui.setStatus("leash", "🔒 Leash active");

const update = await checkForUpdates();
if (update.hasUpdate) {
Expand Down