@claudexor/workspace 1.0.1 → 2.1.2

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.
@@ -1,24 +0,0 @@
1
- import { readFileSync, writeFileSync } from "node:fs";
2
- import { join } from "node:path";
3
- import { ensureDir } from "@claudexor/util";
4
- /**
5
- * Ensure `.claudexor/.gitignore` CONTAINS `*` so the runtime dir stays
6
- * invisible to the project's git (the git-native trick that avoids mutating
7
- * the user's own .gitignore). Content-checked, not just existence-checked:
8
- * a user-edited or emptied file would silently re-expose envelopes, thread
9
- * worktrees, and seeded credentials to `git add -A`. Shared by the envelope
10
- * manager and the thread-worktree creator (single owner of the invariant).
11
- */
12
- export function ensureSelfIgnore(claudexorDir) {
13
- const path = join(claudexorDir, ".gitignore");
14
- try {
15
- if (readFileSync(path, "utf8").trim() === "*")
16
- return;
17
- }
18
- catch {
19
- /* missing/unreadable -> (re)write below */
20
- }
21
- ensureDir(claudexorDir);
22
- writeFileSync(path, "*\n");
23
- }
24
- //# sourceMappingURL=self-ignore.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"self-ignore.js","sourceRoot":"","sources":["../src/self-ignore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,UAAU,gBAAgB,CAAC,YAAoB;IACnD,MAAM,IAAI,GAAG,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IAC9C,IAAI,CAAC;QACH,IAAI,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,IAAI,EAAE,KAAK,GAAG;YAAE,OAAO;IACxD,CAAC;IAAC,MAAM,CAAC;QACP,2CAA2C;IAC7C,CAAC;IACD,SAAS,CAAC,YAAY,CAAC,CAAC;IACxB,aAAa,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7B,CAAC"}