@whittlelabs/sifter 0.6.0 → 0.7.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/README.md +3 -3
- package/bin.js +15 -11
- package/bin.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @whittlelabs/sifter
|
|
2
2
|
|
|
3
|
-
The Whittle Sifter is a paired AI reviewer for [Whittle Sift](https://sift.
|
|
3
|
+
The Whittle Sifter is a paired AI reviewer for [Whittle Sift](https://sift.whittlelabs.com). It runs on your machine, executes review prompts against your own AI credentials (Claude Code, Anthropic API key, etc.), and submits the results back to Sift. Token spend stays on your account.
|
|
4
4
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
@@ -21,11 +21,11 @@ Visit Sift's **Settings → Pair a Sifter**. Sift will display a pairing code an
|
|
|
21
21
|
whittle-sifter init --pairing-code=ABCD-1234
|
|
22
22
|
```
|
|
23
23
|
|
|
24
|
-
The Sifter defaults to
|
|
24
|
+
The Sifter defaults to production (`https://keep.whittlelabs.com`). To pair against stage, test, or any other environment, pass `--keep-url`:
|
|
25
25
|
|
|
26
26
|
```bash
|
|
27
27
|
whittle-sifter init \
|
|
28
|
-
--keep-url=https://keep.
|
|
28
|
+
--keep-url=https://keep.stage.whittlelabs.com \
|
|
29
29
|
--pairing-code=ABCD-1234
|
|
30
30
|
```
|
|
31
31
|
|
package/bin.js
CHANGED
|
@@ -18813,14 +18813,18 @@ var require_claude_code = __commonJS({
|
|
|
18813
18813
|
signal.removeEventListener("abort", onAbort);
|
|
18814
18814
|
const stdout = Buffer.concat(stdoutChunks).toString("utf-8");
|
|
18815
18815
|
if (code === 0) {
|
|
18816
|
-
|
|
18817
|
-
|
|
18818
|
-
|
|
18819
|
-
|
|
18820
|
-
|
|
18821
|
-
|
|
18822
|
-
|
|
18823
|
-
|
|
18816
|
+
try {
|
|
18817
|
+
const parsed = safeJsonParse(stdout);
|
|
18818
|
+
(0, validate_output_1.assertOutputValid)(spec, parsed);
|
|
18819
|
+
settle(() => resolve({
|
|
18820
|
+
outputs: [{ label: outputLabel, content: parsed ?? { raw: stdout } }],
|
|
18821
|
+
rawText: stdout,
|
|
18822
|
+
parsed,
|
|
18823
|
+
usage: this.config.model ? { aiProvider: "claude-code", aiModel: this.config.model } : void 0
|
|
18824
|
+
}));
|
|
18825
|
+
} catch (err) {
|
|
18826
|
+
settle(() => reject(err instanceof Error ? err : new Error(String(err))));
|
|
18827
|
+
}
|
|
18824
18828
|
} else {
|
|
18825
18829
|
settle(() => reject(new Error(`Claude Code exited with code ${code}`)));
|
|
18826
18830
|
}
|
|
@@ -20717,7 +20721,7 @@ var import_shuttle = __toESM(require_dist5());
|
|
|
20717
20721
|
// package.json
|
|
20718
20722
|
var package_default = {
|
|
20719
20723
|
name: "@whittlelabs/sifter",
|
|
20720
|
-
version: "0.
|
|
20724
|
+
version: "0.7.1",
|
|
20721
20725
|
description: "Whittle Sifter: paired AI reviewer for Whittle Sift job pools.",
|
|
20722
20726
|
bin: {
|
|
20723
20727
|
"whittle-sifter": "./dist/bin.js"
|
|
@@ -20777,8 +20781,8 @@ var sifterBrand = {
|
|
|
20777
20781
|
},
|
|
20778
20782
|
executorAllowlist: ["claude-code", "anthropic-api", "http-api", "webhook", "custom-script"],
|
|
20779
20783
|
keepRegistration: {
|
|
20780
|
-
keepApiUrl: process.env.KEEP_API_URL ?? "https://keep.
|
|
20781
|
-
jobsApiUrl: process.env.JOBS_API_URL ?? "https://jobs.
|
|
20784
|
+
keepApiUrl: process.env.KEEP_API_URL ?? "https://keep.whittlelabs.com",
|
|
20785
|
+
jobsApiUrl: process.env.JOBS_API_URL ?? "https://jobs.whittlelabs.com",
|
|
20782
20786
|
oauthClientId: process.env.SIFTER_OAUTH_CLIENT_ID ?? "sifter",
|
|
20783
20787
|
orgSlug: "whittle-labs",
|
|
20784
20788
|
roleSlug: "sift-sifter",
|