@rubytech/create-realagent-code 0.1.250 → 0.1.251
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/index.js +8 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2490,10 +2490,14 @@ function writeInstallDefaults(accountId) {
|
|
|
2490
2490
|
console.log(` [install-defaults] soul-md created path=${soulPath} bytes=${soulContent.length}`);
|
|
2491
2491
|
logFile(` [install-defaults] soul-md created path=${soulPath} bytes=${soulContent.length}`);
|
|
2492
2492
|
}
|
|
2493
|
-
// Public agent
|
|
2494
|
-
//
|
|
2495
|
-
//
|
|
2496
|
-
//
|
|
2493
|
+
// Public agent IDENTITY.md — the only template-seeded public file, always
|
|
2494
|
+
// overwritten (Rubytech-controlled toolless directive). Per Task 618/623,
|
|
2495
|
+
// each public agent's SOUL.md, KNOWLEDGE.md, and config.json are authored
|
|
2496
|
+
// client-side when the operator creates the agent through the admin UI;
|
|
2497
|
+
// they are not seeded from templates at install time. A public spawn for an
|
|
2498
|
+
// un-authored agent refuses as a dud (soul-empty / knowledge-missing), which
|
|
2499
|
+
// is the intended loud signal — do not re-introduce template SOUL/config
|
|
2500
|
+
// copies here (commit 82c5658d6 removed the template files).
|
|
2497
2501
|
const publicDir = join(accountDir, "agents/public");
|
|
2498
2502
|
mkdirSync(publicDir, { recursive: true });
|
|
2499
2503
|
const publicTemplatesDir = join(INSTALL_DIR, "platform/templates/agents/public");
|
|
@@ -2501,18 +2505,6 @@ function writeInstallDefaults(accountId) {
|
|
|
2501
2505
|
cpSync(join(publicTemplatesDir, "IDENTITY.md"), publicIdentityDst);
|
|
2502
2506
|
console.log(` [install-defaults] public-identity path=${publicIdentityDst}`);
|
|
2503
2507
|
logFile(` [install-defaults] public-identity path=${publicIdentityDst}`);
|
|
2504
|
-
const publicSoulDst = join(publicDir, "SOUL.md");
|
|
2505
|
-
if (!existsSync(publicSoulDst)) {
|
|
2506
|
-
cpSync(join(publicTemplatesDir, "SOUL.md"), publicSoulDst);
|
|
2507
|
-
console.log(` [install-defaults] public-soul path=${publicSoulDst}`);
|
|
2508
|
-
logFile(` [install-defaults] public-soul path=${publicSoulDst}`);
|
|
2509
|
-
}
|
|
2510
|
-
const publicConfigDst = join(publicDir, "config.json");
|
|
2511
|
-
if (!existsSync(publicConfigDst)) {
|
|
2512
|
-
cpSync(join(publicTemplatesDir, "config.json"), publicConfigDst);
|
|
2513
|
-
console.log(` [install-defaults] public-config path=${publicConfigDst}`);
|
|
2514
|
-
logFile(` [install-defaults] public-config path=${publicConfigDst}`);
|
|
2515
|
-
}
|
|
2516
2508
|
}
|
|
2517
2509
|
/**
|
|
2518
2510
|
* Commercial-mode entitlement delivery (Task 240). Writes the decoded payload
|