@dougbots/avenor-core 0.6.0 → 0.7.0

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.d.ts CHANGED
@@ -32,6 +32,7 @@ interface SpawnParams {
32
32
  label?: string;
33
33
  timeout?: number;
34
34
  model?: string;
35
+ agent_profile?: string;
35
36
  backend?: string;
36
37
  server_url?: string;
37
38
  session_id?: string;
@@ -235,6 +236,7 @@ interface RunInfo {
235
236
  runtimeId?: string;
236
237
  sessionId?: string;
237
238
  agent?: string;
239
+ agentProfile?: string;
238
240
  backend?: string;
239
241
  dir?: string;
240
242
  brokerUrl?: string;
@@ -279,6 +281,7 @@ declare function spawnTool(args: {
279
281
  dir?: string;
280
282
  timeout?: string;
281
283
  model?: string;
284
+ agentProfile?: string;
282
285
  backend?: string;
283
286
  serverUrl?: string;
284
287
  sessionId?: string;
package/dist/index.js CHANGED
@@ -1269,6 +1269,7 @@ var Supervisor = class Supervisor {
1269
1269
  runtimeId: result.runtime_id,
1270
1270
  sessionId: result.session_id,
1271
1271
  agent: spawnParams.agent ?? params.agent,
1272
+ agentProfile: spawnParams.agent_profile,
1272
1273
  backend: spawnParams.backend,
1273
1274
  dir: spawnParams.dir,
1274
1275
  brokerUrl: result.broker_url,
@@ -1359,6 +1360,7 @@ async function spawnTool(args) {
1359
1360
  dir: args.dir,
1360
1361
  timeout: args.timeout !== void 0 ? validateTimeout(args.timeout) : void 0,
1361
1362
  model: args.model,
1363
+ agent_profile: args.agentProfile,
1362
1364
  backend: args.backend,
1363
1365
  server_url: args.serverUrl,
1364
1366
  session_id: args.sessionId,
@@ -1387,6 +1389,7 @@ async function spawnTool(args) {
1387
1389
  dir: args.dir,
1388
1390
  timeout: args.timeout !== void 0 ? validateTimeout(args.timeout) : void 0,
1389
1391
  model: args.model,
1392
+ agent_profile: args.agentProfile,
1390
1393
  backend: args.backend,
1391
1394
  server_url: args.serverUrl,
1392
1395
  session_id: args.sessionId,
@@ -2050,6 +2053,7 @@ async function followUpTool(args) {
2050
2053
  const agent = requireResumableAgent(liveStatus?.agent ?? runInfo?.agent);
2051
2054
  const backend = liveStatus?.backend ?? runInfo?.backend;
2052
2055
  const dir = liveStatus?.dir ?? runInfo?.dir;
2056
+ const agentProfile = liveStatus?.agent_profile ?? runInfo?.agentProfile;
2053
2057
  const followUpRunId = crypto.randomUUID();
2054
2058
  const followUpLabel = args.label ?? `${args.runId}-followup`;
2055
2059
  const { sentinelPath: followUpSentinelPath, eventLogPath } = ensureRunPaths(followUpRunId);
@@ -2063,6 +2067,7 @@ async function followUpTool(args) {
2063
2067
  };
2064
2068
  if (backend) spawnParams.backend = backend;
2065
2069
  if (dir) spawnParams.dir = dir;
2070
+ if (agentProfile) spawnParams.agent_profile = agentProfile;
2066
2071
  return {
2067
2072
  run_id: (await client.spawn(spawnParams)).runtime_id ?? followUpRunId,
2068
2073
  label: followUpLabel
@@ -2084,11 +2089,13 @@ async function followUpTool(args) {
2084
2089
  const agent = requireResumableAgent(liveStatus?.agent ?? runInfo.agent);
2085
2090
  const backend = liveStatus?.backend ?? runInfo.backend;
2086
2091
  const dir = liveStatus?.dir ?? runInfo.dir;
2092
+ const agentProfile = liveStatus?.agent_profile ?? runInfo.agentProfile;
2087
2093
  const followUpLabel = args.label ?? `${runInfo.label}-followup`;
2088
2094
  const followUpRun = await sup.spawn({
2089
2095
  agent,
2090
2096
  backend,
2091
2097
  dir,
2098
+ agent_profile: agentProfile,
2092
2099
  prompt: args.message,
2093
2100
  session_id: sessionId,
2094
2101
  label: followUpLabel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dougbots/avenor-core",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",