impel-cli 0.18.9 → 0.18.10

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": "impel-cli",
3
- "version": "0.18.9",
3
+ "version": "0.18.10",
4
4
  "description": "Prepare isolated Claude and Codex workspaces for every accessible Impel tenant",
5
5
  "type": "module",
6
6
  "bin": {
@@ -161,7 +161,6 @@ export async function cmdDoctor(argv) {
161
161
  flags.gateway !== undefined
162
162
  ? flags.gateway
163
163
  : process.env[brandedEnvironmentName("GATEWAY_URL")]
164
- || process.env.IMPEL_GATEWAY_URL
165
164
  || config.gatewayUrl
166
165
  || resolveDefaultGateway(),
167
166
  );
@@ -21,7 +21,7 @@ import { brandedEnvironmentName, RUNTIME_BRAND } from "../runtimeBrand.js";
21
21
  const MANAGED_SESSION_HOOK_FLAG = `${RUNTIME_BRAND.cli.command}-managed-session-hook-v1`;
22
22
 
23
23
  function environmentValue(suffix) {
24
- return process.env[brandedEnvironmentName(suffix)] ?? process.env[`IMPEL_${suffix}`];
24
+ return process.env[brandedEnvironmentName(suffix)];
25
25
  }
26
26
 
27
27
  const SPEC = {
@@ -24,9 +24,7 @@ const SAFE_ID_RE = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,255}$/u;
24
24
  const TASK_ID_RE = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u;
25
25
 
26
26
  function brandedEnvironmentValue(suffix) {
27
- const branded = process.env[brandedEnvironmentName(suffix)];
28
- if (branded !== undefined) return branded;
29
- return process.env[`IMPEL_${suffix}`];
27
+ return process.env[brandedEnvironmentName(suffix)];
30
28
  }
31
29
 
32
30
  function stateRoot() {
@@ -509,7 +507,7 @@ function repositoryMetadata(cwd) {
509
507
  };
510
508
  }
511
509
 
512
- function sessionsUrl(config) {
510
+ export function resolveSessionsUrl(config) {
513
511
  return String(
514
512
  brandedEnvironmentValue("SESSIONS_URL")
515
513
  || config?.sessionsUrl
@@ -545,7 +543,7 @@ async function apiRequest(config, tenantId, route, options = {}) {
545
543
  const controller = new AbortController();
546
544
  const timer = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS);
547
545
  try {
548
- const response = await fetch(`${sessionsUrl(config)}${route}`, {
546
+ const response = await fetch(`${resolveSessionsUrl(config)}${route}`, {
549
547
  ...options,
550
548
  headers: requestHeaders(config, tenantId, options.headers),
551
549
  signal: controller.signal,