@odla-ai/harness 0.11.0 → 0.11.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.
package/dist/node.d.cts CHANGED
@@ -157,6 +157,26 @@ interface CodeRuntimeClientOptions {
157
157
  /** Create the credentialed, outbound-only Code host control client. */
158
158
  declare function createCodeRuntimeControlClient(options: CodeRuntimeClientOptions): CodeRuntimeAgentControlPlane;
159
159
 
160
+ /** Executes each command id at most once in-process and safely retries only its
161
+ * acknowledgement after a transient control-plane failure. */
162
+ declare class CodeRuntimeReconciler {
163
+ private readonly control;
164
+ private readonly engine;
165
+ /** Reports post-acknowledgement failures that must not end the host. */
166
+ private readonly onDiagnostic?;
167
+ /** Injectable wait for the overload backoff; real time by default. */
168
+ private readonly options;
169
+ private readonly results;
170
+ constructor(control: CodeRuntimeControlPlane, engine: CodeRuntimeCommandEngine,
171
+ /** Reports post-acknowledgement failures that must not end the host. */
172
+ onDiagnostic?: ((message: string) => void) | undefined,
173
+ /** Injectable wait for the overload backoff; real time by default. */
174
+ options?: {
175
+ wait?: (ms: number) => Promise<void>;
176
+ });
177
+ reconcile(snapshot: CodeRuntimeSnapshot): Promise<void>;
178
+ }
179
+
160
180
  /** Version of the outbound Code host heartbeat contract. */
161
181
  declare const CODE_RUNTIME_PROTOCOL_VERSION: 3;
162
182
  /** Frozen, secret-filtered view of the checkout from which a terminal connected. */
@@ -398,19 +418,6 @@ interface CodeRuntimeCommandEngine {
398
418
  execute(command: CodeRuntimeCommand): Promise<CodeRuntimeCommandResult>;
399
419
  acknowledged?(command: CodeRuntimeCommand, result: CodeRuntimeCommandResult): Promise<void> | void;
400
420
  }
401
- /** Executes each command id at most once in-process and safely retries only its
402
- * acknowledgement after a transient control-plane failure. */
403
- declare class CodeRuntimeReconciler {
404
- private readonly control;
405
- private readonly engine;
406
- /** Reports post-acknowledgement failures that must not end the host. */
407
- private readonly onDiagnostic?;
408
- private readonly results;
409
- constructor(control: CodeRuntimeControlPlane, engine: CodeRuntimeCommandEngine,
410
- /** Reports post-acknowledgement failures that must not end the host. */
411
- onDiagnostic?: ((message: string) => void) | undefined);
412
- reconcile(snapshot: CodeRuntimeSnapshot): Promise<void>;
413
- }
414
421
 
415
422
  interface FrozenCodeLocalSource {
416
423
  descriptor: CodeLocalSourceDescriptor;
package/dist/node.d.ts CHANGED
@@ -157,6 +157,26 @@ interface CodeRuntimeClientOptions {
157
157
  /** Create the credentialed, outbound-only Code host control client. */
158
158
  declare function createCodeRuntimeControlClient(options: CodeRuntimeClientOptions): CodeRuntimeAgentControlPlane;
159
159
 
160
+ /** Executes each command id at most once in-process and safely retries only its
161
+ * acknowledgement after a transient control-plane failure. */
162
+ declare class CodeRuntimeReconciler {
163
+ private readonly control;
164
+ private readonly engine;
165
+ /** Reports post-acknowledgement failures that must not end the host. */
166
+ private readonly onDiagnostic?;
167
+ /** Injectable wait for the overload backoff; real time by default. */
168
+ private readonly options;
169
+ private readonly results;
170
+ constructor(control: CodeRuntimeControlPlane, engine: CodeRuntimeCommandEngine,
171
+ /** Reports post-acknowledgement failures that must not end the host. */
172
+ onDiagnostic?: ((message: string) => void) | undefined,
173
+ /** Injectable wait for the overload backoff; real time by default. */
174
+ options?: {
175
+ wait?: (ms: number) => Promise<void>;
176
+ });
177
+ reconcile(snapshot: CodeRuntimeSnapshot): Promise<void>;
178
+ }
179
+
160
180
  /** Version of the outbound Code host heartbeat contract. */
161
181
  declare const CODE_RUNTIME_PROTOCOL_VERSION: 3;
162
182
  /** Frozen, secret-filtered view of the checkout from which a terminal connected. */
@@ -398,19 +418,6 @@ interface CodeRuntimeCommandEngine {
398
418
  execute(command: CodeRuntimeCommand): Promise<CodeRuntimeCommandResult>;
399
419
  acknowledged?(command: CodeRuntimeCommand, result: CodeRuntimeCommandResult): Promise<void> | void;
400
420
  }
401
- /** Executes each command id at most once in-process and safely retries only its
402
- * acknowledgement after a transient control-plane failure. */
403
- declare class CodeRuntimeReconciler {
404
- private readonly control;
405
- private readonly engine;
406
- /** Reports post-acknowledgement failures that must not end the host. */
407
- private readonly onDiagnostic?;
408
- private readonly results;
409
- constructor(control: CodeRuntimeControlPlane, engine: CodeRuntimeCommandEngine,
410
- /** Reports post-acknowledgement failures that must not end the host. */
411
- onDiagnostic?: ((message: string) => void) | undefined);
412
- reconcile(snapshot: CodeRuntimeSnapshot): Promise<void>;
413
- }
414
421
 
415
422
  interface FrozenCodeLocalSource {
416
423
  descriptor: CodeLocalSourceDescriptor;
package/dist/node.js CHANGED
@@ -56,7 +56,7 @@ import {
56
56
  validateMemory,
57
57
  validateRelativePath,
58
58
  verifyCodeCandidate
59
- } from "./chunk-IXYKIPRA.js";
59
+ } from "./chunk-DP6LOGBF.js";
60
60
  import "./chunk-KXFI3WM2.js";
61
61
  import {
62
62
  assertPinnedImage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odla-ai/harness",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "Safe, inspectable coding-task protocol and credentialless container runner for odla Studio.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://odla.ai/docs/packages/harness",