@astralform/js 2.0.0 → 3.0.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.cjs CHANGED
@@ -425,7 +425,7 @@ var AstralformClient = class {
425
425
  Authorization: `Bearer ${this.auth.accessToken}`
426
426
  };
427
427
  if (this.auth.agentId) {
428
- headers["X-Project-ID"] = this.auth.agentId;
428
+ headers["X-Agent-ID"] = this.auth.agentId;
429
429
  }
430
430
  if (this.auth.endUserId) {
431
431
  headers["X-End-User-ID"] = this.auth.endUserId;
@@ -480,10 +480,9 @@ var AstralformClient = class {
480
480
  async getHealth() {
481
481
  return this.get("/v1/health");
482
482
  }
483
- // Agent readiness check. The path is a legacy wire name (shared with the
484
- // iOS SDK) — it scopes to the client's active agent via X-Project-ID.
483
+ // Agent readiness check, scoped to the client's active agent via X-Agent-ID.
485
484
  async getAgentStatus() {
486
- const raw = await this.get("/v1/project/status");
485
+ const raw = await this.get("/v1/agent/status");
487
486
  const ui = raw.ui_components ?? {};
488
487
  return {
489
488
  isReady: raw.is_ready,
@@ -653,7 +652,7 @@ var AstralformClient = class {
653
652
  // --- Account-scoped discovery (user-token mode) ---
654
653
  //
655
654
  // Lets a signed-in user pick which team/agent they want to act on.
656
- // Backend gates these on OIDC user context (no X-Project-ID required) —
655
+ // Backend gates these on OIDC user context (no X-Agent-ID required) —
657
656
  // sending them in API-key mode yields 401.
658
657
  async listTeams() {
659
658
  const raw = await this.get("/v1/teams");