@topolo/cli 0.12.13 → 0.12.15

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 +7 -4
  2. package/package.json +4 -4
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.23.1/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);
@@ -440,7 +440,7 @@ function sensitive(key, value) {
440
440
  const text3 = value.trim();
441
441
  return Boolean(text3) && !/^[a-z][a-z0-9_-]{0,31}$/.test(text3);
442
442
  }
443
- return ["authorization", "cookie", "setcookie", "proxyauthorization"].includes(normalized) || /(token|secret|password|privatekey|apikey)$/.test(normalized);
443
+ return ["authorization", "cookie", "setcookie", "proxyauthorization"].includes(normalized) || /(token|secret|password|privatekey|apikey|backupcodes?|recoverycodes?)$/.test(normalized);
444
444
  }
445
445
  function maskActionSecrets(value, secrets) {
446
446
  let masked = value;
@@ -467,6 +467,9 @@ async function protectActionResult(value, store) {
467
467
  const secrets = /* @__PURE__ */ new Map();
468
468
  async function protect(item, key = "") {
469
469
  if (isActionSecretReference(item)) return item;
470
+ if (Array.isArray(item) && /(?:backup|recovery)codes$/.test(key.toLowerCase().replace(/[^a-z0-9]/g, ""))) {
471
+ return Promise.all(item.map((child) => protect(child, key)));
472
+ }
470
473
  if (sensitive(key, item)) {
471
474
  const reference = store ? await store.save(item) : "[REDACTED]";
472
475
  if (typeof item === "string" && item) secrets.set(item, reference);
@@ -1390,7 +1393,7 @@ var TopoloClient = class _TopoloClient {
1390
1393
  this.appIds = options.appIds;
1391
1394
  this.requireConfirmForWrites = options.requireConfirmForWrites !== false;
1392
1395
  this.timeoutMs = options.timeoutMs ?? 12e4;
1393
- this.fetchImpl = options.fetch ?? fetch;
1396
+ this.fetchImpl = options.fetch ?? globalThis.fetch.bind(globalThis);
1394
1397
  this.credentialProvider = options.credentialProvider;
1395
1398
  this.refreshCredential = options.refreshCredential;
1396
1399
  this.debug = options.debug;
@@ -3494,7 +3497,7 @@ function createTopolo(options) {
3494
3497
  };
3495
3498
  }
3496
3499
 
3497
- // node_modules/.pnpm/@topolo+sdk@0.23.1/node_modules/@topolo/sdk/dist/node/credential-store.js
3500
+ // node_modules/@topolo/sdk/dist/node/credential-store.js
3498
3501
  import { mkdir as mkdir2, readFile as readFile2, writeFile as writeFile2, chmod as chmod2, rm as rm2, stat } from "fs/promises";
3499
3502
  import { existsSync as existsSync2 } from "fs";
3500
3503
  import { homedir as homedir2, platform } from "os";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@topolo/cli",
3
3
  "packageManager": "pnpm@10.17.1",
4
- "version": "0.12.13",
5
- "topoloPublishedVersion": "0.12.13",
4
+ "version": "0.12.15",
5
+ "topoloPublishedVersion": "0.12.15",
6
6
  "description": "Public command-line interface for Topolo customer organizations, developers, and agents.",
7
7
  "license": "UNLICENSED",
8
8
  "author": "Topolo",
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@modelcontextprotocol/sdk": "^1.0.0",
31
- "@topolo/mcp": "0.14.6",
32
- "@topolo/sdk": "0.23.1",
31
+ "@topolo/mcp": "0.14.8",
32
+ "@topolo/sdk": "0.23.3",
33
33
  "commander": "^12.1.0"
34
34
  },
35
35
  "devDependencies": {