@alfe.ai/integrations 0.0.17 → 0.0.19
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/dist/index.d.ts +5 -2
- package/dist/index.js +4 -2
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -28,10 +28,11 @@ interface RegistryEntry {
|
|
|
28
28
|
} | string;
|
|
29
29
|
/** Pricing details */
|
|
30
30
|
pricing?: {
|
|
31
|
-
type: "free" | "paid";
|
|
31
|
+
type: "free" | "paid" | "usage";
|
|
32
32
|
price?: number;
|
|
33
33
|
currency?: string;
|
|
34
34
|
interval?: "month" | "year";
|
|
35
|
+
description?: string;
|
|
35
36
|
};
|
|
36
37
|
/** Feature list for marketplace display */
|
|
37
38
|
features?: string[];
|
|
@@ -299,11 +300,13 @@ interface IntegrationPricingPlan {
|
|
|
299
300
|
interval?: 'month' | 'year';
|
|
300
301
|
}
|
|
301
302
|
interface IntegrationPricing {
|
|
302
|
-
type: 'free' | 'paid';
|
|
303
|
+
type: 'free' | 'paid' | 'usage';
|
|
303
304
|
/** Single price (shorthand for integrations with one plan) */
|
|
304
305
|
price?: number;
|
|
305
306
|
currency?: string;
|
|
306
307
|
interval?: 'month' | 'year';
|
|
308
|
+
/** Description of usage-based pricing (for type: 'usage') */
|
|
309
|
+
description?: string;
|
|
307
310
|
/** Multiple plans/tiers (e.g., starter, growth, scale) */
|
|
308
311
|
plans?: Record<string, IntegrationPricingPlan>;
|
|
309
312
|
}
|
package/dist/index.js
CHANGED
|
@@ -1422,11 +1422,13 @@ var OpenClawApplier = class {
|
|
|
1422
1422
|
await this.ensurePluginsAllow(pkg);
|
|
1423
1423
|
if (!this.isPluginInstalled(pkg)) {
|
|
1424
1424
|
try {
|
|
1425
|
-
|
|
1425
|
+
const args = [
|
|
1426
1426
|
"plugins",
|
|
1427
1427
|
"install",
|
|
1428
1428
|
pkg
|
|
1429
|
-
]
|
|
1429
|
+
];
|
|
1430
|
+
if (pkg.startsWith("@alfe.ai/")) args.push("--dangerously-force-unsafe-install");
|
|
1431
|
+
await execFileAsync("openclaw", args, { timeout: 6e4 });
|
|
1430
1432
|
} catch (err) {
|
|
1431
1433
|
await new Promise((r) => {
|
|
1432
1434
|
setTimeout(r, 500);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfe.ai/integrations",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Integration lifecycle management for Alfe — registry, resolution, installation, and state",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@auriclabs/logger": "^0.1.1",
|
|
16
|
-
"@alfe.ai/integration-manifest": "^0.0.
|
|
16
|
+
"@alfe.ai/integration-manifest": "^0.0.8"
|
|
17
17
|
},
|
|
18
18
|
"files": [
|
|
19
19
|
"dist"
|