@karmaniverous/jeeves-meta 0.6.0 → 0.6.1

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.
@@ -1060,10 +1060,13 @@ class GatewayExecutor {
1060
1060
  outputPath +
1061
1061
  '\n\n' +
1062
1062
  'Reply with ONLY the file path you wrote to. No other text.';
1063
- // Step 1: Spawn the sub-agent session
1063
+ // Step 1: Spawn the sub-agent session (unique label per cycle to avoid
1064
+ // "label already in use" errors — gateway labels persist after session completion)
1065
+ const labelBase = options?.label ?? 'jeeves-meta-synthesis';
1066
+ const label = labelBase + '-' + outputId.slice(0, 8);
1064
1067
  const spawnResult = await this.invoke('sessions_spawn', {
1065
1068
  task: taskWithOutput,
1066
- label: options?.label ?? 'jeeves-meta-synthesis',
1069
+ label,
1067
1070
  runTimeoutSeconds: timeoutSeconds,
1068
1071
  ...(options?.thinking ? { thinking: options.thinking } : {}),
1069
1072
  ...(options?.model ? { model: options.model } : {}),
@@ -2971,7 +2974,7 @@ function registerStatusRoute(app, deps) {
2971
2974
  // On-demand dependency checks
2972
2975
  const [watcherHealth, gatewayHealth] = await Promise.all([
2973
2976
  checkWatcher(config.watcherUrl),
2974
- checkDependency(config.gatewayUrl, '/api/status'),
2977
+ checkDependency(config.gatewayUrl, '/status'),
2975
2978
  ]);
2976
2979
  const degraded = (watcherHealth.status !== 'ok' && watcherHealth.status !== 'indexing') ||
2977
2980
  gatewayHealth.status !== 'ok';
package/dist/index.js CHANGED
@@ -1052,10 +1052,13 @@ class GatewayExecutor {
1052
1052
  outputPath +
1053
1053
  '\n\n' +
1054
1054
  'Reply with ONLY the file path you wrote to. No other text.';
1055
- // Step 1: Spawn the sub-agent session
1055
+ // Step 1: Spawn the sub-agent session (unique label per cycle to avoid
1056
+ // "label already in use" errors — gateway labels persist after session completion)
1057
+ const labelBase = options?.label ?? 'jeeves-meta-synthesis';
1058
+ const label = labelBase + '-' + outputId.slice(0, 8);
1056
1059
  const spawnResult = await this.invoke('sessions_spawn', {
1057
1060
  task: taskWithOutput,
1058
- label: options?.label ?? 'jeeves-meta-synthesis',
1061
+ label,
1059
1062
  runTimeoutSeconds: timeoutSeconds,
1060
1063
  ...(options?.thinking ? { thinking: options.thinking } : {}),
1061
1064
  ...(options?.model ? { model: options.model } : {}),
@@ -2967,7 +2970,7 @@ function registerStatusRoute(app, deps) {
2967
2970
  // On-demand dependency checks
2968
2971
  const [watcherHealth, gatewayHealth] = await Promise.all([
2969
2972
  checkWatcher(config.watcherUrl),
2970
- checkDependency(config.gatewayUrl, '/api/status'),
2973
+ checkDependency(config.gatewayUrl, '/status'),
2971
2974
  ]);
2972
2975
  const degraded = (watcherHealth.status !== 'ok' && watcherHealth.status !== 'indexing') ||
2973
2976
  gatewayHealth.status !== 'ok';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-meta",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "author": "Jason Williscroft",
5
5
  "description": "Fastify HTTP service for the Jeeves Meta synthesis engine",
6
6
  "license": "BSD-3-Clause",