veryfront 0.1.926 → 0.1.927
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/esm/cli/commands/workflow/command.d.ts +6 -0
- package/esm/cli/commands/workflow/command.d.ts.map +1 -1
- package/esm/cli/commands/workflow/command.js +6 -1
- package/esm/deno.js +1 -1
- package/esm/src/utils/version-constant.d.ts +1 -1
- package/esm/src/utils/version-constant.js +1 -1
- package/package.json +9 -3
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
import { discoverProjectAgentRuntime } from "../../../src/agent/project/agent-runtime.js";
|
|
1
2
|
import type { WorkflowArgs } from "./handler.js";
|
|
2
3
|
export interface WorkflowOptions extends WorkflowArgs {
|
|
3
4
|
projectDir?: string;
|
|
4
5
|
}
|
|
6
|
+
interface WorkflowCommandDependencies {
|
|
7
|
+
discoverProjectAgentRuntime?: typeof discoverProjectAgentRuntime;
|
|
8
|
+
}
|
|
5
9
|
export interface WorkflowDiscoveryError {
|
|
6
10
|
filePath: string;
|
|
7
11
|
error: string;
|
|
8
12
|
}
|
|
9
13
|
export declare function formatWorkflowDiscoveryErrors(errors: WorkflowDiscoveryError[]): string[];
|
|
10
14
|
export declare function workflowCommand(options: WorkflowOptions): Promise<void>;
|
|
15
|
+
export declare function runWorkflowCommand(options: WorkflowOptions, dependencies?: WorkflowCommandDependencies): Promise<void>;
|
|
16
|
+
export {};
|
|
11
17
|
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/workflow/command.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/workflow/command.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,2BAA2B,EAAE,MAAM,6CAA6C,CAAC;AAO1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAKjD,MAAM,WAAW,eAAgB,SAAQ,YAAY;IACnD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,2BAA2B;IACnC,2BAA2B,CAAC,EAAE,OAAO,2BAA2B,CAAC;CAClE;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,6BAA6B,CAC3C,MAAM,EAAE,sBAAsB,EAAE,GAC/B,MAAM,EAAE,CAUV;AAuFD,wBAAsB,eAAe,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAE7E;AAED,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,eAAe,EACxB,YAAY,GAAE,2BAAgC,GAC7C,OAAO,CAAC,IAAI,CAAC,CA6Ff"}
|
|
@@ -81,6 +81,9 @@ async function waitForWorkflowExit(client, runId) {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
export async function workflowCommand(options) {
|
|
84
|
+
await runWorkflowCommand(options);
|
|
85
|
+
}
|
|
86
|
+
export async function runWorkflowCommand(options, dependencies = {}) {
|
|
84
87
|
if (options.action !== "run") {
|
|
85
88
|
cliLogger.error(`Unknown workflow action: ${options.action}`);
|
|
86
89
|
exitProcess(1);
|
|
@@ -104,6 +107,8 @@ export async function workflowCommand(options) {
|
|
|
104
107
|
}
|
|
105
108
|
}
|
|
106
109
|
const projectDir = options.projectDir ?? dntShim.Deno.cwd();
|
|
110
|
+
const discoverRuntime = dependencies.discoverProjectAgentRuntime ??
|
|
111
|
+
discoverProjectAgentRuntime;
|
|
107
112
|
await withProjectSourceContext(projectDir, async ({ adapter, proxyContext }) => {
|
|
108
113
|
const sourceLabel = proxyContext?.branchRef
|
|
109
114
|
? `branch ${proxyContext.branchRef}`
|
|
@@ -111,7 +116,7 @@ export async function workflowCommand(options) {
|
|
|
111
116
|
? "main"
|
|
112
117
|
: `${projectDir}/workflows/...`;
|
|
113
118
|
cliLogger.info(`Discovering workflows in ${sourceLabel}`);
|
|
114
|
-
const discovery = await
|
|
119
|
+
const discovery = await discoverRuntime({
|
|
115
120
|
projectDir,
|
|
116
121
|
adapter,
|
|
117
122
|
verbose: options.debug,
|
package/esm/deno.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "veryfront",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.927",
|
|
4
4
|
"description": "The simplest way to build AI-powered apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -310,12 +310,18 @@
|
|
|
310
310
|
"@opentelemetry/core": {
|
|
311
311
|
"optional": true
|
|
312
312
|
},
|
|
313
|
+
"@opentelemetry/exporter-metrics-otlp-http": {
|
|
314
|
+
"optional": true
|
|
315
|
+
},
|
|
313
316
|
"@opentelemetry/exporter-trace-otlp-http": {
|
|
314
317
|
"optional": true
|
|
315
318
|
},
|
|
316
319
|
"@opentelemetry/resources": {
|
|
317
320
|
"optional": true
|
|
318
321
|
},
|
|
322
|
+
"@opentelemetry/sdk-metrics": {
|
|
323
|
+
"optional": true
|
|
324
|
+
},
|
|
319
325
|
"@opentelemetry/sdk-node": {
|
|
320
326
|
"optional": true
|
|
321
327
|
},
|
|
@@ -332,8 +338,6 @@
|
|
|
332
338
|
"@babel/traverse": "7.29.0",
|
|
333
339
|
"@babel/types": "7.29.0",
|
|
334
340
|
"@mdx-js/mdx": "3.1.1",
|
|
335
|
-
"@opentelemetry/exporter-metrics-otlp-http": "0.219.0",
|
|
336
|
-
"@opentelemetry/sdk-metrics": "2.8.0",
|
|
337
341
|
"@types/hast": "3.0.3",
|
|
338
342
|
"@types/mdast": "4.0.3",
|
|
339
343
|
"@types/unist": "3.0.2",
|
|
@@ -376,8 +380,10 @@
|
|
|
376
380
|
"@opentelemetry/auto-instrumentations-node": "0.77.0",
|
|
377
381
|
"@opentelemetry/context-async-hooks": "2.8.0",
|
|
378
382
|
"@opentelemetry/core": "2.8.0",
|
|
383
|
+
"@opentelemetry/exporter-metrics-otlp-http": "0.219.0",
|
|
379
384
|
"@opentelemetry/exporter-trace-otlp-http": "0.219.0",
|
|
380
385
|
"@opentelemetry/resources": "2.8.0",
|
|
386
|
+
"@opentelemetry/sdk-metrics": "2.8.0",
|
|
381
387
|
"@opentelemetry/sdk-node": "0.219.0",
|
|
382
388
|
"@opentelemetry/sdk-trace-base": "2.8.0",
|
|
383
389
|
"@opentelemetry/semantic-conventions": "1.41.1"
|