@goondan/openharness-cli 0.1.10 → 0.1.11

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.
Files changed (2) hide show
  1. package/dist/index.js +22 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -81,7 +81,17 @@ async function runCommand(text, options) {
81
81
  }
82
82
  let harness;
83
83
  try {
84
- harness = await createHarness(config);
84
+ const effectiveConfig = options.maxSteps === void 0 ? config : {
85
+ ...config,
86
+ agents: {
87
+ ...config.agents,
88
+ [agentName]: {
89
+ ...config.agents[agentName],
90
+ maxSteps: options.maxSteps
91
+ }
92
+ }
93
+ };
94
+ harness = await createHarness(effectiveConfig);
85
95
  } catch (err) {
86
96
  console.error(`Error creating harness: ${err instanceof Error ? err.message : String(err)}`);
87
97
  process.exit(1);
@@ -136,7 +146,17 @@ async function replCommand(options) {
136
146
  }
137
147
  let harness;
138
148
  try {
139
- harness = await createHarness2(config);
149
+ const effectiveConfig = options.maxSteps === void 0 ? config : {
150
+ ...config,
151
+ agents: {
152
+ ...config.agents,
153
+ [agentName]: {
154
+ ...config.agents[agentName],
155
+ maxSteps: options.maxSteps
156
+ }
157
+ }
158
+ };
159
+ harness = await createHarness2(effectiveConfig);
140
160
  } catch (err) {
141
161
  console.error(`Error creating harness: ${err instanceof Error ? err.message : String(err)}`);
142
162
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goondan/openharness-cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "oh": "./dist/index.js"
@@ -18,8 +18,8 @@
18
18
  "dependencies": {
19
19
  "dotenv": "^16.4.0",
20
20
  "jiti": "^2.6.1",
21
- "@goondan/openharness": "0.1.10",
22
- "@goondan/openharness-types": "0.1.10"
21
+ "@goondan/openharness-types": "0.1.11",
22
+ "@goondan/openharness": "0.1.11"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@types/node": "^22.0.0",