@great-arrow/cli 0.1.33 → 0.1.34

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 (2) hide show
  1. package/dist/index.js +22 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9399,7 +9399,7 @@ function isNodeError(value) {
9399
9399
 
9400
9400
  // src/lib/version.ts
9401
9401
  var CLI_PACKAGE_NAME = "@great-arrow/cli";
9402
- var CLI_VERSION = "0.1.33";
9402
+ var CLI_VERSION = "0.1.34";
9403
9403
  var GAD_INSTALL_VERSION = "2026.08.08";
9404
9404
  var GAD_INSTALL_MIN_VERSION = "2026.06.22";
9405
9405
  var GAD_INSTALL_HEADER = "X-GAD-Install-Version";
@@ -11170,9 +11170,29 @@ var switchCommand = new Command("switch").description("Set the active workspace
11170
11170
  previousName && previousId && previousName !== resolvedName ? `Switched workspace: ${previousName} \u2192 ${resolvedName} (use '${previousId}' to switch back)` : `Working in workspace: ${resolvedName}`
11171
11171
  );
11172
11172
  });
11173
+ function flattenWorkspaceInfo(payload) {
11174
+ const root = typeof payload === "object" && payload !== null ? payload : {};
11175
+ if (typeof root.name === "string") return root;
11176
+ const ws = typeof root.workspace === "object" && root.workspace !== null ? root.workspace : {};
11177
+ const integrations = Array.isArray(root.integrations) ? root.integrations.map(
11178
+ (entry) => typeof entry === "string" ? entry : typeof entry === "object" && entry !== null ? String(
11179
+ entry.kind ?? entry.provider ?? entry.name ?? ""
11180
+ ) : ""
11181
+ ) : root.integrations;
11182
+ return {
11183
+ ...root,
11184
+ name: ws.name,
11185
+ kind: ws.kind,
11186
+ slug: ws.slug,
11187
+ role: ws.role,
11188
+ integrations
11189
+ };
11190
+ }
11173
11191
  var infoColumns = [
11174
11192
  { key: "name", header: "Name" },
11175
11193
  { key: "kind", header: "Kind" },
11194
+ { key: "slug", header: "Slug" },
11195
+ { key: "role", header: "Your role" },
11176
11196
  { key: "description", header: "Description" },
11177
11197
  {
11178
11198
  key: "memberCount",
@@ -11220,9 +11240,7 @@ var infoCommand = new Command("info").description("Show active workspace setting
11220
11240
  });
11221
11241
  const client = await createClient();
11222
11242
  const result = await client.mcpCall("workspace_settings_get", {});
11223
- const data = result;
11224
- const workspace = typeof data === "object" && data !== null ? data : {};
11225
- fmt.detail(workspace, infoColumns);
11243
+ fmt.detail(flattenWorkspaceInfo(result), infoColumns);
11226
11244
  });
11227
11245
  var membersCommand = new Command("members").description("List workspace members with roles and last-active timestamps").option("--json", "Output as JSON").action(async (options) => {
11228
11246
  const jsonFlag = Boolean(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@great-arrow/cli",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "GreatArrow.ai CLI tool",
5
5
  "type": "module",
6
6
  "bin": {