@hivemagnus/ardent 2.3.0 → 2.3.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.
- package/README.md +16 -0
- package/dist/news.js +23 -7
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -486,3 +486,19 @@ See [AGENTS.md](AGENTS.md) for contributor guidance.
|
|
|
486
486
|
|
|
487
487
|
Apache-2.0. The vendored A2A protocol definition in `protocol/` carries its own
|
|
488
488
|
license, [`protocol/LICENSE-A2A.txt`](protocol/LICENSE-A2A.txt).
|
|
489
|
+
|
|
490
|
+
### Interoperability checks
|
|
491
|
+
|
|
492
|
+
Run `npm run interop` from this standalone checkout. The runner installs pinned
|
|
493
|
+
Python A2A SDKs and checks out an exact public Hermes revision in an ignored
|
|
494
|
+
cache; Python is used only for these tests. Both supported Node versions run
|
|
495
|
+
this suite in CI.
|
|
496
|
+
|
|
497
|
+
The suite exercises the real Python SDK and Hermes wire adapter in both
|
|
498
|
+
client/server directions. Team missions, lifecycle and child-budget transactions
|
|
499
|
+
use independent Python reference peers in `test/fixtures/team_reference.py`.
|
|
500
|
+
They implement the published Ardent wire contract; they do not load an external
|
|
501
|
+
Hermes team plugin or require a sibling Magnus checkout. The compatibility probe
|
|
502
|
+
explicitly enables `hermes_compat` and allows its combined functional workload
|
|
503
|
+
through the fixture's rate buckets. Default throttling remains covered by the
|
|
504
|
+
separate rate-limit tests.
|
package/dist/news.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createHash } from 'node:crypto';
|
|
2
2
|
import { lookup } from 'node:dns/promises';
|
|
3
3
|
import { BlockList, isIP } from 'node:net';
|
|
4
|
+
import { parse } from 'parse5';
|
|
4
5
|
import { z } from 'zod';
|
|
5
6
|
import { resolveReference } from './config.js';
|
|
6
7
|
import { ArtifactSchema } from './artifacts.js';
|
|
@@ -173,14 +174,29 @@ export function newsStructuredPublicationTime(html, sourceUrl) {
|
|
|
173
174
|
dates.add(new Date(published).toISOString());
|
|
174
175
|
date ??= published;
|
|
175
176
|
};
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
// Parse actual HTML elements: comments, raw text and lookalike attributes
|
|
178
|
+
// must not become publisher evidence. Walk iteratively to bound call depth.
|
|
179
|
+
const pending = [parse(html, { sourceCodeLocationInfo: true })];
|
|
180
|
+
let scripts = 0;
|
|
181
|
+
while (pending.length && scripts < 32) {
|
|
182
|
+
const node = pending.pop();
|
|
183
|
+
if ('tagName' in node && node.tagName === 'script') {
|
|
184
|
+
scripts++;
|
|
185
|
+
if (node.namespaceURI !== 'http://www.w3.org/1999/xhtml' || !node.sourceCodeLocation?.endTag ||
|
|
186
|
+
node.attrs.find(attr => attr.name === 'type')?.value.toLowerCase() !== 'application/ld+json')
|
|
187
|
+
continue;
|
|
188
|
+
const text = node.childNodes.map(child => 'value' in child ? child.value : '').join('');
|
|
189
|
+
if (Buffer.byteLength(text) > 65_536)
|
|
190
|
+
continue;
|
|
191
|
+
try {
|
|
192
|
+
visit(JSON.parse(text), 0);
|
|
193
|
+
}
|
|
194
|
+
catch { /* Malformed publisher data remains unknown. */ }
|
|
195
|
+
}
|
|
196
|
+
else if ('childNodes' in node) {
|
|
197
|
+
for (let index = node.childNodes.length - 1; index >= 0; index--)
|
|
198
|
+
pending.push(node.childNodes[index]);
|
|
182
199
|
}
|
|
183
|
-
catch { /* Malformed publisher data remains unknown. */ }
|
|
184
200
|
}
|
|
185
201
|
return nodes <= 64 && dates.size === 1 ? date : null;
|
|
186
202
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hivemagnus/ardent",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Headless TypeScript agent runtime with A2A, scheduled jobs, skills, chat channels, and a plugin API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@a2a-js/sdk": "1.3.0",
|
|
74
74
|
"@bufbuild/protobuf": "2.16.0",
|
|
75
75
|
"@grpc/grpc-js": "1.14.7",
|
|
76
|
-
"@hivemagnus/canvas-word-codec": "1.
|
|
76
|
+
"@hivemagnus/canvas-word-codec": "1.1.0",
|
|
77
77
|
"@hivemagnus/emberfold": "0.1.0",
|
|
78
78
|
"@hono/node-server": "^2.1.5",
|
|
79
79
|
"better-sqlite3": "^13.0.3",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"express": "5.3.0",
|
|
82
82
|
"hono": "^4.13.16",
|
|
83
83
|
"marked": "18.1.1",
|
|
84
|
+
"parse5": "8.1.1",
|
|
84
85
|
"pdfmake": "0.3.13",
|
|
85
86
|
"ws": "^8.22.0",
|
|
86
87
|
"yaml": "2.9.1",
|