@abelxiaoxing/cadence 2.0.29 → 2.0.31

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.
@@ -320,6 +320,7 @@ export class ServiceCoordination {
320
320
  "host-config.json",
321
321
  "history-v2",
322
322
  "conversations-v1",
323
+ "conversation-commands-v1",
323
324
  "conversation-workflows-v1",
324
325
  "workflows-v1",
325
326
  ]);
@@ -2291,7 +2291,7 @@ var HEADER = [
2291
2291
  var TOKEN_BYTES = 1024;
2292
2292
  function accessToken(value) {
2293
2293
  const result = text(value, TOKEN_BYTES, true);
2294
- if (utf8Bytes(result) < 32 || /[\p{Cc}\p{Cf}]/u.test(result))
2294
+ if (/[\p{Cc}\p{Cf}]/u.test(result))
2295
2295
  throw new ContractError("invalid");
2296
2296
  return result;
2297
2297
  }
@@ -2367,7 +2367,7 @@ function decode(source) {
2367
2367
  try {
2368
2368
  return { port: number, token: accessToken(t.value) };
2369
2369
  } catch {
2370
- return unusable(`has ${TOKEN_KEY} on line ${t.line} shorter than 32 characters or with control characters`);
2370
+ return unusable(`has ${TOKEN_KEY} on line ${t.line} that is empty, over ${TOKEN_BYTES} bytes or with control characters`);
2371
2371
  }
2372
2372
  }
2373
2373
  var code = (error) => error?.code ?? "error";
@@ -3438,6 +3438,7 @@ class ServiceCoordination {
3438
3438
  "host-config.json",
3439
3439
  "history-v2",
3440
3440
  "conversations-v1",
3441
+ "conversation-commands-v1",
3441
3442
  "conversation-workflows-v1",
3442
3443
  "workflows-v1"
3443
3444
  ]);
@@ -6712,7 +6713,7 @@ function observedServerResult(result, service) {
6712
6713
  }
6713
6714
  function serverConfigHint(error) {
6714
6715
  return `Cadence changed nothing: ${error.path} ${error.reason}.
6715
- Fix it and run the command again; the file holds the WebUI port and token as ${PORT_KEY}=<1-65535> and ${TOKEN_KEY}=<at least 32 characters>, one line each.
6716
+ Fix it and run the command again; the file holds the WebUI port and token as ${PORT_KEY}=<1-65535> and ${TOKEN_KEY}=<a non-empty token>, one line each.
6716
6717
  `;
6717
6718
  }
6718
6719
  function registryGuidance(_workspace, stateHome) {