@jini-ai/plugins 0.6.17 → 0.6.22
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @jini-ai/plugins
|
|
2
2
|
|
|
3
|
+
## 0.6.22
|
|
4
|
+
|
|
5
|
+
- Enabling a tier-3 plugin always asks the owner, including a version approved before.
|
|
6
|
+
|
|
7
|
+
## 0.6.19
|
|
8
|
+
|
|
9
|
+
- Redact failed widget diagnostics in the universal host without Node-only imports.
|
|
10
|
+
|
|
3
11
|
## 0.6.17
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { formatErrorForLog } from '@jini-ai/core';
|
|
1
2
|
/** Executable contribution admission on the existing plugin loader, never a second loader.
|
|
2
3
|
* Captures stay private until setup succeeds. A sealed generation cannot register from a timer.
|
|
3
4
|
* Tier-3 currently runs with full in-process authority; a hardened worker at this boundary is
|
|
@@ -184,7 +185,7 @@ export async function renderPluginWidgetFragments(required, optional = {}) {
|
|
|
184
185
|
fragments[widget.name] = required.validateHtml({ html });
|
|
185
186
|
}
|
|
186
187
|
catch (error) {
|
|
187
|
-
(optional.onError ?? ((
|
|
188
|
+
(optional.onError ?? (({ pluginId, widgetName, error: failureError }) => console.warn(`[plugins] Plugin '${pluginId}' widget '${widgetName}' failed`, formatErrorForLog({ error: failureError }))))({ pluginId: snapshot.pluginId, widgetName: widget.name, error }, {});
|
|
188
189
|
fragments[widget.name] = '';
|
|
189
190
|
}
|
|
190
191
|
finally {
|
|
@@ -9,8 +9,8 @@ export interface PluginSourcePolicyPort {
|
|
|
9
9
|
}, optional?: Record<string, never>): boolean;
|
|
10
10
|
}
|
|
11
11
|
/** Local authoring runs directly; hosted sideloading retains the host's explicit opt-in.
|
|
12
|
-
* Enabling asks the owner
|
|
13
|
-
*
|
|
12
|
+
* Enabling always asks the owner, including a version whose capabilities were approved before.
|
|
13
|
+
* Tier-3 code runs in-process with full server authority, so "sealed here"
|
|
14
14
|
* (possibly by the assistant itself) is never consent on its own (owner, 2026-10-12).
|
|
15
15
|
* @param required Deployment facts supplied by the host.
|
|
16
16
|
* @param _optional Reserved factory options.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** Local authoring runs directly; hosted sideloading retains the host's explicit opt-in.
|
|
2
|
-
* Enabling asks the owner
|
|
3
|
-
*
|
|
2
|
+
* Enabling always asks the owner, including a version whose capabilities were approved before.
|
|
3
|
+
* Tier-3 code runs in-process with full server authority, so "sealed here"
|
|
4
4
|
* (possibly by the assistant itself) is never consent on its own (owner, 2026-10-12).
|
|
5
5
|
* @param required Deployment facts supplied by the host.
|
|
6
6
|
* @param _optional Reserved factory options.
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
export function createPluginSourcePolicy(required, _optional = {}) {
|
|
11
11
|
return {
|
|
12
12
|
localInstallEnabled: (_required = {}, _optional = {}) => !required.hosted || required.localInstallOptIn,
|
|
13
|
-
confirmEnable: (
|
|
13
|
+
confirmEnable: (_required, _optional = {}) => true,
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
16
|
/** Everything a manifest lets the plugin reach, as stable `kind:name` entries. Code may change
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jini-ai/plugins",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.22",
|
|
4
4
|
"description": "Host-independent extension glue and site-plugin runtime with injected SDK, trust, archive and storage ports.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"registry": "https://registry.npmjs.org"
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@jini-ai/core": "^0.6.
|
|
81
|
+
"@jini-ai/core": "^0.6.22"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"@jini-ai/platform": "^0.6.10",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"semver": "^7.6.2",
|
|
91
91
|
"@types/semver": "^7.5.8",
|
|
92
92
|
"kysely": "^0.29.6",
|
|
93
|
-
"@jini-ai/
|
|
94
|
-
"@jini-ai/
|
|
95
|
-
"@jini-ai/db": "0.6.
|
|
93
|
+
"@jini-ai/platform": "^0.6.22",
|
|
94
|
+
"@jini-ai/core": "^0.6.22",
|
|
95
|
+
"@jini-ai/db": "0.6.19"
|
|
96
96
|
},
|
|
97
97
|
"peerDependenciesMeta": {
|
|
98
98
|
"@jini-ai/platform": {
|