@askexenow/exe-os 0.9.26 → 0.9.27

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.
@@ -4465,10 +4465,14 @@ function loadIdentity(agent) {
4465
4465
  }
4466
4466
  return null;
4467
4467
  }
4468
- function writePromptFile(agent, identity, behaviorsPath) {
4468
+ function writePromptFile(agent, identity, behaviorsPath, globalProcedures) {
4469
4469
  const promptDir = path15.join(os11.homedir(), ".exe-os", "codex-prompt");
4470
4470
  mkdirSync7(promptDir, { recursive: true });
4471
- let prompt = identity;
4471
+ let prompt = "";
4472
+ if (globalProcedures) {
4473
+ prompt += globalProcedures + "\n\n";
4474
+ }
4475
+ prompt += identity;
4472
4476
  if (behaviorsPath && existsSync14(behaviorsPath)) {
4473
4477
  const behaviors = readFileSync9(behaviorsPath, "utf-8").trim();
4474
4478
  if (behaviors) {
@@ -4533,9 +4537,21 @@ async function main() {
4533
4537
  );
4534
4538
  }
4535
4539
  let behaviorsPath = null;
4540
+ let globalProcedures = null;
4536
4541
  try {
4537
4542
  await initStore();
4538
4543
  behaviorsPath = await exportBehaviorsForAgent(agent, "");
4544
+ try {
4545
+ const { loadGlobalProcedures: loadGlobalProcedures2, getGlobalProceduresBlock: getGlobalProceduresBlock2 } = await Promise.resolve().then(() => (init_global_procedures(), global_procedures_exports));
4546
+ await loadGlobalProcedures2();
4547
+ const block = getGlobalProceduresBlock2();
4548
+ if (block) globalProcedures = block;
4549
+ } catch (err) {
4550
+ process.stderr.write(
4551
+ `[exe-start-codex] global procedures load failed: ${err instanceof Error ? err.message : String(err)}
4552
+ `
4553
+ );
4554
+ }
4539
4555
  } catch (err) {
4540
4556
  process.stderr.write(
4541
4557
  `[exe-start-codex] behaviors export failed for ${agent}: ${err instanceof Error ? err.message : String(err)}
@@ -4547,7 +4563,7 @@ async function main() {
4547
4563
  } catch {
4548
4564
  }
4549
4565
  }
4550
- const promptPath = identity ? writePromptFile(agent, identity, behaviorsPath) : null;
4566
+ const promptPath = identity ? writePromptFile(agent, identity, behaviorsPath, globalProcedures) : null;
4551
4567
  const memoryAgent = baseAgentName(agent);
4552
4568
  process.env.AGENT_ID = memoryAgent;
4553
4569
  if (!process.env.EXE_SESSION_KEY) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askexenow/exe-os",
3
- "version": "0.9.26",
3
+ "version": "0.9.27",
4
4
  "description": "AI employee operating system — persistent memory, task management, and multi-agent coordination for Claude Code.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",