@karmaniverous/jeeves-meta 0.15.12 → 0.16.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.
@@ -36,13 +36,38 @@ export declare class GatewayExecutor implements MetaExecutor {
36
36
  constructor(options?: GatewayExecutorOptions);
37
37
  /** Remove a temp output file if it exists. */
38
38
  private cleanupOutputFile;
39
+ /** Read and clean up the staging output file. Returns content or undefined if absent. */
40
+ private readStagingFile;
41
+ /** Extract plain text from a message content field, skipping ANNOUNCE_SKIP sentinels. */
42
+ private static extractMessageText;
43
+ /**
44
+ * Check history messages for timeout detection.
45
+ *
46
+ * Does NOT determine completion — session completion is authoritative
47
+ * (via sessions_list). History stop reasons can false-positive on
48
+ * sessions_yield artifacts (#200).
49
+ */
50
+ private static checkHistoryCompletion;
39
51
  /** Invoke a gateway tool via the /tools/invoke HTTP endpoint. */
40
52
  private invoke;
41
- /** Look up session metadata (tokens, completion status) via sessions_list. */
53
+ /**
54
+ * Look up session metadata (tokens, completion status) via sessions_list.
55
+ *
56
+ * Detects gateway-side timeout (`status: "timeout"`) and killed sessions
57
+ * (`status: "killed"`) as completed, with a `timedOut` flag to distinguish
58
+ * timeout from normal completion.
59
+ */
42
60
  private getSessionInfo;
43
61
  /** Whether this executor has been aborted by the operator. */
44
62
  get aborted(): boolean;
45
63
  /** Abort the currently running spawn, if any. */
46
64
  abort(): void;
65
+ /**
66
+ * Query the gateway's configured subagent run timeout.
67
+ *
68
+ * Returns the value in milliseconds, or `undefined` if the query fails
69
+ * or the value is absent/zero (no timeout configured).
70
+ */
71
+ private queryGatewayRunTimeout;
47
72
  spawn(task: string, options?: MetaSpawnOptions): Promise<MetaSpawnResult>;
48
73
  }
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ export { formatProgressEvent, type ProgressEvent, type ProgressPhase, ProgressRe
23
23
  export { actualStaleness, computeEffectiveStaleness, hasSteerChanged, isArchitectTriggered, isStale, MAX_STALENESS_SECONDS, type StalenessCandidate, } from './scheduling/index.js';
24
24
  export { type MetaConfig, metaConfigSchema, type MetaError, metaErrorSchema, type MetaJson, metaJsonSchema, type ServiceConfig, serviceConfigSchema, } from './schema/index.js';
25
25
  export { Scheduler } from './scheduler/index.js';
26
- export { type EnqueueResult, type QueueItem, type QueueState, SynthesisQueue, } from './queue/index.js';
26
+ export { type CurrentItem, type EnqueueResult, type QueueEntry, type QueueState, SynthesisQueue, } from './queue/index.js';
27
27
  export { registerRoutes, type RouteDeps, type ServiceStats, } from './routes/index.js';
28
28
  export { RuleRegistrar } from './rules/index.js';
29
29
  export { verifyRuleApplication } from './rules/verify.js';