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.
- package/dist/cli/commands/experiment.js +9 -50
- package/dist/cli/commands/experiment.js.map +1 -1
- package/dist/cli/commands/pipeline.js +105 -92
- package/dist/cli/commands/pipeline.js.map +1 -1
- package/dist/cli/commands/spawn.js +4 -4
- package/dist/cli/commands/spawn.js.map +1 -1
- package/dist/index.js +1854 -1026
- package/dist/index.js.map +4 -4
- package/dist/providers/claude-code.js +35 -22
- package/dist/providers/claude-code.js.map +4 -4
- package/dist/providers/codex.js +35 -22
- package/dist/providers/codex.js.map +4 -4
- package/dist/providers/kimi.js +35 -22
- package/dist/providers/kimi.js.map +4 -4
- package/dist/providers/opencode.js +35 -22
- package/dist/providers/opencode.js.map +4 -4
- package/dist/sdk/autonomous.d.ts +11 -0
- package/dist/sdk/autonomous.js +23 -0
- package/dist/sdk/autonomous.js.map +1 -0
- package/dist/sdk/experiment.js +15 -32
- package/dist/sdk/experiment.js.map +1 -1
- package/dist/sdk/pipeline.js +9 -25
- package/dist/sdk/pipeline.js.map +1 -1
- package/dist/sdk/ralph.js +7 -23
- package/dist/sdk/ralph.js.map +1 -1
- package/dist/sdk/spawn.d.ts +2 -0
- package/dist/sdk/spawn.js +10 -0
- package/dist/sdk/spawn.js.map +1 -1
- package/dist/templates/pipeline/SKILL_plan.md +4 -1
- package/package.json +10 -9
package/dist/providers/codex.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
941
|
+
import chalk10 from "chalk";
|
|
935
942
|
|
|
936
943
|
// packages/design-system/src/prompts/primitives/note.ts
|
|
937
|
-
import
|
|
944
|
+
import chalk11 from "chalk";
|
|
938
945
|
|
|
939
946
|
// packages/design-system/src/prompts/primitives/outro.ts
|
|
940
|
-
import
|
|
947
|
+
import chalk12 from "chalk";
|
|
941
948
|
|
|
942
949
|
// packages/design-system/src/prompts/primitives/spinner.ts
|
|
943
|
-
import
|
|
950
|
+
import chalk14 from "chalk";
|
|
944
951
|
|
|
945
952
|
// packages/design-system/src/static/spinner.ts
|
|
946
|
-
import
|
|
953
|
+
import chalk13 from "chalk";
|
|
947
954
|
|
|
948
955
|
// packages/design-system/src/static/menu.ts
|
|
949
|
-
import
|
|
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
|
|
969
|
-
import { homedir as
|
|
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(
|
|
1360
|
-
const ext = getExtension(
|
|
1372
|
+
function detectFormat(path4) {
|
|
1373
|
+
const ext = getExtension(path4);
|
|
1361
1374
|
return extensionMap[ext];
|
|
1362
1375
|
}
|
|
1363
|
-
function getExtension(
|
|
1364
|
-
const lastDot =
|
|
1376
|
+
function getExtension(path4) {
|
|
1377
|
+
const lastDot = path4.lastIndexOf(".");
|
|
1365
1378
|
if (lastDot === -1) {
|
|
1366
1379
|
return "";
|
|
1367
1380
|
}
|
|
1368
|
-
return
|
|
1381
|
+
return path4.slice(lastDot).toLowerCase();
|
|
1369
1382
|
}
|
|
1370
1383
|
|
|
1371
1384
|
// packages/config-mutations/src/execution/path-utils.ts
|
|
1372
|
-
import
|
|
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 :
|
|
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 =
|
|
1420
|
+
const rawDirectory = path3.dirname(expanded);
|
|
1408
1421
|
const mappedDirectory = pathMapper.mapTargetDirectory({
|
|
1409
1422
|
targetDirectory: rawDirectory
|
|
1410
1423
|
});
|
|
1411
|
-
const filename =
|
|
1412
|
-
return filename.length === 0 ? mappedDirectory :
|
|
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
|