@topolo/cli 0.9.5 → 0.9.6

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 +4 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import { platform as platform2 } from "os";
9
9
  import { createInterface } from "readline/promises";
10
10
  import { stdin as input } from "process";
11
11
 
12
- // ../../node_modules/.pnpm/@topolo+sdk@0.11.11/node_modules/@topolo/sdk/dist/index.js
12
+ // node_modules/@topolo/sdk/dist/index.js
13
13
  function applyAuthHeaders(headers, credential) {
14
14
  if (credential.kind === "api_key") {
15
15
  headers.set("X-Api-Key", credential.apiKey);
@@ -2432,7 +2432,7 @@ function createTopolo(options) {
2432
2432
  };
2433
2433
  }
2434
2434
 
2435
- // ../../node_modules/.pnpm/@topolo+sdk@0.11.11/node_modules/@topolo/sdk/dist/node/credential-store.js
2435
+ // node_modules/@topolo/sdk/dist/node/credential-store.js
2436
2436
  import { mkdir, readFile, writeFile, chmod, rm, stat } from "fs/promises";
2437
2437
  import { existsSync } from "fs";
2438
2438
  import { homedir, platform } from "os";
@@ -5202,9 +5202,9 @@ function registerContextCommand(program2) {
5202
5202
  const wantPersonal = /^(personal|me)$/i.test(target.trim());
5203
5203
  let resolved;
5204
5204
  const needle = target.trim().toLowerCase();
5205
- const storedEntry = Object.entries(profile.contexts ?? {}).find(([, candidate]) => {
5205
+ const storedEntry = Object.entries(profile.contexts ?? {}).find(([key2, candidate]) => {
5206
5206
  if (wantPersonal) return candidate.contextType === "personal";
5207
- return candidate.contextType === "organization" && (candidate.organizationId === target || candidate.organizationSlug?.toLowerCase() === needle || candidate.organizationName?.toLowerCase() === needle);
5207
+ return key2.toLowerCase() === needle || candidate.contextType === "organization" && (candidate.organizationId === target || candidate.organizationSlug?.toLowerCase() === needle || candidate.organizationName?.toLowerCase() === needle);
5208
5208
  });
5209
5209
  const storedContext = storedEntry?.[1];
5210
5210
  if (storedEntry && storedContext?.credential) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@topolo/cli",
3
- "version": "0.9.5",
4
- "topoloPublishedVersion": "0.9.5",
3
+ "version": "0.9.6",
4
+ "topoloPublishedVersion": "0.9.6",
5
5
  "description": "Public command-line interface for Topolo customer organizations, developers, and agents.",
6
6
  "license": "UNLICENSED",
7
7
  "author": "Topolo",