@ghl-ai/aw 0.1.52 → 0.1.53
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/commands/integrations.mjs +14 -0
- package/package.json +1 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
// commands/integrations.mjs — CLI command: aw integrations add/remove/list/bundle
|
|
2
2
|
|
|
3
3
|
import * as p from '@clack/prompts';
|
|
4
|
+
import { homedir } from 'node:os';
|
|
4
5
|
import * as fmt from '../fmt.mjs';
|
|
5
6
|
import { chalk } from '../fmt.mjs';
|
|
7
|
+
import { listIntegrations as listLocalIntegrations } from '../integrations/index.mjs';
|
|
6
8
|
import {
|
|
7
9
|
INTEGRATIONS,
|
|
8
10
|
BUNDLES,
|
|
@@ -40,6 +42,7 @@ async function cmdList() {
|
|
|
40
42
|
});
|
|
41
43
|
|
|
42
44
|
const installed = getInstalledList();
|
|
45
|
+
const localIntegrations = listLocalIntegrations(homedir(), { env: process.env });
|
|
43
46
|
|
|
44
47
|
// Group by type
|
|
45
48
|
const plugins = Object.entries(INTEGRATIONS).filter(
|
|
@@ -68,6 +71,16 @@ async function cmdList() {
|
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
|
|
74
|
+
// Local Integrations
|
|
75
|
+
if (localIntegrations.length > 0) {
|
|
76
|
+
fmt.logMessage(`\n${chalk.bold.underline('Local Integrations')}`);
|
|
77
|
+
for (const integration of localIntegrations) {
|
|
78
|
+
fmt.logMessage(
|
|
79
|
+
` ⚙️ ${integration.name.padEnd(25)} — ${integration.summary}`
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
71
84
|
// Available Plugins
|
|
72
85
|
fmt.logMessage(`\n${chalk.bold.underline('Available Plugins')}`);
|
|
73
86
|
for (const [key, integration] of plugins) {
|
|
@@ -127,6 +140,7 @@ async function cmdList() {
|
|
|
127
140
|
fmt.logMessage(` aw integrations add <key> Install a specific tool`);
|
|
128
141
|
fmt.logMessage(` aw integrations remove <key> Remove a tool`);
|
|
129
142
|
fmt.logMessage(` aw integrations bundle <name> Install a preset bundle`);
|
|
143
|
+
fmt.logMessage(` aw integration add <name> Configure a local integration`);
|
|
130
144
|
}
|
|
131
145
|
|
|
132
146
|
// ────────────────────────────────────────────────────────────────────────────────
|