orangeslice 1.4.0 → 1.4.1

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.
Files changed (2) hide show
  1. package/dist/cli.js +21 -21
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -39,10 +39,18 @@ const path = __importStar(require("path"));
39
39
  const child_process_1 = require("child_process");
40
40
  const DOCS_DIR = path.join(__dirname, "..", "docs");
41
41
  const TARGET_DIR = path.join(process.cwd(), "orangeslice-docs");
42
+ const AGENTS_MD = path.join(DOCS_DIR, "AGENTS.md");
43
+ const ROOT_AGENTS_MD = path.join(process.cwd(), "AGENTS.md");
42
44
  async function main() {
43
- console.log("\n orangeslice - setting up B2B client for AI agents...\n");
44
- // 1. Copy docs
45
- console.log("1. Copying B2B documentation...");
45
+ console.log("\n🍊 orangeslice - setting up sales agent for AI...\n");
46
+ // 1. Copy AGENTS.md to project root (for auto-detection by Claude Code, etc.)
47
+ console.log("1. Installing AGENTS.md at project root...");
48
+ if (fs.existsSync(AGENTS_MD)) {
49
+ fs.copyFileSync(AGENTS_MD, ROOT_AGENTS_MD);
50
+ console.log(" ✓ AGENTS.md → ./AGENTS.md (auto-detected by AI agents)\n");
51
+ }
52
+ // 2. Copy full docs to orangeslice-docs/
53
+ console.log("2. Copying detailed documentation...");
46
54
  if (!fs.existsSync(TARGET_DIR)) {
47
55
  fs.mkdirSync(TARGET_DIR, { recursive: true });
48
56
  }
@@ -51,30 +59,22 @@ async function main() {
51
59
  const src = path.join(DOCS_DIR, file);
52
60
  const dest = path.join(TARGET_DIR, file);
53
61
  fs.copyFileSync(src, dest);
54
- console.log(` ${file}`);
55
62
  }
56
- console.log(` Copied ${files.length} docs to ./orangeslice-docs/\n`);
57
- // 2. Install package
58
- console.log("2. Installing orangeslice package...");
63
+ console.log(` ${files.length} docs ./orangeslice-docs/\n`);
64
+ // 3. Install package
65
+ console.log("3. Installing orangeslice package...");
59
66
  try {
60
67
  (0, child_process_1.execSync)("npm install orangeslice", { stdio: "inherit", cwd: process.cwd() });
61
68
  }
62
69
  catch {
63
70
  console.log(" (skipped - no package.json or npm not available)\n");
64
71
  }
65
- // 3. Show usage
66
- console.log("\n Done! Your AI agent is ready.\n");
67
- console.log(" Point your AI agent (Claude, Cursor, etc.) to:\n");
68
- console.log(" ./orangeslice-docs/AGENTS.md\n");
69
- console.log(" This tells the agent how to act as your sales research assistant");
70
- console.log(" with access to 1B+ LinkedIn profiles.\n");
71
- console.log(" Example usage:\n");
72
- console.log(' import { orangeslice } from "orangeslice";');
73
- console.log("");
74
- console.log(" const company = await orangeslice.b2b.sql(`");
75
- console.log(" SELECT company_name, employee_count, description");
76
- console.log(" FROM linkedin_company");
77
- console.log(" WHERE domain = 'stripe.com'");
78
- console.log(" `);\n");
72
+ // 4. Done
73
+ console.log("\n Done! Your AI agent is now a sales research assistant.\n");
74
+ console.log(" AGENTS.md is at your project root - Claude Code will auto-detect it.\n");
75
+ console.log(" Your agent can now:\n");
76
+ console.log(" Query 1B+ LinkedIn profiles (orangeslice.b2b.sql)");
77
+ console.log(" Search Google (orangeslice.serp.search)");
78
+ console.log(" Scrape websites (orangeslice.firecrawl.scrape)\n");
79
79
  }
80
80
  main().catch(console.error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orangeslice",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Turn any AI agent into a B2B sales research assistant with 1B+ LinkedIn profiles",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",