@topolo/sdk 0.21.3 → 0.21.4

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
@@ -470,7 +470,8 @@ async function resolveActionSecrets(value, store, secrets) {
470
470
  if (isActionSecretReference(value)) {
471
471
  if (!store) throw new TopoloSdkError("action_secret_store_required", "Protected action references require a secret store.");
472
472
  const resolved = await store.load(value);
473
- if (typeof resolved === "string" && resolved) secrets.set(resolved, value);
473
+ if (typeof resolved !== "string" || !resolved) throw new TopoloSdkError("action_secret_unsupported_type", "Protected action handoff requires a nonempty string credential.");
474
+ secrets.set(resolved, value);
474
475
  return resolved;
475
476
  }
476
477
  if (Array.isArray(value)) return Promise.all(value.map((item) => resolveActionSecrets(item, store, secrets)));
package/dist/index.js CHANGED
@@ -371,7 +371,8 @@ async function resolveActionSecrets(value, store, secrets) {
371
371
  if (isActionSecretReference(value)) {
372
372
  if (!store) throw new TopoloSdkError("action_secret_store_required", "Protected action references require a secret store.");
373
373
  const resolved = await store.load(value);
374
- if (typeof resolved === "string" && resolved) secrets.set(resolved, value);
374
+ if (typeof resolved !== "string" || !resolved) throw new TopoloSdkError("action_secret_unsupported_type", "Protected action handoff requires a nonempty string credential.");
375
+ secrets.set(resolved, value);
375
376
  return resolved;
376
377
  }
377
378
  if (Array.isArray(value)) return Promise.all(value.map((item) => resolveActionSecrets(item, store, secrets)));
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@topolo/sdk",
3
3
  "packageManager": "pnpm@10.17.1",
4
- "version": "0.21.3",
5
- "topoloPublishedVersion": "0.21.3",
4
+ "version": "0.21.4",
5
+ "topoloPublishedVersion": "0.21.4",
6
6
  "description": "Typed client SDK for the Topolo platform. Used by TopoloCli, TopoloMCP, and third-party agents.",
7
7
  "license": "UNLICENSED",
8
8
  "author": "Topolo",