@integrity-labs/cloud-broker 0.7.0 → 0.7.1

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 +10 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -21004,7 +21004,7 @@ var BrokerClient = class {
21004
21004
  exchangeInFlight = null;
21005
21005
  constructor(config2) {
21006
21006
  this.host = config2.host.replace(/\/+$/, "");
21007
- const rawPrefix = config2.apiPathPrefix ?? "/cloud/aws";
21007
+ const rawPrefix = config2.apiPathPrefix && config2.apiPathPrefix.trim() || "/aws";
21008
21008
  this.apiPathPrefix = (rawPrefix.startsWith("/") ? rawPrefix : `/${rawPrefix}`).replace(/\/+$/, "");
21009
21009
  this.agentId = config2.agentId;
21010
21010
  this.runId = config2.runId;
@@ -21127,7 +21127,9 @@ var BrokerClient = class {
21127
21127
  return this.request("POST", `${this.apiPathPrefix}/grants`, { body });
21128
21128
  }
21129
21129
  pollGrant(args) {
21130
- return this.request("GET", `${this.apiPathPrefix}/grants/${encodeURIComponent(args.grant_id)}`);
21130
+ return this.request("GET", `${this.apiPathPrefix}/grants/${encodeURIComponent(args.grant_id)}`, {
21131
+ query: this.agentId ? { agent_id: this.agentId } : void 0
21132
+ });
21131
21133
  }
21132
21134
  /**
21133
21135
  * ENG-4824: pre-flight check that the agent's Slack bot can actually
@@ -21149,7 +21151,8 @@ var BrokerClient = class {
21149
21151
  releaseAccess(args) {
21150
21152
  return this.request(
21151
21153
  "POST",
21152
- `${this.apiPathPrefix}/grants/${encodeURIComponent(args.grant_id)}/release`
21154
+ `${this.apiPathPrefix}/grants/${encodeURIComponent(args.grant_id)}/release`,
21155
+ { query: this.agentId ? { agent_id: this.agentId } : void 0 }
21153
21156
  );
21154
21157
  }
21155
21158
  /**
@@ -21175,7 +21178,8 @@ var BrokerClient = class {
21175
21178
  getCredentials(args) {
21176
21179
  return this.request(
21177
21180
  "POST",
21178
- `${this.apiPathPrefix}/grants/${encodeURIComponent(args.grant_id)}/credentials`
21181
+ `${this.apiPathPrefix}/grants/${encodeURIComponent(args.grant_id)}/credentials`,
21182
+ { query: this.agentId ? { agent_id: this.agentId } : void 0 }
21179
21183
  );
21180
21184
  }
21181
21185
  };
@@ -21274,7 +21278,7 @@ var listAccountsShape = listAccountsSchema.shape;
21274
21278
  // package.json
21275
21279
  var package_default = {
21276
21280
  name: "@integrity-labs/cloud-broker",
21277
- version: "0.7.0",
21281
+ version: "0.7.1",
21278
21282
  description: "Cloud Access Broker \u2014 MCP server that mints scoped, TTL-bounded cloud credentials per agent task. Ships AWS support (aws_request_access, aws_poll_grant, aws_release_access, aws_describe_scope, aws_preview_request, aws_get_credentials \u2014 STS AssumeRole under the hood); GCP, Azure, and Cloudflare land alongside in the same package as the broker grows.",
21279
21283
  type: "module",
21280
21284
  bin: {
@@ -21343,7 +21347,7 @@ var broker = new BrokerClient({
21343
21347
  runId: AGT_RUN_ID || void 0,
21344
21348
  initialToken: AGT_TOKEN || void 0,
21345
21349
  apiKey: AGT_API_KEY || void 0,
21346
- apiPathPrefix: "/cloud/aws"
21350
+ apiPathPrefix: "/aws"
21347
21351
  });
21348
21352
  function formatBrokerError(err) {
21349
21353
  if (err && typeof err === "object" && "status" in err && "message" in err) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integrity-labs/cloud-broker",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Cloud Access Broker — MCP server that mints scoped, TTL-bounded cloud credentials per agent task. Ships AWS support (aws_request_access, aws_poll_grant, aws_release_access, aws_describe_scope, aws_preview_request, aws_get_credentials — STS AssumeRole under the hood); GCP, Azure, and Cloudflare land alongside in the same package as the broker grows.",
5
5
  "type": "module",
6
6
  "bin": {