@amaster.ai/employee-runtime-connector 0.1.1-beta.70 → 0.1.1-beta.71

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.
@@ -2939,6 +2939,34 @@ function applyManagedPiToolAllowlist(args, profile) {
2939
2939
  ...args.slice(printArgIndex)
2940
2940
  ];
2941
2941
  }
2942
+ function applyManagedPiRunExitClosureArgs(args, profile) {
2943
+ const narrowedArgs = applyManagedPiToolAllowlist(args, profile);
2944
+ const toolAllowlist = Array.isArray(profile?.toolAllowlist) ? profile.toolAllowlist.filter((name) => typeof name === "string" && name) : [];
2945
+ if (toolAllowlist.length === 0 || toolAllowlist.includes("read") || typeof profile?.profileRoot !== "string" || !profile.profileRoot) {
2946
+ return narrowedArgs;
2947
+ }
2948
+ const canonicalPath = (filePath) => {
2949
+ try {
2950
+ return realpathSync2(filePath);
2951
+ } catch {
2952
+ return resolve3(filePath);
2953
+ }
2954
+ };
2955
+ const roleSkillsVisibilityExtension = canonicalPath(resolve3(
2956
+ profile.profileRoot,
2957
+ "extensions",
2958
+ MANAGED_PI_ROLE_SKILLS_VISIBILITY_FILENAME
2959
+ ));
2960
+ const closureArgs = [];
2961
+ for (let index = 0; index < narrowedArgs.length; index += 1) {
2962
+ if (narrowedArgs[index] === "--extension" && typeof narrowedArgs[index + 1] === "string" && canonicalPath(narrowedArgs[index + 1]) === roleSkillsVisibilityExtension) {
2963
+ index += 1;
2964
+ continue;
2965
+ }
2966
+ closureArgs.push(narrowedArgs[index]);
2967
+ }
2968
+ return closureArgs;
2969
+ }
2942
2970
  function createManagedPiMcpProfileApi(options = {}) {
2943
2971
  const spawnSyncImpl = typeof options.spawnSync === "function" ? options.spawnSync : spawnSync2;
2944
2972
  const chownSyncImpl = typeof options.chownSync === "function" ? options.chownSync : chownSync2;
@@ -11312,7 +11340,7 @@ var source_acquisition_compatibility_default = {
11312
11340
  };
11313
11341
 
11314
11342
  // src/amaster-runtime-daemon.mjs
11315
- var CONNECTOR_VERSION = "0.1.1-beta.70";
11343
+ var CONNECTOR_VERSION = "0.1.1-beta.71";
11316
11344
  var CONNECTOR_CONTRACT_VERSION = "2026-06-04.v1";
11317
11345
  var SOURCE_ACQUISITION_CAPABILITY = source_acquisition_compatibility_default.profileVersion;
11318
11346
  var daemonRequire = createRequire(import.meta.url);
@@ -14601,8 +14629,9 @@ async function executeRunExitClosureTurn(config, inputState, options = {}) {
14601
14629
  executionConfig.runExitClosureBaseline,
14602
14630
  { commandId: state.commandId, runId: commandRunId(command) }
14603
14631
  ) : { status: "not_required" };
14604
- const closureArgs = executorKind === "pi" ? applyManagedPiToolAllowlist(args, {
14605
- toolAllowlist: Array.isArray(managedMcpClosureBaseline.toolAllowlist) ? managedMcpClosureBaseline.toolAllowlist : null
14632
+ const closureArgs = executorKind === "pi" ? applyManagedPiRunExitClosureArgs(args, {
14633
+ toolAllowlist: Array.isArray(managedMcpClosureBaseline.toolAllowlist) ? managedMcpClosureBaseline.toolAllowlist : null,
14634
+ profileRoot: readString(asRecord(executionConfig.runExitClosureBaseline).profileRoot)
14606
14635
  }) : args;
14607
14636
  const describeRequired = executorKind !== "pi" || managedMcpClosureBaseline.status !== "restored" || Array.isArray(managedMcpClosureBaseline.toolAllowlist);
14608
14637
  await ingestLog(config, command, "system", "info", "Starting bounded run-exit disposition closure turn", {
@@ -6,7 +6,7 @@ import { basename, dirname, join, resolve } from "node:path";
6
6
  import { homedir, hostname } from "node:os";
7
7
  import { fileURLToPath } from "node:url";
8
8
 
9
- const CONNECTOR_VERSION = "0.1.1-beta.70";
9
+ const CONNECTOR_VERSION = "0.1.1-beta.71";
10
10
 
11
11
  const CAPABILITIES = [
12
12
  "remote_registration",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaster.ai/employee-runtime-connector",
3
- "version": "0.1.1-beta.70",
3
+ "version": "0.1.1-beta.71",
4
4
  "description": "MirrorX runtime connector CLI and daemon",
5
5
  "license": "MIT",
6
6
  "type": "module",