@metaharness/sales 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 rUv
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # MetaHarness: sales vertical
2
+
3
+ A ready-made multi-agent sales pipeline pod scaffolded onto Claude Code. Spawns three specialized agents — a **qualifier** (lead scoring), an **opener** (first-touch outreach), and a **closer** (negotiation and follow-through) — wired together with shared memory, MCP tooling, and tier-routed model selection. This scaffold gives you a working harness directory you can run, validate, and extend. It does NOT ship a CRM, send live email, or include any contact data — bring your own pipeline source and outbound transport.
4
+
5
+ ## Quickstart
6
+
7
+ ```bash
8
+ npx @metaharness/sales@latest my-bot
9
+ cd my-bot && npm install && harness doctor
10
+ ```
11
+
12
+ That gives you a populated harness directory, installed dependencies, and a doctor report telling you which MCP servers / API keys are still missing.
13
+
14
+ ## What you get
15
+
16
+ - `agents/qualifier.md` — lead-scoring + ICP-fit agent. **Tier: haiku** (fast, cheap, runs per-lead).
17
+ - `agents/opener.md` — first-touch message drafter, personalization, A/B variants. **Tier: sonnet** (judgement, tone).
18
+ - `agents/closer.md` — objection handling, negotiation, multi-thread follow-up. **Tier: opus** (deep reasoning).
19
+ - `.claude/settings.json` — pre-wired hooks (pre-task routing, post-task pattern training, session-start memory restore).
20
+ - `mcp/` — MCP server stubs for CRM, email, and calendar (stdio transport, swap in your provider).
21
+ - `prompts/pipeline.md` — the orchestration prompt that runs qualifier → opener → closer with SendMessage handoff.
22
+ - `harness.config.json` — tier routing rules, budgets per agent, and shared memory namespace `sales-pod`.
23
+
24
+ ## Advanced
25
+
26
+ Verify the install is healthy:
27
+
28
+ ```bash
29
+ $ harness doctor
30
+ checking node ok v20.11.0
31
+ checking claude-code ok found in PATH
32
+ checking mcp servers warn crm: no API key set (CRM_API_KEY)
33
+ checking agents ok 3 agents loaded (qualifier, opener, closer)
34
+ checking settings.json ok hooks valid
35
+ ```
36
+
37
+ Validate the harness manifest before shipping:
38
+
39
+ ```bash
40
+ $ harness validate
41
+ manifest ok
42
+ agents ok (3/3 frontmatter valid)
43
+ mcp ok (3/3 schemas valid)
44
+ routing ok (tier rules cover all agents)
45
+ ```
46
+
47
+ Run the pod headlessly against one lead, scoped to your scaffold's plugin dir:
48
+
49
+ ```bash
50
+ $ claude -p --plugin-dir my-bot \
51
+ "Run the sales pipeline on lead: Jane Doe, VP Eng at Acme, 200 employees"
52
+ [qualifier→haiku] ICP fit: 0.82 intent: warm → handoff to opener
53
+ [opener→sonnet] Drafted 2 variants, selected B (Jane's recent OSS commit)
54
+ [closer→opus] Standing by for reply
55
+ ```
56
+
57
+ ## FAQ
58
+
59
+ **Does this send real emails?**
60
+ No. The `mcp/email` stub returns the drafted message and exits. Swap in a real SMTP / Resend / SendGrid MCP server to actually transmit.
61
+
62
+ **Can I run it without API keys?**
63
+ `harness doctor` will run and the qualifier (haiku) works on offline test fixtures, but the opener and closer call Anthropic — you need `ANTHROPIC_API_KEY` set for end-to-end runs.
64
+
65
+ **How do I change which model each agent uses?**
66
+ Edit `harness.config.json` → `routing.tiers`. Each agent name maps to `haiku`, `sonnet`, or `opus`. The pre-task hook reads this and overrides at dispatch time.
67
+
68
+ ## License
69
+
70
+ MIT. Built on metaharness (https://www.npmjs.com/package/metaharness).
71
+
72
+ ## Deep-dive
73
+
74
+ Full explainer gist: https://gist.github.com/ruvnet/e9cf34f47cf78308196a6e65c4a35322
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env node
2
+ import { execSync } from 'node:child_process';
3
+ import process from 'node:process';
4
+
5
+ const name = process.argv[2] || 'my-bot';
6
+ const extra = process.argv.slice(3);
7
+
8
+ const args = [
9
+ 'npx',
10
+ '--yes',
11
+ 'metaharness@latest',
12
+ name,
13
+ '--template',
14
+ 'vertical:sales',
15
+ '--host',
16
+ 'claude-code',
17
+ '--force',
18
+ ...extra,
19
+ ];
20
+
21
+ const cmd = args.map((a) => (a.includes(' ') ? JSON.stringify(a) : a)).join(' ');
22
+
23
+ try {
24
+ execSync(cmd, { stdio: 'inherit' });
25
+ console.log('');
26
+ console.log(`Sales pod scaffolded into ./${name}`);
27
+ console.log(`Next: cd ${name} && npm install && harness doctor`);
28
+ console.log(`Then: claude -p --plugin-dir ${name} "Run the sales pipeline on lead: <your lead>"`);
29
+ } catch (err) {
30
+ console.error(`metaharness scaffold failed: ${err.message || err}`);
31
+ process.exit(typeof err.status === 'number' ? err.status : 1);
32
+ }
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "@metaharness/sales",
3
+ "version": "0.1.0",
4
+ "description": "MetaHarness example — sales pipeline pod (qualifier, opener, closer) for Claude Code (npx @metaharness/sales my-bot)",
5
+ "homepage": "https://github.com/ruvnet/agent-harness-generator/tree/main/examples-packages/sales",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/ruvnet/agent-harness-generator.git",
9
+ "directory": "examples-packages/sales"
10
+ },
11
+ "license": "MIT",
12
+ "author": "rUv <ruv@ruv.net>",
13
+ "type": "module",
14
+ "bin": "./bin/scaffold.mjs",
15
+ "files": [
16
+ "bin/**",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "scripts": {
21
+ "smoke": "node --check bin/scaffold.mjs"
22
+ },
23
+ "keywords": [
24
+ "metaharness",
25
+ "agent-harness",
26
+ "agent-harness-generator",
27
+ "sales",
28
+ "vertical",
29
+ "claude-code",
30
+ "ai-agent",
31
+ "mcp",
32
+ "npx",
33
+ "scaffold"
34
+ ],
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "engines": {
39
+ "node": ">=20.0.0"
40
+ }
41
+ }