orangeslice 1.8.1 → 1.8.3

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/README.md CHANGED
@@ -8,7 +8,7 @@ Orangeslice provides a `services.*` API for B2B research, enrichment, scraping,
8
8
  npx orangeslice
9
9
  ```
10
10
 
11
- The CLI copies docs to `./orangeslice-docs` and creates `./orangeslice-docs/AGENTS.md` so Claude Code/Cursor can use the docs as source of truth.
11
+ The CLI copies docs to `./orangeslice-docs`, creates `./orangeslice-docs/AGENTS.md`, initializes `package.json` when missing, and installs `orangeslice` in the current directory.
12
12
 
13
13
  Install as a dependency when writing app code:
14
14
 
@@ -67,6 +67,7 @@ All service calls go through `post()` in `src/api.ts`.
67
67
  - Polling split for pending/`202`:
68
68
  - `batch-native` (`b2b`, `batchserp`, `generateObject`) polls batch-service result endpoint.
69
69
  - `bridge` functions poll `https://orangeslice.ai/api/function/bridge-result`.
70
+ - Polling timeout supports long-running enrichment workflows (up to 10 minutes).
70
71
  - Inngest secrets are server-side only (Next.js route env vars), never in the npm package.
71
72
 
72
73
  The current endpoint-to-backend mapping is documented in `docs/runtime-routing.md`.
package/dist/api.js CHANGED
@@ -15,7 +15,7 @@ exports.post = post;
15
15
  const BASE_URL = "https://enrichly-production.up.railway.app/function";
16
16
  const DIRECT_BASE_URL = "https://orangeslice.ai/api/function";
17
17
  const BRIDGE_POLL_URL = "https://orangeslice.ai/api/function/bridge-result";
18
- const POLL_TIMEOUT_MS = 120000;
18
+ const POLL_TIMEOUT_MS = 600000;
19
19
  const DEFAULT_POLL_INTERVAL_MS = 1000;
20
20
  exports.BATCH_NATIVE_FUNCTION_IDS = new Set(["b2b", "batchserp", "generateObject"]);
21
21
  const BRIDGE_RESULT_EVENT_BY_FUNCTION_ID = {
package/dist/cli.js CHANGED
@@ -99,6 +99,17 @@ Use the docs in this folder as the source of truth for all orangeslice operation
99
99
  `;
100
100
  fs.writeFileSync(AGENTS_FILE, content, "utf8");
101
101
  }
102
+ function ensurePackageJson(cwd) {
103
+ const packageJsonPath = path.join(cwd, "package.json");
104
+ if (fs.existsSync(packageJsonPath))
105
+ return;
106
+ console.log(" No package.json found. Initializing npm project...");
107
+ (0, child_process_1.execSync)("npm init -y", { stdio: "inherit", cwd });
108
+ }
109
+ function installOrangeslice(cwd) {
110
+ console.log(" Installing orangeslice...");
111
+ (0, child_process_1.execSync)("npm install orangeslice", { stdio: "inherit", cwd });
112
+ }
102
113
  async function main() {
103
114
  console.log("\norangeslice\n");
104
115
  const docsDir = resolveDocsDir();
@@ -108,13 +119,11 @@ async function main() {
108
119
  copyDirSync(docsDir, TARGET_DIR);
109
120
  writeAgentsGuide(TARGET_DIR);
110
121
  console.log(` ✓ Docs (${path.basename(docsDir)}) → ./orangeslice-docs/\n`);
111
- // Install package
112
- try {
113
- (0, child_process_1.execSync)("npm install orangeslice", { stdio: "inherit", cwd: process.cwd() });
114
- }
115
- catch {
116
- // no package.json or npm not available
117
- }
122
+ // Always set up package installation in the current directory.
123
+ const cwd = process.cwd();
124
+ ensurePackageJson(cwd);
125
+ installOrangeslice(cwd);
126
+ console.log(" ✓ Package installed in current directory\n");
118
127
  console.log("\nReady - services-style API\n");
119
128
  console.log(" import { services } from 'orangeslice';\n");
120
129
  console.log(" Agent setup (do this first):");
@@ -7,11 +7,11 @@ description: Technographic data enrichment — discover what technologies, frame
7
7
 
8
8
  ## Available Methods
9
9
 
10
- | Method | Description | Credits |
11
- | --------------- | -------------------------------------- | -------- |
12
- | `lookupDomain` | Get full technology stack for a domain | 1 |
13
- | `relationships` | Find related/connected domains | 1 |
14
- | `searchByTech` | Find companies using a specific tech | 1/result |
10
+ | Method | Description | Credits |
11
+ | --------------- | -------------------------------------- | ---------------------------- |
12
+ | `lookupDomain` | Get full technology stack for a domain | 1 |
13
+ | `relationships` | Find related/connected domains | 1 |
14
+ | `searchByTech` | Find companies using a specific tech | 1/result (up to 900/page) |
15
15
 
16
16
  ## Use Cases
17
17
 
@@ -31,6 +31,7 @@ description: Technographic data enrichment — discover what technologies, frame
31
31
 
32
32
  - **Case-sensitive**: Use "Hubspot" not "HubSpot"
33
33
  - **Find exact names**: Use `lookupDomain` on a site to see correct tech names
34
+ - **Pagination**: Each page returns up to 900 results (= 900 credits per page). Use `offset` from previous response to get next page.
34
35
 
35
36
  ## Example Workflows
36
37
 
@@ -1,4 +1,4 @@
1
- /** Credits: 1 per result returned. */
1
+ /** Credits: 1 per result returned. Each page returns up to 900 results (= up to 900 credits per page). */
2
2
 
3
3
  /**
4
4
  * Find companies/domains that use a specific technology.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orangeslice",
3
- "version": "1.8.1",
3
+ "version": "1.8.3",
4
4
  "description": "B2B LinkedIn database prospector - 1.15B profiles, 85M companies",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",