biaws 0.3.0 → 0.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "biaws",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "CLI do Bondia Workspaces para administração, configuração e operação de workspaces",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
package/src/apiClient.js CHANGED
@@ -40,6 +40,8 @@ export function createApiClient(baseUrl, apiKey, workspaceId = "") {
40
40
  }
41
41
 
42
42
  return {
43
+ withWorkspace: (selectedWorkspaceId) =>
44
+ createApiClient(baseUrl, apiKey, selectedWorkspaceId),
43
45
  request: (path, options = {}) => request(path, options, apiRoot),
44
46
  identity: () => request("/auth/me", {}, apiRoot),
45
47
  list: (options = {}) =>
@@ -11,7 +11,7 @@ import { runSkillsCommand } from "./skills.js";
11
11
  const CODEX_BEGIN = "# BEGIN BIAWS MANAGED MCP";
12
12
  const CODEX_END = "# END BIAWS MANAGED MCP";
13
13
  export const MCP_PACKAGE_NAME = "biaws-mcp";
14
- export const MCP_PACKAGE_VERSION = "0.2.0";
14
+ export const MCP_PACKAGE_VERSION = "0.3.0";
15
15
  export const MCP_PACKAGE_SPEC = `${MCP_PACKAGE_NAME}@${MCP_PACKAGE_VERSION}`;
16
16
  const MCP_COMMAND = "npx";
17
17
  const MCP_ARGS = ["--yes", MCP_PACKAGE_SPEC];
@@ -197,6 +197,7 @@ async function configure(api, client, options, context) {
197
197
  );
198
198
  }
199
199
  }
200
+ const scopedApi = api.withWorkspace ? api.withWorkspace(workspaceId) : api;
200
201
  const target = skillTarget(client, projectDirectory);
201
202
  const configPath =
202
203
  client === "codex"
@@ -212,7 +213,7 @@ async function configure(api, client, options, context) {
212
213
  workspaceId,
213
214
  options.force,
214
215
  );
215
- const installation = await runSkillsCommand(api, "install-all", [], {
216
+ const installation = await runSkillsCommand(scopedApi, "install-all", [], {
216
217
  target,
217
218
  force: options.force,
218
219
  json: false,