@karmaniverous/jeeves-meta 0.15.0 → 0.15.2

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.
@@ -7064,6 +7064,7 @@ function init(options) {
7064
7064
  workspacePath: options.workspacePath,
7065
7065
  configRoot: options.configRoot,
7066
7066
  coreConfigDir: join(options.configRoot, CORE_CONFIG_DIR),
7067
+ componentConfigPaths: new Map(),
7067
7068
  };
7068
7069
  }
7069
7070
  /**
@@ -9291,12 +9292,12 @@ class GatewayExecutor {
9291
9292
  return data;
9292
9293
  }
9293
9294
  /** Look up totalTokens for a session via sessions_list. */
9294
- async getSessionTokens(sessionKey, invokeSessionKey) {
9295
+ async getSessionTokens(sessionKey) {
9295
9296
  try {
9296
9297
  const result = await this.invoke('sessions_list', {
9297
9298
  limit: 20,
9298
9299
  messageLimit: 0,
9299
- }, invokeSessionKey);
9300
+ });
9300
9301
  const sessions = (result.result?.details?.sessions ??
9301
9302
  result.result?.sessions ??
9302
9303
  []);
@@ -9328,7 +9329,6 @@ class GatewayExecutor {
9328
9329
  // Generate unique output path for file-based output
9329
9330
  const outputId = randomUUID();
9330
9331
  const outputPath = this.workspaceDir + '/output-' + outputId + '.json';
9331
- const invokeSessionKey = 'agent:main:meta-invoke:' + outputId;
9332
9332
  // Append file output instruction to the task
9333
9333
  const taskWithOutput = task +
9334
9334
  '\n\n## OUTPUT DELIVERY\n\n' +
@@ -9346,7 +9346,7 @@ class GatewayExecutor {
9346
9346
  runTimeoutSeconds: timeoutSeconds,
9347
9347
  ...(options?.thinking ? { thinking: options.thinking } : {}),
9348
9348
  ...(options?.model ? { model: options.model } : {}),
9349
- }, invokeSessionKey);
9349
+ });
9350
9350
  const details = (spawnResult.result?.details ?? spawnResult.result);
9351
9351
  const sessionKey = details?.childSessionKey ?? details?.sessionKey;
9352
9352
  if (typeof sessionKey !== 'string' || !sessionKey) {
@@ -9366,7 +9366,7 @@ class GatewayExecutor {
9366
9366
  sessionKey,
9367
9367
  limit: 5,
9368
9368
  includeTools: false,
9369
- }, invokeSessionKey);
9369
+ });
9370
9370
  const messages = historyResult.result?.details?.messages ??
9371
9371
  historyResult.result?.messages ??
9372
9372
  [];
@@ -9379,7 +9379,7 @@ class GatewayExecutor {
9379
9379
  lastMsg.stopReason !== 'toolUse' &&
9380
9380
  lastMsg.stopReason !== 'error') {
9381
9381
  // Fetch token usage from session metadata
9382
- const tokens = await this.getSessionTokens(sessionKey, invokeSessionKey);
9382
+ const tokens = await this.getSessionTokens(sessionKey);
9383
9383
  // Read output from file (sub-agent wrote it via Write tool)
9384
9384
  if (existsSync(outputPath)) {
9385
9385
  try {
package/dist/index.js CHANGED
@@ -9026,12 +9026,12 @@ class GatewayExecutor {
9026
9026
  return data;
9027
9027
  }
9028
9028
  /** Look up totalTokens for a session via sessions_list. */
9029
- async getSessionTokens(sessionKey, invokeSessionKey) {
9029
+ async getSessionTokens(sessionKey) {
9030
9030
  try {
9031
9031
  const result = await this.invoke('sessions_list', {
9032
9032
  limit: 20,
9033
9033
  messageLimit: 0,
9034
- }, invokeSessionKey);
9034
+ });
9035
9035
  const sessions = (result.result?.details?.sessions ??
9036
9036
  result.result?.sessions ??
9037
9037
  []);
@@ -9063,7 +9063,6 @@ class GatewayExecutor {
9063
9063
  // Generate unique output path for file-based output
9064
9064
  const outputId = randomUUID();
9065
9065
  const outputPath = this.workspaceDir + '/output-' + outputId + '.json';
9066
- const invokeSessionKey = 'agent:main:meta-invoke:' + outputId;
9067
9066
  // Append file output instruction to the task
9068
9067
  const taskWithOutput = task +
9069
9068
  '\n\n## OUTPUT DELIVERY\n\n' +
@@ -9081,7 +9080,7 @@ class GatewayExecutor {
9081
9080
  runTimeoutSeconds: timeoutSeconds,
9082
9081
  ...(options?.thinking ? { thinking: options.thinking } : {}),
9083
9082
  ...(options?.model ? { model: options.model } : {}),
9084
- }, invokeSessionKey);
9083
+ });
9085
9084
  const details = (spawnResult.result?.details ?? spawnResult.result);
9086
9085
  const sessionKey = details?.childSessionKey ?? details?.sessionKey;
9087
9086
  if (typeof sessionKey !== 'string' || !sessionKey) {
@@ -9101,7 +9100,7 @@ class GatewayExecutor {
9101
9100
  sessionKey,
9102
9101
  limit: 5,
9103
9102
  includeTools: false,
9104
- }, invokeSessionKey);
9103
+ });
9105
9104
  const messages = historyResult.result?.details?.messages ??
9106
9105
  historyResult.result?.messages ??
9107
9106
  [];
@@ -9114,7 +9113,7 @@ class GatewayExecutor {
9114
9113
  lastMsg.stopReason !== 'toolUse' &&
9115
9114
  lastMsg.stopReason !== 'error') {
9116
9115
  // Fetch token usage from session metadata
9117
- const tokens = await this.getSessionTokens(sessionKey, invokeSessionKey);
9116
+ const tokens = await this.getSessionTokens(sessionKey);
9118
9117
  // Read output from file (sub-agent wrote it via Write tool)
9119
9118
  if (existsSync(outputPath)) {
9120
9119
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karmaniverous/jeeves-meta",
3
- "version": "0.15.0",
3
+ "version": "0.15.2",
4
4
  "author": "Jason Williscroft",
5
5
  "description": "Fastify HTTP service for the Jeeves Meta synthesis engine",
6
6
  "license": "BSD-3-Clause",
@@ -41,7 +41,7 @@
41
41
  "node": ">=22"
42
42
  },
43
43
  "dependencies": {
44
- "@karmaniverous/jeeves": "^0.5.7",
44
+ "@karmaniverous/jeeves": "^0.5.8",
45
45
  "commander": "^14",
46
46
  "croner": "^10",
47
47
  "fastify": "^5.8",