@askexenow/exe-os 0.8.73 → 0.8.75
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/cli.js +10 -0
- package/dist/bin/exe-launch-agent.js +13 -1
- package/package.json +1 -1
package/dist/bin/cli.js
CHANGED
|
@@ -25363,7 +25363,17 @@ async function runCloudSync() {
|
|
|
25363
25363
|
}
|
|
25364
25364
|
const { initStore: initStore2, disposeStore: disposeStore2 } = await Promise.resolve().then(() => (init_store(), store_exports));
|
|
25365
25365
|
const { cloudSync: cloudSync2 } = await Promise.resolve().then(() => (init_cloud_sync(), cloud_sync_exports));
|
|
25366
|
+
const { getMasterKey: getMasterKey2 } = await Promise.resolve().then(() => (init_keychain(), keychain_exports));
|
|
25367
|
+
const { initSyncCrypto: initSyncCrypto2 } = await Promise.resolve().then(() => (init_crypto(), crypto_exports));
|
|
25366
25368
|
await initStore2();
|
|
25369
|
+
const masterKey = await getMasterKey2();
|
|
25370
|
+
if (masterKey) {
|
|
25371
|
+
initSyncCrypto2(masterKey);
|
|
25372
|
+
} else {
|
|
25373
|
+
console.error("No encryption key found. Run \x1B[36mexe-os setup\x1B[0m first.");
|
|
25374
|
+
await disposeStore2();
|
|
25375
|
+
process.exit(1);
|
|
25376
|
+
}
|
|
25367
25377
|
console.log("Syncing with Exe Cloud...");
|
|
25368
25378
|
try {
|
|
25369
25379
|
const result = await cloudSync2(config.cloud);
|
|
@@ -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