@sanqianx/ai-coding-event-bridge-console 0.7.0 → 0.7.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanqianx/ai-coding-event-bridge-console",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Durable AI coding event bridge, all in one: capture connectors and installers (Claude Code, Codex, OpenCode, ZCode), journal with commit boundaries and per-commit conversation sealing, headless query, and a local conversation explorer console.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -110,7 +110,7 @@ function buildRepoIdentityV1({ workspaceRoot, commonDir = null, remote = null })
|
|
|
110
110
|
* 1. `git rev-parse --show-toplevel` (authoritative Git working tree root)
|
|
111
111
|
* 2. realpath + canonical separators for the display root
|
|
112
112
|
* 3. workspaceId = sha256 over the comparison form (case-insensitive on win32)
|
|
113
|
-
* 4. commonDir from `git rev-parse --
|
|
113
|
+
* 4. commonDir from `git rev-parse --git-common-dir`, resolved against cwd
|
|
114
114
|
* (metadata: worktrees share it, but their workspaceIds differ)
|
|
115
115
|
* 5. normalized origin URL as metadata only — never the primary identity
|
|
116
116
|
*
|
|
@@ -135,8 +135,11 @@ async function resolveRepoContext(cwd, { runGit = runGitDefault } = {}) {
|
|
|
135
135
|
|
|
136
136
|
let commonDir = null;
|
|
137
137
|
try {
|
|
138
|
-
const rawCommonDir = await runGit(['rev-parse', '--
|
|
139
|
-
if (rawCommonDir
|
|
138
|
+
const rawCommonDir = String(await runGit(['rev-parse', '--git-common-dir'], cwd)).trim();
|
|
139
|
+
if (rawCommonDir && !/[\r\n\0]/.test(rawCommonDir) && !rawCommonDir.startsWith('--')) {
|
|
140
|
+
const absoluteCommonDir = path.resolve(cwd, rawCommonDir);
|
|
141
|
+
commonDir = realpathBestEffort(absoluteCommonDir) || absoluteCommonDir;
|
|
142
|
+
}
|
|
140
143
|
} catch (_) {
|
|
141
144
|
commonDir = null;
|
|
142
145
|
}
|