@bakers-build/addon-agents 0.9.1-next.5 → 0.9.1-next.6
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/src/agents.d.ts +15 -2
- package/dist/src/agents.js +8 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/preset.d.ts +3 -0
- package/dist/src/preset.js +10 -0
- package/dist/src/tools.d.ts +2 -0
- package/dist/src/tools.js +10 -0
- package/package.json +4 -4
package/dist/src/agents.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AgentCatalog } from '@bakers-build/conductor/contract';
|
|
2
|
+
/** Sandbox-safe catalog; permission entries can contain personal machine paths. */
|
|
3
|
+
export declare function catalogReport(config: AgentCatalog): {
|
|
4
|
+
agents: {
|
|
5
|
+
alias: string | undefined;
|
|
6
|
+
description: string;
|
|
7
|
+
harness: string;
|
|
8
|
+
model: string | null;
|
|
9
|
+
}[];
|
|
10
|
+
enabled_agents: string[];
|
|
11
|
+
disabled_agents: string[];
|
|
12
|
+
default_agent: string;
|
|
13
|
+
routes: import("@bakers-build/core").AgentRoutes;
|
|
14
|
+
};
|
|
2
15
|
/** Report the already-resolved catalog; no agent launch or connection I/O. */
|
|
3
|
-
export declare function agentReport(config:
|
|
16
|
+
export declare function agentReport(config: AgentCatalog): {
|
|
4
17
|
agents: {
|
|
5
18
|
alias: string | undefined;
|
|
6
19
|
description: string;
|
package/dist/src/agents.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/** Sandbox-safe catalog; permission entries can contain personal machine paths. */
|
|
2
|
+
export function catalogReport(config) {
|
|
3
|
+
const report = agentReport(config);
|
|
4
|
+
return {
|
|
5
|
+
...report,
|
|
6
|
+
agents: report.agents.map(({ permissions: _permissions, ...agent }) => agent),
|
|
7
|
+
};
|
|
8
|
+
}
|
|
1
9
|
/** Report the already-resolved catalog; no agent launch or connection I/O. */
|
|
2
10
|
export function agentReport(config) {
|
|
3
11
|
return {
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.js
CHANGED
package/dist/src/preset.d.ts
CHANGED
package/dist/src/preset.js
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
export const scopes = ['machine', 'project'];
|
|
2
|
+
export const tools = {
|
|
3
|
+
contract: 1,
|
|
4
|
+
tools: {
|
|
5
|
+
agents_catalog: {
|
|
6
|
+
description: 'Report the conductor’s loaded agent catalog and routes without permissions, configuration reload or agent launch.',
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
handlers: (options, host) => import('./tools.js').then((m) => m.handlersFor(options, host)),
|
|
10
|
+
};
|
|
1
11
|
export const commands = (acc) => [
|
|
2
12
|
...acc,
|
|
3
13
|
{
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { catalogReport } from './agents.js';
|
|
2
|
+
export function handlersFor(_options, host) {
|
|
3
|
+
if (!host)
|
|
4
|
+
throw new Error('agents_catalog requires a conductor tool host');
|
|
5
|
+
return {
|
|
6
|
+
agents_catalog: async () => ({
|
|
7
|
+
text: JSON.stringify(catalogReport(host.agentCatalog()), null, 2),
|
|
8
|
+
}),
|
|
9
|
+
};
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bakers-build/addon-agents",
|
|
3
|
-
"version": "0.9.1-next.
|
|
3
|
+
"version": "0.9.1-next.6",
|
|
4
4
|
"description": "Locally resolved agent catalog for conductor operators and qualification.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"commander": "^12.1.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@bakers-build/conductor": "^0.9.1-next.
|
|
29
|
-
"@bakers-build/core": "^0.9.1-next.
|
|
28
|
+
"@bakers-build/conductor": "^0.9.1-next.6",
|
|
29
|
+
"@bakers-build/core": "^0.9.1-next.6"
|
|
30
30
|
},
|
|
31
31
|
"bakersBuild": {
|
|
32
|
-
"commit": "
|
|
32
|
+
"commit": "e7d9921d51d5c045f29ca7e35d1e6a348e6ddf08",
|
|
33
33
|
"channel": "next"
|
|
34
34
|
}
|
|
35
35
|
}
|