pk-agent 0.7.4 → 0.7.5

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/index.js CHANGED
@@ -1471,10 +1471,26 @@ function safeMkdir(dir) {
1471
1471
  mkdirSync(dir, { recursive: true });
1472
1472
  } catch {}
1473
1473
  }
1474
+ function getUserAgentsDir(home = homedir()) {
1475
+ return join(home, ".agents", "pk-agents");
1476
+ }
1477
+ function getUserSkillsDir(home = homedir()) {
1478
+ return join(home, ".agents", "skills");
1479
+ }
1480
+ function getProjectAgentsDir(projectRoot) {
1481
+ return join(projectRoot, ".agents", "pk-agents");
1482
+ }
1483
+ function getProjectSkillsDir(projectRoot) {
1484
+ return join(projectRoot, ".agents", "skills");
1485
+ }
1474
1486
  function ensurePkAgentUserDirs(opts) {
1475
1487
  const home = opts?.homeDir ?? homedir();
1476
1488
  const base = join(home, ".pk-agent");
1489
+ const agentsBase = join(home, ".agents");
1477
1490
  safeMkdir(base);
1491
+ safeMkdir(agentsBase);
1492
+ safeMkdir(join(agentsBase, "pk-agents"));
1493
+ safeMkdir(join(agentsBase, "skills"));
1478
1494
  safeMkdir(join(base, "agents"));
1479
1495
  safeMkdir(join(base, "skills"));
1480
1496
  safeMkdir(join(base, "plugins"));
@@ -1484,7 +1500,11 @@ function ensurePkAgentUserDirs(opts) {
1484
1500
  }
1485
1501
  function ensurePkAgentProjectDirs(projectRoot) {
1486
1502
  const base = join(projectRoot, ".pk-agent");
1503
+ const agentsBase = join(projectRoot, ".agents");
1487
1504
  safeMkdir(base);
1505
+ safeMkdir(agentsBase);
1506
+ safeMkdir(join(agentsBase, "pk-agents"));
1507
+ safeMkdir(join(agentsBase, "skills"));
1488
1508
  safeMkdir(join(base, "agents"));
1489
1509
  safeMkdir(join(base, "skills"));
1490
1510
  safeMkdir(join(base, "plugins"));
@@ -5048,10 +5068,10 @@ function buildFallbackCore(intent) {
5048
5068
  }
5049
5069
  function resolveOutputPath(params) {
5050
5070
  if (params.kind === "project") {
5051
- return path10.resolve(params.projectRoot, ".pk-agent", "agents", `${params.filename}.pk-agent`);
5071
+ return path10.resolve(params.projectRoot, ".agents", "pk-agents", `${params.filename}.pk-agent`);
5052
5072
  }
5053
5073
  if (params.kind === "user") {
5054
- return path10.resolve(homedir7(), ".pk-agent", "agents", `${params.filename}.pk-agent`);
5074
+ return path10.resolve(homedir7(), ".agents", "pk-agents", `${params.filename}.pk-agent`);
5055
5075
  }
5056
5076
  if (!params.customPath)
5057
5077
  throw new Error("custom location requires path");
@@ -5577,7 +5597,7 @@ var init_parser2 = __esm(() => {
5577
5597
  });
5578
5598
 
5579
5599
  // package.json
5580
- var version = "0.7.4";
5600
+ var version = "0.7.5";
5581
5601
  var init_package = () => {};
5582
5602
 
5583
5603
  // src/storage/storage.ts
@@ -6342,8 +6362,9 @@ import { access as access3 } from "fs/promises";
6342
6362
  function getDiscoveryDirectories(projectRoot) {
6343
6363
  const home = homedir10();
6344
6364
  return [
6345
- join6(projectRoot, ".pk-agent", "skills"),
6346
6365
  join6(projectRoot, ".agents", "skills"),
6366
+ join6(projectRoot, ".pk-agent", "skills"),
6367
+ join6(home, ".agents", "skills"),
6347
6368
  join6(projectRoot, ".claude", "skills"),
6348
6369
  join6(projectRoot, ".claude", "plugins"),
6349
6370
  join6(home, ".pk-agent", "skills"),
@@ -9574,9 +9595,10 @@ function getAgentDiscoveryDirectories(projectRoot, agentDir) {
9574
9595
  if (agentDir) {
9575
9596
  dirs.push(agentDir);
9576
9597
  }
9598
+ dirs.push(join13(projectRoot, ".agents", "pk-agents"));
9577
9599
  dirs.push(join13(projectRoot, ".pk-agent", "agents"));
9578
- dirs.push(join13(projectRoot, ".agents", "agents"));
9579
9600
  dirs.push(join13(projectRoot, ".claude", "agents"));
9601
+ dirs.push(join13(home, ".agents", "pk-agents"));
9580
9602
  dirs.push(join13(home, ".pk-agent", "agents"));
9581
9603
  dirs.push(join13(home, ".claude", "agents"));
9582
9604
  return dirs;
@@ -9596,7 +9618,7 @@ async function discoverAgents(projectRoot, agentDir) {
9596
9618
  const agents = new Map;
9597
9619
  const directories = getAgentDiscoveryDirectories(projectRoot, agentDir);
9598
9620
  const ecosystemDirs = new Set([
9599
- join13(projectRoot, ".agents", "agents"),
9621
+ join13(projectRoot, ".agents", "pk-agents"),
9600
9622
  join13(projectRoot, ".claude", "agents"),
9601
9623
  join13(homedir15(), ".claude", "agents")
9602
9624
  ]);
@@ -14448,9 +14470,12 @@ import { Command as Command5 } from "commander";
14448
14470
  import chalk5 from "chalk";
14449
14471
  import { homedir as homedir11 } from "os";
14450
14472
  import { join as join7 } from "path";
14473
+ init_pk_agent_dirs();
14451
14474
  function getSourceDir(location, projectRoot) {
14452
14475
  const home = homedir11();
14453
14476
  const dirs = [
14477
+ { path: getProjectSkillsDir(projectRoot), label: ".agents/skills" },
14478
+ { path: getUserSkillsDir(home), label: "~/.agents/skills" },
14454
14479
  { path: join7(projectRoot, ".pk-agent", "skills"), label: ".pk-agent/skills" },
14455
14480
  { path: join7(home, ".pk-agent", "skills"), label: "~/.pk-agent/skills" },
14456
14481
  { path: join7(projectRoot, ".claude", "skills"), label: ".claude/skills" },
@@ -14471,6 +14496,8 @@ function createSkillsCommand() {
14471
14496
  console.log(chalk5.gray("No skills found."));
14472
14497
  console.log(chalk5.gray(`
14473
14498
  Skill directories searched:`));
14499
+ console.log(chalk5.gray(" .agents/skills/"));
14500
+ console.log(chalk5.gray(" ~/.agents/skills/"));
14474
14501
  console.log(chalk5.gray(" .pk-agent/skills/"));
14475
14502
  console.log(chalk5.gray(" ~/.pk-agent/skills/"));
14476
14503
  console.log(chalk5.gray(" .claude/skills/"));
@@ -18259,9 +18286,10 @@ import { execSync } from "child_process";
18259
18286
  import { existsSync as existsSync11, rmSync as rmSync2, mkdirSync as mkdirSync6, cpSync, statSync as statSync2, readFileSync as readFileSync7 } from "fs";
18260
18287
  import { glob as glob5 } from "glob";
18261
18288
  import { join as join20, basename as basename5, dirname as dirname13, resolve as resolve18 } from "path";
18262
- import { tmpdir as tmpdir6, homedir as homedir18 } from "os";
18289
+ import { tmpdir as tmpdir6 } from "os";
18263
18290
  import * as readline4 from "readline";
18264
18291
  import * as p from "@clack/prompts";
18292
+ init_pk_agent_dirs();
18265
18293
  function sanitizeSourceForTelemetry(source, type) {
18266
18294
  if (type === "local" || type === "skill") {
18267
18295
  return;
@@ -18419,7 +18447,7 @@ async function add(source, projectRoot, options = {}) {
18419
18447
  try {
18420
18448
  if (resolved.type === "skill") {
18421
18449
  const skillName = basename5(workDir);
18422
- const dest = options.skillDestRoot ? join20(options.skillDestRoot, skillName) : join20(projectRoot, ".pk-agent", "skills", skillName);
18450
+ const dest = options.skillDestRoot ? join20(options.skillDestRoot, skillName) : join20(getProjectSkillsDir(projectRoot), skillName);
18423
18451
  const { action } = await copyWithConflictHandling(workDir, dest, "skill", skillName, conflictMode);
18424
18452
  result.skills.push({ name: skillName, action });
18425
18453
  return result;
@@ -18432,7 +18460,7 @@ async function add(source, projectRoot, options = {}) {
18432
18460
  continue;
18433
18461
  }
18434
18462
  const src = join20(workDir, skill.path);
18435
- const dest = options.skillDestRoot ? join20(options.skillDestRoot, skill.name) : join20(projectRoot, ".pk-agent", "skills", skill.name);
18463
+ const dest = options.skillDestRoot ? join20(options.skillDestRoot, skill.name) : join20(getProjectSkillsDir(projectRoot), skill.name);
18436
18464
  const { action, newMode } = await copyWithConflictHandling(src, dest, "skill", skill.name, conflictMode);
18437
18465
  if (newMode)
18438
18466
  conflictMode = newMode;
@@ -18444,7 +18472,7 @@ async function add(source, projectRoot, options = {}) {
18444
18472
  }
18445
18473
  const src = join20(workDir, agent.path);
18446
18474
  const agentFileName = basename5(agent.path);
18447
- const dest = options.agentDestRoot ? join20(options.agentDestRoot, agentFileName) : join20(projectRoot, agent.path);
18475
+ const dest = options.agentDestRoot ? join20(options.agentDestRoot, agentFileName) : join20(getProjectAgentsDir(projectRoot), agentFileName);
18448
18476
  const { action, newMode } = await copyWithConflictHandling(src, dest, "agent", agent.path, conflictMode);
18449
18477
  if (newMode)
18450
18478
  conflictMode = newMode;
@@ -18504,12 +18532,12 @@ function printSummary(result) {
18504
18532
  async function promptSelection(skills, agents, projectRoot) {
18505
18533
  const options = [];
18506
18534
  for (const s of skills) {
18507
- const exists = existsSync11(join20(projectRoot, ".pk-agent", "skills", s.name));
18535
+ const exists = existsSync11(join20(getProjectSkillsDir(projectRoot), s.name));
18508
18536
  const marker = exists ? chalk8.yellow(" (exists)") : "";
18509
18537
  options.push({ value: `skill:${s.name}`, label: `${chalk8.blue("[skill]")} ${s.name}${marker}` });
18510
18538
  }
18511
18539
  for (const a of agents) {
18512
- const exists = existsSync11(join20(projectRoot, a.path));
18540
+ const exists = existsSync11(join20(getProjectAgentsDir(projectRoot), basename5(a.path)));
18513
18541
  const marker = exists ? chalk8.yellow(" (exists)") : "";
18514
18542
  options.push({ value: `agent:${a.path}`, label: `${chalk8.magenta("[agent]")} ${a.path}${marker}` });
18515
18543
  }
@@ -18531,13 +18559,13 @@ async function promptSelection(skills, agents, projectRoot) {
18531
18559
  return { selectedSkills, selectedAgents };
18532
18560
  }
18533
18561
  function createAddCommand() {
18534
- const addCommand = new Command8("add").description("Add skills and agents from a GitHub repo, git URL, or local path").argument("<source>", "Source to add (user/repo, git URL, or local path)").option("--force", "Overwrite existing skills/agents without prompting").option("--all", "Install all skills and agents without prompting").option("--list", "List available skills and agents without installing").option("-s, --skill <name...>", "Install specific skill(s) by name").option("-a, --agent <path...>", "Install specific agent(s) by path").option("-u, --urlpath <path>", "Install into .pk-agent/ at this filepath instead of auto-detected project root").action(async (source, options) => {
18562
+ const addCommand = new Command8("add").description("Add skills and agents from a GitHub repo, git URL, or local path").argument("<source>", "Source to add (user/repo, git URL, or local path)").option("--force", "Overwrite existing skills/agents without prompting").option("--all", "Install all skills and agents without prompting").option("--list", "List available skills and agents without installing").option("-s, --skill <name...>", "Install specific skill(s) by name").option("-a, --agent <path...>", "Install specific agent(s) by path").option("-u, --urlpath <path>", "Install into .agents/ at this filepath instead of auto-detected project root").action(async (source, options) => {
18535
18563
  const projectContext = resolveProjectContext(process.cwd());
18536
18564
  const startTime = Date.now();
18537
18565
  const effectiveRoot = options.urlpath ? resolve18(options.urlpath) : projectContext.projectRoot;
18538
18566
  if (options.urlpath) {
18539
- mkdirSync6(join20(effectiveRoot, ".pk-agent", "skills"), { recursive: true });
18540
- mkdirSync6(join20(effectiveRoot, ".pk-agent", "agents"), { recursive: true });
18567
+ mkdirSync6(getProjectSkillsDir(effectiveRoot), { recursive: true });
18568
+ mkdirSync6(getProjectAgentsDir(effectiveRoot), { recursive: true });
18541
18569
  }
18542
18570
  let telemetryData = {
18543
18571
  sourceType: "github",
@@ -18579,11 +18607,11 @@ function createAddCommand() {
18579
18607
  if (resolved.type === "skill") {
18580
18608
  let skillDestRoot2;
18581
18609
  if (options.urlpath) {
18582
- skillDestRoot2 = join20(effectiveRoot, ".pk-agent", "skills");
18610
+ skillDestRoot2 = getProjectSkillsDir(effectiveRoot);
18583
18611
  } else {
18584
18612
  const storageOptions = [
18585
- { value: "project", label: "Project", hint: `.pk-agent/skills/ in project root` },
18586
- { value: "user", label: "User", hint: `~/.pk-agent/skills/ (available globally)` },
18613
+ { value: "project", label: "Project", hint: `.agents/skills/ in project root` },
18614
+ { value: "user", label: "User", hint: `~/.agents/skills/ (available globally)` },
18587
18615
  { value: "cancel", label: "Cancel" }
18588
18616
  ];
18589
18617
  const location = await p.select({
@@ -18596,7 +18624,7 @@ function createAddCommand() {
18596
18624
  p.outro("Cancelled");
18597
18625
  return;
18598
18626
  }
18599
- skillDestRoot2 = location === "user" ? join20(homedir18(), ".pk-agent", "skills") : join20(effectiveRoot, ".pk-agent", "skills");
18627
+ skillDestRoot2 = location === "user" ? getUserSkillsDir() : getProjectSkillsDir(effectiveRoot);
18600
18628
  }
18601
18629
  const result2 = await add(source, effectiveRoot, {
18602
18630
  force: options.force ?? false,
@@ -18623,7 +18651,7 @@ function createAddCommand() {
18623
18651
  if (options.list) {
18624
18652
  if (skills.length > 0) {
18625
18653
  const skillLines = skills.map((skill) => {
18626
- const exists = existsSync11(join20(effectiveRoot, ".pk-agent", "skills", skill.name));
18654
+ const exists = existsSync11(join20(getProjectSkillsDir(effectiveRoot), skill.name));
18627
18655
  const marker = exists ? chalk8.yellow(" (exists)") : "";
18628
18656
  const desc = skill.description ? `
18629
18657
  ${chalk8.gray(skill.description)}` : "";
@@ -18635,7 +18663,7 @@ ${skillLines.join(`
18635
18663
  }
18636
18664
  if (agents.length > 0) {
18637
18665
  const agentLines = agents.map((agent) => {
18638
- const exists = existsSync11(join20(effectiveRoot, agent.path));
18666
+ const exists = existsSync11(join20(getProjectAgentsDir(effectiveRoot), basename5(agent.path)));
18639
18667
  const marker = exists ? chalk8.yellow(" (exists)") : "";
18640
18668
  return ` ${chalk8.cyan(agent.path)}${marker}`;
18641
18669
  });
@@ -18692,16 +18720,16 @@ ${agentLines.join(`
18692
18720
  const hasAgentsToInstall = selectedAgents ? selectedAgents.length > 0 : agents.length > 0;
18693
18721
  if (options.urlpath) {
18694
18722
  if (hasSkillsToInstall) {
18695
- skillDestRoot = join20(effectiveRoot, ".pk-agent", "skills");
18723
+ skillDestRoot = getProjectSkillsDir(effectiveRoot);
18696
18724
  }
18697
18725
  if (hasAgentsToInstall) {
18698
- agentDestRoot = join20(effectiveRoot, ".pk-agent", "agents");
18726
+ agentDestRoot = getProjectAgentsDir(effectiveRoot);
18699
18727
  }
18700
18728
  } else {
18701
18729
  if (hasSkillsToInstall) {
18702
18730
  const storageOptions = [
18703
- { value: "project", label: "Project", hint: `.pk-agent/skills/ in project root` },
18704
- { value: "user", label: "User", hint: `~/.pk-agent/skills/ (available globally)` },
18731
+ { value: "project", label: "Project", hint: `.agents/skills/ in project root` },
18732
+ { value: "user", label: "User", hint: `~/.agents/skills/ (available globally)` },
18705
18733
  { value: "cancel", label: "Cancel" }
18706
18734
  ];
18707
18735
  const location = await p.select({
@@ -18715,15 +18743,15 @@ ${agentLines.join(`
18715
18743
  return;
18716
18744
  }
18717
18745
  if (location === "project") {
18718
- skillDestRoot = join20(effectiveRoot, ".pk-agent", "skills");
18746
+ skillDestRoot = getProjectSkillsDir(effectiveRoot);
18719
18747
  } else if (location === "user") {
18720
- skillDestRoot = join20(homedir18(), ".pk-agent", "skills");
18748
+ skillDestRoot = getUserSkillsDir();
18721
18749
  }
18722
18750
  }
18723
18751
  if (hasAgentsToInstall) {
18724
18752
  const storageOptions = [
18725
- { value: "project", label: "Project", hint: `.pk-agent/agents/ in project root` },
18726
- ...effectiveRoot ? [{ value: "user", label: "User", hint: `~/.pk-agent/agents/ (available globally)` }] : [],
18753
+ { value: "project", label: "Project", hint: `.agents/pk-agents/ in project root` },
18754
+ ...effectiveRoot ? [{ value: "user", label: "User", hint: `~/.agents/pk-agents/ (available globally)` }] : [],
18727
18755
  { value: "cancel", label: "Cancel" }
18728
18756
  ];
18729
18757
  const location = await p.select({
@@ -18737,9 +18765,9 @@ ${agentLines.join(`
18737
18765
  return;
18738
18766
  }
18739
18767
  if (location === "project") {
18740
- agentDestRoot = join20(effectiveRoot, ".pk-agent", "agents");
18768
+ agentDestRoot = getProjectAgentsDir(effectiveRoot);
18741
18769
  } else if (location === "user") {
18742
- agentDestRoot = join20(homedir18(), ".pk-agent", "agents");
18770
+ agentDestRoot = getUserAgentsDir();
18743
18771
  }
18744
18772
  }
18745
18773
  }
@@ -18791,7 +18819,6 @@ import * as p2 from "@clack/prompts";
18791
18819
  import matter4 from "gray-matter";
18792
18820
  import { writeFileSync as writeFileSync5, mkdirSync as mkdirSync7, existsSync as existsSync12 } from "fs";
18793
18821
  import { join as join21, resolve as resolve19 } from "path";
18794
- import { homedir as homedir19 } from "os";
18795
18822
  init_pk_agent_dirs();
18796
18823
  var DEFAULTS = {
18797
18824
  model: "anthropic:claude-sonnet-4-5",
@@ -18995,8 +19022,8 @@ function createCreateCommand() {
18995
19022
  const locResult = await p2.select({
18996
19023
  message: "Where should the agent be saved?",
18997
19024
  options: [
18998
- { value: "project", label: "Project", hint: `${projectRoot}/.pk-agent/agents/` },
18999
- { value: "user", label: "User (global)", hint: "~/.pk-agent/agents/" },
19025
+ { value: "project", label: "Project", hint: `${getProjectAgentsDir(projectRoot)}/` },
19026
+ { value: "user", label: "User (global)", hint: `${getUserAgentsDir()}/` },
19000
19027
  { value: "custom", label: "Custom path" },
19001
19028
  { value: "cancel", label: "Cancel" }
19002
19029
  ]
@@ -19007,9 +19034,9 @@ function createCreateCommand() {
19007
19034
  }
19008
19035
  let destDir;
19009
19036
  if (locResult === "project") {
19010
- destDir = join21(projectRoot, ".pk-agent", "agents");
19037
+ destDir = getProjectAgentsDir(projectRoot);
19011
19038
  } else if (locResult === "user") {
19012
- destDir = join21(homedir19(), ".pk-agent", "agents");
19039
+ destDir = getUserAgentsDir();
19013
19040
  } else {
19014
19041
  const pathResult = await p2.text({
19015
19042
  message: "Directory path",
@@ -19067,7 +19094,7 @@ import { basename as basename6, resolve as resolve20, dirname as dirname15 } fro
19067
19094
  // src/plugin/index.ts
19068
19095
  init_logger();
19069
19096
  import { glob as glob6 } from "glob";
19070
- import { homedir as homedir20, tmpdir as tmpdir7 } from "os";
19097
+ import { homedir as homedir18, tmpdir as tmpdir7 } from "os";
19071
19098
  import { join as join22, dirname as dirname14, extname } from "path";
19072
19099
  import { pathToFileURL } from "url";
19073
19100
  import { stat as stat2, writeFile as writeFile7, rm as rm2 } from "fs/promises";
@@ -19086,7 +19113,7 @@ class PluginManager {
19086
19113
  async loadPlugins(customDirs) {
19087
19114
  const pluginPaths = customDirs && customDirs.length > 0 ? customDirs.map((dir) => join22(dir, "*.{ts,js}").replace(/\\/g, "/")) : [
19088
19115
  "./.pk-agent/plugins/*.{ts,js}",
19089
- join22(homedir20(), ".pk-agent/plugins/*.{ts,js}").replace(/\\/g, "/")
19116
+ join22(homedir18(), ".pk-agent/plugins/*.{ts,js}").replace(/\\/g, "/")
19090
19117
  ];
19091
19118
  for (const pattern of pluginPaths) {
19092
19119
  try {
@@ -20302,10 +20329,11 @@ function createTestCommand() {
20302
20329
  }
20303
20330
 
20304
20331
  // src/cli/tray.ts
20332
+ init_pk_agent_dirs();
20305
20333
  import { Command as Command14 } from "commander";
20306
20334
  import matter5 from "gray-matter";
20307
20335
  import YAML2 from "yaml";
20308
- import { homedir as homedir21 } from "os";
20336
+ import { homedir as homedir19 } from "os";
20309
20337
  import { basename as basename8, join as join24, resolve as resolve25 } from "path";
20310
20338
  import { existsSync as existsSync17 } from "fs";
20311
20339
  import { mkdir as mkdir7, readFile as readFile11, readdir, writeFile as writeFile8 } from "fs/promises";
@@ -20320,7 +20348,7 @@ var TOGGLEABLE_ABILITIES = [
20320
20348
  "pkAgentBuilder"
20321
20349
  ];
20322
20350
  function getGlobalAgentsDir() {
20323
- return join24(homedir21(), ".pk-agent", "agents");
20351
+ return getUserAgentsDir();
20324
20352
  }
20325
20353
  function getAbilityListFromFrontmatter(frontmatter) {
20326
20354
  const abilities = [];
@@ -20516,7 +20544,7 @@ function Build-Menu {
20516
20544
  $openAgents = New-Object System.Windows.Forms.ToolStripMenuItem
20517
20545
  $openAgents.Text = 'Open global agents folder'
20518
20546
  $openAgents.Add_Click({
20519
- $dir = Join-Path $HOME '.pk-agent\\agents'
20547
+ $dir = Join-Path $HOME '.agents\\pk-agents'
20520
20548
  New-Item -ItemType Directory -Force -Path $dir | Out-Null
20521
20549
  Start-Process explorer.exe $dir
20522
20550
  })
@@ -20549,11 +20577,12 @@ async function launchWindowsTray() {
20549
20577
  const cliExecPath = process.execPath;
20550
20578
  const cliScriptPath = process.argv[1];
20551
20579
  const script = buildTrayScript(cliExecPath, cliScriptPath);
20552
- const scriptPath = join24(homedir21(), ".pk-agent", "cache", "pk-agent-tray.ps1");
20553
- await mkdir7(join24(homedir21(), ".pk-agent", "cache"), { recursive: true });
20580
+ const scriptPath = join24(homedir19(), ".pk-agent", "cache", "pk-agent-tray.ps1");
20581
+ await mkdir7(join24(homedir19(), ".pk-agent", "cache"), { recursive: true });
20554
20582
  await writeFile8(scriptPath, script, "utf-8");
20555
20583
  spawn7("powershell", [
20556
20584
  "-NoProfile",
20585
+ "-STA",
20557
20586
  "-ExecutionPolicy",
20558
20587
  "Bypass",
20559
20588
  "-File",
@@ -20909,5 +20938,5 @@ if (process.argv[2] === "--internal-worker") {
20909
20938
  }
20910
20939
  }
20911
20940
 
20912
- //# debugId=18D15260DA895C9E64756E2164756E21
20941
+ //# debugId=89312255A2812ED064756E2164756E21
20913
20942
  //# sourceMappingURL=index.js.map