poe-code 3.0.180 → 3.0.181

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
@@ -28942,7 +28942,8 @@ function parseMcpConfig2(value, fieldName, filePath) {
28942
28942
  const config = expectRecord(value, fieldName, filePath);
28943
28943
  return {
28944
28944
  command: expectString(config.command, `${fieldName}.command`, filePath),
28945
- args: config.args === void 0 ? void 0 : expectStringArray(config.args, `${fieldName}.args`, filePath)
28945
+ args: config.args === void 0 ? void 0 : expectStringArray(config.args, `${fieldName}.args`, filePath),
28946
+ timeout: config.timeout === void 0 ? void 0 : expectPositiveNumber(config.timeout, `${fieldName}.timeout`, filePath)
28946
28947
  };
28947
28948
  }
28948
28949
  function parseStatusBlock(value, filePath) {
@@ -28976,6 +28977,12 @@ function expectNumber(value, fieldName, filePath) {
28976
28977
  }
28977
28978
  return value;
28978
28979
  }
28980
+ function expectPositiveNumber(value, fieldName, filePath) {
28981
+ if (typeof value !== "number" || !Number.isFinite(value) || value <= 0) {
28982
+ throw new Error(`${filePath}: ${fieldName} must be a positive number`);
28983
+ }
28984
+ return value;
28985
+ }
28979
28986
  function expectStringArray(value, fieldName, filePath) {
28980
28987
  if (!Array.isArray(value) || value.some((item) => typeof item !== "string")) {
28981
28988
  throw new Error(`${filePath}: ${fieldName} must be an array of strings`);
@@ -29598,7 +29605,8 @@ function createWorkflowServer() {
29598
29605
  function toSpawnMcpServer(config) {
29599
29606
  return {
29600
29607
  command: config.command,
29601
- ...config.args ? { args: [...config.args] } : {}
29608
+ ...config.args ? { args: [...config.args] } : {},
29609
+ ...config.timeout !== void 0 ? { timeout: config.timeout } : {}
29602
29610
  };
29603
29611
  }
29604
29612
  async function runAutonomous3(input) {
@@ -40506,7 +40514,7 @@ var init_package = __esm({
40506
40514
  "package.json"() {
40507
40515
  package_default = {
40508
40516
  name: "poe-code",
40509
- version: "3.0.180",
40517
+ version: "3.0.181",
40510
40518
  description: "CLI tool to configure Poe API for developer workflows.",
40511
40519
  type: "module",
40512
40520
  main: "./dist/index.js",