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.
- package/dist/cli.js +21 -21
- 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
|
|
44
|
-
// 1. Copy
|
|
45
|
-
console.log("1.
|
|
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(`
|
|
57
|
-
//
|
|
58
|
-
console.log("
|
|
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
|
-
//
|
|
66
|
-
console.log("\n Done! Your AI agent is
|
|
67
|
-
console.log("
|
|
68
|
-
console.log("
|
|
69
|
-
console.log("
|
|
70
|
-
console.log("
|
|
71
|
-
console.log("
|
|
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);
|