@agimon-ai/po-network 0.0.2-alpha.91 → 0.0.2-alpha.93
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.
|
@@ -28,6 +28,7 @@ function createCapabilityManifest(input) {
|
|
|
28
28
|
networkId: input.networkId,
|
|
29
29
|
packages: input.packages,
|
|
30
30
|
templates: input.templates,
|
|
31
|
+
...input.webPlugins === void 0 ? {} : { webPlugins: input.webPlugins },
|
|
31
32
|
issuedAt: input.now,
|
|
32
33
|
expiresAt: input.now + _agimon_ai_po_web_security_browser.FEDERATION_FRESHNESS.manifest
|
|
33
34
|
});
|
|
@@ -51,6 +52,14 @@ async function verifyCapabilityManifest(envelope, roster, now) {
|
|
|
51
52
|
if (!record(pkg) || !text(pkg.name) || names.has(pkg.name) || !text(pkg.version) || !fingerprint(pkg.contractFingerprint) || !validCapabilityOperations(pkg.operations)) return void 0;
|
|
52
53
|
names.add(pkg.name);
|
|
53
54
|
}
|
|
55
|
+
if (p.webPlugins !== void 0) {
|
|
56
|
+
if (!Array.isArray(p.webPlugins) || p.webPlugins.length > 1024) return void 0;
|
|
57
|
+
const pluginPackages = /* @__PURE__ */ new Set();
|
|
58
|
+
for (const plugin of p.webPlugins) {
|
|
59
|
+
if (!record(plugin) || !text(plugin.packageName) || !text(plugin.pluginId) || !fingerprint(plugin.fingerprint) || pluginPackages.has(plugin.packageName)) return void 0;
|
|
60
|
+
pluginPackages.add(plugin.packageName);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
54
63
|
const ids = /* @__PURE__ */ new Set();
|
|
55
64
|
for (const template of p.templates) {
|
|
56
65
|
if (!record(template) || !text(template.id) || ids.has(template.id) || !fingerprint(template.fingerprint)) return void 0;
|
|
@@ -16,6 +16,7 @@ export declare function createCapabilityManifest(input: {
|
|
|
16
16
|
networkId: string;
|
|
17
17
|
packages: FederationCapabilities['packages'];
|
|
18
18
|
templates: FederationCapabilities['templates'];
|
|
19
|
+
webPlugins?: FederationCapabilities['webPlugins'];
|
|
19
20
|
now: number;
|
|
20
21
|
}): FederationCapabilities;
|
|
21
22
|
/** Advisory only. Always binds the signature to the current roster key. */
|
|
@@ -28,6 +28,7 @@ function createCapabilityManifest(input) {
|
|
|
28
28
|
networkId: input.networkId,
|
|
29
29
|
packages: input.packages,
|
|
30
30
|
templates: input.templates,
|
|
31
|
+
...input.webPlugins === void 0 ? {} : { webPlugins: input.webPlugins },
|
|
31
32
|
issuedAt: input.now,
|
|
32
33
|
expiresAt: input.now + FEDERATION_FRESHNESS.manifest
|
|
33
34
|
});
|
|
@@ -51,6 +52,14 @@ async function verifyCapabilityManifest(envelope, roster, now) {
|
|
|
51
52
|
if (!record(pkg) || !text(pkg.name) || names.has(pkg.name) || !text(pkg.version) || !fingerprint(pkg.contractFingerprint) || !validCapabilityOperations(pkg.operations)) return void 0;
|
|
52
53
|
names.add(pkg.name);
|
|
53
54
|
}
|
|
55
|
+
if (p.webPlugins !== void 0) {
|
|
56
|
+
if (!Array.isArray(p.webPlugins) || p.webPlugins.length > 1024) return void 0;
|
|
57
|
+
const pluginPackages = /* @__PURE__ */ new Set();
|
|
58
|
+
for (const plugin of p.webPlugins) {
|
|
59
|
+
if (!record(plugin) || !text(plugin.packageName) || !text(plugin.pluginId) || !fingerprint(plugin.fingerprint) || pluginPackages.has(plugin.packageName)) return void 0;
|
|
60
|
+
pluginPackages.add(plugin.packageName);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
54
63
|
const ids = /* @__PURE__ */ new Set();
|
|
55
64
|
for (const template of p.templates) {
|
|
56
65
|
if (!record(template) || !text(template.id) || ids.has(template.id) || !fingerprint(template.fingerprint)) return void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-network",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.93",
|
|
4
4
|
"description": "Host-neutral network election core and deterministic safety simulator.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@agimon-ai/po-core": "0.0.0-alpha.
|
|
43
|
-
"@agimon-ai/po-web-security": "0.0.0-alpha.
|
|
42
|
+
"@agimon-ai/po-core": "0.0.0-alpha.146",
|
|
43
|
+
"@agimon-ai/po-web-security": "0.0.0-alpha.146"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@agimon-ai/vibe-lint-plugin-po-core": "0.0.0-alpha.
|
|
46
|
+
"@agimon-ai/vibe-lint-plugin-po-core": "0.0.0-alpha.146",
|
|
47
47
|
"@types/node": "26.4.1",
|
|
48
48
|
"tsdown": "0.23.0",
|
|
49
49
|
"typescript": "7.0.2",
|