@aspectlylabs/mikka 0.0.10 → 0.0.12

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.
@@ -55,7 +55,8 @@ async function start(config, remainder) {
55
55
  if (key === "CLAUDE_CODE_OAUTH_TOKEN" && value !== PLACEHOLDER) fail();
56
56
  }
57
57
  delete config.env.CLAUDE_CODE_OAUTH_TOKEN;
58
- config.env.PATH = "/usr/local/bin:/usr/bin:/bin";
58
+ if (config.githubBin !== undefined && (typeof config.githubBin !== 'string' || !config.githubBin.startsWith('/') || !config.githubBin.endsWith('/github/bin') || config.githubBin.includes(':') || config.githubBin.includes('\n'))) fail();
59
+ config.env.PATH = `${config.githubBin ? config.githubBin + ':' : ''}/usr/local/bin:/usr/bin:/bin`;
59
60
  mkdirSync(config.env.HOME, { recursive: true, mode: 0o700 });
60
61
  // Model credentials stay on the original task broker. Public downloads use
61
62
  // a separate live, public-IP-only host proxy, never that credential endpoint.
@@ -144,10 +145,12 @@ async function start(config, remainder) {
144
145
  "GIT_CONFIG_GLOBAL",
145
146
  "GIT_CONFIG_SYSTEM",
146
147
  "GIT_TERMINAL_PROMPT",
148
+ 'PATH', 'GH_HOST', 'GH_REPO', 'GIT_AUTHOR_NAME', 'GIT_AUTHOR_EMAIL', 'GIT_COMMITTER_NAME', 'GIT_COMMITTER_EMAIL',
149
+ ...Object.keys(config.env).filter(key => /^GIT_CONFIG_(?:COUNT|KEY_[0-9]+|VALUE_[0-9]+)$/.test(key)),
147
150
  "HOME",
148
151
  ...(egress ? ["HTTP_PROXY", "HTTPS_PROXY", "http_proxy", "https_proxy", "NO_PROXY", "no_proxy", "NODE_USE_ENV_PROXY"] : []),
149
152
  ])
150
- args.push(
153
+ if (config.env[key] !== undefined) args.push(
151
154
  "-c",
152
155
  `shell_environment_policy.set.${key}=${JSON.stringify(config.env[key])}`,
153
156
  );