Skip to content
Merged
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
13 changes: 12 additions & 1 deletion bin/failproofai.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,19 @@ if (!process.env.FAILPROOFAI_PACKAGE_ROOT) {
);
}

if (!process.env.FAILPROOFAI_DIST_PATH) {
process.env.FAILPROOFAI_DIST_PATH = resolve(
dirname(realpathSync(fileURLToPath(import.meta.url))),
"..",
"dist"
);
}

const args = process.argv.slice(2);

// Normalize 'p' → 'policies' (shorthand alias)
if (args[0] === "p") args[0] = "policies";

// --help / -h (only when not inside a subcommand that handles its own --help)
const SUBCOMMANDS = ["policies"];
if ((args.includes("--help") || args.includes("-h")) && !SUBCOMMANDS.includes(args[0])) {
Expand All @@ -38,7 +49,7 @@ USAGE
COMMANDS
(no args) Launch the policy dashboard

policies List all available policies and their status
policies, p List all available policies and their status
policies --install, -i Enable policies in Claude Code settings
[names...] Specific policy names to enable
--scope user|project|local Config scope to write to (default: user)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "failproofai",
"version": "0.0.1-beta.9",
"version": "0.0.1-beta.10",
"description": "Open-source hooks, policies, and project visualization for Claude Code & Agents SDK",
"bin": {
"failproofai": "./bin/failproofai.mjs"
Expand Down