agentshire 2026.4.13 → 2026.4.14
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
|
@@ -31,11 +31,20 @@ function ensureTownWorkspace(): string {
|
|
|
31
31
|
mkdirSync(agentDir, { recursive: true });
|
|
32
32
|
|
|
33
33
|
const pluginDir = getPluginDir();
|
|
34
|
+
const SDK_DEFAULT_MARKERS = [
|
|
35
|
+
"# SOUL.md - Who You Are",
|
|
36
|
+
"# IDENTITY.md - Who Am I?",
|
|
37
|
+
];
|
|
34
38
|
for (const file of readdirSync(templateDir)) {
|
|
35
39
|
const src = join(templateDir, file);
|
|
36
40
|
const dst = join(agentDir, file);
|
|
37
41
|
if (!existsSync(dst)) {
|
|
38
42
|
copyFileSync(src, dst);
|
|
43
|
+
} else {
|
|
44
|
+
const existing = readFileSync(dst, "utf-8");
|
|
45
|
+
if (SDK_DEFAULT_MARKERS.some((m) => existing.startsWith(m))) {
|
|
46
|
+
copyFileSync(src, dst);
|
|
47
|
+
}
|
|
39
48
|
}
|
|
40
49
|
}
|
|
41
50
|
|