openmates 0.8.0-alpha.3 → 0.9.0-alpha.1

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.
@@ -3524,8 +3524,8 @@ function getSecretSuffix(match, n = 3) {
3524
3524
  if (cleaned.length <= n) return cleaned;
3525
3525
  return cleaned.slice(-n);
3526
3526
  }
3527
- function generatePlaceholder(prefix, match, suffixLength = 3) {
3528
- return `[${prefix}_${getSecretSuffix(match, suffixLength)}]`;
3527
+ function generatePlaceholder(prefix, match, suffixLength = 3, counter = 1) {
3528
+ return `[${prefix}_${counter}_${getSecretSuffix(match, suffixLength)}]`;
3529
3529
  }
3530
3530
  var SECRET_PATTERNS = [
3531
3531
  {
@@ -3983,6 +3983,7 @@ var SecretScanner = class {
3983
3983
  allMappings.push(mapping);
3984
3984
  }
3985
3985
  }
3986
+ const typeCounts = {};
3986
3987
  if (this.options.enablePatternDetection) {
3987
3988
  for (const pattern of SECRET_PATTERNS) {
3988
3989
  pattern.regex.lastIndex = 0;
@@ -3998,10 +3999,12 @@ var SecretScanner = class {
3998
3999
  if (pattern.validate && !pattern.validate(matchText)) continue;
3999
4000
  const existing = this.registry.get(matchText);
4000
4001
  if (existing) continue;
4002
+ typeCounts[pattern.type] = (typeCounts[pattern.type] || 0) + 1;
4001
4003
  const placeholder = generatePlaceholder(
4002
4004
  pattern.placeholderPrefix,
4003
4005
  matchText,
4004
- this.options.suffixLength
4006
+ this.options.suffixLength,
4007
+ typeCounts[pattern.type]
4005
4008
  );
4006
4009
  allMappings.push({
4007
4010
  placeholder,
@@ -9503,7 +9506,6 @@ ${h("Billing")}
9503
9506
  \x1B[2mGift cards (buy/manage): ${s("billing/gift-cards")}\x1B[0m
9504
9507
  ${h("Privacy")}
9505
9508
  openmates settings post auto-delete-chats --data '{"period":"90d"}'
9506
- openmates settings post auto-delete-usage --data '{"period":"1y"}'
9507
9509
  \x1B[2mHide personal data / anonymization: ${s("privacy/hide-personal-data")}\x1B[0m
9508
9510
  ${h("Notifications")}
9509
9511
  openmates settings get reminders [--json] Active reminders
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  getExtForLang,
4
4
  serializeToYaml
5
- } from "./chunk-XNONURHY.js";
5
+ } from "./chunk-5J4IXPQ3.js";
6
6
  export {
7
7
  getExtForLang,
8
8
  serializeToYaml
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  getExtForLang,
7
7
  parseNewChatSuggestionText,
8
8
  serializeToYaml
9
- } from "./chunk-XNONURHY.js";
9
+ } from "./chunk-5J4IXPQ3.js";
10
10
  export {
11
11
  MATE_NAMES,
12
12
  MEMORY_TYPE_REGISTRY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openmates",
3
- "version": "0.8.0-alpha.3",
3
+ "version": "0.9.0-alpha.1",
4
4
  "description": "OpenMates CLI and SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",