@vellumai/credential-executor 0.10.8-dev.202607151439.40520df → 0.10.8-dev.202607151636.0aafaf2

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.
@@ -148,6 +148,23 @@ export function createRedactedSentinelRegex(): RegExp {
148
148
  );
149
149
  }
150
150
 
151
+ /**
152
+ * Global-flag regex for locating NEUTRALIZED sentinels — the word-joiner
153
+ * form {@link neutralizeRedactedSentinels} produces — inside a larger text.
154
+ * Renderers use this to show a defused redaction marker as an inert badge
155
+ * instead of leaking bare sentinel glyphs into the transcript. The capture
156
+ * groups mirror {@link createRedactedSentinelRegex}, but consumers must NOT
157
+ * trust them as vault coordinates: a neutralized span is by definition text
158
+ * the daemon refused to vouch for. Same statefulness caveat as the genuine
159
+ * regex — create a fresh instance per iteration.
160
+ */
161
+ export function createNeutralizedSentinelRegex(): RegExp {
162
+ return new RegExp(
163
+ `${REDACTED_SENTINEL_OPEN}\\u2060${REDACTED_SENTINEL_TAG}:([^:\\u3014\\u3015]+?)(?::([A-Za-z0-9_.%-]+):([A-Za-z0-9_.%-]+))?${REDACTED_SENTINEL_CLOSE}`,
164
+ "g",
165
+ );
166
+ }
167
+
151
168
  /**
152
169
  * Map a {@link createRedactedSentinelRegex} match to a decoded sentinel.
153
170
  * Shared by {@link parseRedactedSentinel} and the web rehype plugin so the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellumai/credential-executor",
3
- "version": "0.10.8-dev.202607151439.40520df",
3
+ "version": "0.10.8-dev.202607151636.0aafaf2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {