@ai-ecoverse/slicc-kernel 1.175.1 → 1.176.0

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/index.js CHANGED
@@ -603,7 +603,8 @@ function kindsOf(hook) {
603
603
  kind,
604
604
  {
605
605
  ...policy?.group !== void 0 ? { group: String(policy.group) } : {},
606
- ...policy?.users ? { users: [...policy.users] } : {}
606
+ ...policy?.users ? { users: [...policy.users] } : {},
607
+ ...policy?.session === false ? { session: false } : {}
607
608
  }
608
609
  ])
609
610
  );
@@ -2608,6 +2609,7 @@ function kernelGroups(call) {
2608
2609
  const member = (op) => async (group, user) => await call({ op, group, user });
2609
2610
  return {
2610
2611
  list: async () => await call({ op: "groups-list" }),
2612
+ add: async (name, options) => await call({ op: "groups-add", name, gid: options?.gid }),
2611
2613
  addMember: member("groups-add-member"),
2612
2614
  removeMember: member("groups-remove-member")
2613
2615
  };