@whittlelabs/sifter 0.42.4 → 0.42.6

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 (3) hide show
  1. package/bin.js +14 -15
  2. package/bin.js.map +2 -2
  3. package/package.json +1 -1
package/bin.js CHANGED
@@ -9634,8 +9634,7 @@ var require_canonicalise = __commonJS({
9634
9634
  return {
9635
9635
  name: workflow.name,
9636
9636
  description: workflow.description ?? null,
9637
- ownerClass: opts.ownerClass,
9638
- ownerId: opts.ownerId,
9637
+ owner: { principalClass: opts.ownerClass, principalId: opts.ownerId },
9639
9638
  ...opts.visibility !== void 0 ? { visibility: opts.visibility } : {},
9640
9639
  retainPublishedVersions: workflow.retain?.publishedVersions ?? null,
9641
9640
  ...opts.publish !== void 0 ? { publish: opts.publish } : {},
@@ -58705,41 +58704,41 @@ var require_client = __commonJS({
58705
58704
  }
58706
58705
  // ── Organizations ───────────────────────────────────────────────
58707
58706
  async listOrganizations() {
58708
- const { organizations } = await this.request("GET", "/api/organizations");
58707
+ const { organizations } = await this.request("GET", "/api/orgs");
58709
58708
  return organizations;
58710
58709
  }
58711
58710
  async getOrganization(orgId) {
58712
- return this.request("GET", `/api/organizations/${orgId}`);
58711
+ return this.request("GET", `/api/orgs/${orgId}`);
58713
58712
  }
58714
58713
  async createOrganization(name2, description) {
58715
- return this.request("POST", "/api/organizations", { name: name2, description });
58714
+ return this.request("POST", "/api/orgs", { name: name2, description });
58716
58715
  }
58717
58716
  async updateOrganization(orgId, updates) {
58718
- return this.request("PATCH", `/api/organizations/${orgId}`, updates);
58717
+ return this.request("PATCH", `/api/orgs/${orgId}`, updates);
58719
58718
  }
58720
58719
  async deleteOrganization(orgId) {
58721
- await this.request("DELETE", `/api/organizations/${orgId}`);
58720
+ await this.request("DELETE", `/api/orgs/${orgId}`);
58722
58721
  }
58723
58722
  async listMembers(orgId) {
58724
- return this.request("GET", `/api/organizations/${orgId}/members`);
58723
+ return this.request("GET", `/api/orgs/${orgId}/members`);
58725
58724
  }
58726
58725
  async removeMember(orgId, userId) {
58727
- await this.request("DELETE", `/api/organizations/${orgId}/members/${userId}`);
58726
+ await this.request("DELETE", `/api/orgs/${orgId}/members/${userId}`);
58728
58727
  }
58729
58728
  async listTeams(orgId) {
58730
- return this.request("GET", `/api/organizations/${orgId}/teams`);
58729
+ return this.request("GET", `/api/orgs/${orgId}/teams`);
58731
58730
  }
58732
58731
  async createTeam(orgId, name2, description) {
58733
- return this.request("POST", `/api/organizations/${orgId}/teams`, { name: name2, description });
58732
+ return this.request("POST", `/api/orgs/${orgId}/teams`, { name: name2, description });
58734
58733
  }
58735
58734
  async listTeamMembers(orgId, teamId) {
58736
- return this.request("GET", `/api/organizations/${orgId}/teams/${teamId}/members`);
58735
+ return this.request("GET", `/api/orgs/${orgId}/teams/${teamId}/members`);
58737
58736
  }
58738
58737
  async addTeamMember(orgId, teamId, userId) {
58739
- return this.request("POST", `/api/organizations/${orgId}/teams/${teamId}/members`, { userId });
58738
+ return this.request("POST", `/api/orgs/${orgId}/teams/${teamId}/members`, { userId });
58740
58739
  }
58741
58740
  async createInvitation(orgId, email, roleGrants) {
58742
- return this.request("POST", `/api/organizations/${orgId}/invitations`, { email, roleGrants });
58741
+ return this.request("POST", `/api/orgs/${orgId}/invitations`, { email, roleGrants });
58743
58742
  }
58744
58743
  async getInvitation(token) {
58745
58744
  return this.request("GET", `/api/invitations/${token}`);
@@ -76002,7 +76001,7 @@ var import_path = require("path");
76002
76001
  var import_promises = require("fs/promises");
76003
76002
  var import_yaml = __toESM(require_dist5());
76004
76003
  var import_shuttle = __toESM(require_dist8());
76005
- var buildVersion = true ? "0.42.4" : pkg.version;
76004
+ var buildVersion = true ? "0.42.6" : pkg.version;
76006
76005
  var AGENT_EXECUTORS = ["claude-code", "codex", "copilot"];
76007
76006
  var sifterBrand = {
76008
76007
  product: {