@sechroom/cli 2026.6.22 → 2026.6.23

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.
Files changed (2) hide show
  1. package/dist/index.js +10 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1652,6 +1652,15 @@ function ignoresSem(content) {
1652
1652
  return t === STATE_DIR_NAME2 || t === STATE_DIR_IGNORE || t === `/${STATE_DIR_NAME2}` || t === `/${STATE_DIR_IGNORE}` || t === `**/${STATE_DIR_NAME2}` || t === `**/${STATE_DIR_IGNORE}`;
1653
1653
  });
1654
1654
  }
1655
+ function inGitRepo(startDir) {
1656
+ let dir = startDir;
1657
+ for (; ; ) {
1658
+ if (existsSync2(join2(dir, ".git"))) return true;
1659
+ const parent = dirname2(dir);
1660
+ if (parent === dir) return false;
1661
+ dir = parent;
1662
+ }
1663
+ }
1655
1664
  function resolveGitignoreTarget(startDir) {
1656
1665
  let dir = startDir;
1657
1666
  for (; ; ) {
@@ -1667,6 +1676,7 @@ function resolveGitignoreTarget(startDir) {
1667
1676
  function ensureSemIgnored(semPath) {
1668
1677
  try {
1669
1678
  const checkoutDir = dirname2(dirname2(semPath));
1679
+ if (!inGitRepo(checkoutDir)) return;
1670
1680
  const target = resolveGitignoreTarget(checkoutDir);
1671
1681
  if (target.exists) {
1672
1682
  const content = readFileSync2(target.path, "utf8");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sechroom/cli",
3
- "version": "2026.6.22",
3
+ "version": "2026.6.23",
4
4
  "description": "Sechroom CLI — a thin, generated client over the Sechroom HTTP API. An agent/human surface alongside MCP.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",