@fusionkit/runner 0.1.5 → 0.1.7

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.
@@ -21,7 +21,12 @@ export type PreparedExecution = {
21
21
  export type BackendExecutionKind = PreparedExecution["kind"];
22
22
  export type PrepareExecutionInput = {
23
23
  contract: RunContract;
24
- mockScriptPath: string;
24
+ /**
25
+ * Path to the mock-agent script used only when the contract resolves to the
26
+ * `mock` agent kind. Defaults to the bundled mock-agent so callers driving
27
+ * real agents (claude-code, codex, ...) never need a placeholder path.
28
+ */
29
+ mockScriptPath?: string;
25
30
  };
26
31
  /** Session wall-clock ceiling when neither execution nor contract sets a timeout. */
27
32
  export declare const DEFAULT_TIMEOUT_MS: number;
package/dist/execution.js CHANGED
@@ -1,5 +1,8 @@
1
+ import { fileURLToPath } from "node:url";
1
2
  import { defaultExecutionSpec, hashCanonical } from "@fusionkit/protocol";
2
3
  import { buildAgentCommand } from "./agents.js";
4
+ /** Bundled mock-agent entrypoint used when no explicit script path is supplied. */
5
+ const DEFAULT_MOCK_SCRIPT = fileURLToPath(new URL("./mock-agent.js", import.meta.url));
3
6
  /** Session wall-clock ceiling when neither execution nor contract sets a timeout. */
4
7
  export const DEFAULT_TIMEOUT_MS = 10 * 60 * 1000;
5
8
  /**
@@ -80,7 +83,8 @@ function prepareAgentExecution(spec, ctx, contract) {
80
83
  };
81
84
  }
82
85
  export function prepareExecution(input) {
83
- const { contract, mockScriptPath } = input;
86
+ const { contract } = input;
87
+ const mockScriptPath = input.mockScriptPath ?? DEFAULT_MOCK_SCRIPT;
84
88
  const spec = executionSpecFor(contract);
85
89
  switch (spec.kind) {
86
90
  case "agent":
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusionkit/runner",
3
3
  "private": false,
4
- "version": "0.1.5",
4
+ "version": "0.1.7",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/velum-labs/handoffkit.git",
@@ -25,8 +25,8 @@
25
25
  "provenance": true
26
26
  },
27
27
  "dependencies": {
28
- "@fusionkit/sdk": "0.1.5",
29
- "@fusionkit/workspace": "0.1.5",
30
- "@fusionkit/protocol": "0.1.5"
28
+ "@fusionkit/protocol": "0.1.7",
29
+ "@fusionkit/sdk": "0.1.7",
30
+ "@fusionkit/workspace": "0.1.7"
31
31
  }
32
32
  }