git-stint 0.4.1 → 0.5.0

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.
@@ -80,7 +80,7 @@ if git check-ignore -q "$FILE_PATH" 2>/dev/null; then
80
80
  fi
81
81
 
82
82
  # --- Read .stint.json config for main_branch_policy ---
83
- MAIN_BRANCH_POLICY="prompt" # default
83
+ MAIN_BRANCH_POLICY="block" # default
84
84
  STINT_CONFIG="$REPO_ROOT/.stint.json"
85
85
  if [ -f "$STINT_CONFIG" ]; then
86
86
  if command -v jq &>/dev/null; then
package/dist/config.js CHANGED
@@ -2,7 +2,7 @@ import { existsSync, readFileSync } from "node:fs";
2
2
  import { join } from "node:path";
3
3
  const DEFAULTS = {
4
4
  shared_dirs: [],
5
- main_branch_policy: "prompt",
5
+ main_branch_policy: "block",
6
6
  force_cleanup: "prompt",
7
7
  adopt_changes: "always",
8
8
  };
@@ -83,7 +83,7 @@ export function install(scope) {
83
83
  }
84
84
  const DEFAULT_CONFIG = {
85
85
  shared_dirs: [],
86
- main_branch_policy: "prompt",
86
+ main_branch_policy: "block",
87
87
  force_cleanup: "prompt",
88
88
  adopt_changes: "always",
89
89
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "git-stint",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "Session-scoped change tracking for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {