pi-oracle 0.6.2 → 0.6.3
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/CHANGELOG.md +6 -0
- package/extensions/oracle/lib/runtime.ts +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.6.3 - 2026-04-13
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
- workspace-root detection now prefers nearest project markers like `.pi/` and `AGENTS.md` over unrelated ancestor git roots, so oracle submissions from nested projects no longer widen to a home-directory repo and reject valid project-relative archive inputs like `AGENTS.md`
|
|
9
|
+
- sanity coverage now guards the nested-project-under-ancestor-git case so archive resolution stays anchored to the intended project root
|
|
10
|
+
|
|
5
11
|
## 0.6.2 - 2026-04-13
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
@@ -23,6 +23,8 @@ const PROFILE_CLONE_TIMEOUT_MS = 120_000;
|
|
|
23
23
|
const ORACLE_SUBPROCESS_KILL_GRACE_MS = 2_000;
|
|
24
24
|
const WORKSPACE_ROOT_MARKERS = [
|
|
25
25
|
".pi/extensions/oracle.json",
|
|
26
|
+
".pi",
|
|
27
|
+
"AGENTS.md",
|
|
26
28
|
] as const;
|
|
27
29
|
const REQUIRED_ORACLE_DEPENDENCIES = [
|
|
28
30
|
{ name: "agent-browser", command: AGENT_BROWSER_BIN },
|
|
@@ -75,8 +77,8 @@ function resolveWorkspaceRoot(realCwd: string): string {
|
|
|
75
77
|
let current = realCwd;
|
|
76
78
|
let nearestMarkerRoot: string | undefined;
|
|
77
79
|
while (true) {
|
|
78
|
-
if (existsSync(join(current, ".git"))) return current;
|
|
79
80
|
if (!nearestMarkerRoot && hasWorkspaceRootMarker(current)) nearestMarkerRoot = current;
|
|
81
|
+
if (existsSync(join(current, ".git"))) return nearestMarkerRoot ?? current;
|
|
80
82
|
const parent = dirname(current);
|
|
81
83
|
if (parent === current) return nearestMarkerRoot ?? realCwd;
|
|
82
84
|
current = parent;
|