agentshire 2026.4.13 → 2026.4.15

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": "agentshire",
3
- "version": "2026.4.13",
3
+ "version": "2026.4.15",
4
4
  "description": "OpenClaw/QClaw plugin for building a living 3D town with social NPCs, a map editor, and a character workshop.",
5
5
  "main": "./index.ts",
6
6
  "exports": {
@@ -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
 
@@ -73,11 +82,7 @@ export async function ensureTownAgentConfig(): Promise<void> {
73
82
  );
74
83
 
75
84
  let dirty = false;
76
- let workspaceDir: string | undefined;
77
-
78
- if (!hasAgent || !hasBinding) {
79
- workspaceDir = ensureTownWorkspace();
80
- }
85
+ const workspaceDir = ensureTownWorkspace();
81
86
 
82
87
  if (!hasAgent) {
83
88
  cfg.agents = cfg.agents ?? {};