@karmaniverous/jeeves-meta 0.16.0 → 0.16.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.
@@ -18,6 +18,10 @@ export interface GatewayExecutorOptions {
18
18
  pollIntervalMs?: number;
19
19
  /** Workspace directory for output staging. Default: OS temp dir + /jeeves-meta. */
20
20
  workspaceDir?: string;
21
+ /** Max retries when staging file not yet visible after session completion. Default: 10. */
22
+ stagingRetries?: number;
23
+ /** Delay between retries in ms. Default: 250. */
24
+ stagingRetryDelayMs?: number;
21
25
  }
22
26
  /**
23
27
  * MetaExecutor that spawns OpenClaw sessions via the gateway's
@@ -32,6 +36,8 @@ export declare class GatewayExecutor implements MetaExecutor {
32
36
  private readonly apiKey;
33
37
  private readonly pollIntervalMs;
34
38
  private readonly workspaceDir;
39
+ private readonly stagingRetries;
40
+ private readonly stagingRetryDelayMs;
35
41
  private controller;
36
42
  constructor(options?: GatewayExecutorOptions);
37
43
  /** Remove a temp output file if it exists. */
@@ -40,7 +46,13 @@ export declare class GatewayExecutor implements MetaExecutor {
40
46
  private readStagingFile;
41
47
  /** Extract plain text from a message content field, skipping ANNOUNCE_SKIP sentinels. */
42
48
  private static extractMessageText;
43
- /** Check history messages for terminal completion. */
49
+ /**
50
+ * Check history messages for timeout detection.
51
+ *
52
+ * Does NOT determine completion — session completion is authoritative
53
+ * (via sessions_list). History stop reasons can false-positive on
54
+ * sessions_yield artifacts (#200).
55
+ */
44
56
  private static checkHistoryCompletion;
45
57
  /** Invoke a gateway tool via the /tools/invoke HTTP endpoint. */
46
58
  private invoke;
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';