@hamp10/agentforge 0.2.43 → 0.2.44

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamp10/agentforge",
3
- "version": "0.2.43",
3
+ "version": "0.2.44",
4
4
  "description": "AgentForge worker — connect your machine to agentforge.ai",
5
5
  "type": "module",
6
6
  "bin": {
@@ -119,6 +119,14 @@ assert.deepEqual(
119
119
  ['agentboard-ai'],
120
120
  'scoped ownership should match page-owned assets named after the product, not only exact domain slugs'
121
121
  );
122
+ assert.deepEqual(
123
+ scopeSlugsMatchingText(
124
+ 'http://127.0.0.1:8000/domains/agentboard-ai.html?__agentforge_verify=1778287481427-aykulk',
125
+ ['agentboard-ai', 'agentforge-ai']
126
+ ),
127
+ ['agentboard-ai'],
128
+ 'platform cache-busting params should not make every local verification URL look like the AgentForge page'
129
+ );
122
130
 
123
131
  const git = (cwd, args) => execFileSync('git', args, { cwd, encoding: 'utf-8', stdio: 'pipe' }).trim();
124
132
 
@@ -64,7 +64,10 @@ export function scopeSlugAliases(value) {
64
64
  }
65
65
 
66
66
  export function scopeSlugsMatchingText(value, slugs) {
67
- const text = String(value || '').toLowerCase();
67
+ const text = String(value || '')
68
+ .toLowerCase()
69
+ .replace(/[?&]__agentforge_verify=[^&#\s]*/g, ' ')
70
+ .replace(/__agentforge_verify/g, ' ');
68
71
  return (Array.isArray(slugs) ? slugs : [])
69
72
  .filter(slug => scopeSlugAliases(slug).some(alias => alias && text.includes(alias)));
70
73
  }