@askexenow/exe-os 0.8.73 → 0.8.74
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/bin/exe-launch-agent.js +13 -1
- package/package.json +1 -1
|
@@ -3098,7 +3098,19 @@ function buildLaunchPlan(agent, behaviorsPath, passthrough, _hasAgentFlag, _prov
|
|
|
3098
3098
|
try {
|
|
3099
3099
|
const dir = path7.dirname(idPath);
|
|
3100
3100
|
if (!existsSync6(dir)) mkdirSync4(dir, { recursive: true });
|
|
3101
|
-
|
|
3101
|
+
const hasFrontmatter = identityContent.trimStart().startsWith("---");
|
|
3102
|
+
const fileContent = hasFrontmatter ? identityContent : `---
|
|
3103
|
+
role: ${(emp.role ?? "employee").toLowerCase()}
|
|
3104
|
+
title: ${emp.role ?? "Employee"}
|
|
3105
|
+
agent_id: ${agent}
|
|
3106
|
+
org_level: ${emp.role === "COO" ? "executive" : emp.role === "CTO" || emp.role === "CMO" ? "management" : "employee"}
|
|
3107
|
+
created_by: self-heal
|
|
3108
|
+
updated_at: ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
3109
|
+
---
|
|
3110
|
+
|
|
3111
|
+
${identityContent}`;
|
|
3112
|
+
writeFileSync4(idPath, fileContent, "utf-8");
|
|
3113
|
+
identityContent = fileContent;
|
|
3102
3114
|
process.stderr.write(`[exe-launch-agent] self-healed missing identity file: ${idPath}
|
|
3103
3115
|
`);
|
|
3104
3116
|
} catch {
|
package/package.json
CHANGED