@wipcomputer/wip-ldm-os 0.4.73-alpha.18 → 0.4.73-alpha.19
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/bin/ldm.js +16 -16
- package/package.json +1 -1
package/bin/ldm.js
CHANGED
|
@@ -544,20 +544,14 @@ function deployDocs() {
|
|
|
544
544
|
return count;
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
// Deploy to
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
if (docsCount > 0) {
|
|
551
|
-
console.log(` + ${docsCount} personalized doc(s) deployed to ${docsDest.replace(HOME, '~')}/`);
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
// Deploy to library/documentation/ (human-readable library copy)
|
|
547
|
+
// Deploy to library/documentation/ (the canonical doc path since Mar 28 rename).
|
|
548
|
+
// Previously also deployed to settings/docs/ which Parker renamed to library/documentation/.
|
|
549
|
+
// That created a ghost folder on every install. Removed 2026-04-05 per INST-1.
|
|
555
550
|
const libraryDest = join(workspacePath, 'library', 'documentation');
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
}
|
|
551
|
+
mkdirSync(libraryDest, { recursive: true });
|
|
552
|
+
const docsCount = renderTemplates(libraryDest);
|
|
553
|
+
if (docsCount > 0) {
|
|
554
|
+
console.log(` + ${docsCount} personalized doc(s) deployed to ${libraryDest.replace(HOME, '~')}/`);
|
|
561
555
|
}
|
|
562
556
|
|
|
563
557
|
return docsCount;
|
|
@@ -820,10 +814,16 @@ async function cmdInit() {
|
|
|
820
814
|
// Scaffold workspace output dirs if workspace is configured
|
|
821
815
|
const workspace = config.workspace;
|
|
822
816
|
if (workspace && existsSync(workspace)) {
|
|
823
|
-
// Per-agent workspace dirs
|
|
824
|
-
|
|
817
|
+
// Per-agent workspace dirs.
|
|
818
|
+
// Resolve the team folder name from config.json agents[id].teamFolder
|
|
819
|
+
// so agents with unicode names or custom folder names don't get ghost
|
|
820
|
+
// folders created from their agent ID. Falls back to agent ID if no
|
|
821
|
+
// override is configured. Fixed 2026-04-05 per INST-1: previously
|
|
822
|
+
// hardcoded a map that only knew three agents and created ghost folders
|
|
823
|
+
// for any others.
|
|
825
824
|
for (const agentId of agentList) {
|
|
826
|
-
const
|
|
825
|
+
const agentObj = typeof agentsObj[agentId] === 'object' ? agentsObj[agentId] : {};
|
|
826
|
+
const teamName = agentObj.teamFolder || agentObj.name || agentId;
|
|
827
827
|
for (const sub of ['journals', 'automated/memory/summaries/daily', 'automated/memory/summaries/weekly', 'automated/memory/summaries/monthly', 'automated/memory/summaries/quarterly']) {
|
|
828
828
|
dirs.push(join(workspace, 'team', teamName, sub));
|
|
829
829
|
}
|