@whittlelabs/sifter 0.18.0 → 0.19.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/bin.js +8 -12
- package/bin.js.map +2 -2
- package/package.json +1 -1
package/bin.js
CHANGED
|
@@ -3158,7 +3158,6 @@ var require_device_code = __commonJS({
|
|
|
3158
3158
|
const device = await startDeviceCode({
|
|
3159
3159
|
keepApiUrl: reg.keepApiUrl,
|
|
3160
3160
|
oauthClientId: reg.oauthClientId,
|
|
3161
|
-
scopes: reg.scopes,
|
|
3162
3161
|
fetcher,
|
|
3163
3162
|
brand: opts.brand
|
|
3164
3163
|
});
|
|
@@ -3207,7 +3206,7 @@ var require_device_code = __commonJS({
|
|
|
3207
3206
|
};
|
|
3208
3207
|
}
|
|
3209
3208
|
async function discoverMemberPools(opts) {
|
|
3210
|
-
const tokenUrl = `${opts.keepApiUrl.replace(/\/$/, "")}/api/
|
|
3209
|
+
const tokenUrl = `${opts.keepApiUrl.replace(/\/$/, "")}/api/agent-tokens`;
|
|
3211
3210
|
const tokenRes = await opts.fetcher(tokenUrl, {
|
|
3212
3211
|
method: "POST",
|
|
3213
3212
|
headers: { "Content-Type": "application/json" },
|
|
@@ -3241,8 +3240,7 @@ var require_device_code = __commonJS({
|
|
|
3241
3240
|
method: "POST",
|
|
3242
3241
|
headers: { "Content-Type": "application/json" },
|
|
3243
3242
|
body: JSON.stringify({
|
|
3244
|
-
client_id: opts.oauthClientId
|
|
3245
|
-
scope: opts.scopes.join(" ")
|
|
3243
|
+
client_id: opts.oauthClientId
|
|
3246
3244
|
})
|
|
3247
3245
|
});
|
|
3248
3246
|
(0, version_check_1.checkResponseMinVersion)({
|
|
@@ -18569,7 +18567,7 @@ var require_client2 = __commonJS({
|
|
|
18569
18567
|
/**
|
|
18570
18568
|
* Mint a short-lived `act_` token for an end user, with this client's
|
|
18571
18569
|
* service identity recorded as the conduit. Requires this client to be
|
|
18572
|
-
* constructed with a service token holding `keep:actor-tokens:
|
|
18570
|
+
* constructed with a service token holding `keep:actor-tokens:write`.
|
|
18573
18571
|
*/
|
|
18574
18572
|
async mintActorToken(actor) {
|
|
18575
18573
|
return this.request("POST", "/api/actor-tokens", { actor });
|
|
@@ -18691,7 +18689,7 @@ var require_client2 = __commonJS({
|
|
|
18691
18689
|
/**
|
|
18692
18690
|
* Reveal a hosted-Sifter customer's plaintext Anthropic API key for
|
|
18693
18691
|
* one dispatch. Service-token only; requires the
|
|
18694
|
-
* `keep:managed-sifter-
|
|
18692
|
+
* `keep:managed-sifter-key-material:read` scope, granted only to the
|
|
18695
18693
|
* `whittle-hosted-sifter` service identity.
|
|
18696
18694
|
*
|
|
18697
18695
|
* Callers must use the returned key for a single Anthropic request
|
|
@@ -18706,9 +18704,9 @@ var require_client2 = __commonJS({
|
|
|
18706
18704
|
* Read a user's hosted-Sifter opt-in status. Returns `{enabled:
|
|
18707
18705
|
* false}` for users who never opted in (no row) and users who
|
|
18708
18706
|
* opted in then disabled. Service-to-service only; requires the
|
|
18709
|
-
* `keep:managed-sifter-
|
|
18710
|
-
* from
|
|
18711
|
-
* other.
|
|
18707
|
+
* `keep:managed-sifter-enrollments:read` scope, which is distinct
|
|
18708
|
+
* from `keep:managed-sifter-key-material:read` so a service identity
|
|
18709
|
+
* can hold one without the other.
|
|
18712
18710
|
*/
|
|
18713
18711
|
async getManagedSifterStatus(userId) {
|
|
18714
18712
|
return this.request("GET", `/api/users/${encodeURIComponent(userId)}/managed-sifter-status`);
|
|
@@ -20980,7 +20978,6 @@ var require_defaults2 = __commonJS({
|
|
|
20980
20978
|
oauthClientId: "shuttle-dev",
|
|
20981
20979
|
orgSlug: "whittle-labs",
|
|
20982
20980
|
roleSlug: "shuttle-dev",
|
|
20983
|
-
scopes: ["jobs:subscribe", "jobs:submit"],
|
|
20984
20981
|
serviceIdentityDisplayName: "{user}'s Shuttle on {hostname}"
|
|
20985
20982
|
},
|
|
20986
20983
|
defaultCaps: {
|
|
@@ -21998,7 +21995,7 @@ var import_path = require("path");
|
|
|
21998
21995
|
var import_promises = require("fs/promises");
|
|
21999
21996
|
var import_yaml = __toESM(require_dist());
|
|
22000
21997
|
var import_shuttle = __toESM(require_dist5());
|
|
22001
|
-
var buildVersion = true ? "0.
|
|
21998
|
+
var buildVersion = true ? "0.19.1" : pkg.version;
|
|
22002
21999
|
var sifterBrand = {
|
|
22003
22000
|
product: {
|
|
22004
22001
|
id: "sifter",
|
|
@@ -22036,7 +22033,6 @@ var sifterBrand = {
|
|
|
22036
22033
|
oauthClientId: process.env.SIFTER_OAUTH_CLIENT_ID ?? "sifter",
|
|
22037
22034
|
orgSlug: "whittle-labs",
|
|
22038
22035
|
roleSlug: "sift-sifter",
|
|
22039
|
-
scopes: ["jobs:subscribe", "jobs:submit"],
|
|
22040
22036
|
serviceIdentityDisplayName: "{user}'s Sifter on {hostname}"
|
|
22041
22037
|
},
|
|
22042
22038
|
defaultCaps: {
|