heyio 1.1.3 → 1.1.4
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/dist/copilot/system-message.js +2 -2
- package/dist/copilot/tools.js +5 -5
- package/dist/paths.js +1 -0
- package/package.json +1 -1
|
@@ -36,9 +36,9 @@ Every squad MUST have:
|
|
|
36
36
|
All squad agents share the repo owner's gh identity. GitHub blocks self-approval. Veto reviewers use --comment with "LGTM" instead of --approve. Merge criteria: all veto-capable members have posted approving comments + CI passes + no conflicts.
|
|
37
37
|
${selfEditBlock}
|
|
38
38
|
## Source Code Convention
|
|
39
|
-
- All repositories are cloned to
|
|
39
|
+
- All repositories are cloned to ~/.io/source/{owner}/{repo}
|
|
40
40
|
- When creating a squad with a repo_url, the repo is automatically cloned there
|
|
41
|
-
- When working with a squad's code, always use
|
|
41
|
+
- When working with a squad's code, always use ~/.io/source/{owner}/{repo} as the working directory
|
|
42
42
|
|
|
43
43
|
## Environment
|
|
44
44
|
- OS: ${process.platform}
|
package/dist/copilot/tools.js
CHANGED
|
@@ -70,16 +70,16 @@ export function createTools() {
|
|
|
70
70
|
let cloneMsg = "";
|
|
71
71
|
if (repo_url) {
|
|
72
72
|
const { execSync } = await import("node:child_process");
|
|
73
|
-
const { homedir } = await import("node:os");
|
|
74
73
|
const { existsSync, mkdirSync } = await import("node:fs");
|
|
75
74
|
const { join } = await import("node:path");
|
|
75
|
+
const { PATHS } = await import("../paths.js");
|
|
76
76
|
// Extract owner/repo from URL (supports https and git@ formats)
|
|
77
77
|
const match = repo_url.match(/[/:]([^/]+)\/([^/.]+?)(?:\.git)?$/);
|
|
78
78
|
if (match) {
|
|
79
79
|
const [, owner, repo] = match;
|
|
80
|
-
const sourceDir = join(
|
|
80
|
+
const sourceDir = join(PATHS.source, owner, repo);
|
|
81
81
|
if (!existsSync(sourceDir)) {
|
|
82
|
-
const parentDir = join(
|
|
82
|
+
const parentDir = join(PATHS.source, owner);
|
|
83
83
|
if (!existsSync(parentDir))
|
|
84
84
|
mkdirSync(parentDir, { recursive: true });
|
|
85
85
|
try {
|
|
@@ -87,14 +87,14 @@ export function createTools() {
|
|
|
87
87
|
encoding: "utf-8",
|
|
88
88
|
timeout: 120_000,
|
|
89
89
|
});
|
|
90
|
-
cloneMsg = ` Repo cloned to
|
|
90
|
+
cloneMsg = ` Repo cloned to ~/.io/source/${owner}/${repo}.`;
|
|
91
91
|
}
|
|
92
92
|
catch (err) {
|
|
93
93
|
cloneMsg = ` (Clone failed: ${err.stderr?.trim() || err.message})`;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
else {
|
|
97
|
-
cloneMsg = ` Repo already exists at
|
|
97
|
+
cloneMsg = ` Repo already exists at ~/.io/source/${owner}/${repo}.`;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}
|
package/dist/paths.js
CHANGED