poe-code 3.0.163 → 3.0.165

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.
@@ -904,12 +904,19 @@ import { Table } from "console-table-printer";
904
904
  import chalk7 from "chalk";
905
905
  var AGENT_PREFIX = `${chalk7.green.bold("\u2713")} agent: `;
906
906
 
907
+ // packages/design-system/src/dashboard/buffer.ts
908
+ import chalk8 from "chalk";
909
+
910
+ // packages/design-system/src/dashboard/terminal.ts
911
+ import readline from "node:readline";
912
+ import { PassThrough } from "node:stream";
913
+
907
914
  // packages/design-system/src/prompts/index.ts
908
- import chalk14 from "chalk";
915
+ import chalk15 from "chalk";
909
916
  import * as clack from "@clack/prompts";
910
917
 
911
918
  // packages/design-system/src/prompts/primitives/cancel.ts
912
- import chalk8 from "chalk";
919
+ import chalk9 from "chalk";
913
920
 
914
921
  // node_modules/@clack/core/dist/index.mjs
915
922
  var import_sisteransi = __toESM(require_src(), 1);
@@ -931,22 +938,28 @@ var _ = { actions: new Set(At), aliases: /* @__PURE__ */ new Map([["k", "up"], [
931
938
  var bt = globalThis.process.platform.startsWith("win");
932
939
 
933
940
  // packages/design-system/src/prompts/primitives/intro.ts
934
- import chalk9 from "chalk";
941
+ import chalk10 from "chalk";
935
942
 
936
943
  // packages/design-system/src/prompts/primitives/note.ts
937
- import chalk10 from "chalk";
944
+ import chalk11 from "chalk";
938
945
 
939
946
  // packages/design-system/src/prompts/primitives/outro.ts
940
- import chalk11 from "chalk";
947
+ import chalk12 from "chalk";
941
948
 
942
949
  // packages/design-system/src/prompts/primitives/spinner.ts
943
- import chalk13 from "chalk";
950
+ import chalk14 from "chalk";
944
951
 
945
952
  // packages/design-system/src/static/spinner.ts
946
- import chalk12 from "chalk";
953
+ import chalk13 from "chalk";
947
954
 
948
955
  // packages/design-system/src/static/menu.ts
949
- import chalk15 from "chalk";
956
+ import chalk16 from "chalk";
957
+
958
+ // packages/agent-spawn/src/acp/replay.ts
959
+ import path from "node:path";
960
+ import { homedir } from "node:os";
961
+ import { open, readdir } from "node:fs/promises";
962
+ import { createInterface as createInterface2 } from "node:readline";
950
963
 
951
964
  // packages/agent-spawn/src/acp/spawn.ts
952
965
  import { spawn as spawnChildProcess3 } from "node:child_process";
@@ -961,13 +974,13 @@ import {
961
974
 
962
975
  // packages/poe-acp-client/src/run-report.ts
963
976
  import * as fsPromises from "node:fs/promises";
964
- import { homedir } from "node:os";
977
+ import { homedir as homedir2 } from "node:os";
965
978
  import { join } from "node:path";
966
979
 
967
980
  // packages/agent-spawn/src/acp/middlewares/spawn-log.ts
968
- import path from "node:path";
969
- import { homedir as homedir2 } from "node:os";
970
- import { mkdir, open } from "node:fs/promises";
981
+ import path2 from "node:path";
982
+ import { homedir as homedir3 } from "node:os";
983
+ import { mkdir, open as open2 } from "node:fs/promises";
971
984
 
972
985
  // src/utils/command-checks.ts
973
986
  function formatCommandRunnerResult(result) {
@@ -1356,20 +1369,20 @@ function getConfigFormat(pathOrFormat) {
1356
1369
  }
1357
1370
  return formatRegistry[formatName];
1358
1371
  }
1359
- function detectFormat(path3) {
1360
- const ext = getExtension(path3);
1372
+ function detectFormat(path4) {
1373
+ const ext = getExtension(path4);
1361
1374
  return extensionMap[ext];
1362
1375
  }
1363
- function getExtension(path3) {
1364
- const lastDot = path3.lastIndexOf(".");
1376
+ function getExtension(path4) {
1377
+ const lastDot = path4.lastIndexOf(".");
1365
1378
  if (lastDot === -1) {
1366
1379
  return "";
1367
1380
  }
1368
- return path3.slice(lastDot).toLowerCase();
1381
+ return path4.slice(lastDot).toLowerCase();
1369
1382
  }
1370
1383
 
1371
1384
  // packages/config-mutations/src/execution/path-utils.ts
1372
- import path2 from "node:path";
1385
+ import path3 from "node:path";
1373
1386
  function expandHome(targetPath, homeDir) {
1374
1387
  if (!targetPath?.startsWith("~")) {
1375
1388
  return targetPath;
@@ -1386,7 +1399,7 @@ function expandHome(targetPath, homeDir) {
1386
1399
  remainder = remainder.slice(1);
1387
1400
  }
1388
1401
  }
1389
- return remainder.length === 0 ? homeDir : path2.join(homeDir, remainder);
1402
+ return remainder.length === 0 ? homeDir : path3.join(homeDir, remainder);
1390
1403
  }
1391
1404
  function validateHomePath(targetPath) {
1392
1405
  if (typeof targetPath !== "string" || targetPath.length === 0) {
@@ -1404,12 +1417,12 @@ function resolvePath(rawPath, homeDir, pathMapper) {
1404
1417
  if (!pathMapper) {
1405
1418
  return expanded;
1406
1419
  }
1407
- const rawDirectory = path2.dirname(expanded);
1420
+ const rawDirectory = path3.dirname(expanded);
1408
1421
  const mappedDirectory = pathMapper.mapTargetDirectory({
1409
1422
  targetDirectory: rawDirectory
1410
1423
  });
1411
- const filename = path2.basename(expanded);
1412
- return filename.length === 0 ? mappedDirectory : path2.join(mappedDirectory, filename);
1424
+ const filename = path3.basename(expanded);
1425
+ return filename.length === 0 ? mappedDirectory : path3.join(mappedDirectory, filename);
1413
1426
  }
1414
1427
 
1415
1428
  // packages/config-mutations/src/fs-utils.ts