@agentic-surfaces/cli 0.1.25 → 0.1.26
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.js +5 -4
- package/dist/services.d.ts +2 -0
- package/dist/services.js +2 -0
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -161,7 +161,7 @@ export async function run(argv) {
|
|
|
161
161
|
const agents = loadAgents(dir);
|
|
162
162
|
const registry = defaultRegistry();
|
|
163
163
|
const observer = new StreamingObserver();
|
|
164
|
-
const services = buildServices({ projectConfig: pc });
|
|
164
|
+
const services = buildServices({ projectConfig: pc, projectDir: dir });
|
|
165
165
|
const runWorkflowFn = buildWorkflowRunner({ workflows: allWorkflows, registry, services: { ...services, agents }, observer });
|
|
166
166
|
const servicesWithRunner = { ...services, agents, runWorkflow: runWorkflowFn };
|
|
167
167
|
// Cron-triggered workflows fire on schedule too.
|
|
@@ -195,7 +195,8 @@ export async function run(argv) {
|
|
|
195
195
|
const fake = rest.includes("--fake");
|
|
196
196
|
const pc = findProjectConfig(dirname(file));
|
|
197
197
|
const wf = loadWorkflow(readFileSync(file, "utf8"));
|
|
198
|
-
const
|
|
198
|
+
const projectDir = findProjectDir(dirname(file)) ?? dirname(file);
|
|
199
|
+
const services = buildServices(fake ? { fakeAgent: [{ text: "fake reply" }], projectConfig: pc, projectDir } : { projectConfig: pc, projectDir });
|
|
199
200
|
const dir = dirname(file);
|
|
200
201
|
const allWorkflows = new Map();
|
|
201
202
|
for (const f of readdirSync(dir).filter(f => f.endsWith(".yaml") && f !== "agentic-surfaces.config.yaml")) {
|
|
@@ -205,7 +206,7 @@ export async function run(argv) {
|
|
|
205
206
|
}
|
|
206
207
|
catch { /* skip unparseable */ }
|
|
207
208
|
}
|
|
208
|
-
const agents = loadAgents(
|
|
209
|
+
const agents = loadAgents(projectDir);
|
|
209
210
|
const registry = defaultRegistry();
|
|
210
211
|
const ui = rest.includes("--ui");
|
|
211
212
|
const observer = ui ? new StreamingObserver() : undefined;
|
|
@@ -240,7 +241,7 @@ export async function run(argv) {
|
|
|
240
241
|
const dir = rest.find(a => !a.startsWith("--")) ?? ".";
|
|
241
242
|
const pc = loadProjectConfig(dir);
|
|
242
243
|
const workflowsDir = pc?.workflows ? join(dir, pc.workflows) : dir;
|
|
243
|
-
const services = buildServices({ projectConfig: pc });
|
|
244
|
+
const services = buildServices({ projectConfig: pc, projectDir: dir });
|
|
244
245
|
const allWorkflows = new Map();
|
|
245
246
|
const yamlFiles = readdirSync(workflowsDir).filter(f => f.endsWith(".yaml") && f !== "agentic-surfaces.config.yaml");
|
|
246
247
|
for (const f of yamlFiles) {
|
package/dist/services.d.ts
CHANGED
|
@@ -4,4 +4,6 @@ import type { Services } from "@agentic-surfaces/core";
|
|
|
4
4
|
export declare function buildServices(opts?: {
|
|
5
5
|
fakeAgent?: AgentResult[];
|
|
6
6
|
projectConfig?: ProjectConfig;
|
|
7
|
+
/** Project dir (where the config lives) — a `full` agent's cwd + plugin-path base. */
|
|
8
|
+
projectDir?: string;
|
|
7
9
|
}): Services;
|
package/dist/services.js
CHANGED
|
@@ -9,11 +9,13 @@ export function buildServices(opts = {}) {
|
|
|
9
9
|
logger: { info: (m, meta) => console.log(m, meta ?? ""), error: (m, meta) => console.error(m, meta ?? "") },
|
|
10
10
|
fetch: globalThis.fetch,
|
|
11
11
|
dryRun: pc?.dryRun ?? false,
|
|
12
|
+
projectDir: opts.projectDir,
|
|
12
13
|
agentDefaults: pc ? {
|
|
13
14
|
model: pc.agent?.model,
|
|
14
15
|
effort: pc.agent?.effort,
|
|
15
16
|
runner: pc.agent?.runner,
|
|
16
17
|
mcpServers: pc.agent?.mcpServers,
|
|
18
|
+
capabilities: pc.agent?.capabilities,
|
|
17
19
|
} : undefined,
|
|
18
20
|
};
|
|
19
21
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentic-surfaces/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"README.md"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@agentic-surfaces/
|
|
26
|
-
"@agentic-surfaces/
|
|
27
|
-
"@agentic-surfaces/
|
|
25
|
+
"@agentic-surfaces/core": "0.1.26",
|
|
26
|
+
"@agentic-surfaces/server": "0.1.26",
|
|
27
|
+
"@agentic-surfaces/agent": "0.1.26"
|
|
28
28
|
},
|
|
29
29
|
"repository": {
|
|
30
30
|
"type": "git",
|