@sjawhar/opencode-legion-envoy 3.19.6 → 3.19.7

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.
@@ -13807,6 +13807,9 @@ function claimHolds(claim, titles) {
13807
13807
  return titles.has(claim.actor.id) ? "holds" : "lapsed";
13808
13808
  }
13809
13809
  // ../contracts/src/dispatch-href.ts
13810
+ function hasControlCharacter(value) {
13811
+ return /\p{Cc}/u.test(value);
13812
+ }
13810
13813
  function itemFromSearch(search) {
13811
13814
  const params = new URLSearchParams(search);
13812
13815
  const ask = params.get("ask");
@@ -13827,6 +13830,9 @@ function itemFromSearch(search) {
13827
13830
  } catch {
13828
13831
  return null;
13829
13832
  }
13833
+ if (hasControlCharacter(id)) {
13834
+ return null;
13835
+ }
13830
13836
  return ask === null ? { id, kind: "comment" } : { id, kind: "ask" };
13831
13837
  }
13832
13838
  // ../contracts/src/dispatch-snippet.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/opencode-legion-envoy",
3
- "version": "3.19.6",
3
+ "version": "3.19.7",
4
4
  "type": "module",
5
5
  "main": "dist/src/server.js",
6
6
  "exports": {