@agentwonderland/mcp 0.1.57 → 0.1.58

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.
@@ -1,74 +0,0 @@
1
- import { describe, expect, it } from "vitest";
2
- import { buildExplicitPlaybookStepInput, playbookRunBlocker } from "../playbook-adapters.js";
3
-
4
- describe("playbook step adapters", () => {
5
- it("maps ipo-brief child steps to their live input schemas", () => {
6
- expect(buildExplicitPlaybookStepInput("ipo-brief", { ticker: "CRCL" }, {
7
- id: "s1",
8
- agent_slug: "ipo-s-1-analysis",
9
- })).toMatchObject({ status: "ready", input: { ticker: "CRCL" } });
10
-
11
- expect(buildExplicitPlaybookStepInput("ipo-brief", { ticker: "CRCL" }, {
12
- id: "insiders",
13
- agent_slug: "insider-trading-tracker",
14
- })).toMatchObject({ status: "ready", input: { ticker: "CRCL", days_back: 365 } });
15
-
16
- expect(buildExplicitPlaybookStepInput("ipo-brief", { ticker: "CRCL", peer_tickers: ["COIN", "HOOD"] }, {
17
- id: "comps",
18
- agent_slug: "stock-comparison",
19
- })).toMatchObject({ status: "ready", input: { tickers: ["CRCL", "COIN", "HOOD"] } });
20
- });
21
-
22
- it("maps launch-landing council, writer, and publisher steps explicitly", () => {
23
- const council = buildExplicitPlaybookStepInput("launch-landing", {
24
- brief: "Agent marketplace for builders",
25
- product_slug: "agent-wonderland",
26
- }, {
27
- id: "council",
28
- agent_slug: "marketing-copy-council",
29
- });
30
- expect(council).toMatchObject({ status: "ready", input: { brief: "Agent marketplace for builders" } });
31
-
32
- const writer = buildExplicitPlaybookStepInput("launch-landing", {
33
- brief: "Agent marketplace for builders",
34
- product_slug: "agent-wonderland",
35
- previous_outputs: [{ step: "council", output: { headline: "Hire agents on demand" } }],
36
- }, {
37
- id: "structure",
38
- agent_slug: "write-landing-page-copy",
39
- });
40
- expect(writer).toMatchObject({
41
- status: "ready",
42
- input: {
43
- product: "agent-wonderland",
44
- audience: "builders and operators",
45
- },
46
- });
47
- expect((writer as { input: Record<string, unknown> }).input.context).toContain("Hire agents on demand");
48
-
49
- const publisher = buildExplicitPlaybookStepInput("launch-landing", {
50
- brief: "Agent marketplace for builders",
51
- product_slug: "agent-wonderland",
52
- previous_outputs: [{ step: "structure", output: { html: "<html><body>Ship</body></html>" } }],
53
- }, {
54
- id: "publish",
55
- agent_slug: "publish-html-to-a-public-url",
56
- });
57
- expect(publisher).toMatchObject({
58
- status: "ready",
59
- input: {
60
- html: "<html><body>Ship</body></html>",
61
- slug: "agent-wonderland",
62
- },
63
- });
64
- });
65
-
66
- it("blocks known broken fanout playbooks before paid child execution", () => {
67
- expect(playbookRunBlocker("icp-hunter")).toContain("prospect-search schema");
68
- expect(playbookRunBlocker("no-web-leads")).toContain("no-web/place/phone schemas");
69
- expect(buildExplicitPlaybookStepInput("icp-hunter", { icp: "VP Eng" }, {
70
- id: "prospects",
71
- agent_slug: "find-prospects",
72
- })).toMatchObject({ status: "blocked", code: "PLAYBOOK_NOT_CERTIFIED" });
73
- });
74
- });