@compilr-dev/sdk 0.1.26 → 0.1.27
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.
|
@@ -18,11 +18,12 @@ export function generateCapabilityCatalog(catalog, loadedPackIds) {
|
|
|
18
18
|
const lines = [
|
|
19
19
|
'## Available Capabilities',
|
|
20
20
|
'',
|
|
21
|
-
'
|
|
21
|
+
'These tools are available but not yet loaded. Just call any tool by name — it will auto-load:',
|
|
22
22
|
];
|
|
23
23
|
for (const entry of catalog) {
|
|
24
24
|
const readOnlySuffix = entry.readOnly ? ', read-only' : '';
|
|
25
|
-
|
|
25
|
+
const toolList = entry.tools.join(', ');
|
|
26
|
+
lines.push(`- **${entry.label}** (${entry.id}${readOnlySuffix}): ${toolList}`);
|
|
26
27
|
}
|
|
27
28
|
if (loadedPackIds.length > 0) {
|
|
28
29
|
lines.push('');
|
|
@@ -49,6 +49,8 @@ export interface CapabilityCatalogEntry {
|
|
|
49
49
|
label: string;
|
|
50
50
|
toolCount: number;
|
|
51
51
|
readOnly: boolean;
|
|
52
|
+
/** Tool names in this pack (for agent awareness — enables auto-load on first call) */
|
|
53
|
+
tools: readonly string[];
|
|
52
54
|
}
|
|
53
55
|
/**
|
|
54
56
|
* Result of attempting to load capabilities (e.g., for a skill invocation).
|