@botbotgo/agent-harness 0.0.74 → 0.0.75

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.
@@ -69,12 +69,12 @@ ${providerEnvLine}npm run start -- "Research the latest model serving stack for
69
69
 
70
70
  - \`src/run.mjs\`: minimal launcher
71
71
  - \`config/\`: workspace runtime and agent topology
72
- - \`resources/\`: place local tools and skills here as your product grows
72
+ - \`resources/\`: place local \`tool({...})\` tools and skills here as your product grows
73
73
 
74
74
  ## Customize
75
75
 
76
76
  - change \`config/models.yaml\` to switch models or providers
77
- - add local tools under \`resources/tools/\`
77
+ - add local \`tool({...})\` tools under \`resources/tools/\`
78
78
  - add product-specific skills under \`resources/skills/\`
79
79
  - edit the prompts in \`config/agents/\` to turn this into your own product
80
80
  `;
@@ -270,14 +270,32 @@ function renderRunScript(options) {
270
270
  import { createAgentHarness, run, stop } from "@botbotgo/agent-harness";
271
271
 
272
272
  const appRoot = fileURLToPath(new URL("..", import.meta.url));
273
- const input = process.argv.slice(2).join(" ").trim() ||
273
+ const args = process.argv.slice(2);
274
+ let requestedAgentId = "research";
275
+ const inputParts = [];
276
+
277
+ for (let index = 0; index < args.length; index += 1) {
278
+ const arg = args[index];
279
+ if (arg === "--agent") {
280
+ const next = args[index + 1]?.trim();
281
+ if (next) {
282
+ requestedAgentId = next;
283
+ index += 1;
284
+ continue;
285
+ }
286
+ throw new Error("Missing value for --agent");
287
+ }
288
+ inputParts.push(arg);
289
+ }
290
+
291
+ const input = inputParts.join(" ").trim() ||
274
292
  ${JSON.stringify(defaultInput)};
275
293
 
276
294
  const runtime = await createAgentHarness(appRoot);
277
295
 
278
296
  try {
279
297
  const result = await run(runtime, {
280
- agentId: "research",
298
+ agentId: requestedAgentId,
281
299
  input,
282
300
  });
283
301
  process.stdout.write(\`\${result.output}\\n\`);
@@ -1 +1 @@
1
- export declare const AGENT_HARNESS_VERSION = "0.0.73";
1
+ export declare const AGENT_HARNESS_VERSION = "0.0.74";
@@ -1 +1 @@
1
- export const AGENT_HARNESS_VERSION = "0.0.73";
1
+ export const AGENT_HARNESS_VERSION = "0.0.74";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botbotgo/agent-harness",
3
- "version": "0.0.74",
3
+ "version": "0.0.75",
4
4
  "description": "Workspace runtime for multi-agent applications",
5
5
  "type": "module",
6
6
  "packageManager": "npm@10.9.2",