@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.
- package/CHANGELOG.md +22 -0
- package/cjs/index.cjs +6 -38
- package/cjs/index.cjs.map +1 -1
- package/esm/contracts/index.d.mts +1 -1
- package/esm/contracts/team/team-config.type.d.mts +9 -6
- package/esm/contracts/team/team-config.type.d.mts.map +1 -1
- package/esm/contracts/tool.contract.d.mts +35 -3
- package/esm/contracts/tool.contract.d.mts.map +1 -1
- package/esm/index.d.mts +3 -3
- package/esm/mock/index.d.mts +1 -1
- package/esm/mock/mock-config.type.d.mts +33 -4
- package/esm/mock/mock-config.type.d.mts.map +1 -1
- package/esm/mock/mock-model.d.mts +2 -1
- package/esm/mock/mock-model.d.mts.map +1 -1
- package/esm/mock/mock-model.mjs +5 -4
- package/esm/mock/mock-model.mjs.map +1 -1
- package/esm/mock/mock-sdk.d.mts +11 -3
- package/esm/mock/mock-sdk.d.mts.map +1 -1
- package/esm/mock/mock-sdk.mjs.map +1 -1
- package/esm/planner/plan-schema.d.mts +12 -1
- package/esm/planner/plan-schema.d.mts.map +1 -1
- package/esm/planner/plan-schema.mjs +0 -19
- package/esm/planner/plan-schema.mjs.map +1 -1
- package/esm/supervisor/execution.d.mts +0 -12
- package/esm/supervisor/execution.d.mts.map +1 -1
- package/esm/supervisor/execution.mjs +1 -15
- package/esm/supervisor/execution.mjs.map +1 -1
- package/llms-full.txt +11 -4
- package/llms.txt +1 -1
- package/package.json +24 -4
- package/skills/README.md +1 -1
- package/skills/generate-images/SKILL.md +11 -4
|
@@ -819,24 +819,10 @@ var SupervisorExecution = class {
|
|
|
819
819
|
* through unchanged so structured inputs work.
|
|
820
820
|
*/
|
|
821
821
|
coerceInlineInput(executable, input) {
|
|
822
|
-
if (
|
|
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
|