@warlock.js/ai 4.14.0 → 4.15.0

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.
@@ -819,24 +819,10 @@ var SupervisorExecution = class {
819
819
  * through unchanged so structured inputs work.
820
820
  */
821
821
  coerceInlineInput(executable, input) {
822
- if (!("signature" in executable) && typeof executable.execute === "function" && !this.isSupervisor(executable) && typeof input !== "string") return safeStringify(input);
822
+ if ("isAnonymous" in executable && typeof input !== "string") return safeStringify(input);
823
823
  return input;
824
824
  }
825
825
  /**
826
- * Heuristic detection of `SupervisorContract` — the contract carries
827
- * a `signature` getter same as workflows, but supervisors expose
828
- * `resume()` while workflows expose `resume(runId, options)` too.
829
- * Cleanest distinguisher in the public surface: supervisors carry
830
- * the `asTool` method name `as` … unfortunately so do workflows.
831
- * Use the `streamableType` brand if we add one in v2; for now lean
832
- * on a duck-typed check that's good enough for the ctx.run path
833
- * (incorrect routing for workflows would still produce a runnable
834
- * call — workflow.execute accepts the same args either way).
835
- */
836
- isSupervisor(executable) {
837
- return typeof executable.resume === "function" && typeof executable.signature === "string" && typeof executable.stream === "function";
838
- }
839
- /**
840
826
  * Invoke the underlying dispatchable unit. Agents and workflows
841
827
  * both satisfy `ExecutableContract<string, …>` so the call shape
842
828
  * is uniform; the `type` discriminator picks which options get