yggtree 1.2.0 → 1.2.1

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.
@@ -4,7 +4,7 @@ import path from 'path';
4
4
  import fs from 'fs-extra';
5
5
  import { execa } from 'execa';
6
6
  import { log, ui, createSpinner } from '../../lib/ui.js';
7
- import { findSandboxRoot, readSandboxMeta, writeSandboxMeta } from '../../lib/sandbox.js';
7
+ import { findSandboxRoot, readSandboxMeta, writeSandboxMeta, SANDBOX_META_FILE } from '../../lib/sandbox.js';
8
8
  export async function applyCommand() {
9
9
  try {
10
10
  const cwd = process.cwd();
@@ -35,6 +35,8 @@ export async function applyCommand() {
35
35
  ...stagedFiles.split('\n').filter(Boolean),
36
36
  ...untrackedFiles.split('\n').filter(Boolean)
37
37
  ]);
38
+ // Exclude internal sandbox metadata file
39
+ allChanges.delete(SANDBOX_META_FILE);
38
40
  changedFiles = [...allChanges];
39
41
  }
40
42
  catch (e) {
@@ -1,7 +1,7 @@
1
1
  import crypto from 'crypto';
2
2
  import path from 'path';
3
3
  import fs from 'fs-extra';
4
- const SANDBOX_META_FILE = '.sandbox-meta.json';
4
+ export const SANDBOX_META_FILE = '.sandbox-meta.json';
5
5
  /**
6
6
  * Generate a sandbox worktree name: <branch>_<4-char-hash>
7
7
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yggtree",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Interactive CLI for managing git worktrees and configs",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",