@lotics/cli 0.37.0 → 0.38.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/client.d.ts CHANGED
@@ -135,11 +135,12 @@ export declare class LoticsClient {
135
135
  }): Promise<{
136
136
  rows: unknown[];
137
137
  }>;
138
- appMembers(app_id: string): Promise<{
138
+ appMembers(app_id: string, group_id?: string): Promise<{
139
139
  members: Array<{
140
140
  id: string;
141
141
  name: string | null;
142
142
  email: string | null;
143
+ image: string | null;
143
144
  }>;
144
145
  }>;
145
146
  /**
package/dist/client.js CHANGED
@@ -176,8 +176,9 @@ export class LoticsClient {
176
176
  async appQuery(app_id, body) {
177
177
  return this.request("POST", `/v1/apps/${encodeURIComponent(app_id)}/query`, body);
178
178
  }
179
- async appMembers(app_id) {
180
- return this.request("GET", `/v1/apps/${encodeURIComponent(app_id)}/members`);
179
+ async appMembers(app_id, group_id) {
180
+ const qs = group_id ? `?group_id=${encodeURIComponent(group_id)}` : "";
181
+ return this.request("GET", `/v1/apps/${encodeURIComponent(app_id)}/members${qs}`);
181
182
  }
182
183
  /**
183
184
  * Execute a workflow by alias declared in package.json#lotics.workflows.
@@ -40,7 +40,8 @@ export async function dispatchRpc(client, body) {
40
40
  return client.appWorkflow(body.app_id, p.alias, p.inputs);
41
41
  }
42
42
  case "members": {
43
- return client.appMembers(body.app_id);
43
+ const p = body.payload;
44
+ return client.appMembers(body.app_id, p?.group);
44
45
  }
45
46
  case "upload_url": {
46
47
  const p = body.payload;
package/dist/src/cli.js CHANGED
@@ -31841,8 +31841,9 @@ var LoticsClient = class {
31841
31841
  async appQuery(app_id, body) {
31842
31842
  return this.request("POST", `/v1/apps/${encodeURIComponent(app_id)}/query`, body);
31843
31843
  }
31844
- async appMembers(app_id) {
31845
- return this.request("GET", `/v1/apps/${encodeURIComponent(app_id)}/members`);
31844
+ async appMembers(app_id, group_id) {
31845
+ const qs = group_id ? `?group_id=${encodeURIComponent(group_id)}` : "";
31846
+ return this.request("GET", `/v1/apps/${encodeURIComponent(app_id)}/members${qs}`);
31846
31847
  }
31847
31848
  /**
31848
31849
  * Execute a workflow by alias declared in package.json#lotics.workflows.
@@ -32755,7 +32756,8 @@ async function dispatchRpc(client, body) {
32755
32756
  return client.appWorkflow(body.app_id, p.alias, p.inputs);
32756
32757
  }
32757
32758
  case "members": {
32758
- return client.appMembers(body.app_id);
32759
+ const p = body.payload;
32760
+ return client.appMembers(body.app_id, p?.group);
32759
32761
  }
32760
32762
  case "upload_url": {
32761
32763
  const p = body.payload;
@@ -42398,7 +42400,7 @@ function parseExcelFromZip(zip) {
42398
42400
  let visibleIndex = 0;
42399
42401
  for (let i = 0; i < workbookInfo.sheets.length; i++) {
42400
42402
  const sheetInfo = workbookInfo.sheets[i];
42401
- if (sheetInfo.state === "hidden" || sheetInfo.state === "veryHidden") continue;
42403
+ const isHidden = sheetInfo.state === "hidden" || sheetInfo.state === "veryHidden";
42402
42404
  const relTarget = wbRels.get(sheetInfo.rId);
42403
42405
  if (!relTarget) continue;
42404
42406
  const sheetPath = relTarget.startsWith("/") ? relTarget.slice(1) : `xl/${relTarget}`;
@@ -42418,6 +42420,7 @@ function parseExcelFromZip(zip) {
42418
42420
  workbookInfo.date1904
42419
42421
  );
42420
42422
  parsed.name = sheetInfo.name;
42423
+ if (isHidden) parsed.hidden = true;
42421
42424
  const printTitlesRaw = workbookInfo.printTitlesBySheet.get(i);
42422
42425
  if (printTitlesRaw) {
42423
42426
  const pt = parsePrintTitlesRef(printTitlesRaw);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lotics/cli",
3
- "version": "0.37.0",
3
+ "version": "0.38.0",
4
4
  "description": "Lotics SDK and CLI for AI agents",
5
5
  "type": "module",
6
6
  "bin": {